UNPKG

6.81 kBTypeScriptView Raw
1import { IStyleOptions } from './IStyleOptions';
2import { IProcessedStyleSet, IStyleSet } from './IStyleSet';
3import { ObjectOnly } from './ObjectOnly';
4/**
5 * Takes in one or more style set objects, each consisting of a set of areas,
6 * each which will produce a class name. Using this is analogous to calling
7 * `mergeStyles` for each property in the object, but ensures we maintain the
8 * set ordering when multiple style sets are merged.
9 *
10 * @param styleSet - The first style set to be merged and reigstered.
11 */
12export declare function mergeStyleSets<TStyleSet>(styleSet: TStyleSet | false | null | undefined): IProcessedStyleSet<ObjectOnly<TStyleSet>>;
13/**
14 * Takes in one or more style set objects, each consisting of a set of areas,
15 * each which will produce a class name. Using this is analogous to calling
16 * `mergeStyles` for each property in the object, but ensures we maintain the
17 * set ordering when multiple style sets are merged.
18 *
19 * @param styleSet1 - The first style set to be merged.
20 * @param styleSet2 - The second style set to be merged.
21 */
22export declare function mergeStyleSets<TStyleSet1, TStyleSet2>(styleSet1: TStyleSet1 | false | null | undefined, styleSet2: TStyleSet2 | false | null | undefined): IProcessedStyleSet<ObjectOnly<TStyleSet1> & ObjectOnly<TStyleSet2>>;
23/**
24 * Takes in one or more style set objects, each consisting of a set of areas,
25 * each which will produce a class name. Using this is analogous to calling
26 * `mergeStyles` for each property in the object, but ensures we maintain the
27 * set ordering when multiple style sets are merged.
28 *
29 * @param styleSet1 - The first style set to be merged.
30 * @param styleSet2 - The second style set to be merged.
31 * @param styleSet3 - The third style set to be merged.
32 */
33export declare function mergeStyleSets<TStyleSet1, TStyleSet2, TStyleSet3>(styleSet1: TStyleSet1 | false | null | undefined, styleSet2: TStyleSet2 | false | null | undefined, styleSet3: TStyleSet3 | false | null | undefined): IProcessedStyleSet<ObjectOnly<TStyleSet1> & ObjectOnly<TStyleSet2> & ObjectOnly<TStyleSet3>>;
34/**
35 * Takes in one or more style set objects, each consisting of a set of areas,
36 * each which will produce a class name. Using this is analogous to calling
37 * `mergeStyles` for each property in the object, but ensures we maintain the
38 * set ordering when multiple style sets are merged.
39 *
40 * @param styleSet1 - The first style set to be merged.
41 * @param styleSet2 - The second style set to be merged.
42 * @param styleSet3 - The third style set to be merged.
43 * @param styleSet4 - The fourth style set to be merged.
44 */
45export declare function mergeStyleSets<TStyleSet1, TStyleSet2, TStyleSet3, TStyleSet4>(styleSet1: TStyleSet1 | false | null | undefined, styleSet2: TStyleSet2 | false | null | undefined, styleSet3: TStyleSet3 | false | null | undefined, styleSet4: TStyleSet4 | false | null | undefined): IProcessedStyleSet<ObjectOnly<TStyleSet1> & ObjectOnly<TStyleSet2> & ObjectOnly<TStyleSet3> & ObjectOnly<TStyleSet4>>;
46/**
47 * Takes in one or more style set objects, each consisting of a set of areas,
48 * each which will produce a class name. Using this is analogous to calling
49 * `mergeStyles` for each property in the object, but ensures we maintain the
50 * set ordering when multiple style sets are merged.
51 *
52 * @param styleSets - One or more style sets to be merged.
53 */
54export declare function mergeStyleSets(...styleSets: Array<IStyleSet | undefined | false | null>): IProcessedStyleSet<any>;
55/**
56 * Takes in one or more style set objects, each1consisting of a set of areas,
57 * each which will produce a class name. Using this is analogous to calling
58 * `mergeCss` for each property in the object, but ensures we maintain the
59 * set ordering when multiple style sets are merged.
60 *
61 * @param styleSets - One or more style sets to be merged.
62 * @param options - (optional) Options to use when creating rules.
63 */
64export declare function mergeCssSets<TStyleSet>(styleSets: [TStyleSet | false | null | undefined], options?: IStyleOptions): IProcessedStyleSet<TStyleSet>;
65/**
66 * Takes in one or more style set objects, each1consisting of a set of areas,
67 * each which will produce a class name. Using this is analogous to calling
68 * `mergeCss` for each property in the object, but ensures we maintain the
69 * set ordering when multiple style sets are merged.
70 *
71 * @param styleSets - One or more style sets to be merged.
72 * @param options - (optional) Options to use when creating rules.
73 */
74export declare function mergeCssSets<TStyleSet1, TStyleSet2>(styleSets: [TStyleSet1 | false | null | undefined, TStyleSet2 | false | null | undefined], options?: IStyleOptions): IProcessedStyleSet<TStyleSet1 & TStyleSet2>;
75/**
76 * Takes in one or more style set objects, each1consisting of a set of areas,
77 * each which will produce a class name. Using this is analogous to calling
78 * `mergeCss` for each property in the object, but ensures we maintain the
79 * set ordering when multiple style sets are merged.
80 *
81 * @param styleSets - One or more style sets to be merged.
82 * @param options - (optional) Options to use when creating rules.
83 */
84export declare function mergeCssSets<TStyleSet1, TStyleSet2, TStyleSet3>(styleSets: [TStyleSet1 | false | null | undefined, TStyleSet2 | false | null | undefined, TStyleSet3 | false | null | undefined], options?: IStyleOptions): IProcessedStyleSet<TStyleSet1 & TStyleSet2 & TStyleSet3>;
85/**
86 * Takes in one or more style set objects, each1consisting of a set of areas,
87 * each which will produce a class name. Using this is analogous to calling
88 * `mergeCss` for each property in the object, but ensures we maintain the
89 * set ordering when multiple style sets are merged.
90 *
91 * @param styleSets - One or more style sets to be merged.
92 * @param options - (optional) Options to use when creating rules.
93 */
94export declare function mergeCssSets<TStyleSet1, TStyleSet2, TStyleSet3, TStyleSet4>(styleSets: [TStyleSet1 | false | null | undefined, TStyleSet2 | false | null | undefined, TStyleSet3 | false | null | undefined, TStyleSet4 | false | null | undefined], options?: IStyleOptions): IProcessedStyleSet<ObjectOnly<TStyleSet1> & ObjectOnly<TStyleSet2> & ObjectOnly<TStyleSet3> & ObjectOnly<TStyleSet4>>;
95/**
96 * Takes in one or more style set objects, each1consisting of a set of areas,
97 * each which will produce a class name. Using this is analogous to calling
98 * `mergeCss` for each property in the object, but ensures we maintain the
99 * set ordering when multiple style sets are merged.
100 *
101 * @param styleSets - One or more style sets to be merged.
102 * @param options - (optional) Options to use when creating rules.
103 */
104export declare function mergeCssSets<TStyleSet>(styleSet: [TStyleSet | false | null | undefined], options?: IStyleOptions): IProcessedStyleSet<TStyleSet>;