@yahoo/uds 3.29.0 → 3.31.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.
Files changed (117) hide show
  1. package/cli/utils/setupConfigWorker.ts +1 -1
  2. package/dist/{Box-CouKR1pl.d.cts → Box-CurEP3UK.d.cts} +1 -1
  3. package/dist/{Box-CouKR1pl.d.ts → Box-CurEP3UK.d.ts} +1 -1
  4. package/dist/{Input-CBMp-VuY.d.cts → Input-BGoYBWuZ.d.cts} +1 -1
  5. package/dist/{Input-D9t-vjM3.d.ts → Input-CiblUAAn.d.ts} +1 -1
  6. package/dist/Input-DLaDfj3B.d.ts +52 -0
  7. package/dist/Input-kTncRDL-.d.cts +52 -0
  8. package/dist/{Pressable-B500LqEE.d.ts → Pressable-5xZkX31-.d.ts} +1 -1
  9. package/dist/{Pressable-DI5e8NnY.d.cts → Pressable-8ICm6dtF.d.cts} +1 -1
  10. package/dist/Pressable-SWbWgmkV.d.cts +44 -0
  11. package/dist/Pressable-m2P7wcyE.d.ts +44 -0
  12. package/dist/{VStack-DLtu-Guf.d.ts → VStack-CQeeckDq.d.ts} +1 -1
  13. package/dist/{VStack-BaEA8Als.d.cts → VStack-D-kwOQ5o.d.cts} +1 -1
  14. package/dist/VStack-D3EStCcZ.d.cts +112 -0
  15. package/dist/VStack-beHwBAQ7.d.ts +112 -0
  16. package/dist/chunk-33RRPC6G.js +1 -0
  17. package/dist/{chunk-MFKBUDGS.cjs → chunk-3GJTY3MP.cjs} +1 -1
  18. package/dist/chunk-3UTUODQY.js +2 -0
  19. package/dist/{chunk-4TATL4NA.js → chunk-4BN4CQFA.js} +1 -1
  20. package/dist/chunk-4T3G4LC5.js +3 -0
  21. package/dist/chunk-5NN6ZF5W.js +2 -0
  22. package/dist/chunk-66AIQC3S.cjs +1 -0
  23. package/dist/{chunk-PSJE6P6P.js → chunk-CRVISLFX.js} +1 -1
  24. package/dist/chunk-DUNQUPPG.cjs +2 -0
  25. package/dist/chunk-ESXUE7WP.js +1 -0
  26. package/dist/chunk-FN67NTU3.cjs +1 -0
  27. package/dist/{chunk-OPFYCEVK.cjs → chunk-FSOEBCEK.cjs} +1 -1
  28. package/dist/chunk-ISCBDHKR.cjs +1 -0
  29. package/dist/{chunk-UUW2R5LT.cjs → chunk-J26SGETG.cjs} +1 -1
  30. package/dist/{chunk-5QLOGAR2.js → chunk-JVYFTHX7.js} +2 -2
  31. package/dist/chunk-KEXVCU34.js +1 -0
  32. package/dist/{chunk-O7S5KEAK.cjs → chunk-NK26IH6V.cjs} +1 -1
  33. package/dist/chunk-NKIUW3BW.cjs +1 -0
  34. package/dist/{chunk-QYKWQ4AB.js → chunk-PJUO4VUT.js} +1 -1
  35. package/dist/{chunk-LNOHMKXO.cjs → chunk-QAAVGWEA.cjs} +1 -1
  36. package/dist/{chunk-KB43ONNB.js → chunk-RITOU56N.js} +1 -1
  37. package/dist/{chunk-2YHS4RSB.js → chunk-SA7NIS2O.js} +1 -1
  38. package/dist/chunk-TD6TOMCP.js +1 -0
  39. package/dist/chunk-UDUXWU4B.cjs +3 -0
  40. package/dist/chunk-VGW5FOVC.js +3 -0
  41. package/dist/chunk-WNCWU62A.cjs +1 -0
  42. package/dist/chunk-XFG6EGPL.cjs +1 -0
  43. package/dist/chunk-YLWUR5SE.js +2 -0
  44. package/dist/{chunk-LMWQZOET.cjs → chunk-YTRBQ73N.cjs} +1 -1
  45. package/dist/{chunk-HALPM52S.cjs → chunk-Z5QYFA5P.cjs} +2 -2
  46. package/dist/client/Menu.cjs +2 -2
  47. package/dist/client/Menu.d.cts +3 -3
  48. package/dist/client/Menu.d.ts +3 -3
  49. package/dist/client/Menu.js +2 -2
  50. package/dist/client/index.cjs +1 -1
  51. package/dist/client/index.d.cts +3 -3
  52. package/dist/client/index.d.ts +3 -3
  53. package/dist/client/index.js +1 -1
  54. package/dist/defaultTokensConfig.cjs +1 -1
  55. package/dist/defaultTokensConfig.d.cts +110 -2
  56. package/dist/defaultTokensConfig.d.ts +110 -2
  57. package/dist/defaultTokensConfig.js +1 -1
  58. package/dist/experimental/client/SwitchV2.cjs +1 -1
  59. package/dist/experimental/client/SwitchV2.d.cts +1 -1
  60. package/dist/experimental/client/SwitchV2.d.ts +1 -1
  61. package/dist/experimental/client/SwitchV2.js +1 -1
  62. package/dist/experimental/client/index.cjs +2 -2
  63. package/dist/experimental/client/index.d.cts +1 -1
  64. package/dist/experimental/client/index.d.ts +1 -1
  65. package/dist/experimental/client/index.js +1 -1
  66. package/dist/experimental/index.cjs +3 -3
  67. package/dist/experimental/index.d.cts +1 -1
  68. package/dist/experimental/index.d.ts +1 -1
  69. package/dist/experimental/index.js +1 -1
  70. package/dist/fixtures.cjs +105 -15
  71. package/dist/fixtures.js +105 -15
  72. package/dist/index-B9RNh21D.d.ts +245 -0
  73. package/dist/index-C9DHRmxW.d.cts +245 -0
  74. package/dist/{index-BTQ12rGi.d.ts → index-CbmfLw3M.d.ts} +1 -1
  75. package/dist/{index-D_CfYME6.d.cts → index-D8RcvAUN.d.cts} +1 -1
  76. package/dist/index.cjs +1 -1
  77. package/dist/index.d.cts +13 -13
  78. package/dist/index.d.ts +13 -13
  79. package/dist/index.js +1 -1
  80. package/dist/metafile-cjs.json +1 -1
  81. package/dist/metafile-esm.json +1 -1
  82. package/dist/tailwind/plugin.cjs +1 -1
  83. package/dist/tailwind/plugin.d.cts +3 -3
  84. package/dist/tailwind/plugin.d.ts +3 -3
  85. package/dist/tailwind/plugin.js +2 -2
  86. package/dist/tailwind/purger.cjs +1 -1
  87. package/dist/tailwind/purger.js +2 -2
  88. package/dist/tailwind/tsMorph.cjs +1 -1
  89. package/dist/tailwind/tsMorph.js +1 -1
  90. package/dist/tailwind/utils.cjs +1 -1
  91. package/dist/tailwind/utils.d.cts +3 -3
  92. package/dist/tailwind/utils.d.ts +3 -3
  93. package/dist/tailwind/utils.js +1 -1
  94. package/dist/tokens/automation/configs.cjs +1 -1
  95. package/dist/tokens/automation/configs.d.cts +2 -2
  96. package/dist/tokens/automation/configs.d.ts +2 -2
  97. package/dist/tokens/automation/configs.js +1 -1
  98. package/dist/tokens/automation/properties.cjs +1 -1
  99. package/dist/tokens/automation/properties.d.cts +2 -2
  100. package/dist/tokens/automation/properties.d.ts +2 -2
  101. package/dist/tokens/automation/properties.js +1 -1
  102. package/dist/tokens/index.cjs +1 -1
  103. package/dist/tokens/index.d.cts +46 -4
  104. package/dist/tokens/index.d.ts +46 -4
  105. package/dist/tokens/index.js +1 -1
  106. package/dist/tokens/parseTokens.d.cts +1 -1
  107. package/dist/tokens/parseTokens.d.ts +1 -1
  108. package/dist/{types-CnfsaJXV.d.cts → types-BdTp68BU.d.cts} +1951 -1843
  109. package/dist/{types-CnfsaJXV.d.ts → types-BdTp68BU.d.ts} +1951 -1843
  110. package/dist/types-CLQR8V8k.d.cts +10576 -0
  111. package/dist/types-CLQR8V8k.d.ts +10576 -0
  112. package/package.json +1 -1
  113. package/dist/chunk-6QD6WNT7.js +0 -3
  114. package/dist/chunk-ENYRD5BL.js +0 -2
  115. package/dist/chunk-HK2TEAO3.cjs +0 -1
  116. /package/dist/{chunk-TCFZWULK.js → chunk-2N6GU6KA.js} +0 -0
  117. /package/dist/{chunk-SAYTLQ3L.cjs → chunk-T3NVPMAQ.cjs} +0 -0
package/dist/fixtures.js CHANGED
@@ -1698,7 +1698,13 @@ var textVariants = [
1698
1698
  "label4",
1699
1699
  "caption1",
1700
1700
  "caption2",
1701
- "legal1"
1701
+ "legal1",
1702
+ "ui1",
1703
+ "ui2",
1704
+ "ui3",
1705
+ "ui4",
1706
+ "ui5",
1707
+ "ui6"
1702
1708
  ];
1703
1709
  var textProperties = [
1704
1710
  "fontFamily",
@@ -1814,7 +1820,13 @@ var fontSizeRamp = {
1814
1820
  label4: -2,
1815
1821
  caption1: -1,
1816
1822
  caption2: -1,
1817
- legal1: -1
1823
+ legal1: -1,
1824
+ ui1: 0,
1825
+ ui2: 0,
1826
+ ui3: 0,
1827
+ ui4: 0,
1828
+ ui5: 0,
1829
+ ui6: 0
1818
1830
  },
1819
1831
  small: {
1820
1832
  display1: -2,
@@ -1832,7 +1844,13 @@ var fontSizeRamp = {
1832
1844
  label4: -1,
1833
1845
  caption1: 0,
1834
1846
  caption2: 0,
1835
- legal1: 0
1847
+ legal1: 0,
1848
+ ui1: 0,
1849
+ ui2: 0,
1850
+ ui3: 0,
1851
+ ui4: 0,
1852
+ ui5: 0,
1853
+ ui6: 0
1836
1854
  },
1837
1855
  medium: {
1838
1856
  display1: -1,
@@ -1850,7 +1868,13 @@ var fontSizeRamp = {
1850
1868
  label4: -1,
1851
1869
  caption1: 0,
1852
1870
  caption2: 0,
1853
- legal1: 0
1871
+ legal1: 0,
1872
+ ui1: 0,
1873
+ ui2: 0,
1874
+ ui3: 0,
1875
+ ui4: 0,
1876
+ ui5: 0,
1877
+ ui6: 0
1854
1878
  },
1855
1879
  large: {
1856
1880
  display1: 0,
@@ -1868,7 +1892,13 @@ var fontSizeRamp = {
1868
1892
  label4: 0,
1869
1893
  caption1: 0,
1870
1894
  caption2: 0,
1871
- legal1: 0
1895
+ legal1: 0,
1896
+ ui1: 0,
1897
+ ui2: 0,
1898
+ ui3: 0,
1899
+ ui4: 0,
1900
+ ui5: 0,
1901
+ ui6: 0
1872
1902
  },
1873
1903
  xLarge: {
1874
1904
  display1: 2,
@@ -1886,7 +1916,13 @@ var fontSizeRamp = {
1886
1916
  label4: 2,
1887
1917
  caption1: 2,
1888
1918
  caption2: 2,
1889
- legal1: 2
1919
+ legal1: 2,
1920
+ ui1: 2,
1921
+ ui2: 2,
1922
+ ui3: 2,
1923
+ ui4: 2,
1924
+ ui5: 2,
1925
+ ui6: 2
1890
1926
  },
1891
1927
  xxLarge: {
1892
1928
  display1: 4,
@@ -1904,7 +1940,13 @@ var fontSizeRamp = {
1904
1940
  label4: 4,
1905
1941
  caption1: 4,
1906
1942
  caption2: 4,
1907
- legal1: 4
1943
+ legal1: 4,
1944
+ ui1: 4,
1945
+ ui2: 4,
1946
+ ui3: 4,
1947
+ ui4: 4,
1948
+ ui5: 4,
1949
+ ui6: 4
1908
1950
  },
1909
1951
  xxxLarge: {
1910
1952
  display1: 6,
@@ -1922,7 +1964,13 @@ var fontSizeRamp = {
1922
1964
  label4: 6,
1923
1965
  caption1: 6,
1924
1966
  caption2: 6,
1925
- legal1: 6
1967
+ legal1: 6,
1968
+ ui1: 6,
1969
+ ui2: 6,
1970
+ ui3: 6,
1971
+ ui4: 6,
1972
+ ui5: 6,
1973
+ ui6: 6
1926
1974
  }
1927
1975
  };
1928
1976
  var lineHeightRamp = {
@@ -1942,7 +1990,13 @@ var lineHeightRamp = {
1942
1990
  label4: -4,
1943
1991
  caption1: 0,
1944
1992
  caption2: 0,
1945
- legal1: -4
1993
+ legal1: -4,
1994
+ ui1: 0,
1995
+ ui2: 0,
1996
+ ui3: 0,
1997
+ ui4: 0,
1998
+ ui5: 0,
1999
+ ui6: 0
1946
2000
  },
1947
2001
  small: {
1948
2002
  display1: 0,
@@ -1960,7 +2014,13 @@ var lineHeightRamp = {
1960
2014
  label4: -4,
1961
2015
  caption1: 0,
1962
2016
  caption2: 0,
1963
- legal1: 0
2017
+ legal1: 0,
2018
+ ui1: 0,
2019
+ ui2: 0,
2020
+ ui3: 0,
2021
+ ui4: 0,
2022
+ ui5: 0,
2023
+ ui6: 0
1964
2024
  },
1965
2025
  medium: {
1966
2026
  display1: 0,
@@ -1978,7 +2038,13 @@ var lineHeightRamp = {
1978
2038
  label4: -4,
1979
2039
  caption1: 0,
1980
2040
  caption2: 0,
1981
- legal1: 0
2041
+ legal1: 0,
2042
+ ui1: 0,
2043
+ ui2: 0,
2044
+ ui3: 0,
2045
+ ui4: 0,
2046
+ ui5: 0,
2047
+ ui6: 0
1982
2048
  },
1983
2049
  large: {
1984
2050
  display1: 0,
@@ -1996,7 +2062,13 @@ var lineHeightRamp = {
1996
2062
  label4: 0,
1997
2063
  caption1: 0,
1998
2064
  caption2: 0,
1999
- legal1: 0
2065
+ legal1: 0,
2066
+ ui1: 0,
2067
+ ui2: 0,
2068
+ ui3: 0,
2069
+ ui4: 0,
2070
+ ui5: 0,
2071
+ ui6: 0
2000
2072
  },
2001
2073
  xLarge: {
2002
2074
  display1: 0,
@@ -2014,7 +2086,13 @@ var lineHeightRamp = {
2014
2086
  label4: 0,
2015
2087
  caption1: 4,
2016
2088
  caption2: 4,
2017
- legal1: 0
2089
+ legal1: 0,
2090
+ ui1: 0,
2091
+ ui2: 0,
2092
+ ui3: 0,
2093
+ ui4: 0,
2094
+ ui5: 0,
2095
+ ui6: 0
2018
2096
  },
2019
2097
  xxLarge: {
2020
2098
  display1: 0,
@@ -2032,7 +2110,13 @@ var lineHeightRamp = {
2032
2110
  label4: 4,
2033
2111
  caption1: 4,
2034
2112
  caption2: 4,
2035
- legal1: 4
2113
+ legal1: 4,
2114
+ ui1: 0,
2115
+ ui2: 0,
2116
+ ui3: 0,
2117
+ ui4: 0,
2118
+ ui5: 0,
2119
+ ui6: 0
2036
2120
  },
2037
2121
  xxxLarge: {
2038
2122
  display1: 0,
@@ -2050,7 +2134,13 @@ var lineHeightRamp = {
2050
2134
  label4: 8,
2051
2135
  caption1: 8,
2052
2136
  caption2: 8,
2053
- legal1: 4
2137
+ legal1: 4,
2138
+ ui1: 0,
2139
+ ui2: 0,
2140
+ ui3: 0,
2141
+ ui4: 0,
2142
+ ui5: 0,
2143
+ ui6: 0
2054
2144
  }
2055
2145
  };
2056
2146
  var avatarSizes = [
@@ -0,0 +1,245 @@
1
+ import * as properties from '@yahoo/uds/fixtures';
2
+ import { m as ShadowPreset, g as UniversalTokensConfig } from './types-BdTp68BU.js';
3
+
4
+ type DispatchContext = {
5
+ componentName: string;
6
+ subComponentName?: string;
7
+ propertyKey: string;
8
+ layer: string;
9
+ };
10
+ interface ConfigurableProperty<T extends AllPossibleProperties, CVR = unknown> {
11
+ name: string;
12
+ cssProperties: string | string[];
13
+ twThemePath: (selected: T, value: string) => string;
14
+ possibleFixtures: T[];
15
+ extendedProperties?: ExtendablePropertiesName[] | ((context: DispatchContext) => ExtendablePropertiesName[] | undefined | false);
16
+ customValueRenderer?: (schemaStateValue: SchemaStateValue<CVR>, schema: unknown, themeGetter: (path: string) => string) => string;
17
+ concatenate?: boolean;
18
+ concatenationDelimiter?: string;
19
+ }
20
+ declare const publicProperties: {
21
+ readonly backgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
22
+ readonly borderWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
23
+ readonly borderRadius: ConfigurableProperty<"borderRadii", unknown>;
24
+ readonly borderColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
25
+ readonly fontFamily: ConfigurableProperty<"textVariants", unknown>;
26
+ readonly fontSize: ConfigurableProperty<"textVariants", unknown>;
27
+ readonly fontVariationSettings: ConfigurableProperty<"textVariants", unknown>;
28
+ readonly lineHeight: ConfigurableProperty<"textVariants", unknown>;
29
+ readonly textTransform: ConfigurableProperty<"textVariants", unknown>;
30
+ readonly padding: ConfigurableProperty<"spacingAliases", unknown>;
31
+ readonly gap: ConfigurableProperty<"spacingAliases", unknown>;
32
+ readonly color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
33
+ readonly fontWeight: ConfigurableProperty<"textVariants", unknown>;
34
+ readonly iconSize: ConfigurableProperty<"iconSizes", unknown>;
35
+ readonly spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
36
+ readonly spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
37
+ readonly textVariant: ConfigurableProperty<"textVariants", unknown>;
38
+ readonly textDecorationLine: ConfigurableProperty<"textDecorationLines", unknown>;
39
+ readonly shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
40
+ readonly insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
41
+ readonly height: ConfigurableProperty<"spacingAliases", unknown>;
42
+ readonly width: ConfigurableProperty<"spacingAliases", unknown>;
43
+ };
44
+ declare const configurableProperties: {
45
+ outlineWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
46
+ outlineColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
47
+ insetOutlineOffset: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
48
+ solidOutline: ConfigurableProperty<never, unknown>;
49
+ backgroundColor: ConfigurableProperty<"backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
50
+ borderWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
51
+ borderRadius: ConfigurableProperty<"borderRadii", unknown>;
52
+ borderColor: ConfigurableProperty<"linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
53
+ fontFamily: ConfigurableProperty<"textVariants", unknown>;
54
+ fontSize: ConfigurableProperty<"textVariants", unknown>;
55
+ fontVariationSettings: ConfigurableProperty<"textVariants", unknown>;
56
+ lineHeight: ConfigurableProperty<"textVariants", unknown>;
57
+ textTransform: ConfigurableProperty<"textVariants", unknown>;
58
+ padding: ConfigurableProperty<"spacingAliases", unknown>;
59
+ gap: ConfigurableProperty<"spacingAliases", unknown>;
60
+ color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
61
+ fontWeight: ConfigurableProperty<"textVariants", unknown>;
62
+ iconSize: ConfigurableProperty<"iconSizes", unknown>;
63
+ spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
64
+ spacingVertical: ConfigurableProperty<"spacingAliases", unknown>;
65
+ textVariant: ConfigurableProperty<"textVariants", unknown>;
66
+ textDecorationLine: ConfigurableProperty<"textDecorationLines", unknown>;
67
+ shadow: ConfigurableProperty<"shadowVariants", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
68
+ insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
69
+ height: ConfigurableProperty<"spacingAliases", unknown>;
70
+ width: ConfigurableProperty<"spacingAliases", unknown>;
71
+ };
72
+ type ExtendablePropertiesName = keyof typeof configurableProperties;
73
+ type ConfigurablePropertiesName = keyof typeof publicProperties;
74
+ interface SelectedConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof publicProperties)[C]['possibleFixtures'] = (typeof publicProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]> {
75
+ label: string;
76
+ name: C;
77
+ typeOfFixture: T;
78
+ values: V;
79
+ pseudoStates?: PossibleStates[];
80
+ supportsCustom?: boolean;
81
+ defaults: {
82
+ [K in O]: V[number][number];
83
+ };
84
+ }
85
+
86
+ type AllPossibleProperties = Exclude<keyof typeof properties, 'iconButtonClassNames' | 'iconButtonSize' | 'iconButtonStates' | 'buttonClassNames' | 'buttonColorProperties' | 'buttonIconSvgSize' | 'buttonKinds' | 'buttonMotionEffects' | 'buttonMotionProperties' | 'buttonPalettes' | 'buttonSizeProperties' | 'buttonSizes' | 'buttonStates' | 'buttonVariants'> | 'shadowVariantConfig';
87
+ type PossibleStates = 'hover' | 'pressed' | 'focused' | 'invalid' | 'focus-within' | 'focused-keyboard' | 'visited' | 'readonly' | 'disabled' | 'invalid&hover' | 'invalid&pressed';
88
+ type PossibleStatesWithRest = 'rest' | PossibleStates;
89
+ interface LayerConfig {
90
+ label: string;
91
+ properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
92
+ pseudoSelector?: string;
93
+ }
94
+ interface ComponentStateConfig {
95
+ label: string;
96
+ options: string[];
97
+ layers: {
98
+ root: LayerConfig;
99
+ } & Record<string, LayerConfig>;
100
+ }
101
+ interface SubComponentConfig {
102
+ label: string;
103
+ description: string;
104
+ overrideComponentName?: string;
105
+ variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
106
+ }
107
+ interface VariantConfig<O extends string = string> {
108
+ label: string;
109
+ description: string;
110
+ isConfigurable: boolean;
111
+ default: O;
112
+ options: readonly O[];
113
+ }
114
+ interface VariantConfigWithProperties<O extends string = string> extends VariantConfig<O> {
115
+ layers: {
116
+ root: LayerConfig;
117
+ } & Record<string, LayerConfig>;
118
+ }
119
+ interface VariantConfigWithComponentStates<O extends string = string> extends VariantConfig<O> {
120
+ componentStates?: Readonly<Record<string, ComponentStateConfig>>;
121
+ }
122
+ interface ComponentConfig {
123
+ label: string;
124
+ description: string;
125
+ overrideComponentName?: string;
126
+ subComponents?: Record<string, SubComponentConfig>;
127
+ variants?: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
128
+ }
129
+ type AutoComponents = Omit<UniversalTokensConfig, 'colorMode' | 'font' | 'scaleMode' | 'version' | 'motion' | 'button' | 'iconButton' | 'shadow' | 'breakpoints' | 'typography' | 'globalDefaults'>;
130
+ type AutoComponentName = keyof AutoComponents;
131
+ type AllVariantKeys = {
132
+ [K in keyof AutoComponents]: {
133
+ [V in keyof AutoComponents[K]['defaults']]: V;
134
+ }[keyof AutoComponents[K]['defaults']];
135
+ }[keyof AutoComponents];
136
+
137
+ type ThemeFn = (path: string) => string;
138
+ type SchemaStateValue<T = any> = {
139
+ type: string;
140
+ valueType: 'alias' | 'custom';
141
+ value: T;
142
+ };
143
+ declare const statePseudoMapDocsMode: Record<PossibleStates | 'rest', string>;
144
+ declare function findFixtureType(property: SelectedConfigurableProperty<ConfigurablePropertiesName, string>, variantKey: string): string;
145
+ declare function toMinimalDbConfigObject<C extends ComponentConfig>(config: C): any;
146
+ declare function generateClassName({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, }: {
147
+ componentName: string;
148
+ variantKey: string;
149
+ variantValue?: string;
150
+ layer: string;
151
+ layerOptionalPseudoSelector?: string;
152
+ subComponentName?: string;
153
+ stateKey?: string;
154
+ stateValue?: string;
155
+ }): string;
156
+ declare function generateDeclaration({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, schema, propertyKey, originalPropertyDefinition, theme, currentStyles, previewOptions, }: {
157
+ componentName: string;
158
+ variantKey: string;
159
+ variantValue: string;
160
+ layer: string;
161
+ layerOptionalPseudoSelector?: string;
162
+ subComponentName?: string;
163
+ stateKey?: string;
164
+ stateValue?: string;
165
+ schema: unknown;
166
+ propertyKey: string;
167
+ originalPropertyDefinition: SelectedConfigurableProperty<ConfigurablePropertiesName, any>;
168
+ theme: ThemeFn;
169
+ currentStyles: Readonly<Record<string, Record<string, string>>>;
170
+ previewOptions?: {
171
+ generatePseudoStateClassModifier?: boolean;
172
+ forcePseudoState?: boolean;
173
+ };
174
+ }): Record<string, Record<string, string>>;
175
+ declare function generateStyles<C extends ComponentConfig>(config: C, schema: any, theme: ThemeFn, previewOptions?: {
176
+ generatePseudoStateClassModifier: boolean;
177
+ forcePseudoState: boolean;
178
+ }): Record<string, Record<string, string>>;
179
+ declare function createConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof configurableProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]>(prop: {
180
+ name: C;
181
+ typeOfFixture: T;
182
+ values: V;
183
+ defaults: {
184
+ [K in O]: V[number][number];
185
+ };
186
+ label: string;
187
+ pseudoStates?: PossibleStates[];
188
+ supportsCustom?: boolean;
189
+ }): SelectedConfigurableProperty<C, O, T, V>;
190
+ /**
191
+ * @deprecated use the new functions instead
192
+ */
193
+ declare function createVariantConfig<O extends string, T extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, O>>>(config: {
194
+ label: string;
195
+ description: string;
196
+ isConfigurable: boolean;
197
+ default: O;
198
+ options: readonly O[];
199
+ properties: T;
200
+ }): VariantConfig<O>;
201
+ declare function createComponentStateConfig(config: {
202
+ label: string;
203
+ options: string[];
204
+ layers: {
205
+ root: LayerConfig;
206
+ } & Record<string, LayerConfig>;
207
+ }): ComponentStateConfig;
208
+ declare function createVariantConfigWithProperties(config: {
209
+ label: string;
210
+ description: string;
211
+ isConfigurable: boolean;
212
+ default: string;
213
+ options: readonly string[];
214
+ layers: {
215
+ root: LayerConfig;
216
+ } & Record<string, LayerConfig>;
217
+ }): VariantConfigWithProperties;
218
+ declare function createVariantConfigWithComponentStates(config: {
219
+ label: string;
220
+ description: string;
221
+ isConfigurable: boolean;
222
+ default: string;
223
+ options: readonly string[];
224
+ componentStates: Record<string, ComponentStateConfig>;
225
+ }): VariantConfigWithComponentStates;
226
+ declare function createComponentStates(config: {
227
+ label: string;
228
+ options: string[];
229
+ layers: {
230
+ root: LayerConfig;
231
+ } & Record<string, LayerConfig>;
232
+ }): ComponentStateConfig;
233
+ declare function createLayerConfig(config: {
234
+ label: string;
235
+ pseudoSelector?: string;
236
+ properties: Readonly<Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, string>>>;
237
+ }): LayerConfig;
238
+ declare function createSubComponentConfig(config: {
239
+ label: string;
240
+ description: string;
241
+ overrideComponentName?: string;
242
+ variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
243
+ }): SubComponentConfig;
244
+
245
+ export { type AllPossibleProperties as A, type ConfigurablePropertiesName as C, type ExtendablePropertiesName as E, type LayerConfig as L, type PossibleStates as P, type SelectedConfigurableProperty as S, type VariantConfig as V, type PossibleStatesWithRest as a, type ComponentStateConfig as b, configurableProperties as c, type SubComponentConfig as d, type VariantConfigWithProperties as e, type VariantConfigWithComponentStates as f, type ComponentConfig as g, type AutoComponents as h, type AutoComponentName as i, type AllVariantKeys as j, type SchemaStateValue as k, findFixtureType as l, generateClassName as m, generateDeclaration as n, generateStyles as o, createConfigurableProperty as p, createVariantConfig as q, createComponentStateConfig as r, statePseudoMapDocsMode as s, toMinimalDbConfigObject as t, createVariantConfigWithProperties as u, createVariantConfigWithComponentStates as v, createComponentStates as w, createLayerConfig as x, createSubComponentConfig as y };