@yahoo/uds 2.10.2 → 3.0.0-beta.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/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 +1 -1
- 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/tailwindcss.d.ts +2 -0
- package/cli/tsconfig.json +30 -8
- package/cli/utils/configWorker.ts +1 -1
- package/cli/utils/purgeCSS.ts +3 -3
- package/cli/utils/sortKeys.ts +5 -0
- package/dist/{Text-UCDorZDD.d.cts → Text-DC5H-ljU.d.cts} +29 -68
- package/dist/{Text-UCDorZDD.d.ts → Text-DC5H-ljU.d.ts} +29 -68
- package/dist/VStack-dsjTgotn.d.ts +145 -0
- package/dist/VStack-lZcVQtuR.d.cts +145 -0
- package/dist/analytics/server.js +1 -1
- package/dist/chunk-3R4CMTF2.js +2 -0
- package/dist/chunk-COT7GQ26.js +2 -0
- package/dist/chunk-DIZ6AEFQ.cjs +3 -0
- package/dist/chunk-GWUSJOIP.js +2 -0
- package/dist/chunk-GXWRHF26.cjs +1 -0
- package/dist/chunk-H35WDIEH.cjs +1 -0
- package/dist/chunk-IGRY2O2E.js +2 -0
- package/dist/chunk-IQXT3UML.cjs +2 -0
- package/dist/chunk-PLVCO2Q2.cjs +1 -0
- package/dist/chunk-RCTE4OK2.cjs +1 -0
- package/dist/chunk-ROCVTVD4.js +2 -0
- package/dist/chunk-SWTZ62RF.js +3 -0
- package/dist/chunk-TYCIDVTR.js +2 -0
- package/dist/chunk-UWAIMWW7.cjs +1 -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 +1544 -54
- package/dist/fixtures.d.cts +33 -14
- package/dist/fixtures.d.ts +33 -14
- package/dist/fixtures.js +1517 -48
- package/dist/flags.cjs +1 -1
- package/dist/flags.js +1 -1
- package/dist/index-B1ZHRmSN.d.ts +202 -0
- package/dist/index-By9VJ9yq.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 +14 -5
- package/dist/tailwind/plugin.d.ts +14 -5
- package/dist/tailwind/plugin.js +2 -2
- package/dist/tailwind/purger.cjs +2 -2
- package/dist/tailwind/purger.js +3 -3
- 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-oxQ-ciqn.d.cts +10237 -0
- package/dist/types-oxQ-ciqn.d.ts +10237 -0
- package/package.json +17 -4
- 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-PRT45UQH.js → motionFeatures-25DAPVNO.js} +0 -0
- /package/dist/{motionFeatures-HQUM526D.cjs → motionFeatures-II2BNXF5.cjs} +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-SWTZ62RF.js";export{variants}from"../chunk-COT7GQ26.js";export{entries,mapValues}from"../chunk-3R4CMTF2.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-ROCVTVD4.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var e=require("../chunk-
|
1
|
+
"use strict";var e=require("../chunk-RCTE4OK2.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-oxQ-ciqn.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-oxQ-ciqn.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-GWUSJOIP.js";
|