@yahoo/uds-v5-wip 1.33.0 → 1.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/dist/index.js +2 -0
- package/dist/config/dist/propertyAcceptedTypes.js +148 -0
- package/dist/config/dist/resolveStyleProp.d.ts +1 -0
- package/dist/config/dist/resolveStyleProp.js +2 -0
- package/dist/config.d.ts +197 -197
- package/dist/core/dist/compositeStyles.d.ts +2 -1
- package/dist/core/dist/createComponent.d.ts +2 -1
- package/dist/core/dist/createComponentExample.d.ts +2 -1
- package/dist/core/dist/createProvider.d.ts +2 -1
- package/dist/core/dist/generated/stylePropsTwMap.d.ts +2 -1
- package/dist/core/dist/getComponentStyles.d.ts +2 -1
- package/dist/core/dist/getStyles.d.ts +2 -1
- package/dist/core/dist/propMappings.d.ts +2 -1
- package/dist/core/dist/resolveMotionState.d.ts +2 -1
- package/dist/core/dist/transformPreset.d.ts +2 -1
- package/dist/core/dist/withDefaultStyleProps.d.ts +2 -1
- package/dist/foundational-presets/dist/boldVibrant.d.ts +198 -197
- package/dist/foundational-presets/dist/brutalist.d.ts +198 -197
- package/dist/foundational-presets/dist/candy.d.ts +198 -197
- package/dist/foundational-presets/dist/cleanMinimalist.d.ts +198 -197
- package/dist/foundational-presets/dist/corporate.d.ts +198 -197
- package/dist/foundational-presets/dist/darkMoody.d.ts +198 -197
- package/dist/foundational-presets/dist/defaultPreset.d.ts +198 -197
- package/dist/foundational-presets/dist/forest.d.ts +198 -197
- package/dist/foundational-presets/dist/highContrast.d.ts +198 -197
- package/dist/foundational-presets/dist/lavender.d.ts +198 -197
- package/dist/foundational-presets/dist/luxury.d.ts +198 -197
- package/dist/foundational-presets/dist/monochrome.d.ts +198 -197
- package/dist/foundational-presets/dist/motion.d.ts +2 -1
- package/dist/foundational-presets/dist/neonCyber.d.ts +198 -197
- package/dist/foundational-presets/dist/newspaper.d.ts +198 -197
- package/dist/foundational-presets/dist/ocean.d.ts +198 -197
- package/dist/foundational-presets/dist/slate.d.ts +198 -197
- package/dist/foundational-presets/dist/sunset.d.ts +198 -197
- package/dist/foundational-presets/dist/terminal.d.ts +198 -197
- package/dist/foundational-presets/dist/warmOrganic.d.ts +198 -197
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
//#region ../config/dist/propertyAcceptedTypes.js
|
|
2
|
+
const LENGTH_PCT = { types: [
|
|
3
|
+
"length",
|
|
4
|
+
"percentage",
|
|
5
|
+
"length-percentage"
|
|
6
|
+
] };
|
|
7
|
+
const LENGTH_PCT_AUTO = {
|
|
8
|
+
types: [
|
|
9
|
+
"length",
|
|
10
|
+
"percentage",
|
|
11
|
+
"length-percentage"
|
|
12
|
+
],
|
|
13
|
+
literals: ["auto"]
|
|
14
|
+
};
|
|
15
|
+
const LENGTH_ONLY = { types: ["length"] };
|
|
16
|
+
const COLOR_ONLY = { types: ["color"] };
|
|
17
|
+
const TIME_ONLY = { types: ["time"] };
|
|
18
|
+
const NUMBER_ONLY = { types: ["number", "integer"] };
|
|
19
|
+
const ANGLE_ONLY = { types: ["angle"] };
|
|
20
|
+
const LENGTH_PCT_PROPS = [
|
|
21
|
+
"gap",
|
|
22
|
+
"column-gap",
|
|
23
|
+
"row-gap",
|
|
24
|
+
"padding",
|
|
25
|
+
"padding-top",
|
|
26
|
+
"padding-right",
|
|
27
|
+
"padding-bottom",
|
|
28
|
+
"padding-left",
|
|
29
|
+
"padding-block",
|
|
30
|
+
"padding-inline",
|
|
31
|
+
"padding-inline-start",
|
|
32
|
+
"padding-inline-end",
|
|
33
|
+
"scroll-margin",
|
|
34
|
+
"scroll-margin-top",
|
|
35
|
+
"scroll-margin-bottom",
|
|
36
|
+
"scroll-margin-block",
|
|
37
|
+
"scroll-margin-inline",
|
|
38
|
+
"scroll-margin-inline-start",
|
|
39
|
+
"scroll-margin-inline-end",
|
|
40
|
+
"scroll-padding",
|
|
41
|
+
"scroll-padding-top",
|
|
42
|
+
"scroll-padding-bottom",
|
|
43
|
+
"scroll-padding-block",
|
|
44
|
+
"scroll-padding-inline",
|
|
45
|
+
"scroll-padding-inline-start",
|
|
46
|
+
"scroll-padding-inline-end",
|
|
47
|
+
"border-radius",
|
|
48
|
+
"border-top-left-radius",
|
|
49
|
+
"border-top-right-radius",
|
|
50
|
+
"border-bottom-left-radius",
|
|
51
|
+
"border-bottom-right-radius",
|
|
52
|
+
"border-start-start-radius",
|
|
53
|
+
"border-start-end-radius",
|
|
54
|
+
"border-end-start-radius",
|
|
55
|
+
"border-end-end-radius",
|
|
56
|
+
"text-indent",
|
|
57
|
+
"font-size"
|
|
58
|
+
];
|
|
59
|
+
const LENGTH_PCT_AUTO_PROPS = [
|
|
60
|
+
"margin",
|
|
61
|
+
"margin-top",
|
|
62
|
+
"margin-right",
|
|
63
|
+
"margin-bottom",
|
|
64
|
+
"margin-left",
|
|
65
|
+
"margin-block",
|
|
66
|
+
"margin-inline",
|
|
67
|
+
"margin-inline-start",
|
|
68
|
+
"margin-inline-end",
|
|
69
|
+
"top",
|
|
70
|
+
"right",
|
|
71
|
+
"bottom",
|
|
72
|
+
"left",
|
|
73
|
+
"inset",
|
|
74
|
+
"inset-block",
|
|
75
|
+
"inset-inline",
|
|
76
|
+
"width",
|
|
77
|
+
"height",
|
|
78
|
+
"min-width",
|
|
79
|
+
"min-height",
|
|
80
|
+
"max-width",
|
|
81
|
+
"max-height"
|
|
82
|
+
];
|
|
83
|
+
const LENGTH_ONLY_PROPS = [
|
|
84
|
+
"border-width",
|
|
85
|
+
"border-top-width",
|
|
86
|
+
"border-right-width",
|
|
87
|
+
"border-bottom-width",
|
|
88
|
+
"border-left-width",
|
|
89
|
+
"border-block-width",
|
|
90
|
+
"border-inline-width",
|
|
91
|
+
"border-inline-start-width",
|
|
92
|
+
"border-inline-end-width",
|
|
93
|
+
"outline-width",
|
|
94
|
+
"outline-offset",
|
|
95
|
+
"border-spacing",
|
|
96
|
+
"letter-spacing",
|
|
97
|
+
"text-underline-offset",
|
|
98
|
+
"text-decoration-thickness"
|
|
99
|
+
];
|
|
100
|
+
const COLOR_PROPS = [
|
|
101
|
+
"color",
|
|
102
|
+
"background-color",
|
|
103
|
+
"border-color",
|
|
104
|
+
"border-top-color",
|
|
105
|
+
"border-right-color",
|
|
106
|
+
"border-bottom-color",
|
|
107
|
+
"border-left-color",
|
|
108
|
+
"border-block-color",
|
|
109
|
+
"border-inline-color",
|
|
110
|
+
"border-inline-start-color",
|
|
111
|
+
"border-inline-end-color",
|
|
112
|
+
"outline-color",
|
|
113
|
+
"text-decoration-color",
|
|
114
|
+
"caret-color",
|
|
115
|
+
"fill",
|
|
116
|
+
"stroke"
|
|
117
|
+
];
|
|
118
|
+
const TIME_PROPS = ["transition-duration", "transition-delay"];
|
|
119
|
+
const NUMBER_PROPS = [
|
|
120
|
+
"flex-grow",
|
|
121
|
+
"flex-shrink",
|
|
122
|
+
"order",
|
|
123
|
+
"z-index",
|
|
124
|
+
"-webkit-line-clamp"
|
|
125
|
+
];
|
|
126
|
+
const ANGLE_PROPS = ["rotate"];
|
|
127
|
+
new Map([
|
|
128
|
+
...LENGTH_PCT_PROPS.map((p) => [p, LENGTH_PCT]),
|
|
129
|
+
...LENGTH_PCT_AUTO_PROPS.map((p) => [p, LENGTH_PCT_AUTO]),
|
|
130
|
+
...LENGTH_ONLY_PROPS.map((p) => [p, LENGTH_ONLY]),
|
|
131
|
+
...COLOR_PROPS.map((p) => [p, COLOR_ONLY]),
|
|
132
|
+
...TIME_PROPS.map((p) => [p, TIME_ONLY]),
|
|
133
|
+
...NUMBER_PROPS.map((p) => [p, NUMBER_ONLY]),
|
|
134
|
+
...ANGLE_PROPS.map((p) => [p, ANGLE_ONLY]),
|
|
135
|
+
["font-weight", { types: [
|
|
136
|
+
"font-weight",
|
|
137
|
+
"number",
|
|
138
|
+
"integer"
|
|
139
|
+
] }],
|
|
140
|
+
["font-family", { types: ["font-family"] }],
|
|
141
|
+
["transition-timing-function", { types: ["easing-function"] }],
|
|
142
|
+
["box-shadow", { types: ["shadow"] }],
|
|
143
|
+
["text-shadow", { types: ["shadow"] }],
|
|
144
|
+
["list-style-image", { types: ["url", "image"] }],
|
|
145
|
+
["aspect-ratio", { types: ["ratio", "number"] }],
|
|
146
|
+
["opacity", { types: ["number", "percentage"] }]
|
|
147
|
+
]);
|
|
148
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/config.d.ts
CHANGED
|
@@ -8,6 +8,47 @@ import * as _$_uds_types0 from "@uds/types";
|
|
|
8
8
|
//#region src/config.d.ts
|
|
9
9
|
declare const uds: UdsConfig<_$_uds_types0.ModifierProp, {}, {}, {}, {}, never, {}>;
|
|
10
10
|
declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "_dark" | "_sm" | "_md" | "_lg" | "_xl" | "_2xl", {
|
|
11
|
+
opacity: {
|
|
12
|
+
0: string;
|
|
13
|
+
5: string;
|
|
14
|
+
10: string;
|
|
15
|
+
20: string;
|
|
16
|
+
40: string;
|
|
17
|
+
60: string;
|
|
18
|
+
80: string;
|
|
19
|
+
25: string;
|
|
20
|
+
30: string;
|
|
21
|
+
50: string;
|
|
22
|
+
70: string;
|
|
23
|
+
75: string;
|
|
24
|
+
90: string;
|
|
25
|
+
95: string;
|
|
26
|
+
100: string;
|
|
27
|
+
};
|
|
28
|
+
scale: {
|
|
29
|
+
0: string;
|
|
30
|
+
50: string;
|
|
31
|
+
75: string;
|
|
32
|
+
90: string;
|
|
33
|
+
95: string;
|
|
34
|
+
100: string;
|
|
35
|
+
105: string;
|
|
36
|
+
110: string;
|
|
37
|
+
125: string;
|
|
38
|
+
150: string;
|
|
39
|
+
200: string;
|
|
40
|
+
};
|
|
41
|
+
rotate: {
|
|
42
|
+
0: string;
|
|
43
|
+
2: string;
|
|
44
|
+
1: string;
|
|
45
|
+
3: string;
|
|
46
|
+
6: string;
|
|
47
|
+
12: string;
|
|
48
|
+
90: string;
|
|
49
|
+
45: string;
|
|
50
|
+
180: string;
|
|
51
|
+
};
|
|
11
52
|
color: {
|
|
12
53
|
inherit: string;
|
|
13
54
|
current: string;
|
|
@@ -33,23 +74,7 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
33
74
|
inverse: string;
|
|
34
75
|
"on-inverse": string;
|
|
35
76
|
};
|
|
36
|
-
|
|
37
|
-
sans: string;
|
|
38
|
-
serif: string;
|
|
39
|
-
mono: string;
|
|
40
|
-
};
|
|
41
|
-
fontWeight: {
|
|
42
|
-
bold: string;
|
|
43
|
-
light: string;
|
|
44
|
-
thin: string;
|
|
45
|
-
medium: string;
|
|
46
|
-
extralight: string;
|
|
47
|
-
normal: string;
|
|
48
|
-
semibold: string;
|
|
49
|
-
extrabold: string;
|
|
50
|
-
black: string;
|
|
51
|
-
};
|
|
52
|
-
bg: {
|
|
77
|
+
borderColor: {
|
|
53
78
|
brand: string;
|
|
54
79
|
accent: string;
|
|
55
80
|
alert: string;
|
|
@@ -60,17 +85,51 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
60
85
|
tertiary: string;
|
|
61
86
|
inverse: string;
|
|
62
87
|
surface: string;
|
|
63
|
-
"elevation-1": string;
|
|
64
|
-
"elevation-2": string;
|
|
65
|
-
"elevation-3": string;
|
|
66
88
|
"brand-wash": string;
|
|
67
89
|
"accent-wash": string;
|
|
68
90
|
"alert-wash": string;
|
|
69
91
|
"positive-wash": string;
|
|
70
92
|
"warning-wash": string;
|
|
71
|
-
overlay: string;
|
|
72
93
|
};
|
|
73
|
-
|
|
94
|
+
position: {
|
|
95
|
+
auto: string;
|
|
96
|
+
full: string;
|
|
97
|
+
"1/2": string;
|
|
98
|
+
"1/3": string;
|
|
99
|
+
"2/3": string;
|
|
100
|
+
"1/4": string;
|
|
101
|
+
"2/4": string;
|
|
102
|
+
"3/4": string;
|
|
103
|
+
};
|
|
104
|
+
size: {
|
|
105
|
+
auto: string;
|
|
106
|
+
full: string;
|
|
107
|
+
max: string;
|
|
108
|
+
min: string;
|
|
109
|
+
"1/2": string;
|
|
110
|
+
"1/3": string;
|
|
111
|
+
"2/3": string;
|
|
112
|
+
"1/4": string;
|
|
113
|
+
"2/4": string;
|
|
114
|
+
"3/4": string;
|
|
115
|
+
fit: string;
|
|
116
|
+
"1/5": string;
|
|
117
|
+
"2/5": string;
|
|
118
|
+
"3/5": string;
|
|
119
|
+
"4/5": string;
|
|
120
|
+
"1/6": string;
|
|
121
|
+
"2/6": string;
|
|
122
|
+
"3/6": string;
|
|
123
|
+
"4/6": string;
|
|
124
|
+
"5/6": string;
|
|
125
|
+
};
|
|
126
|
+
animation: {
|
|
127
|
+
none: string;
|
|
128
|
+
ping: string;
|
|
129
|
+
spin: string;
|
|
130
|
+
};
|
|
131
|
+
bg: {
|
|
132
|
+
overlay: string;
|
|
74
133
|
brand: string;
|
|
75
134
|
accent: string;
|
|
76
135
|
alert: string;
|
|
@@ -81,6 +140,9 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
81
140
|
tertiary: string;
|
|
82
141
|
inverse: string;
|
|
83
142
|
surface: string;
|
|
143
|
+
"elevation-1": string;
|
|
144
|
+
"elevation-2": string;
|
|
145
|
+
"elevation-3": string;
|
|
84
146
|
"brand-wash": string;
|
|
85
147
|
"accent-wash": string;
|
|
86
148
|
"alert-wash": string;
|
|
@@ -93,63 +155,50 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
93
155
|
medium: string;
|
|
94
156
|
thick: string;
|
|
95
157
|
};
|
|
96
|
-
|
|
158
|
+
divideWidth: {
|
|
97
159
|
0: string;
|
|
98
|
-
2: string;
|
|
99
|
-
1: string;
|
|
100
160
|
4: string;
|
|
101
|
-
|
|
102
|
-
};
|
|
103
|
-
outlineOffset: {
|
|
104
|
-
0: string;
|
|
161
|
+
reverse: string;
|
|
105
162
|
2: string;
|
|
106
|
-
1: string;
|
|
107
|
-
4: string;
|
|
108
163
|
8: string;
|
|
109
164
|
};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
8: string;
|
|
165
|
+
flex: {
|
|
166
|
+
none: string;
|
|
167
|
+
initial: string;
|
|
168
|
+
auto: string;
|
|
169
|
+
1: string;
|
|
116
170
|
};
|
|
117
|
-
|
|
171
|
+
flexGrow: {
|
|
118
172
|
0: string;
|
|
119
|
-
2: string;
|
|
120
173
|
1: string;
|
|
121
|
-
inset: string;
|
|
122
|
-
4: string;
|
|
123
|
-
8: string;
|
|
124
174
|
};
|
|
125
|
-
|
|
175
|
+
flexShrink: {
|
|
126
176
|
0: string;
|
|
127
|
-
2: string;
|
|
128
|
-
1: string;
|
|
129
|
-
4: string;
|
|
130
|
-
8: string;
|
|
131
177
|
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
178
|
+
aspectRatio: {
|
|
179
|
+
square: string;
|
|
180
|
+
landscape: string;
|
|
181
|
+
portrait: string;
|
|
182
|
+
widescreen: string;
|
|
183
|
+
ultrawide: string;
|
|
184
|
+
golden: string;
|
|
137
185
|
};
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
186
|
+
zIndex: {
|
|
187
|
+
0: string;
|
|
188
|
+
auto: string;
|
|
189
|
+
10: string;
|
|
190
|
+
20: string;
|
|
191
|
+
40: string;
|
|
192
|
+
30: string;
|
|
193
|
+
50: string;
|
|
145
194
|
};
|
|
146
195
|
spacing: {
|
|
147
196
|
0: string;
|
|
197
|
+
4: string;
|
|
148
198
|
2: string;
|
|
149
199
|
5: string;
|
|
150
200
|
1: string;
|
|
151
201
|
px: string;
|
|
152
|
-
4: string;
|
|
153
202
|
8: string;
|
|
154
203
|
0.5: string;
|
|
155
204
|
1.5: string;
|
|
@@ -180,183 +229,116 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
180
229
|
80: string;
|
|
181
230
|
96: string;
|
|
182
231
|
};
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
"2/3": string;
|
|
189
|
-
"1/4": string;
|
|
190
|
-
"2/4": string;
|
|
191
|
-
"3/4": string;
|
|
192
|
-
};
|
|
193
|
-
aspectRatio: {
|
|
194
|
-
square: string;
|
|
195
|
-
landscape: string;
|
|
196
|
-
portrait: string;
|
|
197
|
-
widescreen: string;
|
|
198
|
-
ultrawide: string;
|
|
199
|
-
golden: string;
|
|
232
|
+
w: {
|
|
233
|
+
screen: string;
|
|
234
|
+
svw: string;
|
|
235
|
+
lvw: string;
|
|
236
|
+
dvw: string;
|
|
200
237
|
};
|
|
201
|
-
|
|
238
|
+
outlineWidth: {
|
|
239
|
+
0: string;
|
|
240
|
+
4: string;
|
|
241
|
+
2: string;
|
|
202
242
|
1: string;
|
|
203
|
-
|
|
204
|
-
auto: string;
|
|
205
|
-
initial: string;
|
|
243
|
+
8: string;
|
|
206
244
|
};
|
|
207
|
-
|
|
245
|
+
outlineOffset: {
|
|
208
246
|
0: string;
|
|
247
|
+
4: string;
|
|
248
|
+
2: string;
|
|
209
249
|
1: string;
|
|
250
|
+
8: string;
|
|
210
251
|
};
|
|
211
|
-
|
|
252
|
+
ringWidth: {
|
|
212
253
|
0: string;
|
|
254
|
+
4: string;
|
|
255
|
+
inset: string;
|
|
256
|
+
2: string;
|
|
257
|
+
1: string;
|
|
258
|
+
8: string;
|
|
213
259
|
};
|
|
214
|
-
|
|
260
|
+
ringOffsetWidth: {
|
|
215
261
|
0: string;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
60: string;
|
|
221
|
-
80: string;
|
|
222
|
-
25: string;
|
|
223
|
-
30: string;
|
|
224
|
-
50: string;
|
|
225
|
-
70: string;
|
|
226
|
-
75: string;
|
|
227
|
-
90: string;
|
|
228
|
-
95: string;
|
|
229
|
-
100: string;
|
|
262
|
+
4: string;
|
|
263
|
+
2: string;
|
|
264
|
+
1: string;
|
|
265
|
+
8: string;
|
|
230
266
|
};
|
|
231
|
-
|
|
267
|
+
shadow: {
|
|
268
|
+
none: string;
|
|
232
269
|
sm: string;
|
|
233
270
|
md: string;
|
|
234
271
|
lg: string;
|
|
235
272
|
xl: string;
|
|
236
|
-
|
|
237
|
-
|
|
273
|
+
"2xl": string;
|
|
274
|
+
"2xs": string;
|
|
238
275
|
xs: string;
|
|
276
|
+
inner: string;
|
|
239
277
|
};
|
|
240
|
-
|
|
278
|
+
strokeWidth: {
|
|
279
|
+
0: string;
|
|
280
|
+
2: string;
|
|
281
|
+
1: string;
|
|
282
|
+
};
|
|
283
|
+
fontFamily: {
|
|
284
|
+
sans: string;
|
|
285
|
+
serif: string;
|
|
286
|
+
mono: string;
|
|
287
|
+
};
|
|
288
|
+
fontWeight: {
|
|
289
|
+
normal: string;
|
|
290
|
+
thin: string;
|
|
291
|
+
bold: string;
|
|
292
|
+
light: string;
|
|
293
|
+
medium: string;
|
|
294
|
+
extralight: string;
|
|
295
|
+
semibold: string;
|
|
296
|
+
extrabold: string;
|
|
297
|
+
black: string;
|
|
298
|
+
};
|
|
299
|
+
letterSpacing: {
|
|
300
|
+
normal: string;
|
|
301
|
+
tight: string;
|
|
302
|
+
tighter: string;
|
|
303
|
+
wide: string;
|
|
304
|
+
wider: string;
|
|
305
|
+
widest: string;
|
|
306
|
+
};
|
|
307
|
+
lineHeight: {
|
|
241
308
|
none: string;
|
|
242
|
-
|
|
243
|
-
|
|
309
|
+
normal: string;
|
|
310
|
+
tight: string;
|
|
311
|
+
relaxed: string;
|
|
244
312
|
};
|
|
245
|
-
|
|
313
|
+
textShadow: {
|
|
314
|
+
none: string;
|
|
246
315
|
sm: string;
|
|
247
316
|
md: string;
|
|
248
317
|
lg: string;
|
|
249
|
-
xl: string;
|
|
250
|
-
"2xl": string;
|
|
251
|
-
none: string;
|
|
252
|
-
xs: string;
|
|
253
318
|
"2xs": string;
|
|
254
|
-
|
|
319
|
+
xs: string;
|
|
255
320
|
};
|
|
256
321
|
blur: {
|
|
322
|
+
none: string;
|
|
257
323
|
sm: string;
|
|
258
324
|
md: string;
|
|
259
325
|
lg: string;
|
|
260
326
|
xl: string;
|
|
261
327
|
"2xl": string;
|
|
262
|
-
none: string;
|
|
263
328
|
"3xl": string;
|
|
264
329
|
};
|
|
265
|
-
textShadow: {
|
|
266
|
-
sm: string;
|
|
267
|
-
md: string;
|
|
268
|
-
lg: string;
|
|
269
|
-
none: string;
|
|
270
|
-
xs: string;
|
|
271
|
-
"2xs": string;
|
|
272
|
-
};
|
|
273
|
-
zIndex: {
|
|
274
|
-
0: string;
|
|
275
|
-
auto: string;
|
|
276
|
-
10: string;
|
|
277
|
-
20: string;
|
|
278
|
-
40: string;
|
|
279
|
-
30: string;
|
|
280
|
-
50: string;
|
|
281
|
-
};
|
|
282
|
-
size: {
|
|
283
|
-
auto: string;
|
|
284
|
-
full: string;
|
|
285
|
-
"1/2": string;
|
|
286
|
-
"1/3": string;
|
|
287
|
-
"2/3": string;
|
|
288
|
-
"1/4": string;
|
|
289
|
-
"2/4": string;
|
|
290
|
-
"3/4": string;
|
|
291
|
-
min: string;
|
|
292
|
-
max: string;
|
|
293
|
-
fit: string;
|
|
294
|
-
"1/5": string;
|
|
295
|
-
"2/5": string;
|
|
296
|
-
"3/5": string;
|
|
297
|
-
"4/5": string;
|
|
298
|
-
"1/6": string;
|
|
299
|
-
"2/6": string;
|
|
300
|
-
"3/6": string;
|
|
301
|
-
"4/6": string;
|
|
302
|
-
"5/6": string;
|
|
303
|
-
};
|
|
304
|
-
w: {
|
|
305
|
-
screen: string;
|
|
306
|
-
svw: string;
|
|
307
|
-
lvw: string;
|
|
308
|
-
dvw: string;
|
|
309
|
-
};
|
|
310
|
-
h: {
|
|
311
|
-
screen: string;
|
|
312
|
-
svh: string;
|
|
313
|
-
lvh: string;
|
|
314
|
-
dvh: string;
|
|
315
|
-
};
|
|
316
|
-
rotate: {
|
|
317
|
-
0: string;
|
|
318
|
-
2: string;
|
|
319
|
-
1: string;
|
|
320
|
-
3: string;
|
|
321
|
-
6: string;
|
|
322
|
-
12: string;
|
|
323
|
-
90: string;
|
|
324
|
-
45: string;
|
|
325
|
-
180: string;
|
|
326
|
-
};
|
|
327
|
-
scale: {
|
|
328
|
-
0: string;
|
|
329
|
-
50: string;
|
|
330
|
-
75: string;
|
|
331
|
-
90: string;
|
|
332
|
-
95: string;
|
|
333
|
-
100: string;
|
|
334
|
-
105: string;
|
|
335
|
-
110: string;
|
|
336
|
-
125: string;
|
|
337
|
-
150: string;
|
|
338
|
-
200: string;
|
|
339
|
-
};
|
|
340
|
-
skew: {
|
|
341
|
-
0: string;
|
|
342
|
-
2: string;
|
|
343
|
-
1: string;
|
|
344
|
-
3: string;
|
|
345
|
-
6: string;
|
|
346
|
-
12: string;
|
|
347
|
-
};
|
|
348
330
|
translate: {
|
|
349
331
|
0: string;
|
|
332
|
+
4: string;
|
|
333
|
+
full: string;
|
|
350
334
|
2: string;
|
|
351
335
|
5: string;
|
|
352
336
|
1: string;
|
|
353
|
-
full: string;
|
|
354
337
|
"1/2": string;
|
|
355
338
|
"1/3": string;
|
|
356
339
|
"2/3": string;
|
|
357
340
|
"1/4": string;
|
|
358
341
|
"3/4": string;
|
|
359
|
-
4: string;
|
|
360
342
|
8: string;
|
|
361
343
|
0.5: string;
|
|
362
344
|
1.5: string;
|
|
@@ -387,10 +369,28 @@ declare const defaultPreset: UdsConfig<_$_uds_types0.ModifierProp | "_light" | "
|
|
|
387
369
|
80: string;
|
|
388
370
|
96: string;
|
|
389
371
|
};
|
|
390
|
-
|
|
372
|
+
radius: {
|
|
373
|
+
none: string;
|
|
374
|
+
sm: string;
|
|
375
|
+
md: string;
|
|
376
|
+
lg: string;
|
|
377
|
+
xl: string;
|
|
378
|
+
xs: string;
|
|
379
|
+
full: string;
|
|
380
|
+
};
|
|
381
|
+
h: {
|
|
382
|
+
screen: string;
|
|
383
|
+
svh: string;
|
|
384
|
+
lvh: string;
|
|
385
|
+
dvh: string;
|
|
386
|
+
};
|
|
387
|
+
skew: {
|
|
391
388
|
0: string;
|
|
392
389
|
2: string;
|
|
393
390
|
1: string;
|
|
391
|
+
3: string;
|
|
392
|
+
6: string;
|
|
393
|
+
12: string;
|
|
394
394
|
};
|
|
395
395
|
}, {}, {}, {}, "_light" | "_dark" | "_sm" | "_md" | "_lg" | "_xl" | "_2xl", {
|
|
396
396
|
readonly color: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CompositeStylesConfig } from "@uds/types";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/compositeStyles.d.ts
|
|
4
|
+
//#region src/compositeStyles.d.ts
|
|
4
5
|
/** Set the composite-styles config (called by loader at build time) */
|
|
5
6
|
declare function setCompositeStylesConfig(config: CompositeStylesConfig): void;
|
|
6
7
|
/** Get the current composite-styles config */
|
|
@@ -16,6 +17,6 @@ declare function getCompositeStylesConfig(): CompositeStylesConfig;
|
|
|
16
17
|
declare function expandCompositeStyles(props: Record<string, unknown>, config?: CompositeStylesConfig): {
|
|
17
18
|
expanded: Record<string, unknown>;
|
|
18
19
|
markerClasses: string[];
|
|
19
|
-
};
|
|
20
|
+
}; //#endregion
|
|
20
21
|
//#endregion
|
|
21
22
|
export { expandCompositeStyles, getCompositeStylesConfig, setCompositeStylesConfig };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CreateComponentConfig, CreateComponentProps, CreateComponentRenderFn, CreateComponentSlotTagConfig, CreateComponentTypeInput } from "@uds/types";
|
|
2
2
|
|
|
3
3
|
//#region ../core/dist/createComponent.d.ts
|
|
4
|
+
//#region src/createComponent.d.ts
|
|
4
5
|
type PrimitiveTag = keyof React.JSX.IntrinsicElements;
|
|
5
6
|
type SpecConfig<TSpec> = TSpec extends {
|
|
6
7
|
config: infer TConfig extends CreateComponentTypeInput;
|
|
@@ -51,6 +52,6 @@ declare function createComponent<TSpecOrProps = {}>(tag: PrimitiveTag): React.FC
|
|
|
51
52
|
props: infer TOwnProps;
|
|
52
53
|
} ? CreateComponentProps<TConfig, TOwnProps, PrimitiveTag> : PrimitiveOwnProps<TSpecOrProps>>;
|
|
53
54
|
declare function createComponent<TSpec>(renderFn: CreateComponentRenderFn<SpecConfig<TSpec>, SpecOwnProps<TSpec>, SpecSlotConfig<TSpec>>): React.FC<CreateComponentProps<SpecConfig<TSpec>, SpecOwnProps<TSpec>, SpecSlotConfig<TSpec>>>;
|
|
54
|
-
declare function createComponent(config: CreateComponentConfig<string>, renderFn: CreateComponentRenderFn<any, any, any>): React.FC<any>;
|
|
55
|
+
declare function createComponent(config: CreateComponentConfig<string>, renderFn: CreateComponentRenderFn<any, any, any>): React.FC<any>; //#endregion
|
|
55
56
|
//#endregion
|
|
56
57
|
export { createComponent };
|