@yahoo/uds 3.124.0 → 3.125.1
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/automated-config/dist/generated/autoVariants.cjs +6 -0
- package/dist/automated-config/dist/generated/autoVariants.d.cts +2 -2
- package/dist/automated-config/dist/generated/autoVariants.d.ts +2 -2
- package/dist/automated-config/dist/generated/autoVariants.js +6 -0
- package/dist/automated-config/dist/generated/generatedConfigs.cjs +19 -1
- package/dist/automated-config/dist/generated/generatedConfigs.d.cts +16 -1
- package/dist/automated-config/dist/generated/generatedConfigs.d.ts +16 -1
- package/dist/automated-config/dist/generated/generatedConfigs.js +19 -1
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.cjs +81 -0
- package/dist/automated-config/dist/generated/universalTokensConfigAuto.js +81 -0
- package/dist/components/FormLabel.cjs +4 -2
- package/dist/components/FormLabel.d.cts +2 -17
- package/dist/components/FormLabel.d.ts +2 -17
- package/dist/components/FormLabel.js +4 -2
- package/dist/components/Image.cjs +4 -2
- package/dist/components/Image.d.cts +2 -61
- package/dist/components/Image.d.ts +2 -61
- package/dist/components/Image.js +4 -2
- package/dist/components/client/Avatar/AvatarImage.cjs +1 -0
- package/dist/components/client/Avatar/AvatarImage.js +1 -0
- package/dist/components/client/Checkbox.cjs +2 -1
- package/dist/components/client/Checkbox.js +2 -1
- package/dist/components/client/Input/Input.cjs +2 -1
- package/dist/components/client/Input/Input.js +2 -1
- package/dist/components/client/Input/InputHelpTextInternal.cjs +3 -2
- package/dist/components/client/Input/InputHelpTextInternal.d.cts +1 -14
- package/dist/components/client/Input/InputHelpTextInternal.d.ts +1 -14
- package/dist/components/client/Input/InputHelpTextInternal.js +4 -3
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.cts +1 -1
- package/dist/components/client/Menu/Menu.ItemCheckbox.d.ts +1 -1
- package/dist/components/client/Radio/Radio.cjs +2 -1
- package/dist/components/client/Radio/Radio.js +2 -1
- package/dist/components/client/Switch.cjs +3 -3
- package/dist/components/client/Switch.js +3 -3
- package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +5 -5
- package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +5 -5
- package/dist/config/dist/index.cjs +83 -2
- package/dist/config/dist/index.js +83 -2
- package/dist/fixtures/dist/index.cjs +19 -6
- package/dist/fixtures/dist/index.d.cts +1 -1
- package/dist/fixtures/dist/index.d.ts +1 -1
- package/dist/fixtures/dist/index.js +19 -6
- package/dist/styles/styler.d.cts +93 -93
- package/dist/styles/styler.d.ts +93 -93
- package/dist/styles/variants.cjs +4 -1
- package/dist/styles/variants.d.cts +9 -0
- package/dist/styles/variants.d.ts +9 -0
- package/dist/styles/variants.js +4 -1
- package/dist/tailwind/dist/automated-config/dist/generated/autoVariants.cjs +6 -0
- package/dist/tailwind/dist/automated-config/dist/generated/autoVariants.js +6 -0
- package/dist/tailwind/dist/automated-config/dist/generated/autoVariants.js.map +1 -1
- package/dist/tailwind/dist/automated-config/dist/generated/generatedConfigs.cjs +19 -1
- package/dist/tailwind/dist/automated-config/dist/generated/generatedConfigs.js +19 -1
- package/dist/tailwind/dist/automated-config/dist/generated/generatedConfigs.js.map +1 -1
- package/dist/tailwind/dist/config/dist/index.cjs +83 -2
- package/dist/tailwind/dist/config/dist/index.js +83 -2
- package/dist/tailwind/dist/config/dist/index.js.map +1 -1
- package/dist/tailwind/dist/fixtures/dist/index.cjs +20 -0
- package/dist/tailwind/dist/fixtures/dist/index.js +20 -0
- package/dist/tailwind/dist/fixtures/dist/index.js.map +1 -1
- package/dist/tailwind/dist/purger/optimized/ast/expressions.cjs +27 -0
- package/dist/tailwind/dist/purger/optimized/ast/expressions.js +27 -0
- package/dist/tailwind/dist/purger/optimized/ast/expressions.js.map +1 -1
- package/dist/tailwind/dist/types/dist/index.d.cts +2 -2
- package/dist/tailwind/dist/types/dist/index.d.ts +2 -2
- package/dist/tokens/configs/sizes.cjs +4 -1
- package/dist/tokens/configs/sizes.js +4 -1
- package/dist/types/dist/index.d.cts +2 -2
- package/dist/types/dist/index.d.ts +2 -2
- package/dist/uds/generated/componentData.cjs +1040 -1040
- package/dist/uds/generated/componentData.js +1040 -1040
- package/dist/uds/generated/tailwindPurge.cjs +13 -5
- package/dist/uds/generated/tailwindPurge.js +13 -5
- package/generated/componentData.json +1591 -1591
- package/generated/tailwindPurge.ts +2 -2
- package/package.json +1 -1
|
@@ -14,6 +14,9 @@ const autoVariants = {
|
|
|
14
14
|
secondary: "uds-avatar-image-variant-secondary-root"
|
|
15
15
|
},
|
|
16
16
|
avatarSizeIcon: {
|
|
17
|
+
"2xl": "uds-avatar-size-2xl-icon",
|
|
18
|
+
"2xs": "uds-avatar-size-2xs-icon",
|
|
19
|
+
"3xl": "uds-avatar-size-3xl-icon",
|
|
17
20
|
default: "uds-avatar-size-default-icon",
|
|
18
21
|
lg: "uds-avatar-size-lg-icon",
|
|
19
22
|
md: "uds-avatar-size-md-icon",
|
|
@@ -22,6 +25,9 @@ const autoVariants = {
|
|
|
22
25
|
xs: "uds-avatar-size-xs-icon"
|
|
23
26
|
},
|
|
24
27
|
avatarSizeRoot: {
|
|
28
|
+
"2xl": "uds-avatar-size-2xl-root",
|
|
29
|
+
"2xs": "uds-avatar-size-2xs-root",
|
|
30
|
+
"3xl": "uds-avatar-size-3xl-root",
|
|
25
31
|
default: "uds-avatar-size-default-root",
|
|
26
32
|
lg: "uds-avatar-size-lg-root",
|
|
27
33
|
md: "uds-avatar-size-md-root",
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
interface StylePropsVariantsAuto<T> {
|
|
4
4
|
avatarIconVariantRoot: Record<'default' | 'primary' | 'secondary', T>;
|
|
5
5
|
avatarImageVariantRoot: Record<'default' | 'primary' | 'secondary', T>;
|
|
6
|
-
avatarSizeIcon: Record<'default' | 'lg' | 'md' | 'sm' | 'xl' | 'xs', T>;
|
|
7
|
-
avatarSizeRoot: Record<'default' | 'lg' | 'md' | 'sm' | 'xl' | 'xs', T>;
|
|
6
|
+
avatarSizeIcon: Record<'2xl' | '2xs' | '3xl' | 'default' | 'lg' | 'md' | 'sm' | 'xl' | 'xs', T>;
|
|
7
|
+
avatarSizeRoot: Record<'2xl' | '2xs' | '3xl' | 'default' | 'lg' | 'md' | 'sm' | 'xl' | 'xs', T>;
|
|
8
8
|
avatarTextVariantRoot: Record<'default' | 'primary' | 'secondary', T>;
|
|
9
9
|
badgeSizeIcon: Record<'default' | 'lg' | 'md' | 'sm' | 'xs', T>;
|
|
10
10
|
badgeSizeRoot: Record<'default' | 'lg' | 'md' | 'sm' | 'xs', T>;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
interface StylePropsVariantsAuto<T> {
|
|
4
4
|
avatarIconVariantRoot: Record<'default' | 'primary' | 'secondary', T>;
|
|
5
5
|
avatarImageVariantRoot: Record<'default' | 'primary' | 'secondary', T>;
|
|
6
|
-
avatarSizeIcon: Record<'default' | 'lg' | 'md' | 'sm' | 'xl' | 'xs', T>;
|
|
7
|
-
avatarSizeRoot: Record<'default' | 'lg' | 'md' | 'sm' | 'xl' | 'xs', T>;
|
|
6
|
+
avatarSizeIcon: Record<'2xl' | '2xs' | '3xl' | 'default' | 'lg' | 'md' | 'sm' | 'xl' | 'xs', T>;
|
|
7
|
+
avatarSizeRoot: Record<'2xl' | '2xs' | '3xl' | 'default' | 'lg' | 'md' | 'sm' | 'xl' | 'xs', T>;
|
|
8
8
|
avatarTextVariantRoot: Record<'default' | 'primary' | 'secondary', T>;
|
|
9
9
|
badgeSizeIcon: Record<'default' | 'lg' | 'md' | 'sm' | 'xs', T>;
|
|
10
10
|
badgeSizeRoot: Record<'default' | 'lg' | 'md' | 'sm' | 'xs', T>;
|
|
@@ -13,6 +13,9 @@ const autoVariants = {
|
|
|
13
13
|
secondary: "uds-avatar-image-variant-secondary-root"
|
|
14
14
|
},
|
|
15
15
|
avatarSizeIcon: {
|
|
16
|
+
"2xl": "uds-avatar-size-2xl-icon",
|
|
17
|
+
"2xs": "uds-avatar-size-2xs-icon",
|
|
18
|
+
"3xl": "uds-avatar-size-3xl-icon",
|
|
16
19
|
default: "uds-avatar-size-default-icon",
|
|
17
20
|
lg: "uds-avatar-size-lg-icon",
|
|
18
21
|
md: "uds-avatar-size-md-icon",
|
|
@@ -21,6 +24,9 @@ const autoVariants = {
|
|
|
21
24
|
xs: "uds-avatar-size-xs-icon"
|
|
22
25
|
},
|
|
23
26
|
avatarSizeRoot: {
|
|
27
|
+
"2xl": "uds-avatar-size-2xl-root",
|
|
28
|
+
"2xs": "uds-avatar-size-2xs-root",
|
|
29
|
+
"3xl": "uds-avatar-size-3xl-root",
|
|
24
30
|
default: "uds-avatar-size-default-root",
|
|
25
31
|
lg: "uds-avatar-size-lg-root",
|
|
26
32
|
md: "uds-avatar-size-md-root",
|
|
@@ -2647,6 +2647,9 @@ const AvatarConfig = {
|
|
|
2647
2647
|
label: "icon",
|
|
2648
2648
|
properties: { iconSize: {
|
|
2649
2649
|
defaults: {
|
|
2650
|
+
"2xl": "lg",
|
|
2651
|
+
"2xs": "xs",
|
|
2652
|
+
"3xl": "lg",
|
|
2650
2653
|
lg: "lg",
|
|
2651
2654
|
md: "md",
|
|
2652
2655
|
sm: "sm",
|
|
@@ -2669,6 +2672,9 @@ const AvatarConfig = {
|
|
|
2669
2672
|
properties: {
|
|
2670
2673
|
borderWidth: {
|
|
2671
2674
|
defaults: {
|
|
2675
|
+
"2xl": "thin",
|
|
2676
|
+
"2xs": "thin",
|
|
2677
|
+
"3xl": "thin",
|
|
2672
2678
|
lg: "thin",
|
|
2673
2679
|
md: "thin",
|
|
2674
2680
|
sm: "thin",
|
|
@@ -2687,6 +2693,9 @@ const AvatarConfig = {
|
|
|
2687
2693
|
},
|
|
2688
2694
|
height: {
|
|
2689
2695
|
defaults: {
|
|
2696
|
+
"2xl": "20",
|
|
2697
|
+
"2xs": "5",
|
|
2698
|
+
"3xl": "24",
|
|
2690
2699
|
lg: "12",
|
|
2691
2700
|
md: "10",
|
|
2692
2701
|
sm: "7",
|
|
@@ -2738,6 +2747,9 @@ const AvatarConfig = {
|
|
|
2738
2747
|
},
|
|
2739
2748
|
textVariant: {
|
|
2740
2749
|
defaults: {
|
|
2750
|
+
"2xl": "title2",
|
|
2751
|
+
"2xs": "caption1",
|
|
2752
|
+
"3xl": "title1",
|
|
2741
2753
|
lg: "title4",
|
|
2742
2754
|
md: "headline1",
|
|
2743
2755
|
sm: "caption2",
|
|
@@ -2796,6 +2808,9 @@ const AvatarConfig = {
|
|
|
2796
2808
|
},
|
|
2797
2809
|
width: {
|
|
2798
2810
|
defaults: {
|
|
2811
|
+
"2xl": "20",
|
|
2812
|
+
"2xs": "5",
|
|
2813
|
+
"3xl": "24",
|
|
2799
2814
|
lg: "12",
|
|
2800
2815
|
md: "10",
|
|
2801
2816
|
sm: "7",
|
|
@@ -2849,11 +2864,14 @@ const AvatarConfig = {
|
|
|
2849
2864
|
}
|
|
2850
2865
|
},
|
|
2851
2866
|
options: [
|
|
2867
|
+
"2xs",
|
|
2852
2868
|
"xs",
|
|
2853
2869
|
"sm",
|
|
2854
2870
|
"md",
|
|
2855
2871
|
"lg",
|
|
2856
|
-
"xl"
|
|
2872
|
+
"xl",
|
|
2873
|
+
"2xl",
|
|
2874
|
+
"3xl"
|
|
2857
2875
|
]
|
|
2858
2876
|
} }
|
|
2859
2877
|
};
|
|
@@ -174,6 +174,9 @@ declare const AvatarConfig: {
|
|
|
174
174
|
readonly properties: {
|
|
175
175
|
readonly iconSize: {
|
|
176
176
|
readonly defaults: {
|
|
177
|
+
readonly '2xl': "lg";
|
|
178
|
+
readonly '2xs': "xs";
|
|
179
|
+
readonly '3xl': "lg";
|
|
177
180
|
readonly lg: "lg";
|
|
178
181
|
readonly md: "md";
|
|
179
182
|
readonly sm: "sm";
|
|
@@ -192,6 +195,9 @@ declare const AvatarConfig: {
|
|
|
192
195
|
readonly properties: {
|
|
193
196
|
readonly borderWidth: {
|
|
194
197
|
readonly defaults: {
|
|
198
|
+
readonly '2xl': "thin";
|
|
199
|
+
readonly '2xs': "thin";
|
|
200
|
+
readonly '3xl': "thin";
|
|
195
201
|
readonly lg: "thin";
|
|
196
202
|
readonly md: "thin";
|
|
197
203
|
readonly sm: "thin";
|
|
@@ -205,6 +211,9 @@ declare const AvatarConfig: {
|
|
|
205
211
|
};
|
|
206
212
|
readonly height: {
|
|
207
213
|
readonly defaults: {
|
|
214
|
+
readonly '2xl': "20";
|
|
215
|
+
readonly '2xs': "5";
|
|
216
|
+
readonly '3xl': "24";
|
|
208
217
|
readonly lg: "12";
|
|
209
218
|
readonly md: "10";
|
|
210
219
|
readonly sm: "7";
|
|
@@ -218,6 +227,9 @@ declare const AvatarConfig: {
|
|
|
218
227
|
};
|
|
219
228
|
readonly textVariant: {
|
|
220
229
|
readonly defaults: {
|
|
230
|
+
readonly '2xl': "title2";
|
|
231
|
+
readonly '2xs': "caption1";
|
|
232
|
+
readonly '3xl': "title1";
|
|
221
233
|
readonly lg: "title4";
|
|
222
234
|
readonly md: "headline1";
|
|
223
235
|
readonly sm: "caption2";
|
|
@@ -231,6 +243,9 @@ declare const AvatarConfig: {
|
|
|
231
243
|
};
|
|
232
244
|
readonly width: {
|
|
233
245
|
readonly defaults: {
|
|
246
|
+
readonly '2xl': "20";
|
|
247
|
+
readonly '2xs': "5";
|
|
248
|
+
readonly '3xl': "24";
|
|
234
249
|
readonly lg: "12";
|
|
235
250
|
readonly md: "10";
|
|
236
251
|
readonly sm: "7";
|
|
@@ -245,7 +260,7 @@ declare const AvatarConfig: {
|
|
|
245
260
|
};
|
|
246
261
|
};
|
|
247
262
|
};
|
|
248
|
-
readonly options: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
263
|
+
readonly options: readonly ["2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl"];
|
|
249
264
|
};
|
|
250
265
|
};
|
|
251
266
|
};
|
|
@@ -174,6 +174,9 @@ declare const AvatarConfig: {
|
|
|
174
174
|
readonly properties: {
|
|
175
175
|
readonly iconSize: {
|
|
176
176
|
readonly defaults: {
|
|
177
|
+
readonly '2xl': "lg";
|
|
178
|
+
readonly '2xs': "xs";
|
|
179
|
+
readonly '3xl': "lg";
|
|
177
180
|
readonly lg: "lg";
|
|
178
181
|
readonly md: "md";
|
|
179
182
|
readonly sm: "sm";
|
|
@@ -192,6 +195,9 @@ declare const AvatarConfig: {
|
|
|
192
195
|
readonly properties: {
|
|
193
196
|
readonly borderWidth: {
|
|
194
197
|
readonly defaults: {
|
|
198
|
+
readonly '2xl': "thin";
|
|
199
|
+
readonly '2xs': "thin";
|
|
200
|
+
readonly '3xl': "thin";
|
|
195
201
|
readonly lg: "thin";
|
|
196
202
|
readonly md: "thin";
|
|
197
203
|
readonly sm: "thin";
|
|
@@ -205,6 +211,9 @@ declare const AvatarConfig: {
|
|
|
205
211
|
};
|
|
206
212
|
readonly height: {
|
|
207
213
|
readonly defaults: {
|
|
214
|
+
readonly '2xl': "20";
|
|
215
|
+
readonly '2xs': "5";
|
|
216
|
+
readonly '3xl': "24";
|
|
208
217
|
readonly lg: "12";
|
|
209
218
|
readonly md: "10";
|
|
210
219
|
readonly sm: "7";
|
|
@@ -218,6 +227,9 @@ declare const AvatarConfig: {
|
|
|
218
227
|
};
|
|
219
228
|
readonly textVariant: {
|
|
220
229
|
readonly defaults: {
|
|
230
|
+
readonly '2xl': "title2";
|
|
231
|
+
readonly '2xs': "caption1";
|
|
232
|
+
readonly '3xl': "title1";
|
|
221
233
|
readonly lg: "title4";
|
|
222
234
|
readonly md: "headline1";
|
|
223
235
|
readonly sm: "caption2";
|
|
@@ -231,6 +243,9 @@ declare const AvatarConfig: {
|
|
|
231
243
|
};
|
|
232
244
|
readonly width: {
|
|
233
245
|
readonly defaults: {
|
|
246
|
+
readonly '2xl': "20";
|
|
247
|
+
readonly '2xs': "5";
|
|
248
|
+
readonly '3xl': "24";
|
|
234
249
|
readonly lg: "12";
|
|
235
250
|
readonly md: "10";
|
|
236
251
|
readonly sm: "7";
|
|
@@ -245,7 +260,7 @@ declare const AvatarConfig: {
|
|
|
245
260
|
};
|
|
246
261
|
};
|
|
247
262
|
};
|
|
248
|
-
readonly options: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
263
|
+
readonly options: readonly ["2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl"];
|
|
249
264
|
};
|
|
250
265
|
};
|
|
251
266
|
};
|
|
@@ -2646,6 +2646,9 @@ const AvatarConfig = {
|
|
|
2646
2646
|
label: "icon",
|
|
2647
2647
|
properties: { iconSize: {
|
|
2648
2648
|
defaults: {
|
|
2649
|
+
"2xl": "lg",
|
|
2650
|
+
"2xs": "xs",
|
|
2651
|
+
"3xl": "lg",
|
|
2649
2652
|
lg: "lg",
|
|
2650
2653
|
md: "md",
|
|
2651
2654
|
sm: "sm",
|
|
@@ -2668,6 +2671,9 @@ const AvatarConfig = {
|
|
|
2668
2671
|
properties: {
|
|
2669
2672
|
borderWidth: {
|
|
2670
2673
|
defaults: {
|
|
2674
|
+
"2xl": "thin",
|
|
2675
|
+
"2xs": "thin",
|
|
2676
|
+
"3xl": "thin",
|
|
2671
2677
|
lg: "thin",
|
|
2672
2678
|
md: "thin",
|
|
2673
2679
|
sm: "thin",
|
|
@@ -2686,6 +2692,9 @@ const AvatarConfig = {
|
|
|
2686
2692
|
},
|
|
2687
2693
|
height: {
|
|
2688
2694
|
defaults: {
|
|
2695
|
+
"2xl": "20",
|
|
2696
|
+
"2xs": "5",
|
|
2697
|
+
"3xl": "24",
|
|
2689
2698
|
lg: "12",
|
|
2690
2699
|
md: "10",
|
|
2691
2700
|
sm: "7",
|
|
@@ -2737,6 +2746,9 @@ const AvatarConfig = {
|
|
|
2737
2746
|
},
|
|
2738
2747
|
textVariant: {
|
|
2739
2748
|
defaults: {
|
|
2749
|
+
"2xl": "title2",
|
|
2750
|
+
"2xs": "caption1",
|
|
2751
|
+
"3xl": "title1",
|
|
2740
2752
|
lg: "title4",
|
|
2741
2753
|
md: "headline1",
|
|
2742
2754
|
sm: "caption2",
|
|
@@ -2795,6 +2807,9 @@ const AvatarConfig = {
|
|
|
2795
2807
|
},
|
|
2796
2808
|
width: {
|
|
2797
2809
|
defaults: {
|
|
2810
|
+
"2xl": "20",
|
|
2811
|
+
"2xs": "5",
|
|
2812
|
+
"3xl": "24",
|
|
2798
2813
|
lg: "12",
|
|
2799
2814
|
md: "10",
|
|
2800
2815
|
sm: "7",
|
|
@@ -2848,11 +2863,14 @@ const AvatarConfig = {
|
|
|
2848
2863
|
}
|
|
2849
2864
|
},
|
|
2850
2865
|
options: [
|
|
2866
|
+
"2xs",
|
|
2851
2867
|
"xs",
|
|
2852
2868
|
"sm",
|
|
2853
2869
|
"md",
|
|
2854
2870
|
"lg",
|
|
2855
|
-
"xl"
|
|
2871
|
+
"xl",
|
|
2872
|
+
"2xl",
|
|
2873
|
+
"3xl"
|
|
2856
2874
|
]
|
|
2857
2875
|
} }
|
|
2858
2876
|
};
|
|
@@ -81,6 +81,87 @@ const defaultUniversalTokensConfigAuto = {
|
|
|
81
81
|
valueType: "alias"
|
|
82
82
|
} }
|
|
83
83
|
},
|
|
84
|
+
"size/2xl/icon": { iconSize: { rest: {
|
|
85
|
+
type: "iconSizes",
|
|
86
|
+
value: "lg",
|
|
87
|
+
valueType: "alias"
|
|
88
|
+
} } },
|
|
89
|
+
"size/2xl/root": {
|
|
90
|
+
borderWidth: { rest: {
|
|
91
|
+
type: "borderWidths",
|
|
92
|
+
value: "thin",
|
|
93
|
+
valueType: "alias"
|
|
94
|
+
} },
|
|
95
|
+
height: { rest: {
|
|
96
|
+
type: "spacingAliases",
|
|
97
|
+
value: "20",
|
|
98
|
+
valueType: "alias"
|
|
99
|
+
} },
|
|
100
|
+
textVariant: { rest: {
|
|
101
|
+
type: "textVariants",
|
|
102
|
+
value: "title2",
|
|
103
|
+
valueType: "alias"
|
|
104
|
+
} },
|
|
105
|
+
width: { rest: {
|
|
106
|
+
type: "spacingAliases",
|
|
107
|
+
value: "20",
|
|
108
|
+
valueType: "alias"
|
|
109
|
+
} }
|
|
110
|
+
},
|
|
111
|
+
"size/2xs/icon": { iconSize: { rest: {
|
|
112
|
+
type: "iconSizes",
|
|
113
|
+
value: "xs",
|
|
114
|
+
valueType: "alias"
|
|
115
|
+
} } },
|
|
116
|
+
"size/2xs/root": {
|
|
117
|
+
borderWidth: { rest: {
|
|
118
|
+
type: "borderWidths",
|
|
119
|
+
value: "thin",
|
|
120
|
+
valueType: "alias"
|
|
121
|
+
} },
|
|
122
|
+
height: { rest: {
|
|
123
|
+
type: "spacingAliases",
|
|
124
|
+
value: "5",
|
|
125
|
+
valueType: "alias"
|
|
126
|
+
} },
|
|
127
|
+
textVariant: { rest: {
|
|
128
|
+
type: "textVariants",
|
|
129
|
+
value: "caption1",
|
|
130
|
+
valueType: "alias"
|
|
131
|
+
} },
|
|
132
|
+
width: { rest: {
|
|
133
|
+
type: "spacingAliases",
|
|
134
|
+
value: "5",
|
|
135
|
+
valueType: "alias"
|
|
136
|
+
} }
|
|
137
|
+
},
|
|
138
|
+
"size/3xl/icon": { iconSize: { rest: {
|
|
139
|
+
type: "iconSizes",
|
|
140
|
+
value: "lg",
|
|
141
|
+
valueType: "alias"
|
|
142
|
+
} } },
|
|
143
|
+
"size/3xl/root": {
|
|
144
|
+
borderWidth: { rest: {
|
|
145
|
+
type: "borderWidths",
|
|
146
|
+
value: "thin",
|
|
147
|
+
valueType: "alias"
|
|
148
|
+
} },
|
|
149
|
+
height: { rest: {
|
|
150
|
+
type: "spacingAliases",
|
|
151
|
+
value: "24",
|
|
152
|
+
valueType: "alias"
|
|
153
|
+
} },
|
|
154
|
+
textVariant: { rest: {
|
|
155
|
+
type: "textVariants",
|
|
156
|
+
value: "title1",
|
|
157
|
+
valueType: "alias"
|
|
158
|
+
} },
|
|
159
|
+
width: { rest: {
|
|
160
|
+
type: "spacingAliases",
|
|
161
|
+
value: "24",
|
|
162
|
+
valueType: "alias"
|
|
163
|
+
} }
|
|
164
|
+
},
|
|
84
165
|
"size/lg/icon": { iconSize: { rest: {
|
|
85
166
|
type: "iconSizes",
|
|
86
167
|
value: "lg",
|
|
@@ -80,6 +80,87 @@ const defaultUniversalTokensConfigAuto = {
|
|
|
80
80
|
valueType: "alias"
|
|
81
81
|
} }
|
|
82
82
|
},
|
|
83
|
+
"size/2xl/icon": { iconSize: { rest: {
|
|
84
|
+
type: "iconSizes",
|
|
85
|
+
value: "lg",
|
|
86
|
+
valueType: "alias"
|
|
87
|
+
} } },
|
|
88
|
+
"size/2xl/root": {
|
|
89
|
+
borderWidth: { rest: {
|
|
90
|
+
type: "borderWidths",
|
|
91
|
+
value: "thin",
|
|
92
|
+
valueType: "alias"
|
|
93
|
+
} },
|
|
94
|
+
height: { rest: {
|
|
95
|
+
type: "spacingAliases",
|
|
96
|
+
value: "20",
|
|
97
|
+
valueType: "alias"
|
|
98
|
+
} },
|
|
99
|
+
textVariant: { rest: {
|
|
100
|
+
type: "textVariants",
|
|
101
|
+
value: "title2",
|
|
102
|
+
valueType: "alias"
|
|
103
|
+
} },
|
|
104
|
+
width: { rest: {
|
|
105
|
+
type: "spacingAliases",
|
|
106
|
+
value: "20",
|
|
107
|
+
valueType: "alias"
|
|
108
|
+
} }
|
|
109
|
+
},
|
|
110
|
+
"size/2xs/icon": { iconSize: { rest: {
|
|
111
|
+
type: "iconSizes",
|
|
112
|
+
value: "xs",
|
|
113
|
+
valueType: "alias"
|
|
114
|
+
} } },
|
|
115
|
+
"size/2xs/root": {
|
|
116
|
+
borderWidth: { rest: {
|
|
117
|
+
type: "borderWidths",
|
|
118
|
+
value: "thin",
|
|
119
|
+
valueType: "alias"
|
|
120
|
+
} },
|
|
121
|
+
height: { rest: {
|
|
122
|
+
type: "spacingAliases",
|
|
123
|
+
value: "5",
|
|
124
|
+
valueType: "alias"
|
|
125
|
+
} },
|
|
126
|
+
textVariant: { rest: {
|
|
127
|
+
type: "textVariants",
|
|
128
|
+
value: "caption1",
|
|
129
|
+
valueType: "alias"
|
|
130
|
+
} },
|
|
131
|
+
width: { rest: {
|
|
132
|
+
type: "spacingAliases",
|
|
133
|
+
value: "5",
|
|
134
|
+
valueType: "alias"
|
|
135
|
+
} }
|
|
136
|
+
},
|
|
137
|
+
"size/3xl/icon": { iconSize: { rest: {
|
|
138
|
+
type: "iconSizes",
|
|
139
|
+
value: "lg",
|
|
140
|
+
valueType: "alias"
|
|
141
|
+
} } },
|
|
142
|
+
"size/3xl/root": {
|
|
143
|
+
borderWidth: { rest: {
|
|
144
|
+
type: "borderWidths",
|
|
145
|
+
value: "thin",
|
|
146
|
+
valueType: "alias"
|
|
147
|
+
} },
|
|
148
|
+
height: { rest: {
|
|
149
|
+
type: "spacingAliases",
|
|
150
|
+
value: "24",
|
|
151
|
+
valueType: "alias"
|
|
152
|
+
} },
|
|
153
|
+
textVariant: { rest: {
|
|
154
|
+
type: "textVariants",
|
|
155
|
+
value: "title1",
|
|
156
|
+
valueType: "alias"
|
|
157
|
+
} },
|
|
158
|
+
width: { rest: {
|
|
159
|
+
type: "spacingAliases",
|
|
160
|
+
value: "24",
|
|
161
|
+
valueType: "alias"
|
|
162
|
+
} }
|
|
163
|
+
},
|
|
83
164
|
"size/lg/icon": { iconSize: { rest: {
|
|
84
165
|
type: "iconSizes",
|
|
85
166
|
value: "lg",
|
|
@@ -3,15 +3,17 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
3
3
|
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
4
4
|
const require_styles_styler = require('../styles/styler.cjs');
|
|
5
5
|
const require_components_Text = require('./Text.cjs');
|
|
6
|
+
let react = require("react");
|
|
6
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
8
|
let lodash_isFunction_js = require("lodash/isFunction.js");
|
|
8
9
|
lodash_isFunction_js = require_runtime.__toESM(lodash_isFunction_js);
|
|
9
10
|
|
|
10
11
|
//#region src/components/FormLabel.tsx
|
|
11
|
-
const FormLabel = ({ htmlFor, required, label, children, color = "muted", variant = "label3", hasError = false, showRequiredAsterisk = false, as = "label", className, ...rest })
|
|
12
|
+
const FormLabel = (0, react.forwardRef)(function FormLabel({ htmlFor, required, label, children, color = "muted", variant = "label3", hasError = false, showRequiredAsterisk = false, as = "label", className, ...rest }, ref) {
|
|
12
13
|
const contents = label ? (0, lodash_isFunction_js.default)(label) ? label() : label : children;
|
|
13
14
|
if (!contents) return null;
|
|
14
15
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_Text.Text, {
|
|
16
|
+
ref,
|
|
15
17
|
variant,
|
|
16
18
|
color,
|
|
17
19
|
as,
|
|
@@ -27,7 +29,7 @@ const FormLabel = ({ htmlFor, required, label, children, color = "muted", varian
|
|
|
27
29
|
children: "*"
|
|
28
30
|
})]
|
|
29
31
|
});
|
|
30
|
-
};
|
|
32
|
+
});
|
|
31
33
|
FormLabel.displayName = "FormLabel";
|
|
32
34
|
|
|
33
35
|
//#endregion
|
|
@@ -1,27 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
import { UniversalFormLabelProps } from "../types/dist/index.cjs";
|
|
3
3
|
import "../tokens/index.cjs";
|
|
4
|
+
import * as react from "react";
|
|
4
5
|
import { PropsWithChildren } from "react";
|
|
5
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/FormLabel.d.ts
|
|
8
8
|
type HtmlLabelProps = Omit<React.LabelHTMLAttributes<HTMLLabelElement>, 'color'>;
|
|
9
9
|
interface FormLabelProps extends UniversalFormLabelProps, PropsWithChildren, HtmlLabelProps {}
|
|
10
|
-
declare const FormLabel:
|
|
11
|
-
({
|
|
12
|
-
htmlFor,
|
|
13
|
-
required,
|
|
14
|
-
label,
|
|
15
|
-
children,
|
|
16
|
-
color,
|
|
17
|
-
variant,
|
|
18
|
-
hasError,
|
|
19
|
-
showRequiredAsterisk,
|
|
20
|
-
as,
|
|
21
|
-
className,
|
|
22
|
-
...rest
|
|
23
|
-
}: FormLabelProps): react_jsx_runtime0.JSX.Element | null;
|
|
24
|
-
displayName: string;
|
|
25
|
-
};
|
|
10
|
+
declare const FormLabel: react.ForwardRefExoticComponent<FormLabelProps & react.RefAttributes<HTMLElement>>;
|
|
26
11
|
//#endregion
|
|
27
12
|
export { FormLabel, type FormLabelProps };
|
|
@@ -1,27 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
import { UniversalFormLabelProps } from "../types/dist/index.js";
|
|
3
3
|
import "../tokens/index.js";
|
|
4
|
+
import * as react from "react";
|
|
4
5
|
import { PropsWithChildren } from "react";
|
|
5
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/FormLabel.d.ts
|
|
8
8
|
type HtmlLabelProps = Omit<React.LabelHTMLAttributes<HTMLLabelElement>, 'color'>;
|
|
9
9
|
interface FormLabelProps extends UniversalFormLabelProps, PropsWithChildren, HtmlLabelProps {}
|
|
10
|
-
declare const FormLabel:
|
|
11
|
-
({
|
|
12
|
-
htmlFor,
|
|
13
|
-
required,
|
|
14
|
-
label,
|
|
15
|
-
children,
|
|
16
|
-
color,
|
|
17
|
-
variant,
|
|
18
|
-
hasError,
|
|
19
|
-
showRequiredAsterisk,
|
|
20
|
-
as,
|
|
21
|
-
className,
|
|
22
|
-
...rest
|
|
23
|
-
}: FormLabelProps): react_jsx_runtime0.JSX.Element | null;
|
|
24
|
-
displayName: string;
|
|
25
|
-
};
|
|
10
|
+
declare const FormLabel: react.ForwardRefExoticComponent<FormLabelProps & react.RefAttributes<HTMLElement>>;
|
|
26
11
|
//#endregion
|
|
27
12
|
export { FormLabel, type FormLabelProps };
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
import { cx } from "../styles/styler.js";
|
|
3
3
|
import { Text } from "./Text.js";
|
|
4
|
+
import { forwardRef } from "react";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
import { isFunction } from "lodash-es";
|
|
6
7
|
|
|
7
8
|
//#region src/components/FormLabel.tsx
|
|
8
|
-
const FormLabel = ({ htmlFor, required, label, children, color = "muted", variant = "label3", hasError = false, showRequiredAsterisk = false, as = "label", className, ...rest })
|
|
9
|
+
const FormLabel = forwardRef(function FormLabel({ htmlFor, required, label, children, color = "muted", variant = "label3", hasError = false, showRequiredAsterisk = false, as = "label", className, ...rest }, ref) {
|
|
9
10
|
const contents = label ? isFunction(label) ? label() : label : children;
|
|
10
11
|
if (!contents) return null;
|
|
11
12
|
return /* @__PURE__ */ jsxs(Text, {
|
|
13
|
+
ref,
|
|
12
14
|
variant,
|
|
13
15
|
color,
|
|
14
16
|
as,
|
|
@@ -24,7 +26,7 @@ const FormLabel = ({ htmlFor, required, label, children, color = "muted", varian
|
|
|
24
26
|
children: "*"
|
|
25
27
|
})]
|
|
26
28
|
});
|
|
27
|
-
};
|
|
29
|
+
});
|
|
28
30
|
FormLabel.displayName = "FormLabel";
|
|
29
31
|
|
|
30
32
|
//#endregion
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3
3
|
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
4
4
|
const require_styles_styler = require('../styles/styler.cjs');
|
|
5
|
+
let react = require("react");
|
|
5
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
7
|
|
|
7
8
|
//#region src/components/Image.tsx
|
|
@@ -28,8 +29,9 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
28
29
|
*
|
|
29
30
|
* @related [Box](https://uds.build/docs/components/box)
|
|
30
31
|
*/
|
|
31
|
-
function Image({ width: imageWidth, height: imageHeight, src, alt, contentFit, backgroundColor, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, flexBasis, display, overflow, overflowX, overflowY, position, spacing, spacingHorizontal, spacingVertical, spacingBottom, spacingEnd, spacingStart, spacingTop, offset, offsetVertical, offsetHorizontal, offsetBottom, offsetEnd, offsetStart, offsetTop, columnGap, rowGap, ...props }) {
|
|
32
|
+
const Image = (0, react.forwardRef)(function Image({ width: imageWidth, height: imageHeight, src, alt, contentFit, backgroundColor, borderRadius, borderTopStartRadius, borderTopEndRadius, borderBottomStartRadius, borderBottomEndRadius, borderColor, borderStartColor, borderEndColor, borderTopColor, borderBottomColor, borderWidth, borderVerticalWidth, borderHorizontalWidth, borderStartWidth, borderEndWidth, borderTopWidth, borderBottomWidth, alignContent, alignItems, alignSelf, flex, flexDirection, flexGrow, flexShrink, flexWrap, justifyContent, flexBasis, display, overflow, overflowX, overflowY, position, spacing, spacingHorizontal, spacingVertical, spacingBottom, spacingEnd, spacingStart, spacingTop, offset, offsetVertical, offsetHorizontal, offsetBottom, offsetEnd, offsetStart, offsetTop, columnGap, rowGap, ...props }, ref) {
|
|
32
33
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
34
|
+
ref,
|
|
33
35
|
src,
|
|
34
36
|
alt,
|
|
35
37
|
className: require_styles_styler.getStyles({
|
|
@@ -90,7 +92,7 @@ function Image({ width: imageWidth, height: imageHeight, src, alt, contentFit, b
|
|
|
90
92
|
},
|
|
91
93
|
...props
|
|
92
94
|
});
|
|
93
|
-
}
|
|
95
|
+
});
|
|
94
96
|
Image.displayName = "Image";
|
|
95
97
|
|
|
96
98
|
//#endregion
|