@povio/ui 5.0.0-rc.13 → 5.0.0-rc.15

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 (82) hide show
  1. package/README.md +8 -0
  2. package/dist/{AppCanvasPage-DtWEvs_Y.js → AppCanvasPage-BnyCHO3I.js} +152 -462
  3. package/dist/{AppCanvasPage-BZ2mrKY4.d.ts → AppCanvasPage-U9SxNwjS.d.ts} +1 -1
  4. package/dist/{BottomSheet-BXLE3161.js → BottomSheet-AqYVSMK9.js} +1 -75
  5. package/dist/BottomSheetHeader-Be6Elvs2.js +79 -0
  6. package/dist/{Calendar-DRHruqr_.js → Calendar-1p3VjSED.js} +3 -3
  7. package/dist/{CanvasComponentsFrame-CbgJJv-3.js → CanvasComponentsFrame-Dp0oDDoH.js} +6 -6
  8. package/dist/{UIConfigurator-DekPXjv9.js → CanvasInspector-DdP3mHUY.js} +1707 -522
  9. package/dist/{ComponentGallery-COqEqqN6.js → ComponentGallery-C_rXFvUY.js} +250 -1797
  10. package/dist/{DatePicker-xDEqzNJv.js → DatePicker-CAzuZRmd.js} +6 -6
  11. package/dist/{DatePickerInput-B0fEeCOf.js → DatePickerInput-BeQOVCk0.js} +4 -3
  12. package/dist/{DateRangePicker-DxuVhRaf.js → DateRangePicker-X3mBhfmL.js} +5 -5
  13. package/dist/{DateTimePicker-4N1Pka07.js → DateTimePicker-EtmGtoRe.js} +6 -6
  14. package/dist/{InputItem-Cv19Hwnx.js → InputItem-yC5oMyN-.js} +7 -7
  15. package/dist/{Inputs-D1aE_J9f.js → Inputs-Bd2nRNqk.js} +1 -1
  16. package/dist/{NumberRangeInput-Bzfe-RlV.js → NumberRangeInput-TkPXiWV3.js} +2 -2
  17. package/dist/{RichTextEditor-Bd7F5D8f.js → RichTextEditor-DiaPcBUM.js} +110 -32
  18. package/dist/{Select-CgIhoWgk.js → Select-tNlFSbAC.js} +5 -5
  19. package/dist/{Table-piX1SWvN.js → Table-CgG02oHQ.js} +1 -1
  20. package/dist/{TextArea-uPffb457.js → TextArea-DuvFUjts.js} +1 -1
  21. package/dist/{TimePicker-DN-i98z5.js → TimePicker-CBkiE-Yq.js} +5 -4
  22. package/dist/{TooltipWrapper-CDHFaUKZ.js → TooltipWrapper-CSXs5-E3.js} +2 -2
  23. package/dist/components/autocomplete.js +3 -3
  24. package/dist/components/bottom-sheet.js +1 -1
  25. package/dist/components/date-picker.js +1 -1
  26. package/dist/components/date-range-picker.js +1 -1
  27. package/dist/components/date-time-picker.js +1 -1
  28. package/dist/components/input.js +3 -3
  29. package/dist/components/number-field.js +3 -3
  30. package/dist/components/number-range-input.js +1 -1
  31. package/dist/components/query-autocomplete.js +1 -1
  32. package/dist/components/query-select.js +2 -2
  33. package/dist/components/select.js +1 -1
  34. package/dist/components/text-area.js +1 -1
  35. package/dist/components/time-picker.js +1 -1
  36. package/dist/config/app-canvas-tanstack.d.ts +1 -1
  37. package/dist/config/app-canvas-tanstack.js +1 -1
  38. package/dist/config/app-canvas.d.ts +1 -1
  39. package/dist/config/app-canvas.js +1 -1
  40. package/dist/config/ui-configurator-vite.d.ts +2 -0
  41. package/dist/config/ui-configurator-vite.js +234 -8
  42. package/dist/config/ui-configurator.d.ts +21 -2
  43. package/dist/config/ui-configurator.js +121 -3
  44. package/dist/{datePickerValue.utils-QWR2q5Vv.js → datePickerValue.utils-BDB6KM8q.js} +1 -1
  45. package/dist/demos-DIwj5vc0.js +2011 -0
  46. package/dist/index.js +7 -7
  47. package/dist/{logger-CqZjM-sn.js → logger-CW24po62.js} +10 -1
  48. package/dist/rhf/date-picker.js +1 -1
  49. package/dist/rhf/date-range-picker.js +1 -1
  50. package/dist/rhf/date-time-picker.js +1 -1
  51. package/dist/rhf/number-range-input.js +1 -1
  52. package/dist/rhf/rich-text-editor.js +1 -1
  53. package/dist/rhf/select.js +1 -1
  54. package/dist/rhf/text-area.js +1 -1
  55. package/dist/rhf/time-picker.js +1 -1
  56. package/dist/rhf.js +7 -7
  57. package/dist/rich-text-editor.js +1 -1
  58. package/dist/{staticDateTimeSegments-BWea3HAt.js → staticDateTimeSegments-Bs1_N5MR.js} +1 -1
  59. package/dist/{staticSelect.utils-BfTCi26B.js → staticSelect.utils-BgdYv2vP.js} +5 -4
  60. package/dist/styles/app-canvas.css +30 -24
  61. package/dist/styles/configurator.css +544 -34
  62. package/dist/tanstack/date-picker.js +1 -1
  63. package/dist/tanstack/date-range-picker.js +1 -1
  64. package/dist/tanstack/date-time-picker.js +1 -1
  65. package/dist/tanstack/form.js +1 -1
  66. package/dist/tanstack/inputs.js +1 -1
  67. package/dist/tanstack/number-range-input.js +1 -1
  68. package/dist/tanstack/rich-text-editor.js +1 -1
  69. package/dist/tanstack/select.js +1 -1
  70. package/dist/tanstack/table.js +2 -2
  71. package/dist/tanstack/text-area.js +1 -1
  72. package/dist/tanstack/time-picker.js +1 -1
  73. package/dist/tanstack.js +15 -15
  74. package/dist/token-classes-BqLWiy6O.js +245 -0
  75. package/dist/{useFieldAccessibility-B-bjtrNw.js → useFieldAccessibility-DnCdz938.js} +2 -1
  76. package/dist/{useFormAutosave-pmh35PXp.js → useFormAutosave-CxqZAJAB.js} +1 -1
  77. package/dist/{useStaticInputHandoff-B7DEm75m.js → useStaticInputHandoff-DKsxpVck.js} +2 -1
  78. package/dist/{useTableColumnConfig-CNJ_ZvIN.js → useTableColumnConfig-BnbKElno.js} +1 -1
  79. package/dist/utils/logger.js +1 -1
  80. package/package.json +1 -1
  81. package/dist/groups-oQmSeqXn.js +0 -18
  82. package/dist/underline-66hmELxa.js +0 -81
@@ -0,0 +1,2011 @@
1
+ import { n as __exportAll } from "./logger-CW24po62.js";
2
+ import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
3
+ import { i as ArrowRight } from "./DropdownMenuDesktop-Cl9gZVq0.js";
4
+ import { i as Bold, n as Underline, r as Italic, t as RichTextEditor } from "./RichTextEditor-DiaPcBUM.js";
5
+ import { s as Calendar, t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
6
+ import { t as Check } from "./check-DYMBkp_Z.js";
7
+ import { t as ChevronDown } from "./chevron-down-B4Pr8bD3.js";
8
+ import { t as ChevronUp } from "./chevron-up-D_Gqpb5M.js";
9
+ import { t as FileUpload } from "./FileUpload-Cx98L1jz.js";
10
+ import { t as PasswordInput } from "./PasswordInput-DYwUZ4-k.js";
11
+ import { t as Table } from "./Table-CgG02oHQ.js";
12
+ import { t as Info } from "./info-iUmX3uDk.js";
13
+ import { t as X } from "./x-B6vfz8Ps.js";
14
+ import { t as clsx } from "./clsx-CnD0nOiA.js";
15
+ import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
16
+ import { t as Breadcrumbs } from "./Breadcrumbs-FF8hMfXd.js";
17
+ import { t as Checkbox } from "./Checkbox-D3f2Plbc.js";
18
+ import { t as Slider } from "./Slider-CMg0BXJO.js";
19
+ import { t as Accordion } from "./Accordion-BzwO4_ml.js";
20
+ import { t as RadioGroup } from "./RadioGroup-efBKgTYA.js";
21
+ import { t as Switch } from "./Switch-CqnGEdeD.js";
22
+ import { t as TextArea } from "./TextArea-DuvFUjts.js";
23
+ import { i as menuPopoverWrapperDefinition, n as menuItemDefinition, r as menuPopoverDefinition, t as dropdownMenuDefinition } from "./dropdownMenu.cva-DvEmX0bs.js";
24
+ import { i as tooltipTextDefinition, n as tooltipPointerHorizontalDefinition, t as tooltipDefinition } from "./tooltip.cva-BIzlOXHH.js";
25
+ import { t as Typography } from "./Typography-LU4z2pR1.js";
26
+ import { t as Spinner } from "./Spinner-BeVTUzzx.js";
27
+ import { t as Button } from "./Button-C5rv4Cr2.js";
28
+ import { IconButton } from "./components/icon-button.js";
29
+ import { InlineIconButton } from "./components/inline-icon-button.js";
30
+ import { BadgeButton } from "./components/badge-button.js";
31
+ import { SplitButton } from "./components/split-button.js";
32
+ import { TextButton } from "./components/text-button.js";
33
+ import { ToggleButton } from "./components/toggle-button.js";
34
+ import { t as Tag } from "./Tag-DPg5sL1Z.js";
35
+ import { t as popoverDefinition } from "./popover.cva-Bhud1wnp.js";
36
+ import { i as InputFrame } from "./useStaticInputHandoff-DKsxpVck.js";
37
+ import { Input } from "./components/input.js";
38
+ import { Autocomplete } from "./components/autocomplete.js";
39
+ import { CheckboxGroup } from "./components/checkbox-group.js";
40
+ import { t as DateRangePicker } from "./DateRangePicker-X3mBhfmL.js";
41
+ import { t as TimePicker } from "./TimePicker-CBkiE-Yq.js";
42
+ import { t as ToggleGroup } from "./ToggleGroup-DmVPNWok.js";
43
+ import { t as DatePicker } from "./DatePicker-CAzuZRmd.js";
44
+ import { t as Select } from "./Select-tNlFSbAC.js";
45
+ import { t as DateTimePicker } from "./DateTimePicker-EtmGtoRe.js";
46
+ import { t as Progress } from "./Progress-B3mY9rIP.js";
47
+ import { NumberField } from "./components/number-field.js";
48
+ import { t as NumberRangeInput } from "./NumberRangeInput-TkPXiWV3.js";
49
+ import { t as Stepper } from "./Stepper-Cp5vbL5g.js";
50
+ import { n as dialogMainDefinition, t as dialogContentDefinition } from "./dialog.cva-COhDZaVl.js";
51
+ import { Pagination } from "./components/pagination.js";
52
+ import { t as Alert } from "./Alert-CnvEb1D_.js";
53
+ import { t as Toast } from "./Toast-DtG3pA61.js";
54
+ import { Link } from "./components/link.js";
55
+ import { Badge } from "./components/badge.js";
56
+ import { t as BottomSheetHeader } from "./BottomSheetHeader-Be6Elvs2.js";
57
+ import { useState } from "react";
58
+ import { c } from "react/compiler-runtime";
59
+ import { jsx, jsxs } from "react/jsx-runtime";
60
+ //#region ../../node_modules/.bun/lucide-react@1.43.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/house.mjs
61
+ /**
62
+ * @license lucide-react v1.43.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */
67
+ const __iconData$2 = {
68
+ name: "house",
69
+ size: 24,
70
+ node: [["path", {
71
+ d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",
72
+ key: "5wwlr5"
73
+ }], ["path", {
74
+ d: "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",
75
+ key: "r6nss1"
76
+ }]],
77
+ aliases: ["home"]
78
+ };
79
+ __iconData$2.node;
80
+ const House = createLucideIcon(__iconData$2);
81
+ //#endregion
82
+ //#region ../../node_modules/.bun/lucide-react@1.43.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/send.mjs
83
+ /**
84
+ * @license lucide-react v1.43.0 - ISC
85
+ *
86
+ * This source code is licensed under the ISC license.
87
+ * See the LICENSE file in the root directory of this source tree.
88
+ */
89
+ const __iconData$1 = {
90
+ name: "send",
91
+ size: 24,
92
+ node: [["path", {
93
+ d: "M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",
94
+ key: "1ffxy3"
95
+ }], ["path", {
96
+ d: "m21.854 2.147-10.94 10.939",
97
+ key: "12cjpa"
98
+ }]]
99
+ };
100
+ __iconData$1.node;
101
+ const Send = createLucideIcon(__iconData$1);
102
+ //#endregion
103
+ //#region ../../node_modules/.bun/lucide-react@1.43.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/settings.mjs
104
+ /**
105
+ * @license lucide-react v1.43.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */
110
+ const __iconData = {
111
+ name: "settings",
112
+ size: 24,
113
+ node: [["path", {
114
+ d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
115
+ key: "1i5ecw"
116
+ }], ["circle", {
117
+ cx: "12",
118
+ cy: "12",
119
+ r: "3",
120
+ key: "1v7zrd"
121
+ }]]
122
+ };
123
+ __iconData.node;
124
+ const Settings = createLucideIcon(__iconData);
125
+ //#endregion
126
+ //#region src/components/buttons/ButtonGroup/ButtonGroup.tsx
127
+ const ButtonGroup = (t0) => {
128
+ const $ = c(11);
129
+ let className;
130
+ let props;
131
+ let t1;
132
+ if ($[0] !== t0) {
133
+ ({orientation: t1, className, ...props} = t0);
134
+ $[0] = t0;
135
+ $[1] = className;
136
+ $[2] = props;
137
+ $[3] = t1;
138
+ } else {
139
+ className = $[1];
140
+ props = $[2];
141
+ t1 = $[3];
142
+ }
143
+ const orientation = t1 === void 0 ? "horizontal" : t1;
144
+ const t2 = orientation === "horizontal" ? "flex-row items-center" : "flex-col items-stretch";
145
+ let t3;
146
+ if ($[4] !== className || $[5] !== t2) {
147
+ t3 = clsx("inline-flex", t2, className);
148
+ $[4] = className;
149
+ $[5] = t2;
150
+ $[6] = t3;
151
+ } else t3 = $[6];
152
+ let t4;
153
+ if ($[7] !== orientation || $[8] !== props || $[9] !== t3) {
154
+ t4 = /* @__PURE__ */ jsx("div", {
155
+ ...props,
156
+ role: "group",
157
+ "data-orientation": orientation,
158
+ className: t3
159
+ });
160
+ $[7] = orientation;
161
+ $[8] = props;
162
+ $[9] = t3;
163
+ $[10] = t4;
164
+ } else t4 = $[10];
165
+ return t4;
166
+ };
167
+ //#endregion
168
+ //#region src/configurator/gallery/demos.tsx
169
+ var demos_exports = /* @__PURE__ */ __exportAll({ demos: () => demos });
170
+ const noop = () => {};
171
+ const menuItems = [
172
+ {
173
+ label: "Edit",
174
+ onAction: noop
175
+ },
176
+ {
177
+ label: "Duplicate",
178
+ onAction: noop
179
+ },
180
+ {
181
+ label: "Archive",
182
+ isDisabled: true,
183
+ onAction: noop
184
+ }
185
+ ];
186
+ const eventItems = [
187
+ {
188
+ id: "1",
189
+ label: "Roundtable"
190
+ },
191
+ {
192
+ id: "2",
193
+ label: "Conference"
194
+ },
195
+ {
196
+ id: "3",
197
+ label: "Meeting"
198
+ },
199
+ {
200
+ id: "4",
201
+ label: "Party"
202
+ },
203
+ {
204
+ id: "5",
205
+ label: "Disabled item",
206
+ isDisabled: true
207
+ }
208
+ ];
209
+ const airportItems = Array.from({ length: 12 }, (_, index) => ({
210
+ id: `airport-${index + 1}`,
211
+ label: `Airport ${String(index + 1).padStart(3, "0")}`
212
+ }));
213
+ const groupOptions = [
214
+ {
215
+ label: "Option 1",
216
+ value: "option-1"
217
+ },
218
+ {
219
+ label: "Option 2",
220
+ value: "option-2"
221
+ },
222
+ {
223
+ label: "Option 3",
224
+ value: "option-3"
225
+ }
226
+ ];
227
+ const accordionContent = /* @__PURE__ */ jsx("p", {
228
+ className: "text-text-default-2",
229
+ children: "This is the content of the accordion item. It can contain any React elements."
230
+ });
231
+ const accordionItems = [
232
+ {
233
+ id: "item1",
234
+ heading: "What is your refund policy?",
235
+ subheading: "Returns & exchanges",
236
+ icon: Info,
237
+ children: accordionContent
238
+ },
239
+ {
240
+ id: "item2",
241
+ heading: "How do I track my order?",
242
+ subheading: "Shipping info",
243
+ icon: Info,
244
+ children: accordionContent
245
+ },
246
+ {
247
+ id: "item3",
248
+ heading: "Do you offer international shipping?",
249
+ subheading: "Global delivery",
250
+ icon: Info,
251
+ children: accordionContent
252
+ }
253
+ ];
254
+ const steps = [
255
+ {
256
+ id: "1",
257
+ title: "Account",
258
+ subtext: "Create your account"
259
+ },
260
+ {
261
+ id: "2",
262
+ title: "Profile",
263
+ subtext: "Tell us about yourself"
264
+ },
265
+ {
266
+ id: "3",
267
+ title: "Review",
268
+ subtext: "Review your details"
269
+ }
270
+ ];
271
+ const tableRows = [
272
+ {
273
+ name: "Ada Lovelace",
274
+ email: "ada@example.com",
275
+ role: "Admin"
276
+ },
277
+ {
278
+ name: "Alan Turing",
279
+ email: "alan@example.com",
280
+ role: "Editor"
281
+ },
282
+ {
283
+ name: "Grace Hopper",
284
+ email: "grace@example.com",
285
+ role: "Viewer"
286
+ },
287
+ {
288
+ name: "Linus Torvalds",
289
+ email: "linus@example.com",
290
+ role: "Editor"
291
+ }
292
+ ];
293
+ const tableColumns = [
294
+ {
295
+ accessorKey: "name",
296
+ header: "Name",
297
+ enableSorting: false
298
+ },
299
+ {
300
+ accessorKey: "email",
301
+ header: "Email",
302
+ enableSorting: false
303
+ },
304
+ {
305
+ accessorKey: "role",
306
+ header: "Role",
307
+ enableSorting: false
308
+ }
309
+ ];
310
+ function ToggleGroupDemo() {
311
+ const $ = c(11);
312
+ const [value, setValue] = useState("option1");
313
+ let t0;
314
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
315
+ t0 = ["bold"];
316
+ $[0] = t0;
317
+ } else t0 = $[0];
318
+ const [format, setFormat] = useState(t0);
319
+ let t1;
320
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
321
+ t1 = [
322
+ {
323
+ id: "option1",
324
+ label: "Option 1"
325
+ },
326
+ {
327
+ id: "option2",
328
+ label: "Option 2"
329
+ },
330
+ {
331
+ id: "option3",
332
+ label: "Option 3"
333
+ }
334
+ ];
335
+ $[1] = t1;
336
+ } else t1 = $[1];
337
+ let t2;
338
+ if ($[2] !== value) {
339
+ t2 = /* @__PURE__ */ jsx(ToggleGroup, {
340
+ "aria-label": "View",
341
+ items: t1,
342
+ value,
343
+ onChange: setValue
344
+ });
345
+ $[2] = value;
346
+ $[3] = t2;
347
+ } else t2 = $[3];
348
+ let t3;
349
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
350
+ t3 = /* @__PURE__ */ jsx(ToggleGroup, {
351
+ "aria-label": "Send options",
352
+ items: [{
353
+ id: "calendar",
354
+ label: "Calendar",
355
+ icon: Calendar
356
+ }, {
357
+ id: "send",
358
+ label: "Send",
359
+ icon: Send
360
+ }],
361
+ defaultValue: "calendar"
362
+ });
363
+ $[4] = t3;
364
+ } else t3 = $[4];
365
+ let t4;
366
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
367
+ t4 = [
368
+ {
369
+ id: "bold",
370
+ label: "Bold",
371
+ icon: Bold,
372
+ iconOnly: true
373
+ },
374
+ {
375
+ id: "italic",
376
+ label: "Italic",
377
+ icon: Italic,
378
+ iconOnly: true
379
+ },
380
+ {
381
+ id: "underline",
382
+ label: "Underline",
383
+ icon: Underline,
384
+ iconOnly: true
385
+ }
386
+ ];
387
+ $[5] = t4;
388
+ } else t4 = $[5];
389
+ let t5;
390
+ if ($[6] !== format) {
391
+ t5 = /* @__PURE__ */ jsx(ToggleGroup, {
392
+ "aria-label": "Formatting",
393
+ selectionMode: "multiple",
394
+ items: t4,
395
+ value: format,
396
+ onChange: setFormat
397
+ });
398
+ $[6] = format;
399
+ $[7] = t5;
400
+ } else t5 = $[7];
401
+ let t6;
402
+ if ($[8] !== t2 || $[9] !== t5) {
403
+ t6 = /* @__PURE__ */ jsxs("div", {
404
+ className: "flex flex-col items-start gap-3",
405
+ children: [
406
+ t2,
407
+ t3,
408
+ t5
409
+ ]
410
+ });
411
+ $[8] = t2;
412
+ $[9] = t5;
413
+ $[10] = t6;
414
+ } else t6 = $[10];
415
+ return t6;
416
+ }
417
+ function CheckboxGroupDemo() {
418
+ const $ = c(3);
419
+ let t0;
420
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
421
+ t0 = ["option-2"];
422
+ $[0] = t0;
423
+ } else t0 = $[0];
424
+ const [value, setValue] = useState(t0);
425
+ let t1;
426
+ if ($[1] !== value) {
427
+ t1 = /* @__PURE__ */ jsx(CheckboxGroup, {
428
+ label: "Checkbox group",
429
+ options: groupOptions,
430
+ value,
431
+ onChange: setValue
432
+ });
433
+ $[1] = value;
434
+ $[2] = t1;
435
+ } else t1 = $[2];
436
+ return t1;
437
+ }
438
+ function RadioGroupDemo() {
439
+ const $ = c(2);
440
+ const [value, setValue] = useState("option-1");
441
+ let t0;
442
+ if ($[0] !== value) {
443
+ t0 = /* @__PURE__ */ jsx(RadioGroup, {
444
+ label: "Radio group",
445
+ options: groupOptions,
446
+ value,
447
+ onChange: setValue
448
+ });
449
+ $[0] = value;
450
+ $[1] = t0;
451
+ } else t0 = $[1];
452
+ return t0;
453
+ }
454
+ function SelectDemo() {
455
+ const $ = c(8);
456
+ const [value, setValue] = useState("2");
457
+ let t0;
458
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
459
+ t0 = ["1", "3"];
460
+ $[0] = t0;
461
+ } else t0 = $[0];
462
+ const [multi, setMulti] = useState(t0);
463
+ let t1;
464
+ if ($[1] !== value) {
465
+ t1 = /* @__PURE__ */ jsx(Select, {
466
+ label: "Event type",
467
+ placeholder: "Ex.: Roundtable",
468
+ items: eventItems,
469
+ value,
470
+ onChange: setValue
471
+ });
472
+ $[1] = value;
473
+ $[2] = t1;
474
+ } else t1 = $[2];
475
+ let t2;
476
+ if ($[3] !== multi) {
477
+ t2 = /* @__PURE__ */ jsx(Select, {
478
+ label: "Event types",
479
+ placeholder: "Select several",
480
+ selectionMode: "multiple",
481
+ items: eventItems,
482
+ value: multi,
483
+ onChange: setMulti
484
+ });
485
+ $[3] = multi;
486
+ $[4] = t2;
487
+ } else t2 = $[4];
488
+ let t3;
489
+ if ($[5] !== t1 || $[6] !== t2) {
490
+ t3 = /* @__PURE__ */ jsxs("div", {
491
+ className: "flex flex-col gap-4",
492
+ children: [t1, t2]
493
+ });
494
+ $[5] = t1;
495
+ $[6] = t2;
496
+ $[7] = t3;
497
+ } else t3 = $[7];
498
+ return t3;
499
+ }
500
+ function AutocompleteDemo() {
501
+ const $ = c(2);
502
+ const [value, setValue] = useState(null);
503
+ let t0;
504
+ if ($[0] !== value) {
505
+ t0 = /* @__PURE__ */ jsx(Autocomplete, {
506
+ label: "Airport",
507
+ placeholder: "Choose an airport",
508
+ items: airportItems,
509
+ value,
510
+ onChange: setValue
511
+ });
512
+ $[0] = value;
513
+ $[1] = t0;
514
+ } else t0 = $[1];
515
+ return t0;
516
+ }
517
+ function DatePickerDemo() {
518
+ const $ = c(2);
519
+ const [value, setValue] = useState(null);
520
+ let t0;
521
+ if ($[0] !== value) {
522
+ t0 = /* @__PURE__ */ jsx(DatePicker, {
523
+ label: "Date",
524
+ value,
525
+ onChange: setValue
526
+ });
527
+ $[0] = value;
528
+ $[1] = t0;
529
+ } else t0 = $[1];
530
+ return t0;
531
+ }
532
+ function TimePickerDemo() {
533
+ const $ = c(2);
534
+ const [value, setValue] = useState(null);
535
+ let t0;
536
+ if ($[0] !== value) {
537
+ t0 = /* @__PURE__ */ jsx(TimePicker, {
538
+ label: "Time",
539
+ value,
540
+ onChange: setValue
541
+ });
542
+ $[0] = value;
543
+ $[1] = t0;
544
+ } else t0 = $[1];
545
+ return t0;
546
+ }
547
+ function DateRangePickerDemo() {
548
+ const $ = c(2);
549
+ const [value, setValue] = useState(null);
550
+ let t0;
551
+ if ($[0] !== value) {
552
+ t0 = /* @__PURE__ */ jsx(DateRangePicker, {
553
+ label: "Date range",
554
+ value,
555
+ onChange: setValue
556
+ });
557
+ $[0] = value;
558
+ $[1] = t0;
559
+ } else t0 = $[1];
560
+ return t0;
561
+ }
562
+ function DateTimePickerDemo() {
563
+ const $ = c(2);
564
+ const [value, setValue] = useState(null);
565
+ let t0;
566
+ if ($[0] !== value) {
567
+ t0 = /* @__PURE__ */ jsx(DateTimePicker, {
568
+ label: "Date and time",
569
+ value,
570
+ onChange: setValue
571
+ });
572
+ $[0] = value;
573
+ $[1] = t0;
574
+ } else t0 = $[1];
575
+ return t0;
576
+ }
577
+ function NumberRangeInputDemo() {
578
+ const $ = c(3);
579
+ let t0;
580
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
581
+ t0 = {
582
+ min: 10,
583
+ max: 100
584
+ };
585
+ $[0] = t0;
586
+ } else t0 = $[0];
587
+ const [value, setValue] = useState(t0);
588
+ let t1;
589
+ if ($[1] !== value) {
590
+ t1 = /* @__PURE__ */ jsx(NumberRangeInput, {
591
+ label: "Price range",
592
+ minPlaceholder: "Min",
593
+ maxPlaceholder: "Max",
594
+ value,
595
+ onChange: setValue
596
+ });
597
+ $[1] = value;
598
+ $[2] = t1;
599
+ } else t1 = $[2];
600
+ return t1;
601
+ }
602
+ function RichTextEditorDemo() {
603
+ const $ = c(2);
604
+ const [value, setValue] = useState(null);
605
+ let t0;
606
+ if ($[0] !== value) {
607
+ t0 = /* @__PURE__ */ jsx(RichTextEditor, {
608
+ label: "Notes",
609
+ placeholder: "Enter your text",
610
+ editorClassName: "max-h-60",
611
+ value,
612
+ onChange: setValue
613
+ });
614
+ $[0] = value;
615
+ $[1] = t0;
616
+ } else t0 = $[1];
617
+ return t0;
618
+ }
619
+ function PaginationDemo() {
620
+ const $ = c(4);
621
+ const [page, setPage] = useState(1);
622
+ const [pageSize, setPageSize] = useState(10);
623
+ let t0;
624
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
625
+ t0 = (size) => {
626
+ setPageSize(size);
627
+ setPage(1);
628
+ };
629
+ $[0] = t0;
630
+ } else t0 = $[0];
631
+ let t1;
632
+ if ($[1] !== page || $[2] !== pageSize) {
633
+ t1 = /* @__PURE__ */ jsx(Pagination, {
634
+ page,
635
+ pageSize,
636
+ totalItems: 100,
637
+ hideFirstLast: true,
638
+ onPageChange: setPage,
639
+ onPageSizeChange: t0
640
+ });
641
+ $[1] = page;
642
+ $[2] = pageSize;
643
+ $[3] = t1;
644
+ } else t1 = $[3];
645
+ return t1;
646
+ }
647
+ function DialogDemo() {
648
+ const $ = c(14);
649
+ const dialogMainCva = UIOverrides.useCva("dialog.mainCva", dialogMainDefinition);
650
+ const dialogContentCva = UIOverrides.useCva("dialog.contentCva", dialogContentDefinition);
651
+ let t0;
652
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
653
+ t0 = /* @__PURE__ */ jsx(Button, { children: "Open dialog" });
654
+ $[0] = t0;
655
+ } else t0 = $[0];
656
+ let t1;
657
+ if ($[1] !== dialogMainCva) {
658
+ t1 = dialogMainCva({});
659
+ $[1] = dialogMainCva;
660
+ $[2] = t1;
661
+ } else t1 = $[2];
662
+ let t2;
663
+ if ($[3] !== dialogContentCva) {
664
+ t2 = dialogContentCva({ className: "w-modal" });
665
+ $[3] = dialogContentCva;
666
+ $[4] = t2;
667
+ } else t2 = $[4];
668
+ let t3;
669
+ let t4;
670
+ let t5;
671
+ let t6;
672
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
673
+ t3 = /* @__PURE__ */ jsx(InlineIconButton, {
674
+ color: "secondary",
675
+ icon: X,
676
+ label: "Close",
677
+ className: "absolute top-0 right-0 p-modal-gap-desktop-modal-close-icon-top-right",
678
+ disableTooltip: true
679
+ });
680
+ t4 = /* @__PURE__ */ jsx(Typography, {
681
+ size: "h3",
682
+ as: "h2",
683
+ className: "w-full text-surface-default-card-foreground",
684
+ children: "Invite teammates"
685
+ });
686
+ t5 = /* @__PURE__ */ jsx(Input, {
687
+ label: "Email",
688
+ placeholder: "name@example.com",
689
+ className: "w-full"
690
+ });
691
+ t6 = /* @__PURE__ */ jsx(Button, {
692
+ width: "fill",
693
+ children: "Send invite"
694
+ });
695
+ $[5] = t3;
696
+ $[6] = t4;
697
+ $[7] = t5;
698
+ $[8] = t6;
699
+ } else {
700
+ t3 = $[5];
701
+ t4 = $[6];
702
+ t5 = $[7];
703
+ t6 = $[8];
704
+ }
705
+ let t7;
706
+ if ($[9] !== t2) {
707
+ t7 = /* @__PURE__ */ jsxs("div", {
708
+ "aria-label": "Invite teammates",
709
+ className: t2,
710
+ children: [
711
+ t3,
712
+ t4,
713
+ t5,
714
+ t6
715
+ ]
716
+ });
717
+ $[9] = t2;
718
+ $[10] = t7;
719
+ } else t7 = $[10];
720
+ let t8;
721
+ if ($[11] !== t1 || $[12] !== t7) {
722
+ t8 = /* @__PURE__ */ jsxs("div", {
723
+ className: "flex flex-col items-start gap-3",
724
+ children: [t0, /* @__PURE__ */ jsx("div", {
725
+ className: t1,
726
+ children: t7
727
+ })]
728
+ });
729
+ $[11] = t1;
730
+ $[12] = t7;
731
+ $[13] = t8;
732
+ } else t8 = $[13];
733
+ return t8;
734
+ }
735
+ function AlertDialogDemo() {
736
+ const $ = c(19);
737
+ const ui = UIConfig.useConfig();
738
+ const dialogMainCva = UIOverrides.useCva("dialog.mainCva", dialogMainDefinition);
739
+ const dialogContentCva = UIOverrides.useCva("dialog.contentCva", dialogContentDefinition);
740
+ let t0;
741
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
742
+ t0 = /* @__PURE__ */ jsx(Button, {
743
+ color: "error",
744
+ children: "Delete project"
745
+ });
746
+ $[0] = t0;
747
+ } else t0 = $[0];
748
+ let t1;
749
+ if ($[1] !== dialogMainCva) {
750
+ t1 = dialogMainCva({});
751
+ $[1] = dialogMainCva;
752
+ $[2] = t1;
753
+ } else t1 = $[2];
754
+ let t2;
755
+ if ($[3] !== dialogContentCva) {
756
+ t2 = dialogContentCva({ className: "w-modal" });
757
+ $[3] = dialogContentCva;
758
+ $[4] = t2;
759
+ } else t2 = $[4];
760
+ let t3;
761
+ if ($[5] !== ui.alertDialog.titleTypography) {
762
+ t3 = /* @__PURE__ */ jsx(Typography, {
763
+ ...ui.alertDialog.titleTypography,
764
+ as: "h2",
765
+ className: "text-surface-default-card-foreground",
766
+ children: "Delete project?"
767
+ });
768
+ $[5] = ui.alertDialog.titleTypography;
769
+ $[6] = t3;
770
+ } else t3 = $[6];
771
+ let t4;
772
+ if ($[7] !== ui.alertDialog.descriptionTypography) {
773
+ t4 = /* @__PURE__ */ jsx(Typography, {
774
+ ...ui.alertDialog.descriptionTypography,
775
+ className: "text-surface-default-card-foreground",
776
+ children: "This will permanently remove the project and all of its files. This action cannot be undone."
777
+ });
778
+ $[7] = ui.alertDialog.descriptionTypography;
779
+ $[8] = t4;
780
+ } else t4 = $[8];
781
+ let t5;
782
+ if ($[9] !== t3 || $[10] !== t4) {
783
+ t5 = /* @__PURE__ */ jsxs("div", {
784
+ className: "flex flex-col gap-modal-gap-text",
785
+ children: [t3, t4]
786
+ });
787
+ $[9] = t3;
788
+ $[10] = t4;
789
+ $[11] = t5;
790
+ } else t5 = $[11];
791
+ let t6;
792
+ if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
793
+ t6 = /* @__PURE__ */ jsxs("div", {
794
+ className: "flex w-full flex-wrap gap-modal-gap-buttons pt-1",
795
+ children: [/* @__PURE__ */ jsx(Button, {
796
+ color: "secondary",
797
+ width: "fill",
798
+ className: "min-w-40 flex-1 shrink-0",
799
+ children: "Cancel"
800
+ }), /* @__PURE__ */ jsx(Button, {
801
+ color: "error",
802
+ width: "fill",
803
+ className: "min-w-40 flex-1 shrink-0",
804
+ children: "Delete"
805
+ })]
806
+ });
807
+ $[12] = t6;
808
+ } else t6 = $[12];
809
+ let t7;
810
+ if ($[13] !== t2 || $[14] !== t5) {
811
+ t7 = /* @__PURE__ */ jsxs("div", {
812
+ role: "alertdialog",
813
+ "aria-label": "Delete project",
814
+ className: t2,
815
+ children: [t5, t6]
816
+ });
817
+ $[13] = t2;
818
+ $[14] = t5;
819
+ $[15] = t7;
820
+ } else t7 = $[15];
821
+ let t8;
822
+ if ($[16] !== t1 || $[17] !== t7) {
823
+ t8 = /* @__PURE__ */ jsxs("div", {
824
+ className: "flex flex-col items-start gap-3",
825
+ children: [t0, /* @__PURE__ */ jsx("div", {
826
+ className: t1,
827
+ children: t7
828
+ })]
829
+ });
830
+ $[16] = t1;
831
+ $[17] = t7;
832
+ $[18] = t8;
833
+ } else t8 = $[18];
834
+ return t8;
835
+ }
836
+ function DrawerDemo() {
837
+ const $ = c(3);
838
+ let t0;
839
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
840
+ t0 = /* @__PURE__ */ jsx(Button, { children: "Open drawer" });
841
+ $[0] = t0;
842
+ } else t0 = $[0];
843
+ let t1;
844
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
845
+ t1 = /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-support-overlay" });
846
+ $[1] = t1;
847
+ } else t1 = $[1];
848
+ let t2;
849
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
850
+ t2 = /* @__PURE__ */ jsxs("div", {
851
+ className: "flex flex-col items-start gap-3",
852
+ children: [t0, /* @__PURE__ */ jsxs("div", {
853
+ className: "relative h-64 w-full overflow-hidden rounded-md border border-border-default-subtle",
854
+ children: [t1, /* @__PURE__ */ jsxs("div", {
855
+ "aria-label": "Filters",
856
+ className: "absolute inset-y-0 right-0 flex w-60 max-w-[80%] flex-col gap-3 bg-surface-default-card p-4 text-surface-default-card-foreground",
857
+ children: [
858
+ /* @__PURE__ */ jsxs("div", {
859
+ className: "flex items-center justify-between",
860
+ children: [/* @__PURE__ */ jsx(Typography, {
861
+ size: "body",
862
+ className: "font-bold",
863
+ children: "Filters"
864
+ }), /* @__PURE__ */ jsx(InlineIconButton, {
865
+ color: "secondary",
866
+ icon: X,
867
+ label: "Close",
868
+ disableTooltip: true
869
+ })]
870
+ }),
871
+ /* @__PURE__ */ jsx(Checkbox, {
872
+ defaultSelected: true,
873
+ children: "In stock"
874
+ }),
875
+ /* @__PURE__ */ jsx(Checkbox, { children: "On sale" }),
876
+ /* @__PURE__ */ jsx(Button, {
877
+ width: "fill",
878
+ className: "mt-auto",
879
+ children: "Apply"
880
+ })
881
+ ]
882
+ })]
883
+ })]
884
+ });
885
+ $[2] = t2;
886
+ } else t2 = $[2];
887
+ return t2;
888
+ }
889
+ function BottomSheetDemo() {
890
+ const $ = c(8);
891
+ const ui = UIConfig.useConfig();
892
+ let t0;
893
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
894
+ t0 = /* @__PURE__ */ jsx(Button, { children: "Open sheet" });
895
+ $[0] = t0;
896
+ } else t0 = $[0];
897
+ let t1;
898
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
899
+ t1 = /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-support-overlay" });
900
+ $[1] = t1;
901
+ } else t1 = $[1];
902
+ let t2;
903
+ if ($[2] !== ui.bottomSheet.headerTypography || $[3] !== ui.bottomSheet.hideThumb) {
904
+ t2 = /* @__PURE__ */ jsx(BottomSheetHeader, {
905
+ label: "Share",
906
+ isDismissable: true,
907
+ hideThumb: ui.bottomSheet.hideThumb,
908
+ headerTypography: ui.bottomSheet.headerTypography,
909
+ onClose: noop
910
+ });
911
+ $[2] = ui.bottomSheet.headerTypography;
912
+ $[3] = ui.bottomSheet.hideThumb;
913
+ $[4] = t2;
914
+ } else t2 = $[4];
915
+ let t3;
916
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
917
+ t3 = /* @__PURE__ */ jsxs("div", {
918
+ className: "flex flex-col gap-3 px-list-side-title pb-4",
919
+ children: [/* @__PURE__ */ jsx(Typography, {
920
+ size: "small",
921
+ children: "Anyone with the link can view this project."
922
+ }), /* @__PURE__ */ jsx(Button, {
923
+ width: "fill",
924
+ children: "Copy link"
925
+ })]
926
+ });
927
+ $[5] = t3;
928
+ } else t3 = $[5];
929
+ let t4;
930
+ if ($[6] !== t2) {
931
+ t4 = /* @__PURE__ */ jsxs("div", {
932
+ className: "flex flex-col items-start gap-3",
933
+ children: [t0, /* @__PURE__ */ jsxs("div", {
934
+ className: "relative flex h-64 w-full flex-col justify-end overflow-hidden rounded-md border border-border-default-subtle",
935
+ children: [t1, /* @__PURE__ */ jsxs("div", {
936
+ "aria-label": "Share",
937
+ className: "relative flex flex-col items-stretch rounded-t-xl bg-surface-default-card text-surface-default-card-foreground",
938
+ children: [t2, t3]
939
+ })]
940
+ })]
941
+ });
942
+ $[6] = t2;
943
+ $[7] = t4;
944
+ } else t4 = $[7];
945
+ return t4;
946
+ }
947
+ function PopoverDemo() {
948
+ const $ = c(6);
949
+ const popoverCva = UIOverrides.useCva("popover.cva", popoverDefinition);
950
+ let t0;
951
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
952
+ t0 = /* @__PURE__ */ jsx(Button, {
953
+ endIcon: ChevronDown,
954
+ children: "Open popover"
955
+ });
956
+ $[0] = t0;
957
+ } else t0 = $[0];
958
+ let t1;
959
+ if ($[1] !== popoverCva) {
960
+ t1 = popoverCva({});
961
+ $[1] = popoverCva;
962
+ $[2] = t1;
963
+ } else t1 = $[2];
964
+ const t2 = `${t1} overflow-hidden p-2`;
965
+ let t3;
966
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
967
+ t3 = /* @__PURE__ */ jsxs("div", {
968
+ className: "flex flex-col gap-2",
969
+ children: [
970
+ /* @__PURE__ */ jsx(Typography, {
971
+ size: "body",
972
+ className: "font-bold",
973
+ children: "Popover title"
974
+ }),
975
+ /* @__PURE__ */ jsx(Typography, {
976
+ size: "small",
977
+ children: "Popovers show rich content anchored to a trigger element."
978
+ }),
979
+ /* @__PURE__ */ jsx(TextButton, {
980
+ size: "sm",
981
+ children: "Learn more"
982
+ })
983
+ ]
984
+ });
985
+ $[3] = t3;
986
+ } else t3 = $[3];
987
+ let t4;
988
+ if ($[4] !== t2) {
989
+ t4 = /* @__PURE__ */ jsxs("div", {
990
+ className: "flex flex-col items-start",
991
+ children: [t0, /* @__PURE__ */ jsx("div", {
992
+ className: "my-4 w-72 outline-none",
993
+ children: /* @__PURE__ */ jsx("div", {
994
+ "aria-label": "Popover",
995
+ className: "outline-none",
996
+ children: /* @__PURE__ */ jsx("div", {
997
+ className: t2,
998
+ children: t3
999
+ })
1000
+ })
1001
+ })]
1002
+ });
1003
+ $[4] = t2;
1004
+ $[5] = t4;
1005
+ } else t4 = $[5];
1006
+ return t4;
1007
+ }
1008
+ function DropdownMenuDemo() {
1009
+ const $ = c(19);
1010
+ const menuPopoverCva = UIOverrides.useCva("dropdownMenu.popoverCva", menuPopoverDefinition);
1011
+ const menuPopoverWrapperCva = UIOverrides.useCva("dropdownMenu.popoverWrapperCva", menuPopoverWrapperDefinition);
1012
+ const menuCva = UIOverrides.useCva("dropdownMenu.cva", dropdownMenuDefinition);
1013
+ const menuItemCva = UIOverrides.useCva("dropdownMenu.itemCva", menuItemDefinition);
1014
+ let t0;
1015
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1016
+ t0 = [
1017
+ { label: "Profile" },
1018
+ { label: "Settings" },
1019
+ {
1020
+ label: "More options",
1021
+ submenu: true
1022
+ },
1023
+ {
1024
+ label: "Disabled item",
1025
+ disabled: true
1026
+ }
1027
+ ];
1028
+ $[0] = t0;
1029
+ } else t0 = $[0];
1030
+ const items = t0;
1031
+ let t1;
1032
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1033
+ t1 = /* @__PURE__ */ jsx(BadgeButton, {
1034
+ icon: Settings,
1035
+ children: "Open menu"
1036
+ });
1037
+ $[1] = t1;
1038
+ } else t1 = $[1];
1039
+ let t2;
1040
+ if ($[2] !== menuPopoverCva) {
1041
+ t2 = menuPopoverCva({});
1042
+ $[2] = menuPopoverCva;
1043
+ $[3] = t2;
1044
+ } else t2 = $[3];
1045
+ const t3 = `${t2} w-56`;
1046
+ let t4;
1047
+ if ($[4] !== menuPopoverWrapperCva) {
1048
+ t4 = menuPopoverWrapperCva({});
1049
+ $[4] = menuPopoverWrapperCva;
1050
+ $[5] = t4;
1051
+ } else t4 = $[5];
1052
+ let t5;
1053
+ if ($[6] !== menuCva) {
1054
+ t5 = menuCva({ isMobile: false });
1055
+ $[6] = menuCva;
1056
+ $[7] = t5;
1057
+ } else t5 = $[7];
1058
+ let t6;
1059
+ if ($[8] !== menuItemCva) {
1060
+ t6 = items.map((item) => /* @__PURE__ */ jsxs("div", {
1061
+ "aria-disabled": item.disabled || void 0,
1062
+ "data-disabled": item.disabled || void 0,
1063
+ "data-has-submenu": item.submenu || void 0,
1064
+ className: menuItemCva({ isMobile: false }),
1065
+ children: [item.label, item.submenu && /* @__PURE__ */ jsx(ArrowRight, { className: "size-6" })]
1066
+ }, item.label));
1067
+ $[8] = menuItemCva;
1068
+ $[9] = t6;
1069
+ } else t6 = $[9];
1070
+ let t7;
1071
+ if ($[10] !== t5 || $[11] !== t6) {
1072
+ t7 = /* @__PURE__ */ jsx("div", {
1073
+ className: t5,
1074
+ children: t6
1075
+ });
1076
+ $[10] = t5;
1077
+ $[11] = t6;
1078
+ $[12] = t7;
1079
+ } else t7 = $[12];
1080
+ let t8;
1081
+ if ($[13] !== t4 || $[14] !== t7) {
1082
+ t8 = /* @__PURE__ */ jsx("div", {
1083
+ className: t4,
1084
+ children: t7
1085
+ });
1086
+ $[13] = t4;
1087
+ $[14] = t7;
1088
+ $[15] = t8;
1089
+ } else t8 = $[15];
1090
+ let t9;
1091
+ if ($[16] !== t3 || $[17] !== t8) {
1092
+ t9 = /* @__PURE__ */ jsxs("div", {
1093
+ className: "flex flex-col items-start",
1094
+ children: [t1, /* @__PURE__ */ jsx("div", {
1095
+ className: t3,
1096
+ children: t8
1097
+ })]
1098
+ });
1099
+ $[16] = t3;
1100
+ $[17] = t8;
1101
+ $[18] = t9;
1102
+ } else t9 = $[18];
1103
+ return t9;
1104
+ }
1105
+ function TooltipDemo() {
1106
+ const $ = c(19);
1107
+ const tooltipCva = UIOverrides.useCva("tooltip.cva", tooltipDefinition);
1108
+ const tooltipPointerCva = UIOverrides.useCva("tooltip.pointerHorizontalCva", tooltipPointerHorizontalDefinition);
1109
+ const tooltipTextCva = UIOverrides.useCva("tooltip.textCva", tooltipTextDefinition);
1110
+ let t0;
1111
+ if ($[0] !== tooltipCva) {
1112
+ t0 = tooltipCva({});
1113
+ $[0] = tooltipCva;
1114
+ $[1] = t0;
1115
+ } else t0 = $[1];
1116
+ let t1;
1117
+ if ($[2] !== tooltipTextCva) {
1118
+ t1 = tooltipTextCva({});
1119
+ $[2] = tooltipTextCva;
1120
+ $[3] = t1;
1121
+ } else t1 = $[3];
1122
+ const t2 = `${t1} font-bold`;
1123
+ let t3;
1124
+ if ($[4] !== t2) {
1125
+ t3 = /* @__PURE__ */ jsx(Typography, {
1126
+ size: "small",
1127
+ className: t2,
1128
+ children: "Tooltip text"
1129
+ });
1130
+ $[4] = t2;
1131
+ $[5] = t3;
1132
+ } else t3 = $[5];
1133
+ let t4;
1134
+ if ($[6] !== t0 || $[7] !== t3) {
1135
+ t4 = /* @__PURE__ */ jsx("div", {
1136
+ className: t0,
1137
+ children: t3
1138
+ });
1139
+ $[6] = t0;
1140
+ $[7] = t3;
1141
+ $[8] = t4;
1142
+ } else t4 = $[8];
1143
+ let t5;
1144
+ if ($[9] !== tooltipPointerCva) {
1145
+ t5 = tooltipPointerCva({});
1146
+ $[9] = tooltipPointerCva;
1147
+ $[10] = t5;
1148
+ } else t5 = $[10];
1149
+ let t6;
1150
+ if ($[11] !== t5) {
1151
+ t6 = /* @__PURE__ */ jsx(ChevronUp, {
1152
+ className: t5,
1153
+ fill: "currentColor",
1154
+ strokeWidth: 0,
1155
+ "aria-hidden": "true"
1156
+ });
1157
+ $[11] = t5;
1158
+ $[12] = t6;
1159
+ } else t6 = $[12];
1160
+ let t7;
1161
+ if ($[13] !== t4 || $[14] !== t6) {
1162
+ t7 = /* @__PURE__ */ jsxs("div", {
1163
+ className: "group flex flex-col items-center",
1164
+ "data-placement": "top",
1165
+ children: [t4, t6]
1166
+ });
1167
+ $[13] = t4;
1168
+ $[14] = t6;
1169
+ $[15] = t7;
1170
+ } else t7 = $[15];
1171
+ let t8;
1172
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
1173
+ t8 = /* @__PURE__ */ jsx(Button, {
1174
+ variant: "outlined",
1175
+ children: "Hover me"
1176
+ });
1177
+ $[16] = t8;
1178
+ } else t8 = $[16];
1179
+ let t9;
1180
+ if ($[17] !== t7) {
1181
+ t9 = /* @__PURE__ */ jsxs("div", {
1182
+ className: "flex flex-col items-center",
1183
+ children: [t7, t8]
1184
+ });
1185
+ $[17] = t7;
1186
+ $[18] = t9;
1187
+ } else t9 = $[18];
1188
+ return t9;
1189
+ }
1190
+ const demos = [
1191
+ {
1192
+ id: "button",
1193
+ title: "Button",
1194
+ group: "Buttons",
1195
+ render: () => /* @__PURE__ */ jsxs("div", {
1196
+ className: "flex flex-col gap-3",
1197
+ children: [
1198
+ /* @__PURE__ */ jsxs("div", {
1199
+ className: "flex flex-wrap items-center gap-2",
1200
+ children: [
1201
+ /* @__PURE__ */ jsx(Button, { children: "Contained" }),
1202
+ /* @__PURE__ */ jsx(Button, {
1203
+ variant: "outlined",
1204
+ children: "Outlined"
1205
+ }),
1206
+ /* @__PURE__ */ jsx(Button, {
1207
+ variant: "subtle",
1208
+ children: "Subtle"
1209
+ }),
1210
+ /* @__PURE__ */ jsx(Button, {
1211
+ variant: "ghost",
1212
+ children: "Ghost"
1213
+ }),
1214
+ /* @__PURE__ */ jsx(Button, {
1215
+ variant: "text",
1216
+ children: "Text"
1217
+ })
1218
+ ]
1219
+ }),
1220
+ /* @__PURE__ */ jsxs("div", {
1221
+ className: "flex flex-wrap items-center gap-2",
1222
+ children: [
1223
+ /* @__PURE__ */ jsx(Button, {
1224
+ color: "secondary",
1225
+ children: "Secondary"
1226
+ }),
1227
+ /* @__PURE__ */ jsx(Button, {
1228
+ color: "error",
1229
+ children: "Error"
1230
+ }),
1231
+ /* @__PURE__ */ jsx(Button, {
1232
+ startIcon: Calendar,
1233
+ children: "With icon"
1234
+ }),
1235
+ /* @__PURE__ */ jsx(Button, {
1236
+ isLoading: true,
1237
+ children: "Loading"
1238
+ })
1239
+ ]
1240
+ }),
1241
+ /* @__PURE__ */ jsxs("div", {
1242
+ className: "flex flex-wrap items-center gap-2",
1243
+ children: [
1244
+ /* @__PURE__ */ jsx(Button, {
1245
+ size: "sm",
1246
+ children: "Small"
1247
+ }),
1248
+ /* @__PURE__ */ jsx(Button, {
1249
+ size: "default",
1250
+ children: "Default"
1251
+ }),
1252
+ /* @__PURE__ */ jsx(Button, {
1253
+ isDisabled: true,
1254
+ children: "Disabled"
1255
+ }),
1256
+ /* @__PURE__ */ jsx(Button, {
1257
+ variant: "outlined",
1258
+ isDisabled: true,
1259
+ children: "Disabled"
1260
+ })
1261
+ ]
1262
+ })
1263
+ ]
1264
+ })
1265
+ },
1266
+ {
1267
+ id: "icon-button",
1268
+ title: "IconButton",
1269
+ group: "Buttons",
1270
+ render: () => /* @__PURE__ */ jsxs("div", {
1271
+ className: "flex flex-wrap items-center gap-2",
1272
+ children: [
1273
+ /* @__PURE__ */ jsx(IconButton, {
1274
+ icon: Calendar,
1275
+ label: "Calendar"
1276
+ }),
1277
+ /* @__PURE__ */ jsx(IconButton, {
1278
+ icon: Calendar,
1279
+ label: "Calendar",
1280
+ variant: "outlined"
1281
+ }),
1282
+ /* @__PURE__ */ jsx(IconButton, {
1283
+ icon: Calendar,
1284
+ label: "Calendar",
1285
+ variant: "subtle"
1286
+ }),
1287
+ /* @__PURE__ */ jsx(IconButton, {
1288
+ icon: Calendar,
1289
+ label: "Calendar",
1290
+ color: "secondary"
1291
+ }),
1292
+ /* @__PURE__ */ jsx(IconButton, {
1293
+ icon: Calendar,
1294
+ label: "Calendar",
1295
+ size: "sm"
1296
+ }),
1297
+ /* @__PURE__ */ jsx(IconButton, {
1298
+ icon: Calendar,
1299
+ label: "Calendar",
1300
+ isDisabled: true
1301
+ })
1302
+ ]
1303
+ })
1304
+ },
1305
+ {
1306
+ id: "inline-icon-button",
1307
+ title: "InlineIconButton",
1308
+ group: "Buttons",
1309
+ render: () => /* @__PURE__ */ jsxs("div", {
1310
+ className: "flex flex-wrap items-center gap-2",
1311
+ children: [
1312
+ /* @__PURE__ */ jsx(InlineIconButton, {
1313
+ icon: Calendar,
1314
+ label: "Calendar"
1315
+ }),
1316
+ /* @__PURE__ */ jsx(InlineIconButton, {
1317
+ icon: Settings,
1318
+ label: "Settings",
1319
+ color: "secondary"
1320
+ }),
1321
+ /* @__PURE__ */ jsx(InlineIconButton, {
1322
+ icon: X,
1323
+ label: "Close",
1324
+ isDisabled: true
1325
+ })
1326
+ ]
1327
+ })
1328
+ },
1329
+ {
1330
+ id: "button-group",
1331
+ title: "ButtonGroup",
1332
+ group: "Buttons",
1333
+ render: () => /* @__PURE__ */ jsxs("div", {
1334
+ className: "flex flex-col items-start gap-3",
1335
+ children: [/* @__PURE__ */ jsxs(ButtonGroup, {
1336
+ "aria-label": "Document actions",
1337
+ className: "gap-2",
1338
+ children: [
1339
+ /* @__PURE__ */ jsx(Button, {
1340
+ variant: "outlined",
1341
+ children: "Cancel"
1342
+ }),
1343
+ /* @__PURE__ */ jsx(Button, {
1344
+ variant: "outlined",
1345
+ children: "Save draft"
1346
+ }),
1347
+ /* @__PURE__ */ jsx(Button, { children: "Publish" })
1348
+ ]
1349
+ }), /* @__PURE__ */ jsxs(ButtonGroup, {
1350
+ "aria-label": "Account actions",
1351
+ orientation: "vertical",
1352
+ className: "gap-2",
1353
+ children: [/* @__PURE__ */ jsx(Button, {
1354
+ variant: "subtle",
1355
+ children: "Profile"
1356
+ }), /* @__PURE__ */ jsx(Button, {
1357
+ variant: "subtle",
1358
+ children: "Sign out"
1359
+ })]
1360
+ })]
1361
+ })
1362
+ },
1363
+ {
1364
+ id: "text-button",
1365
+ title: "TextButton",
1366
+ group: "Buttons",
1367
+ render: () => /* @__PURE__ */ jsxs("div", {
1368
+ className: "flex flex-wrap items-center gap-4",
1369
+ children: [
1370
+ /* @__PURE__ */ jsx(TextButton, { children: "Log in" }),
1371
+ /* @__PURE__ */ jsx(TextButton, {
1372
+ icon: Calendar,
1373
+ children: "With icon"
1374
+ }),
1375
+ /* @__PURE__ */ jsx(TextButton, {
1376
+ color: "secondary",
1377
+ children: "Secondary"
1378
+ }),
1379
+ /* @__PURE__ */ jsx(TextButton, {
1380
+ color: "error",
1381
+ children: "Error"
1382
+ }),
1383
+ /* @__PURE__ */ jsx(TextButton, {
1384
+ isDisabled: true,
1385
+ children: "Disabled"
1386
+ })
1387
+ ]
1388
+ })
1389
+ },
1390
+ {
1391
+ id: "toggle-button",
1392
+ title: "ToggleButton",
1393
+ group: "Buttons",
1394
+ render: () => /* @__PURE__ */ jsxs("div", {
1395
+ className: "flex flex-wrap items-center gap-2",
1396
+ children: [
1397
+ /* @__PURE__ */ jsx(ToggleButton, { children: "Toggle me" }),
1398
+ /* @__PURE__ */ jsx(ToggleButton, {
1399
+ defaultSelected: true,
1400
+ children: "Selected"
1401
+ }),
1402
+ /* @__PURE__ */ jsx(ToggleButton, {
1403
+ isDisabled: true,
1404
+ children: "Disabled"
1405
+ })
1406
+ ]
1407
+ })
1408
+ },
1409
+ {
1410
+ id: "split-button",
1411
+ title: "SplitButton",
1412
+ group: "Buttons",
1413
+ render: () => /* @__PURE__ */ jsxs("div", {
1414
+ className: "flex flex-wrap items-center gap-3",
1415
+ children: [/* @__PURE__ */ jsx(SplitButton, {
1416
+ label: "Save",
1417
+ labelRight: "More",
1418
+ items: menuItems
1419
+ }), /* @__PURE__ */ jsx(SplitButton, {
1420
+ label: "Save",
1421
+ labelRight: "More",
1422
+ variant: "outlined",
1423
+ items: menuItems
1424
+ })]
1425
+ })
1426
+ },
1427
+ {
1428
+ id: "badge-button",
1429
+ title: "BadgeButton",
1430
+ group: "Buttons",
1431
+ render: () => /* @__PURE__ */ jsxs("div", {
1432
+ className: "flex flex-wrap items-center gap-2",
1433
+ children: [
1434
+ /* @__PURE__ */ jsx(BadgeButton, { children: "Badge" }),
1435
+ /* @__PURE__ */ jsx(BadgeButton, {
1436
+ icon: Calendar,
1437
+ children: "With icon"
1438
+ }),
1439
+ /* @__PURE__ */ jsx(BadgeButton, {
1440
+ dismissable: true,
1441
+ children: "Dismissable"
1442
+ }),
1443
+ /* @__PURE__ */ jsx(BadgeButton, {
1444
+ toggle: true,
1445
+ defaultSelected: true,
1446
+ children: "Selected"
1447
+ }),
1448
+ /* @__PURE__ */ jsx(BadgeButton, {
1449
+ isDisabled: true,
1450
+ children: "Disabled"
1451
+ })
1452
+ ]
1453
+ })
1454
+ },
1455
+ {
1456
+ id: "toggle-group",
1457
+ title: "ToggleGroup",
1458
+ group: "Buttons",
1459
+ render: () => /* @__PURE__ */ jsx(ToggleGroupDemo, {})
1460
+ },
1461
+ {
1462
+ id: "input",
1463
+ title: "Input",
1464
+ group: "Inputs",
1465
+ render: () => /* @__PURE__ */ jsxs("div", {
1466
+ className: "flex flex-col gap-4",
1467
+ children: [
1468
+ /* @__PURE__ */ jsx(Input, {
1469
+ label: "First name",
1470
+ placeholder: "Enter your name"
1471
+ }),
1472
+ /* @__PURE__ */ jsx(Input, {
1473
+ label: "Email",
1474
+ placeholder: "name@example.com",
1475
+ helperText: "We will never share your email.",
1476
+ isRequired: true
1477
+ }),
1478
+ /* @__PURE__ */ jsx(Input, {
1479
+ label: "Username",
1480
+ defaultValue: "admin",
1481
+ error: "This username is already taken."
1482
+ }),
1483
+ /* @__PURE__ */ jsx(Input, {
1484
+ label: "Disabled",
1485
+ defaultValue: "Read only value",
1486
+ isDisabled: true
1487
+ })
1488
+ ]
1489
+ })
1490
+ },
1491
+ {
1492
+ id: "text-area",
1493
+ title: "TextArea",
1494
+ group: "Inputs",
1495
+ render: () => /* @__PURE__ */ jsx(TextArea, {
1496
+ label: "Description",
1497
+ placeholder: "Tell us more",
1498
+ helperText: "Maximum 500 characters"
1499
+ })
1500
+ },
1501
+ {
1502
+ id: "password-input",
1503
+ title: "PasswordInput",
1504
+ group: "Inputs",
1505
+ render: () => /* @__PURE__ */ jsx(PasswordInput, {
1506
+ label: "Password",
1507
+ defaultValue: "supersecret",
1508
+ isRequired: true
1509
+ })
1510
+ },
1511
+ {
1512
+ id: "number-field",
1513
+ title: "NumberField",
1514
+ group: "Inputs",
1515
+ render: () => /* @__PURE__ */ jsx(NumberField, {
1516
+ label: "Quantity",
1517
+ defaultValue: 3
1518
+ })
1519
+ },
1520
+ {
1521
+ id: "number-range-input",
1522
+ title: "NumberRangeInput",
1523
+ group: "Inputs",
1524
+ render: () => /* @__PURE__ */ jsx(NumberRangeInputDemo, {})
1525
+ },
1526
+ {
1527
+ id: "rich-text-editor",
1528
+ wide: true,
1529
+ title: "RichTextEditor",
1530
+ group: "Inputs",
1531
+ render: () => /* @__PURE__ */ jsx(RichTextEditorDemo, {})
1532
+ },
1533
+ {
1534
+ id: "checkbox",
1535
+ title: "Checkbox",
1536
+ group: "Inputs",
1537
+ render: () => /* @__PURE__ */ jsxs("div", {
1538
+ className: "flex flex-col gap-2",
1539
+ children: [
1540
+ /* @__PURE__ */ jsx(Checkbox, { children: "Unchecked" }),
1541
+ /* @__PURE__ */ jsx(Checkbox, {
1542
+ defaultSelected: true,
1543
+ children: "Checked"
1544
+ }),
1545
+ /* @__PURE__ */ jsx(Checkbox, {
1546
+ isIndeterminate: true,
1547
+ children: "Indeterminate"
1548
+ }),
1549
+ /* @__PURE__ */ jsx(Checkbox, {
1550
+ isDisabled: true,
1551
+ children: "Disabled"
1552
+ }),
1553
+ /* @__PURE__ */ jsx(Checkbox, {
1554
+ error: "This is an error message",
1555
+ children: "With error"
1556
+ })
1557
+ ]
1558
+ })
1559
+ },
1560
+ {
1561
+ id: "checkbox-group",
1562
+ title: "CheckboxGroup",
1563
+ group: "Inputs",
1564
+ render: () => /* @__PURE__ */ jsx(CheckboxGroupDemo, {})
1565
+ },
1566
+ {
1567
+ id: "radio-group",
1568
+ title: "RadioGroup",
1569
+ group: "Inputs",
1570
+ render: () => /* @__PURE__ */ jsx(RadioGroupDemo, {})
1571
+ },
1572
+ {
1573
+ id: "switch",
1574
+ title: "Switch",
1575
+ group: "Inputs",
1576
+ render: () => /* @__PURE__ */ jsxs("div", {
1577
+ className: "flex flex-col gap-2",
1578
+ children: [
1579
+ /* @__PURE__ */ jsx(Switch, { children: "Off" }),
1580
+ /* @__PURE__ */ jsx(Switch, {
1581
+ defaultSelected: true,
1582
+ children: "On"
1583
+ }),
1584
+ /* @__PURE__ */ jsx(Switch, {
1585
+ isDisabled: true,
1586
+ children: "Disabled"
1587
+ }),
1588
+ /* @__PURE__ */ jsx(Switch, {
1589
+ defaultSelected: true,
1590
+ isDisabled: true,
1591
+ children: "Selected disabled"
1592
+ })
1593
+ ]
1594
+ })
1595
+ },
1596
+ {
1597
+ id: "slider",
1598
+ title: "Slider",
1599
+ group: "Inputs",
1600
+ render: () => /* @__PURE__ */ jsxs("div", {
1601
+ className: "flex flex-col gap-4",
1602
+ children: [/* @__PURE__ */ jsx(Slider, {
1603
+ label: "Percentage",
1604
+ defaultValue: 40,
1605
+ unit: "%"
1606
+ }), /* @__PURE__ */ jsx(Slider, {
1607
+ label: "Range",
1608
+ isRange: true,
1609
+ defaultValue: [25, 75]
1610
+ })]
1611
+ })
1612
+ },
1613
+ {
1614
+ id: "select",
1615
+ title: "Select",
1616
+ group: "Selection",
1617
+ render: () => /* @__PURE__ */ jsx(SelectDemo, {})
1618
+ },
1619
+ {
1620
+ id: "autocomplete",
1621
+ title: "Autocomplete",
1622
+ group: "Selection",
1623
+ render: () => /* @__PURE__ */ jsx(AutocompleteDemo, {})
1624
+ },
1625
+ {
1626
+ id: "date-picker",
1627
+ title: "DatePicker",
1628
+ group: "Selection",
1629
+ render: () => /* @__PURE__ */ jsx(DatePickerDemo, {})
1630
+ },
1631
+ {
1632
+ id: "time-picker",
1633
+ title: "TimePicker",
1634
+ group: "Selection",
1635
+ render: () => /* @__PURE__ */ jsx(TimePickerDemo, {})
1636
+ },
1637
+ {
1638
+ id: "date-time-picker",
1639
+ title: "DateTimePicker",
1640
+ group: "Selection",
1641
+ render: () => /* @__PURE__ */ jsx(DateTimePickerDemo, {})
1642
+ },
1643
+ {
1644
+ id: "date-range-picker",
1645
+ title: "DateRangePicker",
1646
+ group: "Selection",
1647
+ render: () => /* @__PURE__ */ jsx(DateRangePickerDemo, {})
1648
+ },
1649
+ {
1650
+ id: "file-upload",
1651
+ title: "FileUpload",
1652
+ group: "Files",
1653
+ render: () => /* @__PURE__ */ jsx(FileUpload, {
1654
+ label: "Upload file",
1655
+ helperText: "Upload images (JPEG, PNG, WEBP)",
1656
+ acceptedFileTypes: [
1657
+ "image/jpeg",
1658
+ "image/png",
1659
+ "image/webp"
1660
+ ]
1661
+ })
1662
+ },
1663
+ {
1664
+ id: "alert",
1665
+ title: "Alert",
1666
+ group: "Feedback",
1667
+ render: () => /* @__PURE__ */ jsxs("div", {
1668
+ className: "flex flex-col gap-3",
1669
+ children: [
1670
+ /* @__PURE__ */ jsx(Alert, {
1671
+ text: "This is a neutral alert with some helpful information.",
1672
+ icon: Info
1673
+ }),
1674
+ /* @__PURE__ */ jsx(Alert, {
1675
+ color: "success",
1676
+ text: "Your changes have been saved.",
1677
+ icon: Check
1678
+ }),
1679
+ /* @__PURE__ */ jsx(Alert, {
1680
+ color: "warning",
1681
+ text: "Your trial ends in 3 days.",
1682
+ icon: Info
1683
+ }),
1684
+ /* @__PURE__ */ jsx(Alert, {
1685
+ variant: "contained",
1686
+ color: "error",
1687
+ text: "Something went wrong. Please try again.",
1688
+ icon: Info
1689
+ })
1690
+ ]
1691
+ })
1692
+ },
1693
+ {
1694
+ id: "toast",
1695
+ title: "Toast",
1696
+ group: "Feedback",
1697
+ render: () => /* @__PURE__ */ jsxs("div", {
1698
+ className: "flex flex-col gap-3",
1699
+ children: [/* @__PURE__ */ jsx(Toast, {
1700
+ variant: "outlined",
1701
+ color: "neutral",
1702
+ text: "This is a toast notification.",
1703
+ icon: Check,
1704
+ actions: [{
1705
+ text: "Undo",
1706
+ onPress: noop
1707
+ }, {
1708
+ text: "Dismiss",
1709
+ onPress: noop
1710
+ }]
1711
+ }), /* @__PURE__ */ jsx(Toast, {
1712
+ variant: "contained",
1713
+ color: "success",
1714
+ text: "File uploaded successfully.",
1715
+ icon: Check
1716
+ })]
1717
+ })
1718
+ },
1719
+ {
1720
+ id: "progress",
1721
+ title: "Progress",
1722
+ group: "Feedback",
1723
+ render: () => /* @__PURE__ */ jsxs("div", {
1724
+ className: "flex flex-col gap-4",
1725
+ children: [
1726
+ /* @__PURE__ */ jsx(Progress, {
1727
+ progress: 50,
1728
+ valueLabel: "trailing"
1729
+ }),
1730
+ /* @__PURE__ */ jsx(Progress, {
1731
+ progress: 30,
1732
+ valueLabel: "leading"
1733
+ }),
1734
+ /* @__PURE__ */ jsx(Progress, {
1735
+ progress: 75,
1736
+ valueLabel: "none"
1737
+ })
1738
+ ]
1739
+ })
1740
+ },
1741
+ {
1742
+ id: "spinner",
1743
+ title: "Spinner",
1744
+ group: "Feedback",
1745
+ render: () => /* @__PURE__ */ jsxs("div", {
1746
+ className: "flex items-center gap-6",
1747
+ children: [/* @__PURE__ */ jsx(Spinner, { size: "default" }), /* @__PURE__ */ jsx(Spinner, { size: "l" })]
1748
+ })
1749
+ },
1750
+ {
1751
+ id: "skeleton",
1752
+ title: "Skeleton",
1753
+ group: "Feedback",
1754
+ render: () => /* @__PURE__ */ jsxs("div", {
1755
+ className: "flex flex-col gap-4",
1756
+ children: [/* @__PURE__ */ jsx(InputFrame, {
1757
+ label: "Date",
1758
+ leadingIcon: Calendar,
1759
+ children: (childProps) => /* @__PURE__ */ jsx("span", {
1760
+ ...childProps,
1761
+ className: "truncate text-surface-default-popover-foreground",
1762
+ children: "Pick a date"
1763
+ })
1764
+ }), /* @__PURE__ */ jsx(InputFrame, {
1765
+ label: "Loading",
1766
+ isLoading: true,
1767
+ children: (childProps) => /* @__PURE__ */ jsx("span", {
1768
+ ...childProps,
1769
+ className: "truncate text-surface-default-popover-foreground",
1770
+ children: "Fetching options"
1771
+ })
1772
+ })]
1773
+ })
1774
+ },
1775
+ {
1776
+ id: "badge",
1777
+ title: "Badge",
1778
+ group: "Text",
1779
+ render: () => /* @__PURE__ */ jsxs("div", {
1780
+ className: "flex flex-wrap items-center gap-2",
1781
+ children: [
1782
+ /* @__PURE__ */ jsx(Badge, {
1783
+ color: "primary",
1784
+ children: "Primary"
1785
+ }),
1786
+ /* @__PURE__ */ jsx(Badge, {
1787
+ color: "secondary",
1788
+ children: "Secondary"
1789
+ }),
1790
+ /* @__PURE__ */ jsx(Badge, {
1791
+ color: "error",
1792
+ children: "Error"
1793
+ }),
1794
+ /* @__PURE__ */ jsx(Badge, {
1795
+ variant: "outlined",
1796
+ color: "primary",
1797
+ children: "Outlined"
1798
+ }),
1799
+ /* @__PURE__ */ jsx(Badge, {
1800
+ color: "primary",
1801
+ dismissable: true,
1802
+ onDismiss: noop,
1803
+ children: "Dismissable"
1804
+ })
1805
+ ]
1806
+ })
1807
+ },
1808
+ {
1809
+ id: "tag",
1810
+ title: "Tag",
1811
+ group: "Text",
1812
+ render: () => /* @__PURE__ */ jsxs("div", {
1813
+ className: "flex flex-wrap items-center gap-2",
1814
+ children: [
1815
+ /* @__PURE__ */ jsx(Tag, {
1816
+ color: "primary",
1817
+ children: "Primary"
1818
+ }),
1819
+ /* @__PURE__ */ jsx(Tag, {
1820
+ color: "secondary",
1821
+ children: "Secondary"
1822
+ }),
1823
+ /* @__PURE__ */ jsx(Tag, {
1824
+ color: "success",
1825
+ children: "Success"
1826
+ }),
1827
+ /* @__PURE__ */ jsx(Tag, {
1828
+ color: "warning",
1829
+ children: "Warning"
1830
+ }),
1831
+ /* @__PURE__ */ jsx(Tag, {
1832
+ color: "error",
1833
+ children: "Error"
1834
+ }),
1835
+ /* @__PURE__ */ jsx(Tag, {
1836
+ color: "primary",
1837
+ dismissable: true,
1838
+ onDismiss: noop,
1839
+ children: "Dismissable"
1840
+ })
1841
+ ]
1842
+ })
1843
+ },
1844
+ {
1845
+ id: "link",
1846
+ title: "Link",
1847
+ group: "Text",
1848
+ render: () => /* @__PURE__ */ jsxs(Typography, {
1849
+ size: "body",
1850
+ children: [
1851
+ "Read the ",
1852
+ /* @__PURE__ */ jsx(Link, {
1853
+ href: "#",
1854
+ children: "documentation"
1855
+ }),
1856
+ " or visit the ",
1857
+ /* @__PURE__ */ jsx(Link, {
1858
+ href: "#",
1859
+ children: "help center"
1860
+ }),
1861
+ "."
1862
+ ]
1863
+ })
1864
+ },
1865
+ {
1866
+ id: "typography",
1867
+ title: "Typography",
1868
+ group: "Text",
1869
+ render: () => /* @__PURE__ */ jsxs("div", {
1870
+ className: "flex flex-col gap-2",
1871
+ children: [
1872
+ /* @__PURE__ */ jsx(Typography, {
1873
+ size: "h1",
1874
+ as: "h1",
1875
+ children: "Heading 1"
1876
+ }),
1877
+ /* @__PURE__ */ jsx(Typography, {
1878
+ size: "h2",
1879
+ as: "h2",
1880
+ children: "Heading 2"
1881
+ }),
1882
+ /* @__PURE__ */ jsx(Typography, {
1883
+ size: "h3",
1884
+ as: "h3",
1885
+ children: "Heading 3"
1886
+ }),
1887
+ /* @__PURE__ */ jsx(Typography, {
1888
+ size: "lead",
1889
+ children: "Lead paragraph text."
1890
+ }),
1891
+ /* @__PURE__ */ jsx(Typography, {
1892
+ size: "body",
1893
+ children: "Body text for general content and descriptions."
1894
+ }),
1895
+ /* @__PURE__ */ jsx(Typography, {
1896
+ size: "small",
1897
+ children: "Small text for captions and metadata."
1898
+ })
1899
+ ]
1900
+ })
1901
+ },
1902
+ {
1903
+ id: "accordion",
1904
+ title: "Accordion",
1905
+ group: "Navigation",
1906
+ render: () => /* @__PURE__ */ jsx(Accordion, {
1907
+ items: accordionItems,
1908
+ defaultExpandedKeys: ["item1"]
1909
+ })
1910
+ },
1911
+ {
1912
+ id: "stepper",
1913
+ wide: true,
1914
+ title: "Stepper",
1915
+ group: "Navigation",
1916
+ render: () => /* @__PURE__ */ jsx(Stepper, {
1917
+ steps,
1918
+ currentStep: 1
1919
+ })
1920
+ },
1921
+ {
1922
+ id: "breadcrumbs",
1923
+ title: "Breadcrumbs",
1924
+ group: "Navigation",
1925
+ render: () => /* @__PURE__ */ jsx(Breadcrumbs, { items: [
1926
+ {
1927
+ id: "home",
1928
+ label: "Home",
1929
+ link: { href: "#" },
1930
+ icon: House
1931
+ },
1932
+ {
1933
+ id: "products",
1934
+ label: "Products",
1935
+ link: { href: "#" }
1936
+ },
1937
+ {
1938
+ id: "current",
1939
+ label: "Product details"
1940
+ }
1941
+ ] })
1942
+ },
1943
+ {
1944
+ id: "pagination",
1945
+ wide: true,
1946
+ title: "Pagination",
1947
+ group: "Navigation",
1948
+ render: () => /* @__PURE__ */ jsx(PaginationDemo, {})
1949
+ },
1950
+ {
1951
+ id: "dialog",
1952
+ title: "Dialog",
1953
+ group: "Overlays",
1954
+ overlay: true,
1955
+ render: () => /* @__PURE__ */ jsx(DialogDemo, {})
1956
+ },
1957
+ {
1958
+ id: "alert-dialog",
1959
+ title: "AlertDialog",
1960
+ group: "Overlays",
1961
+ overlay: true,
1962
+ render: () => /* @__PURE__ */ jsx(AlertDialogDemo, {})
1963
+ },
1964
+ {
1965
+ id: "drawer",
1966
+ title: "Drawer",
1967
+ group: "Overlays",
1968
+ overlay: true,
1969
+ render: () => /* @__PURE__ */ jsx(DrawerDemo, {})
1970
+ },
1971
+ {
1972
+ id: "bottom-sheet",
1973
+ title: "BottomSheet",
1974
+ group: "Overlays",
1975
+ overlay: true,
1976
+ render: () => /* @__PURE__ */ jsx(BottomSheetDemo, {})
1977
+ },
1978
+ {
1979
+ id: "popover",
1980
+ title: "Popover",
1981
+ group: "Overlays",
1982
+ overlay: true,
1983
+ render: () => /* @__PURE__ */ jsx(PopoverDemo, {})
1984
+ },
1985
+ {
1986
+ id: "tooltip",
1987
+ title: "Tooltip",
1988
+ group: "Overlays",
1989
+ overlay: true,
1990
+ render: () => /* @__PURE__ */ jsx(TooltipDemo, {})
1991
+ },
1992
+ {
1993
+ id: "dropdown-menu",
1994
+ title: "DropdownMenu",
1995
+ group: "Overlays",
1996
+ overlay: true,
1997
+ render: () => /* @__PURE__ */ jsx(DropdownMenuDemo, {})
1998
+ },
1999
+ {
2000
+ id: "table",
2001
+ wide: true,
2002
+ title: "Table",
2003
+ group: "Data",
2004
+ render: () => /* @__PURE__ */ jsx(Table, {
2005
+ items: tableRows,
2006
+ columns: tableColumns
2007
+ })
2008
+ }
2009
+ ];
2010
+ //#endregion
2011
+ export { demos_exports as n, demos as t };