@yahoo/uds 3.146.0 → 3.147.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.
@@ -2,7 +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_defaultTokensConfig = require("../../defaultTokensConfig.cjs");
5
- const require_sortKeys = require("../../utils/dist/sortKeys.cjs");
5
+ const require_serializeToJS = require("../../utils/dist/serializeToJS.cjs");
6
6
  const require_runtime_bottomSheetConfig = require("../../runtime/bottomSheetConfig.cjs");
7
7
  const require_runtime_breakpointsConfig = require("../../runtime/breakpointsConfig.cjs");
8
8
  const require_runtime_modalConfig = require("../../runtime/modalConfig.cjs");
@@ -70,24 +70,24 @@ const syncCommand = {
70
70
  config = (await resp.json()).config;
71
71
  }
72
72
  if (!config) throw new Error("Config JSON could not be parsed.");
73
- const sortedConfig = require_sortKeys.sortKeys(config);
73
+ const serializedConfig = require_serializeToJS.serializeToJS(config);
74
74
  const importsTS = [`import type { UniversalTokensConfig } from '@yahoo/uds';`];
75
- const exportsTS = [`export const config: UniversalTokensConfig = ${JSON.stringify(sortedConfig, null, 2)} as UniversalTokensConfig;`];
76
- const exportsJS = [`export const config = ${JSON.stringify(sortedConfig, null, 2)};`];
75
+ const exportsTS = [`export const config: UniversalTokensConfig = ${serializedConfig} as UniversalTokensConfig;`];
76
+ const exportsJS = [`export const config = ${serializedConfig};`];
77
77
  const runtimeConfigs = {
78
- bottomSheet: [require_runtime_bottomSheetConfig.configToBottomSheetConfigContext(sortedConfig), "UDSBottomSheetConfigContextType"],
79
- breakpoints: [require_runtime_breakpointsConfig.configToBreakpointsConfigContext(sortedConfig), "UDSBreakpointsConfigContextType"],
80
- modal: [require_runtime_modalConfig.configToModalConfigContext(sortedConfig), "UDSModalConfigContextType"],
81
- popover: [require_runtime_popoverConfig.configToPopoverConfigContext(sortedConfig), "UDSPopoverConfigContextType"],
82
- toast: [require_runtime_toastConfig.configToToastConfigContext(sortedConfig), "UDSToastConfigContextType"],
83
- tooltip: [require_runtime_tooltipConfig.configToTooltipConfigContext(sortedConfig), "UDSTooltipConfigContextType"]
78
+ bottomSheet: [require_runtime_bottomSheetConfig.configToBottomSheetConfigContext(config), "UDSBottomSheetConfigContextType"],
79
+ breakpoints: [require_runtime_breakpointsConfig.configToBreakpointsConfigContext(config), "UDSBreakpointsConfigContextType"],
80
+ modal: [require_runtime_modalConfig.configToModalConfigContext(config), "UDSModalConfigContextType"],
81
+ popover: [require_runtime_popoverConfig.configToPopoverConfigContext(config), "UDSPopoverConfigContextType"],
82
+ toast: [require_runtime_toastConfig.configToToastConfigContext(config), "UDSToastConfigContextType"],
83
+ tooltip: [require_runtime_tooltipConfig.configToTooltipConfigContext(config), "UDSTooltipConfigContextType"]
84
84
  };
85
85
  const runtimeTypeImports = [];
86
86
  for (const [name, [json, type]] of Object.entries(runtimeConfigs)) {
87
- const content = require_sortKeys.sortKeys(json);
87
+ const serialized = require_serializeToJS.serializeToJS(json);
88
88
  runtimeTypeImports.push(type);
89
- exportsTS.push(`export const ${name}RuntimeConfig: ${type} = ${JSON.stringify(content, null, 2)};`);
90
- exportsJS.push(`export const ${name}RuntimeConfig = ${JSON.stringify(content, null, 2)};`);
89
+ exportsTS.push(`export const ${name}RuntimeConfig: ${type} = ${serialized};`);
90
+ exportsJS.push(`export const ${name}RuntimeConfig = ${serialized};`);
91
91
  }
92
92
  runtimeTypeImports.push("UDSConfigContextType");
93
93
  importsTS.push(`import type { ${runtimeTypeImports.sort().join(", ")} } from '@yahoo/uds/runtime';`);
@@ -1,6 +1,6 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
2
  import { defaultTokensConfig } from "../../defaultTokensConfig.js";
3
- import { sortKeys } from "../../utils/dist/sortKeys.js";
3
+ import { serializeToJS } from "../../utils/dist/serializeToJS.js";
4
4
  import { configToBottomSheetConfigContext } from "../../runtime/bottomSheetConfig.js";
5
5
  import { configToBreakpointsConfigContext } from "../../runtime/breakpointsConfig.js";
6
6
  import { configToModalConfigContext } from "../../runtime/modalConfig.js";
@@ -66,24 +66,24 @@ const syncCommand = {
66
66
  config = (await resp.json()).config;
67
67
  }
68
68
  if (!config) throw new Error("Config JSON could not be parsed.");
69
- const sortedConfig = sortKeys(config);
69
+ const serializedConfig = serializeToJS(config);
70
70
  const importsTS = [`import type { UniversalTokensConfig } from '@yahoo/uds';`];
71
- const exportsTS = [`export const config: UniversalTokensConfig = ${JSON.stringify(sortedConfig, null, 2)} as UniversalTokensConfig;`];
72
- const exportsJS = [`export const config = ${JSON.stringify(sortedConfig, null, 2)};`];
71
+ const exportsTS = [`export const config: UniversalTokensConfig = ${serializedConfig} as UniversalTokensConfig;`];
72
+ const exportsJS = [`export const config = ${serializedConfig};`];
73
73
  const runtimeConfigs = {
74
- bottomSheet: [configToBottomSheetConfigContext(sortedConfig), "UDSBottomSheetConfigContextType"],
75
- breakpoints: [configToBreakpointsConfigContext(sortedConfig), "UDSBreakpointsConfigContextType"],
76
- modal: [configToModalConfigContext(sortedConfig), "UDSModalConfigContextType"],
77
- popover: [configToPopoverConfigContext(sortedConfig), "UDSPopoverConfigContextType"],
78
- toast: [configToToastConfigContext(sortedConfig), "UDSToastConfigContextType"],
79
- tooltip: [configToTooltipConfigContext(sortedConfig), "UDSTooltipConfigContextType"]
74
+ bottomSheet: [configToBottomSheetConfigContext(config), "UDSBottomSheetConfigContextType"],
75
+ breakpoints: [configToBreakpointsConfigContext(config), "UDSBreakpointsConfigContextType"],
76
+ modal: [configToModalConfigContext(config), "UDSModalConfigContextType"],
77
+ popover: [configToPopoverConfigContext(config), "UDSPopoverConfigContextType"],
78
+ toast: [configToToastConfigContext(config), "UDSToastConfigContextType"],
79
+ tooltip: [configToTooltipConfigContext(config), "UDSTooltipConfigContextType"]
80
80
  };
81
81
  const runtimeTypeImports = [];
82
82
  for (const [name, [json, type]] of Object.entries(runtimeConfigs)) {
83
- const content = sortKeys(json);
83
+ const serialized = serializeToJS(json);
84
84
  runtimeTypeImports.push(type);
85
- exportsTS.push(`export const ${name}RuntimeConfig: ${type} = ${JSON.stringify(content, null, 2)};`);
86
- exportsJS.push(`export const ${name}RuntimeConfig = ${JSON.stringify(content, null, 2)};`);
85
+ exportsTS.push(`export const ${name}RuntimeConfig: ${type} = ${serialized};`);
86
+ exportsJS.push(`export const ${name}RuntimeConfig = ${serialized};`);
87
87
  }
88
88
  runtimeTypeImports.push("UDSConfigContextType");
89
89
  importsTS.push(`import type { ${runtimeTypeImports.sort().join(", ")} } from '@yahoo/uds/runtime';`);
@@ -1,6 +1,20 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
2
  //#region ../css/dist/packages/fixtures/dist/index.mjs
3
3
  /*! © 2026 Yahoo, Inc. UDS CSS v0.0.0-development */
4
+ var breakpointSizeSort = {
5
+ sm: 0,
6
+ md: 1,
7
+ lg: 2,
8
+ xl: 3,
9
+ "2xl": 4
10
+ };
11
+ [
12
+ "sm",
13
+ "md",
14
+ "lg",
15
+ "xl",
16
+ "2xl"
17
+ ].sort((a, b) => breakpointSizeSort[a] - breakpointSizeSort[b]);
4
18
  var elevationAliases = [
5
19
  "elevation-0",
6
20
  "elevation-1",
@@ -1,6 +1,20 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
2
  //#region ../css/dist/packages/fixtures/dist/index.mjs
3
3
  /*! © 2026 Yahoo, Inc. UDS CSS v0.0.0-development */
4
+ var breakpointSizeSort = {
5
+ sm: 0,
6
+ md: 1,
7
+ lg: 2,
8
+ xl: 3,
9
+ "2xl": 4
10
+ };
11
+ [
12
+ "sm",
13
+ "md",
14
+ "lg",
15
+ "xl",
16
+ "2xl"
17
+ ].sort((a, b) => breakpointSizeSort[a] - breakpointSizeSort[b]);
4
18
  var elevationAliases = [
5
19
  "elevation-0",
6
20
  "elevation-1",
@@ -9,13 +9,20 @@ var positiveIntegers = createArbitraryFixture({
9
9
  min: 0,
10
10
  step: 1
11
11
  });
12
+ var breakpointSizeSort = {
13
+ sm: 0,
14
+ md: 1,
15
+ lg: 2,
16
+ xl: 3,
17
+ "2xl": 4
18
+ };
12
19
  var breakpoints = [
13
20
  "sm",
14
21
  "md",
15
22
  "lg",
16
23
  "xl",
17
24
  "2xl"
18
- ];
25
+ ].sort((a, b) => breakpointSizeSort[a] - breakpointSizeSort[b]);
19
26
  var colorModes = ["light", "dark"];
20
27
  var scaleModes = [
21
28
  "xSmall",
@@ -64,7 +64,7 @@ declare const borderWidths: BorderWidth[];
64
64
  declare const borderWidthsWithElevation: string[];
65
65
  declare const iconSizes: IconSize[];
66
66
  declare const iconVariants: IconVariant[];
67
- declare const percentageSteps: (0 | 1 | 4 | 2 | 100 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99)[];
67
+ declare const percentageSteps: (0 | 1 | 2 | 3 | 4 | 100 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99)[];
68
68
  /** Preserve order we want to display */
69
69
  declare const spacingAliases: SpacingAlias[];
70
70
  declare const spacingMap: Record<SpacingAlias, number>;
@@ -64,7 +64,7 @@ declare const borderWidths: BorderWidth[];
64
64
  declare const borderWidthsWithElevation: string[];
65
65
  declare const iconSizes: IconSize[];
66
66
  declare const iconVariants: IconVariant[];
67
- declare const percentageSteps: (0 | 1 | 4 | 2 | 100 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99)[];
67
+ declare const percentageSteps: (0 | 1 | 2 | 3 | 4 | 100 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99)[];
68
68
  /** Preserve order we want to display */
69
69
  declare const spacingAliases: SpacingAlias[];
70
70
  declare const spacingMap: Record<SpacingAlias, number>;
@@ -9,13 +9,20 @@ var positiveIntegers = createArbitraryFixture({
9
9
  min: 0,
10
10
  step: 1
11
11
  });
12
+ var breakpointSizeSort = {
13
+ sm: 0,
14
+ md: 1,
15
+ lg: 2,
16
+ xl: 3,
17
+ "2xl": 4
18
+ };
12
19
  var breakpoints = [
13
20
  "sm",
14
21
  "md",
15
22
  "lg",
16
23
  "xl",
17
24
  "2xl"
18
- ];
25
+ ].sort((a, b) => breakpointSizeSort[a] - breakpointSizeSort[b]);
19
26
  var colorModes = ["light", "dark"];
20
27
  var scaleModes = [
21
28
  "xSmall",
@@ -1,6 +1,20 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
2
  //#region ../tailwind-internal/dist/packages/fixtures/dist/index.js
3
3
  /*! © 2026 Yahoo, Inc. UDS Tailwind Internal v0.0.0-development */
4
+ var breakpointSizeSort = {
5
+ sm: 0,
6
+ md: 1,
7
+ lg: 2,
8
+ xl: 3,
9
+ "2xl": 4
10
+ };
11
+ [
12
+ "sm",
13
+ "md",
14
+ "lg",
15
+ "xl",
16
+ "2xl"
17
+ ].sort((a, b) => breakpointSizeSort[a] - breakpointSizeSort[b]);
4
18
  var elevationAliases = [
5
19
  "elevation-0",
6
20
  "elevation-1",
@@ -1,6 +1,20 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
2
  //#region ../tailwind-internal/dist/packages/fixtures/dist/index.js
3
3
  /*! © 2026 Yahoo, Inc. UDS Tailwind Internal v0.0.0-development */
4
+ var breakpointSizeSort = {
5
+ sm: 0,
6
+ md: 1,
7
+ lg: 2,
8
+ xl: 3,
9
+ "2xl": 4
10
+ };
11
+ [
12
+ "sm",
13
+ "md",
14
+ "lg",
15
+ "xl",
16
+ "2xl"
17
+ ].sort((a, b) => breakpointSizeSort[a] - breakpointSizeSort[b]);
4
18
  var elevationAliases = [
5
19
  "elevation-0",
6
20
  "elevation-1",