@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/tokens/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export{DEFAULT_COLOR_MODE,DEFAULT_COLOR_MODE_FOR_APP,DEFAULT_HIGH_CONTRAST_MODE,DEFAULT_REGION_MODE,DEFAULT_SCALE_MODE,DEFAULT_SCALE_MODE_FOR_APP,FONT_DECLARATIONS_MAP,alwaysPalette,button,defaultTokensConfig,fromEntries,
|
1
|
+
export{DEFAULT_COLOR_MODE,DEFAULT_COLOR_MODE_FOR_APP,DEFAULT_HIGH_CONTRAST_MODE,DEFAULT_REGION_MODE,DEFAULT_SCALE_MODE,DEFAULT_SCALE_MODE_FOR_APP,FONT_DECLARATIONS_MAP,alwaysPalette,button,cartesianProduct,coalesceConfigVariant,configurableProperties,createComponentStateConfig,createComponentStates,createConfigurableProperty,createLayerConfig,createSubComponentConfig,createVariantConfig,createVariantConfigWithComponentStates,createVariantConfigWithProperties,defaultTokensConfig,defaultUniversalTokensConfigAuto,findFixtureType,fontWeightMap,fromEntries,generateClassName,generateDeclaration,generateKeyFromFlatConfigPath,generateSchemaKey,generateStyles,getConfigDefaultValue,getConfigPseudoStateVariables,getConfigPseudoStateVariablesWithSetter,getConfigSubcomponents,getConfigVariantComponentStates,getConfigVariantComponentStatesMatrix,getConfigVariantProperties,getConfigVariantPseudoStates,getConfigVariants,getDefaultButtonBaseMap,isConfigDefaultValue,parseButtonVariantFlat,parseDeprecatedButtonPaletteVariant,setConfigPseudoStateVariable,shadow,statePseudoMapDocsMode,toMinimalDbConfigObject}from"../chunk-6CVEYTLQ.js";export{variants}from"../chunk-N3FKHXEJ.js";export{entries,mapValues}from"../chunk-EWJ3J526.js";export{AVATAR_SIZE_PREFIX,BORDER_RADIUS_PREFIX,BORDER_WIDTH_PREFIX,BUTTON_CSS_VAR_MAP,DARK_COLOR_MODE_CLASSNAME,DEFAULT_COLOR_MODE_CLASSNAME,DEFAULT_SCALE_MODE_CLASSNAME,FONT_FAMILY_PREFIX,FONT_SIZE_PREFIX,FONT_SLANT_PREFIX,FONT_WEIGHT_PREFIX,FONT_WIDTH_PREFIX,ICON_BUTTON_CSS_VAR_MAP,ICON_SIZE_PREFIX,LARGE_SCALE_MODE_CLASSNAME,LIGHT_COLOR_MODE_CLASSNAME,LINE_HEIGHT_PREFIX,MEDIUM_SCALE_MODE_CLASSNAME,MOTION_PREFIX,PSEUDO_STYLE_SELECTOR_MAP,SMALL_SCALE_MODE_CLASSNAME,SPECTRUM_COLOR_PREFIX,TEXT_TRANSFORM_PREFIX,UDS_PREFIX,XLARGE_SCALE_MODE_CLASSNAME,XSMALL_SCALE_MODE_CLASSNAME,XXLARGE_SCALE_MODE_CLASSNAME,XXXLARGE_SCALE_MODE_CLASSNAME}from"../chunk-4G4TBHHL.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var e=require("../chunk-
|
1
|
+
"use strict";var e=require("../chunk-BNLUH23E.cjs");Object.defineProperty(exports,"parseTokens",{enumerable:!0,get:function(){return e.parseTokens}});
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { U as UniversalTokensConfig, C as ColorMode, S as ScaleMode, a as ColorsConfig, H as Hue, b as HueStep, P as PaletteType, c as PaletteConfig
|
1
|
+
import { U as UniversalTokensConfig, C as ColorMode, S as ScaleMode, a as ColorsConfig, H as Hue, b as HueStep, P as PaletteType, c as PaletteConfig } from '../types-d2CfR7zp.cjs';
|
2
2
|
import '@yahoo/uds-icons/types';
|
3
3
|
import 'motion/react';
|
4
4
|
import 'react';
|
5
|
+
import 'type-fest';
|
5
6
|
|
6
7
|
declare function transformColors(colors: ColorsConfig): {
|
7
8
|
_vars: Record<string, string>;
|
@@ -11,31 +12,12 @@ declare function transformColors(colors: ColorsConfig): {
|
|
11
12
|
palette: { [key in PaletteType]: Record<keyof PaletteConfig[key], string>; };
|
12
13
|
};
|
13
14
|
};
|
14
|
-
declare function
|
15
|
-
_vars: Record<string, string>;
|
16
|
-
_raw: FontWeightConfig;
|
17
|
-
tailwindConfig: {
|
18
|
-
thin: FontWeightNumeric;
|
19
|
-
extralight: FontWeightNumeric;
|
20
|
-
light: FontWeightNumeric;
|
21
|
-
regular: FontWeightNumeric;
|
22
|
-
medium: FontWeightNumeric;
|
23
|
-
semibold: FontWeightNumeric;
|
24
|
-
bold: FontWeightNumeric;
|
25
|
-
extrabold: FontWeightNumeric;
|
26
|
-
black: FontWeightNumeric;
|
27
|
-
};
|
28
|
-
};
|
29
|
-
declare function transformString<T extends Record<string, string>>(prefix: string, config: T, transformValue?: (value: T[keyof T]) => string): {
|
15
|
+
declare function transformNumeric<T extends Record<string, number>>(prefix: string, config: T): {
|
30
16
|
_vars: Record<string, string>;
|
31
17
|
_raw: T;
|
32
18
|
tailwindConfig: Record<string, string>;
|
33
19
|
};
|
34
|
-
declare function
|
35
|
-
_vars: {};
|
36
|
-
_raw: {};
|
37
|
-
tailwindConfig: {};
|
38
|
-
} | {
|
20
|
+
declare function transformString<T extends Record<string, string>>(prefix: string, config: T, transformValue?: (value: T[keyof T]) => string): {
|
39
21
|
_vars: Record<string, string>;
|
40
22
|
_raw: T;
|
41
23
|
tailwindConfig: Record<string, string>;
|
@@ -45,7 +27,9 @@ type WebTokens = Omit<UniversalTokensConfig, 'colorMode' | 'scaleMode' | 'fontFa
|
|
45
27
|
scaleMode: Record<ScaleMode, {
|
46
28
|
fontFamily: ReturnType<typeof transformString>;
|
47
29
|
fontSize: ReturnType<typeof transformNumeric>;
|
48
|
-
fontWeight: ReturnType<typeof
|
30
|
+
fontWeight: ReturnType<typeof transformNumeric>;
|
31
|
+
fontSlant: ReturnType<typeof transformNumeric>;
|
32
|
+
fontWidth: ReturnType<typeof transformNumeric>;
|
49
33
|
lineHeight: ReturnType<typeof transformNumeric>;
|
50
34
|
textTransform: ReturnType<typeof transformString>;
|
51
35
|
borderRadius: ReturnType<typeof transformNumeric>;
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { U as UniversalTokensConfig, C as ColorMode, S as ScaleMode, a as ColorsConfig, H as Hue, b as HueStep, P as PaletteType, c as PaletteConfig
|
1
|
+
import { U as UniversalTokensConfig, C as ColorMode, S as ScaleMode, a as ColorsConfig, H as Hue, b as HueStep, P as PaletteType, c as PaletteConfig } from '../types-d2CfR7zp.js';
|
2
2
|
import '@yahoo/uds-icons/types';
|
3
3
|
import 'motion/react';
|
4
4
|
import 'react';
|
5
|
+
import 'type-fest';
|
5
6
|
|
6
7
|
declare function transformColors(colors: ColorsConfig): {
|
7
8
|
_vars: Record<string, string>;
|
@@ -11,31 +12,12 @@ declare function transformColors(colors: ColorsConfig): {
|
|
11
12
|
palette: { [key in PaletteType]: Record<keyof PaletteConfig[key], string>; };
|
12
13
|
};
|
13
14
|
};
|
14
|
-
declare function
|
15
|
-
_vars: Record<string, string>;
|
16
|
-
_raw: FontWeightConfig;
|
17
|
-
tailwindConfig: {
|
18
|
-
thin: FontWeightNumeric;
|
19
|
-
extralight: FontWeightNumeric;
|
20
|
-
light: FontWeightNumeric;
|
21
|
-
regular: FontWeightNumeric;
|
22
|
-
medium: FontWeightNumeric;
|
23
|
-
semibold: FontWeightNumeric;
|
24
|
-
bold: FontWeightNumeric;
|
25
|
-
extrabold: FontWeightNumeric;
|
26
|
-
black: FontWeightNumeric;
|
27
|
-
};
|
28
|
-
};
|
29
|
-
declare function transformString<T extends Record<string, string>>(prefix: string, config: T, transformValue?: (value: T[keyof T]) => string): {
|
15
|
+
declare function transformNumeric<T extends Record<string, number>>(prefix: string, config: T): {
|
30
16
|
_vars: Record<string, string>;
|
31
17
|
_raw: T;
|
32
18
|
tailwindConfig: Record<string, string>;
|
33
19
|
};
|
34
|
-
declare function
|
35
|
-
_vars: {};
|
36
|
-
_raw: {};
|
37
|
-
tailwindConfig: {};
|
38
|
-
} | {
|
20
|
+
declare function transformString<T extends Record<string, string>>(prefix: string, config: T, transformValue?: (value: T[keyof T]) => string): {
|
39
21
|
_vars: Record<string, string>;
|
40
22
|
_raw: T;
|
41
23
|
tailwindConfig: Record<string, string>;
|
@@ -45,7 +27,9 @@ type WebTokens = Omit<UniversalTokensConfig, 'colorMode' | 'scaleMode' | 'fontFa
|
|
45
27
|
scaleMode: Record<ScaleMode, {
|
46
28
|
fontFamily: ReturnType<typeof transformString>;
|
47
29
|
fontSize: ReturnType<typeof transformNumeric>;
|
48
|
-
fontWeight: ReturnType<typeof
|
30
|
+
fontWeight: ReturnType<typeof transformNumeric>;
|
31
|
+
fontSlant: ReturnType<typeof transformNumeric>;
|
32
|
+
fontWidth: ReturnType<typeof transformNumeric>;
|
49
33
|
lineHeight: ReturnType<typeof transformNumeric>;
|
50
34
|
textTransform: ReturnType<typeof transformString>;
|
51
35
|
borderRadius: ReturnType<typeof transformNumeric>;
|
@@ -1 +1 @@
|
|
1
|
-
export{parseTokens}from"../chunk-
|
1
|
+
export{parseTokens}from"../chunk-AFPPCX7S.js";
|