@dynamic-labs-sdk/droplet 1.51.0 → 1.52.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.
Files changed (83) hide show
  1. package/README.md +0 -1
  2. package/dist/components/ui/field/field.d.ts +4 -0
  3. package/dist/components/ui/field/field.d.ts.map +1 -1
  4. package/dist/components/ui/field/field.stories.d.ts +8 -0
  5. package/dist/components/ui/field/field.stories.d.ts.map +1 -1
  6. package/dist/components/ui/field/use-field-feedback.d.ts +25 -0
  7. package/dist/components/ui/field/use-field-feedback.d.ts.map +1 -0
  8. package/dist/components/ui/table/table.d.ts +7 -1
  9. package/dist/components/ui/table/table.d.ts.map +1 -1
  10. package/dist/components/ui/well/index.d.ts +1 -1
  11. package/dist/components/ui/well/index.d.ts.map +1 -1
  12. package/dist/components/ui/well/well-reveal.stories.d.ts.map +1 -1
  13. package/dist/components/ui/well/well.d.ts +18 -3
  14. package/dist/components/ui/well/well.d.ts.map +1 -1
  15. package/dist/components/ui/well/well.stories.d.ts +1 -9
  16. package/dist/components/ui/well/well.stories.d.ts.map +1 -1
  17. package/dist/index.cjs +727 -279
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.ts +1 -2
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.esm.js +520 -69
  22. package/dist/index.esm.js.map +1 -1
  23. package/package.json +1 -6
  24. package/dist/components/migration/banner/banner.d.ts +0 -24
  25. package/dist/components/migration/banner/banner.d.ts.map +0 -1
  26. package/dist/components/migration/banner/banner.stories.d.ts +0 -39
  27. package/dist/components/migration/banner/banner.stories.d.ts.map +0 -1
  28. package/dist/components/migration/banner/index.d.ts +0 -2
  29. package/dist/components/migration/banner/index.d.ts.map +0 -1
  30. package/dist/components/migration/double-section/double-section.d.ts +0 -29
  31. package/dist/components/migration/double-section/double-section.d.ts.map +0 -1
  32. package/dist/components/migration/double-section/double-section.stories.d.ts +0 -32
  33. package/dist/components/migration/double-section/double-section.stories.d.ts.map +0 -1
  34. package/dist/components/migration/double-section/index.d.ts +0 -2
  35. package/dist/components/migration/double-section/index.d.ts.map +0 -1
  36. package/dist/components/migration/field/field.d.ts +0 -19
  37. package/dist/components/migration/field/field.d.ts.map +0 -1
  38. package/dist/components/migration/field/field.stories.d.ts +0 -43
  39. package/dist/components/migration/field/field.stories.d.ts.map +0 -1
  40. package/dist/components/migration/field/index.d.ts +0 -2
  41. package/dist/components/migration/field/index.d.ts.map +0 -1
  42. package/dist/components/migration/index.d.ts +0 -16
  43. package/dist/components/migration/index.d.ts.map +0 -1
  44. package/dist/components/migration/settings-section-v2/index.d.ts +0 -2
  45. package/dist/components/migration/settings-section-v2/index.d.ts.map +0 -1
  46. package/dist/components/migration/settings-section-v2/settings-section-v2.d.ts +0 -45
  47. package/dist/components/migration/settings-section-v2/settings-section-v2.d.ts.map +0 -1
  48. package/dist/components/migration/settings-section-v2/settings-section-v2.stories.d.ts +0 -40
  49. package/dist/components/migration/settings-section-v2/settings-section-v2.stories.d.ts.map +0 -1
  50. package/dist/components/migration/sub-section/index.d.ts +0 -2
  51. package/dist/components/migration/sub-section/index.d.ts.map +0 -1
  52. package/dist/components/migration/sub-section/sub-section.d.ts +0 -26
  53. package/dist/components/migration/sub-section/sub-section.d.ts.map +0 -1
  54. package/dist/components/migration/sub-section/sub-section.stories.d.ts +0 -33
  55. package/dist/components/migration/sub-section/sub-section.stories.d.ts.map +0 -1
  56. package/dist/components/migration/toggle-group/index.d.ts +0 -2
  57. package/dist/components/migration/toggle-group/index.d.ts.map +0 -1
  58. package/dist/components/migration/toggle-group/toggle-group.d.ts +0 -22
  59. package/dist/components/migration/toggle-group/toggle-group.d.ts.map +0 -1
  60. package/dist/components/migration/toggle-group/toggle-group.stories.d.ts +0 -30
  61. package/dist/components/migration/toggle-group/toggle-group.stories.d.ts.map +0 -1
  62. package/dist/components/patterns/config-tab-with-pill/config-tab-with-pill.stories.d.ts +0 -17
  63. package/dist/components/patterns/config-tab-with-pill/config-tab-with-pill.stories.d.ts.map +0 -1
  64. package/dist/components/patterns/cors-list/cors-list.stories.d.ts +0 -17
  65. package/dist/components/patterns/cors-list/cors-list.stories.d.ts.map +0 -1
  66. package/dist/components/patterns/rounded-row-list/rounded-row-list.stories.d.ts +0 -17
  67. package/dist/components/patterns/rounded-row-list/rounded-row-list.stories.d.ts.map +0 -1
  68. package/dist/components/status-badge/index.d.ts +0 -2
  69. package/dist/components/status-badge/index.d.ts.map +0 -1
  70. package/dist/components/status-badge/status-badge.d.ts +0 -10
  71. package/dist/components/status-badge/status-badge.d.ts.map +0 -1
  72. package/dist/components/status-badge/status-badge.stories.d.ts +0 -24
  73. package/dist/components/status-badge/status-badge.stories.d.ts.map +0 -1
  74. package/dist/components/ui/flush-card-detach/flush-card-detach.stories.d.ts +0 -17
  75. package/dist/components/ui/flush-card-detach/flush-card-detach.stories.d.ts.map +0 -1
  76. package/dist/migration.cjs +0 -328
  77. package/dist/migration.cjs.map +0 -1
  78. package/dist/migration.esm.js +0 -322
  79. package/dist/migration.esm.js.map +0 -1
  80. package/dist/toggle-row-CeiCy3Aa.esm.js +0 -385
  81. package/dist/toggle-row-CeiCy3Aa.esm.js.map +0 -1
  82. package/dist/toggle-row-DcV81G3w.cjs +0 -433
  83. package/dist/toggle-row-DcV81G3w.cjs.map +0 -1
package/dist/index.esm.js CHANGED
@@ -1,8 +1,9 @@
1
- import { a as Button, c as cn, i as Input, n as Switch, o as buttonVariants, r as Label, s as Spinner, t as ToggleRow } from "./toggle-row-CeiCy3Aa.esm.js";
1
+ import { clsx } from "clsx";
2
+ import { twMerge } from "tailwind-merge";
2
3
  import { Children, Fragment, cloneElement, createContext, forwardRef, isValidElement, useCallback, useContext, useEffect, useId, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
3
4
  import { AnimatePresence, motion, useAnimation, useReducedMotion } from "motion/react";
4
5
  import { HugeiconsIcon } from "@hugeicons/react";
5
- import { Add01Icon, Alert01Icon, AlertCircleIcon, ArrowDown01Icon, ArrowLeft01Icon, ArrowRight01Icon, ArrowUp01Icon, Cancel01Icon, CheckmarkCircle02Icon, Copy01Icon, FilterIcon, InformationCircleIcon, LayoutThreeColumnIcon, MoreHorizontalIcon, Search01Icon, Table01Icon, Tick01Icon, WebhookIcon } from "@hugeicons/core-free-icons";
6
+ import { Add01Icon, Alert01Icon, AlertCircleIcon, ArrowDown01Icon, ArrowLeft01Icon, ArrowRight01Icon, ArrowUp01Icon, Cancel01Icon, CheckmarkCircle02Icon, Copy01Icon, FilterIcon, InformationCircleIcon, LayoutThreeColumnIcon, MoreHorizontalIcon, Search01Icon, Setting07Icon, Table01Icon, Tick01Icon, WebhookIcon } from "@hugeicons/core-free-icons";
6
7
  import { cva } from "class-variance-authority";
7
8
  import { Slot } from "@radix-ui/react-slot";
8
9
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -18,20 +19,160 @@ import { Close, Content as Content$2, Description as Description$1, Overlay as O
18
19
  import * as PopoverPrimitive from "@radix-ui/react-popover";
19
20
  import { CheckboxItem, Content as Content$3, Group, Item as Item$1, ItemIndicator, Label as Label$1, Portal as Portal$2, RadioGroup as RadioGroup$1, RadioItem, Root as Root$3, Separator as Separator$1, Sub, SubContent, SubTrigger, Trigger as Trigger$3 } from "@radix-ui/react-dropdown-menu";
20
21
  import { CheckIcon as CheckIcon$1, ChevronRightIcon as ChevronRightIcon$1, CircleIcon } from "lucide-react";
21
- import { Content as Content$4, Group as Group$1, Icon as Icon$1, Item as Item$2, ItemIndicator as ItemIndicator$1, ItemText, Label as Label$2, Portal as Portal$3, Root as Root$4, ScrollDownButton, ScrollUpButton, Separator as Separator$2, Trigger as Trigger$4, Value, Viewport } from "@radix-ui/react-select";
22
+ import { PulsingBorder } from "@paper-design/shaders-react";
23
+ import { Root as Root$4 } from "@radix-ui/react-label";
24
+ import { Content as Content$4, Group as Group$1, Icon as Icon$1, Item as Item$2, ItemIndicator as ItemIndicator$1, ItemText, Label as Label$2, Portal as Portal$3, Root as Root$5, ScrollDownButton, ScrollUpButton, Separator as Separator$2, Trigger as Trigger$4, Value, Viewport } from "@radix-ui/react-select";
22
25
  import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
23
26
  import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
24
- import { Root as Root$5 } from "@radix-ui/react-separator";
27
+ import { Root as Root$6 } from "@radix-ui/react-separator";
25
28
  import { useTheme } from "next-themes";
26
29
  import { Toaster as Toaster$1, toast } from "sonner";
30
+ import { Root as Root$7, Thumb } from "@radix-ui/react-switch";
27
31
  import { createColumnHelper as createColumnHelper$1, flexRender, functionalUpdate, getCoreRowModel, getExpandedRowModel, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
28
32
  import { useVirtualizer } from "@tanstack/react-virtual";
29
33
  import * as TabsPrimitive from "@radix-ui/react-tabs";
30
- import { Arrow, Content as Content$5, Portal as Portal$4, Provider, Root as Root$6, Trigger as Trigger$5 } from "@radix-ui/react-tooltip";
34
+ import { Arrow, Content as Content$5, Portal as Portal$4, Provider, Root as Root$8, Trigger as Trigger$5 } from "@radix-ui/react-tooltip";
31
35
  import Link from "next/link";
32
36
 
37
+ //#region src/lib/utils.ts
38
+ const cn = (...inputs) => twMerge(clsx(inputs));
39
+
40
+ //#endregion
41
+ //#region src/components/ui/spinner/spinner.tsx
42
+ /** Maps the `size` prop to Tailwind size utilities. */
43
+ const sizeMap = {
44
+ lg: "size-6",
45
+ md: "size-4",
46
+ sm: "size-3"
47
+ };
48
+ const Spinner = ({ className, size = "md" }) => /* @__PURE__ */ jsx("output", {
49
+ "aria-label": "Loading",
50
+ className: "inline-flex",
51
+ children: /* @__PURE__ */ jsxs("svg", {
52
+ viewBox: "0 0 24 24",
53
+ fill: "none",
54
+ xmlns: "http://www.w3.org/2000/svg",
55
+ className: cn("animate-spin motion-reduce:animate-none", sizeMap[size], className),
56
+ children: [/* @__PURE__ */ jsx("circle", {
57
+ className: "opacity-25",
58
+ cx: "12",
59
+ cy: "12",
60
+ r: "10",
61
+ stroke: "currentColor",
62
+ strokeWidth: "4"
63
+ }), /* @__PURE__ */ jsx("path", {
64
+ className: "opacity-75",
65
+ fill: "currentColor",
66
+ d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"
67
+ })]
68
+ })
69
+ });
70
+
71
+ //#endregion
72
+ //#region src/components/ui/button/button.tsx
73
+ const buttonVariants = cva("relative isolate inline-flex items-center justify-center gap-1.5 whitespace-nowrap select-none text-[13px] font-medium leading-[calc(18/13)] touch-manipulation transition-[background-color,color,opacity,box-shadow,transform,filter,scale] duration-150 ease-out active:scale-[0.96] motion-reduce:transition-none cursor-pointer border-0 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", {
74
+ compoundVariants: [
75
+ {
76
+ class: "min-w-16",
77
+ size: "sm",
78
+ variant: [
79
+ "default",
80
+ "destructive",
81
+ "outline",
82
+ "secondary"
83
+ ]
84
+ },
85
+ {
86
+ class: "min-w-20",
87
+ size: "default",
88
+ variant: [
89
+ "default",
90
+ "destructive",
91
+ "outline",
92
+ "secondary"
93
+ ]
94
+ },
95
+ {
96
+ class: "min-w-24",
97
+ size: "lg",
98
+ variant: [
99
+ "default",
100
+ "destructive",
101
+ "outline",
102
+ "secondary"
103
+ ]
104
+ }
105
+ ],
106
+ defaultVariants: {
107
+ size: "default",
108
+ variant: "default"
109
+ },
110
+ variants: {
111
+ size: {
112
+ default: "rounded-md px-3 py-1.5 h-8 has-[>svg]:px-2.5 [&_svg:not([class*='size-'])]:size-3.5",
113
+ icon: "size-9 rounded-md",
114
+ "icon-sm": "size-7 rounded-md [&_svg:not([class*='size-'])]:size-3.5 relative before:absolute before:-inset-[8px] before:content-['']",
115
+ "icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3 relative before:absolute before:-inset-[10px] before:content-['']",
116
+ lg: "rounded-md px-5 py-2.5 h-10 has-[>svg]:px-4 [&_svg:not([class*='size-'])]:size-4",
117
+ sm: "rounded-md px-2.5 py-1 h-7 has-[>svg]:px-2 [&_svg:not([class*='size-'])]:size-3 before:absolute before:-inset-y-[6px] before:inset-x-0 before:content-['']",
118
+ xs: "rounded-md px-3 py-1 h-7 [&_svg:not([class*='size-'])]:size-3"
119
+ },
120
+ variant: {
121
+ default: "bg-(--action) text-white shadow-[0_0_0_1px_var(--action),var(--shadow-button)] hover:brightness-105 [text-shadow:0_1px_1px_rgba(0,0,0,0.16)]",
122
+ destructive: "bg-destructive text-white shadow-[0_0_0_1px_var(--destructive),var(--shadow-button)] hover:brightness-105 [text-shadow:0_1px_1px_rgba(0,0,0,0.16)] focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
123
+ ghost: "text-muted-foreground hover:bg-[#f8f8f9] hover:text-foreground dark:hover:bg-white/[0.06]",
124
+ link: "text-(--action) underline-offset-4 hover:underline",
125
+ outline: "bg-white shadow-[var(--shadow-input)] hover:bg-[#f8f8f9] hover:shadow-[var(--shadow-input-hover)] dark:bg-input/30 dark:hover:bg-white/[0.06]",
126
+ secondary: "bg-white shadow-[var(--shadow-secondary)] hover:bg-[#f8f8f9] hover:shadow-[var(--shadow-secondary-hover)] dark:bg-input/30 dark:hover:bg-white/[0.06]"
127
+ }
128
+ }
129
+ });
130
+ /**
131
+ * Primary clickable action button.
132
+ *
133
+ * Variants: `default` | `destructive` | `outline` | `secondary` | `ghost` | `link`.
134
+ * Sizes: `default` | `sm` | `xs` | `lg` | `icon` | `icon-sm` | `icon-xs`.
135
+ * Set `asChild` to render the button styles onto a child element (e.g. an anchor) instead of a `<button>`.
136
+ * Set `loading` to show an inline spinner before the label and disable interaction while an async action is pending.
137
+ * When `asChild` is true, `loading` is ignored — the Slot host cannot render an additional spinner child.
138
+ */
139
+ const Button = ({ className, variant = "default", size = "default", asChild = false, loading = false, disabled, children, style, ...props }) => {
140
+ if (asChild) return /* @__PURE__ */ jsx(Slot, {
141
+ "data-slot": "button",
142
+ "data-size": size,
143
+ "data-variant": variant,
144
+ className: cn(buttonVariants({
145
+ className,
146
+ size,
147
+ variant
148
+ })),
149
+ ...props,
150
+ disabled,
151
+ style,
152
+ children
153
+ });
154
+ return /* @__PURE__ */ jsxs("button", {
155
+ "data-slot": "button",
156
+ "data-size": size,
157
+ "data-variant": variant,
158
+ className: cn(buttonVariants({
159
+ size,
160
+ variant
161
+ }), loading && "cursor-wait", className),
162
+ disabled: disabled || loading,
163
+ "aria-busy": loading || void 0,
164
+ style: loading ? {
165
+ opacity: 1,
166
+ ...style
167
+ } : style,
168
+ ...props,
169
+ children: [loading && /* @__PURE__ */ jsx(Spinner, { className: "size-3.5" }), children]
170
+ });
171
+ };
172
+
173
+ //#endregion
33
174
  //#region src/components/unsaved-changes-bar/unsaved-changes-bar.tsx
34
- const spring$3 = {
175
+ const spring$4 = {
35
176
  bounce: 0,
36
177
  duration: .35,
37
178
  type: "spring"
@@ -69,7 +210,7 @@ const ProgressiveBlur = () => {
69
210
  });
70
211
  };
71
212
  const popTransition = {
72
- ...spring$3,
213
+ ...spring$4,
73
214
  duration: .25
74
215
  };
75
216
  const StatusIcon = ({ state }) => {
@@ -168,7 +309,7 @@ const UnsavedChangesBar = ({ hasChanges, onSave, onReset, suppressed = false })
168
309
  initial: { opacity: 0 },
169
310
  animate: { opacity: 1 },
170
311
  exit: { opacity: 0 },
171
- transition: spring$3,
312
+ transition: spring$4,
172
313
  children: /* @__PURE__ */ jsx(ProgressiveBlur, {})
173
314
  }, "blur") }), /* @__PURE__ */ jsx("div", {
174
315
  className: "fixed bottom-10 left-1/2 -translate-x-1/2 z-50",
@@ -188,7 +329,7 @@ const UnsavedChangesBar = ({ hasChanges, onSave, onReset, suppressed = false })
188
329
  scale: .95,
189
330
  y: 20
190
331
  },
191
- transition: spring$3,
332
+ transition: spring$4,
192
333
  style: { willChange: "opacity, transform" },
193
334
  className: "flex items-center gap-1.5 rounded-xl bg-zinc-900 dark:bg-[oklch(0.940_0.008_231)] shadow-[0_0_0_1px_rgba(0,0,0,0.08),0_8px_24px_-4px_rgba(0,0,0,0.25),0_20px_50px_-8px_rgba(0,0,0,0.20)] dark:shadow-[0_0_0_1px_rgba(0,0,0,0.08),0_8px_20px_-4px_rgba(0,0,0,0.10),0_20px_50px_-8px_rgba(0,0,0,0.08)] pl-3 pr-1.5 py-1.5",
194
335
  children: [
@@ -517,7 +658,7 @@ const AvatarGroupCount = ({ className, ...props }) => {
517
658
 
518
659
  //#endregion
519
660
  //#region src/components/ui/alert/alert.tsx
520
- const spring$2 = {
661
+ const spring$3 = {
521
662
  bounce: 0,
522
663
  duration: .35,
523
664
  type: "spring"
@@ -589,7 +730,7 @@ const Alert = ({ variant = "neutral", title, children, dismissible = false, onDi
589
730
  type: "button",
590
731
  "aria-label": "Dismiss",
591
732
  whileTap: shouldReduceMotion ? void 0 : { scale: .96 },
592
- transition: spring$2,
733
+ transition: spring$3,
593
734
  onClick: () => {
594
735
  setDismissed(true);
595
736
  onDismiss?.();
@@ -1294,11 +1435,11 @@ DropdownMenuSubContent.displayName = SubContent.displayName;
1294
1435
 
1295
1436
  //#endregion
1296
1437
  //#region src/components/ui/well/well.tsx
1297
- const wellVariants = cva("rounded-xl flex flex-col", {
1438
+ /** The Well's one look plus the rhythm knobs (`gap`, `spacing`). */
1439
+ const wellVariants = cva("rounded-xl flex flex-col bg-muted/50 border border-border", {
1298
1440
  defaultVariants: {
1299
1441
  gap: "sm",
1300
- spacing: "default",
1301
- variant: "inset"
1442
+ spacing: "default"
1302
1443
  },
1303
1444
  variants: {
1304
1445
  gap: {
@@ -1312,21 +1453,29 @@ const wellVariants = cva("rounded-xl flex flex-col", {
1312
1453
  lg: "p-5",
1313
1454
  none: "p-0",
1314
1455
  sm: "p-3"
1315
- },
1316
- variant: {
1317
- default: "bg-muted/50",
1318
- inset: "bg-muted/50 border border-border",
1319
- outline: "border border-border"
1320
1456
  }
1321
1457
  }
1322
1458
  });
1323
- const Well = ({ className, gap, spacing, variant, ...props }) => /* @__PURE__ */ jsx("div", {
1459
+ /**
1460
+ * The muted surface that holds the settings a toggle reveals. Put it inside `WellReveal`
1461
+ * or a `FlushCardStack.Item`. It has one look; `gap` and `spacing` only tune its rhythm.
1462
+ *
1463
+ * @example
1464
+ * ```tsx
1465
+ * <WellReveal open={emailOn}>
1466
+ * <Well>{rows}</Well>
1467
+ * </WellReveal>
1468
+ * ```
1469
+ * @returns The rendered surface.
1470
+ * @see WellReveal
1471
+ * @see FlushCardStack
1472
+ */
1473
+ const Well = ({ className, gap, spacing, ...props }) => /* @__PURE__ */ jsx("div", {
1324
1474
  "data-slot": "well",
1325
1475
  "data-spacing": spacing ?? "default",
1326
1476
  className: cn(wellVariants({
1327
1477
  gap,
1328
- spacing,
1329
- variant
1478
+ spacing
1330
1479
  }), className),
1331
1480
  ...props
1332
1481
  });
@@ -1466,6 +1615,133 @@ const Icon = (props) => {
1466
1615
  });
1467
1616
  };
1468
1617
 
1618
+ //#endregion
1619
+ //#region src/components/ui/input/input.tsx
1620
+ const shaderDefaults = {
1621
+ bloom: 0,
1622
+ colors: [
1623
+ "#BDDCFF",
1624
+ "#57A7FF",
1625
+ "#DEEAFC"
1626
+ ],
1627
+ inset: 1,
1628
+ intensity: 0,
1629
+ pulse: .3,
1630
+ roundness: .6,
1631
+ scale: 1,
1632
+ smoke: .75,
1633
+ smokeSize: .7,
1634
+ softness: .6,
1635
+ speed: 2.2,
1636
+ spots: 8,
1637
+ spotSize: .75,
1638
+ thickness: .04
1639
+ };
1640
+ const spring$2 = {
1641
+ bounce: 0,
1642
+ duration: .35,
1643
+ type: "spring"
1644
+ };
1645
+ const Input = forwardRef(({ className, type, shaderBorder, style, ...props }, ref) => {
1646
+ const prefersReducedMotion = useReducedMotion();
1647
+ const inputClassName = cn("file:text-foreground placeholder:text-muted-foreground/60 selection:bg-primary selection:text-primary-foreground dark:bg-input/30 h-8 w-full min-w-0 touch-manipulation rounded-md border-0 bg-background px-3 py-1 text-base shadow-[var(--shadow-input)] transition-[color,box-shadow] duration-100 ease-out outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "hover:shadow-[var(--shadow-input-hover)]", "focus-visible:shadow-[0_0_0_1px_var(--ring),0_0_0_4px_var(--ring-halo,#0072EF26)]", "aria-invalid:shadow-[0_0_0_1px_var(--destructive),0_0_1px_0_var(--destructive)] dark:aria-invalid:shadow-[0_0_0_1px_var(--destructive)]", className);
1648
+ const isActive = !!shaderBorder;
1649
+ const config = typeof shaderBorder === "object" ? {
1650
+ ...shaderDefaults,
1651
+ ...shaderBorder
1652
+ } : shaderDefaults;
1653
+ const inset = config.inset;
1654
+ if (shaderBorder !== void 0) return /* @__PURE__ */ jsxs("div", {
1655
+ className: "relative",
1656
+ children: [/* @__PURE__ */ jsx(AnimatePresence, {
1657
+ initial: false,
1658
+ children: isActive && /* @__PURE__ */ jsx(motion.div, {
1659
+ initial: prefersReducedMotion ? false : { opacity: 0 },
1660
+ animate: { opacity: 1 },
1661
+ exit: { opacity: 0 },
1662
+ transition: prefersReducedMotion ? { duration: 0 } : spring$2,
1663
+ className: "absolute pointer-events-none z-20",
1664
+ style: {
1665
+ borderRadius: `${8 + inset}px`,
1666
+ inset: `-${inset}px`,
1667
+ willChange: "opacity"
1668
+ },
1669
+ children: /* @__PURE__ */ jsx(PulsingBorder, {
1670
+ colorBack: "#00000000",
1671
+ colors: config.colors,
1672
+ speed: config.speed,
1673
+ scale: config.scale,
1674
+ roundness: config.roundness,
1675
+ thickness: config.thickness,
1676
+ softness: config.softness,
1677
+ intensity: config.intensity,
1678
+ bloom: config.bloom,
1679
+ spots: config.spots,
1680
+ spotSize: config.spotSize,
1681
+ pulse: config.pulse,
1682
+ smoke: config.smoke,
1683
+ smokeSize: config.smokeSize,
1684
+ webGlContextAttributes: {
1685
+ alpha: true,
1686
+ premultipliedAlpha: true
1687
+ },
1688
+ className: "size-full",
1689
+ style: { borderRadius: `${8 + inset}px` }
1690
+ })
1691
+ }, "shader-border")
1692
+ }), /* @__PURE__ */ jsx("input", {
1693
+ ref,
1694
+ type,
1695
+ "data-slot": "input",
1696
+ className: cn(inputClassName, isActive && "animate-shimmer motion-reduce:animate-none", isActive && "focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-[var(--ring)]"),
1697
+ style: isActive ? {
1698
+ backgroundClip: "text",
1699
+ backgroundImage: `linear-gradient(to right, color-mix(in srgb, ${config.colors[0]} 70%, #000), color-mix(in srgb, ${config.colors[1] || config.colors[0]} 70%, #000), color-mix(in srgb, ${config.colors[2] || config.colors[0]} 70%, #000), color-mix(in srgb, ${config.colors[0]} 70%, #000))`,
1700
+ backgroundSize: "200% 100%",
1701
+ boxShadow: "none",
1702
+ color: "transparent",
1703
+ WebkitBackgroundClip: "text",
1704
+ ...style
1705
+ } : style,
1706
+ ...props
1707
+ })]
1708
+ });
1709
+ return /* @__PURE__ */ jsx("input", {
1710
+ ref,
1711
+ type,
1712
+ "data-slot": "input",
1713
+ className: inputClassName,
1714
+ style,
1715
+ ...props
1716
+ });
1717
+ });
1718
+ Input.displayName = "Input";
1719
+
1720
+ //#endregion
1721
+ //#region src/components/ui/label/label.tsx
1722
+ const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
1723
+ /**
1724
+ * The text label for a form control.
1725
+ *
1726
+ * `Label` carries no spacing of its own. To label a form control, wrap the
1727
+ * control in `Field` and pass `label`: `Field` sets the gap between the label
1728
+ * and the control and wires up `htmlFor`. A bare `Label` placed next to a
1729
+ * control ends up at whatever gap its parent happens to use.
1730
+ *
1731
+ * @example
1732
+ * ```tsx
1733
+ * <Field label="Email">
1734
+ * <Input type="email" />
1735
+ * </Field>
1736
+ * ```
1737
+ */
1738
+ const Label = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Root$4, {
1739
+ ref,
1740
+ className: cn(labelVariants(), className),
1741
+ ...props
1742
+ }));
1743
+ Label.displayName = Root$4.displayName;
1744
+
1469
1745
  //#endregion
1470
1746
  //#region src/components/ui/field/field-control-context.ts
1471
1747
  /**
@@ -1480,7 +1756,7 @@ const FieldControlContext = createContext(null);
1480
1756
 
1481
1757
  //#endregion
1482
1758
  //#region src/components/ui/select/select.tsx
1483
- const Select = ({ ...props }) => /* @__PURE__ */ jsx(Root$4, {
1759
+ const Select = ({ ...props }) => /* @__PURE__ */ jsx(Root$5, {
1484
1760
  "data-slot": "select",
1485
1761
  ...props
1486
1762
  });
@@ -1570,6 +1846,102 @@ const SelectScrollDownButton = ({ className, ...props }) => /* @__PURE__ */ jsx(
1570
1846
  })
1571
1847
  });
1572
1848
 
1849
+ //#endregion
1850
+ //#region src/components/ui/field/use-field-feedback.ts
1851
+ const EASE_OUT = "cubic-bezier(0.215, 0.61, 0.355, 1)";
1852
+ const EASE_IN_OUT = "cubic-bezier(0.645, 0.045, 0.355, 1)";
1853
+ const SHAKE_KEYFRAMES = [
1854
+ 0,
1855
+ -4,
1856
+ 3.5,
1857
+ -2,
1858
+ 1,
1859
+ 0
1860
+ ].map((offset) => ({
1861
+ easing: EASE_IN_OUT,
1862
+ transform: `translateX(${offset}px)`
1863
+ }));
1864
+ const SHAKE_TIMING = {
1865
+ duration: 300,
1866
+ easing: "linear"
1867
+ };
1868
+ const MESSAGE_KEYFRAMES = [{
1869
+ opacity: 0,
1870
+ transform: "translateY(-4px)"
1871
+ }, {
1872
+ opacity: 1,
1873
+ transform: "translateY(0)"
1874
+ }];
1875
+ const MESSAGE_TIMING = {
1876
+ duration: 150,
1877
+ easing: EASE_OUT
1878
+ };
1879
+ const ERROR_HAPTIC_MS = 12;
1880
+ const CONTROL_SELECTOR = ":scope > :not([data-slot^=\"field-\"])";
1881
+ const ERROR_SELECTOR = ":scope > [data-slot=\"field-error\"]";
1882
+ const MESSAGE_SELECTOR = `${ERROR_SELECTOR}, :scope > [data-slot="field-description"]`;
1883
+ const tickHaptics = () => {
1884
+ if (window.matchMedia?.("(pointer: coarse)").matches) navigator.vibrate?.(ERROR_HAPTIC_MS);
1885
+ };
1886
+ const shakeControl = (wrapper) => {
1887
+ wrapper.querySelectorAll(CONTROL_SELECTOR).forEach((control) => {
1888
+ control.animate?.(SHAKE_KEYFRAMES, SHAKE_TIMING);
1889
+ });
1890
+ };
1891
+ /**
1892
+ * Plays a field's validation feedback and returns the ref for its wrapper.
1893
+ *
1894
+ * When an error appears, the control shakes, the message under it slides in,
1895
+ * and touch devices get a short haptic tick. Each later submit of the
1896
+ * surrounding `<form>` that leaves the error in place shakes and ticks again,
1897
+ * so every failed attempt is acknowledged. When the error clears, the
1898
+ * description slides back in. A change to the error's text alone swaps
1899
+ * instantly: it usually comes from re-validating while the user types, and
1900
+ * motion on every keystroke reads as noise. Nothing plays on first render, and
1901
+ * motion is skipped under `prefers-reduced-motion`.
1902
+ *
1903
+ * Uses the Web Animations API, so the feedback needs no stylesheet.
1904
+ *
1905
+ * @see Field
1906
+ * @see FieldControlContext
1907
+ */
1908
+ const useFieldFeedback = ({ error }) => {
1909
+ const wrapperRef = useRef(null);
1910
+ const hasError = Boolean(error);
1911
+ const previousHasErrorRef = useRef(hasError);
1912
+ const prefersReducedMotion = useReducedMotion();
1913
+ const prefersReducedMotionRef = useRef(prefersReducedMotion);
1914
+ prefersReducedMotionRef.current = prefersReducedMotion;
1915
+ useEffect(() => {
1916
+ if (previousHasErrorRef.current === hasError) return;
1917
+ previousHasErrorRef.current = hasError;
1918
+ const wrapper = wrapperRef.current;
1919
+ if (!wrapper) return;
1920
+ if (hasError) tickHaptics();
1921
+ if (prefersReducedMotionRef.current) return;
1922
+ wrapper.querySelectorAll(MESSAGE_SELECTOR).forEach((message) => {
1923
+ message.animate?.(MESSAGE_KEYFRAMES, MESSAGE_TIMING);
1924
+ });
1925
+ if (hasError) shakeControl(wrapper);
1926
+ }, [hasError]);
1927
+ useEffect(() => {
1928
+ const form = wrapperRef.current?.closest("form");
1929
+ if (!form) return void 0;
1930
+ const handleSubmit = () => {
1931
+ const wrapper = wrapperRef.current;
1932
+ if (!wrapper?.querySelector(ERROR_SELECTOR)) return;
1933
+ requestAnimationFrame(() => {
1934
+ if (!wrapper.querySelector(ERROR_SELECTOR)) return;
1935
+ tickHaptics();
1936
+ if (!prefersReducedMotionRef.current) shakeControl(wrapper);
1937
+ });
1938
+ };
1939
+ form.addEventListener("submit", handleSubmit);
1940
+ return () => form.removeEventListener("submit", handleSubmit);
1941
+ }, []);
1942
+ return wrapperRef;
1943
+ };
1944
+
1573
1945
  //#endregion
1574
1946
  //#region src/components/ui/field/field.tsx
1575
1947
  const FIELD_GAP_CLASS_NAME = "grid [--field-gap:6px] [--label-gap:10px] gap-[var(--field-gap)]";
@@ -1594,6 +1966,10 @@ const LABEL_GAP_CLASS_NAME = "mb-[calc(var(--label-gap)-var(--field-gap))]";
1594
1966
  * - `aria-describedby` — references the description and/or error paragraph ids
1595
1967
  * - `aria-invalid` — `true` when `error` is present
1596
1968
  *
1969
+ * When an error appears, the control shakes, the message slides in, and
1970
+ * touch devices get a short haptic tick. Motion is skipped under
1971
+ * `prefers-reduced-motion` and never plays on first render.
1972
+ *
1597
1973
  * `Select` renders no element of its own, so `SelectTrigger` picks up `id`,
1598
1974
  * `aria-describedby` and `aria-invalid` from `Field` instead.
1599
1975
  *
@@ -1613,6 +1989,7 @@ const Field = ({ label, description, error, required, htmlFor, children, classNa
1613
1989
  const singleChild = childArray.length === 1 && isValidElement(childArray[0]) ? childArray[0] : null;
1614
1990
  const childId = (singleChild?.props)?.id;
1615
1991
  const generatedId = useId();
1992
+ const wrapperRef = useFieldFeedback({ error });
1616
1993
  const controlId = (typeof childId === "string" ? childId : void 0) ?? htmlFor ?? generatedId;
1617
1994
  const descriptionId = `${controlId}-description`;
1618
1995
  const errorId = `${controlId}-error`;
@@ -1638,6 +2015,7 @@ const Field = ({ label, description, error, required, htmlFor, children, classNa
1638
2015
  ...error ? { "aria-invalid": true } : {}
1639
2016
  }) : null;
1640
2017
  return /* @__PURE__ */ jsxs("div", {
2018
+ ref: wrapperRef,
1641
2019
  className: cn(FIELD_GAP_CLASS_NAME, className),
1642
2020
  children: [
1643
2021
  label && /* @__PURE__ */ jsxs(Label, {
@@ -1657,11 +2035,13 @@ const Field = ({ label, description, error, required, htmlFor, children, classNa
1657
2035
  }),
1658
2036
  showDescription && /* @__PURE__ */ jsx("p", {
1659
2037
  id: descriptionId,
2038
+ "data-slot": "field-description",
1660
2039
  className: "text-sm text-muted-foreground",
1661
2040
  children: description
1662
2041
  }),
1663
2042
  error && /* @__PURE__ */ jsx("p", {
1664
2043
  id: errorId,
2044
+ "data-slot": "field-error",
1665
2045
  role: "alert",
1666
2046
  className: "text-sm text-[var(--text-danger)]",
1667
2047
  children: error
@@ -2049,14 +2429,14 @@ const SelectableCard = ({ badge, className, description, icon, iconSize = 20, la
2049
2429
 
2050
2430
  //#endregion
2051
2431
  //#region src/components/ui/separator/separator.tsx
2052
- const Separator = forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(Root$5, {
2432
+ const Separator = forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(Root$6, {
2053
2433
  ref,
2054
2434
  decorative,
2055
2435
  orientation,
2056
2436
  className: cn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", className),
2057
2437
  ...props
2058
2438
  }));
2059
- Separator.displayName = Root$5.displayName;
2439
+ Separator.displayName = Root$6.displayName;
2060
2440
 
2061
2441
  //#endregion
2062
2442
  //#region src/components/ui/slider/slider.tsx
@@ -2289,6 +2669,22 @@ const Stepper = ({ steps, currentStep, className, ...props }) => /* @__PURE__ */
2289
2669
  })
2290
2670
  });
2291
2671
 
2672
+ //#endregion
2673
+ //#region src/components/ui/switch/switch.tsx
2674
+ const Switch = forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ jsx(Root$7, {
2675
+ ref,
2676
+ "data-slot": "switch",
2677
+ "data-size": size,
2678
+ className: cn("peer data-[state=checked]:bg-(--action) data-[state=unchecked]:bg-input hover:data-[state=unchecked]:bg-[rgba(31,41,55,0.16)] group-hover/toggle:data-[state=unchecked]:bg-[rgba(31,41,55,0.16)] focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 dark:hover:data-[state=unchecked]:bg-[rgba(255,255,255,0.12)] dark:group-hover/toggle:data-[state=unchecked]:bg-[rgba(255,255,255,0.12)] relative group/switch inline-flex shrink-0 touch-manipulation items-center rounded-full border-0 shadow-[var(--shadow-control)] dark:shadow-[var(--shadow-control)] data-[state=checked]:shadow-[var(--shadow-control-checked)] dark:data-[state=checked]:shadow-[var(--shadow-control-checked)] transition-[color,background-color,box-shadow] duration-200 ease-out motion-reduce:transition-none outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer data-[size=default]:h-[18px] data-[size=default]:w-[30px] data-[size=sm]:h-3.5 data-[size=sm]:w-[22px] before:absolute before:-inset-[15px] before:content-['']", className),
2679
+ ...props,
2680
+ children: /* @__PURE__ */ jsx(Thumb, {
2681
+ "data-slot": "switch-thumb",
2682
+ className: cn("pointer-events-none relative block ring-0", "transition-transform duration-200 ease-out motion-reduce:transition-none", "group-data-[size=default]/switch:size-3.5 group-data-[size=sm]/switch:size-2.5", "data-[state=unchecked]:translate-x-0.5 group-data-[size=default]/switch:data-[state=checked]:translate-x-[14px] group-data-[size=sm]/switch:data-[state=checked]:translate-x-[10px]"),
2683
+ children: /* @__PURE__ */ jsx("span", { className: cn("absolute top-0 h-full rounded-full", "bg-background dark:group-data-[state=checked]/switch:bg-white dark:group-data-[state=unchecked]/switch:bg-[oklch(0.500_0.013_253)]", "shadow-[var(--shadow-control-thumb)] dark:shadow-[var(--shadow-control-thumb)]", "group-data-[size=default]/switch:w-3.5 group-data-[size=sm]/switch:w-2.5", "group-data-[state=checked]/switch:right-0 group-data-[state=unchecked]/switch:left-0", "group-[&[data-size=default]:active]/switch:w-[17px] group-[&[data-size=sm]:active]/switch:w-3", "transition-[width,background-color] duration-[120ms] ease-out motion-reduce:transition-none") })
2684
+ })
2685
+ }));
2686
+ Switch.displayName = "Switch";
2687
+
2292
2688
  //#endregion
2293
2689
  //#region src/components/ui/table/table.tsx
2294
2690
  /** Keep overlay tracks clear of the shelf's rounded corners. */
@@ -2334,7 +2730,13 @@ const measureShelfTop = ({ scrollArea, table }) => {
2334
2730
  const body = table?.tBodies[0];
2335
2731
  return body ? body.getBoundingClientRect().top - scrollArea.getBoundingClientRect().top + scrollArea.scrollTop : 0;
2336
2732
  };
2337
- /** Render a table in a stable tray with keyboard access only when content overflows. */
2733
+ /**
2734
+ * Render a table in a stable tray with keyboard access only when content overflows.
2735
+ * For any list of records, use `DataTable`, which is built on this. Use `Table` directly
2736
+ * only for static layout: a short fixed grid of values that nobody sorts, filters, pages or selects.
2737
+ *
2738
+ * @deprecated For lists of records, use `DataTable`. Direct use is only for static layout.
2739
+ */
2338
2740
  const Table = ({ className, fill = false, scrollAreaProps = {}, stickyFirstColumn = false, viewportRef, ...props }) => {
2339
2741
  const scrollAreaRef = useRef(null);
2340
2742
  const setViewportRef = useMemo(() => mergeRefs(scrollAreaRef, viewportRef), [viewportRef]);
@@ -4075,7 +4477,7 @@ const Textarea = ({ className, ...props }) => {
4075
4477
  //#endregion
4076
4478
  //#region src/components/ui/tooltip/tooltip.tsx
4077
4479
  const TooltipProvider = Provider;
4078
- const Tooltip = Root$6;
4480
+ const Tooltip = Root$8;
4079
4481
  const TooltipTrigger = Trigger$5;
4080
4482
  const TooltipContent = forwardRef(({ children, className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(Portal$4, { children: /* @__PURE__ */ jsxs(Content$5, {
4081
4483
  ref,
@@ -4827,47 +5229,6 @@ const SettingsSection = ({ title, description, children, variant = "default", cl
4827
5229
  });
4828
5230
  };
4829
5231
 
4830
- //#endregion
4831
- //#region src/components/status-badge/status-badge.tsx
4832
- const statusConfig = {
4833
- active: {
4834
- label: "Active",
4835
- variant: "success"
4836
- },
4837
- blocked: {
4838
- label: "Blocked",
4839
- variant: "danger"
4840
- },
4841
- inactive: {
4842
- label: "Inactive",
4843
- variant: "inactive"
4844
- },
4845
- live: {
4846
- label: "Live",
4847
- variant: "success"
4848
- },
4849
- pending: {
4850
- label: "Pending",
4851
- variant: "warning"
4852
- },
4853
- processing: {
4854
- label: "Processing",
4855
- variant: "process"
4856
- },
4857
- sandbox: {
4858
- label: "Sandbox",
4859
- variant: "warning"
4860
- }
4861
- };
4862
- const StatusBadge = ({ status, label, className }) => {
4863
- const config = statusConfig[status];
4864
- return /* @__PURE__ */ jsx(Badge, {
4865
- variant: config.variant,
4866
- className,
4867
- children: label || config.label
4868
- });
4869
- };
4870
-
4871
5232
  //#endregion
4872
5233
  //#region src/components/tab-navigation/tab-navigation.tsx
4873
5234
  /**
@@ -5152,6 +5513,96 @@ const ToggleCard = ({ accordionKey, title, description, inputProps, allowExpand
5152
5513
  });
5153
5514
  };
5154
5515
 
5516
+ //#endregion
5517
+ //#region src/components/toggle-row/toggle-row.tsx
5518
+ /**
5519
+ * A single on/off setting: switch on the left, then label, description and
5520
+ * optional `Badge`. It has no surface of its own.
5521
+ *
5522
+ * Use it as the `header` of a `FlushCardStack.Item`, or on its own inside a
5523
+ * `Card`. Never put a `Well` under it directly; sub-options go in the
5524
+ * `FlushCardStack.Item` reveal.
5525
+ *
5526
+ * @see FlushCardStack
5527
+ * @see Switch
5528
+ */
5529
+ const ToggleRow = (props) => {
5530
+ const { label, description, checked, onCheckedChange, disabled = false, switchPosition = "left", icon, badge, onSettings, children, className } = props;
5531
+ const switchId = useId();
5532
+ const descId = useId();
5533
+ const cursorClass = disabled ? "cursor-not-allowed" : "cursor-pointer";
5534
+ if (switchPosition === "left") return /* @__PURE__ */ jsxs("div", {
5535
+ className,
5536
+ children: [/* @__PURE__ */ jsxs("div", {
5537
+ className: cn("flex items-start gap-2.5 touch-manipulation group/toggle"),
5538
+ children: [
5539
+ /* @__PURE__ */ jsx(Switch, {
5540
+ id: switchId,
5541
+ "aria-describedby": description ? descId : void 0,
5542
+ checked,
5543
+ onCheckedChange,
5544
+ disabled,
5545
+ className: "mt-0.5"
5546
+ }),
5547
+ icon && /* @__PURE__ */ jsx("label", {
5548
+ htmlFor: switchId,
5549
+ className: cn("text-muted-foreground shrink-0 self-start", cursorClass),
5550
+ children: icon
5551
+ }),
5552
+ /* @__PURE__ */ jsxs("div", {
5553
+ className: "flex-1 min-w-0",
5554
+ children: [/* @__PURE__ */ jsxs("div", {
5555
+ className: "flex items-center gap-2",
5556
+ children: [/* @__PURE__ */ jsx("label", {
5557
+ htmlFor: switchId,
5558
+ className: cn("font-medium select-none", disabled && "text-muted-foreground", cursorClass),
5559
+ children: label
5560
+ }), badge]
5561
+ }), description && /* @__PURE__ */ jsx("p", {
5562
+ id: descId,
5563
+ className: "text-sm text-muted-foreground mt-1 text-pretty",
5564
+ children: description
5565
+ })]
5566
+ })
5567
+ ]
5568
+ }), children]
5569
+ });
5570
+ return /* @__PURE__ */ jsxs("div", {
5571
+ className: cn("space-y-3", className),
5572
+ children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
5573
+ className: "flex items-center justify-between gap-4",
5574
+ children: [/* @__PURE__ */ jsx("label", {
5575
+ htmlFor: switchId,
5576
+ className: cn("text-sm font-medium select-none", cursorClass),
5577
+ children: label
5578
+ }), /* @__PURE__ */ jsxs("div", {
5579
+ className: "flex items-center gap-2 shrink-0",
5580
+ children: [onSettings && checked && /* @__PURE__ */ jsx(Button, {
5581
+ variant: "ghost",
5582
+ size: "icon-xs",
5583
+ onClick: onSettings,
5584
+ className: "text-muted-foreground hover:text-foreground",
5585
+ "aria-label": "Configure",
5586
+ children: /* @__PURE__ */ jsx(HugeiconsIcon, {
5587
+ icon: Setting07Icon,
5588
+ size: 14
5589
+ })
5590
+ }), /* @__PURE__ */ jsx(Switch, {
5591
+ id: switchId,
5592
+ "aria-describedby": description ? descId : void 0,
5593
+ checked,
5594
+ onCheckedChange,
5595
+ disabled
5596
+ })]
5597
+ })]
5598
+ }), description && /* @__PURE__ */ jsx("p", {
5599
+ id: descId,
5600
+ className: "text-sm text-muted-foreground mt-0.5 text-pretty",
5601
+ children: description
5602
+ })] }), checked && children && children]
5603
+ });
5604
+ };
5605
+
5155
5606
  //#endregion
5156
5607
  //#region src/components/icons/animated-icon/animated-icon.tsx
5157
5608
  const AnimatedIcon = forwardRef(({ children, className, onMouseEnter, onMouseLeave, size = 28, ...props }, ref) => {
@@ -6739,5 +7190,5 @@ const UsersIcon = forwardRef((props, ref) => /* @__PURE__ */ jsx(AnimatedIcon, {
6739
7190
  UsersIcon.displayName = "UsersIcon";
6740
7191
 
6741
7192
  //#endregion
6742
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AnimatedIcon, ArrowUpRightIcon, AskAIAction, AssetIcon, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartBarIncreasingIcon, CheckIcon, Checkbox, ChevronDownIcon, ChevronRightIcon, ClaudeLogo, CodeBlock, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CopyButton, CopyCheckIcon, CopyIcon, CursorLogo, CursorPagination, DangerZone, DataTable, DataTableActiveFilters, DataTableColumnFilter, DataTableColumnVisibility, DataTableContent, DataTablePagination, DataTableSearch, DataTableToolbar, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DollarSignIcon, DomainList, DownloadIcon, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Field, FingerprintIcon, FlushCardStack, HomeIcon, Icon, IconConfigProvider, InfoBanner, Input, Kbd, KeyIcon, Label, LayoutPanelTopIcon, LinkIcon, MetricCard, MoonIcon, OpenAILogo, PageHeader, PageSkeleton, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelLeftCloseIcon, PanelLeftOpenIcon, PlusIcon, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProductPageLayout, Progress, Radio, RadioField, RadioGroup, RadioGroupItem, RefreshCWIcon, SELECTION_COLUMN_ID, ScrollArea, ScrollBar, SearchIcon, SearchInput, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectableCard, Separator, SettingsIcon, SettingsSection, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, ShieldCheckIcon, Skeleton, Slider, Spinner, StatCardSkeleton, StatusBadge, Stepper, SunIcon, Switch, TabNavigation, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, TerminalIcon, Textarea, Toaster, ToggleCard, ToggleGroup, ToggleGroupItem, ToggleRow, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnsavedChangesBar, UsersIcon, VSCodeLogo, WebhooksAction, Well, WellReveal, WindsurfLogo, badgeVariants, buttonVariants, cn, createColumnHelper, selectionColumn, toast, useDataTable, useIconConfig, useUnsavedChanges, wellVariants };
7193
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AnimatedIcon, ArrowUpRightIcon, AskAIAction, AssetIcon, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartBarIncreasingIcon, CheckIcon, Checkbox, ChevronDownIcon, ChevronRightIcon, ClaudeLogo, CodeBlock, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CopyButton, CopyCheckIcon, CopyIcon, CursorLogo, CursorPagination, DangerZone, DataTable, DataTableActiveFilters, DataTableColumnFilter, DataTableColumnVisibility, DataTableContent, DataTablePagination, DataTableSearch, DataTableToolbar, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DollarSignIcon, DomainList, DownloadIcon, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Field, FingerprintIcon, FlushCardStack, HomeIcon, Icon, IconConfigProvider, InfoBanner, Input, Kbd, KeyIcon, Label, LayoutPanelTopIcon, LinkIcon, MetricCard, MoonIcon, OpenAILogo, PageHeader, PageSkeleton, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PanelLeftCloseIcon, PanelLeftOpenIcon, PlusIcon, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProductPageLayout, Progress, Radio, RadioField, RadioGroup, RadioGroupItem, RefreshCWIcon, SELECTION_COLUMN_ID, ScrollArea, ScrollBar, SearchIcon, SearchInput, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectableCard, Separator, SettingsIcon, SettingsSection, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, ShieldCheckIcon, Skeleton, Slider, Spinner, StatCardSkeleton, Stepper, SunIcon, Switch, TabNavigation, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, TerminalIcon, Textarea, Toaster, ToggleCard, ToggleGroup, ToggleGroupItem, ToggleRow, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnsavedChangesBar, UsersIcon, VSCodeLogo, WebhooksAction, Well, WellReveal, WindsurfLogo, badgeVariants, buttonVariants, cn, createColumnHelper, selectionColumn, toast, useDataTable, useIconConfig, useUnsavedChanges };
6743
7194
  //# sourceMappingURL=index.esm.js.map