tailwind-styled-v4 1.0.1 → 4.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.
Files changed (90) hide show
  1. package/dist/animate.cjs +252 -0
  2. package/dist/animate.cjs.map +1 -0
  3. package/dist/animate.d.cts +117 -0
  4. package/dist/animate.d.ts +117 -0
  5. package/dist/animate.js +245 -0
  6. package/dist/animate.js.map +1 -0
  7. package/dist/astTransform-ua-eapqs.d.cts +41 -0
  8. package/dist/astTransform-ua-eapqs.d.ts +41 -0
  9. package/dist/compiler.cjs +3594 -0
  10. package/dist/compiler.cjs.map +1 -0
  11. package/dist/compiler.d.cts +716 -0
  12. package/dist/compiler.d.ts +716 -0
  13. package/dist/compiler.js +3535 -0
  14. package/dist/compiler.js.map +1 -0
  15. package/dist/css.cjs +71 -0
  16. package/dist/css.cjs.map +1 -0
  17. package/dist/css.d.cts +45 -0
  18. package/dist/css.d.ts +45 -0
  19. package/dist/css.js +62 -0
  20. package/dist/css.js.map +1 -0
  21. package/dist/devtools.cjs +959 -0
  22. package/dist/devtools.cjs.map +1 -0
  23. package/dist/devtools.d.cts +22 -0
  24. package/dist/devtools.d.ts +22 -0
  25. package/dist/devtools.js +952 -0
  26. package/dist/devtools.js.map +1 -0
  27. package/dist/index.cjs +1058 -0
  28. package/dist/index.cjs.map +1 -0
  29. package/dist/index.d.cts +584 -0
  30. package/dist/index.d.ts +449 -980
  31. package/dist/index.js +1021 -3
  32. package/dist/index.js.map +1 -1
  33. package/dist/next.cjs +268 -0
  34. package/dist/next.cjs.map +1 -0
  35. package/dist/next.d.cts +45 -0
  36. package/dist/next.d.ts +45 -0
  37. package/dist/next.js +261 -0
  38. package/dist/next.js.map +1 -0
  39. package/dist/plugins.cjs +396 -0
  40. package/dist/plugins.cjs.map +1 -0
  41. package/dist/plugins.d.cts +231 -0
  42. package/dist/plugins.d.ts +231 -0
  43. package/dist/plugins.js +381 -0
  44. package/dist/plugins.js.map +1 -0
  45. package/dist/preset.cjs +129 -0
  46. package/dist/preset.cjs.map +1 -0
  47. package/dist/preset.d.cts +249 -0
  48. package/dist/preset.d.ts +249 -0
  49. package/dist/preset.js +124 -0
  50. package/dist/preset.js.map +1 -0
  51. package/dist/theme.cjs +154 -0
  52. package/dist/theme.cjs.map +1 -0
  53. package/dist/theme.d.cts +181 -0
  54. package/dist/theme.d.ts +181 -0
  55. package/dist/theme.js +148 -0
  56. package/dist/theme.js.map +1 -0
  57. package/dist/turbopackLoader.cjs +2689 -0
  58. package/dist/turbopackLoader.cjs.map +1 -0
  59. package/dist/turbopackLoader.d.cts +22 -0
  60. package/dist/turbopackLoader.d.ts +22 -0
  61. package/dist/turbopackLoader.js +2681 -0
  62. package/dist/turbopackLoader.js.map +1 -0
  63. package/dist/vite.cjs +105 -0
  64. package/dist/vite.cjs.map +1 -0
  65. package/dist/vite.d.cts +22 -0
  66. package/dist/vite.d.ts +22 -0
  67. package/dist/vite.js +96 -0
  68. package/dist/vite.js.map +1 -0
  69. package/dist/webpackLoader.cjs +2670 -0
  70. package/dist/webpackLoader.cjs.map +1 -0
  71. package/dist/webpackLoader.d.cts +24 -0
  72. package/dist/webpackLoader.d.ts +24 -0
  73. package/dist/webpackLoader.js +2662 -0
  74. package/dist/webpackLoader.js.map +1 -0
  75. package/package.json +62 -32
  76. package/CHANGELOG.md +0 -75
  77. package/LICENSE +0 -21
  78. package/README.md +0 -608
  79. package/dist/cli/init.js +0 -208
  80. package/dist/compiler/index.d.mts +0 -214
  81. package/dist/compiler/index.d.ts +0 -214
  82. package/dist/compiler/index.js +0 -546
  83. package/dist/compiler/index.js.map +0 -1
  84. package/dist/compiler/index.mjs +0 -504
  85. package/dist/compiler/index.mjs.map +0 -1
  86. package/dist/index.d.mts +0 -1115
  87. package/dist/index.mjs +0 -4
  88. package/dist/index.mjs.map +0 -1
  89. package/dist/turbopack-loader.js +0 -232
  90. package/dist/webpack-loader.js +0 -213
package/dist/index.cjs ADDED
@@ -0,0 +1,1058 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var tailwindMerge = require('tailwind-merge');
5
+
6
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
+
8
+ var React__default = /*#__PURE__*/_interopDefault(React);
9
+
10
+ /* tailwind-styled-v4 v4 | MIT | https://github.com/dictionar32/tailwind-styled-v4 */
11
+ var __defProp = Object.defineProperty;
12
+ var __defProps = Object.defineProperties;
13
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
14
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
15
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
16
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
17
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
18
+ var __spreadValues = (a, b) => {
19
+ for (var prop in b || (b = {}))
20
+ if (__hasOwnProp.call(b, prop))
21
+ __defNormalProp(a, prop, b[prop]);
22
+ if (__getOwnPropSymbols)
23
+ for (var prop of __getOwnPropSymbols(b)) {
24
+ if (__propIsEnum.call(b, prop))
25
+ __defNormalProp(a, prop, b[prop]);
26
+ }
27
+ return a;
28
+ };
29
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
30
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
31
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
32
+ }) : x)(function(x) {
33
+ if (typeof require !== "undefined") return require.apply(this, arguments);
34
+ throw Error('Dynamic require of "' + x + '" is not supported');
35
+ });
36
+ var __objRest = (source, exclude) => {
37
+ var target = {};
38
+ for (var prop in source)
39
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
40
+ target[prop] = source[prop];
41
+ if (source != null && __getOwnPropSymbols)
42
+ for (var prop of __getOwnPropSymbols(source)) {
43
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
44
+ target[prop] = source[prop];
45
+ }
46
+ return target;
47
+ };
48
+
49
+ // src/containerQuery.ts
50
+ var CONTAINER_BREAKPOINTS = {
51
+ xs: "240px",
52
+ sm: "320px",
53
+ md: "640px",
54
+ lg: "1024px",
55
+ xl: "1280px",
56
+ "2xl": "1536px"
57
+ };
58
+ var containerRegistry = /* @__PURE__ */ new Map();
59
+ if (typeof window !== "undefined") {
60
+ window.__TW_CONTAINER_REGISTRY__ = containerRegistry;
61
+ }
62
+ function hashContainer(tag, container, name) {
63
+ const key = tag + (name != null ? name : "") + JSON.stringify(Object.entries(container).sort());
64
+ let hash = 5381;
65
+ for (let i = 0; i < key.length; i++) {
66
+ hash = (hash << 5) + hash ^ key.charCodeAt(i);
67
+ }
68
+ return `tw-cq-${Math.abs(hash).toString(36).slice(0, 6)}`;
69
+ }
70
+ var LAYOUT_MAP = {
71
+ "flex-col": "flex-direction:column",
72
+ "flex-row": "flex-direction:row",
73
+ "flex-wrap": "flex-wrap:wrap",
74
+ "flex-nowrap": "flex-wrap:nowrap",
75
+ "flex-1": "flex:1 1 0%",
76
+ hidden: "display:none",
77
+ block: "display:block",
78
+ flex: "display:flex",
79
+ grid: "display:grid",
80
+ "grid-cols-1": "grid-template-columns:repeat(1,minmax(0,1fr))",
81
+ "grid-cols-2": "grid-template-columns:repeat(2,minmax(0,1fr))",
82
+ "grid-cols-3": "grid-template-columns:repeat(3,minmax(0,1fr))",
83
+ "grid-cols-4": "grid-template-columns:repeat(4,minmax(0,1fr))",
84
+ "grid-cols-6": "grid-template-columns:repeat(6,minmax(0,1fr))",
85
+ "grid-cols-12": "grid-template-columns:repeat(12,minmax(0,1fr))",
86
+ "text-sm": "font-size:0.875rem;line-height:1.25rem",
87
+ "text-base": "font-size:1rem;line-height:1.5rem",
88
+ "text-lg": "font-size:1.125rem;line-height:1.75rem",
89
+ "text-xl": "font-size:1.25rem;line-height:1.75rem",
90
+ "text-2xl": "font-size:1.5rem;line-height:2rem",
91
+ "text-xs": "font-size:0.75rem;line-height:1rem",
92
+ "p-2": "padding:0.5rem",
93
+ "p-4": "padding:1rem",
94
+ "p-6": "padding:1.5rem",
95
+ "p-8": "padding:2rem",
96
+ "px-2": "padding-left:0.5rem;padding-right:0.5rem",
97
+ "px-4": "padding-left:1rem;padding-right:1rem",
98
+ "px-6": "padding-left:1.5rem;padding-right:1.5rem",
99
+ "py-2": "padding-top:0.5rem;padding-bottom:0.5rem",
100
+ "py-4": "padding-top:1rem;padding-bottom:1rem",
101
+ "gap-2": "gap:0.5rem",
102
+ "gap-4": "gap:1rem",
103
+ "gap-6": "gap:1.5rem",
104
+ "gap-8": "gap:2rem",
105
+ "w-full": "width:100%",
106
+ "w-1/2": "width:50%",
107
+ "w-1/3": "width:33.333333%",
108
+ "w-2/3": "width:66.666667%",
109
+ "max-w-sm": "max-width:24rem",
110
+ "max-w-md": "max-width:28rem",
111
+ "max-w-lg": "max-width:32rem",
112
+ "max-w-xl": "max-width:36rem",
113
+ "items-center": "align-items:center",
114
+ "items-start": "align-items:flex-start",
115
+ "items-end": "align-items:flex-end",
116
+ "justify-center": "justify-content:center",
117
+ "justify-between": "justify-content:space-between",
118
+ "justify-start": "justify-content:flex-start",
119
+ "justify-end": "justify-content:flex-end"
120
+ };
121
+ function layoutClassesToCss(classes) {
122
+ var _a, _b;
123
+ const decls = [];
124
+ for (const cls of classes.trim().split(/\s+/)) {
125
+ if (LAYOUT_MAP[cls]) decls.push(LAYOUT_MAP[cls]);
126
+ else if (cls.startsWith("w-[")) {
127
+ const val = (_a = cls.match(/\[(.+)\]/)) == null ? void 0 : _a[1];
128
+ if (val) decls.push(`width:${val}`);
129
+ } else if (cls.startsWith("max-w-[")) {
130
+ const val = (_b = cls.match(/\[(.+)\]/)) == null ? void 0 : _b[1];
131
+ if (val) decls.push(`max-width:${val}`);
132
+ }
133
+ }
134
+ return decls.join(";");
135
+ }
136
+ function buildContainerRules(id, container, containerName) {
137
+ var _a, _b, _c;
138
+ const rules = [];
139
+ for (const [key, value] of Object.entries(container)) {
140
+ let minWidth;
141
+ let classes;
142
+ if (typeof value === "string") {
143
+ minWidth = (_a = CONTAINER_BREAKPOINTS[key]) != null ? _a : key;
144
+ classes = value;
145
+ } else {
146
+ minWidth = (_c = (_b = value.minWidth) != null ? _b : CONTAINER_BREAKPOINTS[key]) != null ? _c : key;
147
+ classes = value.classes;
148
+ }
149
+ const css = layoutClassesToCss(classes);
150
+ if (!css) continue;
151
+ const query = containerName ? `@container ${containerName} (min-width: ${minWidth})` : `@container (min-width: ${minWidth})`;
152
+ rules.push(`${query}{.${id}{${css}}}`);
153
+ }
154
+ return rules.join("\n");
155
+ }
156
+ function injectContainerStyles(id, container, containerName) {
157
+ if (typeof document === "undefined") return;
158
+ const styleId = `tw-cq-${id}`;
159
+ if (document.getElementById(styleId)) return;
160
+ const css = buildContainerRules(id, container, containerName);
161
+ if (!css) return;
162
+ try {
163
+ const { batchedInject } = __require("@tailwind-styled/runtime-css/batched");
164
+ for (const rule of css.split("\n").filter(Boolean)) batchedInject(rule);
165
+ return;
166
+ } catch (e) {
167
+ }
168
+ const style = document.createElement("style");
169
+ style.id = styleId;
170
+ style.setAttribute("data-tw-container", id);
171
+ style.textContent = css;
172
+ document.head.appendChild(style);
173
+ }
174
+ function processContainer(tag, container, containerName) {
175
+ const id = hashContainer(tag, container, containerName);
176
+ if (!containerRegistry.has(id)) {
177
+ const breakpoints = Object.entries(container).map(([key, value]) => {
178
+ var _a;
179
+ return {
180
+ minWidth: (_a = CONTAINER_BREAKPOINTS[key]) != null ? _a : key,
181
+ classes: typeof value === "string" ? value : value.classes
182
+ };
183
+ });
184
+ containerRegistry.set(id, {
185
+ id,
186
+ tag,
187
+ containerName,
188
+ breakpoints,
189
+ cssInjected: false
190
+ });
191
+ }
192
+ injectContainerStyles(id, container, containerName);
193
+ containerRegistry.get(id).cssInjected = true;
194
+ return { containerClass: id, hasContainer: true };
195
+ }
196
+ function generateContainerCss(tag, container, containerName) {
197
+ const id = hashContainer(tag, container, containerName);
198
+ return buildContainerRules(id, container, containerName);
199
+ }
200
+ function getContainerRegistry() {
201
+ return containerRegistry;
202
+ }
203
+
204
+ // src/stateEngine.ts
205
+ var stateRegistry = /* @__PURE__ */ new Map();
206
+ if (typeof window !== "undefined") {
207
+ window.__TW_STATE_REGISTRY__ = stateRegistry;
208
+ }
209
+ function hashState(tag, state) {
210
+ const key = tag + JSON.stringify(Object.entries(state).sort());
211
+ let hash = 5381;
212
+ for (let i = 0; i < key.length; i++) {
213
+ hash = (hash << 5) + hash ^ key.charCodeAt(i);
214
+ }
215
+ return `tw-s-${Math.abs(hash).toString(36).slice(0, 6)}`;
216
+ }
217
+ var TW_MAP = {
218
+ // Display
219
+ hidden: "display:none",
220
+ block: "display:block",
221
+ flex: "display:flex",
222
+ inline: "display:inline",
223
+ "inline-flex": "display:inline-flex",
224
+ grid: "display:grid",
225
+ // Opacity
226
+ "opacity-0": "opacity:0",
227
+ "opacity-5": "opacity:0.05",
228
+ "opacity-10": "opacity:0.1",
229
+ "opacity-20": "opacity:0.2",
230
+ "opacity-25": "opacity:0.25",
231
+ "opacity-30": "opacity:0.3",
232
+ "opacity-40": "opacity:0.4",
233
+ "opacity-50": "opacity:0.5",
234
+ "opacity-60": "opacity:0.6",
235
+ "opacity-70": "opacity:0.7",
236
+ "opacity-75": "opacity:0.75",
237
+ "opacity-80": "opacity:0.8",
238
+ "opacity-90": "opacity:0.9",
239
+ "opacity-95": "opacity:0.95",
240
+ "opacity-100": "opacity:1",
241
+ // Cursor
242
+ "cursor-pointer": "cursor:pointer",
243
+ "cursor-not-allowed": "cursor:not-allowed",
244
+ "cursor-default": "cursor:default",
245
+ "cursor-wait": "cursor:wait",
246
+ "cursor-move": "cursor:move",
247
+ "cursor-grab": "cursor:grab",
248
+ "cursor-grabbing": "cursor:grabbing",
249
+ // Pointer events
250
+ "pointer-events-none": "pointer-events:none",
251
+ "pointer-events-auto": "pointer-events:auto",
252
+ // Scale
253
+ "scale-90": "transform:scale(0.9)",
254
+ "scale-95": "transform:scale(0.95)",
255
+ "scale-100": "transform:scale(1)",
256
+ "scale-105": "transform:scale(1.05)",
257
+ "scale-110": "transform:scale(1.1)",
258
+ // Translate
259
+ "translate-x-0": "transform:translateX(0)",
260
+ "translate-y-0": "transform:translateY(0)",
261
+ "-translate-x-1": "transform:translateX(-0.25rem)",
262
+ "-translate-y-1": "transform:translateY(-0.25rem)",
263
+ "translate-x-1": "transform:translateX(0.25rem)",
264
+ "translate-y-1": "transform:translateY(0.25rem)",
265
+ // Ring
266
+ ring: "box-shadow:0 0 0 3px rgba(59,130,246,0.5)",
267
+ "ring-2": "box-shadow:0 0 0 2px rgba(59,130,246,0.5)",
268
+ "ring-4": "box-shadow:0 0 0 4px rgba(59,130,246,0.5)",
269
+ "ring-inset": "box-shadow:inset 0 0 0 3px rgba(59,130,246,0.5)",
270
+ // Border
271
+ border: "border-width:1px",
272
+ "border-2": "border-width:2px",
273
+ "border-transparent": "border-color:transparent",
274
+ // Outline
275
+ "outline-none": "outline:2px solid transparent;outline-offset:2px",
276
+ outline: "outline:2px solid currentColor",
277
+ // Overflow
278
+ "overflow-hidden": "overflow:hidden",
279
+ "overflow-auto": "overflow:auto",
280
+ "overflow-scroll": "overflow:scroll",
281
+ // Text decoration
282
+ underline: "text-decoration-line:underline",
283
+ "no-underline": "text-decoration-line:none",
284
+ "line-through": "text-decoration-line:line-through",
285
+ // Font weight
286
+ "font-bold": "font-weight:700",
287
+ "font-semibold": "font-weight:600",
288
+ "font-medium": "font-weight:500",
289
+ "font-normal": "font-weight:400",
290
+ // Background colors (common)
291
+ "bg-transparent": "background-color:transparent",
292
+ "bg-white": "background-color:#fff",
293
+ "bg-black": "background-color:#000",
294
+ "bg-blue-500": "background-color:rgb(59,130,246)",
295
+ "bg-blue-600": "background-color:rgb(37,99,235)",
296
+ "bg-red-500": "background-color:rgb(239,68,68)",
297
+ "bg-green-500": "background-color:rgb(34,197,94)",
298
+ "bg-yellow-500": "background-color:rgb(234,179,8)",
299
+ "bg-zinc-900": "background-color:rgb(24,24,27)",
300
+ "bg-zinc-800": "background-color:rgb(39,39,42)",
301
+ // Text colors
302
+ "text-white": "color:#fff",
303
+ "text-black": "color:#000",
304
+ "text-blue-500": "color:rgb(59,130,246)",
305
+ "text-red-500": "color:rgb(239,68,68)",
306
+ "text-zinc-400": "color:rgb(161,161,170)",
307
+ "text-zinc-500": "color:rgb(113,113,122)"
308
+ };
309
+ function twClassesToCss(classes) {
310
+ var _a;
311
+ const decls = [];
312
+ for (const cls of classes.trim().split(/\s+/)) {
313
+ if (TW_MAP[cls]) decls.push(TW_MAP[cls]);
314
+ else if (cls.includes("[") && cls.includes("]")) {
315
+ const val = (_a = cls.match(/\[(.+)\]/)) == null ? void 0 : _a[1];
316
+ if (!val) continue;
317
+ if (cls.startsWith("bg-[")) decls.push(`background-color:${val}`);
318
+ else if (cls.startsWith("text-[")) decls.push(`color:${val}`);
319
+ else if (cls.startsWith("w-[")) decls.push(`width:${val}`);
320
+ else if (cls.startsWith("h-[")) decls.push(`height:${val}`);
321
+ else if (cls.startsWith("opacity-[")) decls.push(`opacity:${val}`);
322
+ }
323
+ }
324
+ return decls.join(";");
325
+ }
326
+ function injectStateStyles(id, state) {
327
+ if (typeof document === "undefined") return;
328
+ const styleId = `tw-state-${id}`;
329
+ if (document.getElementById(styleId)) return;
330
+ const rules = [];
331
+ for (const [stateName, classes] of Object.entries(state)) {
332
+ const css = twClassesToCss(classes);
333
+ if (css) {
334
+ rules.push(`.${id}[data-${stateName}="true"]{${css}}`);
335
+ }
336
+ }
337
+ if (rules.length === 0) return;
338
+ try {
339
+ const { batchedInject } = __require("@tailwind-styled/runtime-css/batched");
340
+ for (const rule of rules) batchedInject(rule);
341
+ return;
342
+ } catch (e) {
343
+ }
344
+ const style = document.createElement("style");
345
+ style.id = styleId;
346
+ style.setAttribute("data-tw-state", id);
347
+ style.textContent = rules.join("\n");
348
+ document.head.appendChild(style);
349
+ }
350
+ function processState(tag, state) {
351
+ const id = hashState(tag, state);
352
+ const stateNames = Object.keys(state);
353
+ if (!stateRegistry.has(id)) {
354
+ stateRegistry.set(id, {
355
+ id,
356
+ tag,
357
+ states: stateNames,
358
+ cssInjected: false
359
+ });
360
+ }
361
+ injectStateStyles(id, state);
362
+ const entry = stateRegistry.get(id);
363
+ entry.cssInjected = true;
364
+ return { stateClass: id, hasState: true, stateNames };
365
+ }
366
+ function generateStateCss(tag, state) {
367
+ const id = hashState(tag, state);
368
+ const rules = [];
369
+ for (const [stateName, classes] of Object.entries(state)) {
370
+ const css = twClassesToCss(classes);
371
+ if (css) {
372
+ rules.push(`.${id}[data-${stateName}="true"]{${css}}`);
373
+ }
374
+ }
375
+ return rules.join("\n");
376
+ }
377
+ function getStateRegistry() {
378
+ return stateRegistry;
379
+ }
380
+
381
+ // src/createComponent.ts
382
+ var ALWAYS_BLOCKED = /* @__PURE__ */ new Set(["base", "_ref", "state", "container", "containerName"]);
383
+ function makeFilterProps(variantKeys) {
384
+ return function filterProps(props) {
385
+ const out = {};
386
+ for (const key in props) {
387
+ if (variantKeys.has(key)) continue;
388
+ if (key.startsWith("$")) continue;
389
+ if (ALWAYS_BLOCKED.has(key)) continue;
390
+ out[key] = props[key];
391
+ }
392
+ return out;
393
+ };
394
+ }
395
+ function resolveVariants(variants, props, defaults) {
396
+ var _a;
397
+ const classes = [];
398
+ for (const key in variants) {
399
+ const val = (_a = props[key]) != null ? _a : defaults[key];
400
+ if (val !== void 0 && variants[key][String(val)]) {
401
+ classes.push(variants[key][String(val)]);
402
+ }
403
+ }
404
+ return classes.join(" ");
405
+ }
406
+ function resolveCompound(compounds, props) {
407
+ const classes = [];
408
+ for (const compound of compounds) {
409
+ const _a = compound, { class: cls } = _a, conditions = __objRest(_a, ["class"]);
410
+ const match = Object.entries(conditions).every(([k, v]) => props[k] === v);
411
+ if (match) classes.push(cls);
412
+ }
413
+ return classes.join(" ");
414
+ }
415
+ function createComponent(tag, config) {
416
+ var _a, _b, _c, _d, _e;
417
+ const isStatic = typeof config === "string";
418
+ const base = isStatic ? config : (_a = config.base) != null ? _a : "";
419
+ const variants = isStatic ? {} : (_b = config.variants) != null ? _b : {};
420
+ const compoundVariants = isStatic ? [] : (_c = config.compoundVariants) != null ? _c : [];
421
+ const defaultVariants = isStatic ? {} : (_d = config.defaultVariants) != null ? _d : {};
422
+ const stateConfig = isStatic ? void 0 : config.state;
423
+ const containerConfig = isStatic ? void 0 : config.container;
424
+ const containerName = isStatic ? void 0 : config.containerName;
425
+ const stateResult = stateConfig ? processState(typeof tag === "string" ? tag : "component", stateConfig) : null;
426
+ const containerResult = containerConfig ? processContainer(typeof tag === "string" ? tag : "component", containerConfig, containerName) : null;
427
+ const engineClasses = [stateResult == null ? void 0 : stateResult.stateClass, containerResult == null ? void 0 : containerResult.containerClass].filter(Boolean).join(" ");
428
+ const variantKeySet = new Set(Object.keys(variants));
429
+ const filterProps = makeFilterProps(variantKeySet);
430
+ const tagStr = typeof tag === "string" ? tag : (_e = tag.displayName) != null ? _e : "Component";
431
+ if (isStatic || Object.keys(variants).length === 0) {
432
+ const Component2 = React__default.default.forwardRef((props, ref) => {
433
+ const _a2 = props, { className } = _a2, rest = __objRest(_a2, ["className"]);
434
+ return React__default.default.createElement(tag, __spreadProps(__spreadValues({
435
+ ref
436
+ }, filterProps(rest)), {
437
+ className: tailwindMerge.twMerge(base, engineClasses, className)
438
+ }));
439
+ });
440
+ Component2.displayName = `tw.${tagStr}`;
441
+ attachExtend(Component2, tag, base, config);
442
+ return Component2;
443
+ }
444
+ const Component = React__default.default.forwardRef((props, ref) => {
445
+ const { className } = props;
446
+ const variantClasses = resolveVariants(variants, props, defaultVariants);
447
+ const compoundClasses = resolveCompound(compoundVariants, props);
448
+ return React__default.default.createElement(tag, __spreadProps(__spreadValues({
449
+ ref
450
+ }, filterProps(props)), {
451
+ className: tailwindMerge.twMerge(base, variantClasses, compoundClasses, engineClasses, className)
452
+ }));
453
+ });
454
+ Component.displayName = `tw.${tagStr}`;
455
+ attachExtend(Component, tag, base, config);
456
+ return Component;
457
+ }
458
+ function attachExtend(Component, originalTag, base, config) {
459
+ Component.extend = (strings, ..._exprs) => {
460
+ const extra = strings.raw.join("").trim().replace(/\s+/g, " ");
461
+ const merged = tailwindMerge.twMerge(base, extra);
462
+ return createComponent(
463
+ originalTag,
464
+ typeof config === "string" ? merged : __spreadProps(__spreadValues({}, config), { base: merged })
465
+ );
466
+ };
467
+ Component.withVariants = (newConfig) => {
468
+ var _a, _b, _c, _d, _e, _f;
469
+ const existing = typeof config === "object" ? config : {};
470
+ return createComponent(originalTag, __spreadProps(__spreadValues({}, existing), {
471
+ base,
472
+ variants: __spreadValues(__spreadValues({}, (_a = existing.variants) != null ? _a : {}), (_b = newConfig.variants) != null ? _b : {}),
473
+ compoundVariants: [
474
+ ...(_c = existing.compoundVariants) != null ? _c : [],
475
+ ...(_d = newConfig.compoundVariants) != null ? _d : []
476
+ ],
477
+ defaultVariants: __spreadValues(__spreadValues({}, (_e = existing.defaultVariants) != null ? _e : {}), (_f = newConfig.defaultVariants) != null ? _f : {})
478
+ }));
479
+ };
480
+ Component.animate = (opts) => {
481
+ try {
482
+ const { animate: animateFn } = __require("@tailwind-styled/animate");
483
+ const animClass = animateFn(opts);
484
+ const merged = tailwindMerge.twMerge(base, animClass);
485
+ return createComponent(
486
+ originalTag,
487
+ typeof config === "string" ? merged : __spreadProps(__spreadValues({}, config), { base: merged })
488
+ );
489
+ } catch (e) {
490
+ console.warn("[tailwind-styled-v4] .animate() requires @tailwind-styled/animate");
491
+ return Component;
492
+ }
493
+ };
494
+ }
495
+ function cv(config) {
496
+ const { base = "", variants = {}, compoundVariants = [], defaultVariants = {} } = config;
497
+ return (props = {}) => {
498
+ var _a;
499
+ const classes = [base];
500
+ for (const key in variants) {
501
+ const val = (_a = props[key]) != null ? _a : defaultVariants[key];
502
+ if (val !== void 0 && variants[key][String(val)]) {
503
+ classes.push(variants[key][String(val)]);
504
+ }
505
+ }
506
+ for (const compound of compoundVariants) {
507
+ const _b = compound, { class: cls } = _b, conditions = __objRest(_b, ["class"]);
508
+ const match = Object.entries(conditions).every(([k, v]) => props[k] === v);
509
+ if (match) classes.push(cls);
510
+ }
511
+ if (props.className) classes.push(props.className);
512
+ return tailwindMerge.twMerge(...classes);
513
+ };
514
+ }
515
+ function cn(...inputs) {
516
+ return inputs.filter(Boolean).join(" ").replace(/\s+/g, " ").trim();
517
+ }
518
+ function cx(...inputs) {
519
+ return tailwindMerge.twMerge(...inputs.filter(Boolean));
520
+ }
521
+ var cxm = cx;
522
+
523
+ // src/liveTokenEngine.ts
524
+ var _currentTokens = {};
525
+ var _subscribers = /* @__PURE__ */ new Set();
526
+ var _styleEl = null;
527
+ if (typeof window !== "undefined") {
528
+ window.__TW_TOKEN_ENGINE__ = {
529
+ getTokens: () => _currentTokens,
530
+ setToken: (name, value) => setToken(name, value),
531
+ subscribe: (fn) => subscribeTokens(fn)
532
+ };
533
+ }
534
+ function tokenVar(name) {
535
+ const normalized = name.replace(/[^a-zA-Z0-9-]/g, "-").toLowerCase();
536
+ return `--tw-token-${normalized}`;
537
+ }
538
+ function tokenRef(name) {
539
+ return `var(${tokenVar(name)})`;
540
+ }
541
+ function buildRootCss(tokens) {
542
+ const vars = Object.entries(tokens).map(([name, value]) => ` ${tokenVar(name)}: ${value};`).join("\n");
543
+ return `:root {
544
+ ${vars}
545
+ }`;
546
+ }
547
+ function syncStyleEl() {
548
+ if (typeof document === "undefined") return;
549
+ if (!_styleEl) {
550
+ _styleEl = document.createElement("style");
551
+ _styleEl.id = "tw-live-tokens";
552
+ _styleEl.setAttribute("data-tw-tokens", "true");
553
+ document.head.appendChild(_styleEl);
554
+ }
555
+ _styleEl.textContent = buildRootCss(_currentTokens);
556
+ }
557
+ function notifySubscribers() {
558
+ const snapshot = __spreadValues({}, _currentTokens);
559
+ for (const sub of _subscribers) {
560
+ try {
561
+ sub(snapshot);
562
+ } catch (_e) {
563
+ }
564
+ }
565
+ }
566
+ function liveToken(tokens) {
567
+ _currentTokens = __spreadValues(__spreadValues({}, _currentTokens), tokens);
568
+ syncStyleEl();
569
+ const vars = {};
570
+ for (const name of Object.keys(tokens)) {
571
+ vars[name] = tokenRef(name);
572
+ }
573
+ return {
574
+ vars,
575
+ get(name) {
576
+ return _currentTokens[name];
577
+ },
578
+ set(name, value) {
579
+ setToken(name, value);
580
+ },
581
+ setAll(newTokens) {
582
+ setTokens(newTokens);
583
+ },
584
+ snapshot() {
585
+ return __spreadValues({}, _currentTokens);
586
+ }
587
+ };
588
+ }
589
+ function setToken(name, value) {
590
+ _currentTokens = __spreadProps(__spreadValues({}, _currentTokens), { [name]: value });
591
+ if (typeof document !== "undefined") {
592
+ document.documentElement.style.setProperty(tokenVar(name), value);
593
+ }
594
+ notifySubscribers();
595
+ }
596
+ function setTokens(tokens) {
597
+ _currentTokens = __spreadValues(__spreadValues({}, _currentTokens), tokens);
598
+ if (typeof document !== "undefined") {
599
+ const root = document.documentElement;
600
+ for (const [name, value] of Object.entries(tokens)) {
601
+ root.style.setProperty(tokenVar(name), value);
602
+ }
603
+ }
604
+ notifySubscribers();
605
+ }
606
+ function applyTokenSet(tokens) {
607
+ if (typeof document !== "undefined") {
608
+ const root = document.documentElement;
609
+ for (const name of Object.keys(_currentTokens)) {
610
+ if (!(name in tokens)) {
611
+ root.style.removeProperty(tokenVar(name));
612
+ }
613
+ }
614
+ }
615
+ _currentTokens = __spreadValues({}, tokens);
616
+ syncStyleEl();
617
+ notifySubscribers();
618
+ }
619
+ function getToken(name) {
620
+ return _currentTokens[name];
621
+ }
622
+ function getTokens() {
623
+ return __spreadValues({}, _currentTokens);
624
+ }
625
+ function subscribeTokens(fn) {
626
+ _subscribers.add(fn);
627
+ return () => {
628
+ _subscribers.delete(fn);
629
+ };
630
+ }
631
+ function generateTokenCssString() {
632
+ return buildRootCss(_currentTokens);
633
+ }
634
+ function createUseTokens() {
635
+ let useState, useEffect;
636
+ try {
637
+ const react = __require("react");
638
+ useState = react.useState;
639
+ useEffect = react.useEffect;
640
+ } catch (e) {
641
+ return null;
642
+ }
643
+ return function useTokens() {
644
+ const [tokens, setTokens_] = useState(__spreadValues({}, _currentTokens));
645
+ useEffect(() => {
646
+ setTokens_(__spreadValues({}, _currentTokens));
647
+ const unsub = subscribeTokens((t2) => setTokens_(__spreadValues({}, t2)));
648
+ return unsub;
649
+ }, []);
650
+ return tokens;
651
+ };
652
+ }
653
+
654
+ // src/styledSystem.ts
655
+ function tokenVarName(prefix, group, name) {
656
+ return `--${prefix}-${group}-${name}`;
657
+ }
658
+ function tokenVarRef(prefix, group, name) {
659
+ return `var(${tokenVarName(prefix, group, name)})`;
660
+ }
661
+ function resolveTokenRef(tokens, prefix, value) {
662
+ var _a;
663
+ if (value.startsWith("token:")) {
664
+ const path = value.slice(6);
665
+ const [group, name] = path.split(".");
666
+ if (group && name && ((_a = tokens[group]) == null ? void 0 : _a[name]) !== void 0) {
667
+ return tokenVarRef(prefix, group, name);
668
+ }
669
+ }
670
+ return value;
671
+ }
672
+ function injectTokensToRoot(tokens, prefix) {
673
+ if (typeof document === "undefined") return;
674
+ const styleId = `__tw-sys-tokens-${prefix}`;
675
+ if (document.getElementById(styleId)) return;
676
+ const lines = [":root {"];
677
+ for (const [group, map] of Object.entries(tokens)) {
678
+ for (const [name, value] of Object.entries(map)) {
679
+ lines.push(` ${tokenVarName(prefix, group, name)}: ${value};`);
680
+ }
681
+ }
682
+ lines.push("}");
683
+ const style = document.createElement("style");
684
+ style.id = styleId;
685
+ style.textContent = lines.join("\n");
686
+ document.head.appendChild(style);
687
+ }
688
+ function resolveComponentConfig(config, tokens, prefix) {
689
+ var _a, _b, _c, _d, _e;
690
+ const resolveStr = (s) => resolveTokenRef(tokens, prefix, s);
691
+ const base = resolveStr((_a = config.base) != null ? _a : "");
692
+ const systemBase = resolveStr((_b = config.systemBase) != null ? _b : "");
693
+ const mergedBase = [systemBase, base].filter(Boolean).join(" ");
694
+ const variants = {};
695
+ for (const [variantKey, variantMap] of Object.entries((_c = config.variants) != null ? _c : {})) {
696
+ variants[variantKey] = {};
697
+ for (const [optKey, classes] of Object.entries(variantMap)) {
698
+ variants[variantKey][optKey] = classes.split(" ").map(resolveStr).join(" ");
699
+ }
700
+ }
701
+ const compoundVariants = ((_d = config.compoundVariants) != null ? _d : []).map((cv2) => {
702
+ const _a2 = cv2, { class: cls } = _a2, rest = __objRest(_a2, ["class"]);
703
+ return __spreadValues({ class: resolveStr(cls) }, rest);
704
+ });
705
+ return {
706
+ base: mergedBase,
707
+ variants,
708
+ compoundVariants,
709
+ defaultVariants: (_e = config.defaultVariants) != null ? _e : {},
710
+ state: config.state,
711
+ container: config.container,
712
+ containerName: config.containerName
713
+ };
714
+ }
715
+ function createStyledSystem(config) {
716
+ var _a, _b, _c, _d;
717
+ const prefix = (_a = config.prefix) != null ? _a : "sys";
718
+ const tokens = (_b = config.tokens) != null ? _b : {};
719
+ const componentDefs = (_c = config.components) != null ? _c : {};
720
+ const shouldInject = config.injectTokens !== false;
721
+ if (shouldInject && typeof window !== "undefined") {
722
+ injectTokensToRoot(tokens, prefix);
723
+ }
724
+ const resolvedConfigs = /* @__PURE__ */ new Map();
725
+ for (const [name, compCfg] of Object.entries(componentDefs)) {
726
+ resolvedConfigs.set(
727
+ name,
728
+ resolveComponentConfig(compCfg, tokens, prefix)
729
+ );
730
+ }
731
+ const factories = {};
732
+ for (const [name, compCfg] of Object.entries(componentDefs)) {
733
+ const tag = (_d = compCfg.tag) != null ? _d : "div";
734
+ factories[name] = (overrides) => {
735
+ var _a2, _b2, _c2, _d2, _e, _f, _g, _h, _i;
736
+ const baseResolved = resolvedConfigs.get(name);
737
+ if (!overrides || Object.keys(overrides).length === 0) {
738
+ return createComponent(tag, baseResolved);
739
+ }
740
+ const overrideResolved = resolveComponentConfig(
741
+ overrides,
742
+ tokens,
743
+ prefix
744
+ );
745
+ const merged = {
746
+ base: [baseResolved.base, overrideResolved.base].filter(Boolean).join(" "),
747
+ variants: __spreadValues(__spreadValues({}, (_a2 = baseResolved.variants) != null ? _a2 : {}), (_b2 = overrideResolved.variants) != null ? _b2 : {}),
748
+ compoundVariants: [
749
+ ...(_c2 = baseResolved.compoundVariants) != null ? _c2 : [],
750
+ ...(_d2 = overrideResolved.compoundVariants) != null ? _d2 : []
751
+ ],
752
+ defaultVariants: __spreadValues(__spreadValues({}, (_e = baseResolved.defaultVariants) != null ? _e : {}), (_f = overrideResolved.defaultVariants) != null ? _f : {}),
753
+ state: (_g = overrideResolved.state) != null ? _g : baseResolved.state,
754
+ container: (_h = overrideResolved.container) != null ? _h : baseResolved.container,
755
+ containerName: (_i = overrideResolved.containerName) != null ? _i : baseResolved.containerName
756
+ };
757
+ return createComponent(tag, merged);
758
+ };
759
+ }
760
+ function token(path) {
761
+ const [group, name] = path.split(".");
762
+ if (!group || !name) return path;
763
+ return tokenVarRef(prefix, group, name);
764
+ }
765
+ function rawToken(path) {
766
+ var _a2;
767
+ const [group, name] = path.split(".");
768
+ if (!group || !name) return void 0;
769
+ return (_a2 = tokens[group]) == null ? void 0 : _a2[name];
770
+ }
771
+ function setTokens2(updates) {
772
+ if (typeof document === "undefined") return;
773
+ const styleId = `__tw-sys-tokens-${prefix}`;
774
+ let style = document.getElementById(styleId);
775
+ if (!style) {
776
+ style = document.createElement("style");
777
+ style.id = styleId;
778
+ document.head.appendChild(style);
779
+ }
780
+ for (const [group, map] of Object.entries(updates)) {
781
+ if (!tokens[group]) continue;
782
+ for (const [name, value] of Object.entries(map)) {
783
+ tokens[group][name] = value;
784
+ }
785
+ }
786
+ const lines = [":root {"];
787
+ for (const [group, map] of Object.entries(tokens)) {
788
+ for (const [name, value] of Object.entries(map)) {
789
+ lines.push(` ${tokenVarName(prefix, group, name)}: ${value};`);
790
+ }
791
+ }
792
+ lines.push("}");
793
+ style.textContent = lines.join("\n");
794
+ }
795
+ function getConfig(name) {
796
+ return resolvedConfigs.get(name);
797
+ }
798
+ return Object.assign(factories, {
799
+ token,
800
+ rawToken,
801
+ setTokens: setTokens2,
802
+ getConfig,
803
+ tokens
804
+ });
805
+ }
806
+
807
+ // src/twProxy.ts
808
+ function parseTemplate(strings, exprs) {
809
+ return strings.raw.reduce((acc, str, i) => {
810
+ const expr = exprs[i];
811
+ const exprStr = typeof expr === "function" ? "" : expr != null ? expr : "";
812
+ return acc + str + String(exprStr);
813
+ }, "").split("\n").map((l) => l.trim()).filter(Boolean).join(" ").replace(/\s+/g, " ").trim();
814
+ }
815
+ function makeTag(tag) {
816
+ return ((stringsOrConfig, ...exprs) => {
817
+ if (!Array.isArray(stringsOrConfig) && typeof stringsOrConfig === "object" && stringsOrConfig !== null && !("raw" in stringsOrConfig)) {
818
+ return createComponent(tag, stringsOrConfig);
819
+ }
820
+ const classes = parseTemplate(stringsOrConfig, exprs);
821
+ return createComponent(tag, classes);
822
+ });
823
+ }
824
+ var HTML_TAGS = [
825
+ "div",
826
+ "section",
827
+ "article",
828
+ "aside",
829
+ "header",
830
+ "footer",
831
+ "main",
832
+ "nav",
833
+ "figure",
834
+ "figcaption",
835
+ "details",
836
+ "summary",
837
+ "h1",
838
+ "h2",
839
+ "h3",
840
+ "h4",
841
+ "h5",
842
+ "h6",
843
+ "p",
844
+ "span",
845
+ "strong",
846
+ "em",
847
+ "b",
848
+ "i",
849
+ "s",
850
+ "u",
851
+ "small",
852
+ "mark",
853
+ "abbr",
854
+ "cite",
855
+ "code",
856
+ "kbd",
857
+ "samp",
858
+ "var",
859
+ "time",
860
+ "address",
861
+ "blockquote",
862
+ "q",
863
+ "del",
864
+ "ins",
865
+ "sub",
866
+ "sup",
867
+ "ul",
868
+ "ol",
869
+ "li",
870
+ "dl",
871
+ "dt",
872
+ "dd",
873
+ "table",
874
+ "thead",
875
+ "tbody",
876
+ "tfoot",
877
+ "tr",
878
+ "th",
879
+ "td",
880
+ "caption",
881
+ "colgroup",
882
+ "col",
883
+ "img",
884
+ "picture",
885
+ "video",
886
+ "audio",
887
+ "source",
888
+ "track",
889
+ "canvas",
890
+ "svg",
891
+ "path",
892
+ "circle",
893
+ "rect",
894
+ "line",
895
+ "polyline",
896
+ "polygon",
897
+ "g",
898
+ "defs",
899
+ "use",
900
+ "symbol",
901
+ "form",
902
+ "input",
903
+ "textarea",
904
+ "select",
905
+ "option",
906
+ "optgroup",
907
+ "button",
908
+ "label",
909
+ "fieldset",
910
+ "legend",
911
+ "output",
912
+ "progress",
913
+ "meter",
914
+ "datalist",
915
+ "a",
916
+ "area",
917
+ "map",
918
+ "iframe",
919
+ "embed",
920
+ "object",
921
+ "pre",
922
+ "hr",
923
+ "br",
924
+ "wbr",
925
+ "dialog",
926
+ "menu",
927
+ "template",
928
+ "slot"
929
+ ];
930
+ function makeServerTag(tag) {
931
+ const baseFactory = makeTag(tag);
932
+ if (typeof window !== "undefined" && process.env.NODE_ENV !== "production") {
933
+ return ((...args) => {
934
+ var _a;
935
+ const tagName = typeof tag === "string" ? tag : (_a = tag.displayName) != null ? _a : "Component";
936
+ console.warn(
937
+ `[tailwind-styled-v4] tw.server.${tagName} rendered in browser. Ensure withTailwindStyled or Vite plugin is configured.`
938
+ );
939
+ return baseFactory(...args);
940
+ });
941
+ }
942
+ return baseFactory;
943
+ }
944
+ var serverFactories = {};
945
+ for (const tag of HTML_TAGS) {
946
+ serverFactories[tag] = makeServerTag(tag);
947
+ }
948
+ var server = serverFactories;
949
+ var tagFactories = {};
950
+ for (const tag of HTML_TAGS) {
951
+ tagFactories[tag] = makeTag(tag);
952
+ }
953
+ function twCallable(component) {
954
+ return makeTag(component);
955
+ }
956
+ var tw = Object.assign(twCallable, tagFactories, {
957
+ server
958
+ });
959
+
960
+ // src/twTheme.ts
961
+ function cssVar(varName, fallback) {
962
+ const name = varName.startsWith("--") ? varName : `--${varName}`;
963
+ return fallback ? `var(${name}, ${fallback})` : `var(${name})`;
964
+ }
965
+ function twVar(property, varName, fallback) {
966
+ const ref = fallback ? `var(--${varName},${fallback})` : `var(--${varName})`;
967
+ return `${property}-[${ref}]`;
968
+ }
969
+ var t = {
970
+ /** Background color from CSS variable: t.bg("color-primary") → "bg-[var(--color-primary)]" */
971
+ bg: (v, fb) => twVar("bg", v, fb),
972
+ /** Text color from CSS variable */
973
+ text: (v, fb) => twVar("text", v, fb),
974
+ /** Border color from CSS variable */
975
+ border: (v, fb) => twVar("border", v, fb),
976
+ /** Ring color from CSS variable */
977
+ ring: (v, fb) => twVar("ring", v, fb),
978
+ /** Outline color from CSS variable */
979
+ outline: (v, fb) => twVar("outline", v, fb),
980
+ /** Fill color from CSS variable (SVG) */
981
+ fill: (v, fb) => twVar("fill", v, fb),
982
+ /** Stroke color from CSS variable (SVG) */
983
+ stroke: (v, fb) => twVar("stroke", v, fb),
984
+ /** Font family from CSS variable */
985
+ font: (v, fb) => twVar("font", v, fb),
986
+ /** Shadow from CSS variable */
987
+ shadow: (v, fb) => twVar("shadow", v, fb),
988
+ /** Any arbitrary property from CSS variable */
989
+ var: (property, v, fb) => twVar(property, v, fb)
990
+ };
991
+ function createTheme(tokenMap) {
992
+ const resolved = {};
993
+ for (const group in tokenMap) {
994
+ resolved[group] = {};
995
+ const tokens = tokenMap[group];
996
+ for (const name in tokens) {
997
+ const varName = tokens[name];
998
+ const prefix = getGroupPrefix(group);
999
+ resolved[group][name] = prefix ? twVar(prefix, varName) : cssVar(varName);
1000
+ }
1001
+ }
1002
+ return resolved;
1003
+ }
1004
+ function getGroupPrefix(group) {
1005
+ var _a;
1006
+ const map = {
1007
+ colors: "bg",
1008
+ // default to bg; user can use t.text() for text colors
1009
+ fonts: "font",
1010
+ spacing: "p",
1011
+ shadows: "shadow"
1012
+ };
1013
+ return (_a = map[group]) != null ? _a : "";
1014
+ }
1015
+ var v4Tokens = {
1016
+ /** bg-[var(--color-background)] */
1017
+ bg: twVar("bg", "color-background"),
1018
+ /** text-[var(--color-foreground)] */
1019
+ text: twVar("text", "color-foreground"),
1020
+ /** font-[var(--font-sans)] */
1021
+ fontSans: twVar("font", "font-sans"),
1022
+ /** font-[var(--font-mono)] */
1023
+ fontMono: twVar("font", "font-mono")
1024
+ };
1025
+
1026
+ exports.applyTokenSet = applyTokenSet;
1027
+ exports.cn = cn;
1028
+ exports.containerRef = tokenRef;
1029
+ exports.createComponent = createComponent;
1030
+ exports.createStyledSystem = createStyledSystem;
1031
+ exports.createTheme = createTheme;
1032
+ exports.createUseTokens = createUseTokens;
1033
+ exports.cssVar = cssVar;
1034
+ exports.cv = cv;
1035
+ exports.cx = cx;
1036
+ exports.cxm = cxm;
1037
+ exports.generateContainerCss = generateContainerCss;
1038
+ exports.generateStateCss = generateStateCss;
1039
+ exports.generateTokenCssString = generateTokenCssString;
1040
+ exports.getContainerRegistry = getContainerRegistry;
1041
+ exports.getStateRegistry = getStateRegistry;
1042
+ exports.getToken = getToken;
1043
+ exports.getTokens = getTokens;
1044
+ exports.liveToken = liveToken;
1045
+ exports.processContainer = processContainer;
1046
+ exports.processState = processState;
1047
+ exports.server = server;
1048
+ exports.setToken = setToken;
1049
+ exports.setTokens = setTokens;
1050
+ exports.subscribeTokens = subscribeTokens;
1051
+ exports.t = t;
1052
+ exports.tokenRef = tokenRef;
1053
+ exports.tokenVar = tokenVar;
1054
+ exports.tw = tw;
1055
+ exports.twVar = twVar;
1056
+ exports.v4Tokens = v4Tokens;
1057
+ //# sourceMappingURL=index.cjs.map
1058
+ //# sourceMappingURL=index.cjs.map