@almadar/ui 2.15.8 → 2.15.11

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 (126) hide show
  1. package/dist/components/atoms/ContentSection.d.ts +16 -0
  2. package/dist/components/atoms/SectionHeader.d.ts +14 -0
  3. package/dist/components/atoms/StatCard.d.ts +13 -0
  4. package/dist/components/atoms/index.d.ts +3 -0
  5. package/dist/components/atoms/svg/SvgBranch.d.ts +12 -0
  6. package/dist/components/atoms/svg/SvgConnection.d.ts +13 -0
  7. package/dist/components/atoms/svg/SvgFlow.d.ts +10 -0
  8. package/dist/components/atoms/svg/SvgGrid.d.ts +14 -0
  9. package/dist/components/atoms/svg/SvgLobe.d.ts +13 -0
  10. package/dist/components/atoms/svg/SvgMesh.d.ts +12 -0
  11. package/dist/components/atoms/svg/SvgMorph.d.ts +11 -0
  12. package/dist/components/atoms/svg/SvgNode.d.ts +12 -0
  13. package/dist/components/atoms/svg/SvgPulse.d.ts +12 -0
  14. package/dist/components/atoms/svg/SvgRing.d.ts +13 -0
  15. package/dist/components/atoms/svg/SvgShield.d.ts +11 -0
  16. package/dist/components/atoms/svg/SvgStack.d.ts +13 -0
  17. package/dist/components/atoms/svg/index.d.ts +12 -0
  18. package/dist/{chunk-ACUO2BBW.js → components/index.cjs} +24831 -16747
  19. package/dist/components/index.js +37754 -889
  20. package/dist/components/molecules/AnimatedCounter.d.ts +18 -0
  21. package/dist/components/molecules/ArticleSection.d.ts +18 -0
  22. package/dist/components/molecules/CTABanner.d.ts +31 -0
  23. package/dist/components/molecules/CaseStudyCard.d.ts +24 -0
  24. package/dist/components/molecules/CodeExample.d.ts +23 -0
  25. package/dist/components/molecules/CommunityLinks.d.ts +25 -0
  26. package/dist/components/molecules/DocBreadcrumb.d.ts +20 -0
  27. package/dist/components/molecules/DocCodeBlock.d.ts +13 -0
  28. package/dist/components/molecules/DocPagination.d.ts +14 -0
  29. package/dist/components/molecules/DocSearch.d.ts +15 -0
  30. package/dist/components/molecules/DocSidebar.d.ts +24 -0
  31. package/dist/components/molecules/DocTOC.d.ts +24 -0
  32. package/dist/components/molecules/FeatureCard.d.ts +26 -0
  33. package/dist/components/molecules/FeatureGrid.d.ts +19 -0
  34. package/dist/components/molecules/GradientDivider.d.ts +14 -0
  35. package/dist/components/molecules/HeroSection.d.ts +36 -0
  36. package/dist/components/molecules/InstallBox.d.ts +16 -0
  37. package/dist/components/molecules/MarketingFooter.d.ts +27 -0
  38. package/dist/components/molecules/PricingCard.d.ts +21 -0
  39. package/dist/components/molecules/PricingGrid.d.ts +13 -0
  40. package/dist/components/molecules/PullQuote.d.ts +14 -0
  41. package/dist/components/molecules/ServiceCatalog.d.ts +19 -0
  42. package/dist/components/molecules/ShowcaseCard.d.ts +20 -0
  43. package/dist/components/molecules/SocialProof.d.ts +25 -0
  44. package/dist/components/molecules/SplitSection.d.ts +21 -0
  45. package/dist/components/molecules/StatsGrid.d.ts +17 -0
  46. package/dist/components/molecules/StepFlow.d.ts +20 -0
  47. package/dist/components/molecules/TagCloud.d.ts +18 -0
  48. package/dist/components/molecules/TeamCard.d.ts +18 -0
  49. package/dist/components/molecules/index.d.ts +19 -0
  50. package/dist/components/molecules/svg/AIGenerates.d.ts +7 -0
  51. package/dist/components/molecules/svg/ClosedCircuit.d.ts +7 -0
  52. package/dist/components/molecules/svg/CommunityOwnership.d.ts +7 -0
  53. package/dist/components/molecules/svg/CompileAnywhere.d.ts +7 -0
  54. package/dist/components/molecules/svg/ComposableModels.d.ts +7 -0
  55. package/dist/components/molecules/svg/DescribeProveDeploy.d.ts +7 -0
  56. package/dist/components/molecules/svg/DomainGrid.d.ts +7 -0
  57. package/dist/components/molecules/svg/EventBus.d.ts +7 -0
  58. package/dist/components/molecules/svg/OrbitalUnit.d.ts +7 -0
  59. package/dist/components/molecules/svg/PlanVerifyRemember.d.ts +7 -0
  60. package/dist/components/molecules/svg/ProveCorrect.d.ts +7 -0
  61. package/dist/components/molecules/svg/ServiceLayers.d.ts +7 -0
  62. package/dist/components/molecules/svg/SharedReality.d.ts +7 -0
  63. package/dist/components/molecules/svg/StandardLibrary.d.ts +7 -0
  64. package/dist/components/molecules/svg/StateMachine.d.ts +7 -0
  65. package/dist/components/molecules/svg/WorldModel.d.ts +7 -0
  66. package/dist/components/molecules/svg/index.d.ts +16 -0
  67. package/dist/components/organisms/CaseStudyOrganism.d.ts +19 -0
  68. package/dist/components/organisms/FeatureGridOrganism.d.ts +20 -0
  69. package/dist/components/organisms/HeroOrganism.d.ts +18 -0
  70. package/dist/components/organisms/PricingOrganism.d.ts +19 -0
  71. package/dist/components/organisms/ShowcaseOrganism.d.ts +20 -0
  72. package/dist/components/organisms/StatsOrganism.d.ts +17 -0
  73. package/dist/components/organisms/StepFlowOrganism.d.ts +20 -0
  74. package/dist/components/organisms/TeamOrganism.d.ts +18 -0
  75. package/dist/components/organisms/game/three/index.cjs +2525 -0
  76. package/dist/components/organisms/game/three/index.js +1795 -50
  77. package/dist/components/organisms/index.d.ts +9 -0
  78. package/dist/components/organisms/marketing-types.d.ts +87 -0
  79. package/dist/components/templates/AboutPageTemplate.d.ts +26 -0
  80. package/dist/components/templates/FeatureDetailPageTemplate.d.ts +27 -0
  81. package/dist/components/templates/LandingPageTemplate.d.ts +31 -0
  82. package/dist/components/templates/PricingPageTemplate.d.ts +26 -0
  83. package/dist/components/templates/index.d.ts +4 -0
  84. package/dist/context/index.cjs +550 -0
  85. package/dist/context/index.js +420 -6
  86. package/dist/docs/index.cjs +4015 -0
  87. package/dist/docs/index.d.cts +412 -0
  88. package/dist/docs/index.d.ts +29 -0
  89. package/dist/docs/index.js +3977 -0
  90. package/dist/hooks/index.cjs +2606 -0
  91. package/dist/hooks/index.js +2535 -8
  92. package/dist/illustrations/index.cjs +3004 -0
  93. package/dist/illustrations/index.d.cts +261 -0
  94. package/dist/illustrations/index.d.ts +35 -0
  95. package/dist/illustrations/index.js +2971 -0
  96. package/dist/{chunk-XL7WB2O5.js → lib/index.cjs} +454 -274
  97. package/dist/lib/index.js +1407 -3
  98. package/dist/locales/index.cjs +340 -0
  99. package/dist/locales/index.js +105 -2
  100. package/dist/marketing/index.cjs +4680 -0
  101. package/dist/marketing/index.d.cts +831 -0
  102. package/dist/marketing/index.d.ts +62 -0
  103. package/dist/marketing/index.js +4623 -0
  104. package/dist/providers/index.cjs +4811 -0
  105. package/dist/providers/index.js +4765 -11
  106. package/dist/{chunk-K2D5D3WK.js → renderer/index.cjs} +101 -42
  107. package/dist/renderer/index.js +1036 -2
  108. package/dist/runtime/index.cjs +4400 -0
  109. package/dist/runtime/index.js +3615 -19
  110. package/dist/{chunk-N7MVUW4R.js → stores/index.cjs} +24 -1
  111. package/dist/stores/index.js +194 -2
  112. package/dist/tsup.config.d.ts +2 -1
  113. package/package.json +27 -12
  114. package/tailwind-preset.cjs +9 -0
  115. package/themes/almadar-website.css +195 -0
  116. package/themes/index.css +23 -20
  117. package/dist/chunk-3HJHHULT.js +0 -93
  118. package/dist/chunk-3JGAROCW.js +0 -149
  119. package/dist/chunk-4N3BAPDB.js +0 -1667
  120. package/dist/chunk-CDIOHSKG.js +0 -661
  121. package/dist/chunk-DKQN5FVU.js +0 -279
  122. package/dist/chunk-JJHCOO34.js +0 -375
  123. package/dist/chunk-PKBMQBKP.js +0 -5
  124. package/dist/chunk-QIABKRCN.js +0 -107
  125. package/dist/chunk-SD3KVCY6.js +0 -1465
  126. package/dist/chunk-YXZM3WCF.js +0 -222
@@ -0,0 +1,4623 @@
1
+ import React5, { createContext, useCallback, useContext, useState, useRef, useEffect } from 'react';
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import * as LucideIcons from 'lucide-react';
4
+ import { Loader2, Check, User } from 'lucide-react';
5
+
6
+ // node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
7
+ function r(e) {
8
+ var t, f, n = "";
9
+ if ("string" == typeof e || "number" == typeof e) n += e;
10
+ else if ("object" == typeof e) if (Array.isArray(e)) {
11
+ var o = e.length;
12
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
13
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
14
+ return n;
15
+ }
16
+ function clsx() {
17
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
18
+ return n;
19
+ }
20
+
21
+ // node_modules/.pnpm/tailwind-merge@2.6.1/node_modules/tailwind-merge/dist/bundle-mjs.mjs
22
+ var CLASS_PART_SEPARATOR = "-";
23
+ var createClassGroupUtils = (config) => {
24
+ const classMap = createClassMap(config);
25
+ const {
26
+ conflictingClassGroups,
27
+ conflictingClassGroupModifiers
28
+ } = config;
29
+ const getClassGroupId = (className) => {
30
+ const classParts = className.split(CLASS_PART_SEPARATOR);
31
+ if (classParts[0] === "" && classParts.length !== 1) {
32
+ classParts.shift();
33
+ }
34
+ return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);
35
+ };
36
+ const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
37
+ const conflicts = conflictingClassGroups[classGroupId] || [];
38
+ if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {
39
+ return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];
40
+ }
41
+ return conflicts;
42
+ };
43
+ return {
44
+ getClassGroupId,
45
+ getConflictingClassGroupIds
46
+ };
47
+ };
48
+ var getGroupRecursive = (classParts, classPartObject) => {
49
+ if (classParts.length === 0) {
50
+ return classPartObject.classGroupId;
51
+ }
52
+ const currentClassPart = classParts[0];
53
+ const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
54
+ const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : void 0;
55
+ if (classGroupFromNextClassPart) {
56
+ return classGroupFromNextClassPart;
57
+ }
58
+ if (classPartObject.validators.length === 0) {
59
+ return void 0;
60
+ }
61
+ const classRest = classParts.join(CLASS_PART_SEPARATOR);
62
+ return classPartObject.validators.find(({
63
+ validator
64
+ }) => validator(classRest))?.classGroupId;
65
+ };
66
+ var arbitraryPropertyRegex = /^\[(.+)\]$/;
67
+ var getGroupIdForArbitraryProperty = (className) => {
68
+ if (arbitraryPropertyRegex.test(className)) {
69
+ const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];
70
+ const property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(":"));
71
+ if (property) {
72
+ return "arbitrary.." + property;
73
+ }
74
+ }
75
+ };
76
+ var createClassMap = (config) => {
77
+ const {
78
+ theme,
79
+ prefix
80
+ } = config;
81
+ const classMap = {
82
+ nextPart: /* @__PURE__ */ new Map(),
83
+ validators: []
84
+ };
85
+ const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);
86
+ prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {
87
+ processClassesRecursively(classGroup, classMap, classGroupId, theme);
88
+ });
89
+ return classMap;
90
+ };
91
+ var processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
92
+ classGroup.forEach((classDefinition) => {
93
+ if (typeof classDefinition === "string") {
94
+ const classPartObjectToEdit = classDefinition === "" ? classPartObject : getPart(classPartObject, classDefinition);
95
+ classPartObjectToEdit.classGroupId = classGroupId;
96
+ return;
97
+ }
98
+ if (typeof classDefinition === "function") {
99
+ if (isThemeGetter(classDefinition)) {
100
+ processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
101
+ return;
102
+ }
103
+ classPartObject.validators.push({
104
+ validator: classDefinition,
105
+ classGroupId
106
+ });
107
+ return;
108
+ }
109
+ Object.entries(classDefinition).forEach(([key, classGroup2]) => {
110
+ processClassesRecursively(classGroup2, getPart(classPartObject, key), classGroupId, theme);
111
+ });
112
+ });
113
+ };
114
+ var getPart = (classPartObject, path) => {
115
+ let currentClassPartObject = classPartObject;
116
+ path.split(CLASS_PART_SEPARATOR).forEach((pathPart) => {
117
+ if (!currentClassPartObject.nextPart.has(pathPart)) {
118
+ currentClassPartObject.nextPart.set(pathPart, {
119
+ nextPart: /* @__PURE__ */ new Map(),
120
+ validators: []
121
+ });
122
+ }
123
+ currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);
124
+ });
125
+ return currentClassPartObject;
126
+ };
127
+ var isThemeGetter = (func) => func.isThemeGetter;
128
+ var getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {
129
+ if (!prefix) {
130
+ return classGroupEntries;
131
+ }
132
+ return classGroupEntries.map(([classGroupId, classGroup]) => {
133
+ const prefixedClassGroup = classGroup.map((classDefinition) => {
134
+ if (typeof classDefinition === "string") {
135
+ return prefix + classDefinition;
136
+ }
137
+ if (typeof classDefinition === "object") {
138
+ return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));
139
+ }
140
+ return classDefinition;
141
+ });
142
+ return [classGroupId, prefixedClassGroup];
143
+ });
144
+ };
145
+ var createLruCache = (maxCacheSize) => {
146
+ if (maxCacheSize < 1) {
147
+ return {
148
+ get: () => void 0,
149
+ set: () => {
150
+ }
151
+ };
152
+ }
153
+ let cacheSize = 0;
154
+ let cache = /* @__PURE__ */ new Map();
155
+ let previousCache = /* @__PURE__ */ new Map();
156
+ const update = (key, value) => {
157
+ cache.set(key, value);
158
+ cacheSize++;
159
+ if (cacheSize > maxCacheSize) {
160
+ cacheSize = 0;
161
+ previousCache = cache;
162
+ cache = /* @__PURE__ */ new Map();
163
+ }
164
+ };
165
+ return {
166
+ get(key) {
167
+ let value = cache.get(key);
168
+ if (value !== void 0) {
169
+ return value;
170
+ }
171
+ if ((value = previousCache.get(key)) !== void 0) {
172
+ update(key, value);
173
+ return value;
174
+ }
175
+ },
176
+ set(key, value) {
177
+ if (cache.has(key)) {
178
+ cache.set(key, value);
179
+ } else {
180
+ update(key, value);
181
+ }
182
+ }
183
+ };
184
+ };
185
+ var IMPORTANT_MODIFIER = "!";
186
+ var createParseClassName = (config) => {
187
+ const {
188
+ separator,
189
+ experimentalParseClassName
190
+ } = config;
191
+ const isSeparatorSingleCharacter = separator.length === 1;
192
+ const firstSeparatorCharacter = separator[0];
193
+ const separatorLength = separator.length;
194
+ const parseClassName = (className) => {
195
+ const modifiers = [];
196
+ let bracketDepth = 0;
197
+ let modifierStart = 0;
198
+ let postfixModifierPosition;
199
+ for (let index = 0; index < className.length; index++) {
200
+ let currentCharacter = className[index];
201
+ if (bracketDepth === 0) {
202
+ if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {
203
+ modifiers.push(className.slice(modifierStart, index));
204
+ modifierStart = index + separatorLength;
205
+ continue;
206
+ }
207
+ if (currentCharacter === "/") {
208
+ postfixModifierPosition = index;
209
+ continue;
210
+ }
211
+ }
212
+ if (currentCharacter === "[") {
213
+ bracketDepth++;
214
+ } else if (currentCharacter === "]") {
215
+ bracketDepth--;
216
+ }
217
+ }
218
+ const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);
219
+ const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);
220
+ const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;
221
+ const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : void 0;
222
+ return {
223
+ modifiers,
224
+ hasImportantModifier,
225
+ baseClassName,
226
+ maybePostfixModifierPosition
227
+ };
228
+ };
229
+ if (experimentalParseClassName) {
230
+ return (className) => experimentalParseClassName({
231
+ className,
232
+ parseClassName
233
+ });
234
+ }
235
+ return parseClassName;
236
+ };
237
+ var sortModifiers = (modifiers) => {
238
+ if (modifiers.length <= 1) {
239
+ return modifiers;
240
+ }
241
+ const sortedModifiers = [];
242
+ let unsortedModifiers = [];
243
+ modifiers.forEach((modifier) => {
244
+ const isArbitraryVariant = modifier[0] === "[";
245
+ if (isArbitraryVariant) {
246
+ sortedModifiers.push(...unsortedModifiers.sort(), modifier);
247
+ unsortedModifiers = [];
248
+ } else {
249
+ unsortedModifiers.push(modifier);
250
+ }
251
+ });
252
+ sortedModifiers.push(...unsortedModifiers.sort());
253
+ return sortedModifiers;
254
+ };
255
+ var createConfigUtils = (config) => ({
256
+ cache: createLruCache(config.cacheSize),
257
+ parseClassName: createParseClassName(config),
258
+ ...createClassGroupUtils(config)
259
+ });
260
+ var SPLIT_CLASSES_REGEX = /\s+/;
261
+ var mergeClassList = (classList, configUtils) => {
262
+ const {
263
+ parseClassName,
264
+ getClassGroupId,
265
+ getConflictingClassGroupIds
266
+ } = configUtils;
267
+ const classGroupsInConflict = [];
268
+ const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
269
+ let result = "";
270
+ for (let index = classNames.length - 1; index >= 0; index -= 1) {
271
+ const originalClassName = classNames[index];
272
+ const {
273
+ modifiers,
274
+ hasImportantModifier,
275
+ baseClassName,
276
+ maybePostfixModifierPosition
277
+ } = parseClassName(originalClassName);
278
+ let hasPostfixModifier = Boolean(maybePostfixModifierPosition);
279
+ let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
280
+ if (!classGroupId) {
281
+ if (!hasPostfixModifier) {
282
+ result = originalClassName + (result.length > 0 ? " " + result : result);
283
+ continue;
284
+ }
285
+ classGroupId = getClassGroupId(baseClassName);
286
+ if (!classGroupId) {
287
+ result = originalClassName + (result.length > 0 ? " " + result : result);
288
+ continue;
289
+ }
290
+ hasPostfixModifier = false;
291
+ }
292
+ const variantModifier = sortModifiers(modifiers).join(":");
293
+ const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
294
+ const classId = modifierId + classGroupId;
295
+ if (classGroupsInConflict.includes(classId)) {
296
+ continue;
297
+ }
298
+ classGroupsInConflict.push(classId);
299
+ const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
300
+ for (let i = 0; i < conflictGroups.length; ++i) {
301
+ const group = conflictGroups[i];
302
+ classGroupsInConflict.push(modifierId + group);
303
+ }
304
+ result = originalClassName + (result.length > 0 ? " " + result : result);
305
+ }
306
+ return result;
307
+ };
308
+ function twJoin() {
309
+ let index = 0;
310
+ let argument;
311
+ let resolvedValue;
312
+ let string = "";
313
+ while (index < arguments.length) {
314
+ if (argument = arguments[index++]) {
315
+ if (resolvedValue = toValue(argument)) {
316
+ string && (string += " ");
317
+ string += resolvedValue;
318
+ }
319
+ }
320
+ }
321
+ return string;
322
+ }
323
+ var toValue = (mix) => {
324
+ if (typeof mix === "string") {
325
+ return mix;
326
+ }
327
+ let resolvedValue;
328
+ let string = "";
329
+ for (let k = 0; k < mix.length; k++) {
330
+ if (mix[k]) {
331
+ if (resolvedValue = toValue(mix[k])) {
332
+ string && (string += " ");
333
+ string += resolvedValue;
334
+ }
335
+ }
336
+ }
337
+ return string;
338
+ };
339
+ function createTailwindMerge(createConfigFirst, ...createConfigRest) {
340
+ let configUtils;
341
+ let cacheGet;
342
+ let cacheSet;
343
+ let functionToCall = initTailwindMerge;
344
+ function initTailwindMerge(classList) {
345
+ const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
346
+ configUtils = createConfigUtils(config);
347
+ cacheGet = configUtils.cache.get;
348
+ cacheSet = configUtils.cache.set;
349
+ functionToCall = tailwindMerge;
350
+ return tailwindMerge(classList);
351
+ }
352
+ function tailwindMerge(classList) {
353
+ const cachedResult = cacheGet(classList);
354
+ if (cachedResult) {
355
+ return cachedResult;
356
+ }
357
+ const result = mergeClassList(classList, configUtils);
358
+ cacheSet(classList, result);
359
+ return result;
360
+ }
361
+ return function callTailwindMerge() {
362
+ return functionToCall(twJoin.apply(null, arguments));
363
+ };
364
+ }
365
+ var fromTheme = (key) => {
366
+ const themeGetter = (theme) => theme[key] || [];
367
+ themeGetter.isThemeGetter = true;
368
+ return themeGetter;
369
+ };
370
+ var arbitraryValueRegex = /^\[(?:([a-z-]+):)?(.+)\]$/i;
371
+ var fractionRegex = /^\d+\/\d+$/;
372
+ var stringLengths = /* @__PURE__ */ new Set(["px", "full", "screen"]);
373
+ var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
374
+ var lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
375
+ var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
376
+ var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
377
+ var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
378
+ var isLength = (value) => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);
379
+ var isArbitraryLength = (value) => getIsArbitraryValue(value, "length", isLengthOnly);
380
+ var isNumber = (value) => Boolean(value) && !Number.isNaN(Number(value));
381
+ var isArbitraryNumber = (value) => getIsArbitraryValue(value, "number", isNumber);
382
+ var isInteger = (value) => Boolean(value) && Number.isInteger(Number(value));
383
+ var isPercent = (value) => value.endsWith("%") && isNumber(value.slice(0, -1));
384
+ var isArbitraryValue = (value) => arbitraryValueRegex.test(value);
385
+ var isTshirtSize = (value) => tshirtUnitRegex.test(value);
386
+ var sizeLabels = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
387
+ var isArbitrarySize = (value) => getIsArbitraryValue(value, sizeLabels, isNever);
388
+ var isArbitraryPosition = (value) => getIsArbitraryValue(value, "position", isNever);
389
+ var imageLabels = /* @__PURE__ */ new Set(["image", "url"]);
390
+ var isArbitraryImage = (value) => getIsArbitraryValue(value, imageLabels, isImage);
391
+ var isArbitraryShadow = (value) => getIsArbitraryValue(value, "", isShadow);
392
+ var isAny = () => true;
393
+ var getIsArbitraryValue = (value, label, testValue) => {
394
+ const result = arbitraryValueRegex.exec(value);
395
+ if (result) {
396
+ if (result[1]) {
397
+ return typeof label === "string" ? result[1] === label : label.has(result[1]);
398
+ }
399
+ return testValue(result[2]);
400
+ }
401
+ return false;
402
+ };
403
+ var isLengthOnly = (value) => (
404
+ // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
405
+ // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
406
+ // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
407
+ lengthUnitRegex.test(value) && !colorFunctionRegex.test(value)
408
+ );
409
+ var isNever = () => false;
410
+ var isShadow = (value) => shadowRegex.test(value);
411
+ var isImage = (value) => imageRegex.test(value);
412
+ var getDefaultConfig = () => {
413
+ const colors = fromTheme("colors");
414
+ const spacing = fromTheme("spacing");
415
+ const blur = fromTheme("blur");
416
+ const brightness = fromTheme("brightness");
417
+ const borderColor = fromTheme("borderColor");
418
+ const borderRadius = fromTheme("borderRadius");
419
+ const borderSpacing = fromTheme("borderSpacing");
420
+ const borderWidth = fromTheme("borderWidth");
421
+ const contrast = fromTheme("contrast");
422
+ const grayscale = fromTheme("grayscale");
423
+ const hueRotate = fromTheme("hueRotate");
424
+ const invert = fromTheme("invert");
425
+ const gap = fromTheme("gap");
426
+ const gradientColorStops = fromTheme("gradientColorStops");
427
+ const gradientColorStopPositions = fromTheme("gradientColorStopPositions");
428
+ const inset = fromTheme("inset");
429
+ const margin = fromTheme("margin");
430
+ const opacity = fromTheme("opacity");
431
+ const padding = fromTheme("padding");
432
+ const saturate = fromTheme("saturate");
433
+ const scale = fromTheme("scale");
434
+ const sepia = fromTheme("sepia");
435
+ const skew = fromTheme("skew");
436
+ const space = fromTheme("space");
437
+ const translate = fromTheme("translate");
438
+ const getOverscroll = () => ["auto", "contain", "none"];
439
+ const getOverflow = () => ["auto", "hidden", "clip", "visible", "scroll"];
440
+ const getSpacingWithAutoAndArbitrary = () => ["auto", isArbitraryValue, spacing];
441
+ const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];
442
+ const getLengthWithEmptyAndArbitrary = () => ["", isLength, isArbitraryLength];
443
+ const getNumberWithAutoAndArbitrary = () => ["auto", isNumber, isArbitraryValue];
444
+ const getPositions = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"];
445
+ const getLineStyles = () => ["solid", "dashed", "dotted", "double", "none"];
446
+ const getBlendModes = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"];
447
+ const getAlign = () => ["start", "end", "center", "between", "around", "evenly", "stretch"];
448
+ const getZeroAndEmpty = () => ["", "0", isArbitraryValue];
449
+ const getBreaks = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"];
450
+ const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];
451
+ return {
452
+ cacheSize: 500,
453
+ separator: ":",
454
+ theme: {
455
+ colors: [isAny],
456
+ spacing: [isLength, isArbitraryLength],
457
+ blur: ["none", "", isTshirtSize, isArbitraryValue],
458
+ brightness: getNumberAndArbitrary(),
459
+ borderColor: [colors],
460
+ borderRadius: ["none", "", "full", isTshirtSize, isArbitraryValue],
461
+ borderSpacing: getSpacingWithArbitrary(),
462
+ borderWidth: getLengthWithEmptyAndArbitrary(),
463
+ contrast: getNumberAndArbitrary(),
464
+ grayscale: getZeroAndEmpty(),
465
+ hueRotate: getNumberAndArbitrary(),
466
+ invert: getZeroAndEmpty(),
467
+ gap: getSpacingWithArbitrary(),
468
+ gradientColorStops: [colors],
469
+ gradientColorStopPositions: [isPercent, isArbitraryLength],
470
+ inset: getSpacingWithAutoAndArbitrary(),
471
+ margin: getSpacingWithAutoAndArbitrary(),
472
+ opacity: getNumberAndArbitrary(),
473
+ padding: getSpacingWithArbitrary(),
474
+ saturate: getNumberAndArbitrary(),
475
+ scale: getNumberAndArbitrary(),
476
+ sepia: getZeroAndEmpty(),
477
+ skew: getNumberAndArbitrary(),
478
+ space: getSpacingWithArbitrary(),
479
+ translate: getSpacingWithArbitrary()
480
+ },
481
+ classGroups: {
482
+ // Layout
483
+ /**
484
+ * Aspect Ratio
485
+ * @see https://tailwindcss.com/docs/aspect-ratio
486
+ */
487
+ aspect: [{
488
+ aspect: ["auto", "square", "video", isArbitraryValue]
489
+ }],
490
+ /**
491
+ * Container
492
+ * @see https://tailwindcss.com/docs/container
493
+ */
494
+ container: ["container"],
495
+ /**
496
+ * Columns
497
+ * @see https://tailwindcss.com/docs/columns
498
+ */
499
+ columns: [{
500
+ columns: [isTshirtSize]
501
+ }],
502
+ /**
503
+ * Break After
504
+ * @see https://tailwindcss.com/docs/break-after
505
+ */
506
+ "break-after": [{
507
+ "break-after": getBreaks()
508
+ }],
509
+ /**
510
+ * Break Before
511
+ * @see https://tailwindcss.com/docs/break-before
512
+ */
513
+ "break-before": [{
514
+ "break-before": getBreaks()
515
+ }],
516
+ /**
517
+ * Break Inside
518
+ * @see https://tailwindcss.com/docs/break-inside
519
+ */
520
+ "break-inside": [{
521
+ "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"]
522
+ }],
523
+ /**
524
+ * Box Decoration Break
525
+ * @see https://tailwindcss.com/docs/box-decoration-break
526
+ */
527
+ "box-decoration": [{
528
+ "box-decoration": ["slice", "clone"]
529
+ }],
530
+ /**
531
+ * Box Sizing
532
+ * @see https://tailwindcss.com/docs/box-sizing
533
+ */
534
+ box: [{
535
+ box: ["border", "content"]
536
+ }],
537
+ /**
538
+ * Display
539
+ * @see https://tailwindcss.com/docs/display
540
+ */
541
+ display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"],
542
+ /**
543
+ * Floats
544
+ * @see https://tailwindcss.com/docs/float
545
+ */
546
+ float: [{
547
+ float: ["right", "left", "none", "start", "end"]
548
+ }],
549
+ /**
550
+ * Clear
551
+ * @see https://tailwindcss.com/docs/clear
552
+ */
553
+ clear: [{
554
+ clear: ["left", "right", "both", "none", "start", "end"]
555
+ }],
556
+ /**
557
+ * Isolation
558
+ * @see https://tailwindcss.com/docs/isolation
559
+ */
560
+ isolation: ["isolate", "isolation-auto"],
561
+ /**
562
+ * Object Fit
563
+ * @see https://tailwindcss.com/docs/object-fit
564
+ */
565
+ "object-fit": [{
566
+ object: ["contain", "cover", "fill", "none", "scale-down"]
567
+ }],
568
+ /**
569
+ * Object Position
570
+ * @see https://tailwindcss.com/docs/object-position
571
+ */
572
+ "object-position": [{
573
+ object: [...getPositions(), isArbitraryValue]
574
+ }],
575
+ /**
576
+ * Overflow
577
+ * @see https://tailwindcss.com/docs/overflow
578
+ */
579
+ overflow: [{
580
+ overflow: getOverflow()
581
+ }],
582
+ /**
583
+ * Overflow X
584
+ * @see https://tailwindcss.com/docs/overflow
585
+ */
586
+ "overflow-x": [{
587
+ "overflow-x": getOverflow()
588
+ }],
589
+ /**
590
+ * Overflow Y
591
+ * @see https://tailwindcss.com/docs/overflow
592
+ */
593
+ "overflow-y": [{
594
+ "overflow-y": getOverflow()
595
+ }],
596
+ /**
597
+ * Overscroll Behavior
598
+ * @see https://tailwindcss.com/docs/overscroll-behavior
599
+ */
600
+ overscroll: [{
601
+ overscroll: getOverscroll()
602
+ }],
603
+ /**
604
+ * Overscroll Behavior X
605
+ * @see https://tailwindcss.com/docs/overscroll-behavior
606
+ */
607
+ "overscroll-x": [{
608
+ "overscroll-x": getOverscroll()
609
+ }],
610
+ /**
611
+ * Overscroll Behavior Y
612
+ * @see https://tailwindcss.com/docs/overscroll-behavior
613
+ */
614
+ "overscroll-y": [{
615
+ "overscroll-y": getOverscroll()
616
+ }],
617
+ /**
618
+ * Position
619
+ * @see https://tailwindcss.com/docs/position
620
+ */
621
+ position: ["static", "fixed", "absolute", "relative", "sticky"],
622
+ /**
623
+ * Top / Right / Bottom / Left
624
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
625
+ */
626
+ inset: [{
627
+ inset: [inset]
628
+ }],
629
+ /**
630
+ * Right / Left
631
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
632
+ */
633
+ "inset-x": [{
634
+ "inset-x": [inset]
635
+ }],
636
+ /**
637
+ * Top / Bottom
638
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
639
+ */
640
+ "inset-y": [{
641
+ "inset-y": [inset]
642
+ }],
643
+ /**
644
+ * Start
645
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
646
+ */
647
+ start: [{
648
+ start: [inset]
649
+ }],
650
+ /**
651
+ * End
652
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
653
+ */
654
+ end: [{
655
+ end: [inset]
656
+ }],
657
+ /**
658
+ * Top
659
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
660
+ */
661
+ top: [{
662
+ top: [inset]
663
+ }],
664
+ /**
665
+ * Right
666
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
667
+ */
668
+ right: [{
669
+ right: [inset]
670
+ }],
671
+ /**
672
+ * Bottom
673
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
674
+ */
675
+ bottom: [{
676
+ bottom: [inset]
677
+ }],
678
+ /**
679
+ * Left
680
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
681
+ */
682
+ left: [{
683
+ left: [inset]
684
+ }],
685
+ /**
686
+ * Visibility
687
+ * @see https://tailwindcss.com/docs/visibility
688
+ */
689
+ visibility: ["visible", "invisible", "collapse"],
690
+ /**
691
+ * Z-Index
692
+ * @see https://tailwindcss.com/docs/z-index
693
+ */
694
+ z: [{
695
+ z: ["auto", isInteger, isArbitraryValue]
696
+ }],
697
+ // Flexbox and Grid
698
+ /**
699
+ * Flex Basis
700
+ * @see https://tailwindcss.com/docs/flex-basis
701
+ */
702
+ basis: [{
703
+ basis: getSpacingWithAutoAndArbitrary()
704
+ }],
705
+ /**
706
+ * Flex Direction
707
+ * @see https://tailwindcss.com/docs/flex-direction
708
+ */
709
+ "flex-direction": [{
710
+ flex: ["row", "row-reverse", "col", "col-reverse"]
711
+ }],
712
+ /**
713
+ * Flex Wrap
714
+ * @see https://tailwindcss.com/docs/flex-wrap
715
+ */
716
+ "flex-wrap": [{
717
+ flex: ["wrap", "wrap-reverse", "nowrap"]
718
+ }],
719
+ /**
720
+ * Flex
721
+ * @see https://tailwindcss.com/docs/flex
722
+ */
723
+ flex: [{
724
+ flex: ["1", "auto", "initial", "none", isArbitraryValue]
725
+ }],
726
+ /**
727
+ * Flex Grow
728
+ * @see https://tailwindcss.com/docs/flex-grow
729
+ */
730
+ grow: [{
731
+ grow: getZeroAndEmpty()
732
+ }],
733
+ /**
734
+ * Flex Shrink
735
+ * @see https://tailwindcss.com/docs/flex-shrink
736
+ */
737
+ shrink: [{
738
+ shrink: getZeroAndEmpty()
739
+ }],
740
+ /**
741
+ * Order
742
+ * @see https://tailwindcss.com/docs/order
743
+ */
744
+ order: [{
745
+ order: ["first", "last", "none", isInteger, isArbitraryValue]
746
+ }],
747
+ /**
748
+ * Grid Template Columns
749
+ * @see https://tailwindcss.com/docs/grid-template-columns
750
+ */
751
+ "grid-cols": [{
752
+ "grid-cols": [isAny]
753
+ }],
754
+ /**
755
+ * Grid Column Start / End
756
+ * @see https://tailwindcss.com/docs/grid-column
757
+ */
758
+ "col-start-end": [{
759
+ col: ["auto", {
760
+ span: ["full", isInteger, isArbitraryValue]
761
+ }, isArbitraryValue]
762
+ }],
763
+ /**
764
+ * Grid Column Start
765
+ * @see https://tailwindcss.com/docs/grid-column
766
+ */
767
+ "col-start": [{
768
+ "col-start": getNumberWithAutoAndArbitrary()
769
+ }],
770
+ /**
771
+ * Grid Column End
772
+ * @see https://tailwindcss.com/docs/grid-column
773
+ */
774
+ "col-end": [{
775
+ "col-end": getNumberWithAutoAndArbitrary()
776
+ }],
777
+ /**
778
+ * Grid Template Rows
779
+ * @see https://tailwindcss.com/docs/grid-template-rows
780
+ */
781
+ "grid-rows": [{
782
+ "grid-rows": [isAny]
783
+ }],
784
+ /**
785
+ * Grid Row Start / End
786
+ * @see https://tailwindcss.com/docs/grid-row
787
+ */
788
+ "row-start-end": [{
789
+ row: ["auto", {
790
+ span: [isInteger, isArbitraryValue]
791
+ }, isArbitraryValue]
792
+ }],
793
+ /**
794
+ * Grid Row Start
795
+ * @see https://tailwindcss.com/docs/grid-row
796
+ */
797
+ "row-start": [{
798
+ "row-start": getNumberWithAutoAndArbitrary()
799
+ }],
800
+ /**
801
+ * Grid Row End
802
+ * @see https://tailwindcss.com/docs/grid-row
803
+ */
804
+ "row-end": [{
805
+ "row-end": getNumberWithAutoAndArbitrary()
806
+ }],
807
+ /**
808
+ * Grid Auto Flow
809
+ * @see https://tailwindcss.com/docs/grid-auto-flow
810
+ */
811
+ "grid-flow": [{
812
+ "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"]
813
+ }],
814
+ /**
815
+ * Grid Auto Columns
816
+ * @see https://tailwindcss.com/docs/grid-auto-columns
817
+ */
818
+ "auto-cols": [{
819
+ "auto-cols": ["auto", "min", "max", "fr", isArbitraryValue]
820
+ }],
821
+ /**
822
+ * Grid Auto Rows
823
+ * @see https://tailwindcss.com/docs/grid-auto-rows
824
+ */
825
+ "auto-rows": [{
826
+ "auto-rows": ["auto", "min", "max", "fr", isArbitraryValue]
827
+ }],
828
+ /**
829
+ * Gap
830
+ * @see https://tailwindcss.com/docs/gap
831
+ */
832
+ gap: [{
833
+ gap: [gap]
834
+ }],
835
+ /**
836
+ * Gap X
837
+ * @see https://tailwindcss.com/docs/gap
838
+ */
839
+ "gap-x": [{
840
+ "gap-x": [gap]
841
+ }],
842
+ /**
843
+ * Gap Y
844
+ * @see https://tailwindcss.com/docs/gap
845
+ */
846
+ "gap-y": [{
847
+ "gap-y": [gap]
848
+ }],
849
+ /**
850
+ * Justify Content
851
+ * @see https://tailwindcss.com/docs/justify-content
852
+ */
853
+ "justify-content": [{
854
+ justify: ["normal", ...getAlign()]
855
+ }],
856
+ /**
857
+ * Justify Items
858
+ * @see https://tailwindcss.com/docs/justify-items
859
+ */
860
+ "justify-items": [{
861
+ "justify-items": ["start", "end", "center", "stretch"]
862
+ }],
863
+ /**
864
+ * Justify Self
865
+ * @see https://tailwindcss.com/docs/justify-self
866
+ */
867
+ "justify-self": [{
868
+ "justify-self": ["auto", "start", "end", "center", "stretch"]
869
+ }],
870
+ /**
871
+ * Align Content
872
+ * @see https://tailwindcss.com/docs/align-content
873
+ */
874
+ "align-content": [{
875
+ content: ["normal", ...getAlign(), "baseline"]
876
+ }],
877
+ /**
878
+ * Align Items
879
+ * @see https://tailwindcss.com/docs/align-items
880
+ */
881
+ "align-items": [{
882
+ items: ["start", "end", "center", "baseline", "stretch"]
883
+ }],
884
+ /**
885
+ * Align Self
886
+ * @see https://tailwindcss.com/docs/align-self
887
+ */
888
+ "align-self": [{
889
+ self: ["auto", "start", "end", "center", "stretch", "baseline"]
890
+ }],
891
+ /**
892
+ * Place Content
893
+ * @see https://tailwindcss.com/docs/place-content
894
+ */
895
+ "place-content": [{
896
+ "place-content": [...getAlign(), "baseline"]
897
+ }],
898
+ /**
899
+ * Place Items
900
+ * @see https://tailwindcss.com/docs/place-items
901
+ */
902
+ "place-items": [{
903
+ "place-items": ["start", "end", "center", "baseline", "stretch"]
904
+ }],
905
+ /**
906
+ * Place Self
907
+ * @see https://tailwindcss.com/docs/place-self
908
+ */
909
+ "place-self": [{
910
+ "place-self": ["auto", "start", "end", "center", "stretch"]
911
+ }],
912
+ // Spacing
913
+ /**
914
+ * Padding
915
+ * @see https://tailwindcss.com/docs/padding
916
+ */
917
+ p: [{
918
+ p: [padding]
919
+ }],
920
+ /**
921
+ * Padding X
922
+ * @see https://tailwindcss.com/docs/padding
923
+ */
924
+ px: [{
925
+ px: [padding]
926
+ }],
927
+ /**
928
+ * Padding Y
929
+ * @see https://tailwindcss.com/docs/padding
930
+ */
931
+ py: [{
932
+ py: [padding]
933
+ }],
934
+ /**
935
+ * Padding Start
936
+ * @see https://tailwindcss.com/docs/padding
937
+ */
938
+ ps: [{
939
+ ps: [padding]
940
+ }],
941
+ /**
942
+ * Padding End
943
+ * @see https://tailwindcss.com/docs/padding
944
+ */
945
+ pe: [{
946
+ pe: [padding]
947
+ }],
948
+ /**
949
+ * Padding Top
950
+ * @see https://tailwindcss.com/docs/padding
951
+ */
952
+ pt: [{
953
+ pt: [padding]
954
+ }],
955
+ /**
956
+ * Padding Right
957
+ * @see https://tailwindcss.com/docs/padding
958
+ */
959
+ pr: [{
960
+ pr: [padding]
961
+ }],
962
+ /**
963
+ * Padding Bottom
964
+ * @see https://tailwindcss.com/docs/padding
965
+ */
966
+ pb: [{
967
+ pb: [padding]
968
+ }],
969
+ /**
970
+ * Padding Left
971
+ * @see https://tailwindcss.com/docs/padding
972
+ */
973
+ pl: [{
974
+ pl: [padding]
975
+ }],
976
+ /**
977
+ * Margin
978
+ * @see https://tailwindcss.com/docs/margin
979
+ */
980
+ m: [{
981
+ m: [margin]
982
+ }],
983
+ /**
984
+ * Margin X
985
+ * @see https://tailwindcss.com/docs/margin
986
+ */
987
+ mx: [{
988
+ mx: [margin]
989
+ }],
990
+ /**
991
+ * Margin Y
992
+ * @see https://tailwindcss.com/docs/margin
993
+ */
994
+ my: [{
995
+ my: [margin]
996
+ }],
997
+ /**
998
+ * Margin Start
999
+ * @see https://tailwindcss.com/docs/margin
1000
+ */
1001
+ ms: [{
1002
+ ms: [margin]
1003
+ }],
1004
+ /**
1005
+ * Margin End
1006
+ * @see https://tailwindcss.com/docs/margin
1007
+ */
1008
+ me: [{
1009
+ me: [margin]
1010
+ }],
1011
+ /**
1012
+ * Margin Top
1013
+ * @see https://tailwindcss.com/docs/margin
1014
+ */
1015
+ mt: [{
1016
+ mt: [margin]
1017
+ }],
1018
+ /**
1019
+ * Margin Right
1020
+ * @see https://tailwindcss.com/docs/margin
1021
+ */
1022
+ mr: [{
1023
+ mr: [margin]
1024
+ }],
1025
+ /**
1026
+ * Margin Bottom
1027
+ * @see https://tailwindcss.com/docs/margin
1028
+ */
1029
+ mb: [{
1030
+ mb: [margin]
1031
+ }],
1032
+ /**
1033
+ * Margin Left
1034
+ * @see https://tailwindcss.com/docs/margin
1035
+ */
1036
+ ml: [{
1037
+ ml: [margin]
1038
+ }],
1039
+ /**
1040
+ * Space Between X
1041
+ * @see https://tailwindcss.com/docs/space
1042
+ */
1043
+ "space-x": [{
1044
+ "space-x": [space]
1045
+ }],
1046
+ /**
1047
+ * Space Between X Reverse
1048
+ * @see https://tailwindcss.com/docs/space
1049
+ */
1050
+ "space-x-reverse": ["space-x-reverse"],
1051
+ /**
1052
+ * Space Between Y
1053
+ * @see https://tailwindcss.com/docs/space
1054
+ */
1055
+ "space-y": [{
1056
+ "space-y": [space]
1057
+ }],
1058
+ /**
1059
+ * Space Between Y Reverse
1060
+ * @see https://tailwindcss.com/docs/space
1061
+ */
1062
+ "space-y-reverse": ["space-y-reverse"],
1063
+ // Sizing
1064
+ /**
1065
+ * Width
1066
+ * @see https://tailwindcss.com/docs/width
1067
+ */
1068
+ w: [{
1069
+ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", isArbitraryValue, spacing]
1070
+ }],
1071
+ /**
1072
+ * Min-Width
1073
+ * @see https://tailwindcss.com/docs/min-width
1074
+ */
1075
+ "min-w": [{
1076
+ "min-w": [isArbitraryValue, spacing, "min", "max", "fit"]
1077
+ }],
1078
+ /**
1079
+ * Max-Width
1080
+ * @see https://tailwindcss.com/docs/max-width
1081
+ */
1082
+ "max-w": [{
1083
+ "max-w": [isArbitraryValue, spacing, "none", "full", "min", "max", "fit", "prose", {
1084
+ screen: [isTshirtSize]
1085
+ }, isTshirtSize]
1086
+ }],
1087
+ /**
1088
+ * Height
1089
+ * @see https://tailwindcss.com/docs/height
1090
+ */
1091
+ h: [{
1092
+ h: [isArbitraryValue, spacing, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
1093
+ }],
1094
+ /**
1095
+ * Min-Height
1096
+ * @see https://tailwindcss.com/docs/min-height
1097
+ */
1098
+ "min-h": [{
1099
+ "min-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
1100
+ }],
1101
+ /**
1102
+ * Max-Height
1103
+ * @see https://tailwindcss.com/docs/max-height
1104
+ */
1105
+ "max-h": [{
1106
+ "max-h": [isArbitraryValue, spacing, "min", "max", "fit", "svh", "lvh", "dvh"]
1107
+ }],
1108
+ /**
1109
+ * Size
1110
+ * @see https://tailwindcss.com/docs/size
1111
+ */
1112
+ size: [{
1113
+ size: [isArbitraryValue, spacing, "auto", "min", "max", "fit"]
1114
+ }],
1115
+ // Typography
1116
+ /**
1117
+ * Font Size
1118
+ * @see https://tailwindcss.com/docs/font-size
1119
+ */
1120
+ "font-size": [{
1121
+ text: ["base", isTshirtSize, isArbitraryLength]
1122
+ }],
1123
+ /**
1124
+ * Font Smoothing
1125
+ * @see https://tailwindcss.com/docs/font-smoothing
1126
+ */
1127
+ "font-smoothing": ["antialiased", "subpixel-antialiased"],
1128
+ /**
1129
+ * Font Style
1130
+ * @see https://tailwindcss.com/docs/font-style
1131
+ */
1132
+ "font-style": ["italic", "not-italic"],
1133
+ /**
1134
+ * Font Weight
1135
+ * @see https://tailwindcss.com/docs/font-weight
1136
+ */
1137
+ "font-weight": [{
1138
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", isArbitraryNumber]
1139
+ }],
1140
+ /**
1141
+ * Font Family
1142
+ * @see https://tailwindcss.com/docs/font-family
1143
+ */
1144
+ "font-family": [{
1145
+ font: [isAny]
1146
+ }],
1147
+ /**
1148
+ * Font Variant Numeric
1149
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1150
+ */
1151
+ "fvn-normal": ["normal-nums"],
1152
+ /**
1153
+ * Font Variant Numeric
1154
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1155
+ */
1156
+ "fvn-ordinal": ["ordinal"],
1157
+ /**
1158
+ * Font Variant Numeric
1159
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1160
+ */
1161
+ "fvn-slashed-zero": ["slashed-zero"],
1162
+ /**
1163
+ * Font Variant Numeric
1164
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1165
+ */
1166
+ "fvn-figure": ["lining-nums", "oldstyle-nums"],
1167
+ /**
1168
+ * Font Variant Numeric
1169
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1170
+ */
1171
+ "fvn-spacing": ["proportional-nums", "tabular-nums"],
1172
+ /**
1173
+ * Font Variant Numeric
1174
+ * @see https://tailwindcss.com/docs/font-variant-numeric
1175
+ */
1176
+ "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
1177
+ /**
1178
+ * Letter Spacing
1179
+ * @see https://tailwindcss.com/docs/letter-spacing
1180
+ */
1181
+ tracking: [{
1182
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", isArbitraryValue]
1183
+ }],
1184
+ /**
1185
+ * Line Clamp
1186
+ * @see https://tailwindcss.com/docs/line-clamp
1187
+ */
1188
+ "line-clamp": [{
1189
+ "line-clamp": ["none", isNumber, isArbitraryNumber]
1190
+ }],
1191
+ /**
1192
+ * Line Height
1193
+ * @see https://tailwindcss.com/docs/line-height
1194
+ */
1195
+ leading: [{
1196
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", isLength, isArbitraryValue]
1197
+ }],
1198
+ /**
1199
+ * List Style Image
1200
+ * @see https://tailwindcss.com/docs/list-style-image
1201
+ */
1202
+ "list-image": [{
1203
+ "list-image": ["none", isArbitraryValue]
1204
+ }],
1205
+ /**
1206
+ * List Style Type
1207
+ * @see https://tailwindcss.com/docs/list-style-type
1208
+ */
1209
+ "list-style-type": [{
1210
+ list: ["none", "disc", "decimal", isArbitraryValue]
1211
+ }],
1212
+ /**
1213
+ * List Style Position
1214
+ * @see https://tailwindcss.com/docs/list-style-position
1215
+ */
1216
+ "list-style-position": [{
1217
+ list: ["inside", "outside"]
1218
+ }],
1219
+ /**
1220
+ * Placeholder Color
1221
+ * @deprecated since Tailwind CSS v3.0.0
1222
+ * @see https://tailwindcss.com/docs/placeholder-color
1223
+ */
1224
+ "placeholder-color": [{
1225
+ placeholder: [colors]
1226
+ }],
1227
+ /**
1228
+ * Placeholder Opacity
1229
+ * @see https://tailwindcss.com/docs/placeholder-opacity
1230
+ */
1231
+ "placeholder-opacity": [{
1232
+ "placeholder-opacity": [opacity]
1233
+ }],
1234
+ /**
1235
+ * Text Alignment
1236
+ * @see https://tailwindcss.com/docs/text-align
1237
+ */
1238
+ "text-alignment": [{
1239
+ text: ["left", "center", "right", "justify", "start", "end"]
1240
+ }],
1241
+ /**
1242
+ * Text Color
1243
+ * @see https://tailwindcss.com/docs/text-color
1244
+ */
1245
+ "text-color": [{
1246
+ text: [colors]
1247
+ }],
1248
+ /**
1249
+ * Text Opacity
1250
+ * @see https://tailwindcss.com/docs/text-opacity
1251
+ */
1252
+ "text-opacity": [{
1253
+ "text-opacity": [opacity]
1254
+ }],
1255
+ /**
1256
+ * Text Decoration
1257
+ * @see https://tailwindcss.com/docs/text-decoration
1258
+ */
1259
+ "text-decoration": ["underline", "overline", "line-through", "no-underline"],
1260
+ /**
1261
+ * Text Decoration Style
1262
+ * @see https://tailwindcss.com/docs/text-decoration-style
1263
+ */
1264
+ "text-decoration-style": [{
1265
+ decoration: [...getLineStyles(), "wavy"]
1266
+ }],
1267
+ /**
1268
+ * Text Decoration Thickness
1269
+ * @see https://tailwindcss.com/docs/text-decoration-thickness
1270
+ */
1271
+ "text-decoration-thickness": [{
1272
+ decoration: ["auto", "from-font", isLength, isArbitraryLength]
1273
+ }],
1274
+ /**
1275
+ * Text Underline Offset
1276
+ * @see https://tailwindcss.com/docs/text-underline-offset
1277
+ */
1278
+ "underline-offset": [{
1279
+ "underline-offset": ["auto", isLength, isArbitraryValue]
1280
+ }],
1281
+ /**
1282
+ * Text Decoration Color
1283
+ * @see https://tailwindcss.com/docs/text-decoration-color
1284
+ */
1285
+ "text-decoration-color": [{
1286
+ decoration: [colors]
1287
+ }],
1288
+ /**
1289
+ * Text Transform
1290
+ * @see https://tailwindcss.com/docs/text-transform
1291
+ */
1292
+ "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"],
1293
+ /**
1294
+ * Text Overflow
1295
+ * @see https://tailwindcss.com/docs/text-overflow
1296
+ */
1297
+ "text-overflow": ["truncate", "text-ellipsis", "text-clip"],
1298
+ /**
1299
+ * Text Wrap
1300
+ * @see https://tailwindcss.com/docs/text-wrap
1301
+ */
1302
+ "text-wrap": [{
1303
+ text: ["wrap", "nowrap", "balance", "pretty"]
1304
+ }],
1305
+ /**
1306
+ * Text Indent
1307
+ * @see https://tailwindcss.com/docs/text-indent
1308
+ */
1309
+ indent: [{
1310
+ indent: getSpacingWithArbitrary()
1311
+ }],
1312
+ /**
1313
+ * Vertical Alignment
1314
+ * @see https://tailwindcss.com/docs/vertical-align
1315
+ */
1316
+ "vertical-align": [{
1317
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", isArbitraryValue]
1318
+ }],
1319
+ /**
1320
+ * Whitespace
1321
+ * @see https://tailwindcss.com/docs/whitespace
1322
+ */
1323
+ whitespace: [{
1324
+ whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"]
1325
+ }],
1326
+ /**
1327
+ * Word Break
1328
+ * @see https://tailwindcss.com/docs/word-break
1329
+ */
1330
+ break: [{
1331
+ break: ["normal", "words", "all", "keep"]
1332
+ }],
1333
+ /**
1334
+ * Hyphens
1335
+ * @see https://tailwindcss.com/docs/hyphens
1336
+ */
1337
+ hyphens: [{
1338
+ hyphens: ["none", "manual", "auto"]
1339
+ }],
1340
+ /**
1341
+ * Content
1342
+ * @see https://tailwindcss.com/docs/content
1343
+ */
1344
+ content: [{
1345
+ content: ["none", isArbitraryValue]
1346
+ }],
1347
+ // Backgrounds
1348
+ /**
1349
+ * Background Attachment
1350
+ * @see https://tailwindcss.com/docs/background-attachment
1351
+ */
1352
+ "bg-attachment": [{
1353
+ bg: ["fixed", "local", "scroll"]
1354
+ }],
1355
+ /**
1356
+ * Background Clip
1357
+ * @see https://tailwindcss.com/docs/background-clip
1358
+ */
1359
+ "bg-clip": [{
1360
+ "bg-clip": ["border", "padding", "content", "text"]
1361
+ }],
1362
+ /**
1363
+ * Background Opacity
1364
+ * @deprecated since Tailwind CSS v3.0.0
1365
+ * @see https://tailwindcss.com/docs/background-opacity
1366
+ */
1367
+ "bg-opacity": [{
1368
+ "bg-opacity": [opacity]
1369
+ }],
1370
+ /**
1371
+ * Background Origin
1372
+ * @see https://tailwindcss.com/docs/background-origin
1373
+ */
1374
+ "bg-origin": [{
1375
+ "bg-origin": ["border", "padding", "content"]
1376
+ }],
1377
+ /**
1378
+ * Background Position
1379
+ * @see https://tailwindcss.com/docs/background-position
1380
+ */
1381
+ "bg-position": [{
1382
+ bg: [...getPositions(), isArbitraryPosition]
1383
+ }],
1384
+ /**
1385
+ * Background Repeat
1386
+ * @see https://tailwindcss.com/docs/background-repeat
1387
+ */
1388
+ "bg-repeat": [{
1389
+ bg: ["no-repeat", {
1390
+ repeat: ["", "x", "y", "round", "space"]
1391
+ }]
1392
+ }],
1393
+ /**
1394
+ * Background Size
1395
+ * @see https://tailwindcss.com/docs/background-size
1396
+ */
1397
+ "bg-size": [{
1398
+ bg: ["auto", "cover", "contain", isArbitrarySize]
1399
+ }],
1400
+ /**
1401
+ * Background Image
1402
+ * @see https://tailwindcss.com/docs/background-image
1403
+ */
1404
+ "bg-image": [{
1405
+ bg: ["none", {
1406
+ "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1407
+ }, isArbitraryImage]
1408
+ }],
1409
+ /**
1410
+ * Background Color
1411
+ * @see https://tailwindcss.com/docs/background-color
1412
+ */
1413
+ "bg-color": [{
1414
+ bg: [colors]
1415
+ }],
1416
+ /**
1417
+ * Gradient Color Stops From Position
1418
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1419
+ */
1420
+ "gradient-from-pos": [{
1421
+ from: [gradientColorStopPositions]
1422
+ }],
1423
+ /**
1424
+ * Gradient Color Stops Via Position
1425
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1426
+ */
1427
+ "gradient-via-pos": [{
1428
+ via: [gradientColorStopPositions]
1429
+ }],
1430
+ /**
1431
+ * Gradient Color Stops To Position
1432
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1433
+ */
1434
+ "gradient-to-pos": [{
1435
+ to: [gradientColorStopPositions]
1436
+ }],
1437
+ /**
1438
+ * Gradient Color Stops From
1439
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1440
+ */
1441
+ "gradient-from": [{
1442
+ from: [gradientColorStops]
1443
+ }],
1444
+ /**
1445
+ * Gradient Color Stops Via
1446
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1447
+ */
1448
+ "gradient-via": [{
1449
+ via: [gradientColorStops]
1450
+ }],
1451
+ /**
1452
+ * Gradient Color Stops To
1453
+ * @see https://tailwindcss.com/docs/gradient-color-stops
1454
+ */
1455
+ "gradient-to": [{
1456
+ to: [gradientColorStops]
1457
+ }],
1458
+ // Borders
1459
+ /**
1460
+ * Border Radius
1461
+ * @see https://tailwindcss.com/docs/border-radius
1462
+ */
1463
+ rounded: [{
1464
+ rounded: [borderRadius]
1465
+ }],
1466
+ /**
1467
+ * Border Radius Start
1468
+ * @see https://tailwindcss.com/docs/border-radius
1469
+ */
1470
+ "rounded-s": [{
1471
+ "rounded-s": [borderRadius]
1472
+ }],
1473
+ /**
1474
+ * Border Radius End
1475
+ * @see https://tailwindcss.com/docs/border-radius
1476
+ */
1477
+ "rounded-e": [{
1478
+ "rounded-e": [borderRadius]
1479
+ }],
1480
+ /**
1481
+ * Border Radius Top
1482
+ * @see https://tailwindcss.com/docs/border-radius
1483
+ */
1484
+ "rounded-t": [{
1485
+ "rounded-t": [borderRadius]
1486
+ }],
1487
+ /**
1488
+ * Border Radius Right
1489
+ * @see https://tailwindcss.com/docs/border-radius
1490
+ */
1491
+ "rounded-r": [{
1492
+ "rounded-r": [borderRadius]
1493
+ }],
1494
+ /**
1495
+ * Border Radius Bottom
1496
+ * @see https://tailwindcss.com/docs/border-radius
1497
+ */
1498
+ "rounded-b": [{
1499
+ "rounded-b": [borderRadius]
1500
+ }],
1501
+ /**
1502
+ * Border Radius Left
1503
+ * @see https://tailwindcss.com/docs/border-radius
1504
+ */
1505
+ "rounded-l": [{
1506
+ "rounded-l": [borderRadius]
1507
+ }],
1508
+ /**
1509
+ * Border Radius Start Start
1510
+ * @see https://tailwindcss.com/docs/border-radius
1511
+ */
1512
+ "rounded-ss": [{
1513
+ "rounded-ss": [borderRadius]
1514
+ }],
1515
+ /**
1516
+ * Border Radius Start End
1517
+ * @see https://tailwindcss.com/docs/border-radius
1518
+ */
1519
+ "rounded-se": [{
1520
+ "rounded-se": [borderRadius]
1521
+ }],
1522
+ /**
1523
+ * Border Radius End End
1524
+ * @see https://tailwindcss.com/docs/border-radius
1525
+ */
1526
+ "rounded-ee": [{
1527
+ "rounded-ee": [borderRadius]
1528
+ }],
1529
+ /**
1530
+ * Border Radius End Start
1531
+ * @see https://tailwindcss.com/docs/border-radius
1532
+ */
1533
+ "rounded-es": [{
1534
+ "rounded-es": [borderRadius]
1535
+ }],
1536
+ /**
1537
+ * Border Radius Top Left
1538
+ * @see https://tailwindcss.com/docs/border-radius
1539
+ */
1540
+ "rounded-tl": [{
1541
+ "rounded-tl": [borderRadius]
1542
+ }],
1543
+ /**
1544
+ * Border Radius Top Right
1545
+ * @see https://tailwindcss.com/docs/border-radius
1546
+ */
1547
+ "rounded-tr": [{
1548
+ "rounded-tr": [borderRadius]
1549
+ }],
1550
+ /**
1551
+ * Border Radius Bottom Right
1552
+ * @see https://tailwindcss.com/docs/border-radius
1553
+ */
1554
+ "rounded-br": [{
1555
+ "rounded-br": [borderRadius]
1556
+ }],
1557
+ /**
1558
+ * Border Radius Bottom Left
1559
+ * @see https://tailwindcss.com/docs/border-radius
1560
+ */
1561
+ "rounded-bl": [{
1562
+ "rounded-bl": [borderRadius]
1563
+ }],
1564
+ /**
1565
+ * Border Width
1566
+ * @see https://tailwindcss.com/docs/border-width
1567
+ */
1568
+ "border-w": [{
1569
+ border: [borderWidth]
1570
+ }],
1571
+ /**
1572
+ * Border Width X
1573
+ * @see https://tailwindcss.com/docs/border-width
1574
+ */
1575
+ "border-w-x": [{
1576
+ "border-x": [borderWidth]
1577
+ }],
1578
+ /**
1579
+ * Border Width Y
1580
+ * @see https://tailwindcss.com/docs/border-width
1581
+ */
1582
+ "border-w-y": [{
1583
+ "border-y": [borderWidth]
1584
+ }],
1585
+ /**
1586
+ * Border Width Start
1587
+ * @see https://tailwindcss.com/docs/border-width
1588
+ */
1589
+ "border-w-s": [{
1590
+ "border-s": [borderWidth]
1591
+ }],
1592
+ /**
1593
+ * Border Width End
1594
+ * @see https://tailwindcss.com/docs/border-width
1595
+ */
1596
+ "border-w-e": [{
1597
+ "border-e": [borderWidth]
1598
+ }],
1599
+ /**
1600
+ * Border Width Top
1601
+ * @see https://tailwindcss.com/docs/border-width
1602
+ */
1603
+ "border-w-t": [{
1604
+ "border-t": [borderWidth]
1605
+ }],
1606
+ /**
1607
+ * Border Width Right
1608
+ * @see https://tailwindcss.com/docs/border-width
1609
+ */
1610
+ "border-w-r": [{
1611
+ "border-r": [borderWidth]
1612
+ }],
1613
+ /**
1614
+ * Border Width Bottom
1615
+ * @see https://tailwindcss.com/docs/border-width
1616
+ */
1617
+ "border-w-b": [{
1618
+ "border-b": [borderWidth]
1619
+ }],
1620
+ /**
1621
+ * Border Width Left
1622
+ * @see https://tailwindcss.com/docs/border-width
1623
+ */
1624
+ "border-w-l": [{
1625
+ "border-l": [borderWidth]
1626
+ }],
1627
+ /**
1628
+ * Border Opacity
1629
+ * @see https://tailwindcss.com/docs/border-opacity
1630
+ */
1631
+ "border-opacity": [{
1632
+ "border-opacity": [opacity]
1633
+ }],
1634
+ /**
1635
+ * Border Style
1636
+ * @see https://tailwindcss.com/docs/border-style
1637
+ */
1638
+ "border-style": [{
1639
+ border: [...getLineStyles(), "hidden"]
1640
+ }],
1641
+ /**
1642
+ * Divide Width X
1643
+ * @see https://tailwindcss.com/docs/divide-width
1644
+ */
1645
+ "divide-x": [{
1646
+ "divide-x": [borderWidth]
1647
+ }],
1648
+ /**
1649
+ * Divide Width X Reverse
1650
+ * @see https://tailwindcss.com/docs/divide-width
1651
+ */
1652
+ "divide-x-reverse": ["divide-x-reverse"],
1653
+ /**
1654
+ * Divide Width Y
1655
+ * @see https://tailwindcss.com/docs/divide-width
1656
+ */
1657
+ "divide-y": [{
1658
+ "divide-y": [borderWidth]
1659
+ }],
1660
+ /**
1661
+ * Divide Width Y Reverse
1662
+ * @see https://tailwindcss.com/docs/divide-width
1663
+ */
1664
+ "divide-y-reverse": ["divide-y-reverse"],
1665
+ /**
1666
+ * Divide Opacity
1667
+ * @see https://tailwindcss.com/docs/divide-opacity
1668
+ */
1669
+ "divide-opacity": [{
1670
+ "divide-opacity": [opacity]
1671
+ }],
1672
+ /**
1673
+ * Divide Style
1674
+ * @see https://tailwindcss.com/docs/divide-style
1675
+ */
1676
+ "divide-style": [{
1677
+ divide: getLineStyles()
1678
+ }],
1679
+ /**
1680
+ * Border Color
1681
+ * @see https://tailwindcss.com/docs/border-color
1682
+ */
1683
+ "border-color": [{
1684
+ border: [borderColor]
1685
+ }],
1686
+ /**
1687
+ * Border Color X
1688
+ * @see https://tailwindcss.com/docs/border-color
1689
+ */
1690
+ "border-color-x": [{
1691
+ "border-x": [borderColor]
1692
+ }],
1693
+ /**
1694
+ * Border Color Y
1695
+ * @see https://tailwindcss.com/docs/border-color
1696
+ */
1697
+ "border-color-y": [{
1698
+ "border-y": [borderColor]
1699
+ }],
1700
+ /**
1701
+ * Border Color S
1702
+ * @see https://tailwindcss.com/docs/border-color
1703
+ */
1704
+ "border-color-s": [{
1705
+ "border-s": [borderColor]
1706
+ }],
1707
+ /**
1708
+ * Border Color E
1709
+ * @see https://tailwindcss.com/docs/border-color
1710
+ */
1711
+ "border-color-e": [{
1712
+ "border-e": [borderColor]
1713
+ }],
1714
+ /**
1715
+ * Border Color Top
1716
+ * @see https://tailwindcss.com/docs/border-color
1717
+ */
1718
+ "border-color-t": [{
1719
+ "border-t": [borderColor]
1720
+ }],
1721
+ /**
1722
+ * Border Color Right
1723
+ * @see https://tailwindcss.com/docs/border-color
1724
+ */
1725
+ "border-color-r": [{
1726
+ "border-r": [borderColor]
1727
+ }],
1728
+ /**
1729
+ * Border Color Bottom
1730
+ * @see https://tailwindcss.com/docs/border-color
1731
+ */
1732
+ "border-color-b": [{
1733
+ "border-b": [borderColor]
1734
+ }],
1735
+ /**
1736
+ * Border Color Left
1737
+ * @see https://tailwindcss.com/docs/border-color
1738
+ */
1739
+ "border-color-l": [{
1740
+ "border-l": [borderColor]
1741
+ }],
1742
+ /**
1743
+ * Divide Color
1744
+ * @see https://tailwindcss.com/docs/divide-color
1745
+ */
1746
+ "divide-color": [{
1747
+ divide: [borderColor]
1748
+ }],
1749
+ /**
1750
+ * Outline Style
1751
+ * @see https://tailwindcss.com/docs/outline-style
1752
+ */
1753
+ "outline-style": [{
1754
+ outline: ["", ...getLineStyles()]
1755
+ }],
1756
+ /**
1757
+ * Outline Offset
1758
+ * @see https://tailwindcss.com/docs/outline-offset
1759
+ */
1760
+ "outline-offset": [{
1761
+ "outline-offset": [isLength, isArbitraryValue]
1762
+ }],
1763
+ /**
1764
+ * Outline Width
1765
+ * @see https://tailwindcss.com/docs/outline-width
1766
+ */
1767
+ "outline-w": [{
1768
+ outline: [isLength, isArbitraryLength]
1769
+ }],
1770
+ /**
1771
+ * Outline Color
1772
+ * @see https://tailwindcss.com/docs/outline-color
1773
+ */
1774
+ "outline-color": [{
1775
+ outline: [colors]
1776
+ }],
1777
+ /**
1778
+ * Ring Width
1779
+ * @see https://tailwindcss.com/docs/ring-width
1780
+ */
1781
+ "ring-w": [{
1782
+ ring: getLengthWithEmptyAndArbitrary()
1783
+ }],
1784
+ /**
1785
+ * Ring Width Inset
1786
+ * @see https://tailwindcss.com/docs/ring-width
1787
+ */
1788
+ "ring-w-inset": ["ring-inset"],
1789
+ /**
1790
+ * Ring Color
1791
+ * @see https://tailwindcss.com/docs/ring-color
1792
+ */
1793
+ "ring-color": [{
1794
+ ring: [colors]
1795
+ }],
1796
+ /**
1797
+ * Ring Opacity
1798
+ * @see https://tailwindcss.com/docs/ring-opacity
1799
+ */
1800
+ "ring-opacity": [{
1801
+ "ring-opacity": [opacity]
1802
+ }],
1803
+ /**
1804
+ * Ring Offset Width
1805
+ * @see https://tailwindcss.com/docs/ring-offset-width
1806
+ */
1807
+ "ring-offset-w": [{
1808
+ "ring-offset": [isLength, isArbitraryLength]
1809
+ }],
1810
+ /**
1811
+ * Ring Offset Color
1812
+ * @see https://tailwindcss.com/docs/ring-offset-color
1813
+ */
1814
+ "ring-offset-color": [{
1815
+ "ring-offset": [colors]
1816
+ }],
1817
+ // Effects
1818
+ /**
1819
+ * Box Shadow
1820
+ * @see https://tailwindcss.com/docs/box-shadow
1821
+ */
1822
+ shadow: [{
1823
+ shadow: ["", "inner", "none", isTshirtSize, isArbitraryShadow]
1824
+ }],
1825
+ /**
1826
+ * Box Shadow Color
1827
+ * @see https://tailwindcss.com/docs/box-shadow-color
1828
+ */
1829
+ "shadow-color": [{
1830
+ shadow: [isAny]
1831
+ }],
1832
+ /**
1833
+ * Opacity
1834
+ * @see https://tailwindcss.com/docs/opacity
1835
+ */
1836
+ opacity: [{
1837
+ opacity: [opacity]
1838
+ }],
1839
+ /**
1840
+ * Mix Blend Mode
1841
+ * @see https://tailwindcss.com/docs/mix-blend-mode
1842
+ */
1843
+ "mix-blend": [{
1844
+ "mix-blend": [...getBlendModes(), "plus-lighter", "plus-darker"]
1845
+ }],
1846
+ /**
1847
+ * Background Blend Mode
1848
+ * @see https://tailwindcss.com/docs/background-blend-mode
1849
+ */
1850
+ "bg-blend": [{
1851
+ "bg-blend": getBlendModes()
1852
+ }],
1853
+ // Filters
1854
+ /**
1855
+ * Filter
1856
+ * @deprecated since Tailwind CSS v3.0.0
1857
+ * @see https://tailwindcss.com/docs/filter
1858
+ */
1859
+ filter: [{
1860
+ filter: ["", "none"]
1861
+ }],
1862
+ /**
1863
+ * Blur
1864
+ * @see https://tailwindcss.com/docs/blur
1865
+ */
1866
+ blur: [{
1867
+ blur: [blur]
1868
+ }],
1869
+ /**
1870
+ * Brightness
1871
+ * @see https://tailwindcss.com/docs/brightness
1872
+ */
1873
+ brightness: [{
1874
+ brightness: [brightness]
1875
+ }],
1876
+ /**
1877
+ * Contrast
1878
+ * @see https://tailwindcss.com/docs/contrast
1879
+ */
1880
+ contrast: [{
1881
+ contrast: [contrast]
1882
+ }],
1883
+ /**
1884
+ * Drop Shadow
1885
+ * @see https://tailwindcss.com/docs/drop-shadow
1886
+ */
1887
+ "drop-shadow": [{
1888
+ "drop-shadow": ["", "none", isTshirtSize, isArbitraryValue]
1889
+ }],
1890
+ /**
1891
+ * Grayscale
1892
+ * @see https://tailwindcss.com/docs/grayscale
1893
+ */
1894
+ grayscale: [{
1895
+ grayscale: [grayscale]
1896
+ }],
1897
+ /**
1898
+ * Hue Rotate
1899
+ * @see https://tailwindcss.com/docs/hue-rotate
1900
+ */
1901
+ "hue-rotate": [{
1902
+ "hue-rotate": [hueRotate]
1903
+ }],
1904
+ /**
1905
+ * Invert
1906
+ * @see https://tailwindcss.com/docs/invert
1907
+ */
1908
+ invert: [{
1909
+ invert: [invert]
1910
+ }],
1911
+ /**
1912
+ * Saturate
1913
+ * @see https://tailwindcss.com/docs/saturate
1914
+ */
1915
+ saturate: [{
1916
+ saturate: [saturate]
1917
+ }],
1918
+ /**
1919
+ * Sepia
1920
+ * @see https://tailwindcss.com/docs/sepia
1921
+ */
1922
+ sepia: [{
1923
+ sepia: [sepia]
1924
+ }],
1925
+ /**
1926
+ * Backdrop Filter
1927
+ * @deprecated since Tailwind CSS v3.0.0
1928
+ * @see https://tailwindcss.com/docs/backdrop-filter
1929
+ */
1930
+ "backdrop-filter": [{
1931
+ "backdrop-filter": ["", "none"]
1932
+ }],
1933
+ /**
1934
+ * Backdrop Blur
1935
+ * @see https://tailwindcss.com/docs/backdrop-blur
1936
+ */
1937
+ "backdrop-blur": [{
1938
+ "backdrop-blur": [blur]
1939
+ }],
1940
+ /**
1941
+ * Backdrop Brightness
1942
+ * @see https://tailwindcss.com/docs/backdrop-brightness
1943
+ */
1944
+ "backdrop-brightness": [{
1945
+ "backdrop-brightness": [brightness]
1946
+ }],
1947
+ /**
1948
+ * Backdrop Contrast
1949
+ * @see https://tailwindcss.com/docs/backdrop-contrast
1950
+ */
1951
+ "backdrop-contrast": [{
1952
+ "backdrop-contrast": [contrast]
1953
+ }],
1954
+ /**
1955
+ * Backdrop Grayscale
1956
+ * @see https://tailwindcss.com/docs/backdrop-grayscale
1957
+ */
1958
+ "backdrop-grayscale": [{
1959
+ "backdrop-grayscale": [grayscale]
1960
+ }],
1961
+ /**
1962
+ * Backdrop Hue Rotate
1963
+ * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1964
+ */
1965
+ "backdrop-hue-rotate": [{
1966
+ "backdrop-hue-rotate": [hueRotate]
1967
+ }],
1968
+ /**
1969
+ * Backdrop Invert
1970
+ * @see https://tailwindcss.com/docs/backdrop-invert
1971
+ */
1972
+ "backdrop-invert": [{
1973
+ "backdrop-invert": [invert]
1974
+ }],
1975
+ /**
1976
+ * Backdrop Opacity
1977
+ * @see https://tailwindcss.com/docs/backdrop-opacity
1978
+ */
1979
+ "backdrop-opacity": [{
1980
+ "backdrop-opacity": [opacity]
1981
+ }],
1982
+ /**
1983
+ * Backdrop Saturate
1984
+ * @see https://tailwindcss.com/docs/backdrop-saturate
1985
+ */
1986
+ "backdrop-saturate": [{
1987
+ "backdrop-saturate": [saturate]
1988
+ }],
1989
+ /**
1990
+ * Backdrop Sepia
1991
+ * @see https://tailwindcss.com/docs/backdrop-sepia
1992
+ */
1993
+ "backdrop-sepia": [{
1994
+ "backdrop-sepia": [sepia]
1995
+ }],
1996
+ // Tables
1997
+ /**
1998
+ * Border Collapse
1999
+ * @see https://tailwindcss.com/docs/border-collapse
2000
+ */
2001
+ "border-collapse": [{
2002
+ border: ["collapse", "separate"]
2003
+ }],
2004
+ /**
2005
+ * Border Spacing
2006
+ * @see https://tailwindcss.com/docs/border-spacing
2007
+ */
2008
+ "border-spacing": [{
2009
+ "border-spacing": [borderSpacing]
2010
+ }],
2011
+ /**
2012
+ * Border Spacing X
2013
+ * @see https://tailwindcss.com/docs/border-spacing
2014
+ */
2015
+ "border-spacing-x": [{
2016
+ "border-spacing-x": [borderSpacing]
2017
+ }],
2018
+ /**
2019
+ * Border Spacing Y
2020
+ * @see https://tailwindcss.com/docs/border-spacing
2021
+ */
2022
+ "border-spacing-y": [{
2023
+ "border-spacing-y": [borderSpacing]
2024
+ }],
2025
+ /**
2026
+ * Table Layout
2027
+ * @see https://tailwindcss.com/docs/table-layout
2028
+ */
2029
+ "table-layout": [{
2030
+ table: ["auto", "fixed"]
2031
+ }],
2032
+ /**
2033
+ * Caption Side
2034
+ * @see https://tailwindcss.com/docs/caption-side
2035
+ */
2036
+ caption: [{
2037
+ caption: ["top", "bottom"]
2038
+ }],
2039
+ // Transitions and Animation
2040
+ /**
2041
+ * Tranisition Property
2042
+ * @see https://tailwindcss.com/docs/transition-property
2043
+ */
2044
+ transition: [{
2045
+ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", isArbitraryValue]
2046
+ }],
2047
+ /**
2048
+ * Transition Duration
2049
+ * @see https://tailwindcss.com/docs/transition-duration
2050
+ */
2051
+ duration: [{
2052
+ duration: getNumberAndArbitrary()
2053
+ }],
2054
+ /**
2055
+ * Transition Timing Function
2056
+ * @see https://tailwindcss.com/docs/transition-timing-function
2057
+ */
2058
+ ease: [{
2059
+ ease: ["linear", "in", "out", "in-out", isArbitraryValue]
2060
+ }],
2061
+ /**
2062
+ * Transition Delay
2063
+ * @see https://tailwindcss.com/docs/transition-delay
2064
+ */
2065
+ delay: [{
2066
+ delay: getNumberAndArbitrary()
2067
+ }],
2068
+ /**
2069
+ * Animation
2070
+ * @see https://tailwindcss.com/docs/animation
2071
+ */
2072
+ animate: [{
2073
+ animate: ["none", "spin", "ping", "pulse", "bounce", isArbitraryValue]
2074
+ }],
2075
+ // Transforms
2076
+ /**
2077
+ * Transform
2078
+ * @see https://tailwindcss.com/docs/transform
2079
+ */
2080
+ transform: [{
2081
+ transform: ["", "gpu", "none"]
2082
+ }],
2083
+ /**
2084
+ * Scale
2085
+ * @see https://tailwindcss.com/docs/scale
2086
+ */
2087
+ scale: [{
2088
+ scale: [scale]
2089
+ }],
2090
+ /**
2091
+ * Scale X
2092
+ * @see https://tailwindcss.com/docs/scale
2093
+ */
2094
+ "scale-x": [{
2095
+ "scale-x": [scale]
2096
+ }],
2097
+ /**
2098
+ * Scale Y
2099
+ * @see https://tailwindcss.com/docs/scale
2100
+ */
2101
+ "scale-y": [{
2102
+ "scale-y": [scale]
2103
+ }],
2104
+ /**
2105
+ * Rotate
2106
+ * @see https://tailwindcss.com/docs/rotate
2107
+ */
2108
+ rotate: [{
2109
+ rotate: [isInteger, isArbitraryValue]
2110
+ }],
2111
+ /**
2112
+ * Translate X
2113
+ * @see https://tailwindcss.com/docs/translate
2114
+ */
2115
+ "translate-x": [{
2116
+ "translate-x": [translate]
2117
+ }],
2118
+ /**
2119
+ * Translate Y
2120
+ * @see https://tailwindcss.com/docs/translate
2121
+ */
2122
+ "translate-y": [{
2123
+ "translate-y": [translate]
2124
+ }],
2125
+ /**
2126
+ * Skew X
2127
+ * @see https://tailwindcss.com/docs/skew
2128
+ */
2129
+ "skew-x": [{
2130
+ "skew-x": [skew]
2131
+ }],
2132
+ /**
2133
+ * Skew Y
2134
+ * @see https://tailwindcss.com/docs/skew
2135
+ */
2136
+ "skew-y": [{
2137
+ "skew-y": [skew]
2138
+ }],
2139
+ /**
2140
+ * Transform Origin
2141
+ * @see https://tailwindcss.com/docs/transform-origin
2142
+ */
2143
+ "transform-origin": [{
2144
+ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", isArbitraryValue]
2145
+ }],
2146
+ // Interactivity
2147
+ /**
2148
+ * Accent Color
2149
+ * @see https://tailwindcss.com/docs/accent-color
2150
+ */
2151
+ accent: [{
2152
+ accent: ["auto", colors]
2153
+ }],
2154
+ /**
2155
+ * Appearance
2156
+ * @see https://tailwindcss.com/docs/appearance
2157
+ */
2158
+ appearance: [{
2159
+ appearance: ["none", "auto"]
2160
+ }],
2161
+ /**
2162
+ * Cursor
2163
+ * @see https://tailwindcss.com/docs/cursor
2164
+ */
2165
+ cursor: [{
2166
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", isArbitraryValue]
2167
+ }],
2168
+ /**
2169
+ * Caret Color
2170
+ * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2171
+ */
2172
+ "caret-color": [{
2173
+ caret: [colors]
2174
+ }],
2175
+ /**
2176
+ * Pointer Events
2177
+ * @see https://tailwindcss.com/docs/pointer-events
2178
+ */
2179
+ "pointer-events": [{
2180
+ "pointer-events": ["none", "auto"]
2181
+ }],
2182
+ /**
2183
+ * Resize
2184
+ * @see https://tailwindcss.com/docs/resize
2185
+ */
2186
+ resize: [{
2187
+ resize: ["none", "y", "x", ""]
2188
+ }],
2189
+ /**
2190
+ * Scroll Behavior
2191
+ * @see https://tailwindcss.com/docs/scroll-behavior
2192
+ */
2193
+ "scroll-behavior": [{
2194
+ scroll: ["auto", "smooth"]
2195
+ }],
2196
+ /**
2197
+ * Scroll Margin
2198
+ * @see https://tailwindcss.com/docs/scroll-margin
2199
+ */
2200
+ "scroll-m": [{
2201
+ "scroll-m": getSpacingWithArbitrary()
2202
+ }],
2203
+ /**
2204
+ * Scroll Margin X
2205
+ * @see https://tailwindcss.com/docs/scroll-margin
2206
+ */
2207
+ "scroll-mx": [{
2208
+ "scroll-mx": getSpacingWithArbitrary()
2209
+ }],
2210
+ /**
2211
+ * Scroll Margin Y
2212
+ * @see https://tailwindcss.com/docs/scroll-margin
2213
+ */
2214
+ "scroll-my": [{
2215
+ "scroll-my": getSpacingWithArbitrary()
2216
+ }],
2217
+ /**
2218
+ * Scroll Margin Start
2219
+ * @see https://tailwindcss.com/docs/scroll-margin
2220
+ */
2221
+ "scroll-ms": [{
2222
+ "scroll-ms": getSpacingWithArbitrary()
2223
+ }],
2224
+ /**
2225
+ * Scroll Margin End
2226
+ * @see https://tailwindcss.com/docs/scroll-margin
2227
+ */
2228
+ "scroll-me": [{
2229
+ "scroll-me": getSpacingWithArbitrary()
2230
+ }],
2231
+ /**
2232
+ * Scroll Margin Top
2233
+ * @see https://tailwindcss.com/docs/scroll-margin
2234
+ */
2235
+ "scroll-mt": [{
2236
+ "scroll-mt": getSpacingWithArbitrary()
2237
+ }],
2238
+ /**
2239
+ * Scroll Margin Right
2240
+ * @see https://tailwindcss.com/docs/scroll-margin
2241
+ */
2242
+ "scroll-mr": [{
2243
+ "scroll-mr": getSpacingWithArbitrary()
2244
+ }],
2245
+ /**
2246
+ * Scroll Margin Bottom
2247
+ * @see https://tailwindcss.com/docs/scroll-margin
2248
+ */
2249
+ "scroll-mb": [{
2250
+ "scroll-mb": getSpacingWithArbitrary()
2251
+ }],
2252
+ /**
2253
+ * Scroll Margin Left
2254
+ * @see https://tailwindcss.com/docs/scroll-margin
2255
+ */
2256
+ "scroll-ml": [{
2257
+ "scroll-ml": getSpacingWithArbitrary()
2258
+ }],
2259
+ /**
2260
+ * Scroll Padding
2261
+ * @see https://tailwindcss.com/docs/scroll-padding
2262
+ */
2263
+ "scroll-p": [{
2264
+ "scroll-p": getSpacingWithArbitrary()
2265
+ }],
2266
+ /**
2267
+ * Scroll Padding X
2268
+ * @see https://tailwindcss.com/docs/scroll-padding
2269
+ */
2270
+ "scroll-px": [{
2271
+ "scroll-px": getSpacingWithArbitrary()
2272
+ }],
2273
+ /**
2274
+ * Scroll Padding Y
2275
+ * @see https://tailwindcss.com/docs/scroll-padding
2276
+ */
2277
+ "scroll-py": [{
2278
+ "scroll-py": getSpacingWithArbitrary()
2279
+ }],
2280
+ /**
2281
+ * Scroll Padding Start
2282
+ * @see https://tailwindcss.com/docs/scroll-padding
2283
+ */
2284
+ "scroll-ps": [{
2285
+ "scroll-ps": getSpacingWithArbitrary()
2286
+ }],
2287
+ /**
2288
+ * Scroll Padding End
2289
+ * @see https://tailwindcss.com/docs/scroll-padding
2290
+ */
2291
+ "scroll-pe": [{
2292
+ "scroll-pe": getSpacingWithArbitrary()
2293
+ }],
2294
+ /**
2295
+ * Scroll Padding Top
2296
+ * @see https://tailwindcss.com/docs/scroll-padding
2297
+ */
2298
+ "scroll-pt": [{
2299
+ "scroll-pt": getSpacingWithArbitrary()
2300
+ }],
2301
+ /**
2302
+ * Scroll Padding Right
2303
+ * @see https://tailwindcss.com/docs/scroll-padding
2304
+ */
2305
+ "scroll-pr": [{
2306
+ "scroll-pr": getSpacingWithArbitrary()
2307
+ }],
2308
+ /**
2309
+ * Scroll Padding Bottom
2310
+ * @see https://tailwindcss.com/docs/scroll-padding
2311
+ */
2312
+ "scroll-pb": [{
2313
+ "scroll-pb": getSpacingWithArbitrary()
2314
+ }],
2315
+ /**
2316
+ * Scroll Padding Left
2317
+ * @see https://tailwindcss.com/docs/scroll-padding
2318
+ */
2319
+ "scroll-pl": [{
2320
+ "scroll-pl": getSpacingWithArbitrary()
2321
+ }],
2322
+ /**
2323
+ * Scroll Snap Align
2324
+ * @see https://tailwindcss.com/docs/scroll-snap-align
2325
+ */
2326
+ "snap-align": [{
2327
+ snap: ["start", "end", "center", "align-none"]
2328
+ }],
2329
+ /**
2330
+ * Scroll Snap Stop
2331
+ * @see https://tailwindcss.com/docs/scroll-snap-stop
2332
+ */
2333
+ "snap-stop": [{
2334
+ snap: ["normal", "always"]
2335
+ }],
2336
+ /**
2337
+ * Scroll Snap Type
2338
+ * @see https://tailwindcss.com/docs/scroll-snap-type
2339
+ */
2340
+ "snap-type": [{
2341
+ snap: ["none", "x", "y", "both"]
2342
+ }],
2343
+ /**
2344
+ * Scroll Snap Type Strictness
2345
+ * @see https://tailwindcss.com/docs/scroll-snap-type
2346
+ */
2347
+ "snap-strictness": [{
2348
+ snap: ["mandatory", "proximity"]
2349
+ }],
2350
+ /**
2351
+ * Touch Action
2352
+ * @see https://tailwindcss.com/docs/touch-action
2353
+ */
2354
+ touch: [{
2355
+ touch: ["auto", "none", "manipulation"]
2356
+ }],
2357
+ /**
2358
+ * Touch Action X
2359
+ * @see https://tailwindcss.com/docs/touch-action
2360
+ */
2361
+ "touch-x": [{
2362
+ "touch-pan": ["x", "left", "right"]
2363
+ }],
2364
+ /**
2365
+ * Touch Action Y
2366
+ * @see https://tailwindcss.com/docs/touch-action
2367
+ */
2368
+ "touch-y": [{
2369
+ "touch-pan": ["y", "up", "down"]
2370
+ }],
2371
+ /**
2372
+ * Touch Action Pinch Zoom
2373
+ * @see https://tailwindcss.com/docs/touch-action
2374
+ */
2375
+ "touch-pz": ["touch-pinch-zoom"],
2376
+ /**
2377
+ * User Select
2378
+ * @see https://tailwindcss.com/docs/user-select
2379
+ */
2380
+ select: [{
2381
+ select: ["none", "text", "all", "auto"]
2382
+ }],
2383
+ /**
2384
+ * Will Change
2385
+ * @see https://tailwindcss.com/docs/will-change
2386
+ */
2387
+ "will-change": [{
2388
+ "will-change": ["auto", "scroll", "contents", "transform", isArbitraryValue]
2389
+ }],
2390
+ // SVG
2391
+ /**
2392
+ * Fill
2393
+ * @see https://tailwindcss.com/docs/fill
2394
+ */
2395
+ fill: [{
2396
+ fill: [colors, "none"]
2397
+ }],
2398
+ /**
2399
+ * Stroke Width
2400
+ * @see https://tailwindcss.com/docs/stroke-width
2401
+ */
2402
+ "stroke-w": [{
2403
+ stroke: [isLength, isArbitraryLength, isArbitraryNumber]
2404
+ }],
2405
+ /**
2406
+ * Stroke
2407
+ * @see https://tailwindcss.com/docs/stroke
2408
+ */
2409
+ stroke: [{
2410
+ stroke: [colors, "none"]
2411
+ }],
2412
+ // Accessibility
2413
+ /**
2414
+ * Screen Readers
2415
+ * @see https://tailwindcss.com/docs/screen-readers
2416
+ */
2417
+ sr: ["sr-only", "not-sr-only"],
2418
+ /**
2419
+ * Forced Color Adjust
2420
+ * @see https://tailwindcss.com/docs/forced-color-adjust
2421
+ */
2422
+ "forced-color-adjust": [{
2423
+ "forced-color-adjust": ["auto", "none"]
2424
+ }]
2425
+ },
2426
+ conflictingClassGroups: {
2427
+ overflow: ["overflow-x", "overflow-y"],
2428
+ overscroll: ["overscroll-x", "overscroll-y"],
2429
+ inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"],
2430
+ "inset-x": ["right", "left"],
2431
+ "inset-y": ["top", "bottom"],
2432
+ flex: ["basis", "grow", "shrink"],
2433
+ gap: ["gap-x", "gap-y"],
2434
+ p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"],
2435
+ px: ["pr", "pl"],
2436
+ py: ["pt", "pb"],
2437
+ m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"],
2438
+ mx: ["mr", "ml"],
2439
+ my: ["mt", "mb"],
2440
+ size: ["w", "h"],
2441
+ "font-size": ["leading"],
2442
+ "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
2443
+ "fvn-ordinal": ["fvn-normal"],
2444
+ "fvn-slashed-zero": ["fvn-normal"],
2445
+ "fvn-figure": ["fvn-normal"],
2446
+ "fvn-spacing": ["fvn-normal"],
2447
+ "fvn-fraction": ["fvn-normal"],
2448
+ "line-clamp": ["display", "overflow"],
2449
+ rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"],
2450
+ "rounded-s": ["rounded-ss", "rounded-es"],
2451
+ "rounded-e": ["rounded-se", "rounded-ee"],
2452
+ "rounded-t": ["rounded-tl", "rounded-tr"],
2453
+ "rounded-r": ["rounded-tr", "rounded-br"],
2454
+ "rounded-b": ["rounded-br", "rounded-bl"],
2455
+ "rounded-l": ["rounded-tl", "rounded-bl"],
2456
+ "border-spacing": ["border-spacing-x", "border-spacing-y"],
2457
+ "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
2458
+ "border-w-x": ["border-w-r", "border-w-l"],
2459
+ "border-w-y": ["border-w-t", "border-w-b"],
2460
+ "border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
2461
+ "border-color-x": ["border-color-r", "border-color-l"],
2462
+ "border-color-y": ["border-color-t", "border-color-b"],
2463
+ "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
2464
+ "scroll-mx": ["scroll-mr", "scroll-ml"],
2465
+ "scroll-my": ["scroll-mt", "scroll-mb"],
2466
+ "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
2467
+ "scroll-px": ["scroll-pr", "scroll-pl"],
2468
+ "scroll-py": ["scroll-pt", "scroll-pb"],
2469
+ touch: ["touch-x", "touch-y", "touch-pz"],
2470
+ "touch-x": ["touch"],
2471
+ "touch-y": ["touch"],
2472
+ "touch-pz": ["touch"]
2473
+ },
2474
+ conflictingClassGroupModifiers: {
2475
+ "font-size": ["leading"]
2476
+ }
2477
+ };
2478
+ };
2479
+ var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
2480
+
2481
+ // lib/cn.ts
2482
+ function cn(...inputs) {
2483
+ return twMerge(clsx(inputs));
2484
+ }
2485
+ var EventBusContext = createContext(null);
2486
+
2487
+ // hooks/useEventBus.ts
2488
+ function getGlobalEventBus() {
2489
+ if (typeof window !== "undefined") {
2490
+ return window.__kflowEventBus ?? null;
2491
+ }
2492
+ return null;
2493
+ }
2494
+ var fallbackListeners = /* @__PURE__ */ new Map();
2495
+ var fallbackAnyListeners = /* @__PURE__ */ new Set();
2496
+ var fallbackEventBus = {
2497
+ emit: (type, payload) => {
2498
+ const event = {
2499
+ type,
2500
+ payload,
2501
+ timestamp: Date.now()
2502
+ };
2503
+ const handlers = fallbackListeners.get(type);
2504
+ if (handlers) {
2505
+ handlers.forEach((handler) => {
2506
+ try {
2507
+ handler(event);
2508
+ } catch (error) {
2509
+ console.error(`[EventBus] Error in listener for '${type}':`, error);
2510
+ }
2511
+ });
2512
+ }
2513
+ fallbackAnyListeners.forEach((handler) => {
2514
+ try {
2515
+ handler(event);
2516
+ } catch (error) {
2517
+ console.error(`[EventBus] Error in onAny listener for '${type}':`, error);
2518
+ }
2519
+ });
2520
+ },
2521
+ on: (type, listener) => {
2522
+ if (!fallbackListeners.has(type)) {
2523
+ fallbackListeners.set(type, /* @__PURE__ */ new Set());
2524
+ }
2525
+ fallbackListeners.get(type).add(listener);
2526
+ return () => {
2527
+ const handlers = fallbackListeners.get(type);
2528
+ if (handlers) {
2529
+ handlers.delete(listener);
2530
+ if (handlers.size === 0) {
2531
+ fallbackListeners.delete(type);
2532
+ }
2533
+ }
2534
+ };
2535
+ },
2536
+ once: (type, listener) => {
2537
+ const wrappedListener = (event) => {
2538
+ fallbackListeners.get(type)?.delete(wrappedListener);
2539
+ listener(event);
2540
+ };
2541
+ return fallbackEventBus.on(type, wrappedListener);
2542
+ },
2543
+ hasListeners: (type) => {
2544
+ const handlers = fallbackListeners.get(type);
2545
+ return handlers !== void 0 && handlers.size > 0;
2546
+ },
2547
+ onAny: (listener) => {
2548
+ fallbackAnyListeners.add(listener);
2549
+ return () => {
2550
+ fallbackAnyListeners.delete(listener);
2551
+ };
2552
+ }
2553
+ };
2554
+ function useEventBus() {
2555
+ const context = useContext(EventBusContext);
2556
+ return context ?? getGlobalEventBus() ?? fallbackEventBus;
2557
+ }
2558
+ var paddingStyles = {
2559
+ none: "p-0",
2560
+ xs: "p-1",
2561
+ sm: "p-2",
2562
+ md: "p-4",
2563
+ lg: "p-6",
2564
+ xl: "p-8",
2565
+ "2xl": "p-12"
2566
+ };
2567
+ var paddingXStyles = {
2568
+ none: "px-0",
2569
+ xs: "px-1",
2570
+ sm: "px-2",
2571
+ md: "px-4",
2572
+ lg: "px-6",
2573
+ xl: "px-8",
2574
+ "2xl": "px-12"
2575
+ };
2576
+ var paddingYStyles = {
2577
+ none: "py-0",
2578
+ xs: "py-1",
2579
+ sm: "py-2",
2580
+ md: "py-4",
2581
+ lg: "py-6",
2582
+ xl: "py-8",
2583
+ "2xl": "py-12"
2584
+ };
2585
+ var marginStyles = {
2586
+ none: "m-0",
2587
+ xs: "m-1",
2588
+ sm: "m-2",
2589
+ md: "m-4",
2590
+ lg: "m-6",
2591
+ xl: "m-8",
2592
+ "2xl": "m-12",
2593
+ auto: "m-auto"
2594
+ };
2595
+ var marginXStyles = {
2596
+ none: "mx-0",
2597
+ xs: "mx-1",
2598
+ sm: "mx-2",
2599
+ md: "mx-4",
2600
+ lg: "mx-6",
2601
+ xl: "mx-8",
2602
+ "2xl": "mx-12",
2603
+ auto: "mx-auto"
2604
+ };
2605
+ var marginYStyles = {
2606
+ none: "my-0",
2607
+ xs: "my-1",
2608
+ sm: "my-2",
2609
+ md: "my-4",
2610
+ lg: "my-6",
2611
+ xl: "my-8",
2612
+ "2xl": "my-12",
2613
+ auto: "my-auto"
2614
+ };
2615
+ var bgStyles = {
2616
+ transparent: "bg-transparent",
2617
+ primary: "bg-[var(--color-primary)] text-[var(--color-primary-foreground)]",
2618
+ secondary: "bg-[var(--color-secondary)] text-[var(--color-secondary-foreground)]",
2619
+ muted: "bg-[var(--color-muted)] text-[var(--color-foreground)]",
2620
+ accent: "bg-[var(--color-accent)] text-[var(--color-accent-foreground)]",
2621
+ surface: "bg-[var(--color-card)]",
2622
+ overlay: "bg-[var(--color-card)]/80 backdrop-blur-sm"
2623
+ };
2624
+ var roundedStyles = {
2625
+ none: "rounded-none",
2626
+ sm: "rounded-[var(--radius-sm)]",
2627
+ md: "rounded-[var(--radius-md)]",
2628
+ lg: "rounded-[var(--radius-lg)]",
2629
+ xl: "rounded-[var(--radius-xl)]",
2630
+ "2xl": "rounded-[var(--radius-xl)]",
2631
+ full: "rounded-[var(--radius-full)]"
2632
+ };
2633
+ var shadowStyles = {
2634
+ none: "shadow-none",
2635
+ sm: "shadow-[var(--shadow-sm)]",
2636
+ md: "shadow-[var(--shadow-main)]",
2637
+ lg: "shadow-[var(--shadow-lg)]",
2638
+ xl: "shadow-[var(--shadow-lg)]"
2639
+ };
2640
+ var displayStyles = {
2641
+ block: "block",
2642
+ inline: "inline",
2643
+ "inline-block": "inline-block",
2644
+ flex: "flex",
2645
+ "inline-flex": "inline-flex",
2646
+ grid: "grid"
2647
+ };
2648
+ var overflowStyles = {
2649
+ auto: "overflow-auto",
2650
+ hidden: "overflow-hidden",
2651
+ visible: "overflow-visible",
2652
+ scroll: "overflow-scroll"
2653
+ };
2654
+ var positionStyles = {
2655
+ relative: "relative",
2656
+ absolute: "absolute",
2657
+ fixed: "fixed",
2658
+ sticky: "sticky"
2659
+ };
2660
+ var Box = React5.forwardRef(
2661
+ ({
2662
+ padding,
2663
+ paddingX,
2664
+ paddingY,
2665
+ margin,
2666
+ marginX,
2667
+ marginY,
2668
+ bg = "transparent",
2669
+ border = false,
2670
+ rounded = "none",
2671
+ shadow = "none",
2672
+ display,
2673
+ fullWidth = false,
2674
+ fullHeight = false,
2675
+ overflow,
2676
+ position,
2677
+ className,
2678
+ children,
2679
+ as: Component = "div",
2680
+ action,
2681
+ actionPayload,
2682
+ hoverEvent,
2683
+ onClick,
2684
+ onMouseEnter,
2685
+ onMouseLeave,
2686
+ ...rest
2687
+ }, ref) => {
2688
+ const eventBus = useEventBus();
2689
+ const handleClick = useCallback((e) => {
2690
+ if (action) {
2691
+ e.stopPropagation();
2692
+ eventBus.emit(`UI:${action}`, actionPayload ?? {});
2693
+ }
2694
+ onClick?.(e);
2695
+ }, [action, actionPayload, eventBus, onClick]);
2696
+ const handleMouseEnter = useCallback((e) => {
2697
+ if (hoverEvent) {
2698
+ eventBus.emit(`UI:${hoverEvent}`, { hovered: true });
2699
+ }
2700
+ onMouseEnter?.(e);
2701
+ }, [hoverEvent, eventBus, onMouseEnter]);
2702
+ const handleMouseLeave = useCallback((e) => {
2703
+ if (hoverEvent) {
2704
+ eventBus.emit(`UI:${hoverEvent}`, { hovered: false });
2705
+ }
2706
+ onMouseLeave?.(e);
2707
+ }, [hoverEvent, eventBus, onMouseLeave]);
2708
+ const isClickable = action || onClick;
2709
+ const Comp = Component;
2710
+ return /* @__PURE__ */ jsx(
2711
+ Comp,
2712
+ {
2713
+ ref,
2714
+ className: cn(
2715
+ // Padding
2716
+ padding && paddingStyles[padding],
2717
+ paddingX && paddingXStyles[paddingX],
2718
+ paddingY && paddingYStyles[paddingY],
2719
+ // Margin
2720
+ margin && marginStyles[margin],
2721
+ marginX && marginXStyles[marginX],
2722
+ marginY && marginYStyles[marginY],
2723
+ // Background
2724
+ bgStyles[bg],
2725
+ // Border - uses theme variables
2726
+ border && "border-[length:var(--border-width)] border-[var(--color-border)]",
2727
+ // Rounded
2728
+ roundedStyles[rounded],
2729
+ // Shadow
2730
+ shadowStyles[shadow],
2731
+ // Display
2732
+ display && displayStyles[display],
2733
+ // Dimensions
2734
+ fullWidth && "w-full",
2735
+ fullHeight && "h-full",
2736
+ // Overflow
2737
+ overflow && overflowStyles[overflow],
2738
+ // Position
2739
+ position && positionStyles[position],
2740
+ // Cursor for clickable
2741
+ isClickable && "cursor-pointer",
2742
+ className
2743
+ ),
2744
+ onClick: isClickable ? handleClick : void 0,
2745
+ onMouseEnter: hoverEvent || onMouseEnter ? handleMouseEnter : void 0,
2746
+ onMouseLeave: hoverEvent || onMouseLeave ? handleMouseLeave : void 0,
2747
+ ...rest,
2748
+ children
2749
+ }
2750
+ );
2751
+ }
2752
+ );
2753
+ Box.displayName = "Box";
2754
+ var gapStyles = {
2755
+ none: "gap-0",
2756
+ xs: "gap-1",
2757
+ sm: "gap-2",
2758
+ md: "gap-4",
2759
+ lg: "gap-6",
2760
+ xl: "gap-8",
2761
+ "2xl": "gap-12"
2762
+ };
2763
+ var alignStyles = {
2764
+ start: "items-start",
2765
+ center: "items-center",
2766
+ end: "items-end",
2767
+ stretch: "items-stretch",
2768
+ baseline: "items-baseline"
2769
+ };
2770
+ var justifyStyles = {
2771
+ start: "justify-start",
2772
+ center: "justify-center",
2773
+ end: "justify-end",
2774
+ between: "justify-between",
2775
+ around: "justify-around",
2776
+ evenly: "justify-evenly"
2777
+ };
2778
+ var Stack = ({
2779
+ direction = "vertical",
2780
+ gap = "md",
2781
+ align = "stretch",
2782
+ justify = "start",
2783
+ wrap = false,
2784
+ reverse = false,
2785
+ flex = false,
2786
+ className,
2787
+ style,
2788
+ children,
2789
+ as: Component = "div",
2790
+ onClick,
2791
+ onKeyDown,
2792
+ role,
2793
+ tabIndex,
2794
+ action,
2795
+ actionPayload,
2796
+ responsive = false
2797
+ }) => {
2798
+ const eventBus = useEventBus();
2799
+ const handleClick = (e) => {
2800
+ if (action) {
2801
+ eventBus.emit(`UI:${action}`, actionPayload ?? {});
2802
+ }
2803
+ onClick?.(e);
2804
+ };
2805
+ const isHorizontal = direction === "horizontal";
2806
+ const directionClass = responsive && isHorizontal ? reverse ? "flex-col-reverse md:flex-row-reverse" : "flex-col md:flex-row" : isHorizontal ? reverse ? "flex-row-reverse" : "flex-row" : reverse ? "flex-col-reverse" : "flex-col";
2807
+ const Comp = Component;
2808
+ return /* @__PURE__ */ jsx(
2809
+ Comp,
2810
+ {
2811
+ className: cn(
2812
+ "flex",
2813
+ directionClass,
2814
+ gapStyles[gap],
2815
+ alignStyles[align],
2816
+ justifyStyles[justify],
2817
+ wrap && "flex-wrap",
2818
+ flex && "flex-1",
2819
+ className
2820
+ ),
2821
+ style,
2822
+ onClick: action || onClick ? handleClick : void 0,
2823
+ onKeyDown,
2824
+ role,
2825
+ tabIndex,
2826
+ children
2827
+ }
2828
+ );
2829
+ };
2830
+ var VStack = (props) => /* @__PURE__ */ jsx(Stack, { direction: "vertical", ...props });
2831
+ var HStack = (props) => /* @__PURE__ */ jsx(Stack, { direction: "horizontal", ...props });
2832
+ var variantStyles = {
2833
+ h1: "text-4xl font-bold tracking-tight text-[var(--color-foreground)]",
2834
+ h2: "text-3xl font-bold tracking-tight text-[var(--color-foreground)]",
2835
+ h3: "text-2xl font-bold text-[var(--color-foreground)]",
2836
+ h4: "text-xl font-bold text-[var(--color-foreground)]",
2837
+ h5: "text-lg font-bold text-[var(--color-foreground)]",
2838
+ h6: "text-base font-bold text-[var(--color-foreground)]",
2839
+ heading: "text-2xl font-bold text-[var(--color-foreground)]",
2840
+ subheading: "text-lg font-semibold text-[var(--color-foreground)]",
2841
+ body1: "text-base font-normal text-[var(--color-foreground)]",
2842
+ body2: "text-sm font-normal text-[var(--color-foreground)]",
2843
+ body: "text-base font-normal text-[var(--color-foreground)]",
2844
+ caption: "text-xs font-normal text-[var(--color-muted-foreground)]",
2845
+ overline: "text-xs uppercase tracking-wide font-bold text-[var(--color-muted-foreground)]",
2846
+ small: "text-sm font-normal text-[var(--color-foreground)]",
2847
+ large: "text-lg font-medium text-[var(--color-foreground)]",
2848
+ label: "text-sm font-medium text-[var(--color-foreground)]"
2849
+ };
2850
+ var colorStyles = {
2851
+ primary: "text-[var(--color-foreground)]",
2852
+ secondary: "text-[var(--color-muted-foreground)]",
2853
+ muted: "text-[var(--color-muted-foreground)]",
2854
+ error: "text-[var(--color-error)]",
2855
+ success: "text-[var(--color-success)]",
2856
+ warning: "text-[var(--color-warning)]",
2857
+ inherit: "text-inherit"
2858
+ };
2859
+ var weightStyles = {
2860
+ light: "font-light",
2861
+ normal: "font-normal",
2862
+ medium: "font-medium",
2863
+ semibold: "font-semibold",
2864
+ bold: "font-bold"
2865
+ };
2866
+ var defaultElements = {
2867
+ h1: "h1",
2868
+ h2: "h2",
2869
+ h3: "h3",
2870
+ h4: "h4",
2871
+ h5: "h5",
2872
+ h6: "h6",
2873
+ heading: "h2",
2874
+ subheading: "h3",
2875
+ body1: "p",
2876
+ body2: "p",
2877
+ body: "p",
2878
+ caption: "span",
2879
+ overline: "span",
2880
+ small: "span",
2881
+ large: "p",
2882
+ label: "span"
2883
+ };
2884
+ var typographySizeStyles = {
2885
+ xs: "text-xs",
2886
+ sm: "text-sm",
2887
+ md: "text-base",
2888
+ lg: "text-lg",
2889
+ xl: "text-xl",
2890
+ "2xl": "text-2xl",
2891
+ "3xl": "text-3xl"
2892
+ };
2893
+ var overflowStyles2 = {
2894
+ visible: "overflow-visible",
2895
+ hidden: "overflow-hidden",
2896
+ wrap: "break-words overflow-hidden",
2897
+ "clamp-2": "overflow-hidden line-clamp-2",
2898
+ "clamp-3": "overflow-hidden line-clamp-3"
2899
+ };
2900
+ var Typography = ({
2901
+ variant: variantProp,
2902
+ level,
2903
+ color = "primary",
2904
+ align,
2905
+ weight,
2906
+ size,
2907
+ truncate = false,
2908
+ overflow,
2909
+ as,
2910
+ id,
2911
+ className,
2912
+ style,
2913
+ content,
2914
+ children
2915
+ }) => {
2916
+ const variant = variantProp ?? (level ? `h${level}` : "body1");
2917
+ const Component = as || defaultElements[variant];
2918
+ const Comp = Component;
2919
+ return /* @__PURE__ */ jsx(
2920
+ Comp,
2921
+ {
2922
+ id,
2923
+ className: cn(
2924
+ variantStyles[variant],
2925
+ colorStyles[color],
2926
+ weight && weightStyles[weight],
2927
+ size && typographySizeStyles[size],
2928
+ align && `text-${align}`,
2929
+ truncate && "truncate overflow-hidden text-ellipsis",
2930
+ overflow && overflowStyles2[overflow],
2931
+ className
2932
+ ),
2933
+ style,
2934
+ children: children ?? content
2935
+ }
2936
+ );
2937
+ };
2938
+ Typography.displayName = "Typography";
2939
+ var iconAliases = {
2940
+ "close": LucideIcons.X,
2941
+ "trash": LucideIcons.Trash2,
2942
+ "loader": LucideIcons.Loader2,
2943
+ "stop": LucideIcons.Square,
2944
+ "volume": LucideIcons.Volume2,
2945
+ "volume-off": LucideIcons.VolumeX,
2946
+ "refresh": LucideIcons.RefreshCw,
2947
+ "share": LucideIcons.Share2,
2948
+ "sort-asc": LucideIcons.ArrowUpNarrowWide,
2949
+ "sort-desc": LucideIcons.ArrowDownNarrowWide
2950
+ };
2951
+ function kebabToPascal(name) {
2952
+ return name.split("-").map((part) => {
2953
+ if (/^\d+$/.test(part)) return part;
2954
+ return part.charAt(0).toUpperCase() + part.slice(1);
2955
+ }).join("");
2956
+ }
2957
+ var resolvedCache = /* @__PURE__ */ new Map();
2958
+ function resolveIcon(name) {
2959
+ const cached = resolvedCache.get(name);
2960
+ if (cached) return cached;
2961
+ const resolved = doResolve(name);
2962
+ resolvedCache.set(name, resolved);
2963
+ return resolved;
2964
+ }
2965
+ function doResolve(name) {
2966
+ if (iconAliases[name]) return iconAliases[name];
2967
+ const pascalName = kebabToPascal(name);
2968
+ const directLookup = LucideIcons[pascalName];
2969
+ if (directLookup && typeof directLookup === "object") return directLookup;
2970
+ const asIs = LucideIcons[name];
2971
+ if (asIs && typeof asIs === "object") return asIs;
2972
+ return LucideIcons.HelpCircle;
2973
+ }
2974
+ var sizeClasses = {
2975
+ xs: "w-3 h-3",
2976
+ sm: "w-4 h-4",
2977
+ md: "w-5 h-5",
2978
+ lg: "w-6 h-6",
2979
+ xl: "w-8 h-8"
2980
+ };
2981
+ var animationClasses = {
2982
+ none: "",
2983
+ spin: "animate-spin",
2984
+ pulse: "animate-pulse"
2985
+ };
2986
+ var Icon = ({
2987
+ icon,
2988
+ name,
2989
+ size = "md",
2990
+ color,
2991
+ animation = "none",
2992
+ className,
2993
+ strokeWidth,
2994
+ style
2995
+ }) => {
2996
+ const IconComponent = icon ?? (name ? resolveIcon(name) : LucideIcons.HelpCircle);
2997
+ const effectiveStrokeWidth = strokeWidth ?? void 0;
2998
+ return /* @__PURE__ */ jsx(
2999
+ IconComponent,
3000
+ {
3001
+ className: cn(
3002
+ sizeClasses[size],
3003
+ animationClasses[animation],
3004
+ // Use theme's icon color or provided color
3005
+ color ? color : "text-[var(--icon-color,currentColor)]",
3006
+ className
3007
+ ),
3008
+ strokeWidth: effectiveStrokeWidth,
3009
+ style: {
3010
+ ...effectiveStrokeWidth === void 0 ? { strokeWidth: "var(--icon-stroke-width, 2)" } : {},
3011
+ ...style
3012
+ }
3013
+ }
3014
+ );
3015
+ };
3016
+ Icon.displayName = "Icon";
3017
+ var variantStyles2 = {
3018
+ primary: [
3019
+ "bg-[var(--color-primary)] text-[var(--color-primary-foreground)]",
3020
+ "border-[length:var(--border-width)] border-[var(--color-border)]",
3021
+ "shadow-[var(--shadow-sm)]",
3022
+ "hover:bg-[var(--color-primary-hover)] hover:shadow-[var(--shadow-hover)]",
3023
+ "active:scale-[var(--active-scale)] active:shadow-[var(--shadow-active)]"
3024
+ ].join(" "),
3025
+ secondary: [
3026
+ "bg-[var(--color-secondary)] text-[var(--color-secondary-foreground)]",
3027
+ "border-[length:var(--border-width-thin)] border-[var(--color-border)]",
3028
+ "hover:bg-[var(--color-secondary-hover)]",
3029
+ "active:scale-[var(--active-scale)]"
3030
+ ].join(" "),
3031
+ ghost: [
3032
+ "bg-transparent text-[var(--color-muted-foreground)]",
3033
+ "hover:text-[var(--color-foreground)] hover:bg-[var(--color-muted)]",
3034
+ "active:scale-[var(--active-scale)]"
3035
+ ].join(" "),
3036
+ danger: [
3037
+ "bg-[var(--color-surface)] text-[var(--color-error)]",
3038
+ "border-[length:var(--border-width)] border-[var(--color-error)]",
3039
+ "shadow-[var(--shadow-sm)]",
3040
+ "hover:bg-[var(--color-error)] hover:text-[var(--color-error-foreground)] hover:shadow-[var(--shadow-hover)]",
3041
+ "active:scale-[var(--active-scale)] active:shadow-[var(--shadow-active)]"
3042
+ ].join(" "),
3043
+ success: [
3044
+ "bg-[var(--color-surface)] text-[var(--color-success)]",
3045
+ "border-[length:var(--border-width)] border-[var(--color-success)]",
3046
+ "shadow-[var(--shadow-sm)]",
3047
+ "hover:bg-[var(--color-success)] hover:text-[var(--color-success-foreground)] hover:shadow-[var(--shadow-hover)]",
3048
+ "active:scale-[var(--active-scale)] active:shadow-[var(--shadow-active)]"
3049
+ ].join(" "),
3050
+ warning: [
3051
+ "bg-[var(--color-surface)] text-[var(--color-warning)]",
3052
+ "border-[length:var(--border-width)] border-[var(--color-warning)]",
3053
+ "shadow-[var(--shadow-sm)]",
3054
+ "hover:bg-[var(--color-warning)] hover:text-[var(--color-warning-foreground)] hover:shadow-[var(--shadow-hover)]",
3055
+ "active:scale-[var(--active-scale)] active:shadow-[var(--shadow-active)]"
3056
+ ].join(" "),
3057
+ // "default" is an alias for secondary
3058
+ default: [
3059
+ "bg-[var(--color-secondary)] text-[var(--color-secondary-foreground)]",
3060
+ "border-[length:var(--border-width-thin)] border-[var(--color-border)]",
3061
+ "hover:bg-[var(--color-secondary-hover)]",
3062
+ "active:scale-[var(--active-scale)]"
3063
+ ].join(" ")
3064
+ };
3065
+ variantStyles2.destructive = variantStyles2.danger;
3066
+ var sizeStyles2 = {
3067
+ sm: "px-3 py-1.5 text-sm",
3068
+ md: "px-4 py-2 text-sm",
3069
+ lg: "px-6 py-3 text-base"
3070
+ };
3071
+ var iconSizeStyles = {
3072
+ sm: "h-3.5 w-3.5",
3073
+ md: "h-4 w-4",
3074
+ lg: "h-5 w-5"
3075
+ };
3076
+ function resolveIconProp(value, sizeClass) {
3077
+ if (!value) return null;
3078
+ if (typeof value === "string") {
3079
+ const Resolved = resolveIcon(value);
3080
+ return Resolved ? /* @__PURE__ */ jsx(Resolved, { className: sizeClass }) : null;
3081
+ }
3082
+ if (typeof value === "function") {
3083
+ const IconComp = value;
3084
+ return /* @__PURE__ */ jsx(IconComp, { className: sizeClass });
3085
+ }
3086
+ if (React5.isValidElement(value)) {
3087
+ return value;
3088
+ }
3089
+ if (typeof value === "object" && value !== null && "render" in value) {
3090
+ const IconComp = value;
3091
+ return /* @__PURE__ */ jsx(IconComp, { className: sizeClass });
3092
+ }
3093
+ return value;
3094
+ }
3095
+ var Button = React5.forwardRef(
3096
+ ({
3097
+ className,
3098
+ variant = "primary",
3099
+ size = "md",
3100
+ isLoading = false,
3101
+ disabled,
3102
+ leftIcon,
3103
+ rightIcon,
3104
+ icon: iconProp,
3105
+ iconRight: iconRightProp,
3106
+ action,
3107
+ actionPayload,
3108
+ label,
3109
+ children,
3110
+ onClick,
3111
+ ...props
3112
+ }, ref) => {
3113
+ const eventBus = useEventBus();
3114
+ const leftIconValue = leftIcon || iconProp;
3115
+ const rightIconValue = rightIcon || iconRightProp;
3116
+ const resolvedLeftIcon = resolveIconProp(leftIconValue, iconSizeStyles[size]);
3117
+ const resolvedRightIcon = resolveIconProp(rightIconValue, iconSizeStyles[size]);
3118
+ const handleClick = (e) => {
3119
+ if (action) {
3120
+ eventBus.emit(`UI:${action}`, actionPayload ?? {});
3121
+ }
3122
+ onClick?.(e);
3123
+ };
3124
+ return /* @__PURE__ */ jsxs(
3125
+ "button",
3126
+ {
3127
+ ref,
3128
+ disabled: disabled || isLoading,
3129
+ className: cn(
3130
+ "inline-flex items-center justify-center gap-2",
3131
+ "font-[var(--font-weight-medium)]",
3132
+ "rounded-[var(--radius-sm)]",
3133
+ "transition-all duration-[var(--transition-normal)]",
3134
+ "focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-[var(--color-ring)] focus:ring-offset-[length:var(--focus-ring-offset)]",
3135
+ "disabled:opacity-50 disabled:cursor-not-allowed",
3136
+ variantStyles2[variant],
3137
+ sizeStyles2[size],
3138
+ className
3139
+ ),
3140
+ onClick: handleClick,
3141
+ ...props,
3142
+ "data-testid": props["data-testid"] ?? (action ? `action-${action}` : void 0),
3143
+ children: [
3144
+ isLoading ? /* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin" }) : resolvedLeftIcon && /* @__PURE__ */ jsx("span", { className: "flex-shrink-0", children: resolvedLeftIcon }),
3145
+ children || label,
3146
+ resolvedRightIcon && !isLoading && /* @__PURE__ */ jsx("span", { className: "flex-shrink-0", children: resolvedRightIcon })
3147
+ ]
3148
+ }
3149
+ );
3150
+ }
3151
+ );
3152
+ Button.displayName = "Button";
3153
+ var variantStyles3 = {
3154
+ default: [
3155
+ "bg-[var(--color-muted)] text-[var(--color-foreground)]",
3156
+ "border-[length:var(--border-width-thin)] border-[var(--color-border)]"
3157
+ ].join(" "),
3158
+ primary: "bg-[var(--color-primary)] text-[var(--color-primary-foreground)]",
3159
+ secondary: "bg-[var(--color-secondary)] text-[var(--color-secondary-foreground)]",
3160
+ success: [
3161
+ "bg-[var(--color-surface)] text-[var(--color-success)]",
3162
+ "border-[length:var(--border-width)] border-[var(--color-success)]"
3163
+ ].join(" "),
3164
+ warning: [
3165
+ "bg-[var(--color-surface)] text-[var(--color-warning)]",
3166
+ "border-[length:var(--border-width)] border-[var(--color-warning)]"
3167
+ ].join(" "),
3168
+ danger: [
3169
+ "bg-[var(--color-surface)] text-[var(--color-error)]",
3170
+ "border-[length:var(--border-width)] border-[var(--color-error)]"
3171
+ ].join(" "),
3172
+ error: [
3173
+ "bg-[var(--color-surface)] text-[var(--color-error)]",
3174
+ "border-[length:var(--border-width)] border-[var(--color-error)]"
3175
+ ].join(" "),
3176
+ info: [
3177
+ "bg-[var(--color-surface)] text-[var(--color-info)]",
3178
+ "border-[length:var(--border-width)] border-[var(--color-info)]"
3179
+ ].join(" "),
3180
+ neutral: [
3181
+ "bg-[var(--color-muted)] text-[var(--color-muted-foreground)]",
3182
+ "border-[length:var(--border-width-thin)] border-[var(--color-border)]"
3183
+ ].join(" ")
3184
+ };
3185
+ var sizeStyles3 = {
3186
+ sm: "px-2 py-0.5 text-xs",
3187
+ md: "px-2.5 py-1 text-sm",
3188
+ lg: "px-3 py-1.5 text-base"
3189
+ };
3190
+ var Badge = React5.forwardRef(
3191
+ ({ className, variant = "default", size = "sm", amount, label, icon, children, ...props }, ref) => {
3192
+ const iconSizes = { sm: "w-3 h-3", md: "w-3.5 h-3.5", lg: "w-4 h-4" };
3193
+ const resolvedIcon = typeof icon === "string" ? (() => {
3194
+ const I = resolveIcon(icon);
3195
+ return I ? /* @__PURE__ */ jsx(I, { className: iconSizes[size] }) : null;
3196
+ })() : icon;
3197
+ return /* @__PURE__ */ jsxs(
3198
+ "span",
3199
+ {
3200
+ ref,
3201
+ className: cn(
3202
+ "inline-flex items-center gap-1 font-bold rounded-[var(--radius-sm)]",
3203
+ variantStyles3[variant],
3204
+ sizeStyles3[size],
3205
+ className
3206
+ ),
3207
+ ...props,
3208
+ children: [
3209
+ resolvedIcon,
3210
+ children || (amount != null ? `${label ? `${label} ` : ""}${amount}` : label)
3211
+ ]
3212
+ }
3213
+ );
3214
+ }
3215
+ );
3216
+ Badge.displayName = "Badge";
3217
+ var variantStyles4 = {
3218
+ default: [
3219
+ "bg-[var(--color-card)] border-none",
3220
+ "transition-all duration-[var(--transition-normal)]",
3221
+ "hover:shadow-[var(--shadow-hover)] hover:-translate-y-0.5"
3222
+ ].join(" "),
3223
+ bordered: [
3224
+ "bg-[var(--color-card)]",
3225
+ "border-[length:var(--border-width)] border-[var(--color-border)]",
3226
+ "shadow-none",
3227
+ "transition-all duration-[var(--transition-normal)]",
3228
+ "hover:shadow-[var(--shadow-hover)] hover:-translate-y-0.5"
3229
+ ].join(" "),
3230
+ elevated: [
3231
+ "bg-[var(--color-card)]",
3232
+ "border-[length:var(--border-width)] border-[var(--color-border)]",
3233
+ "shadow-[var(--shadow-main)]",
3234
+ "transition-all duration-[var(--transition-normal)]",
3235
+ "hover:shadow-[var(--shadow-hover)] hover:-translate-y-0.5"
3236
+ ].join(" "),
3237
+ // Interactive variant with theme-specific hover effects
3238
+ interactive: [
3239
+ "bg-[var(--color-card)]",
3240
+ "border-[length:var(--border-width)] border-[var(--color-border)]",
3241
+ "shadow-[var(--shadow-main)]",
3242
+ "cursor-pointer",
3243
+ "transition-all duration-[var(--transition-normal)]",
3244
+ "hover:shadow-[var(--shadow-hover)]"
3245
+ ].join(" ")
3246
+ };
3247
+ var paddingStyles2 = {
3248
+ none: "",
3249
+ sm: "p-3",
3250
+ md: "p-4",
3251
+ lg: "p-6"
3252
+ };
3253
+ var shadowStyles2 = {
3254
+ none: "shadow-none",
3255
+ sm: "shadow-[var(--shadow-sm)]",
3256
+ md: "shadow-[var(--shadow-main)]",
3257
+ lg: "shadow-[var(--shadow-lg)]"
3258
+ };
3259
+ var Card = React5.forwardRef(
3260
+ ({
3261
+ className,
3262
+ variant = "bordered",
3263
+ padding = "md",
3264
+ title,
3265
+ subtitle,
3266
+ shadow,
3267
+ children,
3268
+ ...props
3269
+ }, ref) => {
3270
+ return /* @__PURE__ */ jsxs(
3271
+ "div",
3272
+ {
3273
+ ref,
3274
+ className: cn(
3275
+ "rounded-[var(--radius-md)]",
3276
+ "transition-all duration-[var(--transition-normal)]",
3277
+ variantStyles4[variant],
3278
+ paddingStyles2[padding],
3279
+ shadow && shadowStyles2[shadow],
3280
+ className
3281
+ ),
3282
+ ...props,
3283
+ children: [
3284
+ (title || subtitle) && /* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
3285
+ title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-[var(--color-card-foreground)] font-[var(--font-weight-bold)]", children: title }),
3286
+ subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-[var(--color-muted-foreground)] mt-1", children: subtitle })
3287
+ ] }),
3288
+ children
3289
+ ]
3290
+ }
3291
+ );
3292
+ }
3293
+ );
3294
+ Card.displayName = "Card";
3295
+ var CardHeader = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("mb-4", className), ...props }));
3296
+ CardHeader.displayName = "CardHeader";
3297
+ var CardTitle = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3298
+ "h3",
3299
+ {
3300
+ ref,
3301
+ className: cn(
3302
+ "text-lg text-[var(--color-card-foreground)]",
3303
+ "font-[var(--font-weight-bold)]",
3304
+ className
3305
+ ),
3306
+ ...props
3307
+ }
3308
+ ));
3309
+ CardTitle.displayName = "CardTitle";
3310
+ var CardContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("", className), ...props }));
3311
+ CardContent.displayName = "CardContent";
3312
+ var CardBody = CardContent;
3313
+ CardBody.displayName = "CardBody";
3314
+ var CardFooter = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
3315
+ "div",
3316
+ {
3317
+ ref,
3318
+ className: cn("mt-4 flex items-center", className),
3319
+ ...props
3320
+ }
3321
+ ));
3322
+ CardFooter.displayName = "CardFooter";
3323
+ var variantStyles5 = {
3324
+ solid: "border-solid",
3325
+ dashed: "border-dashed",
3326
+ dotted: "border-dotted"
3327
+ };
3328
+ var Divider = ({
3329
+ orientation = "horizontal",
3330
+ label,
3331
+ variant = "solid",
3332
+ className
3333
+ }) => {
3334
+ if (orientation === "vertical") {
3335
+ return /* @__PURE__ */ jsx(
3336
+ "div",
3337
+ {
3338
+ className: cn(
3339
+ "w-0 h-full border-l border-[var(--color-border)]",
3340
+ variantStyles5[variant],
3341
+ className
3342
+ ),
3343
+ role: "separator",
3344
+ "aria-orientation": "vertical"
3345
+ }
3346
+ );
3347
+ }
3348
+ if (label) {
3349
+ return /* @__PURE__ */ jsxs(
3350
+ "div",
3351
+ {
3352
+ className: cn("flex items-center gap-3 my-4", className),
3353
+ role: "separator",
3354
+ "aria-label": label,
3355
+ children: [
3356
+ /* @__PURE__ */ jsx(
3357
+ "div",
3358
+ {
3359
+ className: cn(
3360
+ "flex-1 h-0 border-t border-[var(--color-border)]",
3361
+ variantStyles5[variant]
3362
+ )
3363
+ }
3364
+ ),
3365
+ /* @__PURE__ */ jsx("span", { className: "text-sm text-[var(--color-foreground)] font-bold uppercase tracking-wide", children: label }),
3366
+ /* @__PURE__ */ jsx(
3367
+ "div",
3368
+ {
3369
+ className: cn(
3370
+ "flex-1 h-0 border-t border-[var(--color-border)]",
3371
+ variantStyles5[variant]
3372
+ )
3373
+ }
3374
+ )
3375
+ ]
3376
+ }
3377
+ );
3378
+ }
3379
+ return /* @__PURE__ */ jsx(
3380
+ "div",
3381
+ {
3382
+ className: cn(
3383
+ "w-full h-0 border-t border-[var(--color-border)] my-4",
3384
+ variantStyles5[variant],
3385
+ className
3386
+ ),
3387
+ role: "separator",
3388
+ "aria-orientation": "horizontal"
3389
+ }
3390
+ );
3391
+ };
3392
+ Divider.displayName = "Divider";
3393
+ var Center = ({
3394
+ inline = false,
3395
+ horizontal = true,
3396
+ vertical = true,
3397
+ minHeight,
3398
+ fullHeight = false,
3399
+ fullWidth = false,
3400
+ className,
3401
+ style,
3402
+ children,
3403
+ as: Component = "div"
3404
+ }) => {
3405
+ const mergedStyle = minHeight ? { minHeight, ...style } : style;
3406
+ const Comp = Component;
3407
+ return /* @__PURE__ */ jsx(
3408
+ Comp,
3409
+ {
3410
+ className: cn(
3411
+ inline ? "inline-flex" : "flex",
3412
+ horizontal && "justify-center",
3413
+ vertical && "items-center",
3414
+ fullHeight && "h-full",
3415
+ fullWidth && "w-full",
3416
+ className
3417
+ ),
3418
+ style: mergedStyle,
3419
+ children
3420
+ }
3421
+ );
3422
+ };
3423
+ var horizontalSizes = {
3424
+ xs: "w-1",
3425
+ sm: "w-2",
3426
+ md: "w-4",
3427
+ lg: "w-6",
3428
+ xl: "w-8",
3429
+ "2xl": "w-12"
3430
+ };
3431
+ var verticalSizes = {
3432
+ xs: "h-1",
3433
+ sm: "h-2",
3434
+ md: "h-4",
3435
+ lg: "h-6",
3436
+ xl: "h-8",
3437
+ "2xl": "h-12"
3438
+ };
3439
+ var Spacer = ({
3440
+ size = "auto",
3441
+ axis = "horizontal",
3442
+ className
3443
+ }) => {
3444
+ if (size === "auto") {
3445
+ return /* @__PURE__ */ jsx("div", { className: cn("flex-1", className), "aria-hidden": "true" });
3446
+ }
3447
+ const sizeClass = axis === "horizontal" ? horizontalSizes[size] : verticalSizes[size];
3448
+ return /* @__PURE__ */ jsx(
3449
+ "div",
3450
+ {
3451
+ className: cn("flex-shrink-0", sizeClass, className),
3452
+ "aria-hidden": "true"
3453
+ }
3454
+ );
3455
+ };
3456
+ var backgroundClasses = {
3457
+ default: "",
3458
+ alt: "bg-[var(--color-surface)]",
3459
+ dark: "bg-[var(--color-foreground)] text-[var(--color-background)]",
3460
+ gradient: [
3461
+ "bg-gradient-to-b",
3462
+ "from-[var(--color-primary)]/5",
3463
+ "to-[var(--color-secondary)]/5"
3464
+ ].join(" ")
3465
+ };
3466
+ var paddingClasses = {
3467
+ sm: "py-12",
3468
+ md: "py-16",
3469
+ lg: "py-24"
3470
+ };
3471
+ var ContentSection = React5.forwardRef(
3472
+ ({ children, background = "default", padding = "lg", id, className }, ref) => {
3473
+ return /* @__PURE__ */ jsx(
3474
+ Box,
3475
+ {
3476
+ ref,
3477
+ as: "section",
3478
+ id,
3479
+ className: cn(
3480
+ backgroundClasses[background],
3481
+ paddingClasses[padding],
3482
+ className
3483
+ ),
3484
+ children: /* @__PURE__ */ jsx(Box, { className: "mx-auto max-w-7xl px-4 sm:px-6 lg:px-8", children })
3485
+ }
3486
+ );
3487
+ }
3488
+ );
3489
+ ContentSection.displayName = "ContentSection";
3490
+ var InstallBox = ({
3491
+ command,
3492
+ label,
3493
+ className
3494
+ }) => {
3495
+ const [copied, setCopied] = useState(false);
3496
+ const handleCopy = useCallback(() => {
3497
+ void navigator.clipboard.writeText(command);
3498
+ setCopied(true);
3499
+ const timer = setTimeout(() => setCopied(false), 2e3);
3500
+ return () => clearTimeout(timer);
3501
+ }, [command]);
3502
+ return /* @__PURE__ */ jsxs(Box, { className: cn("inline-block", className), children: [
3503
+ label && /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "mb-1", children: label }),
3504
+ /* @__PURE__ */ jsx(
3505
+ Box,
3506
+ {
3507
+ className: cn(
3508
+ "bg-[var(--color-foreground)]",
3509
+ "rounded-[var(--radius-md)]",
3510
+ "border-[length:var(--border-width)] border-[var(--color-border)]"
3511
+ ),
3512
+ padding: "md",
3513
+ children: /* @__PURE__ */ jsxs(HStack, { gap: "md", align: "center", children: [
3514
+ /* @__PURE__ */ jsx(
3515
+ Typography,
3516
+ {
3517
+ variant: "body2",
3518
+ className: "font-mono flex-1 min-w-0 text-[var(--color-background)] select-all",
3519
+ truncate: true,
3520
+ children: command
3521
+ }
3522
+ ),
3523
+ /* @__PURE__ */ jsx(
3524
+ Button,
3525
+ {
3526
+ variant: "ghost",
3527
+ size: "md",
3528
+ onClick: handleCopy,
3529
+ className: "flex-shrink-0 text-[var(--color-background)] hover:text-[var(--color-background)]",
3530
+ children: copied ? "Copied!" : "Copy"
3531
+ }
3532
+ )
3533
+ ] })
3534
+ }
3535
+ )
3536
+ ] });
3537
+ };
3538
+ InstallBox.displayName = "InstallBox";
3539
+ var tagVariantMap = {
3540
+ primary: "primary",
3541
+ secondary: "secondary",
3542
+ accent: "info"
3543
+ };
3544
+ var MarketingImage = ({ src, alt, className }) => /* @__PURE__ */ jsx(
3545
+ Box,
3546
+ {
3547
+ className: cn(
3548
+ "overflow-hidden rounded-[var(--radius-lg)] bg-cover bg-center bg-no-repeat",
3549
+ className
3550
+ ),
3551
+ style: { backgroundImage: `url(${src})` },
3552
+ role: "img",
3553
+ "aria-label": alt
3554
+ }
3555
+ );
3556
+ MarketingImage.displayName = "MarketingImage";
3557
+ var HeroSection = ({
3558
+ tag,
3559
+ tagVariant = "primary",
3560
+ title,
3561
+ titleAccent,
3562
+ subtitle,
3563
+ primaryAction,
3564
+ secondaryAction,
3565
+ installCommand,
3566
+ image,
3567
+ imagePosition = "below",
3568
+ background = "subtle",
3569
+ align = "center",
3570
+ backgroundElement,
3571
+ children,
3572
+ className
3573
+ }) => {
3574
+ const isCenter = align === "center";
3575
+ const isDark = background === "dark";
3576
+ const titleNode = titleAccent ? /* @__PURE__ */ jsxs(
3577
+ Typography,
3578
+ {
3579
+ variant: "h1",
3580
+ align: isCenter ? "center" : "left",
3581
+ className: cn(
3582
+ "max-w-3xl leading-tight",
3583
+ isDark && "text-[var(--color-background)]"
3584
+ ),
3585
+ children: [
3586
+ title,
3587
+ " ",
3588
+ /* @__PURE__ */ jsx(
3589
+ Typography,
3590
+ {
3591
+ as: "span",
3592
+ variant: "h1",
3593
+ className: "text-[var(--color-primary)]",
3594
+ children: titleAccent
3595
+ }
3596
+ )
3597
+ ]
3598
+ }
3599
+ ) : /* @__PURE__ */ jsx(
3600
+ Typography,
3601
+ {
3602
+ variant: "h1",
3603
+ align: isCenter ? "center" : "left",
3604
+ className: cn(
3605
+ "max-w-3xl leading-tight",
3606
+ isDark && "text-[var(--color-background)]"
3607
+ ),
3608
+ children: title
3609
+ }
3610
+ );
3611
+ const textContent = /* @__PURE__ */ jsxs(
3612
+ VStack,
3613
+ {
3614
+ gap: "lg",
3615
+ align: isCenter ? "center" : "start",
3616
+ className: cn(
3617
+ isCenter && "items-center",
3618
+ imagePosition === "right" ? "flex-1" : "w-full"
3619
+ ),
3620
+ children: [
3621
+ tag && /* @__PURE__ */ jsx(Badge, { variant: tagVariantMap[tagVariant] ?? "primary", size: "md", children: tag }),
3622
+ titleNode,
3623
+ /* @__PURE__ */ jsx(
3624
+ Typography,
3625
+ {
3626
+ variant: "body1",
3627
+ color: "muted",
3628
+ align: isCenter ? "center" : "left",
3629
+ className: "max-w-xl",
3630
+ children: subtitle
3631
+ }
3632
+ ),
3633
+ installCommand && /* @__PURE__ */ jsx(InstallBox, { command: installCommand }),
3634
+ (primaryAction || secondaryAction) && /* @__PURE__ */ jsxs(HStack, { gap: "md", align: "center", children: [
3635
+ primaryAction && /* @__PURE__ */ jsx(Button, { variant: "primary", size: "lg", children: primaryAction.label }),
3636
+ secondaryAction && /* @__PURE__ */ jsx(Button, { variant: "secondary", size: "lg", children: secondaryAction.label })
3637
+ ] }),
3638
+ children
3639
+ ]
3640
+ }
3641
+ );
3642
+ const imageNode = image && /* @__PURE__ */ jsx(
3643
+ MarketingImage,
3644
+ {
3645
+ src: image.src,
3646
+ alt: image.alt,
3647
+ className: cn(
3648
+ imagePosition === "right" ? "flex-1 min-h-[300px]" : "w-full max-w-3xl min-h-[400px]"
3649
+ )
3650
+ }
3651
+ );
3652
+ const innerContent = image && imagePosition === "right" ? /* @__PURE__ */ jsxs(HStack, { gap: "xl", align: "center", className: "w-full max-w-6xl", responsive: true, children: [
3653
+ textContent,
3654
+ imageNode
3655
+ ] }) : /* @__PURE__ */ jsxs(VStack, { gap: "xl", align: isCenter ? "center" : "start", className: "w-full max-w-6xl", children: [
3656
+ textContent,
3657
+ image && imagePosition === "below" && imageNode
3658
+ ] });
3659
+ return /* @__PURE__ */ jsxs(
3660
+ Box,
3661
+ {
3662
+ as: "header",
3663
+ className: cn(
3664
+ "w-full min-h-[60vh] flex items-center justify-center",
3665
+ "px-6 py-20",
3666
+ "relative overflow-x-hidden overflow-y-visible",
3667
+ className
3668
+ ),
3669
+ children: [
3670
+ backgroundElement,
3671
+ image && imagePosition === "background" && /* @__PURE__ */ jsx(
3672
+ MarketingImage,
3673
+ {
3674
+ src: image.src,
3675
+ alt: image.alt,
3676
+ className: "absolute inset-0 w-full h-full opacity-20"
3677
+ }
3678
+ ),
3679
+ /* @__PURE__ */ jsx(Box, { className: "relative z-10 w-full flex justify-center", children: innerContent })
3680
+ ]
3681
+ }
3682
+ );
3683
+ };
3684
+ HeroSection.displayName = "HeroSection";
3685
+ var CTABanner = ({
3686
+ title,
3687
+ subtitle,
3688
+ primaryAction,
3689
+ secondaryAction,
3690
+ background = "alt",
3691
+ align = "center",
3692
+ className
3693
+ }) => {
3694
+ const handleAction = (href) => {
3695
+ window.open(href, "_blank", "noopener,noreferrer");
3696
+ };
3697
+ return /* @__PURE__ */ jsx(
3698
+ Box,
3699
+ {
3700
+ className: cn(
3701
+ "py-16 px-4",
3702
+ background === "alt" && "bg-[var(--color-surface)]",
3703
+ background === "dark" && "bg-[var(--color-surface)]",
3704
+ background === "gradient" && "bg-[var(--color-surface)]",
3705
+ background === "primary" && "bg-[var(--color-surface)]",
3706
+ className
3707
+ ),
3708
+ children: /* @__PURE__ */ jsxs(
3709
+ VStack,
3710
+ {
3711
+ gap: "lg",
3712
+ align: align === "center" ? "center" : "start",
3713
+ className: "max-w-3xl mx-auto",
3714
+ children: [
3715
+ /* @__PURE__ */ jsx(Typography, { variant: "h2", align, children: title }),
3716
+ subtitle && /* @__PURE__ */ jsx(Typography, { variant: "body", color: "muted", align, children: subtitle }),
3717
+ (primaryAction || secondaryAction) && /* @__PURE__ */ jsxs(HStack, { gap: "md", align: "center", children: [
3718
+ primaryAction && /* @__PURE__ */ jsx(
3719
+ Button,
3720
+ {
3721
+ variant: "primary",
3722
+ size: "lg",
3723
+ onClick: () => handleAction(primaryAction.href),
3724
+ children: primaryAction.label
3725
+ }
3726
+ ),
3727
+ secondaryAction && /* @__PURE__ */ jsx(
3728
+ Button,
3729
+ {
3730
+ variant: "secondary",
3731
+ size: "lg",
3732
+ onClick: () => handleAction(secondaryAction.href),
3733
+ children: secondaryAction.label
3734
+ }
3735
+ )
3736
+ ] })
3737
+ ]
3738
+ }
3739
+ )
3740
+ }
3741
+ );
3742
+ };
3743
+ CTABanner.displayName = "CTABanner";
3744
+ var iconSizeMap = {
3745
+ sm: "lg",
3746
+ md: "xl",
3747
+ lg: "xl"
3748
+ };
3749
+ var gapMap = {
3750
+ sm: "sm",
3751
+ md: "md",
3752
+ lg: "lg"
3753
+ };
3754
+ var FeatureCard = ({
3755
+ icon,
3756
+ title,
3757
+ description,
3758
+ href,
3759
+ linkLabel = "Learn more",
3760
+ variant = "bordered",
3761
+ size = "md",
3762
+ className
3763
+ }) => {
3764
+ const renderIcon = () => {
3765
+ if (!icon) return null;
3766
+ if (typeof icon === "string") {
3767
+ return /* @__PURE__ */ jsx(
3768
+ Icon,
3769
+ {
3770
+ name: icon,
3771
+ size: iconSizeMap[size],
3772
+ className: "text-[var(--color-primary)]"
3773
+ }
3774
+ );
3775
+ }
3776
+ return icon;
3777
+ };
3778
+ const handleLinkClick = () => {
3779
+ if (href) {
3780
+ window.open(href, "_blank", "noopener,noreferrer");
3781
+ }
3782
+ };
3783
+ return /* @__PURE__ */ jsx(
3784
+ Card,
3785
+ {
3786
+ variant,
3787
+ padding: size,
3788
+ className: cn(
3789
+ variant === "interactive" && "hover:border-[var(--color-primary)]",
3790
+ className
3791
+ ),
3792
+ onClick: variant === "interactive" && href ? handleLinkClick : void 0,
3793
+ children: /* @__PURE__ */ jsxs(VStack, { gap: gapMap[size], align: "start", children: [
3794
+ renderIcon(),
3795
+ /* @__PURE__ */ jsx(Typography, { variant: "h4", className: size === "sm" ? "text-base" : void 0, children: title }),
3796
+ /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "muted", children: description }),
3797
+ href && variant !== "interactive" && /* @__PURE__ */ jsx(
3798
+ Button,
3799
+ {
3800
+ variant: "ghost",
3801
+ size: "sm",
3802
+ onClick: handleLinkClick,
3803
+ className: "text-[var(--color-primary)] -ml-2",
3804
+ children: linkLabel
3805
+ }
3806
+ )
3807
+ ] })
3808
+ }
3809
+ );
3810
+ };
3811
+ FeatureCard.displayName = "FeatureCard";
3812
+ var gapStyles2 = {
3813
+ none: "gap-0",
3814
+ xs: "gap-1",
3815
+ sm: "gap-2",
3816
+ md: "gap-4",
3817
+ lg: "gap-6",
3818
+ xl: "gap-8"
3819
+ };
3820
+ var colStyles = {
3821
+ 1: "grid-cols-1",
3822
+ 2: "grid-cols-1 sm:grid-cols-2",
3823
+ 3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
3824
+ 4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",
3825
+ 5: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5",
3826
+ 6: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6"
3827
+ };
3828
+ var SimpleGrid = ({
3829
+ minChildWidth = 250,
3830
+ maxCols,
3831
+ cols,
3832
+ gap = "md",
3833
+ className,
3834
+ children
3835
+ }) => {
3836
+ if (cols) {
3837
+ return /* @__PURE__ */ jsx("div", { className: cn("grid", colStyles[cols], gapStyles2[gap], className), children });
3838
+ }
3839
+ const minWidth = typeof minChildWidth === "number" ? `${minChildWidth}px` : minChildWidth;
3840
+ const templateColumns = maxCols ? `repeat(auto-fit, minmax(min(${minWidth}, 100%), 1fr))` : `repeat(auto-fit, minmax(${minWidth}, 1fr))`;
3841
+ return /* @__PURE__ */ jsx(
3842
+ "div",
3843
+ {
3844
+ className: cn("grid", gapStyles2[gap], className),
3845
+ style: {
3846
+ gridTemplateColumns: templateColumns,
3847
+ // Limit max columns if specified
3848
+ ...maxCols && { maxWidth: `calc(${maxCols} * (${minWidth} + var(--gap, 1rem)))` }
3849
+ },
3850
+ children
3851
+ }
3852
+ );
3853
+ };
3854
+ SimpleGrid.displayName = "SimpleGrid";
3855
+ var FeatureGrid = ({
3856
+ items,
3857
+ columns = 3,
3858
+ gap = "md",
3859
+ className
3860
+ }) => {
3861
+ return /* @__PURE__ */ jsx(
3862
+ SimpleGrid,
3863
+ {
3864
+ cols: columns,
3865
+ gap,
3866
+ className: cn(className),
3867
+ children: items.map((item, index) => /* @__PURE__ */ jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
3868
+ }
3869
+ );
3870
+ };
3871
+ FeatureGrid.displayName = "FeatureGrid";
3872
+ var PricingCard = ({
3873
+ name,
3874
+ price,
3875
+ description,
3876
+ features,
3877
+ action,
3878
+ highlighted = false,
3879
+ badge,
3880
+ className
3881
+ }) => {
3882
+ return /* @__PURE__ */ jsx(
3883
+ Card,
3884
+ {
3885
+ variant: highlighted ? "elevated" : "bordered",
3886
+ padding: "lg",
3887
+ className: cn(
3888
+ "flex flex-col h-full",
3889
+ "hover:-translate-y-1 transition-all",
3890
+ highlighted && [
3891
+ "border-[length:2px] border-[var(--color-primary)]",
3892
+ "shadow-[var(--shadow-lg)]",
3893
+ "scale-[1.05]",
3894
+ "ring-2 ring-[var(--color-primary)]"
3895
+ ],
3896
+ className
3897
+ ),
3898
+ children: /* @__PURE__ */ jsxs(VStack, { gap: "md", className: "flex-1", children: [
3899
+ badge && /* @__PURE__ */ jsx(Badge, { variant: "primary", size: "sm", children: badge }),
3900
+ /* @__PURE__ */ jsx(Typography, { variant: "h3", children: name }),
3901
+ /* @__PURE__ */ jsx(
3902
+ Typography,
3903
+ {
3904
+ variant: "h2",
3905
+ className: "text-[var(--color-primary)] font-bold",
3906
+ children: price
3907
+ }
3908
+ ),
3909
+ description && /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "muted", children: description }),
3910
+ /* @__PURE__ */ jsx(Divider, {}),
3911
+ /* @__PURE__ */ jsx(VStack, { gap: "sm", children: features.map((feature) => /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "center", children: [
3912
+ /* @__PURE__ */ jsx(
3913
+ Icon,
3914
+ {
3915
+ icon: Check,
3916
+ size: "sm",
3917
+ className: "flex-shrink-0 text-[var(--color-success)]"
3918
+ }
3919
+ ),
3920
+ /* @__PURE__ */ jsx(Typography, { variant: "body2", children: feature })
3921
+ ] }, feature)) }),
3922
+ /* @__PURE__ */ jsx(Spacer, {}),
3923
+ /* @__PURE__ */ jsx(
3924
+ Button,
3925
+ {
3926
+ variant: highlighted ? "primary" : "secondary",
3927
+ size: "lg",
3928
+ className: "w-full",
3929
+ children: action.label
3930
+ }
3931
+ )
3932
+ ] })
3933
+ }
3934
+ );
3935
+ };
3936
+ PricingCard.displayName = "PricingCard";
3937
+ var PricingGrid = ({
3938
+ plans,
3939
+ className
3940
+ }) => {
3941
+ const cols = Math.min(plans.length, 4);
3942
+ return /* @__PURE__ */ jsx(
3943
+ SimpleGrid,
3944
+ {
3945
+ cols: cols > 0 ? cols : 1,
3946
+ gap: "lg",
3947
+ className: cn("items-stretch", className),
3948
+ children: plans.map((plan) => /* @__PURE__ */ jsx(PricingCard, { ...plan }, plan.name))
3949
+ }
3950
+ );
3951
+ };
3952
+ PricingGrid.displayName = "PricingGrid";
3953
+ var SplitSection = ({
3954
+ title,
3955
+ description,
3956
+ bullets,
3957
+ image,
3958
+ imagePosition = "right",
3959
+ background = "default",
3960
+ children,
3961
+ className
3962
+ }) => {
3963
+ const textContent = /* @__PURE__ */ jsxs(VStack, { gap: "md", className: "flex-1 min-w-0", children: [
3964
+ /* @__PURE__ */ jsx(Typography, { variant: "h2", children: title }),
3965
+ typeof description === "string" ? /* @__PURE__ */ jsx(Typography, { variant: "body", color: "muted", children: description }) : description,
3966
+ bullets && bullets.length > 0 && /* @__PURE__ */ jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
3967
+ /* @__PURE__ */ jsx(
3968
+ Icon,
3969
+ {
3970
+ name: "check",
3971
+ size: "sm",
3972
+ className: "text-[var(--color-primary)] flex-shrink-0 mt-0.5"
3973
+ }
3974
+ ),
3975
+ /* @__PURE__ */ jsx(Typography, { variant: "body2", children: bullet })
3976
+ ] }, index)) })
3977
+ ] });
3978
+ const mediaContent = children ?? (image ? /* @__PURE__ */ jsx(
3979
+ Box,
3980
+ {
3981
+ className: cn(
3982
+ "flex-1 min-w-0 min-h-[240px] rounded-[var(--radius-md)]",
3983
+ "bg-cover bg-center"
3984
+ ),
3985
+ style: { backgroundImage: `url(${image.src})` },
3986
+ role: "img",
3987
+ "aria-label": image.alt
3988
+ }
3989
+ ) : null);
3990
+ const isImageLeft = imagePosition === "left";
3991
+ return /* @__PURE__ */ jsx(
3992
+ Box,
3993
+ {
3994
+ className: cn(
3995
+ "w-full",
3996
+ background === "alt" ? "bg-[var(--color-muted)]" : "bg-[var(--color-background)]",
3997
+ className
3998
+ ),
3999
+ padding: "lg",
4000
+ children: /* @__PURE__ */ jsxs(Box, { className: cn("flex flex-col lg:flex-row gap-10 lg:gap-16 items-start", isImageLeft && "lg:flex-row-reverse"), children: [
4001
+ textContent,
4002
+ mediaContent
4003
+ ] })
4004
+ }
4005
+ );
4006
+ };
4007
+ SplitSection.displayName = "SplitSection";
4008
+ var StepCircle = ({ step, index }) => {
4009
+ if (step.icon) {
4010
+ return /* @__PURE__ */ jsx(
4011
+ Center,
4012
+ {
4013
+ className: cn(
4014
+ "w-10 h-10 rounded-full flex-shrink-0",
4015
+ "flex items-center justify-center",
4016
+ "bg-[var(--color-primary)] text-[var(--color-primary-foreground)]"
4017
+ ),
4018
+ children: /* @__PURE__ */ jsx(Icon, { name: step.icon, size: "sm", className: "text-[var(--color-primary-foreground)]" })
4019
+ }
4020
+ );
4021
+ }
4022
+ return /* @__PURE__ */ jsx(
4023
+ Center,
4024
+ {
4025
+ className: cn(
4026
+ "w-10 h-10 rounded-full flex-shrink-0",
4027
+ "flex items-center justify-center",
4028
+ "bg-[var(--color-primary)] text-[var(--color-primary-foreground)]"
4029
+ ),
4030
+ children: /* @__PURE__ */ jsx("span", { className: "font-semibold text-sm text-[var(--color-primary-foreground)] leading-none", children: step.number ?? index + 1 })
4031
+ }
4032
+ );
4033
+ };
4034
+ StepCircle.displayName = "StepCircle";
4035
+ var StepFlow = ({
4036
+ steps,
4037
+ orientation = "horizontal",
4038
+ showConnectors = true,
4039
+ className
4040
+ }) => {
4041
+ if (orientation === "vertical") {
4042
+ return /* @__PURE__ */ jsx(VStack, { gap: "none", className: cn("w-full", className), children: steps.map((step, index) => /* @__PURE__ */ jsx(React5.Fragment, { children: /* @__PURE__ */ jsxs(HStack, { gap: "md", align: "start", className: "w-full", children: [
4043
+ /* @__PURE__ */ jsxs(VStack, { gap: "none", align: "center", children: [
4044
+ /* @__PURE__ */ jsx(StepCircle, { step, index }),
4045
+ showConnectors && index < steps.length - 1 && /* @__PURE__ */ jsx(Box, { className: "w-px h-8 bg-[var(--color-border)]" })
4046
+ ] }),
4047
+ /* @__PURE__ */ jsxs(VStack, { gap: "xs", className: "flex-1 pt-1", children: [
4048
+ /* @__PURE__ */ jsx(Typography, { variant: "h4", children: step.title }),
4049
+ /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "muted", children: step.description })
4050
+ ] })
4051
+ ] }) }, index)) });
4052
+ }
4053
+ return /* @__PURE__ */ jsx(Box, { className: cn("w-full flex flex-col md:flex-row items-start gap-0", className), children: steps.map((step, index) => /* @__PURE__ */ jsxs(React5.Fragment, { children: [
4054
+ /* @__PURE__ */ jsxs(VStack, { gap: "sm", align: "center", className: "flex-1 w-full md:w-auto", children: [
4055
+ /* @__PURE__ */ jsx(StepCircle, { step, index }),
4056
+ /* @__PURE__ */ jsx(Typography, { variant: "h4", className: "text-center", children: step.title }),
4057
+ /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "muted", className: "text-center", children: step.description })
4058
+ ] }),
4059
+ showConnectors && index < steps.length - 1 && /* @__PURE__ */ jsx(Box, { className: "flex-shrink-0 self-center py-2 md:pt-5 md:py-0 md:px-2", children: /* @__PURE__ */ jsx(Divider, { orientation: "horizontal", className: "w-12 md:w-12" }) })
4060
+ ] }, index)) });
4061
+ };
4062
+ StepFlow.displayName = "StepFlow";
4063
+ var StatsGrid = ({
4064
+ stats,
4065
+ columns = 3,
4066
+ className
4067
+ }) => {
4068
+ return /* @__PURE__ */ jsx(SimpleGrid, { cols: columns, gap: "lg", className: cn("w-full", className), children: stats.map((stat) => /* @__PURE__ */ jsxs(VStack, { gap: "xs", align: "center", className: "py-4", children: [
4069
+ /* @__PURE__ */ jsx(
4070
+ Typography,
4071
+ {
4072
+ variant: "h2",
4073
+ className: "font-bold text-[var(--color-primary)]",
4074
+ children: stat.value
4075
+ }
4076
+ ),
4077
+ /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "muted", children: stat.label })
4078
+ ] }, stat.label)) });
4079
+ };
4080
+ StatsGrid.displayName = "StatsGrid";
4081
+ var variantMap = {
4082
+ default: "default",
4083
+ primary: "primary",
4084
+ accent: "info"
4085
+ };
4086
+ function normalizeTags(tags) {
4087
+ if (tags.length === 0) return [];
4088
+ if (typeof tags[0] === "string") {
4089
+ return tags.map((label) => ({ label }));
4090
+ }
4091
+ return tags;
4092
+ }
4093
+ var TagCloud = ({
4094
+ tags,
4095
+ variant = "default",
4096
+ className
4097
+ }) => {
4098
+ const normalizedTags = normalizeTags(tags);
4099
+ return /* @__PURE__ */ jsx(HStack, { gap: "sm", className: cn("flex-wrap justify-center", className), children: normalizedTags.map((tag, index) => {
4100
+ const badgeVariant = tag.variant ? variantMap[tag.variant] ?? "default" : variantMap[variant] ?? "default";
4101
+ return /* @__PURE__ */ jsx(Badge, { variant: badgeVariant, label: tag.label }, index);
4102
+ }) });
4103
+ };
4104
+ TagCloud.displayName = "TagCloud";
4105
+ function formatCount(count) {
4106
+ if (count >= 1e3) {
4107
+ return `${(count / 1e3).toFixed(1)}k`;
4108
+ }
4109
+ return String(count);
4110
+ }
4111
+ var CommunityLinks = ({
4112
+ github,
4113
+ discord,
4114
+ twitter,
4115
+ heading,
4116
+ subtitle,
4117
+ className
4118
+ }) => {
4119
+ const openLink = (url) => () => {
4120
+ window.open(url, "_blank", "noopener,noreferrer");
4121
+ };
4122
+ return /* @__PURE__ */ jsxs(VStack, { gap: "lg", align: "center", className, children: [
4123
+ heading && /* @__PURE__ */ jsx(Typography, { variant: "h2", className: "text-center", children: heading }),
4124
+ subtitle && /* @__PURE__ */ jsx(Typography, { variant: "body", color: "muted", className: "text-center", children: subtitle }),
4125
+ /* @__PURE__ */ jsxs(HStack, { gap: "md", className: "flex-wrap justify-center", children: [
4126
+ github && /* @__PURE__ */ jsx(Button, { variant: "primary", onClick: openLink(github.url), children: /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "center", children: [
4127
+ /* @__PURE__ */ jsx(Icon, { name: "github", size: "sm" }),
4128
+ /* @__PURE__ */ jsx(Typography, { variant: "body2", className: "text-inherit", children: github.stars != null ? `GitHub (${formatCount(github.stars)} stars)` : "GitHub" })
4129
+ ] }) }),
4130
+ discord && /* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: openLink(discord.url), children: /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "center", children: [
4131
+ /* @__PURE__ */ jsx(Icon, { name: "message-circle", size: "sm" }),
4132
+ /* @__PURE__ */ jsx(Typography, { variant: "body2", className: "text-inherit", children: discord.members != null ? `Discord (${formatCount(discord.members)} members)` : "Discord" })
4133
+ ] }) }),
4134
+ twitter && /* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: openLink(twitter.url), children: /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "center", children: [
4135
+ /* @__PURE__ */ jsx(Icon, { name: "twitter", size: "sm" }),
4136
+ /* @__PURE__ */ jsx(Typography, { variant: "body2", className: "text-inherit", children: twitter.followers != null ? `Twitter (${formatCount(twitter.followers)} followers)` : "Twitter" })
4137
+ ] }) })
4138
+ ] })
4139
+ ] });
4140
+ };
4141
+ CommunityLinks.displayName = "CommunityLinks";
4142
+ var ServiceCatalog = ({
4143
+ services,
4144
+ className
4145
+ }) => {
4146
+ return /* @__PURE__ */ jsx(SimpleGrid, { cols: 4, gap: "sm", className: cn(className), children: services.map((service) => /* @__PURE__ */ jsx(Card, { variant: "bordered", padding: "sm", children: /* @__PURE__ */ jsxs(VStack, { gap: "xs", align: "start", children: [
4147
+ /* @__PURE__ */ jsx(
4148
+ Badge,
4149
+ {
4150
+ size: "sm",
4151
+ className: service.layerColor,
4152
+ children: service.layer
4153
+ }
4154
+ ),
4155
+ /* @__PURE__ */ jsx(Typography, { variant: "body", children: service.name })
4156
+ ] }) }, service.name)) });
4157
+ };
4158
+ ServiceCatalog.displayName = "ServiceCatalog";
4159
+ var ShowcaseCard = ({
4160
+ title,
4161
+ description,
4162
+ image,
4163
+ href,
4164
+ badge,
4165
+ accentColor,
4166
+ className
4167
+ }) => {
4168
+ const cardVariant = href ? "interactive" : "bordered";
4169
+ const handleClick = () => {
4170
+ if (href) {
4171
+ window.open(href, "_blank", "noopener,noreferrer");
4172
+ }
4173
+ };
4174
+ return /* @__PURE__ */ jsxs(
4175
+ Card,
4176
+ {
4177
+ variant: cardVariant,
4178
+ padding: "none",
4179
+ className: cn("overflow-hidden w-full", className),
4180
+ style: accentColor ? { borderTopColor: accentColor, borderTopWidth: "3px" } : void 0,
4181
+ onClick: href ? handleClick : void 0,
4182
+ children: [
4183
+ /* @__PURE__ */ jsx(
4184
+ Box,
4185
+ {
4186
+ className: cn(
4187
+ "w-full aspect-video bg-cover bg-center",
4188
+ "rounded-t-[var(--radius-md)]"
4189
+ ),
4190
+ style: { backgroundImage: `url(${image.src})` },
4191
+ role: "img",
4192
+ "aria-label": image.alt
4193
+ }
4194
+ ),
4195
+ /* @__PURE__ */ jsxs(VStack, { gap: "sm", className: "p-4", children: [
4196
+ badge && /* @__PURE__ */ jsx(Badge, { variant: "primary", label: badge }),
4197
+ /* @__PURE__ */ jsx(Typography, { variant: "h3", children: title }),
4198
+ description && /* @__PURE__ */ jsx(Typography, { variant: "body", color: "muted", children: description })
4199
+ ] })
4200
+ ]
4201
+ }
4202
+ );
4203
+ };
4204
+ ShowcaseCard.displayName = "ShowcaseCard";
4205
+ var sizeClasses2 = {
4206
+ xs: "w-6 h-6 text-xs",
4207
+ sm: "w-8 h-8 text-sm",
4208
+ md: "w-10 h-10 text-base",
4209
+ lg: "w-12 h-12 text-lg",
4210
+ xl: "w-16 h-16 text-xl"
4211
+ };
4212
+ var iconSizeClasses = {
4213
+ xs: "w-3 h-3",
4214
+ sm: "w-4 h-4",
4215
+ md: "w-5 h-5",
4216
+ lg: "w-6 h-6",
4217
+ xl: "w-8 h-8"
4218
+ };
4219
+ var statusSizeClasses = {
4220
+ xs: "w-1.5 h-1.5",
4221
+ sm: "w-2 h-2",
4222
+ md: "w-2.5 h-2.5",
4223
+ lg: "w-3 h-3",
4224
+ xl: "w-4 h-4"
4225
+ };
4226
+ var statusClasses = {
4227
+ online: "bg-[var(--color-success)]",
4228
+ offline: "bg-[var(--color-muted-foreground)]",
4229
+ away: "bg-[var(--color-warning)]",
4230
+ busy: "bg-[var(--color-error)]"
4231
+ };
4232
+ var badgeSizeClasses = {
4233
+ xs: "w-3 h-3 text-[8px]",
4234
+ sm: "w-4 h-4 text-[10px]",
4235
+ md: "w-5 h-5 text-xs",
4236
+ lg: "w-6 h-6 text-sm",
4237
+ xl: "w-7 h-7 text-base"
4238
+ };
4239
+ function generateInitials(name) {
4240
+ const parts = name.trim().split(/\s+/);
4241
+ if (parts.length === 1) {
4242
+ return parts[0].substring(0, 2).toUpperCase();
4243
+ }
4244
+ return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase();
4245
+ }
4246
+ var Avatar = ({
4247
+ src,
4248
+ alt,
4249
+ name,
4250
+ initials: providedInitials,
4251
+ icon: Icon2,
4252
+ size = "md",
4253
+ status,
4254
+ badge,
4255
+ className,
4256
+ onClick,
4257
+ action,
4258
+ actionPayload
4259
+ }) => {
4260
+ const eventBus = useEventBus();
4261
+ const initials = providedInitials ?? (name ? generateInitials(name) : void 0);
4262
+ const hasImage = !!src;
4263
+ const hasInitials = !!initials;
4264
+ const hasIcon = !!Icon2;
4265
+ const getInitialsBackground = () => "bg-[var(--color-primary)] text-[var(--color-primary-foreground)]";
4266
+ const isClickable = action || onClick;
4267
+ const handleClick = () => {
4268
+ if (action) {
4269
+ eventBus.emit(`UI:${action}`, actionPayload ?? {});
4270
+ }
4271
+ onClick?.();
4272
+ };
4273
+ return /* @__PURE__ */ jsxs("div", { className: "relative inline-block", children: [
4274
+ /* @__PURE__ */ jsx(
4275
+ "div",
4276
+ {
4277
+ className: cn(
4278
+ "relative inline-flex items-center justify-center",
4279
+ "bg-[var(--color-muted)] border-[length:var(--border-width)] border-[var(--color-border)]",
4280
+ "overflow-hidden",
4281
+ sizeClasses2[size],
4282
+ isClickable && "cursor-pointer hover:bg-[var(--color-surface-hover)] transition-colors",
4283
+ className
4284
+ ),
4285
+ onClick: isClickable ? handleClick : void 0,
4286
+ role: isClickable ? "button" : void 0,
4287
+ tabIndex: isClickable ? 0 : void 0,
4288
+ children: hasImage ? /* @__PURE__ */ jsx(
4289
+ "img",
4290
+ {
4291
+ src,
4292
+ alt: alt || "Avatar",
4293
+ className: "w-full h-full object-cover",
4294
+ onError: (e) => {
4295
+ const target = e.target;
4296
+ target.style.display = "none";
4297
+ }
4298
+ }
4299
+ ) : hasInitials ? /* @__PURE__ */ jsx(
4300
+ "div",
4301
+ {
4302
+ className: cn(
4303
+ "w-full h-full flex items-center justify-center font-bold",
4304
+ getInitialsBackground()
4305
+ ),
4306
+ children: initials.substring(0, 2).toUpperCase()
4307
+ }
4308
+ ) : hasIcon ? /* @__PURE__ */ jsx(
4309
+ Icon2,
4310
+ {
4311
+ className: cn(
4312
+ "text-[var(--color-foreground)]",
4313
+ iconSizeClasses[size]
4314
+ )
4315
+ }
4316
+ ) : /* @__PURE__ */ jsx(
4317
+ User,
4318
+ {
4319
+ className: cn(
4320
+ "text-[var(--color-foreground)]",
4321
+ iconSizeClasses[size]
4322
+ )
4323
+ }
4324
+ )
4325
+ }
4326
+ ),
4327
+ status && /* @__PURE__ */ jsx(
4328
+ "div",
4329
+ {
4330
+ className: cn(
4331
+ "absolute bottom-0 right-0 border-2 border-[var(--color-card)]",
4332
+ statusClasses[status],
4333
+ statusSizeClasses[size]
4334
+ ),
4335
+ "aria-label": `Status: ${status}`
4336
+ }
4337
+ ),
4338
+ badge !== void 0 && /* @__PURE__ */ jsx(
4339
+ "div",
4340
+ {
4341
+ className: cn(
4342
+ "absolute -top-1 -right-1 flex items-center justify-center",
4343
+ "bg-[var(--color-primary)] text-[var(--color-primary-foreground)] font-bold",
4344
+ "border-2 border-[var(--color-card)]",
4345
+ badgeSizeClasses[size]
4346
+ ),
4347
+ "aria-label": `Badge: ${badge}`,
4348
+ children: typeof badge === "number" && badge > 99 ? "99+" : badge
4349
+ }
4350
+ )
4351
+ ] });
4352
+ };
4353
+ Avatar.displayName = "Avatar";
4354
+ var TeamCard = ({
4355
+ name,
4356
+ nameAr,
4357
+ role,
4358
+ bio,
4359
+ avatar,
4360
+ className
4361
+ }) => {
4362
+ const avatarSrc = typeof avatar === "string" ? avatar : void 0;
4363
+ const avatarInitials = typeof avatar === "object" && avatar !== null ? avatar.initials : void 0;
4364
+ return /* @__PURE__ */ jsx(Card, { variant: "bordered", padding: "lg", className: cn("w-full", className), children: /* @__PURE__ */ jsxs(VStack, { gap: "md", align: "center", children: [
4365
+ /* @__PURE__ */ jsx(
4366
+ Avatar,
4367
+ {
4368
+ src: avatarSrc,
4369
+ initials: avatarInitials,
4370
+ name: !avatarSrc && !avatarInitials ? name : void 0,
4371
+ size: "lg"
4372
+ }
4373
+ ),
4374
+ /* @__PURE__ */ jsx(Typography, { variant: "h3", className: "text-center", children: name }),
4375
+ nameAr && /* @__PURE__ */ jsx(Box, { className: "text-center", style: { direction: "rtl" }, children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: nameAr }) }),
4376
+ /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "muted", className: "text-center", children: role }),
4377
+ /* @__PURE__ */ jsx(Typography, { variant: "body", className: "text-center", children: bio })
4378
+ ] }) });
4379
+ };
4380
+ TeamCard.displayName = "TeamCard";
4381
+ var CaseStudyCard = ({
4382
+ title,
4383
+ description,
4384
+ category,
4385
+ categoryColor,
4386
+ href,
4387
+ linkLabel = "Read more",
4388
+ className
4389
+ }) => {
4390
+ const handleClick = () => {
4391
+ window.open(href, "_blank", "noopener,noreferrer");
4392
+ };
4393
+ return /* @__PURE__ */ jsx(Card, { variant: "interactive", className: cn(className), children: /* @__PURE__ */ jsxs(VStack, { gap: "md", align: "start", children: [
4394
+ /* @__PURE__ */ jsx(
4395
+ Badge,
4396
+ {
4397
+ size: "sm",
4398
+ style: categoryColor ? { backgroundColor: categoryColor, color: "white" } : void 0,
4399
+ children: category
4400
+ }
4401
+ ),
4402
+ /* @__PURE__ */ jsx(Typography, { variant: "h3", children: title }),
4403
+ /* @__PURE__ */ jsx(Typography, { variant: "body", color: "muted", children: description }),
4404
+ /* @__PURE__ */ jsxs(
4405
+ Button,
4406
+ {
4407
+ variant: "ghost",
4408
+ size: "sm",
4409
+ onClick: handleClick,
4410
+ className: "text-[var(--color-primary)] -ml-2",
4411
+ children: [
4412
+ linkLabel,
4413
+ " \u2192"
4414
+ ]
4415
+ }
4416
+ )
4417
+ ] }) });
4418
+ };
4419
+ CaseStudyCard.displayName = "CaseStudyCard";
4420
+ var maxWidthMap = {
4421
+ sm: "max-w-2xl",
4422
+ md: "max-w-3xl",
4423
+ lg: "max-w-4xl"
4424
+ };
4425
+ var ArticleSection = ({
4426
+ title,
4427
+ children,
4428
+ maxWidth = "md",
4429
+ className
4430
+ }) => {
4431
+ return /* @__PURE__ */ jsx(
4432
+ Box,
4433
+ {
4434
+ className: cn(
4435
+ maxWidthMap[maxWidth],
4436
+ "mx-auto",
4437
+ className
4438
+ ),
4439
+ padding: "md",
4440
+ children: /* @__PURE__ */ jsxs(VStack, { gap: "lg", align: "start", children: [
4441
+ /* @__PURE__ */ jsx(Typography, { variant: "h2", children: title }),
4442
+ /* @__PURE__ */ jsx(Box, { className: "w-full", children })
4443
+ ] })
4444
+ }
4445
+ );
4446
+ };
4447
+ ArticleSection.displayName = "ArticleSection";
4448
+ var MarketingFooter = ({
4449
+ columns,
4450
+ copyright,
4451
+ logo,
4452
+ className
4453
+ }) => {
4454
+ return /* @__PURE__ */ jsx(
4455
+ Box,
4456
+ {
4457
+ as: "footer",
4458
+ className: cn(
4459
+ "bg-[var(--color-foreground)] text-[var(--color-background)]",
4460
+ "border-t border-[var(--color-border)]",
4461
+ "pt-12 pb-8 px-4",
4462
+ className
4463
+ ),
4464
+ children: /* @__PURE__ */ jsxs(VStack, { gap: "lg", className: "max-w-6xl mx-auto", children: [
4465
+ /* @__PURE__ */ jsxs(HStack, { gap: "lg", align: "start", className: "flex-wrap w-full justify-between", children: [
4466
+ logo && /* @__PURE__ */ jsx(VStack, { gap: "sm", className: "min-w-[140px] mb-4", children: logo.href ? /* @__PURE__ */ jsx("a", { href: logo.href, children: /* @__PURE__ */ jsx("img", { src: logo.src, alt: logo.alt, className: "h-8 w-auto" }) }) : /* @__PURE__ */ jsx("img", { src: logo.src, alt: logo.alt, className: "h-8 w-auto" }) }),
4467
+ columns.map((col) => /* @__PURE__ */ jsxs(VStack, { gap: "sm", className: "min-w-[140px] mb-4", children: [
4468
+ /* @__PURE__ */ jsx(
4469
+ Typography,
4470
+ {
4471
+ variant: "body2",
4472
+ className: "font-semibold text-[var(--color-background)] mb-1",
4473
+ children: col.title
4474
+ }
4475
+ ),
4476
+ col.items.map((item) => /* @__PURE__ */ jsx(
4477
+ "a",
4478
+ {
4479
+ href: item.href,
4480
+ className: cn(
4481
+ "text-sm no-underline",
4482
+ "text-[var(--color-background)]/60",
4483
+ "hover:text-[var(--color-background)]",
4484
+ "transition-colors duration-150"
4485
+ ),
4486
+ target: item.href.startsWith("http") ? "_blank" : void 0,
4487
+ rel: item.href.startsWith("http") ? "noopener noreferrer" : void 0,
4488
+ children: item.label
4489
+ },
4490
+ item.label
4491
+ ))
4492
+ ] }, col.title))
4493
+ ] }),
4494
+ copyright && /* @__PURE__ */ jsx(
4495
+ Typography,
4496
+ {
4497
+ variant: "caption",
4498
+ className: "text-[var(--color-background)]/30 text-center w-full pt-6",
4499
+ children: copyright
4500
+ }
4501
+ )
4502
+ ] })
4503
+ }
4504
+ );
4505
+ };
4506
+ MarketingFooter.displayName = "MarketingFooter";
4507
+ var GradientDivider = ({
4508
+ color,
4509
+ className
4510
+ }) => {
4511
+ const centerColor = color ?? "var(--color-primary)";
4512
+ return /* @__PURE__ */ jsx(
4513
+ Box,
4514
+ {
4515
+ className: cn("w-full h-px", className),
4516
+ style: {
4517
+ background: `linear-gradient(to right, transparent, ${centerColor}, transparent)`
4518
+ }
4519
+ }
4520
+ );
4521
+ };
4522
+ GradientDivider.displayName = "GradientDivider";
4523
+ var PullQuote = ({
4524
+ children,
4525
+ className
4526
+ }) => {
4527
+ return /* @__PURE__ */ jsx(
4528
+ Box,
4529
+ {
4530
+ className: cn(
4531
+ "border-l-4 border-l-[var(--color-primary)]",
4532
+ "pl-6 py-2 my-6",
4533
+ className
4534
+ ),
4535
+ children: /* @__PURE__ */ jsx(
4536
+ Typography,
4537
+ {
4538
+ variant: "large",
4539
+ className: "italic text-[var(--color-foreground)] opacity-90",
4540
+ children
4541
+ }
4542
+ )
4543
+ }
4544
+ );
4545
+ };
4546
+ PullQuote.displayName = "PullQuote";
4547
+ function parseValue(value) {
4548
+ const match = value.match(/^([^0-9]*)([0-9]+(?:\.[0-9]+)?)(.*)$/);
4549
+ if (!match) {
4550
+ return { num: 0, prefix: "", suffix: value, decimals: 0 };
4551
+ }
4552
+ const numStr = match[2];
4553
+ const decimalIdx = numStr.indexOf(".");
4554
+ const decimals = decimalIdx >= 0 ? numStr.length - decimalIdx - 1 : 0;
4555
+ return {
4556
+ prefix: match[1],
4557
+ num: parseFloat(numStr),
4558
+ suffix: match[3],
4559
+ decimals
4560
+ };
4561
+ }
4562
+ var AnimatedCounter = ({
4563
+ value,
4564
+ label,
4565
+ duration = 1500,
4566
+ className
4567
+ }) => {
4568
+ const ref = useRef(null);
4569
+ const [displayValue, setDisplayValue] = useState("0");
4570
+ const [hasAnimated, setHasAnimated] = useState(false);
4571
+ const animate = useCallback(() => {
4572
+ const { num, prefix, suffix, decimals } = parseValue(value);
4573
+ if (num === 0) {
4574
+ setDisplayValue(value);
4575
+ return;
4576
+ }
4577
+ const startTime = performance.now();
4578
+ const tick = (now) => {
4579
+ const elapsed = now - startTime;
4580
+ const progress = Math.min(elapsed / duration, 1);
4581
+ const eased = 1 - Math.pow(1 - progress, 3);
4582
+ const current = eased * num;
4583
+ setDisplayValue(`${prefix}${current.toFixed(decimals)}${suffix}`);
4584
+ if (progress < 1) {
4585
+ requestAnimationFrame(tick);
4586
+ } else {
4587
+ setDisplayValue(value);
4588
+ }
4589
+ };
4590
+ requestAnimationFrame(tick);
4591
+ }, [value, duration]);
4592
+ useEffect(() => {
4593
+ if (hasAnimated) return;
4594
+ const el = ref.current;
4595
+ if (!el) return;
4596
+ const observer = new IntersectionObserver(
4597
+ (entries) => {
4598
+ if (entries[0].isIntersecting) {
4599
+ setHasAnimated(true);
4600
+ animate();
4601
+ observer.disconnect();
4602
+ }
4603
+ },
4604
+ { threshold: 0.3 }
4605
+ );
4606
+ observer.observe(el);
4607
+ return () => observer.disconnect();
4608
+ }, [hasAnimated, animate]);
4609
+ return /* @__PURE__ */ jsxs(Box, { ref, className: cn("flex flex-col items-center gap-1 p-4", className), children: [
4610
+ /* @__PURE__ */ jsx(
4611
+ Typography,
4612
+ {
4613
+ variant: "h2",
4614
+ className: "text-[var(--color-primary)] font-bold tabular-nums",
4615
+ children: hasAnimated ? displayValue : "0"
4616
+ }
4617
+ ),
4618
+ /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "muted", className: "text-center", children: label })
4619
+ ] });
4620
+ };
4621
+ AnimatedCounter.displayName = "AnimatedCounter";
4622
+
4623
+ export { AnimatedCounter, ArticleSection, Badge, Box, Button, CTABanner, Card, CaseStudyCard, Center, CommunityLinks, ContentSection, Divider, FeatureCard, FeatureGrid, GradientDivider, HStack, HeroSection, Icon, InstallBox, MarketingFooter, PricingCard, PricingGrid, PullQuote, ServiceCatalog, ShowcaseCard, SimpleGrid, Spacer, SplitSection, StatsGrid, StepFlow, TagCloud, TeamCard, Typography, VStack };