@spark-ui/components 11.1.0 → 11.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DialogTrigger-woU7vsJi.d.ts +142 -0
- package/dist/Input-N8AWWSmt.d.ts +41 -0
- package/dist/InputTrailingIcon-ZZx8PoJy.d.ts +20 -0
- package/dist/LabelRequiredIndicator-DRnCzHMU.d.ts +19 -0
- package/dist/accordion/index.d.ts +73 -0
- package/dist/accordion/index.js +325 -0
- package/dist/accordion/index.js.map +1 -0
- package/dist/alert-dialog/index.d.ts +119 -0
- package/dist/alert-dialog/index.js +1554 -0
- package/dist/alert-dialog/index.js.map +1 -0
- package/dist/avatar/index.d.ts +66 -0
- package/dist/avatar/index.js +1303 -0
- package/dist/avatar/index.js.map +1 -0
- package/dist/badge/index.d.ts +47 -0
- package/dist/badge/index.js +122 -0
- package/dist/badge/index.js.map +1 -0
- package/dist/breadcrumb/index.d.ts +64 -0
- package/dist/breadcrumb/index.js +327 -0
- package/dist/breadcrumb/index.js.map +1 -0
- package/dist/button/index.d.ts +41 -0
- package/dist/button/index.js +935 -0
- package/dist/button/index.js.map +1 -0
- package/dist/card/index.d.ts +61 -0
- package/dist/card/index.js +502 -0
- package/dist/card/index.js.map +1 -0
- package/dist/carousel/index.d.ts +261 -0
- package/dist/carousel/index.js +1801 -0
- package/dist/carousel/index.js.map +1 -0
- package/dist/checkbox/index.d.ts +120 -0
- package/dist/checkbox/index.js +511 -0
- package/dist/checkbox/index.js.map +1 -0
- package/dist/chip/index.d.ts +97 -0
- package/dist/chip/index.js +908 -0
- package/dist/chip/index.js.map +1 -0
- package/dist/collapsible/index.d.ts +43 -0
- package/dist/collapsible/index.js +109 -0
- package/dist/collapsible/index.js.map +1 -0
- package/dist/combobox/index.d.ts +287 -0
- package/dist/combobox/index.js +2588 -0
- package/dist/combobox/index.js.map +1 -0
- package/dist/dialog/index.d.ts +33 -0
- package/dist/dialog/index.js +1389 -0
- package/dist/dialog/index.js.map +1 -0
- package/dist/divider/index.d.ts +61 -0
- package/dist/divider/index.js +224 -0
- package/dist/divider/index.js.map +1 -0
- package/dist/drawer/index.d.ts +152 -0
- package/dist/drawer/index.js +1400 -0
- package/dist/drawer/index.js.map +1 -0
- package/dist/dropdown/index.d.ts +233 -0
- package/dist/dropdown/index.js +2051 -0
- package/dist/dropdown/index.js.map +1 -0
- package/dist/form-field/index.d.ts +186 -0
- package/dist/form-field/index.js +553 -0
- package/dist/form-field/index.js.map +1 -0
- package/dist/icon/index.d.ts +28 -0
- package/dist/icon/index.js +127 -0
- package/dist/icon/index.js.map +1 -0
- package/dist/icon-button/index.d.ts +16 -0
- package/dist/icon-button/index.js +980 -0
- package/dist/icon-button/index.js.map +1 -0
- package/dist/input/index.d.ts +78 -0
- package/dist/input/index.js +724 -0
- package/dist/input/index.js.map +1 -0
- package/dist/kbd/index.d.ts +9 -0
- package/dist/kbd/index.js +47 -0
- package/dist/kbd/index.js.map +1 -0
- package/dist/label/index.d.ts +11 -0
- package/dist/label/index.js +78 -0
- package/dist/label/index.js.map +1 -0
- package/dist/link-box/index.d.ts +34 -0
- package/dist/link-box/index.js +92 -0
- package/dist/link-box/index.js.map +1 -0
- package/dist/pagination/index.d.ts +143 -0
- package/dist/pagination/index.js +1353 -0
- package/dist/pagination/index.js.map +1 -0
- package/dist/popover/index.d.ts +93 -0
- package/dist/popover/index.js +1339 -0
- package/dist/popover/index.js.map +1 -0
- package/dist/portal/index.d.ts +13 -0
- package/dist/portal/index.js +37 -0
- package/dist/portal/index.js.map +1 -0
- package/dist/progress/index.d.ts +48 -0
- package/dist/progress/index.js +223 -0
- package/dist/progress/index.js.map +1 -0
- package/dist/progress-tracker/index.d.ts +80 -0
- package/dist/progress-tracker/index.js +571 -0
- package/dist/progress-tracker/index.js.map +1 -0
- package/dist/radio-group/index.d.ts +100 -0
- package/dist/radio-group/index.js +318 -0
- package/dist/radio-group/index.js.map +1 -0
- package/dist/rating/index.d.ts +78 -0
- package/dist/rating/index.js +363 -0
- package/dist/rating/index.js.map +1 -0
- package/dist/scrolling-list/index.d.ts +118 -0
- package/dist/scrolling-list/index.js +1426 -0
- package/dist/scrolling-list/index.js.map +1 -0
- package/dist/segmented-gauge/index.d.ts +100 -0
- package/dist/segmented-gauge/index.js +277 -0
- package/dist/segmented-gauge/index.js.map +1 -0
- package/dist/select/index.d.ts +167 -0
- package/dist/select/index.js +581 -0
- package/dist/select/index.js.map +1 -0
- package/dist/skeleton/index.d.ts +67 -0
- package/dist/skeleton/index.js +206 -0
- package/dist/skeleton/index.js.map +1 -0
- package/dist/slider/index.d.ts +97 -0
- package/dist/slider/index.js +220 -0
- package/dist/slider/index.js.map +1 -0
- package/dist/slot/index.d.ts +16 -0
- package/dist/slot/index.js +51 -0
- package/dist/slot/index.js.map +1 -0
- package/dist/snackbar/index.d.ts +158 -0
- package/dist/snackbar/index.js +1756 -0
- package/dist/snackbar/index.js.map +1 -0
- package/dist/spinner/index.d.ts +21 -0
- package/dist/spinner/index.js +139 -0
- package/dist/spinner/index.js.map +1 -0
- package/dist/stepper/index.d.ts +81 -0
- package/dist/stepper/index.js +1847 -0
- package/dist/stepper/index.js.map +1 -0
- package/dist/switch/index.d.ts +64 -0
- package/dist/switch/index.js +327 -0
- package/dist/switch/index.js.map +1 -0
- package/dist/tabs/index.d.ts +103 -0
- package/dist/tabs/index.js +1376 -0
- package/dist/tabs/index.js.map +1 -0
- package/dist/tag/index.d.ts +29 -0
- package/dist/tag/index.js +283 -0
- package/dist/tag/index.js.map +1 -0
- package/dist/text-link/index.d.ts +20 -0
- package/dist/text-link/index.js +100 -0
- package/dist/text-link/index.js.map +1 -0
- package/dist/textarea/index.d.ts +57 -0
- package/dist/textarea/index.js +797 -0
- package/dist/textarea/index.js.map +1 -0
- package/dist/toast/index.d.ts +56 -0
- package/dist/toast/index.js +1412 -0
- package/dist/toast/index.js.map +1 -0
- package/dist/visually-hidden/index.d.ts +16 -0
- package/dist/visually-hidden/index.js +67 -0
- package/dist/visually-hidden/index.js.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,571 @@
|
|
|
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
|
+
orientation = "horizontal",
|
|
60
|
+
children,
|
|
61
|
+
className,
|
|
62
|
+
ref,
|
|
63
|
+
...rest
|
|
64
|
+
}) => {
|
|
65
|
+
const [steps, setSteps] = (0, import_react2.useState)(/* @__PURE__ */ new Map());
|
|
66
|
+
const Component = readOnly ? "div" : "nav";
|
|
67
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
68
|
+
ProgressTrackerContext.Provider,
|
|
69
|
+
{
|
|
70
|
+
value: { stepIndex, onStepClick, steps, setSteps, size, intent, readOnly },
|
|
71
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
72
|
+
Component,
|
|
73
|
+
{
|
|
74
|
+
ref,
|
|
75
|
+
"data-spark-component": "progress-tracker",
|
|
76
|
+
className: (0, import_class_variance_authority2.cx)("inline-flex", className),
|
|
77
|
+
...rest,
|
|
78
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
79
|
+
"ol",
|
|
80
|
+
{
|
|
81
|
+
"data-orientation": orientation,
|
|
82
|
+
className: progressList,
|
|
83
|
+
style: { counterReset: "step" },
|
|
84
|
+
children
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
};
|
|
92
|
+
ProgressTracker.displayName = "ProgressTracker";
|
|
93
|
+
|
|
94
|
+
// src/progress-tracker/ProgressTrackerStep.tsx
|
|
95
|
+
var import_react5 = require("react");
|
|
96
|
+
|
|
97
|
+
// src/progress-tracker/ProgressTrackerStep.styles.ts
|
|
98
|
+
var import_class_variance_authority3 = require("class-variance-authority");
|
|
99
|
+
var stepItemVariant = (0, import_class_variance_authority3.cva)(
|
|
100
|
+
[
|
|
101
|
+
"relative inline-flex items-start flex-auto first:grow-0 justify-center group/item",
|
|
102
|
+
// Progress Track
|
|
103
|
+
"after:absolute after:z-base",
|
|
104
|
+
"last:after:content-none",
|
|
105
|
+
"after:bg-outline",
|
|
106
|
+
"group-data-[orientation=horizontal]/list:before:bg-outline",
|
|
107
|
+
// Horizontal orientation
|
|
108
|
+
"group-data-[orientation=horizontal]/list:px-[1px]",
|
|
109
|
+
"group-data-[orientation=horizontal]/list:before:absolute group-data-[orientation=horizontal]/list:before:z-base",
|
|
110
|
+
"group-data-[orientation=horizontal]/list:before:left-0 group-data-[orientation=horizontal]/list:after:right-0",
|
|
111
|
+
"group-data-[orientation=horizontal]/list:before:h-[1px] group-data-[orientation=horizontal]/list:after:h-[1px]",
|
|
112
|
+
"first:group-data-[orientation=horizontal]/list:before:content-none",
|
|
113
|
+
// Vertical orientation
|
|
114
|
+
"group-data-[orientation=vertical]/list:py-[1px]",
|
|
115
|
+
"group-data-[orientation=vertical]/list:items-start",
|
|
116
|
+
"group-data-[orientation=vertical]/list:after:w-[1px] group-data-[orientation=vertical]/list:after:bottom-[-1px]"
|
|
117
|
+
],
|
|
118
|
+
{
|
|
119
|
+
variants: {
|
|
120
|
+
size: {
|
|
121
|
+
sm: [
|
|
122
|
+
// Horizontal orientation
|
|
123
|
+
"group-data-[orientation=horizontal]/list:before:top-[8px] group-data-[orientation=horizontal]/list:after:top-[8px]",
|
|
124
|
+
"group-data-[orientation=horizontal]/list:before:right-[calc(50%+12px)] group-data-[orientation=horizontal]/list:after:left-[calc(50%+12px)]",
|
|
125
|
+
"first:group-data-[orientation=horizontal]/list:after:left-[calc(50%+10px)]",
|
|
126
|
+
"last:group-data-[orientation=horizontal]/list:before:right-[calc(50%+10px)]",
|
|
127
|
+
// Vertical orientation
|
|
128
|
+
"group-data-[orientation=vertical]/list:after:left-[8px]",
|
|
129
|
+
"group-data-[orientation=vertical]/list:after:top-[25px]",
|
|
130
|
+
"first:group-data-[orientation=vertical]/list:after:top-[21px]"
|
|
131
|
+
],
|
|
132
|
+
md: [
|
|
133
|
+
// Horizontal orientation
|
|
134
|
+
"group-data-[orientation=horizontal]/list:before:top-[12px] group-data-[orientation=horizontal]/list:after:top-[12px]",
|
|
135
|
+
"group-data-[orientation=horizontal]/list:before:right-[calc(50%+16px)] group-data-[orientation=horizontal]/list:after:left-[calc(50%+16px)]",
|
|
136
|
+
"first:group-data-[orientation=horizontal]/list:after:left-[calc(50%+14px)]",
|
|
137
|
+
"last:group-data-[orientation=horizontal]/list:before:right-[calc(50%+14px)]",
|
|
138
|
+
// Vertical orientation
|
|
139
|
+
"group-data-[orientation=vertical]/list:after:left-[12px]",
|
|
140
|
+
"group-data-[orientation=vertical]/list:after:top-[33px]",
|
|
141
|
+
"first:group-data-[orientation=vertical]/list:after:top-[29px]"
|
|
142
|
+
],
|
|
143
|
+
lg: [
|
|
144
|
+
// Horizontal orientation
|
|
145
|
+
"group-data-[orientation=horizontal]/list:before:top-[16px] group-data-[orientation=horizontal]/list:after:top-[16px]",
|
|
146
|
+
"group-data-[orientation=horizontal]/list:before:right-[calc(50%+20px)] group-data-[orientation=horizontal]/list:after:left-[calc(50%+20px)]",
|
|
147
|
+
"first:group-data-[orientation=horizontal]/list:after:left-[calc(50%+18px)]",
|
|
148
|
+
"last:group-data-[orientation=horizontal]/list:before:right-[calc(50%+18px)]",
|
|
149
|
+
// Vertical orientation
|
|
150
|
+
"group-data-[orientation=vertical]/list:after:left-[16px]",
|
|
151
|
+
"group-data-[orientation=vertical]/list:after:top-[41px]",
|
|
152
|
+
"first:group-data-[orientation=vertical]/list:after:top-[37px]"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
intent: {
|
|
156
|
+
basic: "",
|
|
157
|
+
neutral: "",
|
|
158
|
+
success: ""
|
|
159
|
+
},
|
|
160
|
+
disabled: {
|
|
161
|
+
true: "before:opacity-dim-3",
|
|
162
|
+
false: ""
|
|
163
|
+
},
|
|
164
|
+
disabledAfter: {
|
|
165
|
+
true: "after:opacity-dim-3",
|
|
166
|
+
false: ""
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
defaultVariants: {
|
|
170
|
+
disabled: false,
|
|
171
|
+
disabledAfter: false,
|
|
172
|
+
size: "lg",
|
|
173
|
+
intent: "basic"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
);
|
|
177
|
+
var stepButtonVariant = (0, import_class_variance_authority3.cva)(
|
|
178
|
+
[
|
|
179
|
+
"relative flex group/btn disabled:cursor-default",
|
|
180
|
+
// Horizontal orientation
|
|
181
|
+
"group-data-[orientation=horizontal]/list:flex-col group-data-[orientation=horizontal]/list:items-center",
|
|
182
|
+
"group-data-[orientation=horizontal]/list:text-center group-data-[orientation=horizontal]/list:mx-sm",
|
|
183
|
+
"group-first/item:group-data-[orientation=horizontal]/list:ml-0 group-last/item:group-data-[orientation=horizontal]/list:mr-0",
|
|
184
|
+
// Vertical orientation
|
|
185
|
+
"group-data-[orientation=vertical]/list:flex-row group-data-[orientation=vertical]/list:items-start",
|
|
186
|
+
"group-data-[orientation=vertical]/list:text-left group-data-[orientation=vertical]/list:my-sm",
|
|
187
|
+
"group-first/item:group-data-[orientation=vertical]/list:mt-0 group-last/item:group-data-[orientation=vertical]/list:mb-0"
|
|
188
|
+
],
|
|
189
|
+
{
|
|
190
|
+
variants: {
|
|
191
|
+
size: {
|
|
192
|
+
sm: [
|
|
193
|
+
"group-data-[orientation=horizontal]/list:min-w-sz-16 group-data-[orientation=horizontal]/list:mt-[16px]",
|
|
194
|
+
"group-data-[orientation=vertical]/list:min-h-sz-16 group-data-[orientation=vertical]/list:ml-[16px]"
|
|
195
|
+
],
|
|
196
|
+
md: [
|
|
197
|
+
"group-data-[orientation=horizontal]/list:min-w-sz-24 group-data-[orientation=horizontal]/list:mt-[24px]",
|
|
198
|
+
"group-data-[orientation=vertical]/list:min-h-sz-24 group-data-[orientation=vertical]/list:ml-[24px]"
|
|
199
|
+
],
|
|
200
|
+
lg: [
|
|
201
|
+
"group-data-[orientation=horizontal]/list:min-w-sz-32 group-data-[orientation=horizontal]/list:mt-[32px]",
|
|
202
|
+
"group-data-[orientation=vertical]/list:min-h-sz-32 group-data-[orientation=vertical]/list:ml-[32px]"
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
readOnly: {
|
|
206
|
+
true: "cursor-default",
|
|
207
|
+
false: "cursor-pointer"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
defaultVariants: {
|
|
211
|
+
size: "lg",
|
|
212
|
+
readOnly: false
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
);
|
|
216
|
+
|
|
217
|
+
// src/progress-tracker/ProgressTrackerStepIndicator.tsx
|
|
218
|
+
var import_Check = require("@spark-ui/icons/Check");
|
|
219
|
+
|
|
220
|
+
// src/icon/Icon.tsx
|
|
221
|
+
var import_react4 = require("react");
|
|
222
|
+
|
|
223
|
+
// src/slot/Slot.tsx
|
|
224
|
+
var import_radix_ui = require("radix-ui");
|
|
225
|
+
var import_react3 = require("react");
|
|
226
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
227
|
+
var Slottable = import_radix_ui.Slot.Slottable;
|
|
228
|
+
var Slot = ({ ref, ...props }) => {
|
|
229
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_radix_ui.Slot.Root, { ref, ...props });
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
// src/visually-hidden/VisuallyHidden.tsx
|
|
233
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
234
|
+
var VisuallyHidden = ({ asChild = false, ref, ...props }) => {
|
|
235
|
+
const Component = asChild ? Slot : "span";
|
|
236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
237
|
+
Component,
|
|
238
|
+
{
|
|
239
|
+
...props,
|
|
240
|
+
ref,
|
|
241
|
+
style: {
|
|
242
|
+
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
243
|
+
position: "absolute",
|
|
244
|
+
border: 0,
|
|
245
|
+
width: 1,
|
|
246
|
+
height: 1,
|
|
247
|
+
padding: 0,
|
|
248
|
+
margin: -1,
|
|
249
|
+
overflow: "hidden",
|
|
250
|
+
clip: "rect(0, 0, 0, 0)",
|
|
251
|
+
whiteSpace: "nowrap",
|
|
252
|
+
wordWrap: "normal",
|
|
253
|
+
...props.style
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
);
|
|
257
|
+
};
|
|
258
|
+
VisuallyHidden.displayName = "VisuallyHidden";
|
|
259
|
+
|
|
260
|
+
// src/icon/Icon.styles.tsx
|
|
261
|
+
var import_internal_utils = require("@spark-ui/internal-utils");
|
|
262
|
+
var import_class_variance_authority4 = require("class-variance-authority");
|
|
263
|
+
var iconStyles = (0, import_class_variance_authority4.cva)(["fill-current shrink-0"], {
|
|
264
|
+
variants: {
|
|
265
|
+
/**
|
|
266
|
+
* Color scheme of the icon.
|
|
267
|
+
*/
|
|
268
|
+
intent: (0, import_internal_utils.makeVariants)({
|
|
269
|
+
current: ["text-current"],
|
|
270
|
+
main: ["text-main"],
|
|
271
|
+
support: ["text-support"],
|
|
272
|
+
accent: ["text-accent"],
|
|
273
|
+
basic: ["text-basic"],
|
|
274
|
+
success: ["text-success"],
|
|
275
|
+
alert: ["text-alert"],
|
|
276
|
+
error: ["text-error"],
|
|
277
|
+
info: ["text-info"],
|
|
278
|
+
neutral: ["text-neutral"]
|
|
279
|
+
}),
|
|
280
|
+
/**
|
|
281
|
+
* Sets the size of the icon.
|
|
282
|
+
*/
|
|
283
|
+
size: (0, import_internal_utils.makeVariants)({
|
|
284
|
+
current: ["u-current-font-size"],
|
|
285
|
+
sm: ["w-sz-16", "h-sz-16"],
|
|
286
|
+
md: ["w-sz-24", "h-sz-24"],
|
|
287
|
+
lg: ["w-sz-32", "h-sz-32"],
|
|
288
|
+
xl: ["w-sz-40", "h-sz-40"]
|
|
289
|
+
})
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
// src/icon/Icon.tsx
|
|
294
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
295
|
+
var Icon = ({
|
|
296
|
+
label,
|
|
297
|
+
className,
|
|
298
|
+
size = "current",
|
|
299
|
+
intent = "current",
|
|
300
|
+
children,
|
|
301
|
+
...others
|
|
302
|
+
}) => {
|
|
303
|
+
const child = import_react4.Children.only(children);
|
|
304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
305
|
+
(0, import_react4.cloneElement)(child, {
|
|
306
|
+
className: iconStyles({ className, size, intent }),
|
|
307
|
+
"data-spark-component": "icon",
|
|
308
|
+
"aria-hidden": "true",
|
|
309
|
+
focusable: "false",
|
|
310
|
+
...others
|
|
311
|
+
}),
|
|
312
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(VisuallyHidden, { children: label })
|
|
313
|
+
] });
|
|
314
|
+
};
|
|
315
|
+
Icon.displayName = "Icon";
|
|
316
|
+
|
|
317
|
+
// src/progress-tracker/ProgressTrackerStepIndicator.styles.ts
|
|
318
|
+
var import_class_variance_authority5 = require("class-variance-authority");
|
|
319
|
+
var stepIndicatorVariant = (0, import_class_variance_authority5.cva)(
|
|
320
|
+
[
|
|
321
|
+
"relative flex shrink-0 justify-center items-center",
|
|
322
|
+
"rounded-full",
|
|
323
|
+
"text-body-2 font-bold",
|
|
324
|
+
"group-disabled/btn:opacity-dim-3"
|
|
325
|
+
],
|
|
326
|
+
{
|
|
327
|
+
variants: {
|
|
328
|
+
size: {
|
|
329
|
+
sm: [
|
|
330
|
+
"w-sz-16 h-sz-16",
|
|
331
|
+
"group-data-[orientation=horizontal]/list:mt-[-16px]",
|
|
332
|
+
"group-data-[orientation=vertical]/list:ml-[-16px]"
|
|
333
|
+
],
|
|
334
|
+
md: [
|
|
335
|
+
"w-sz-24 h-sz-24",
|
|
336
|
+
"group-data-[orientation=horizontal]/list:mt-[-24px]",
|
|
337
|
+
"group-data-[orientation=vertical]/list:ml-[-24px]"
|
|
338
|
+
],
|
|
339
|
+
lg: [
|
|
340
|
+
"w-sz-32 h-sz-32",
|
|
341
|
+
"group-data-[orientation=horizontal]/list:mt-[-32px]",
|
|
342
|
+
"group-data-[orientation=vertical]/list:ml-[-32px]"
|
|
343
|
+
]
|
|
344
|
+
},
|
|
345
|
+
intent: {
|
|
346
|
+
basic: "",
|
|
347
|
+
neutral: "",
|
|
348
|
+
success: ""
|
|
349
|
+
},
|
|
350
|
+
state: {
|
|
351
|
+
complete: "",
|
|
352
|
+
incomplete: "",
|
|
353
|
+
active: ""
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
/**
|
|
357
|
+
* Known type issue with CVA compoundVariants and VS Code/Intellisense:
|
|
358
|
+
* https://github.com/joe-bell/cva/discussions/195#discussioncomment-6750163
|
|
359
|
+
* */
|
|
360
|
+
/* @ts-ignore */
|
|
361
|
+
compoundVariants: [
|
|
362
|
+
// Basic
|
|
363
|
+
{
|
|
364
|
+
intent: "basic",
|
|
365
|
+
state: ["complete", "incomplete"],
|
|
366
|
+
class: [
|
|
367
|
+
"text-on-basic-container bg-basic-container",
|
|
368
|
+
"group-hover/btn:group-data-[interactive=true]/btn:bg-basic-container-hovered",
|
|
369
|
+
"group-hover/btn:group-data-[interactive=false]/btn:bg-basic-container"
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
intent: "basic",
|
|
374
|
+
state: "active",
|
|
375
|
+
class: "text-on-basic bg-basic"
|
|
376
|
+
},
|
|
377
|
+
// Neutral
|
|
378
|
+
{
|
|
379
|
+
intent: "neutral",
|
|
380
|
+
state: ["complete", "incomplete"],
|
|
381
|
+
class: [
|
|
382
|
+
"text-on-neutral-container bg-neutral-container",
|
|
383
|
+
"group-hover/btn:group-data-[interactive=true]/btn:bg-neutral-container-hovered",
|
|
384
|
+
"group-hover/btn:group-data-[interactive=false]/btn:bg-neutral-container"
|
|
385
|
+
]
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
intent: "neutral",
|
|
389
|
+
state: "active",
|
|
390
|
+
class: "text-on-neutral bg-neutral"
|
|
391
|
+
},
|
|
392
|
+
// Success
|
|
393
|
+
{
|
|
394
|
+
intent: "success",
|
|
395
|
+
state: ["complete", "incomplete"],
|
|
396
|
+
class: [
|
|
397
|
+
"text-on-success-container bg-success-container",
|
|
398
|
+
"group-hover/btn:group-data-[interactive=true]/btn:bg-success-container-hovered",
|
|
399
|
+
"group-hover/btn:group-data-[interactive=false]/btn:bg-success-container"
|
|
400
|
+
]
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
intent: "success",
|
|
404
|
+
state: "active",
|
|
405
|
+
class: "text-on-success bg-success"
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
defaultVariants: {
|
|
409
|
+
size: "lg",
|
|
410
|
+
state: "incomplete",
|
|
411
|
+
intent: "basic"
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
);
|
|
415
|
+
|
|
416
|
+
// src/progress-tracker/ProgressTrackerStepIndicator.tsx
|
|
417
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
418
|
+
var CompleteIndicator = () => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_Check.Check, {}) });
|
|
419
|
+
var ProgressTrackerStepIndicator = ({
|
|
420
|
+
complete,
|
|
421
|
+
incomplete,
|
|
422
|
+
className
|
|
423
|
+
}) => {
|
|
424
|
+
const { size, intent } = useProgressTrackerContext();
|
|
425
|
+
const { index, state } = useProgressTrackerStepContext();
|
|
426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: stepIndicatorVariant({ size, intent, state, className }), "aria-hidden": "true", children: size !== "sm" && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
427
|
+
state === "complete" && (complete === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CompleteIndicator, {}) : complete),
|
|
428
|
+
state !== "complete" && (incomplete === void 0 ? `${index + 1}` : incomplete)
|
|
429
|
+
] }) });
|
|
430
|
+
};
|
|
431
|
+
ProgressTrackerStepIndicator.displayName = "ProgressTracker.StepIndicator";
|
|
432
|
+
|
|
433
|
+
// src/progress-tracker/ProgressTrackerStep.tsx
|
|
434
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
435
|
+
var ProgressTrackerStep = ({
|
|
436
|
+
disabled = false,
|
|
437
|
+
children,
|
|
438
|
+
"aria-label": ariaLabel,
|
|
439
|
+
className,
|
|
440
|
+
ref,
|
|
441
|
+
...rest
|
|
442
|
+
}) => {
|
|
443
|
+
const {
|
|
444
|
+
stepIndex: currentStepIndex,
|
|
445
|
+
steps,
|
|
446
|
+
onStepClick,
|
|
447
|
+
setSteps,
|
|
448
|
+
size,
|
|
449
|
+
intent,
|
|
450
|
+
readOnly
|
|
451
|
+
} = useProgressTrackerContext();
|
|
452
|
+
const stepId = `${ID_PREFIX}-step-${(0, import_react5.useId)()}`;
|
|
453
|
+
const stepIndex = [...steps.keys()].indexOf(stepId);
|
|
454
|
+
const disabledAfter = (() => {
|
|
455
|
+
const nextStepId = [...steps.keys()][stepIndex + 1];
|
|
456
|
+
return !!(nextStepId && steps.get(nextStepId)?.includes("disabled"));
|
|
457
|
+
})();
|
|
458
|
+
const progressState = (() => {
|
|
459
|
+
if (stepIndex === currentStepIndex) return "active";
|
|
460
|
+
else if (stepIndex < currentStepIndex) return "complete";
|
|
461
|
+
else return "incomplete";
|
|
462
|
+
})();
|
|
463
|
+
(0, import_react5.useEffect)(() => {
|
|
464
|
+
setSteps((steps2) => {
|
|
465
|
+
const newSteps = new Map(steps2);
|
|
466
|
+
return newSteps.set(
|
|
467
|
+
stepId,
|
|
468
|
+
[progressState, disabled ? "disabled" : ""].filter((v) => !!v)
|
|
469
|
+
);
|
|
470
|
+
});
|
|
471
|
+
return () => {
|
|
472
|
+
setSteps((steps2) => {
|
|
473
|
+
steps2.delete(stepId);
|
|
474
|
+
return steps2;
|
|
475
|
+
});
|
|
476
|
+
};
|
|
477
|
+
}, []);
|
|
478
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
479
|
+
"li",
|
|
480
|
+
{
|
|
481
|
+
"data-spark-component": "progress-tracker-step",
|
|
482
|
+
id: stepId,
|
|
483
|
+
ref,
|
|
484
|
+
"data-state": progressState,
|
|
485
|
+
...progressState === "active" && {
|
|
486
|
+
"aria-current": "step"
|
|
487
|
+
},
|
|
488
|
+
className: stepItemVariant({
|
|
489
|
+
size,
|
|
490
|
+
intent,
|
|
491
|
+
disabled,
|
|
492
|
+
disabledAfter
|
|
493
|
+
}),
|
|
494
|
+
...rest,
|
|
495
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
496
|
+
"button",
|
|
497
|
+
{
|
|
498
|
+
type: "button",
|
|
499
|
+
"aria-label": ariaLabel,
|
|
500
|
+
"data-interactive": !disabled && !readOnly,
|
|
501
|
+
...!disabled && !readOnly && {
|
|
502
|
+
onClick: () => onStepClick?.(stepIndex)
|
|
503
|
+
},
|
|
504
|
+
disabled,
|
|
505
|
+
className: stepButtonVariant({
|
|
506
|
+
size,
|
|
507
|
+
readOnly,
|
|
508
|
+
className
|
|
509
|
+
}),
|
|
510
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
511
|
+
ProgressTrackerStepContext.Provider,
|
|
512
|
+
{
|
|
513
|
+
value: {
|
|
514
|
+
index: stepIndex,
|
|
515
|
+
state: progressState
|
|
516
|
+
},
|
|
517
|
+
children: children || /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ProgressTrackerStepIndicator, {})
|
|
518
|
+
}
|
|
519
|
+
)
|
|
520
|
+
}
|
|
521
|
+
)
|
|
522
|
+
}
|
|
523
|
+
);
|
|
524
|
+
};
|
|
525
|
+
ProgressTrackerStep.displayName = "ProgressTracker.Step";
|
|
526
|
+
|
|
527
|
+
// src/progress-tracker/ProgressTrackerStepLabel.tsx
|
|
528
|
+
var import_class_variance_authority6 = require("class-variance-authority");
|
|
529
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
530
|
+
var stepLabel = (0, import_class_variance_authority6.cva)(
|
|
531
|
+
[
|
|
532
|
+
"flex text-body-2 ",
|
|
533
|
+
"text-on-surface group-disabled/btn:text-on-surface/dim-1",
|
|
534
|
+
"group-data-[orientation=horizontal]/list:mt-md",
|
|
535
|
+
"group-data-[orientation=vertical]/list:ml-md",
|
|
536
|
+
"group-data-[orientation=vertical]/list:my-auto"
|
|
537
|
+
],
|
|
538
|
+
{
|
|
539
|
+
variants: {
|
|
540
|
+
state: {
|
|
541
|
+
complete: "",
|
|
542
|
+
incomplete: "",
|
|
543
|
+
active: "font-bold"
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
);
|
|
548
|
+
var ProgressTrackerStepLabel = ({
|
|
549
|
+
className,
|
|
550
|
+
children
|
|
551
|
+
}) => {
|
|
552
|
+
const { state } = useProgressTrackerStepContext();
|
|
553
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: stepLabel({ state, className }), children });
|
|
554
|
+
};
|
|
555
|
+
ProgressTrackerStepLabel.displayName = "ProgressTracker.StepLabel";
|
|
556
|
+
|
|
557
|
+
// src/progress-tracker/index.ts
|
|
558
|
+
var ProgressTracker2 = Object.assign(ProgressTracker, {
|
|
559
|
+
Step: ProgressTrackerStep,
|
|
560
|
+
StepLabel: ProgressTrackerStepLabel,
|
|
561
|
+
StepIndicator: ProgressTrackerStepIndicator
|
|
562
|
+
});
|
|
563
|
+
ProgressTracker2.displayName = "ProgressTracker";
|
|
564
|
+
ProgressTrackerStep.displayName = "ProgressTracker.Step";
|
|
565
|
+
ProgressTrackerStepLabel.displayName = "ProgressTracker.StepLabel";
|
|
566
|
+
ProgressTrackerStepIndicator.displayName = "ProgressTracker.StepIndicator";
|
|
567
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
568
|
+
0 && (module.exports = {
|
|
569
|
+
ProgressTracker
|
|
570
|
+
});
|
|
571
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/progress-tracker/index.ts","../../src/progress-tracker/ProgressTracker.tsx","../../src/progress-tracker/ProgressTracker.styles.ts","../../src/progress-tracker/ProgressTrackerContext.ts","../../src/progress-tracker/ProgressTrackerStep.tsx","../../src/progress-tracker/ProgressTrackerStep.styles.ts","../../src/progress-tracker/ProgressTrackerStepIndicator.tsx","../../src/icon/Icon.tsx","../../src/slot/Slot.tsx","../../src/visually-hidden/VisuallyHidden.tsx","../../src/icon/Icon.styles.tsx","../../src/progress-tracker/ProgressTrackerStepIndicator.styles.ts","../../src/progress-tracker/ProgressTrackerStepLabel.tsx"],"sourcesContent":["import { ProgressTracker as Root, type ProgressTrackerProps } from './ProgressTracker'\nimport { ProgressTrackerStep as Step, type ProgressTrackerStepProps } from './ProgressTrackerStep'\nimport {\n ProgressTrackerStepIndicator as StepIndicator,\n type ProgressTrackerStepIndicatorProps,\n} from './ProgressTrackerStepIndicator'\nimport { ProgressTrackerStepLabel as StepLabel } from './ProgressTrackerStepLabel'\n\nexport const ProgressTracker: typeof Root & {\n Step: typeof Step\n StepLabel: typeof StepLabel\n StepIndicator: typeof StepIndicator\n} = Object.assign(Root, {\n Step,\n StepLabel,\n StepIndicator,\n})\n\nProgressTracker.displayName = 'ProgressTracker'\nStep.displayName = 'ProgressTracker.Step'\nStepLabel.displayName = 'ProgressTracker.StepLabel'\nStepIndicator.displayName = 'ProgressTracker.StepIndicator'\n\nexport type { ProgressTrackerProps, ProgressTrackerStepProps, ProgressTrackerStepIndicatorProps }\n","import { cx } from 'class-variance-authority'\nimport { type ComponentPropsWithRef, type PropsWithChildren, useState } from 'react'\n\nimport { progressList } from './ProgressTracker.styles'\nimport {\n ProgressTrackerContext,\n type ProgressTrackerContextInterface,\n} from './ProgressTrackerContext'\nimport type { StepIndicatorVariantProps } from './ProgressTrackerStepIndicator.styles'\n\nexport interface ProgressTrackerProps\n extends ComponentPropsWithRef<'div'>,\n Pick<StepIndicatorVariantProps, 'size' | 'intent'> {\n /**\n * The orientation of the progress tracker\n * @default 'horizontal\"\n */\n orientation?: 'horizontal' | 'vertical'\n /**\n * The index of the current step.\n * @default 0\n */\n stepIndex?: number\n /**\n * Event handler called when clicking on a step.\n */\n onStepClick?: (stepIndex: number) => void\n /**\n * Sets the component as interactive or not.\n * @default false\n */\n readOnly?: boolean\n}\n\nexport const ProgressTracker = ({\n stepIndex = 0,\n onStepClick,\n readOnly = false,\n intent = 'basic',\n size = 'lg',\n orientation = 'horizontal',\n children,\n className,\n ref,\n ...rest\n}: PropsWithChildren<ProgressTrackerProps>) => {\n const [steps, setSteps] = useState<ProgressTrackerContextInterface['steps']>(new Map())\n\n const Component = readOnly ? 'div' : 'nav'\n\n return (\n <ProgressTrackerContext.Provider\n value={{ stepIndex, onStepClick, steps, setSteps, size, intent, readOnly }}\n >\n <Component\n ref={ref}\n data-spark-component=\"progress-tracker\"\n className={cx('inline-flex', className)}\n {...rest}\n >\n <ol\n data-orientation={orientation}\n className={progressList}\n style={{ counterReset: 'step' }}\n >\n {children}\n </ol>\n </Component>\n </ProgressTrackerContext.Provider>\n )\n}\n\nProgressTracker.displayName = 'ProgressTracker'\n","import { cx } from 'class-variance-authority'\n\nexport const progressList = cx([\n 'flex flex-nowrap items-start group/list',\n 'data-[orientation=horizontal]:flex-row data-[orientation=horizontal]:w-full',\n 'data-[orientation=vertical]:flex-col',\n])\n","import { createContext, type Dispatch, type SetStateAction, useContext } from 'react'\n\nimport type { ProgressTrackerProps } from './ProgressTracker'\n\n// Interfaces\nexport type ProgressTrackerContextInterface = Required<\n Pick<ProgressTrackerProps, 'stepIndex' | 'size' | 'intent' | 'readOnly'>\n> &\n Pick<ProgressTrackerProps, 'onStepClick'> & {\n steps: Map<string, string[]>\n setSteps: Dispatch<SetStateAction<Map<string, string[]>>>\n }\n\nexport interface ProgressTrackerStepContextInterface {\n index: number\n state: 'active' | 'complete' | 'incomplete'\n}\n\n// Contexts\nexport const ProgressTrackerContext = createContext<ProgressTrackerContextInterface>(\n {} as ProgressTrackerContextInterface\n)\n\nexport const ProgressTrackerStepContext = createContext<ProgressTrackerStepContextInterface>(\n {} as ProgressTrackerStepContextInterface\n)\n\n// Hooks\nexport const useProgressTrackerContext = () => useContext(ProgressTrackerContext)\n\nexport const useProgressTrackerStepContext = () => useContext(ProgressTrackerStepContext)\n\nexport const ID_PREFIX = ':progress-tracker'\n","import { type ComponentPropsWithRef, type ReactNode, useEffect, useId } from 'react'\n\nimport {\n ID_PREFIX,\n ProgressTrackerStepContext,\n useProgressTrackerContext,\n} from './ProgressTrackerContext'\nimport { stepButtonVariant, stepItemVariant } from './ProgressTrackerStep.styles'\nimport { ProgressTrackerStepIndicator } from './ProgressTrackerStepIndicator'\n\nexport type ProgressTrackerStepProps = ComponentPropsWithRef<'li'> &\n (\n | {\n disabled?: boolean\n children: ReactNode\n }\n | {\n disabled?: boolean\n 'aria-label': string\n }\n )\n\nexport const ProgressTrackerStep = ({\n disabled = false,\n children,\n 'aria-label': ariaLabel,\n className,\n ref,\n ...rest\n}: ProgressTrackerStepProps) => {\n const {\n stepIndex: currentStepIndex,\n steps,\n onStepClick,\n setSteps,\n size,\n intent,\n readOnly,\n } = useProgressTrackerContext()\n\n const stepId = `${ID_PREFIX}-step-${useId()}`\n const stepIndex = [...steps.keys()].indexOf(stepId)\n\n const disabledAfter = (() => {\n const nextStepId = [...steps.keys()][stepIndex + 1]\n\n return !!(nextStepId && steps.get(nextStepId)?.includes('disabled'))\n })()\n\n const progressState = (() => {\n if (stepIndex === currentStepIndex) return 'active'\n else if (stepIndex < currentStepIndex) return 'complete'\n else return 'incomplete'\n })()\n\n useEffect(() => {\n setSteps(steps => {\n const newSteps = new Map(steps)\n\n return newSteps.set(\n stepId,\n [progressState, disabled ? 'disabled' : ''].filter(v => !!v)\n )\n })\n\n return () => {\n setSteps(steps => {\n steps.delete(stepId)\n\n return steps\n })\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n\n return (\n <li\n data-spark-component=\"progress-tracker-step\"\n id={stepId}\n ref={ref}\n data-state={progressState}\n {...(progressState === 'active' && {\n 'aria-current': 'step',\n })}\n className={stepItemVariant({\n size,\n intent,\n disabled,\n disabledAfter,\n })}\n {...rest}\n >\n <button\n type=\"button\"\n aria-label={ariaLabel}\n data-interactive={!disabled && !readOnly}\n {...(!disabled &&\n !readOnly && {\n onClick: () => onStepClick?.(stepIndex),\n })}\n disabled={disabled}\n className={stepButtonVariant({\n size,\n readOnly,\n className,\n })}\n >\n <ProgressTrackerStepContext.Provider\n value={{\n index: stepIndex,\n state: progressState,\n }}\n >\n {children || <ProgressTrackerStepIndicator />}\n </ProgressTrackerStepContext.Provider>\n </button>\n </li>\n )\n}\n\nProgressTrackerStep.displayName = 'ProgressTracker.Step'\n","import { cva } from 'class-variance-authority'\n\nexport const stepItemVariant = cva(\n [\n 'relative inline-flex items-start flex-auto first:grow-0 justify-center group/item',\n // Progress Track\n 'after:absolute after:z-base',\n 'last:after:content-none',\n 'after:bg-outline',\n 'group-data-[orientation=horizontal]/list:before:bg-outline',\n // Horizontal orientation\n 'group-data-[orientation=horizontal]/list:px-[1px]',\n 'group-data-[orientation=horizontal]/list:before:absolute group-data-[orientation=horizontal]/list:before:z-base',\n 'group-data-[orientation=horizontal]/list:before:left-0 group-data-[orientation=horizontal]/list:after:right-0',\n 'group-data-[orientation=horizontal]/list:before:h-[1px] group-data-[orientation=horizontal]/list:after:h-[1px]',\n 'first:group-data-[orientation=horizontal]/list:before:content-none',\n // Vertical orientation\n 'group-data-[orientation=vertical]/list:py-[1px]',\n 'group-data-[orientation=vertical]/list:items-start',\n 'group-data-[orientation=vertical]/list:after:w-[1px] group-data-[orientation=vertical]/list:after:bottom-[-1px]',\n ],\n {\n variants: {\n size: {\n sm: [\n // Horizontal orientation\n 'group-data-[orientation=horizontal]/list:before:top-[8px] group-data-[orientation=horizontal]/list:after:top-[8px]',\n 'group-data-[orientation=horizontal]/list:before:right-[calc(50%+12px)] group-data-[orientation=horizontal]/list:after:left-[calc(50%+12px)]',\n 'first:group-data-[orientation=horizontal]/list:after:left-[calc(50%+10px)]',\n 'last:group-data-[orientation=horizontal]/list:before:right-[calc(50%+10px)]',\n // Vertical orientation\n 'group-data-[orientation=vertical]/list:after:left-[8px]',\n 'group-data-[orientation=vertical]/list:after:top-[25px]',\n 'first:group-data-[orientation=vertical]/list:after:top-[21px]',\n ],\n md: [\n // Horizontal orientation\n 'group-data-[orientation=horizontal]/list:before:top-[12px] group-data-[orientation=horizontal]/list:after:top-[12px]',\n 'group-data-[orientation=horizontal]/list:before:right-[calc(50%+16px)] group-data-[orientation=horizontal]/list:after:left-[calc(50%+16px)]',\n 'first:group-data-[orientation=horizontal]/list:after:left-[calc(50%+14px)]',\n 'last:group-data-[orientation=horizontal]/list:before:right-[calc(50%+14px)]',\n // Vertical orientation\n 'group-data-[orientation=vertical]/list:after:left-[12px]',\n 'group-data-[orientation=vertical]/list:after:top-[33px]',\n 'first:group-data-[orientation=vertical]/list:after:top-[29px]',\n ],\n lg: [\n // Horizontal orientation\n 'group-data-[orientation=horizontal]/list:before:top-[16px] group-data-[orientation=horizontal]/list:after:top-[16px]',\n 'group-data-[orientation=horizontal]/list:before:right-[calc(50%+20px)] group-data-[orientation=horizontal]/list:after:left-[calc(50%+20px)]',\n 'first:group-data-[orientation=horizontal]/list:after:left-[calc(50%+18px)]',\n 'last:group-data-[orientation=horizontal]/list:before:right-[calc(50%+18px)]',\n // Vertical orientation\n 'group-data-[orientation=vertical]/list:after:left-[16px]',\n 'group-data-[orientation=vertical]/list:after:top-[41px]',\n 'first:group-data-[orientation=vertical]/list:after:top-[37px]',\n ],\n },\n intent: {\n basic: '',\n neutral: '',\n success: '',\n },\n disabled: {\n true: 'before:opacity-dim-3',\n false: '',\n },\n disabledAfter: {\n true: 'after:opacity-dim-3',\n false: '',\n },\n },\n defaultVariants: {\n disabled: false,\n disabledAfter: false,\n size: 'lg',\n intent: 'basic',\n },\n }\n)\n\nexport const stepButtonVariant = cva(\n [\n 'relative flex group/btn disabled:cursor-default',\n // Horizontal orientation\n 'group-data-[orientation=horizontal]/list:flex-col group-data-[orientation=horizontal]/list:items-center',\n 'group-data-[orientation=horizontal]/list:text-center group-data-[orientation=horizontal]/list:mx-sm',\n 'group-first/item:group-data-[orientation=horizontal]/list:ml-0 group-last/item:group-data-[orientation=horizontal]/list:mr-0',\n // Vertical orientation\n 'group-data-[orientation=vertical]/list:flex-row group-data-[orientation=vertical]/list:items-start',\n 'group-data-[orientation=vertical]/list:text-left group-data-[orientation=vertical]/list:my-sm',\n 'group-first/item:group-data-[orientation=vertical]/list:mt-0 group-last/item:group-data-[orientation=vertical]/list:mb-0',\n ],\n {\n variants: {\n size: {\n sm: [\n 'group-data-[orientation=horizontal]/list:min-w-sz-16 group-data-[orientation=horizontal]/list:mt-[16px]',\n 'group-data-[orientation=vertical]/list:min-h-sz-16 group-data-[orientation=vertical]/list:ml-[16px]',\n ],\n md: [\n 'group-data-[orientation=horizontal]/list:min-w-sz-24 group-data-[orientation=horizontal]/list:mt-[24px]',\n 'group-data-[orientation=vertical]/list:min-h-sz-24 group-data-[orientation=vertical]/list:ml-[24px]',\n ],\n lg: [\n 'group-data-[orientation=horizontal]/list:min-w-sz-32 group-data-[orientation=horizontal]/list:mt-[32px]',\n 'group-data-[orientation=vertical]/list:min-h-sz-32 group-data-[orientation=vertical]/list:ml-[32px]',\n ],\n },\n readOnly: {\n true: 'cursor-default',\n false: 'cursor-pointer',\n },\n },\n defaultVariants: {\n size: 'lg',\n readOnly: false,\n },\n }\n)\n","import { Check } from '@spark-ui/icons/Check'\nimport type { ComponentPropsWithoutRef, ReactNode } from 'react'\n\nimport { Icon } from '../icon'\nimport { useProgressTrackerContext, useProgressTrackerStepContext } from './ProgressTrackerContext'\nimport { stepIndicatorVariant } from './ProgressTrackerStepIndicator.styles'\n\nexport type ProgressTrackerStepIndicatorProps = ComponentPropsWithoutRef<'span'> & {\n /**\n * The content to be rendered when step status is complete (checkmark icon by default)\n */\n complete?: ReactNode\n /**\n * The content to be rendered when step status is incomplete (step index by default)\n */\n incomplete?: ReactNode\n}\n\nconst CompleteIndicator = () => (\n <Icon size=\"sm\">\n <Check />\n </Icon>\n)\n\nexport const ProgressTrackerStepIndicator = ({\n complete,\n incomplete,\n className,\n}: ProgressTrackerStepIndicatorProps) => {\n const { size, intent } = useProgressTrackerContext()\n const { index, state } = useProgressTrackerStepContext()\n\n return (\n <span className={stepIndicatorVariant({ size, intent, state, className })} aria-hidden=\"true\">\n {size !== 'sm' && (\n <>\n {state === 'complete' && (complete === undefined ? <CompleteIndicator /> : complete)}\n {state !== 'complete' && (incomplete === undefined ? `${index + 1}` : incomplete)}\n </>\n )}\n </span>\n )\n}\n\nProgressTrackerStepIndicator.displayName = 'ProgressTracker.StepIndicator'\n","import { Children, cloneElement, ComponentPropsWithoutRef, ReactElement, ReactNode } from 'react'\n\nimport { VisuallyHidden } from '../visually-hidden'\nimport { iconStyles, IconVariantsProps } from './Icon.styles'\n\nexport interface IconProps extends IconVariantsProps, ComponentPropsWithoutRef<'svg'> {\n /**\n * The svg icon that will be wrapped\n */\n children: ReactNode\n /**\n * The accessible label for the icon. This label will be visually hidden but announced to screen\n * reader users, similar to `alt` text for `img` tags.\n */\n label?: string\n}\n\nexport const Icon = ({\n label,\n className,\n size = 'current',\n intent = 'current',\n children,\n ...others\n}: IconProps) => {\n const child = Children.only(children)\n\n return (\n <>\n {cloneElement(child as ReactElement<Record<string, any>>, {\n className: iconStyles({ className, size, intent }),\n 'data-spark-component': 'icon',\n 'aria-hidden': 'true',\n focusable: 'false',\n ...others,\n })}\n\n {label && <VisuallyHidden>{label}</VisuallyHidden>}\n </>\n )\n}\n\nIcon.displayName = 'Icon'\n","import { Slot as RadixSlot } from 'radix-ui'\nimport {\n cloneElement,\n HTMLAttributes,\n isValidElement,\n PropsWithChildren,\n ReactNode,\n Ref,\n} from 'react'\n\nexport const Slottable: typeof RadixSlot.Slottable = RadixSlot.Slottable\n\nexport type SlotProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {\n ref?: Ref<HTMLElement>\n}\n\nexport const Slot = ({ ref, ...props }: SlotProps) => {\n return <RadixSlot.Root ref={ref} {...props} />\n}\n\n/**\n * When using Radix `Slot` component, it will consider its first child to merge its props with.\n * In some cases, you might need to wrap the top child with additional markup without breaking this behaviour.\n */\nexport const wrapPolymorphicSlot = (\n asChild: boolean | undefined,\n children: ReactNode,\n callback: (children: ReactNode) => ReactNode\n) => {\n if (!asChild) return callback(children) // If polymorphic behaviour is not used, we keep the original children\n\n return isValidElement(children)\n ? cloneElement(\n children,\n undefined,\n callback((children.props as { children: ReactNode }).children)\n )\n : null\n}\n","import { HTMLAttributes, PropsWithChildren, Ref } from 'react'\n\nimport { Slot } from '../slot'\n\nexport type VisuallyHiddenProps = PropsWithChildren<HTMLAttributes<HTMLElement>> & {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n */\n asChild?: boolean\n ref?: Ref<HTMLElement>\n}\n\nexport const VisuallyHidden = ({ asChild = false, ref, ...props }: VisuallyHiddenProps) => {\n const Component = asChild ? Slot : 'span'\n\n return (\n <Component\n {...props}\n ref={ref}\n style={{\n // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss\n position: 'absolute',\n border: 0,\n width: 1,\n height: 1,\n padding: 0,\n margin: -1,\n overflow: 'hidden',\n clip: 'rect(0, 0, 0, 0)',\n whiteSpace: 'nowrap',\n wordWrap: 'normal',\n ...props.style,\n }}\n />\n )\n}\n\nVisuallyHidden.displayName = 'VisuallyHidden'\n","import { makeVariants } from '@spark-ui/internal-utils'\nimport { cva, VariantProps } from 'class-variance-authority'\n\nexport const iconStyles = cva(['fill-current shrink-0'], {\n variants: {\n /**\n * Color scheme of the icon.\n */\n intent: makeVariants<\n 'intent',\n [\n 'current',\n 'main',\n 'support',\n 'accent',\n 'basic',\n 'success',\n 'alert',\n 'error',\n 'info',\n 'neutral',\n ]\n >({\n current: ['text-current'],\n main: ['text-main'],\n support: ['text-support'],\n accent: ['text-accent'],\n basic: ['text-basic'],\n success: ['text-success'],\n alert: ['text-alert'],\n error: ['text-error'],\n info: ['text-info'],\n neutral: ['text-neutral'],\n }),\n /**\n * Sets the size of the icon.\n */\n size: makeVariants<'size', ['current', 'sm', 'md', 'lg', 'xl']>({\n current: ['u-current-font-size'],\n sm: ['w-sz-16', 'h-sz-16'],\n md: ['w-sz-24', 'h-sz-24'],\n lg: ['w-sz-32', 'h-sz-32'],\n xl: ['w-sz-40', 'h-sz-40'],\n }),\n },\n})\n\nexport type IconVariantsProps = VariantProps<typeof iconStyles>\n","import { cva, VariantProps } from 'class-variance-authority'\n\nexport const stepIndicatorVariant = cva(\n [\n 'relative flex shrink-0 justify-center items-center',\n 'rounded-full',\n 'text-body-2 font-bold',\n 'group-disabled/btn:opacity-dim-3',\n ],\n {\n variants: {\n size: {\n sm: [\n 'w-sz-16 h-sz-16',\n 'group-data-[orientation=horizontal]/list:mt-[-16px]',\n 'group-data-[orientation=vertical]/list:ml-[-16px]',\n ],\n md: [\n 'w-sz-24 h-sz-24',\n 'group-data-[orientation=horizontal]/list:mt-[-24px]',\n 'group-data-[orientation=vertical]/list:ml-[-24px]',\n ],\n lg: [\n 'w-sz-32 h-sz-32',\n 'group-data-[orientation=horizontal]/list:mt-[-32px]',\n 'group-data-[orientation=vertical]/list:ml-[-32px]',\n ],\n },\n intent: {\n basic: '',\n neutral: '',\n success: '',\n },\n state: {\n complete: '',\n incomplete: '',\n active: '',\n },\n },\n /**\n * Known type issue with CVA compoundVariants and VS Code/Intellisense:\n * https://github.com/joe-bell/cva/discussions/195#discussioncomment-6750163\n * */\n /* @ts-ignore */\n compoundVariants: [\n // Basic\n {\n intent: 'basic',\n state: ['complete', 'incomplete'],\n class: [\n 'text-on-basic-container bg-basic-container',\n 'group-hover/btn:group-data-[interactive=true]/btn:bg-basic-container-hovered',\n 'group-hover/btn:group-data-[interactive=false]/btn:bg-basic-container',\n ],\n },\n {\n intent: 'basic',\n state: 'active',\n class: 'text-on-basic bg-basic',\n },\n // Neutral\n {\n intent: 'neutral',\n state: ['complete', 'incomplete'],\n class: [\n 'text-on-neutral-container bg-neutral-container',\n 'group-hover/btn:group-data-[interactive=true]/btn:bg-neutral-container-hovered',\n 'group-hover/btn:group-data-[interactive=false]/btn:bg-neutral-container',\n ],\n },\n {\n intent: 'neutral',\n state: 'active',\n class: 'text-on-neutral bg-neutral',\n },\n // Success\n {\n intent: 'success',\n state: ['complete', 'incomplete'],\n class: [\n 'text-on-success-container bg-success-container',\n 'group-hover/btn:group-data-[interactive=true]/btn:bg-success-container-hovered',\n 'group-hover/btn:group-data-[interactive=false]/btn:bg-success-container',\n ],\n },\n {\n intent: 'success',\n state: 'active',\n class: 'text-on-success bg-success',\n },\n ],\n defaultVariants: {\n size: 'lg',\n state: 'incomplete',\n intent: 'basic',\n },\n }\n)\n\nexport type StepIndicatorVariantProps = VariantProps<typeof stepIndicatorVariant>\n","import { cva } from 'class-variance-authority'\nimport type { ComponentPropsWithoutRef, ReactNode } from 'react'\n\nimport { useProgressTrackerStepContext } from './ProgressTrackerContext'\n\ntype ProgressTrackerStepLabelProps = ComponentPropsWithoutRef<'span'> & {\n children: ReactNode\n}\n\nconst stepLabel = cva(\n [\n 'flex text-body-2 ',\n 'text-on-surface group-disabled/btn:text-on-surface/dim-1',\n 'group-data-[orientation=horizontal]/list:mt-md',\n 'group-data-[orientation=vertical]/list:ml-md',\n 'group-data-[orientation=vertical]/list:my-auto',\n ],\n {\n variants: {\n state: {\n complete: '',\n incomplete: '',\n active: 'font-bold',\n },\n },\n }\n)\n\nexport const ProgressTrackerStepLabel = ({\n className,\n children,\n}: ProgressTrackerStepLabelProps) => {\n const { state } = useProgressTrackerStepContext()\n\n return <span className={stepLabel({ state, className })}>{children}</span>\n}\n\nProgressTrackerStepLabel.displayName = 'ProgressTracker.StepLabel'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,yBAAAA;AAAA;AAAA;;;ACAA,IAAAC,mCAAmB;AACnB,IAAAC,gBAA6E;;;ACD7E,sCAAmB;AAEZ,IAAM,mBAAe,oCAAG;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AACF,CAAC;;;ACND,mBAA8E;AAmBvE,IAAM,6BAAyB;AAAA,EACpC,CAAC;AACH;AAEO,IAAM,iCAA6B;AAAA,EACxC,CAAC;AACH;AAGO,IAAM,4BAA4B,UAAM,yBAAW,sBAAsB;AAEzE,IAAM,gCAAgC,UAAM,yBAAW,0BAA0B;AAEjF,IAAM,YAAY;;;AF4BjB;AA1BD,IAAM,kBAAkB,CAAC;AAAA,EAC9B,YAAY;AAAA,EACZ;AAAA,EACA,WAAW;AAAA,EACX,SAAS;AAAA,EACT,OAAO;AAAA,EACP,cAAc;AAAA,EACd;AAAA,EACA;AAA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AAA,UACF,CAAC;AAAA,UAED;AAAA,YAAC,2BAA2B;AAAA,YAA3B;AAAA,cACC,OAAO;AAAA,gBACL,OAAO;AAAA,gBACP,OAAO;AAAA,cACT;AAAA,cAEC,sBAAY,6CAAC,gCAA6B;AAAA;AAAA,UAC7C;AAAA;AAAA,MACF;AAAA;AAAA,EACF;AAEJ;AAEA,oBAAoB,cAAc;;;AQxHlC,IAAAC,mCAAoB;AAkCX,IAAAC,sBAAA;AAzBT,IAAM,gBAAY;AAAA,EAChB;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,OAAO;AAAA,QACL,UAAU;AAAA,QACV,YAAY;AAAA,QACZ,QAAQ;AAAA,MACV;AAAA,IACF;AAAA,EACF;AACF;AAEO,IAAM,2BAA2B,CAAC;AAAA,EACvC;AAAA,EACA;AACF,MAAqC;AACnC,QAAM,EAAE,MAAM,IAAI,8BAA8B;AAEhD,SAAO,6CAAC,UAAK,WAAW,UAAU,EAAE,OAAO,UAAU,CAAC,GAAI,UAAS;AACrE;AAEA,yBAAyB,cAAc;;;AZ7BhC,IAAMC,mBAIT,OAAO,OAAO,iBAAM;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAEDA,iBAAgB,cAAc;AAC9B,oBAAK,cAAc;AACnB,yBAAU,cAAc;AACxB,6BAAc,cAAc;","names":["ProgressTracker","import_class_variance_authority","import_react","import_react","import_class_variance_authority","import_react","import_react","import_jsx_runtime","RadixSlot","import_jsx_runtime","import_class_variance_authority","import_jsx_runtime","import_class_variance_authority","import_jsx_runtime","import_jsx_runtime","steps","import_class_variance_authority","import_jsx_runtime","ProgressTracker"]}
|