@spark-ui/components 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE.md +21 -0
  3. package/README.md +19 -0
  4. package/dist/DialogTrigger-5SI4dvpK.d.mts +142 -0
  5. package/dist/DialogTrigger-5SI4dvpK.d.ts +142 -0
  6. package/dist/Input-g0LpWuv0.d.mts +17 -0
  7. package/dist/Input-g0LpWuv0.d.ts +17 -0
  8. package/dist/InputGroup-aoaZxCLk.d.mts +28 -0
  9. package/dist/InputGroup-aoaZxCLk.d.ts +28 -0
  10. package/dist/InputTrailingIcon-BBp7sE6D.d.mts +20 -0
  11. package/dist/InputTrailingIcon-ZZx8PoJy.d.ts +20 -0
  12. package/dist/LabelRequiredIndicator-DRnCzHMU.d.mts +19 -0
  13. package/dist/LabelRequiredIndicator-DRnCzHMU.d.ts +19 -0
  14. package/dist/accordion/index.d.mts +85 -0
  15. package/dist/accordion/index.d.ts +85 -0
  16. package/dist/accordion/index.js +461 -0
  17. package/dist/accordion/index.js.map +1 -0
  18. package/dist/accordion/index.mjs +249 -0
  19. package/dist/accordion/index.mjs.map +1 -0
  20. package/dist/alert-dialog/index.d.mts +119 -0
  21. package/dist/alert-dialog/index.d.ts +119 -0
  22. package/dist/alert-dialog/index.js +1451 -0
  23. package/dist/alert-dialog/index.js.map +1 -0
  24. package/dist/alert-dialog/index.mjs +177 -0
  25. package/dist/alert-dialog/index.mjs.map +1 -0
  26. package/dist/badge/index.d.mts +47 -0
  27. package/dist/badge/index.d.ts +47 -0
  28. package/dist/badge/index.js +122 -0
  29. package/dist/badge/index.js.map +1 -0
  30. package/dist/badge/index.mjs +95 -0
  31. package/dist/badge/index.mjs.map +1 -0
  32. package/dist/breadcrumb/index.d.mts +64 -0
  33. package/dist/breadcrumb/index.d.ts +64 -0
  34. package/dist/breadcrumb/index.js +326 -0
  35. package/dist/breadcrumb/index.js.map +1 -0
  36. package/dist/breadcrumb/index.mjs +149 -0
  37. package/dist/breadcrumb/index.mjs.map +1 -0
  38. package/dist/button/index.d.mts +40 -0
  39. package/dist/button/index.d.ts +40 -0
  40. package/dist/button/index.js +877 -0
  41. package/dist/button/index.js.map +1 -0
  42. package/dist/button/index.mjs +10 -0
  43. package/dist/button/index.mjs.map +1 -0
  44. package/dist/carousel/index.d.mts +253 -0
  45. package/dist/carousel/index.d.ts +253 -0
  46. package/dist/carousel/index.js +1678 -0
  47. package/dist/carousel/index.js.map +1 -0
  48. package/dist/carousel/index.mjs +716 -0
  49. package/dist/carousel/index.mjs.map +1 -0
  50. package/dist/checkbox/index.d.mts +120 -0
  51. package/dist/checkbox/index.d.ts +120 -0
  52. package/dist/checkbox/index.js +873 -0
  53. package/dist/checkbox/index.js.map +1 -0
  54. package/dist/checkbox/index.mjs +349 -0
  55. package/dist/checkbox/index.mjs.map +1 -0
  56. package/dist/chip/index.d.mts +97 -0
  57. package/dist/chip/index.d.ts +97 -0
  58. package/dist/chip/index.js +905 -0
  59. package/dist/chip/index.js.map +1 -0
  60. package/dist/chip/index.mjs +793 -0
  61. package/dist/chip/index.mjs.map +1 -0
  62. package/dist/chunk-2KPFQEAA.mjs +52 -0
  63. package/dist/chunk-2KPFQEAA.mjs.map +1 -0
  64. package/dist/chunk-4F5DOL57.mjs +26 -0
  65. package/dist/chunk-4F5DOL57.mjs.map +1 -0
  66. package/dist/chunk-6JOA37TZ.mjs +742 -0
  67. package/dist/chunk-6JOA37TZ.mjs.map +1 -0
  68. package/dist/chunk-7PMPYEHJ.mjs +379 -0
  69. package/dist/chunk-7PMPYEHJ.mjs.map +1 -0
  70. package/dist/chunk-AESXFMCC.mjs +68 -0
  71. package/dist/chunk-AESXFMCC.mjs.map +1 -0
  72. package/dist/chunk-B42LOFIZ.mjs +308 -0
  73. package/dist/chunk-B42LOFIZ.mjs.map +1 -0
  74. package/dist/chunk-FGOZHKBT.mjs +97 -0
  75. package/dist/chunk-FGOZHKBT.mjs.map +1 -0
  76. package/dist/chunk-HLXYG643.mjs +52 -0
  77. package/dist/chunk-HLXYG643.mjs.map +1 -0
  78. package/dist/chunk-JKNBJHD5.mjs +601 -0
  79. package/dist/chunk-JKNBJHD5.mjs.map +1 -0
  80. package/dist/chunk-K7VP7DH3.mjs +66 -0
  81. package/dist/chunk-K7VP7DH3.mjs.map +1 -0
  82. package/dist/chunk-MUNDKRAE.mjs +80 -0
  83. package/dist/chunk-MUNDKRAE.mjs.map +1 -0
  84. package/dist/chunk-NBZKMCHF.mjs +36 -0
  85. package/dist/chunk-NBZKMCHF.mjs.map +1 -0
  86. package/dist/chunk-PZWESKAR.mjs +314 -0
  87. package/dist/chunk-PZWESKAR.mjs.map +1 -0
  88. package/dist/collapsible/index.d.mts +60 -0
  89. package/dist/collapsible/index.d.ts +60 -0
  90. package/dist/collapsible/index.js +140 -0
  91. package/dist/collapsible/index.js.map +1 -0
  92. package/dist/collapsible/index.mjs +8 -0
  93. package/dist/collapsible/index.mjs.map +1 -0
  94. package/dist/combobox/index.d.mts +285 -0
  95. package/dist/combobox/index.d.ts +285 -0
  96. package/dist/combobox/index.js +2920 -0
  97. package/dist/combobox/index.js.map +1 -0
  98. package/dist/combobox/index.mjs +1267 -0
  99. package/dist/combobox/index.mjs.map +1 -0
  100. package/dist/dialog/index.d.mts +33 -0
  101. package/dist/dialog/index.d.ts +33 -0
  102. package/dist/dialog/index.js +1286 -0
  103. package/dist/dialog/index.js.map +1 -0
  104. package/dist/dialog/index.mjs +13 -0
  105. package/dist/dialog/index.mjs.map +1 -0
  106. package/dist/divider/index.d.mts +61 -0
  107. package/dist/divider/index.d.ts +61 -0
  108. package/dist/divider/index.js +223 -0
  109. package/dist/divider/index.js.map +1 -0
  110. package/dist/divider/index.mjs +196 -0
  111. package/dist/divider/index.mjs.map +1 -0
  112. package/dist/drawer/index.d.mts +148 -0
  113. package/dist/drawer/index.d.ts +148 -0
  114. package/dist/drawer/index.js +1266 -0
  115. package/dist/drawer/index.js.map +1 -0
  116. package/dist/drawer/index.mjs +299 -0
  117. package/dist/drawer/index.mjs.map +1 -0
  118. package/dist/dropdown/index.d.mts +233 -0
  119. package/dist/dropdown/index.d.ts +233 -0
  120. package/dist/dropdown/index.js +2402 -0
  121. package/dist/dropdown/index.js.map +1 -0
  122. package/dist/dropdown/index.mjs +741 -0
  123. package/dist/dropdown/index.mjs.map +1 -0
  124. package/dist/form-field/index.d.mts +176 -0
  125. package/dist/form-field/index.d.ts +176 -0
  126. package/dist/form-field/index.js +540 -0
  127. package/dist/form-field/index.js.map +1 -0
  128. package/dist/form-field/index.mjs +13 -0
  129. package/dist/form-field/index.mjs.map +1 -0
  130. package/dist/icon/index.d.mts +28 -0
  131. package/dist/icon/index.d.ts +28 -0
  132. package/dist/icon/index.js +127 -0
  133. package/dist/icon/index.js.map +1 -0
  134. package/dist/icon/index.mjs +9 -0
  135. package/dist/icon/index.mjs.map +1 -0
  136. package/dist/icon-button/index.d.mts +16 -0
  137. package/dist/icon-button/index.d.ts +16 -0
  138. package/dist/icon-button/index.js +921 -0
  139. package/dist/icon-button/index.js.map +1 -0
  140. package/dist/icon-button/index.mjs +11 -0
  141. package/dist/icon-button/index.mjs.map +1 -0
  142. package/dist/input/index.d.mts +78 -0
  143. package/dist/input/index.d.ts +78 -0
  144. package/dist/input/index.js +1119 -0
  145. package/dist/input/index.js.map +1 -0
  146. package/dist/input/index.mjs +16 -0
  147. package/dist/input/index.mjs.map +1 -0
  148. package/dist/kbd/index.d.mts +9 -0
  149. package/dist/kbd/index.d.ts +9 -0
  150. package/dist/kbd/index.js +46 -0
  151. package/dist/kbd/index.js.map +1 -0
  152. package/dist/kbd/index.mjs +19 -0
  153. package/dist/kbd/index.mjs.map +1 -0
  154. package/dist/label/index.d.mts +11 -0
  155. package/dist/label/index.d.ts +11 -0
  156. package/dist/label/index.js +78 -0
  157. package/dist/label/index.js.map +1 -0
  158. package/dist/label/index.mjs +7 -0
  159. package/dist/label/index.mjs.map +1 -0
  160. package/dist/link-box/index.d.mts +34 -0
  161. package/dist/link-box/index.d.ts +34 -0
  162. package/dist/link-box/index.js +92 -0
  163. package/dist/link-box/index.js.map +1 -0
  164. package/dist/link-box/index.mjs +58 -0
  165. package/dist/link-box/index.mjs.map +1 -0
  166. package/dist/pagination/index.d.mts +143 -0
  167. package/dist/pagination/index.d.ts +143 -0
  168. package/dist/pagination/index.js +1303 -0
  169. package/dist/pagination/index.js.map +1 -0
  170. package/dist/pagination/index.mjs +326 -0
  171. package/dist/pagination/index.mjs.map +1 -0
  172. package/dist/popover/index.d.mts +93 -0
  173. package/dist/popover/index.d.ts +93 -0
  174. package/dist/popover/index.js +1280 -0
  175. package/dist/popover/index.js.map +1 -0
  176. package/dist/popover/index.mjs +13 -0
  177. package/dist/popover/index.mjs.map +1 -0
  178. package/dist/portal/index.d.mts +13 -0
  179. package/dist/portal/index.d.ts +13 -0
  180. package/dist/portal/index.js +37 -0
  181. package/dist/portal/index.js.map +1 -0
  182. package/dist/portal/index.mjs +10 -0
  183. package/dist/portal/index.mjs.map +1 -0
  184. package/dist/progress/index.d.mts +48 -0
  185. package/dist/progress/index.d.ts +48 -0
  186. package/dist/progress/index.js +201 -0
  187. package/dist/progress/index.js.map +1 -0
  188. package/dist/progress/index.mjs +174 -0
  189. package/dist/progress/index.mjs.map +1 -0
  190. package/dist/progress-tracker/index.d.mts +81 -0
  191. package/dist/progress-tracker/index.d.ts +81 -0
  192. package/dist/progress-tracker/index.js +834 -0
  193. package/dist/progress-tracker/index.js.map +1 -0
  194. package/dist/progress-tracker/index.mjs +716 -0
  195. package/dist/progress-tracker/index.mjs.map +1 -0
  196. package/dist/radio-group/index.d.mts +100 -0
  197. package/dist/radio-group/index.d.ts +100 -0
  198. package/dist/radio-group/index.js +824 -0
  199. package/dist/radio-group/index.js.map +1 -0
  200. package/dist/radio-group/index.mjs +297 -0
  201. package/dist/radio-group/index.mjs.map +1 -0
  202. package/dist/rating/index.d.mts +78 -0
  203. package/dist/rating/index.d.ts +78 -0
  204. package/dist/rating/index.js +362 -0
  205. package/dist/rating/index.js.map +1 -0
  206. package/dist/rating/index.mjs +247 -0
  207. package/dist/rating/index.mjs.map +1 -0
  208. package/dist/scrolling-list/index.d.mts +105 -0
  209. package/dist/scrolling-list/index.d.ts +105 -0
  210. package/dist/scrolling-list/index.js +1367 -0
  211. package/dist/scrolling-list/index.js.map +1 -0
  212. package/dist/scrolling-list/index.mjs +407 -0
  213. package/dist/scrolling-list/index.mjs.map +1 -0
  214. package/dist/select/index.d.mts +167 -0
  215. package/dist/select/index.d.ts +167 -0
  216. package/dist/select/index.js +991 -0
  217. package/dist/select/index.js.map +1 -0
  218. package/dist/select/index.mjs +470 -0
  219. package/dist/select/index.mjs.map +1 -0
  220. package/dist/skeleton/index.d.mts +67 -0
  221. package/dist/skeleton/index.d.ts +67 -0
  222. package/dist/skeleton/index.js +206 -0
  223. package/dist/skeleton/index.js.map +1 -0
  224. package/dist/skeleton/index.mjs +147 -0
  225. package/dist/skeleton/index.mjs.map +1 -0
  226. package/dist/slider/index.d.mts +97 -0
  227. package/dist/slider/index.d.ts +97 -0
  228. package/dist/slider/index.js +209 -0
  229. package/dist/slider/index.js.map +1 -0
  230. package/dist/slider/index.mjs +182 -0
  231. package/dist/slider/index.mjs.map +1 -0
  232. package/dist/slot/index.d.mts +17 -0
  233. package/dist/slot/index.d.ts +17 -0
  234. package/dist/slot/index.js +51 -0
  235. package/dist/slot/index.js.map +1 -0
  236. package/dist/slot/index.mjs +11 -0
  237. package/dist/slot/index.mjs.map +1 -0
  238. package/dist/snackbar/index.d.mts +158 -0
  239. package/dist/snackbar/index.d.ts +158 -0
  240. package/dist/snackbar/index.js +1693 -0
  241. package/dist/snackbar/index.js.map +1 -0
  242. package/dist/snackbar/index.mjs +733 -0
  243. package/dist/snackbar/index.mjs.map +1 -0
  244. package/dist/spinner/index.d.mts +21 -0
  245. package/dist/spinner/index.d.ts +21 -0
  246. package/dist/spinner/index.js +139 -0
  247. package/dist/spinner/index.js.map +1 -0
  248. package/dist/spinner/index.mjs +9 -0
  249. package/dist/spinner/index.mjs.map +1 -0
  250. package/dist/stepper/index.d.mts +82 -0
  251. package/dist/stepper/index.d.ts +82 -0
  252. package/dist/stepper/index.js +2178 -0
  253. package/dist/stepper/index.js.map +1 -0
  254. package/dist/stepper/index.mjs +229 -0
  255. package/dist/stepper/index.mjs.map +1 -0
  256. package/dist/switch/index.d.mts +64 -0
  257. package/dist/switch/index.d.ts +64 -0
  258. package/dist/switch/index.js +768 -0
  259. package/dist/switch/index.js.map +1 -0
  260. package/dist/switch/index.mjs +245 -0
  261. package/dist/switch/index.mjs.map +1 -0
  262. package/dist/tabs/index.d.mts +103 -0
  263. package/dist/tabs/index.d.ts +103 -0
  264. package/dist/tabs/index.js +1315 -0
  265. package/dist/tabs/index.js.map +1 -0
  266. package/dist/tabs/index.mjs +391 -0
  267. package/dist/tabs/index.mjs.map +1 -0
  268. package/dist/tag/index.d.mts +27 -0
  269. package/dist/tag/index.d.ts +27 -0
  270. package/dist/tag/index.js +269 -0
  271. package/dist/tag/index.js.map +1 -0
  272. package/dist/tag/index.mjs +237 -0
  273. package/dist/tag/index.mjs.map +1 -0
  274. package/dist/text-link/index.d.mts +20 -0
  275. package/dist/text-link/index.d.ts +20 -0
  276. package/dist/text-link/index.js +99 -0
  277. package/dist/text-link/index.js.map +1 -0
  278. package/dist/text-link/index.mjs +8 -0
  279. package/dist/text-link/index.mjs.map +1 -0
  280. package/dist/textarea/index.d.mts +47 -0
  281. package/dist/textarea/index.d.ts +47 -0
  282. package/dist/textarea/index.js +1180 -0
  283. package/dist/textarea/index.js.map +1 -0
  284. package/dist/textarea/index.mjs +77 -0
  285. package/dist/textarea/index.mjs.map +1 -0
  286. package/dist/visually-hidden/index.d.mts +16 -0
  287. package/dist/visually-hidden/index.d.ts +16 -0
  288. package/dist/visually-hidden/index.js +67 -0
  289. package/dist/visually-hidden/index.js.map +1 -0
  290. package/dist/visually-hidden/index.mjs +8 -0
  291. package/dist/visually-hidden/index.mjs.map +1 -0
  292. package/global.d.ts +12 -0
  293. package/package.json +75 -0
  294. package/tsconfig.build.json +9 -0
  295. package/tsconfig.json +9 -0
  296. package/tsup.config.ts +11 -0
@@ -0,0 +1,834 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/progress-tracker/index.ts
21
+ var progress_tracker_exports = {};
22
+ __export(progress_tracker_exports, {
23
+ ProgressTracker: () => ProgressTracker2
24
+ });
25
+ module.exports = __toCommonJS(progress_tracker_exports);
26
+
27
+ // src/progress-tracker/ProgressTracker.tsx
28
+ var import_class_variance_authority2 = require("class-variance-authority");
29
+ var import_react2 = require("react");
30
+
31
+ // src/progress-tracker/ProgressTracker.styles.ts
32
+ var import_class_variance_authority = require("class-variance-authority");
33
+ var progressList = (0, import_class_variance_authority.cx)([
34
+ "flex flex-nowrap items-start group/list",
35
+ "data-[orientation=horizontal]:flex-row data-[orientation=horizontal]:w-full",
36
+ "data-[orientation=vertical]:flex-col"
37
+ ]);
38
+
39
+ // src/progress-tracker/ProgressTrackerContext.ts
40
+ var import_react = require("react");
41
+ var ProgressTrackerContext = (0, import_react.createContext)(
42
+ {}
43
+ );
44
+ var ProgressTrackerStepContext = (0, import_react.createContext)(
45
+ {}
46
+ );
47
+ var useProgressTrackerContext = () => (0, import_react.useContext)(ProgressTrackerContext);
48
+ var useProgressTrackerStepContext = () => (0, import_react.useContext)(ProgressTrackerStepContext);
49
+ var ID_PREFIX = ":progress-tracker";
50
+
51
+ // src/progress-tracker/ProgressTracker.tsx
52
+ var import_jsx_runtime = require("react/jsx-runtime");
53
+ var ProgressTracker = ({
54
+ stepIndex = 0,
55
+ onStepClick,
56
+ readOnly = false,
57
+ intent = "basic",
58
+ size = "lg",
59
+ design = "outline",
60
+ orientation = "horizontal",
61
+ children,
62
+ className,
63
+ ref,
64
+ ...rest
65
+ }) => {
66
+ const [steps, setSteps] = (0, import_react2.useState)(/* @__PURE__ */ new Map());
67
+ const Component = readOnly ? "div" : "nav";
68
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
69
+ ProgressTrackerContext.Provider,
70
+ {
71
+ value: { stepIndex, onStepClick, steps, setSteps, size, intent, design, readOnly },
72
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
73
+ Component,
74
+ {
75
+ ref,
76
+ "data-spark-component": "progress-tracker",
77
+ className: (0, import_class_variance_authority2.cx)("inline-flex", className),
78
+ ...rest,
79
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
80
+ "ol",
81
+ {
82
+ "data-orientation": orientation,
83
+ className: progressList,
84
+ style: { counterReset: "step" },
85
+ children
86
+ }
87
+ )
88
+ }
89
+ )
90
+ }
91
+ );
92
+ };
93
+ ProgressTracker.displayName = "ProgressTracker";
94
+
95
+ // src/progress-tracker/ProgressTrackerStep.tsx
96
+ var import_react5 = require("react");
97
+
98
+ // src/progress-tracker/ProgressTrackerStep.styles.ts
99
+ var import_class_variance_authority3 = require("class-variance-authority");
100
+ var stepItemVariant = (0, import_class_variance_authority3.cva)(
101
+ [
102
+ "relative inline-flex items-start flex-auto first:grow-0 justify-center group/item",
103
+ // Progress Track
104
+ "after:absolute after:z-base",
105
+ "last:after:content-none",
106
+ // Horizontal orientation
107
+ "group-data-[orientation=horizontal]/list:px-[1px]",
108
+ "group-data-[orientation=horizontal]/list:before:absolute group-data-[orientation=horizontal]/list:before:z-base",
109
+ "group-data-[orientation=horizontal]/list:before:left-0 group-data-[orientation=horizontal]/list:after:right-0",
110
+ "group-data-[orientation=horizontal]/list:before:h-[1px] group-data-[orientation=horizontal]/list:after:h-[1px]",
111
+ "first:group-data-[orientation=horizontal]/list:before:content-none",
112
+ // Vertical orientation
113
+ "group-data-[orientation=vertical]/list:py-[1px]",
114
+ "group-data-[orientation=vertical]/list:items-start",
115
+ "group-data-[orientation=vertical]/list:after:w-[1px] group-data-[orientation=vertical]/list:after:bottom-[-1px]"
116
+ ],
117
+ {
118
+ variants: {
119
+ size: {
120
+ sm: [
121
+ // Horizontal orientation
122
+ "group-data-[orientation=horizontal]/list:before:top-[8px] group-data-[orientation=horizontal]/list:after:top-[8px]",
123
+ "group-data-[orientation=horizontal]/list:before:right-[calc(50%+12px)] group-data-[orientation=horizontal]/list:after:left-[calc(50%+12px)]",
124
+ "first:group-data-[orientation=horizontal]/list:after:left-[calc(50%+10px)]",
125
+ "last:group-data-[orientation=horizontal]/list:before:right-[calc(50%+10px)]",
126
+ // Vertical orientation
127
+ "group-data-[orientation=vertical]/list:after:left-[8px]",
128
+ "group-data-[orientation=vertical]/list:after:top-[25px]",
129
+ "first:group-data-[orientation=vertical]/list:after:top-[21px]"
130
+ ],
131
+ md: [
132
+ // Horizontal orientation
133
+ "group-data-[orientation=horizontal]/list:before:top-[12px] group-data-[orientation=horizontal]/list:after:top-[12px]",
134
+ "group-data-[orientation=horizontal]/list:before:right-[calc(50%+16px)] group-data-[orientation=horizontal]/list:after:left-[calc(50%+16px)]",
135
+ "first:group-data-[orientation=horizontal]/list:after:left-[calc(50%+14px)]",
136
+ "last:group-data-[orientation=horizontal]/list:before:right-[calc(50%+14px)]",
137
+ // Vertical orientation
138
+ "group-data-[orientation=vertical]/list:after:left-[12px]",
139
+ "group-data-[orientation=vertical]/list:after:top-[33px]",
140
+ "first:group-data-[orientation=vertical]/list:after:top-[29px]"
141
+ ],
142
+ lg: [
143
+ // Horizontal orientation
144
+ "group-data-[orientation=horizontal]/list:before:top-[16px] group-data-[orientation=horizontal]/list:after:top-[16px]",
145
+ "group-data-[orientation=horizontal]/list:before:right-[calc(50%+20px)] group-data-[orientation=horizontal]/list:after:left-[calc(50%+20px)]",
146
+ "first:group-data-[orientation=horizontal]/list:after:left-[calc(50%+18px)]",
147
+ "last:group-data-[orientation=horizontal]/list:before:right-[calc(50%+18px)]",
148
+ // Vertical orientation
149
+ "group-data-[orientation=vertical]/list:after:left-[16px]",
150
+ "group-data-[orientation=vertical]/list:after:top-[41px]",
151
+ "first:group-data-[orientation=vertical]/list:after:top-[37px]"
152
+ ]
153
+ },
154
+ intent: {
155
+ basic: ["after:bg-basic", "group-data-[orientation=horizontal]/list:before:bg-basic"],
156
+ support: ["after:bg-support", "group-data-[orientation=horizontal]/list:before:bg-support"],
157
+ main: ["after:bg-main", "group-data-[orientation=horizontal]/list:before:bg-main"],
158
+ neutral: ["after:bg-neutral", "group-data-[orientation=horizontal]/list:before:bg-neutral"],
159
+ info: ["after:bg-info", "group-data-[orientation=horizontal]/list:before:bg-info"],
160
+ accent: ["after:bg-accent", "group-data-[orientation=horizontal]/list:before:bg-accent"],
161
+ danger: ["after:bg-error", "group-data-[orientation=horizontal]/list:before:bg-error"],
162
+ alert: ["after:bg-alert", "group-data-[orientation=horizontal]/list:before:bg-alert"],
163
+ success: ["after:bg-success", "group-data-[orientation=horizontal]/list:before:bg-success"]
164
+ },
165
+ disabled: {
166
+ true: "before:opacity-dim-3",
167
+ false: ""
168
+ },
169
+ disabledAfter: {
170
+ true: "after:opacity-dim-3",
171
+ false: ""
172
+ }
173
+ },
174
+ defaultVariants: {
175
+ disabled: false,
176
+ disabledAfter: false,
177
+ size: "lg",
178
+ intent: "basic"
179
+ }
180
+ }
181
+ );
182
+ var stepButtonVariant = (0, import_class_variance_authority3.cva)(
183
+ [
184
+ "relative flex group/btn disabled:cursor-default",
185
+ // Horizontal orientation
186
+ "group-data-[orientation=horizontal]/list:flex-col group-data-[orientation=horizontal]/list:items-center",
187
+ "group-data-[orientation=horizontal]/list:text-center group-data-[orientation=horizontal]/list:mx-sm",
188
+ "group-first/item:group-data-[orientation=horizontal]/list:ml-0 group-last/item:group-data-[orientation=horizontal]/list:mr-0",
189
+ // Vertical orientation
190
+ "group-data-[orientation=vertical]/list:flex-row group-data-[orientation=vertical]/list:items-start",
191
+ "group-data-[orientation=vertical]/list:text-left group-data-[orientation=vertical]/list:my-sm",
192
+ "group-first/item:group-data-[orientation=vertical]/list:mt-0 group-last/item:group-data-[orientation=vertical]/list:mb-0"
193
+ ],
194
+ {
195
+ variants: {
196
+ size: {
197
+ sm: [
198
+ "group-data-[orientation=horizontal]/list:min-w-sz-16 group-data-[orientation=horizontal]/list:mt-[16px]",
199
+ "group-data-[orientation=vertical]/list:min-h-sz-16 group-data-[orientation=vertical]/list:ml-[16px]"
200
+ ],
201
+ md: [
202
+ "group-data-[orientation=horizontal]/list:min-w-sz-24 group-data-[orientation=horizontal]/list:mt-[24px]",
203
+ "group-data-[orientation=vertical]/list:min-h-sz-24 group-data-[orientation=vertical]/list:ml-[24px]"
204
+ ],
205
+ lg: [
206
+ "group-data-[orientation=horizontal]/list:min-w-sz-32 group-data-[orientation=horizontal]/list:mt-[32px]",
207
+ "group-data-[orientation=vertical]/list:min-h-sz-32 group-data-[orientation=vertical]/list:ml-[32px]"
208
+ ]
209
+ },
210
+ readOnly: {
211
+ true: "cursor-default",
212
+ false: "cursor-pointer"
213
+ }
214
+ },
215
+ defaultVariants: {
216
+ size: "lg",
217
+ readOnly: false
218
+ }
219
+ }
220
+ );
221
+
222
+ // src/progress-tracker/ProgressTrackerStepIndicator.tsx
223
+ var import_Check = require("@spark-ui/icons/Check");
224
+
225
+ // src/icon/Icon.tsx
226
+ var import_react4 = require("react");
227
+
228
+ // src/slot/Slot.tsx
229
+ var import_radix_ui = require("radix-ui");
230
+ var import_react3 = require("react");
231
+ var import_jsx_runtime2 = require("react/jsx-runtime");
232
+ var Slottable = import_radix_ui.Slot.Slottable;
233
+ var Slot = ({ ref, ...props }) => {
234
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_radix_ui.Slot.Root, { ref, ...props });
235
+ };
236
+
237
+ // src/visually-hidden/VisuallyHidden.tsx
238
+ var import_jsx_runtime3 = require("react/jsx-runtime");
239
+ var VisuallyHidden = ({ asChild = false, ref, ...props }) => {
240
+ const Component = asChild ? Slot : "span";
241
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
242
+ Component,
243
+ {
244
+ ...props,
245
+ ref,
246
+ style: {
247
+ // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
248
+ position: "absolute",
249
+ border: 0,
250
+ width: 1,
251
+ height: 1,
252
+ padding: 0,
253
+ margin: -1,
254
+ overflow: "hidden",
255
+ clip: "rect(0, 0, 0, 0)",
256
+ whiteSpace: "nowrap",
257
+ wordWrap: "normal",
258
+ ...props.style
259
+ }
260
+ }
261
+ );
262
+ };
263
+ VisuallyHidden.displayName = "VisuallyHidden";
264
+
265
+ // src/icon/Icon.styles.tsx
266
+ var import_internal_utils = require("@spark-ui/internal-utils");
267
+ var import_class_variance_authority4 = require("class-variance-authority");
268
+ var iconStyles = (0, import_class_variance_authority4.cva)(["fill-current shrink-0"], {
269
+ variants: {
270
+ /**
271
+ * Color scheme of the icon.
272
+ */
273
+ intent: (0, import_internal_utils.makeVariants)({
274
+ current: ["text-current"],
275
+ main: ["text-main"],
276
+ support: ["text-support"],
277
+ accent: ["text-accent"],
278
+ basic: ["text-basic"],
279
+ success: ["text-success"],
280
+ alert: ["text-alert"],
281
+ error: ["text-error"],
282
+ info: ["text-info"],
283
+ neutral: ["text-neutral"]
284
+ }),
285
+ /**
286
+ * Sets the size of the icon.
287
+ */
288
+ size: (0, import_internal_utils.makeVariants)({
289
+ current: ["u-current-font-size"],
290
+ sm: ["w-sz-16", "h-sz-16"],
291
+ md: ["w-sz-24", "h-sz-24"],
292
+ lg: ["w-sz-32", "h-sz-32"],
293
+ xl: ["w-sz-40", "h-sz-40"]
294
+ })
295
+ }
296
+ });
297
+
298
+ // src/icon/Icon.tsx
299
+ var import_jsx_runtime4 = require("react/jsx-runtime");
300
+ var Icon = ({
301
+ label,
302
+ className,
303
+ size = "current",
304
+ intent = "current",
305
+ children,
306
+ ...others
307
+ }) => {
308
+ const child = import_react4.Children.only(children);
309
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
310
+ (0, import_react4.cloneElement)(child, {
311
+ className: iconStyles({ className, size, intent }),
312
+ "data-spark-component": "icon",
313
+ "aria-hidden": "true",
314
+ focusable: "false",
315
+ ...others
316
+ }),
317
+ label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(VisuallyHidden, { children: label })
318
+ ] });
319
+ };
320
+ Icon.displayName = "Icon";
321
+
322
+ // src/progress-tracker/ProgressTrackerStepIndicator.styles.ts
323
+ var import_class_variance_authority5 = require("class-variance-authority");
324
+
325
+ // src/progress-tracker/stepIndicatorVariants/outline.ts
326
+ var outlineVariants = [
327
+ {
328
+ design: "outline",
329
+ intent: "basic",
330
+ state: ["complete", "incomplete"],
331
+ class: [
332
+ "text-on-basic-container bg-transparent",
333
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-basic-container-hovered",
334
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-transparent"
335
+ ]
336
+ },
337
+ {
338
+ design: "outline",
339
+ intent: "basic",
340
+ state: "active",
341
+ class: "text-on-basic-container bg-basic-container"
342
+ },
343
+ {
344
+ design: "outline",
345
+ intent: "support",
346
+ state: ["complete", "incomplete"],
347
+ class: [
348
+ "text-on-support-container bg-transparent",
349
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-support-container-hovered",
350
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-transparent"
351
+ ]
352
+ },
353
+ {
354
+ design: "outline",
355
+ intent: "support",
356
+ state: "active",
357
+ class: "text-on-support-container bg-support-container"
358
+ },
359
+ {
360
+ design: "outline",
361
+ intent: "main",
362
+ state: ["complete", "incomplete"],
363
+ class: [
364
+ "text-on-main-container bg-transparent",
365
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-main-container-hovered",
366
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-transparent"
367
+ ]
368
+ },
369
+ {
370
+ design: "outline",
371
+ intent: "main",
372
+ state: "active",
373
+ class: "text-on-main-container bg-main-container"
374
+ },
375
+ {
376
+ design: "outline",
377
+ intent: "neutral",
378
+ state: ["complete", "incomplete"],
379
+ class: [
380
+ "text-on-neutral-container bg-transparent",
381
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-neutral-container-hovered",
382
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-transparent"
383
+ ]
384
+ },
385
+ {
386
+ design: "outline",
387
+ intent: "neutral",
388
+ state: "active",
389
+ class: "text-on-neutral-container bg-neutral-container"
390
+ },
391
+ {
392
+ design: "outline",
393
+ intent: "info",
394
+ state: ["complete", "incomplete"],
395
+ class: [
396
+ "text-on-info-container bg-transparent",
397
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-info-container-hovered",
398
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-transparent"
399
+ ]
400
+ },
401
+ {
402
+ design: "outline",
403
+ intent: "info",
404
+ state: "active",
405
+ class: "text-on-info-container bg-info-container"
406
+ },
407
+ {
408
+ design: "outline",
409
+ intent: "accent",
410
+ state: ["complete", "incomplete"],
411
+ class: [
412
+ "text-on-accent-container bg-transparent",
413
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-accent-container-hovered",
414
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-transparent"
415
+ ]
416
+ },
417
+ {
418
+ design: "outline",
419
+ intent: "accent",
420
+ state: "active",
421
+ class: "text-on-accent-container bg-accent-container"
422
+ },
423
+ {
424
+ design: "outline",
425
+ intent: "danger",
426
+ state: ["complete", "incomplete"],
427
+ class: [
428
+ "text-on-error-container bg-transparent",
429
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-error-container-hovered",
430
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-transparent"
431
+ ]
432
+ },
433
+ {
434
+ design: "outline",
435
+ intent: "danger",
436
+ state: "active",
437
+ class: "text-on-error-container bg-error-container"
438
+ },
439
+ {
440
+ design: "outline",
441
+ intent: "alert",
442
+ state: ["complete", "incomplete"],
443
+ class: [
444
+ "text-on-alert-container bg-transparent",
445
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-alert-container-hovered",
446
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-transparent"
447
+ ]
448
+ },
449
+ {
450
+ design: "outline",
451
+ intent: "alert",
452
+ state: "active",
453
+ class: "text-on-alert-container bg-alert-container"
454
+ },
455
+ {
456
+ design: "outline",
457
+ intent: "success",
458
+ state: ["complete", "incomplete"],
459
+ class: [
460
+ "text-on-success-container bg-transparent",
461
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-success-container-hovered",
462
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-transparent"
463
+ ]
464
+ },
465
+ {
466
+ design: "outline",
467
+ intent: "success",
468
+ state: "active",
469
+ class: "text-on-success-container bg-success-container"
470
+ }
471
+ ];
472
+
473
+ // src/progress-tracker/stepIndicatorVariants/tinted.ts
474
+ var tintedVariants = [
475
+ {
476
+ design: "tinted",
477
+ intent: "basic",
478
+ state: ["complete", "incomplete"],
479
+ class: [
480
+ "text-on-basic-container bg-basic-container",
481
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-basic-container-hovered",
482
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-basic-container"
483
+ ]
484
+ },
485
+ {
486
+ design: "tinted",
487
+ intent: "basic",
488
+ state: "active",
489
+ class: "text-on-basic bg-basic"
490
+ },
491
+ {
492
+ design: "tinted",
493
+ intent: "support",
494
+ state: ["complete", "incomplete"],
495
+ class: [
496
+ "text-on-support-container bg-support-container",
497
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-support-container-hovered",
498
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-support-container"
499
+ ]
500
+ },
501
+ {
502
+ design: "tinted",
503
+ intent: "support",
504
+ state: "active",
505
+ class: "text-on-support bg-support"
506
+ },
507
+ {
508
+ design: "tinted",
509
+ intent: "main",
510
+ state: ["complete", "incomplete"],
511
+ class: [
512
+ "text-on-main-container bg-main-container",
513
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-main-container-hovered",
514
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-main-container"
515
+ ]
516
+ },
517
+ {
518
+ design: "tinted",
519
+ intent: "main",
520
+ state: "active",
521
+ class: "text-on-main bg-main"
522
+ },
523
+ {
524
+ design: "tinted",
525
+ intent: "neutral",
526
+ state: ["complete", "incomplete"],
527
+ class: [
528
+ "text-on-neutral-container bg-neutral-container",
529
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-neutral-container-hovered",
530
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-neutral-container"
531
+ ]
532
+ },
533
+ {
534
+ design: "tinted",
535
+ intent: "neutral",
536
+ state: "active",
537
+ class: "text-on-neutral bg-neutral"
538
+ },
539
+ {
540
+ design: "tinted",
541
+ intent: "info",
542
+ state: ["complete", "incomplete"],
543
+ class: [
544
+ "text-on-info-container bg-info-container",
545
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-info-container-hovered",
546
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-info-container"
547
+ ]
548
+ },
549
+ {
550
+ design: "tinted",
551
+ intent: "info",
552
+ state: "active",
553
+ class: "text-on-info bg-info"
554
+ },
555
+ {
556
+ design: "tinted",
557
+ intent: "accent",
558
+ state: ["complete", "incomplete"],
559
+ class: [
560
+ "text-on-accent-container bg-accent-container",
561
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-accent-container-hovered",
562
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-accent-container"
563
+ ]
564
+ },
565
+ {
566
+ design: "tinted",
567
+ intent: "accent",
568
+ state: "active",
569
+ class: "text-on-accent bg-accent"
570
+ },
571
+ {
572
+ design: "tinted",
573
+ intent: "danger",
574
+ state: ["complete", "incomplete"],
575
+ class: [
576
+ "text-on-error-container bg-error-container",
577
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-error-container-hovered",
578
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-error-container"
579
+ ]
580
+ },
581
+ {
582
+ design: "tinted",
583
+ intent: "danger",
584
+ state: "active",
585
+ class: "text-on-error bg-error"
586
+ },
587
+ {
588
+ design: "tinted",
589
+ intent: "alert",
590
+ state: ["complete", "incomplete"],
591
+ class: [
592
+ "text-on-alert-container bg-alert-container",
593
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-alert-container-hovered",
594
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-alert-container"
595
+ ]
596
+ },
597
+ {
598
+ design: "tinted",
599
+ intent: "alert",
600
+ state: "active",
601
+ class: "text-on-alert bg-alert"
602
+ },
603
+ {
604
+ design: "tinted",
605
+ intent: "success",
606
+ state: ["complete", "incomplete"],
607
+ class: [
608
+ "text-on-success-container bg-success-container",
609
+ "group-hover/btn:group-data-[interactive=true]/btn:bg-success-container-hovered",
610
+ "group-hover/btn:group-data-[interactive=false]/btn:bg-success-container"
611
+ ]
612
+ },
613
+ {
614
+ design: "tinted",
615
+ intent: "success",
616
+ state: "active",
617
+ class: "text-on-success bg-success"
618
+ }
619
+ ];
620
+
621
+ // src/progress-tracker/ProgressTrackerStepIndicator.styles.ts
622
+ var stepIndicatorVariant = (0, import_class_variance_authority5.cva)(
623
+ [
624
+ "relative flex shrink-0 justify-center items-center",
625
+ "rounded-full",
626
+ "text-body-2 font-bold",
627
+ "group-disabled/btn:opacity-dim-3"
628
+ ],
629
+ {
630
+ variants: {
631
+ size: {
632
+ sm: [
633
+ "w-sz-16 h-sz-16",
634
+ "group-data-[orientation=horizontal]/list:mt-[-16px]",
635
+ "group-data-[orientation=vertical]/list:ml-[-16px]"
636
+ ],
637
+ md: [
638
+ "w-sz-24 h-sz-24",
639
+ "group-data-[orientation=horizontal]/list:mt-[-24px]",
640
+ "group-data-[orientation=vertical]/list:ml-[-24px]"
641
+ ],
642
+ lg: [
643
+ "w-sz-32 h-sz-32",
644
+ "group-data-[orientation=horizontal]/list:mt-[-32px]",
645
+ "group-data-[orientation=vertical]/list:ml-[-32px]"
646
+ ]
647
+ },
648
+ intent: {
649
+ basic: "",
650
+ support: "",
651
+ main: "",
652
+ neutral: "",
653
+ info: "",
654
+ accent: "",
655
+ danger: "",
656
+ alert: "",
657
+ success: ""
658
+ },
659
+ design: {
660
+ outline: "border-sm",
661
+ tinted: ""
662
+ },
663
+ state: {
664
+ complete: "",
665
+ incomplete: "",
666
+ active: ""
667
+ }
668
+ },
669
+ /**
670
+ * Known type issue with CVA compoundVariants and VS Code/Intellisense:
671
+ * https://github.com/joe-bell/cva/discussions/195#discussioncomment-6750163
672
+ * */
673
+ /* eslint-disable-next-line @typescript-eslint/ban-ts-comment */
674
+ /* @ts-ignore */
675
+ compoundVariants: [...outlineVariants, ...tintedVariants],
676
+ defaultVariants: {
677
+ size: "lg",
678
+ state: "incomplete",
679
+ intent: "basic",
680
+ design: "outline"
681
+ }
682
+ }
683
+ );
684
+
685
+ // src/progress-tracker/ProgressTrackerStepIndicator.tsx
686
+ var import_jsx_runtime5 = require("react/jsx-runtime");
687
+ var CompleteIndicator = () => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_Check.Check, {}) });
688
+ var ProgressTrackerStepIndicator = ({
689
+ complete,
690
+ incomplete,
691
+ className
692
+ }) => {
693
+ const { size, intent, design } = useProgressTrackerContext();
694
+ const { index, state } = useProgressTrackerStepContext();
695
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
696
+ "span",
697
+ {
698
+ className: stepIndicatorVariant({ size, intent, design, state, className }),
699
+ "aria-hidden": "true",
700
+ children: size !== "sm" && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
701
+ state === "complete" && (complete === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CompleteIndicator, {}) : complete),
702
+ state !== "complete" && (incomplete === void 0 ? `${index + 1}` : incomplete)
703
+ ] })
704
+ }
705
+ );
706
+ };
707
+ ProgressTrackerStepIndicator.displayName = "ProgressTracker.StepIndicator";
708
+
709
+ // src/progress-tracker/ProgressTrackerStep.tsx
710
+ var import_jsx_runtime6 = require("react/jsx-runtime");
711
+ var ProgressTrackerStep = ({
712
+ disabled = false,
713
+ children,
714
+ "aria-label": ariaLabel,
715
+ className,
716
+ ref,
717
+ ...rest
718
+ }) => {
719
+ const {
720
+ stepIndex: currentStepIndex,
721
+ steps,
722
+ onStepClick,
723
+ setSteps,
724
+ size,
725
+ intent,
726
+ readOnly
727
+ } = useProgressTrackerContext();
728
+ const stepId = `${ID_PREFIX}-step-${(0, import_react5.useId)()}`;
729
+ const stepIndex = [...steps.keys()].indexOf(stepId);
730
+ const disabledAfter = (() => {
731
+ const nextStepId = [...steps.keys()][stepIndex + 1];
732
+ return !!(nextStepId && steps.get(nextStepId)?.includes("disabled"));
733
+ })();
734
+ const progressState = (() => {
735
+ if (stepIndex === currentStepIndex) return "active";
736
+ else if (stepIndex < currentStepIndex) return "complete";
737
+ else return "incomplete";
738
+ })();
739
+ (0, import_react5.useEffect)(() => {
740
+ setSteps((steps2) => {
741
+ const newSteps = new Map(steps2);
742
+ return newSteps.set(
743
+ stepId,
744
+ [progressState, disabled ? "disabled" : ""].filter((v) => !!v)
745
+ );
746
+ });
747
+ return () => {
748
+ setSteps((steps2) => {
749
+ steps2.delete(stepId);
750
+ return steps2;
751
+ });
752
+ };
753
+ }, []);
754
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
755
+ "li",
756
+ {
757
+ id: stepId,
758
+ ref,
759
+ "data-state": progressState,
760
+ ...progressState === "active" && {
761
+ "aria-current": "step"
762
+ },
763
+ className: stepItemVariant({
764
+ size,
765
+ intent,
766
+ disabled,
767
+ disabledAfter
768
+ }),
769
+ ...rest,
770
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
771
+ "button",
772
+ {
773
+ type: "button",
774
+ "aria-label": ariaLabel,
775
+ "data-interactive": !disabled && !readOnly,
776
+ ...!disabled && !readOnly && {
777
+ onClick: () => onStepClick?.(stepIndex)
778
+ },
779
+ disabled,
780
+ className: stepButtonVariant({
781
+ size,
782
+ readOnly,
783
+ className
784
+ }),
785
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
786
+ ProgressTrackerStepContext.Provider,
787
+ {
788
+ value: {
789
+ index: stepIndex,
790
+ state: progressState
791
+ },
792
+ children: children || /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProgressTrackerStepIndicator, {})
793
+ }
794
+ )
795
+ }
796
+ )
797
+ }
798
+ );
799
+ };
800
+ ProgressTrackerStep.displayName = "ProgressTracker.Step";
801
+
802
+ // src/progress-tracker/ProgressTrackerStepLabel.styles.ts
803
+ var import_class_variance_authority6 = require("class-variance-authority");
804
+ var stepLabel = (0, import_class_variance_authority6.cva)([
805
+ "flex text-body-2 font-bold",
806
+ "text-on-surface group-disabled/btn:text-on-surface/dim-1",
807
+ "group-data-[orientation=horizontal]/list:mt-md",
808
+ "group-data-[orientation=vertical]/list:ml-md",
809
+ "group-data-[orientation=vertical]/list:my-auto"
810
+ ]);
811
+
812
+ // src/progress-tracker/ProgressTrackerStepLabel.tsx
813
+ var import_jsx_runtime7 = require("react/jsx-runtime");
814
+ var ProgressTrackerStepLabel = ({
815
+ className,
816
+ children
817
+ }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: stepLabel({ className }), children });
818
+ ProgressTrackerStepLabel.displayName = "ProgressTracker.StepLabel";
819
+
820
+ // src/progress-tracker/index.ts
821
+ var ProgressTracker2 = Object.assign(ProgressTracker, {
822
+ Step: ProgressTrackerStep,
823
+ StepLabel: ProgressTrackerStepLabel,
824
+ StepIndicator: ProgressTrackerStepIndicator
825
+ });
826
+ ProgressTracker2.displayName = "ProgressTracker";
827
+ ProgressTrackerStep.displayName = "ProgressTracker.Step";
828
+ ProgressTrackerStepLabel.displayName = "ProgressTracker.StepLabel";
829
+ ProgressTrackerStepIndicator.displayName = "ProgressTracker.StepIndicator";
830
+ // Annotate the CommonJS export names for ESM import in node:
831
+ 0 && (module.exports = {
832
+ ProgressTracker
833
+ });
834
+ //# sourceMappingURL=index.js.map