@kimdw-rtk/ui 0.0.8 → 0.0.9

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 (190) hide show
  1. package/dist/_virtual/cjs.js +5 -0
  2. package/dist/_virtual/cssesc.js +5 -0
  3. package/dist/_virtual/jsx-runtime.js +5 -0
  4. package/dist/_virtual/jsx-runtime2.js +3 -0
  5. package/dist/_virtual/picocolors.js +5 -0
  6. package/dist/_virtual/picocolors2.js +3 -0
  7. package/dist/_virtual/react-jsx-runtime.development.js +3 -0
  8. package/dist/_virtual/react-jsx-runtime.production.min.js +3 -0
  9. package/dist/components/Accordion/Accordion.css.js +8 -5
  10. package/dist/components/Accordion/Accordion.js +13 -8
  11. package/dist/components/Accordion/AccordionContent.css.js +7 -4
  12. package/dist/components/Accordion/AccordionContent.js +18 -16
  13. package/dist/components/Accordion/AccordionContext.js +5 -2
  14. package/dist/components/Accordion/AccordionTrigger.css.js +7 -4
  15. package/dist/components/Accordion/AccordionTrigger.js +9 -7
  16. package/dist/components/Alert/index.js +49 -5
  17. package/dist/components/Box/Box.css.js +6 -3
  18. package/dist/components/Box/index.js +13 -7
  19. package/dist/components/Button/Button.css.js +11 -8
  20. package/dist/components/Button/index.js +57 -11
  21. package/dist/components/Card/Card.css.js +9 -6
  22. package/dist/components/Card/Card.js +14 -7
  23. package/dist/components/Card/CardContent.css.js +6 -3
  24. package/dist/components/Card/CardContent.js +12 -6
  25. package/dist/components/Card/CardInteraction.css.js +5 -2
  26. package/dist/components/Card/CardInteraction.js +53 -8
  27. package/dist/components/Card/CardThumbnail.css.js +5 -2
  28. package/dist/components/Card/CardThumbnail.js +12 -6
  29. package/dist/components/Chip/Chip.css.js +9 -6
  30. package/dist/components/Chip/Chip.js +14 -7
  31. package/dist/components/Confirm/index.js +48 -5
  32. package/dist/components/Dialog/Dialog.css.js +7 -4
  33. package/dist/components/Dialog/Dialog.js +51 -7
  34. package/dist/components/Dialog/DialogContent.css.js +8 -5
  35. package/dist/components/Dialog/DialogContent.js +51 -7
  36. package/dist/components/Dialog/DialogFooter.js +50 -6
  37. package/dist/components/Dialog/DialogHeader.css.js +7 -4
  38. package/dist/components/Dialog/DialogHeader.js +52 -8
  39. package/dist/components/Navigation/NavigationAside.css.js +5 -2
  40. package/dist/components/Navigation/NavigationAside.js +12 -7
  41. package/dist/components/Navigation/NavigationBar.css.js +8 -5
  42. package/dist/components/Navigation/NavigationBar.js +14 -7
  43. package/dist/components/Navigation/NavigationContainer.css.js +5 -2
  44. package/dist/components/Navigation/NavigationContainer.js +12 -6
  45. package/dist/components/Navigation/NavigationDrawer.css.js +9 -6
  46. package/dist/components/Navigation/NavigationDrawer.js +52 -8
  47. package/dist/components/Navigation/NavigationItem.css.js +9 -5
  48. package/dist/components/Navigation/NavigationItem.js +12 -6
  49. package/dist/components/Navigation/NavigationLogo.css.js +5 -2
  50. package/dist/components/Navigation/NavigationLogo.js +12 -6
  51. package/dist/components/Navigation/NavigationMenu.css.js +8 -5
  52. package/dist/components/Navigation/NavigationMenu.js +14 -7
  53. package/dist/components/Range/Range.css.js +12 -9
  54. package/dist/components/Range/Range.js +17 -11
  55. package/dist/components/ScrollArea/ScrollArea.css.js +10 -7
  56. package/dist/components/ScrollArea/ScrollArea.js +16 -10
  57. package/dist/components/Select/Select.css.js +6 -3
  58. package/dist/components/Select/Select.js +18 -12
  59. package/dist/components/Select/SelectContext.js +5 -2
  60. package/dist/components/Select/SelectOption.css.js +6 -3
  61. package/dist/components/Select/SelectOption.js +8 -6
  62. package/dist/components/Select/SelectOptionList.css.js +7 -4
  63. package/dist/components/Select/SelectOptionList.js +12 -8
  64. package/dist/components/Select/SelectTrigger.css.js +9 -6
  65. package/dist/components/Select/SelectTrigger.js +14 -9
  66. package/dist/components/Skeleton/Skeleton.css.js +7 -4
  67. package/dist/components/Skeleton/index.js +12 -6
  68. package/dist/components/Table/Table.css.js +6 -3
  69. package/dist/components/Table/Table.js +14 -7
  70. package/dist/components/Table/TableBody.js +11 -5
  71. package/dist/components/Table/TableCell.css.js +8 -5
  72. package/dist/components/Table/TableCell.js +13 -7
  73. package/dist/components/Table/TableHead.css.js +6 -3
  74. package/dist/components/Table/TableHead.js +13 -7
  75. package/dist/components/Table/TableHeader.js +11 -5
  76. package/dist/components/Table/TableRow.css.js +5 -2
  77. package/dist/components/Table/TableRow.js +12 -6
  78. package/dist/components/Tabs/Tabs.js +12 -7
  79. package/dist/components/Tabs/TabsContent.js +12 -7
  80. package/dist/components/Tabs/TabsList.css.js +6 -3
  81. package/dist/components/Tabs/TabsList.js +12 -6
  82. package/dist/components/Tabs/TabsProvider.js +5 -3
  83. package/dist/components/Tabs/TabsTrigger.css.js +6 -3
  84. package/dist/components/Tabs/TabsTrigger.js +13 -8
  85. package/dist/components/TextField/TextField.css.js +9 -6
  86. package/dist/components/TextField/index.js +14 -7
  87. package/dist/components/Toast/Toast.css.js +9 -6
  88. package/dist/components/Toast/index.js +54 -9
  89. package/dist/components/Typography/Typography.css.js +5 -2
  90. package/dist/components/Typography/index.js +13 -8
  91. package/dist/contexts/UIProvider.js +52 -6
  92. package/dist/hooks/useDialog/index.js +52 -7
  93. package/dist/hooks/useMouseScroll/index.js +4 -2
  94. package/dist/hooks/usePointerSlider/index.js +5 -3
  95. package/dist/hooks/useRipple/index.js +24 -22
  96. package/dist/hooks/useRipple/ripple.css.js +8 -5
  97. package/dist/hooks/useToast/ToastContainer.css.js +5 -2
  98. package/dist/hooks/useToast/ToastContainer.js +7 -4
  99. package/dist/hooks/useToast/ToastProvider.js +53 -10
  100. package/dist/hooks/useToast/index.js +5 -2
  101. package/dist/index.js +79 -8
  102. package/dist/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js +55 -0
  103. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/adapter/dist/vanilla-extract-css-adapter.esm.js +51 -0
  104. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/taggedTemplateLiteral-10998315.esm.js +12 -0
  105. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/transformCss-0dba36bf.esm.js +955 -0
  106. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.esm.js +390 -0
  107. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/fileScope/dist/vanilla-extract-css-fileScope.esm.js +20 -0
  108. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/functionSerializer/dist/vanilla-extract-css-functionSerializer.esm.js +11 -0
  109. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/injectStyles/dist/vanilla-extract-css-injectStyles.esm.js +22 -0
  110. package/dist/node_modules/.pnpm/@vanilla-extract_private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js +37 -0
  111. package/dist/node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js +111 -0
  112. package/dist/node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/recipes/dist/vanilla-extract-recipes.esm.js +43 -0
  113. package/dist/node_modules/.pnpm/@vanilla-extract_sprinkles@1.6.5_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/sprinkles/dist/createSprinkles-74286718.esm.js +190 -0
  114. package/dist/node_modules/.pnpm/@vanilla-extract_sprinkles@1.6.5_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/sprinkles/dist/vanilla-extract-sprinkles.esm.js +146 -0
  115. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +3 -0
  116. package/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/parse.js +423 -0
  117. package/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/types.js +28 -0
  118. package/dist/node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js +119 -0
  119. package/dist/node_modules/.pnpm/dedent@1.6.0_babel-plugin-macros@3.1.0/node_modules/dedent/dist/dedent.js +68 -0
  120. package/dist/node_modules/.pnpm/deep-object-diff@1.1.9/node_modules/deep-object-diff/mjs/diff.js +39 -0
  121. package/dist/node_modules/.pnpm/deep-object-diff@1.1.9/node_modules/deep-object-diff/mjs/utils.js +8 -0
  122. package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js +142 -0
  123. package/dist/node_modules/.pnpm/lru-cache@10.4.3/node_modules/lru-cache/dist/esm/index.js +1542 -0
  124. package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js +45 -0
  125. package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js +30 -0
  126. package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js +20 -0
  127. package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/align-justify.js +18 -0
  128. package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-down.js +14 -0
  129. package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/x.js +17 -0
  130. package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js +28 -0
  131. package/dist/node_modules/.pnpm/media-query-parser@2.0.2/node_modules/media-query-parser/dist/media-query-parser.esm.js +1385 -0
  132. package/dist/node_modules/.pnpm/modern-ahocorasick@1.1.0/node_modules/modern-ahocorasick/dist/index.js +101 -0
  133. package/dist/node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js +86 -0
  134. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js +1325 -0
  135. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +24 -0
  136. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +19 -0
  137. package/dist/styles/globalStyle.css.js +5 -2
  138. package/dist/styles/layers.css.js +6 -3
  139. package/dist/styles/overlay.css.js +7 -4
  140. package/dist/styles/sprinkles.css.js +16 -9
  141. package/dist/styles/sx.js +7 -2
  142. package/dist/themes/darkTheme.css.js +5 -2
  143. package/dist/themes/lightTheme.css.js +5 -2
  144. package/dist/themes/theme.css.js +7 -4
  145. package/dist/tokens/scale/color.js +5 -3
  146. package/dist/tokens/semantic/breakpoint.js +4 -6
  147. package/dist/tokens/semantic/color.js +3 -1
  148. package/dist/tokens/semantic/spacing.js +3 -1
  149. package/dist/tokens/semantic/typography.js +3 -1
  150. package/dist/utils/sprinklesUtils.js +8 -3
  151. package/dist/utils/styleUtils.css.js +10 -5
  152. package/package.json +8 -3
  153. package/dist/components/Accordion/Accordion.spec.js +0 -5
  154. package/dist/components/Accordion/index.js +0 -3
  155. package/dist/components/Box/Box.spec.js +0 -5
  156. package/dist/components/Button/Button.spec.js +0 -19
  157. package/dist/components/Card/Card.spec.js +0 -16
  158. package/dist/components/Card/index.js +0 -4
  159. package/dist/components/Chip/Chip.spec.js +0 -5
  160. package/dist/components/Chip/index.js +0 -1
  161. package/dist/components/Dialog/Dialog.spec.js +0 -16
  162. package/dist/components/Dialog/DialogFooter.css.js +0 -15
  163. package/dist/components/Dialog/index.js +0 -4
  164. package/dist/components/Navigation/Navigation.spec.js +0 -11
  165. package/dist/components/Navigation/index.js +0 -7
  166. package/dist/components/Range/Range.spec.js +0 -5
  167. package/dist/components/Range/index.js +0 -1
  168. package/dist/components/ScrollArea/ScrollArea.spec.js +0 -5
  169. package/dist/components/ScrollArea/index.js +0 -1
  170. package/dist/components/Select/Select.spec.js +0 -35
  171. package/dist/components/Select/index.js +0 -2
  172. package/dist/components/Skeleton/Skeleton.spec.js +0 -5
  173. package/dist/components/Table/Table.spec.js +0 -10
  174. package/dist/components/Table/index.js +0 -6
  175. package/dist/components/Tabs/Tabs.spec.js +0 -22
  176. package/dist/components/Tabs/index.js +0 -4
  177. package/dist/components/TextField/TextField.spec.js +0 -5
  178. package/dist/components/Toast/Toast.spec.js +0 -5
  179. package/dist/components/Typography/Typography.spec.js +0 -28
  180. package/dist/components/index.js +0 -18
  181. package/dist/contexts/index.js +0 -1
  182. package/dist/hooks/index.js +0 -5
  183. package/dist/hooks/useDialog/useDialog.spec.js +0 -53
  184. package/dist/styles/index.js +0 -4
  185. package/dist/tests/uiTest.js +0 -36
  186. package/dist/themes/index.js +0 -3
  187. package/dist/tokens/index.js +0 -5
  188. package/dist/types/index.js +0 -1
  189. package/dist/types/ui.types.js +0 -1
  190. package/dist/utils/index.js +0 -1
@@ -0,0 +1,190 @@
1
+ function toPrimitive(t, r) {
2
+ if ("object" != typeof t || !t) return t;
3
+ var e = t[Symbol.toPrimitive];
4
+ if (void 0 !== e) {
5
+ var i = e.call(t, r);
6
+ if ("object" != typeof i) return i;
7
+ throw new TypeError("@@toPrimitive must return a primitive value.");
8
+ }
9
+ return ("string" === r ? String : Number)(t);
10
+ }
11
+
12
+ function toPropertyKey(t) {
13
+ var i = toPrimitive(t, "string");
14
+ return "symbol" == typeof i ? i : String(i);
15
+ }
16
+
17
+ function _defineProperty(obj, key, value) {
18
+ key = toPropertyKey(key);
19
+ if (key in obj) {
20
+ Object.defineProperty(obj, key, {
21
+ value: value,
22
+ enumerable: true,
23
+ configurable: true,
24
+ writable: true
25
+ });
26
+ } else {
27
+ obj[key] = value;
28
+ }
29
+ return obj;
30
+ }
31
+
32
+ function ownKeys(e, r) {
33
+ var t = Object.keys(e);
34
+ if (Object.getOwnPropertySymbols) {
35
+ var o = Object.getOwnPropertySymbols(e);
36
+ r && (o = o.filter(function (r) {
37
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
38
+ })), t.push.apply(t, o);
39
+ }
40
+ return t;
41
+ }
42
+ function _objectSpread2(e) {
43
+ for (var r = 1; r < arguments.length; r++) {
44
+ var t = null != arguments[r] ? arguments[r] : {};
45
+ r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
46
+ _defineProperty(e, r, t[r]);
47
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
48
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
49
+ });
50
+ }
51
+ return e;
52
+ }
53
+
54
+ var createSprinkles = composeStyles => function () {
55
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
56
+ args[_key] = arguments[_key];
57
+ }
58
+ var sprinklesStyles = Object.assign({}, ...args.map(a => a.styles));
59
+ var sprinklesKeys = Object.keys(sprinklesStyles);
60
+ var shorthandNames = sprinklesKeys.filter(property => 'mappings' in sprinklesStyles[property]);
61
+ var sprinklesFn = props => {
62
+ var classNames = [];
63
+ var shorthands = {};
64
+ var nonShorthands = _objectSpread2({}, props);
65
+ var hasShorthands = false;
66
+ for (var shorthand of shorthandNames) {
67
+ var value = props[shorthand];
68
+ if (value != null) {
69
+ var sprinkle = sprinklesStyles[shorthand];
70
+ hasShorthands = true;
71
+ for (var propMapping of sprinkle.mappings) {
72
+ shorthands[propMapping] = value;
73
+ if (nonShorthands[propMapping] == null) {
74
+ delete nonShorthands[propMapping];
75
+ }
76
+ }
77
+ }
78
+ }
79
+ var finalProps = hasShorthands ? _objectSpread2(_objectSpread2({}, shorthands), nonShorthands) : props;
80
+ var _loop = function _loop() {
81
+ var propValue = finalProps[prop];
82
+ var sprinkle = sprinklesStyles[prop];
83
+ try {
84
+ if (sprinkle.mappings) {
85
+ // Skip shorthands
86
+ return 1; // continue
87
+ }
88
+ if (typeof propValue === 'string' || typeof propValue === 'number') {
89
+ if (process.env.NODE_ENV !== 'production') {
90
+ if (!sprinkle.values[propValue].defaultClass) {
91
+ throw new Error();
92
+ }
93
+ }
94
+ classNames.push(sprinkle.values[propValue].defaultClass);
95
+ } else if (Array.isArray(propValue)) {
96
+ for (var responsiveIndex = 0; responsiveIndex < propValue.length; responsiveIndex++) {
97
+ var responsiveValue = propValue[responsiveIndex];
98
+ if (responsiveValue != null) {
99
+ var conditionName = sprinkle.responsiveArray[responsiveIndex];
100
+ if (process.env.NODE_ENV !== 'production') {
101
+ if (!sprinkle.values[responsiveValue].conditions[conditionName]) {
102
+ throw new Error();
103
+ }
104
+ }
105
+ classNames.push(sprinkle.values[responsiveValue].conditions[conditionName]);
106
+ }
107
+ }
108
+ } else {
109
+ for (var _conditionName in propValue) {
110
+ // Conditional style
111
+ var _value = propValue[_conditionName];
112
+ if (_value != null) {
113
+ if (process.env.NODE_ENV !== 'production') {
114
+ if (!sprinkle.values[_value].conditions[_conditionName]) {
115
+ throw new Error();
116
+ }
117
+ }
118
+ classNames.push(sprinkle.values[_value].conditions[_conditionName]);
119
+ }
120
+ }
121
+ }
122
+ } catch (e) {
123
+ if (process.env.NODE_ENV !== 'production') {
124
+ class SprinklesError extends Error {
125
+ constructor(message) {
126
+ super(message);
127
+ this.name = 'SprinklesError';
128
+ }
129
+ }
130
+ var format = v => typeof v === 'string' ? "\"".concat(v, "\"") : v;
131
+ var invalidPropValue = (prop, value, possibleValues) => {
132
+ throw new SprinklesError("\"".concat(prop, "\" has no value ").concat(format(value), ". Possible values are ").concat(Object.keys(possibleValues).map(format).join(', ')));
133
+ };
134
+ if (!sprinkle) {
135
+ throw new SprinklesError("\"".concat(prop, "\" is not a valid sprinkle"));
136
+ }
137
+ if (typeof propValue === 'string' || typeof propValue === 'number') {
138
+ if (!(propValue in sprinkle.values)) {
139
+ invalidPropValue(prop, propValue, sprinkle.values);
140
+ }
141
+ if (!sprinkle.values[propValue].defaultClass) {
142
+ throw new SprinklesError("\"".concat(prop, "\" has no default condition. You must specify which conditions to target explicitly. Possible options are ").concat(Object.keys(sprinkle.values[propValue].conditions).map(format).join(', ')));
143
+ }
144
+ }
145
+ if (typeof propValue === 'object') {
146
+ if (!('conditions' in sprinkle.values[Object.keys(sprinkle.values)[0]])) {
147
+ throw new SprinklesError("\"".concat(prop, "\" is not a conditional property"));
148
+ }
149
+ if (Array.isArray(propValue)) {
150
+ if (!('responsiveArray' in sprinkle)) {
151
+ throw new SprinklesError("\"".concat(prop, "\" does not support responsive arrays"));
152
+ }
153
+ var breakpointCount = sprinkle.responsiveArray.length;
154
+ if (breakpointCount < propValue.length) {
155
+ throw new SprinklesError("\"".concat(prop, "\" only supports up to ").concat(breakpointCount, " breakpoints. You passed ").concat(propValue.length));
156
+ }
157
+ for (var _responsiveValue of propValue) {
158
+ if (!sprinkle.values[_responsiveValue]) {
159
+ invalidPropValue(prop, _responsiveValue, sprinkle.values);
160
+ }
161
+ }
162
+ } else {
163
+ for (var _conditionName2 in propValue) {
164
+ var _value2 = propValue[_conditionName2];
165
+ if (_value2 != null) {
166
+ if (!sprinkle.values[_value2]) {
167
+ invalidPropValue(prop, _value2, sprinkle.values);
168
+ }
169
+ if (!sprinkle.values[_value2].conditions[_conditionName2]) {
170
+ throw new SprinklesError("\"".concat(prop, "\" has no condition named ").concat(format(_conditionName2), ". Possible values are ").concat(Object.keys(sprinkle.values[_value2].conditions).map(format).join(', ')));
171
+ }
172
+ }
173
+ }
174
+ }
175
+ }
176
+ }
177
+ throw e;
178
+ }
179
+ };
180
+ for (var prop in finalProps) {
181
+ if (_loop()) continue;
182
+ }
183
+ return composeStyles(classNames.join(' '));
184
+ };
185
+ return Object.assign(sprinklesFn, {
186
+ properties: new Set(sprinklesKeys)
187
+ });
188
+ };
189
+
190
+ export { createSprinkles as c };
@@ -0,0 +1,146 @@
1
+ import { style, composeStyles } from '../../../../../@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.esm.js';
2
+ import { addFunctionSerializer } from '../../../../../@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/functionSerializer/dist/vanilla-extract-css-functionSerializer.esm.js';
3
+ import { hasFileScope } from '../../../../../@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/fileScope/dist/vanilla-extract-css-fileScope.esm.js';
4
+ import { c as createSprinkles$1 } from './createSprinkles-74286718.esm.js';
5
+
6
+ // Conditional + Shorthands + ResponsiveArray
7
+
8
+ // Conditional + Shorthands
9
+
10
+ // Conditional + ResponsiveArray
11
+
12
+ // Conditional
13
+
14
+ // Unconditional + Shorthands
15
+
16
+ // Unconditional
17
+
18
+ function defineProperties(options) {
19
+ var styles = 'shorthands' in options ? Object.fromEntries(Object.entries(options.shorthands).map(_ref => {
20
+ var [prop, mappings] = _ref;
21
+ return [prop, {
22
+ mappings
23
+ }];
24
+ })) : {};
25
+ var _loop = function _loop(key) {
26
+ var property = options.properties[key];
27
+ styles[key] = {
28
+ values: {}
29
+ };
30
+ if ('responsiveArray' in options) {
31
+ styles[key].responsiveArray = options.responsiveArray;
32
+ }
33
+ var processValue = (valueName, value) => {
34
+ if ('conditions' in options) {
35
+ styles[key].values[valueName] = {
36
+ conditions: {}
37
+ };
38
+ var defaultConditions = options.defaultCondition ? Array.isArray(options.defaultCondition) ? options.defaultCondition : [options.defaultCondition] : [];
39
+ var defaultClasses = [];
40
+ for (var _conditionName in options.conditions) {
41
+ var styleValue = typeof value === 'object' ? value : {
42
+ [key]: value
43
+ };
44
+ var condition = options.conditions[_conditionName];
45
+ if (condition['@supports']) {
46
+ styleValue = {
47
+ '@supports': {
48
+ [condition['@supports']]: styleValue
49
+ }
50
+ };
51
+ }
52
+ if (condition['@container']) {
53
+ styleValue = {
54
+ '@container': {
55
+ [condition['@container']]: styleValue
56
+ }
57
+ };
58
+ }
59
+ if (condition['@media']) {
60
+ styleValue = {
61
+ '@media': {
62
+ [condition['@media']]: styleValue
63
+ }
64
+ };
65
+ }
66
+ if (condition.selector) {
67
+ styleValue = {
68
+ selectors: {
69
+ [condition.selector]: styleValue
70
+ }
71
+ };
72
+ }
73
+ if (options['@layer']) {
74
+ styleValue = {
75
+ '@layer': {
76
+ [options['@layer']]: styleValue
77
+ }
78
+ };
79
+ }
80
+ var className = style(styleValue, "".concat(key, "_").concat(String(valueName), "_").concat(_conditionName));
81
+ styles[key].values[valueName].conditions[_conditionName] = className;
82
+ if (defaultConditions.indexOf(_conditionName) > -1) {
83
+ defaultClasses.push(className);
84
+ }
85
+ }
86
+ if (defaultClasses.length > 0) {
87
+ styles[key].values[valueName].defaultClass = defaultClasses.join(' ');
88
+ }
89
+ } else {
90
+ var _styleValue = typeof value === 'object' ? value : {
91
+ [key]: value
92
+ };
93
+ if (options['@layer']) {
94
+ _styleValue = {
95
+ '@layer': {
96
+ [options['@layer']]: _styleValue
97
+ }
98
+ };
99
+ }
100
+ styles[key].values[valueName] = {
101
+ defaultClass: style(_styleValue, "".concat(key, "_").concat(String(valueName)))
102
+ };
103
+ }
104
+ };
105
+ if (Array.isArray(property)) {
106
+ for (var value of property) {
107
+ processValue(value, value);
108
+ }
109
+ } else {
110
+ for (var valueName in property) {
111
+ var _value = property[valueName];
112
+ processValue(valueName, _value);
113
+ }
114
+ }
115
+ };
116
+ for (var key in options.properties) {
117
+ _loop(key);
118
+ }
119
+ var conditions = 'conditions' in options ? {
120
+ defaultCondition: options.defaultCondition,
121
+ conditionNames: Object.keys(options.conditions),
122
+ responsiveArray: options.responsiveArray
123
+ } : undefined;
124
+ return {
125
+ conditions,
126
+ styles
127
+ };
128
+ }
129
+ var mockComposeStyles = classList => classList;
130
+ function createSprinkles() {
131
+ for (var _len = arguments.length, config = new Array(_len), _key = 0; _key < _len; _key++) {
132
+ config[_key] = arguments[_key];
133
+ }
134
+ // When using Sprinkles with the runtime (e.g. within a jest test)
135
+ // `style` can be called (only for composition) outside of a fileScope.
136
+ // Checking we're within a fileScope ensures this doesn't blow up and is
137
+ // safe as compositions don't make sense at runtime
138
+ var sprinkles = createSprinkles$1(hasFileScope() ? composeStyles : mockComposeStyles)(...config);
139
+ return addFunctionSerializer(sprinkles, {
140
+ importPath: '@vanilla-extract/sprinkles/createRuntimeSprinkles',
141
+ importName: 'createSprinkles',
142
+ args: config
143
+ });
144
+ }
145
+
146
+ export { defineProperties as createAtomicStyles, createSprinkles as createAtomsFn, createSprinkles, defineProperties };
@@ -0,0 +1,3 @@
1
+ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
2
+
3
+ export { clsx, clsx as default };