@yahoo/uds 2.11.0 → 3.0.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/cli/ButtonFile2.mock.tsx +11 -0
- package/cli/bin/uds-darwin-arm64-baseline +0 -0
- package/cli/bin/uds-linux-arm64 +0 -0
- package/cli/bin/uds-linux-x64-baseline +0 -0
- package/cli/cli.ts +1 -1
- package/cli/codemods/addCommentAboveComponents.ts +9 -3
- package/cli/codemods/flattenButtonVariant.ts +143 -0
- package/cli/codemods/utils/index.ts +1 -1
- package/cli/commands/codemod/flattenButtonVariant.ts +16 -0
- package/cli/commands/expo/_setup.ts +1 -0
- package/cli/commands/sync.ts +3 -0
- package/cli/preload.ts +1 -0
- package/cli/tailwindcss.d.ts +2 -0
- package/cli/tsconfig.json +30 -8
- package/cli/utils/auth.ts +1 -0
- package/cli/utils/configWorker.ts +11 -3
- package/cli/utils/purgeCSS.ts +21 -9
- package/cli/utils/setupConfigWorker.ts +2 -2
- package/cli/utils/sortKeys.ts +5 -0
- package/cli/utils/types.ts +3 -1
- package/dist/{Text-UCDorZDD.d.cts → Text-yeQcITg9.d.cts} +30 -69
- package/dist/{Text-UCDorZDD.d.ts → Text-yeQcITg9.d.ts} +30 -69
- package/dist/VStack-CJs5afN8.d.ts +145 -0
- package/dist/VStack-GpQHE4xQ.d.cts +145 -0
- package/dist/chunk-4G4TBHHL.js +2 -0
- package/dist/chunk-6CVEYTLQ.js +2 -0
- package/dist/chunk-6XNKVFUM.cjs +2 -0
- package/dist/chunk-AFPPCX7S.js +2 -0
- package/dist/chunk-BNLUH23E.cjs +1 -0
- package/dist/chunk-EWJ3J526.js +2 -0
- package/dist/chunk-FOX6Q5GR.cjs +1 -0
- package/dist/chunk-HTL6WRXY.cjs +1 -0
- package/dist/chunk-J7PUOUXC.cjs +1 -0
- package/dist/chunk-N3FKHXEJ.js +2 -0
- package/dist/chunk-NUEZVMWZ.cjs +1 -0
- package/dist/chunk-O26JIFUR.cjs +3 -0
- package/dist/chunk-S5UKKXRV.js +2 -0
- package/dist/chunk-WCB4EHGZ.js +3 -0
- package/dist/client/index.cjs +2 -2
- package/dist/client/index.d.cts +913 -21
- package/dist/client/index.d.ts +913 -21
- package/dist/client/index.js +3 -3
- package/dist/experimental/client/index.cjs +2 -2
- package/dist/experimental/client/index.d.cts +14 -49
- package/dist/experimental/client/index.d.ts +14 -49
- package/dist/experimental/client/index.js +2 -2
- package/dist/experimental/index.cjs +2 -2
- package/dist/experimental/index.d.cts +4 -55
- package/dist/experimental/index.d.ts +4 -55
- package/dist/experimental/index.js +1 -1
- package/dist/fixtures.cjs +1546 -55
- package/dist/fixtures.d.cts +33 -14
- package/dist/fixtures.d.ts +33 -14
- package/dist/fixtures.js +1519 -49
- package/dist/index-CU_UPAew.d.ts +202 -0
- package/dist/index-DUFUMc1S.d.cts +202 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +245 -128
- package/dist/index.d.ts +245 -128
- package/dist/index.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.cjs +1 -2
- package/dist/tailwind/plugin.d.cts +19 -5
- package/dist/tailwind/plugin.d.ts +19 -5
- package/dist/tailwind/plugin.js +2 -2
- package/dist/tailwind/purger.cjs +1 -1
- package/dist/tailwind/purger.js +2 -2
- package/dist/tailwind/tsMorph.cjs +1 -1
- package/dist/tailwind/tsMorph.js +1 -1
- package/dist/tailwind/utils.cjs +1 -1
- package/dist/tailwind/utils.d.cts +80 -28
- package/dist/tailwind/utils.d.ts +80 -28
- package/dist/tailwind/utils.js +1 -1
- package/dist/tokens/automation/configs.cjs +1 -0
- package/dist/tokens/automation/configs.d.cts +110 -0
- package/dist/tokens/automation/configs.d.ts +110 -0
- package/dist/tokens/automation/configs.js +1 -0
- package/dist/tokens/automation/properties.cjs +1 -0
- package/dist/tokens/automation/properties.d.cts +7 -0
- package/dist/tokens/automation/properties.d.ts +7 -0
- package/dist/tokens/automation/properties.js +1 -0
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +9355 -15
- package/dist/tokens/index.d.ts +9355 -15
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/parseTokens.cjs +1 -1
- package/dist/tokens/parseTokens.d.cts +7 -23
- package/dist/tokens/parseTokens.d.ts +7 -23
- package/dist/tokens/parseTokens.js +1 -1
- package/dist/types-d2CfR7zp.d.cts +10245 -0
- package/dist/types-d2CfR7zp.d.ts +10245 -0
- package/package.json +15 -2
- package/dist/chunk-3G7IRLGN.js +0 -2
- package/dist/chunk-5WBROFT5.cjs +0 -1
- package/dist/chunk-6453EQCC.cjs +0 -1
- package/dist/chunk-7QHJ6LHA.js +0 -1
- package/dist/chunk-EYFQOFYW.cjs +0 -1
- package/dist/chunk-FWF2C6TL.cjs +0 -1
- package/dist/chunk-FYVGDNGL.js +0 -2
- package/dist/chunk-GIJ2FHY5.cjs +0 -1
- package/dist/chunk-GL5JI7EX.cjs +0 -2
- package/dist/chunk-MOUM7BAW.js +0 -2
- package/dist/chunk-PE2P7J44.js +0 -2
- package/dist/chunk-RXSJCGB3.cjs +0 -1
- package/dist/chunk-SUASN3GG.js +0 -2
- package/dist/chunk-U2K4DT7E.js +0 -3
- package/dist/chunk-VPR62GYQ.js +0 -2
- package/dist/chunk-WJ55DEUW.cjs +0 -2
- package/dist/chunk-X6F5UEQ5.js +0 -2
- package/dist/chunk-XZCEFUNX.cjs +0 -2
- package/dist/types-DPT0rst4.d.cts +0 -991
- package/dist/types-DPT0rst4.d.ts +0 -991
- /package/dist/{motionFeatures-HQUM526D.cjs → motionFeatures-6LIGGXPL.cjs} +0 -0
- /package/dist/{motionFeatures-PRT45UQH.js → motionFeatures-SJISLQ4M.js} +0 -0
package/dist/fixtures.d.cts
CHANGED
@@ -1,29 +1,31 @@
|
|
1
|
-
import type { BackgroundPaletteAlias, BorderWidth, ButtonClassName, ButtonColorProperty, ButtonKind, ButtonMotionEffect, ButtonSize, ButtonState, ButtonVariant,
|
1
|
+
import type { AvatarSize, BackgroundPaletteAlias, BadgeSize, BadgeVariant, BorderWidth, ButtonClassName, ButtonColorProperty, ButtonKind, ButtonMotionEffect, ButtonPalette, ButtonSize, ButtonState, ButtonVariant, ButtonVariantFlat, CheckboxSize, CheckboxVariant, ChipSize, ChipVariant, ColorMode, FontAlias, FontFamilyCDNUrl, FontWeightDescriptive, ForegroundPaletteAlias, Hue, HueStep, IconButtonClassName, IconButtonSize, IconSize, IconVariant, InputSize, LinePaletteAlias, MotionSpringConfigOptions, MotionVariant, MotionVariantSpeed, PaletteValue, RegionMode, ScaleEffectMap, ScaleMode, ShadowColor, ShadowOffset, ShadowPaletteAlias, ShadowSpreadRadius, ShadowVariant, SpacingAlias, SwitchSize, TextProperty, TextTransform, TextVariant, TShirtSize } from '@yahoo/uds/tokens';
|
2
2
|
declare const colorModes: ColorMode[];
|
3
3
|
declare const scaleModes: ScaleMode[];
|
4
4
|
declare const regionModes: RegionMode[];
|
5
5
|
declare const hues: Hue[];
|
6
6
|
declare const hueSteps: HueStep[];
|
7
7
|
declare const spectrumColors: ("gray-0" | "gray-1" | "gray-2" | "gray-3" | "gray-4" | "gray-5" | "gray-6" | "gray-7" | "gray-8" | "gray-9" | "gray-10" | "gray-11" | "gray-12" | "gray-13" | "gray-14" | "gray-15" | "purple-0" | "purple-1" | "purple-2" | "purple-3" | "purple-4" | "purple-5" | "purple-6" | "purple-7" | "purple-8" | "purple-9" | "purple-10" | "purple-11" | "purple-12" | "purple-13" | "purple-14" | "purple-15" | "indigo-0" | "indigo-1" | "indigo-2" | "indigo-3" | "indigo-4" | "indigo-5" | "indigo-6" | "indigo-7" | "indigo-8" | "indigo-9" | "indigo-10" | "indigo-11" | "indigo-12" | "indigo-13" | "indigo-14" | "indigo-15" | "blue-0" | "blue-1" | "blue-2" | "blue-3" | "blue-4" | "blue-5" | "blue-6" | "blue-7" | "blue-8" | "blue-9" | "blue-10" | "blue-11" | "blue-12" | "blue-13" | "blue-14" | "blue-15" | "cyan-0" | "cyan-1" | "cyan-2" | "cyan-3" | "cyan-4" | "cyan-5" | "cyan-6" | "cyan-7" | "cyan-8" | "cyan-9" | "cyan-10" | "cyan-11" | "cyan-12" | "cyan-13" | "cyan-14" | "cyan-15" | "teal-0" | "teal-1" | "teal-2" | "teal-3" | "teal-4" | "teal-5" | "teal-6" | "teal-7" | "teal-8" | "teal-9" | "teal-10" | "teal-11" | "teal-12" | "teal-13" | "teal-14" | "teal-15" | "mint-0" | "mint-1" | "mint-2" | "mint-3" | "mint-4" | "mint-5" | "mint-6" | "mint-7" | "mint-8" | "mint-9" | "mint-10" | "mint-11" | "mint-12" | "mint-13" | "mint-14" | "mint-15" | "green-0" | "green-1" | "green-2" | "green-3" | "green-4" | "green-5" | "green-6" | "green-7" | "green-8" | "green-9" | "green-10" | "green-11" | "green-12" | "green-13" | "green-14" | "green-15" | "lime-0" | "lime-1" | "lime-2" | "lime-3" | "lime-4" | "lime-5" | "lime-6" | "lime-7" | "lime-8" | "lime-9" | "lime-10" | "lime-11" | "lime-12" | "lime-13" | "lime-14" | "lime-15" | "citron-0" | "citron-1" | "citron-2" | "citron-3" | "citron-4" | "citron-5" | "citron-6" | "citron-7" | "citron-8" | "citron-9" | "citron-10" | "citron-11" | "citron-12" | "citron-13" | "citron-14" | "citron-15" | "yellow-0" | "yellow-1" | "yellow-2" | "yellow-3" | "yellow-4" | "yellow-5" | "yellow-6" | "yellow-7" | "yellow-8" | "yellow-9" | "yellow-10" | "yellow-11" | "yellow-12" | "yellow-13" | "yellow-14" | "yellow-15" | "brown-0" | "brown-1" | "brown-2" | "brown-3" | "brown-4" | "brown-5" | "brown-6" | "brown-7" | "brown-8" | "brown-9" | "brown-10" | "brown-11" | "brown-12" | "brown-13" | "brown-14" | "brown-15" | "nude-0" | "nude-1" | "nude-2" | "nude-3" | "nude-4" | "nude-5" | "nude-6" | "nude-7" | "nude-8" | "nude-9" | "nude-10" | "nude-11" | "nude-12" | "nude-13" | "nude-14" | "nude-15" | "orange-0" | "orange-1" | "orange-2" | "orange-3" | "orange-4" | "orange-5" | "orange-6" | "orange-7" | "orange-8" | "orange-9" | "orange-10" | "orange-11" | "orange-12" | "orange-13" | "orange-14" | "orange-15" | "sunset-0" | "sunset-1" | "sunset-2" | "sunset-3" | "sunset-4" | "sunset-5" | "sunset-6" | "sunset-7" | "sunset-8" | "sunset-9" | "sunset-10" | "sunset-11" | "sunset-12" | "sunset-13" | "sunset-14" | "sunset-15" | "red-0" | "red-1" | "red-2" | "red-3" | "red-4" | "red-5" | "red-6" | "red-7" | "red-8" | "red-9" | "red-10" | "red-11" | "red-12" | "red-13" | "red-14" | "red-15" | "rose-0" | "rose-1" | "rose-2" | "rose-3" | "rose-4" | "rose-5" | "rose-6" | "rose-7" | "rose-8" | "rose-9" | "rose-10" | "rose-11" | "rose-12" | "rose-13" | "rose-14" | "rose-15" | "pink-0" | "pink-1" | "pink-2" | "pink-3" | "pink-4" | "pink-5" | "pink-6" | "pink-7" | "pink-8" | "pink-9" | "pink-10" | "pink-11" | "pink-12" | "pink-13" | "pink-14" | "pink-15" | "magenta-0" | "magenta-1" | "magenta-2" | "magenta-3" | "magenta-4" | "magenta-5" | "magenta-6" | "magenta-7" | "magenta-8" | "magenta-9" | "magenta-10" | "magenta-11" | "magenta-12" | "magenta-13" | "magenta-14" | "magenta-15" | "carbon-0" | "carbon-1" | "carbon-2" | "carbon-3" | "carbon-4" | "carbon-5" | "carbon-6" | "carbon-7" | "carbon-8" | "carbon-9" | "carbon-10" | "carbon-11" | "carbon-12" | "carbon-13" | "carbon-14" | "carbon-15")[];
|
8
|
-
declare const corePaletteColors: CorePaletteAlias[];
|
9
8
|
declare const backgroundPaletteColors: BackgroundPaletteAlias[];
|
10
9
|
declare const foregroundPaletteColors: ForegroundPaletteAlias[];
|
11
10
|
declare const linePaletteColors: LinePaletteAlias[];
|
12
11
|
declare const alwaysPaletteAliases: ("transparent" | "white" | "black" | "current")[];
|
13
|
-
declare const
|
14
|
-
declare const
|
15
|
-
declare const
|
12
|
+
declare const shadowPaletteColors: ShadowPaletteAlias[];
|
13
|
+
declare const shadowColors: ShadowColor[];
|
14
|
+
declare const backgroundColors: ("transparent" | "white" | "black" | "current" | BackgroundPaletteAlias)[];
|
15
|
+
declare const foregroundColors: ("transparent" | "white" | "black" | "current" | ForegroundPaletteAlias)[];
|
16
|
+
declare const lineColors: ("transparent" | "white" | "black" | "current" | LinePaletteAlias)[];
|
16
17
|
declare const palette: {
|
17
|
-
core: CorePaletteAlias[];
|
18
18
|
background: BackgroundPaletteAlias[];
|
19
19
|
foreground: ForegroundPaletteAlias[];
|
20
20
|
line: LinePaletteAlias[];
|
21
|
+
shadow: ShadowPaletteAlias[];
|
21
22
|
};
|
22
23
|
declare const tailwindColorsAsUds: Record<"gray" | "purple" | "indigo" | "blue" | "cyan" | "teal" | "green" | "lime" | "yellow" | "orange" | "red" | "rose" | "pink" | "transparent" | "white" | "black" | "current" | "inherit" | "slate" | "zinc" | "neutral" | "stone" | "amber" | "emerald" | "sky" | "violet" | "fuchsia", Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
|
24
|
+
declare function sortPalette<T extends Record<string, PaletteValue>>(palette: T, ordering?: string[]): Array<[string, PaletteValue]>;
|
23
25
|
declare const textVariants: TextVariant[];
|
24
26
|
declare const textProperties: TextProperty[];
|
25
27
|
declare const fontAliases: FontAlias[];
|
26
|
-
declare const fontIds: ("centra-no2" | "inter" | "roboto-mono" | "yahoo-sans" | "yahoo-sans-cr4" | "yahoo-product-sans" | "yahoo-sans-condensed" | "yahoo-serif-display" | "yahoo-serif-text")[];
|
28
|
+
declare const fontIds: ("centra-no2" | "inter" | "roboto-mono" | "yahoo-sans" | "yahoo-sans-cr4" | "yahoo-product-sans" | "yahoo-product-sans-extended" | "yahoo-sans-condensed" | "yahoo-serif-display" | "yahoo-serif-text")[];
|
27
29
|
declare const fontUrls: FontFamilyCDNUrl[];
|
28
30
|
declare const fontWeights: FontWeightDescriptive[];
|
29
31
|
declare const textTransforms: TextTransform[];
|
@@ -45,7 +47,7 @@ declare const lineHeightRamp: {
|
|
45
47
|
xxLarge: Record<TextVariant, number>;
|
46
48
|
xxxLarge: Record<TextVariant, number>;
|
47
49
|
};
|
48
|
-
declare const avatarSizes:
|
50
|
+
declare const avatarSizes: AvatarSize[];
|
49
51
|
declare const avatarShapes: TShirtSize[];
|
50
52
|
declare const borderRadii: TShirtSize[];
|
51
53
|
declare const borderRadiusRamp: {
|
@@ -72,13 +74,19 @@ declare const iconVariants: IconVariant[];
|
|
72
74
|
/** Preserve order we want to display */
|
73
75
|
declare const spacingAliases: SpacingAlias[];
|
74
76
|
declare const spacingMap: Record<SpacingAlias, number>;
|
75
|
-
|
76
|
-
declare const
|
77
|
-
|
78
|
-
declare const
|
77
|
+
declare const shadowOffsets: ShadowOffset[];
|
78
|
+
declare const shadowOffsetMap: Record<ShadowOffset, number>;
|
79
|
+
declare const shadowSpreadRadii: ShadowSpreadRadius[];
|
80
|
+
declare const shadowSpreadRadiusMap: Record<ShadowSpreadRadius, number>;
|
81
|
+
declare const shadowOpacities: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "50" | "100" | "75" | "17" | "18" | "19" | "21" | "22" | "23" | "25" | "26" | "27" | "29" | "30" | "31" | "33" | "34" | "35" | "37" | "38" | "39" | "41" | "42" | "43" | "45" | "46" | "47" | "49" | "51" | "53" | "54" | "55" | "57" | "58" | "59" | "61" | "62" | "63" | "65" | "66" | "67" | "68" | "69" | "70" | "71" | "73" | "74" | "76" | "77" | "78" | "79" | "81" | "82" | "83" | "84" | "85" | "86" | "87" | "88" | "89" | "90" | "91" | "92" | "93" | "94" | "95" | "97" | "98" | "99")[];
|
82
|
+
declare const shadowOpacityMap: Record<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "50" | "100" | "75" | "17" | "18" | "19" | "21" | "22" | "23" | "25" | "26" | "27" | "29" | "30" | "31" | "33" | "34" | "35" | "37" | "38" | "39" | "41" | "42" | "43" | "45" | "46" | "47" | "49" | "51" | "53" | "54" | "55" | "57" | "58" | "59" | "61" | "62" | "63" | "65" | "66" | "67" | "68" | "69" | "70" | "71" | "73" | "74" | "76" | "77" | "78" | "79" | "81" | "82" | "83" | "84" | "85" | "86" | "87" | "88" | "89" | "90" | "91" | "92" | "93" | "94" | "95" | "97" | "98" | "99", number>;
|
79
83
|
declare const tshirtSizes: TShirtSize[];
|
80
84
|
declare const buttonVariants: ButtonVariant[];
|
81
|
-
declare const
|
85
|
+
declare const buttonVariantsFlat: ButtonVariantFlat[];
|
86
|
+
declare const buttonVariantsSecondary: ButtonVariantFlat[];
|
87
|
+
declare const buttonVariantsTertiary: ButtonVariantFlat[];
|
88
|
+
declare const buttonVariantsPrimary: ButtonVariantFlat[];
|
89
|
+
declare const buttonPalettes: ButtonPalette[];
|
82
90
|
declare const buttonSizes: import("@yahoo/uds/tokens").TShirtSizeCommon[];
|
83
91
|
declare const buttonStates: ButtonState[];
|
84
92
|
declare const buttonKinds: ButtonKind[];
|
@@ -90,9 +98,20 @@ declare const buttonMotionEffects: ButtonMotionEffect[];
|
|
90
98
|
declare const buttonClassNames: ButtonClassName[];
|
91
99
|
declare const iconButtonSizes: IconButtonSize[];
|
92
100
|
declare const iconButtonClassNames: IconButtonClassName[];
|
101
|
+
declare const inputSizes: InputSize[];
|
93
102
|
declare const motionVariants: MotionVariant[];
|
94
103
|
declare const motionVariantSpeeds: MotionVariantSpeed[];
|
95
104
|
declare const motionSpringConfig: Required<Pick<import("framer-motion").Spring, MotionSpringConfigOptions>>[];
|
96
105
|
declare const motionSpringConfigOptions: MotionSpringConfigOptions[];
|
97
106
|
declare const scaleEffectMap: ScaleEffectMap;
|
98
|
-
|
107
|
+
declare const shadowVariants: ShadowVariant[];
|
108
|
+
declare const shadowVariantsInvert: ("xs-invert" | "sm-invert" | "md-invert" | "lg-invert" | "xl-invert" | "2xl-invert")[];
|
109
|
+
declare const shadowVariantsWithInvert: ("xs-invert" | "sm-invert" | "md-invert" | "lg-invert" | "xl-invert" | "2xl-invert" | ShadowVariant)[];
|
110
|
+
declare const checkboxVariants: CheckboxVariant[];
|
111
|
+
declare const checkboxSizes: CheckboxSize[];
|
112
|
+
declare const switchSizes: SwitchSize[];
|
113
|
+
declare const chipVariants: ChipVariant[];
|
114
|
+
declare const chipSizes: ChipSize[];
|
115
|
+
declare const badgeVariants: BadgeVariant[];
|
116
|
+
declare const badgeSizes: BadgeSize[];
|
117
|
+
export { alwaysPaletteAliases, avatarShapes, avatarSizes, backgroundColors, backgroundPaletteColors, badgeSizes, badgeVariants, borderRadii, borderRadiusRamp, borderWidthRamp, borderWidths, buttonClassNames, buttonColorProperties, buttonIconSvgSize, buttonKinds, buttonMotionEffects, buttonMotionProperties, buttonPalettes, buttonSizeProperties, buttonSizes, buttonStates, buttonVariants, buttonVariantsFlat, buttonVariantsPrimary, buttonVariantsSecondary, buttonVariantsTertiary, checkboxSizes, checkboxVariants, chipSizes, chipVariants, colorModes, fontAliases, fontIds, fontSizeRamp, fontUrls, fontWeights, foregroundColors, foregroundPaletteColors, hues, hueSteps, iconButtonClassNames, iconButtonSizes, iconSizes, iconVariants, inputSizes, lineColors, lineHeightRamp, linePaletteColors, motionSpringConfig, motionSpringConfigOptions, motionVariants, motionVariantSpeeds, palette, regionModes, scaleEffectMap, scaleModes, shadowColors, shadowOffsetMap, shadowOffsets, shadowOpacities, shadowOpacityMap, shadowPaletteColors, shadowSpreadRadii, shadowSpreadRadiusMap, shadowVariants, shadowVariantsInvert, shadowVariantsWithInvert, sortPalette, spacingAliases, spacingMap, spectrumColors, switchSizes, tailwindColorsAsUds, textProperties, textTransforms, textVariants, tshirtSizes, };
|
package/dist/fixtures.d.ts
CHANGED
@@ -1,29 +1,31 @@
|
|
1
|
-
import type { BackgroundPaletteAlias, BorderWidth, ButtonClassName, ButtonColorProperty, ButtonKind, ButtonMotionEffect, ButtonSize, ButtonState, ButtonVariant,
|
1
|
+
import type { AvatarSize, BackgroundPaletteAlias, BadgeSize, BadgeVariant, BorderWidth, ButtonClassName, ButtonColorProperty, ButtonKind, ButtonMotionEffect, ButtonPalette, ButtonSize, ButtonState, ButtonVariant, ButtonVariantFlat, CheckboxSize, CheckboxVariant, ChipSize, ChipVariant, ColorMode, FontAlias, FontFamilyCDNUrl, FontWeightDescriptive, ForegroundPaletteAlias, Hue, HueStep, IconButtonClassName, IconButtonSize, IconSize, IconVariant, InputSize, LinePaletteAlias, MotionSpringConfigOptions, MotionVariant, MotionVariantSpeed, PaletteValue, RegionMode, ScaleEffectMap, ScaleMode, ShadowColor, ShadowOffset, ShadowPaletteAlias, ShadowSpreadRadius, ShadowVariant, SpacingAlias, SwitchSize, TextProperty, TextTransform, TextVariant, TShirtSize } from '@yahoo/uds/tokens';
|
2
2
|
declare const colorModes: ColorMode[];
|
3
3
|
declare const scaleModes: ScaleMode[];
|
4
4
|
declare const regionModes: RegionMode[];
|
5
5
|
declare const hues: Hue[];
|
6
6
|
declare const hueSteps: HueStep[];
|
7
7
|
declare const spectrumColors: ("gray-0" | "gray-1" | "gray-2" | "gray-3" | "gray-4" | "gray-5" | "gray-6" | "gray-7" | "gray-8" | "gray-9" | "gray-10" | "gray-11" | "gray-12" | "gray-13" | "gray-14" | "gray-15" | "purple-0" | "purple-1" | "purple-2" | "purple-3" | "purple-4" | "purple-5" | "purple-6" | "purple-7" | "purple-8" | "purple-9" | "purple-10" | "purple-11" | "purple-12" | "purple-13" | "purple-14" | "purple-15" | "indigo-0" | "indigo-1" | "indigo-2" | "indigo-3" | "indigo-4" | "indigo-5" | "indigo-6" | "indigo-7" | "indigo-8" | "indigo-9" | "indigo-10" | "indigo-11" | "indigo-12" | "indigo-13" | "indigo-14" | "indigo-15" | "blue-0" | "blue-1" | "blue-2" | "blue-3" | "blue-4" | "blue-5" | "blue-6" | "blue-7" | "blue-8" | "blue-9" | "blue-10" | "blue-11" | "blue-12" | "blue-13" | "blue-14" | "blue-15" | "cyan-0" | "cyan-1" | "cyan-2" | "cyan-3" | "cyan-4" | "cyan-5" | "cyan-6" | "cyan-7" | "cyan-8" | "cyan-9" | "cyan-10" | "cyan-11" | "cyan-12" | "cyan-13" | "cyan-14" | "cyan-15" | "teal-0" | "teal-1" | "teal-2" | "teal-3" | "teal-4" | "teal-5" | "teal-6" | "teal-7" | "teal-8" | "teal-9" | "teal-10" | "teal-11" | "teal-12" | "teal-13" | "teal-14" | "teal-15" | "mint-0" | "mint-1" | "mint-2" | "mint-3" | "mint-4" | "mint-5" | "mint-6" | "mint-7" | "mint-8" | "mint-9" | "mint-10" | "mint-11" | "mint-12" | "mint-13" | "mint-14" | "mint-15" | "green-0" | "green-1" | "green-2" | "green-3" | "green-4" | "green-5" | "green-6" | "green-7" | "green-8" | "green-9" | "green-10" | "green-11" | "green-12" | "green-13" | "green-14" | "green-15" | "lime-0" | "lime-1" | "lime-2" | "lime-3" | "lime-4" | "lime-5" | "lime-6" | "lime-7" | "lime-8" | "lime-9" | "lime-10" | "lime-11" | "lime-12" | "lime-13" | "lime-14" | "lime-15" | "citron-0" | "citron-1" | "citron-2" | "citron-3" | "citron-4" | "citron-5" | "citron-6" | "citron-7" | "citron-8" | "citron-9" | "citron-10" | "citron-11" | "citron-12" | "citron-13" | "citron-14" | "citron-15" | "yellow-0" | "yellow-1" | "yellow-2" | "yellow-3" | "yellow-4" | "yellow-5" | "yellow-6" | "yellow-7" | "yellow-8" | "yellow-9" | "yellow-10" | "yellow-11" | "yellow-12" | "yellow-13" | "yellow-14" | "yellow-15" | "brown-0" | "brown-1" | "brown-2" | "brown-3" | "brown-4" | "brown-5" | "brown-6" | "brown-7" | "brown-8" | "brown-9" | "brown-10" | "brown-11" | "brown-12" | "brown-13" | "brown-14" | "brown-15" | "nude-0" | "nude-1" | "nude-2" | "nude-3" | "nude-4" | "nude-5" | "nude-6" | "nude-7" | "nude-8" | "nude-9" | "nude-10" | "nude-11" | "nude-12" | "nude-13" | "nude-14" | "nude-15" | "orange-0" | "orange-1" | "orange-2" | "orange-3" | "orange-4" | "orange-5" | "orange-6" | "orange-7" | "orange-8" | "orange-9" | "orange-10" | "orange-11" | "orange-12" | "orange-13" | "orange-14" | "orange-15" | "sunset-0" | "sunset-1" | "sunset-2" | "sunset-3" | "sunset-4" | "sunset-5" | "sunset-6" | "sunset-7" | "sunset-8" | "sunset-9" | "sunset-10" | "sunset-11" | "sunset-12" | "sunset-13" | "sunset-14" | "sunset-15" | "red-0" | "red-1" | "red-2" | "red-3" | "red-4" | "red-5" | "red-6" | "red-7" | "red-8" | "red-9" | "red-10" | "red-11" | "red-12" | "red-13" | "red-14" | "red-15" | "rose-0" | "rose-1" | "rose-2" | "rose-3" | "rose-4" | "rose-5" | "rose-6" | "rose-7" | "rose-8" | "rose-9" | "rose-10" | "rose-11" | "rose-12" | "rose-13" | "rose-14" | "rose-15" | "pink-0" | "pink-1" | "pink-2" | "pink-3" | "pink-4" | "pink-5" | "pink-6" | "pink-7" | "pink-8" | "pink-9" | "pink-10" | "pink-11" | "pink-12" | "pink-13" | "pink-14" | "pink-15" | "magenta-0" | "magenta-1" | "magenta-2" | "magenta-3" | "magenta-4" | "magenta-5" | "magenta-6" | "magenta-7" | "magenta-8" | "magenta-9" | "magenta-10" | "magenta-11" | "magenta-12" | "magenta-13" | "magenta-14" | "magenta-15" | "carbon-0" | "carbon-1" | "carbon-2" | "carbon-3" | "carbon-4" | "carbon-5" | "carbon-6" | "carbon-7" | "carbon-8" | "carbon-9" | "carbon-10" | "carbon-11" | "carbon-12" | "carbon-13" | "carbon-14" | "carbon-15")[];
|
8
|
-
declare const corePaletteColors: CorePaletteAlias[];
|
9
8
|
declare const backgroundPaletteColors: BackgroundPaletteAlias[];
|
10
9
|
declare const foregroundPaletteColors: ForegroundPaletteAlias[];
|
11
10
|
declare const linePaletteColors: LinePaletteAlias[];
|
12
11
|
declare const alwaysPaletteAliases: ("transparent" | "white" | "black" | "current")[];
|
13
|
-
declare const
|
14
|
-
declare const
|
15
|
-
declare const
|
12
|
+
declare const shadowPaletteColors: ShadowPaletteAlias[];
|
13
|
+
declare const shadowColors: ShadowColor[];
|
14
|
+
declare const backgroundColors: ("transparent" | "white" | "black" | "current" | BackgroundPaletteAlias)[];
|
15
|
+
declare const foregroundColors: ("transparent" | "white" | "black" | "current" | ForegroundPaletteAlias)[];
|
16
|
+
declare const lineColors: ("transparent" | "white" | "black" | "current" | LinePaletteAlias)[];
|
16
17
|
declare const palette: {
|
17
|
-
core: CorePaletteAlias[];
|
18
18
|
background: BackgroundPaletteAlias[];
|
19
19
|
foreground: ForegroundPaletteAlias[];
|
20
20
|
line: LinePaletteAlias[];
|
21
|
+
shadow: ShadowPaletteAlias[];
|
21
22
|
};
|
22
23
|
declare const tailwindColorsAsUds: Record<"gray" | "purple" | "indigo" | "blue" | "cyan" | "teal" | "green" | "lime" | "yellow" | "orange" | "red" | "rose" | "pink" | "transparent" | "white" | "black" | "current" | "inherit" | "slate" | "zinc" | "neutral" | "stone" | "amber" | "emerald" | "sky" | "violet" | "fuchsia", Record<"50" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "950", string>>;
|
24
|
+
declare function sortPalette<T extends Record<string, PaletteValue>>(palette: T, ordering?: string[]): Array<[string, PaletteValue]>;
|
23
25
|
declare const textVariants: TextVariant[];
|
24
26
|
declare const textProperties: TextProperty[];
|
25
27
|
declare const fontAliases: FontAlias[];
|
26
|
-
declare const fontIds: ("centra-no2" | "inter" | "roboto-mono" | "yahoo-sans" | "yahoo-sans-cr4" | "yahoo-product-sans" | "yahoo-sans-condensed" | "yahoo-serif-display" | "yahoo-serif-text")[];
|
28
|
+
declare const fontIds: ("centra-no2" | "inter" | "roboto-mono" | "yahoo-sans" | "yahoo-sans-cr4" | "yahoo-product-sans" | "yahoo-product-sans-extended" | "yahoo-sans-condensed" | "yahoo-serif-display" | "yahoo-serif-text")[];
|
27
29
|
declare const fontUrls: FontFamilyCDNUrl[];
|
28
30
|
declare const fontWeights: FontWeightDescriptive[];
|
29
31
|
declare const textTransforms: TextTransform[];
|
@@ -45,7 +47,7 @@ declare const lineHeightRamp: {
|
|
45
47
|
xxLarge: Record<TextVariant, number>;
|
46
48
|
xxxLarge: Record<TextVariant, number>;
|
47
49
|
};
|
48
|
-
declare const avatarSizes:
|
50
|
+
declare const avatarSizes: AvatarSize[];
|
49
51
|
declare const avatarShapes: TShirtSize[];
|
50
52
|
declare const borderRadii: TShirtSize[];
|
51
53
|
declare const borderRadiusRamp: {
|
@@ -72,13 +74,19 @@ declare const iconVariants: IconVariant[];
|
|
72
74
|
/** Preserve order we want to display */
|
73
75
|
declare const spacingAliases: SpacingAlias[];
|
74
76
|
declare const spacingMap: Record<SpacingAlias, number>;
|
75
|
-
|
76
|
-
declare const
|
77
|
-
|
78
|
-
declare const
|
77
|
+
declare const shadowOffsets: ShadowOffset[];
|
78
|
+
declare const shadowOffsetMap: Record<ShadowOffset, number>;
|
79
|
+
declare const shadowSpreadRadii: ShadowSpreadRadius[];
|
80
|
+
declare const shadowSpreadRadiusMap: Record<ShadowSpreadRadius, number>;
|
81
|
+
declare const shadowOpacities: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "50" | "100" | "75" | "17" | "18" | "19" | "21" | "22" | "23" | "25" | "26" | "27" | "29" | "30" | "31" | "33" | "34" | "35" | "37" | "38" | "39" | "41" | "42" | "43" | "45" | "46" | "47" | "49" | "51" | "53" | "54" | "55" | "57" | "58" | "59" | "61" | "62" | "63" | "65" | "66" | "67" | "68" | "69" | "70" | "71" | "73" | "74" | "76" | "77" | "78" | "79" | "81" | "82" | "83" | "84" | "85" | "86" | "87" | "88" | "89" | "90" | "91" | "92" | "93" | "94" | "95" | "97" | "98" | "99")[];
|
82
|
+
declare const shadowOpacityMap: Record<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "50" | "100" | "75" | "17" | "18" | "19" | "21" | "22" | "23" | "25" | "26" | "27" | "29" | "30" | "31" | "33" | "34" | "35" | "37" | "38" | "39" | "41" | "42" | "43" | "45" | "46" | "47" | "49" | "51" | "53" | "54" | "55" | "57" | "58" | "59" | "61" | "62" | "63" | "65" | "66" | "67" | "68" | "69" | "70" | "71" | "73" | "74" | "76" | "77" | "78" | "79" | "81" | "82" | "83" | "84" | "85" | "86" | "87" | "88" | "89" | "90" | "91" | "92" | "93" | "94" | "95" | "97" | "98" | "99", number>;
|
79
83
|
declare const tshirtSizes: TShirtSize[];
|
80
84
|
declare const buttonVariants: ButtonVariant[];
|
81
|
-
declare const
|
85
|
+
declare const buttonVariantsFlat: ButtonVariantFlat[];
|
86
|
+
declare const buttonVariantsSecondary: ButtonVariantFlat[];
|
87
|
+
declare const buttonVariantsTertiary: ButtonVariantFlat[];
|
88
|
+
declare const buttonVariantsPrimary: ButtonVariantFlat[];
|
89
|
+
declare const buttonPalettes: ButtonPalette[];
|
82
90
|
declare const buttonSizes: import("@yahoo/uds/tokens").TShirtSizeCommon[];
|
83
91
|
declare const buttonStates: ButtonState[];
|
84
92
|
declare const buttonKinds: ButtonKind[];
|
@@ -90,9 +98,20 @@ declare const buttonMotionEffects: ButtonMotionEffect[];
|
|
90
98
|
declare const buttonClassNames: ButtonClassName[];
|
91
99
|
declare const iconButtonSizes: IconButtonSize[];
|
92
100
|
declare const iconButtonClassNames: IconButtonClassName[];
|
101
|
+
declare const inputSizes: InputSize[];
|
93
102
|
declare const motionVariants: MotionVariant[];
|
94
103
|
declare const motionVariantSpeeds: MotionVariantSpeed[];
|
95
104
|
declare const motionSpringConfig: Required<Pick<import("framer-motion").Spring, MotionSpringConfigOptions>>[];
|
96
105
|
declare const motionSpringConfigOptions: MotionSpringConfigOptions[];
|
97
106
|
declare const scaleEffectMap: ScaleEffectMap;
|
98
|
-
|
107
|
+
declare const shadowVariants: ShadowVariant[];
|
108
|
+
declare const shadowVariantsInvert: ("xs-invert" | "sm-invert" | "md-invert" | "lg-invert" | "xl-invert" | "2xl-invert")[];
|
109
|
+
declare const shadowVariantsWithInvert: ("xs-invert" | "sm-invert" | "md-invert" | "lg-invert" | "xl-invert" | "2xl-invert" | ShadowVariant)[];
|
110
|
+
declare const checkboxVariants: CheckboxVariant[];
|
111
|
+
declare const checkboxSizes: CheckboxSize[];
|
112
|
+
declare const switchSizes: SwitchSize[];
|
113
|
+
declare const chipVariants: ChipVariant[];
|
114
|
+
declare const chipSizes: ChipSize[];
|
115
|
+
declare const badgeVariants: BadgeVariant[];
|
116
|
+
declare const badgeSizes: BadgeSize[];
|
117
|
+
export { alwaysPaletteAliases, avatarShapes, avatarSizes, backgroundColors, backgroundPaletteColors, badgeSizes, badgeVariants, borderRadii, borderRadiusRamp, borderWidthRamp, borderWidths, buttonClassNames, buttonColorProperties, buttonIconSvgSize, buttonKinds, buttonMotionEffects, buttonMotionProperties, buttonPalettes, buttonSizeProperties, buttonSizes, buttonStates, buttonVariants, buttonVariantsFlat, buttonVariantsPrimary, buttonVariantsSecondary, buttonVariantsTertiary, checkboxSizes, checkboxVariants, chipSizes, chipVariants, colorModes, fontAliases, fontIds, fontSizeRamp, fontUrls, fontWeights, foregroundColors, foregroundPaletteColors, hues, hueSteps, iconButtonClassNames, iconButtonSizes, iconSizes, iconVariants, inputSizes, lineColors, lineHeightRamp, linePaletteColors, motionSpringConfig, motionSpringConfigOptions, motionVariants, motionVariantSpeeds, palette, regionModes, scaleEffectMap, scaleModes, shadowColors, shadowOffsetMap, shadowOffsets, shadowOpacities, shadowOpacityMap, shadowPaletteColors, shadowSpreadRadii, shadowSpreadRadiusMap, shadowVariants, shadowVariantsInvert, shadowVariantsWithInvert, sortPalette, spacingAliases, spacingMap, spectrumColors, switchSizes, tailwindColorsAsUds, textProperties, textTransforms, textVariants, tshirtSizes, };
|