@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
@@ -1,385 +0,0 @@
1
- import { clsx } from "clsx";
2
- import { twMerge } from "tailwind-merge";
3
- import { forwardRef, useId } from "react";
4
- import { AnimatePresence, motion, useReducedMotion } from "motion/react";
5
- import { HugeiconsIcon } from "@hugeicons/react";
6
- import { Setting07Icon } from "@hugeicons/core-free-icons";
7
- import { cva } from "class-variance-authority";
8
- import { Slot } from "@radix-ui/react-slot";
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
- import { PulsingBorder } from "@paper-design/shaders-react";
11
- import { Root } from "@radix-ui/react-label";
12
- import { Root as Root$1, Thumb } from "@radix-ui/react-switch";
13
-
14
- //#region src/lib/utils.ts
15
- const cn = (...inputs) => twMerge(clsx(inputs));
16
-
17
- //#endregion
18
- //#region src/components/ui/spinner/spinner.tsx
19
- /** Maps the `size` prop to Tailwind size utilities. */
20
- const sizeMap = {
21
- lg: "size-6",
22
- md: "size-4",
23
- sm: "size-3"
24
- };
25
- const Spinner = ({ className, size = "md" }) => /* @__PURE__ */ jsx("output", {
26
- "aria-label": "Loading",
27
- className: "inline-flex",
28
- children: /* @__PURE__ */ jsxs("svg", {
29
- viewBox: "0 0 24 24",
30
- fill: "none",
31
- xmlns: "http://www.w3.org/2000/svg",
32
- className: cn("animate-spin motion-reduce:animate-none", sizeMap[size], className),
33
- children: [/* @__PURE__ */ jsx("circle", {
34
- className: "opacity-25",
35
- cx: "12",
36
- cy: "12",
37
- r: "10",
38
- stroke: "currentColor",
39
- strokeWidth: "4"
40
- }), /* @__PURE__ */ jsx("path", {
41
- className: "opacity-75",
42
- fill: "currentColor",
43
- d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"
44
- })]
45
- })
46
- });
47
-
48
- //#endregion
49
- //#region src/components/ui/button/button.tsx
50
- 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", {
51
- compoundVariants: [
52
- {
53
- class: "min-w-16",
54
- size: "sm",
55
- variant: [
56
- "default",
57
- "destructive",
58
- "outline",
59
- "secondary"
60
- ]
61
- },
62
- {
63
- class: "min-w-20",
64
- size: "default",
65
- variant: [
66
- "default",
67
- "destructive",
68
- "outline",
69
- "secondary"
70
- ]
71
- },
72
- {
73
- class: "min-w-24",
74
- size: "lg",
75
- variant: [
76
- "default",
77
- "destructive",
78
- "outline",
79
- "secondary"
80
- ]
81
- }
82
- ],
83
- defaultVariants: {
84
- size: "default",
85
- variant: "default"
86
- },
87
- variants: {
88
- size: {
89
- default: "rounded-md px-3 py-1.5 h-8 has-[>svg]:px-2.5 [&_svg:not([class*='size-'])]:size-3.5",
90
- icon: "size-9 rounded-md",
91
- "icon-sm": "size-7 rounded-md [&_svg:not([class*='size-'])]:size-3.5 relative before:absolute before:-inset-[8px] before:content-['']",
92
- "icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3 relative before:absolute before:-inset-[10px] before:content-['']",
93
- lg: "rounded-md px-5 py-2.5 h-10 has-[>svg]:px-4 [&_svg:not([class*='size-'])]:size-4",
94
- 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-['']",
95
- xs: "rounded-md px-3 py-1 h-7 [&_svg:not([class*='size-'])]:size-3"
96
- },
97
- variant: {
98
- 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)]",
99
- 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",
100
- ghost: "text-muted-foreground hover:bg-[#f8f8f9] hover:text-foreground dark:hover:bg-white/[0.06]",
101
- link: "text-(--action) underline-offset-4 hover:underline",
102
- 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]",
103
- 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]"
104
- }
105
- }
106
- });
107
- /**
108
- * Primary clickable action button.
109
- *
110
- * Variants: `default` | `destructive` | `outline` | `secondary` | `ghost` | `link`.
111
- * Sizes: `default` | `sm` | `xs` | `lg` | `icon` | `icon-sm` | `icon-xs`.
112
- * Set `asChild` to render the button styles onto a child element (e.g. an anchor) instead of a `<button>`.
113
- * Set `loading` to show an inline spinner before the label and disable interaction while an async action is pending.
114
- * When `asChild` is true, `loading` is ignored — the Slot host cannot render an additional spinner child.
115
- */
116
- const Button = ({ className, variant = "default", size = "default", asChild = false, loading = false, disabled, children, style, ...props }) => {
117
- if (asChild) return /* @__PURE__ */ jsx(Slot, {
118
- "data-slot": "button",
119
- "data-size": size,
120
- "data-variant": variant,
121
- className: cn(buttonVariants({
122
- className,
123
- size,
124
- variant
125
- })),
126
- ...props,
127
- disabled,
128
- style,
129
- children
130
- });
131
- return /* @__PURE__ */ jsxs("button", {
132
- "data-slot": "button",
133
- "data-size": size,
134
- "data-variant": variant,
135
- className: cn(buttonVariants({
136
- size,
137
- variant
138
- }), loading && "cursor-wait", className),
139
- disabled: disabled || loading,
140
- "aria-busy": loading || void 0,
141
- style: loading ? {
142
- opacity: 1,
143
- ...style
144
- } : style,
145
- ...props,
146
- children: [loading && /* @__PURE__ */ jsx(Spinner, { className: "size-3.5" }), children]
147
- });
148
- };
149
-
150
- //#endregion
151
- //#region src/components/ui/input/input.tsx
152
- const shaderDefaults = {
153
- bloom: 0,
154
- colors: [
155
- "#BDDCFF",
156
- "#57A7FF",
157
- "#DEEAFC"
158
- ],
159
- inset: 1,
160
- intensity: 0,
161
- pulse: .3,
162
- roundness: .6,
163
- scale: 1,
164
- smoke: .75,
165
- smokeSize: .7,
166
- softness: .6,
167
- speed: 2.2,
168
- spots: 8,
169
- spotSize: .75,
170
- thickness: .04
171
- };
172
- const spring = {
173
- bounce: 0,
174
- duration: .35,
175
- type: "spring"
176
- };
177
- const Input = forwardRef(({ className, type, shaderBorder, style, ...props }, ref) => {
178
- const prefersReducedMotion = useReducedMotion();
179
- 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);
180
- const isActive = !!shaderBorder;
181
- const config = typeof shaderBorder === "object" ? {
182
- ...shaderDefaults,
183
- ...shaderBorder
184
- } : shaderDefaults;
185
- const inset = config.inset;
186
- if (shaderBorder !== void 0) return /* @__PURE__ */ jsxs("div", {
187
- className: "relative",
188
- children: [/* @__PURE__ */ jsx(AnimatePresence, {
189
- initial: false,
190
- children: isActive && /* @__PURE__ */ jsx(motion.div, {
191
- initial: prefersReducedMotion ? false : { opacity: 0 },
192
- animate: { opacity: 1 },
193
- exit: { opacity: 0 },
194
- transition: prefersReducedMotion ? { duration: 0 } : spring,
195
- className: "absolute pointer-events-none z-20",
196
- style: {
197
- borderRadius: `${8 + inset}px`,
198
- inset: `-${inset}px`,
199
- willChange: "opacity"
200
- },
201
- children: /* @__PURE__ */ jsx(PulsingBorder, {
202
- colorBack: "#00000000",
203
- colors: config.colors,
204
- speed: config.speed,
205
- scale: config.scale,
206
- roundness: config.roundness,
207
- thickness: config.thickness,
208
- softness: config.softness,
209
- intensity: config.intensity,
210
- bloom: config.bloom,
211
- spots: config.spots,
212
- spotSize: config.spotSize,
213
- pulse: config.pulse,
214
- smoke: config.smoke,
215
- smokeSize: config.smokeSize,
216
- webGlContextAttributes: {
217
- alpha: true,
218
- premultipliedAlpha: true
219
- },
220
- className: "size-full",
221
- style: { borderRadius: `${8 + inset}px` }
222
- })
223
- }, "shader-border")
224
- }), /* @__PURE__ */ jsx("input", {
225
- ref,
226
- type,
227
- "data-slot": "input",
228
- 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)]"),
229
- style: isActive ? {
230
- backgroundClip: "text",
231
- 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))`,
232
- backgroundSize: "200% 100%",
233
- boxShadow: "none",
234
- color: "transparent",
235
- WebkitBackgroundClip: "text",
236
- ...style
237
- } : style,
238
- ...props
239
- })]
240
- });
241
- return /* @__PURE__ */ jsx("input", {
242
- ref,
243
- type,
244
- "data-slot": "input",
245
- className: inputClassName,
246
- style,
247
- ...props
248
- });
249
- });
250
- Input.displayName = "Input";
251
-
252
- //#endregion
253
- //#region src/components/ui/label/label.tsx
254
- const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
255
- /**
256
- * The text label for a form control.
257
- *
258
- * `Label` carries no spacing of its own. To label a form control, wrap the
259
- * control in `Field` and pass `label`: `Field` sets the gap between the label
260
- * and the control and wires up `htmlFor`. A bare `Label` placed next to a
261
- * control ends up at whatever gap its parent happens to use.
262
- *
263
- * @example
264
- * ```tsx
265
- * <Field label="Email">
266
- * <Input type="email" />
267
- * </Field>
268
- * ```
269
- */
270
- const Label = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Root, {
271
- ref,
272
- className: cn(labelVariants(), className),
273
- ...props
274
- }));
275
- Label.displayName = Root.displayName;
276
-
277
- //#endregion
278
- //#region src/components/ui/switch/switch.tsx
279
- const Switch = forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ jsx(Root$1, {
280
- ref,
281
- "data-slot": "switch",
282
- "data-size": size,
283
- 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),
284
- ...props,
285
- children: /* @__PURE__ */ jsx(Thumb, {
286
- "data-slot": "switch-thumb",
287
- 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]"),
288
- 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") })
289
- })
290
- }));
291
- Switch.displayName = "Switch";
292
-
293
- //#endregion
294
- //#region src/components/toggle-row/toggle-row.tsx
295
- /**
296
- * A single on/off setting: switch on the left, then label, description and
297
- * optional `Badge`. It has no surface of its own.
298
- *
299
- * Use it as the `header` of a `FlushCardStack.Item`, or on its own inside a
300
- * `Card`. Never put a `Well` under it directly; sub-options go in the
301
- * `FlushCardStack.Item` reveal.
302
- *
303
- * @see FlushCardStack
304
- * @see Switch
305
- */
306
- const ToggleRow = (props) => {
307
- const { label, description, checked, onCheckedChange, disabled = false, switchPosition = "left", icon, badge, onSettings, children, className } = props;
308
- const switchId = useId();
309
- const descId = useId();
310
- const cursorClass = disabled ? "cursor-not-allowed" : "cursor-pointer";
311
- if (switchPosition === "left") return /* @__PURE__ */ jsxs("div", {
312
- className,
313
- children: [/* @__PURE__ */ jsxs("div", {
314
- className: cn("flex items-start gap-2.5 touch-manipulation group/toggle"),
315
- children: [
316
- /* @__PURE__ */ jsx(Switch, {
317
- id: switchId,
318
- "aria-describedby": description ? descId : void 0,
319
- checked,
320
- onCheckedChange,
321
- disabled,
322
- className: "mt-0.5"
323
- }),
324
- icon && /* @__PURE__ */ jsx("label", {
325
- htmlFor: switchId,
326
- className: cn("text-muted-foreground shrink-0 self-start", cursorClass),
327
- children: icon
328
- }),
329
- /* @__PURE__ */ jsxs("div", {
330
- className: "flex-1 min-w-0",
331
- children: [/* @__PURE__ */ jsxs("div", {
332
- className: "flex items-center gap-2",
333
- children: [/* @__PURE__ */ jsx("label", {
334
- htmlFor: switchId,
335
- className: cn("font-medium select-none", disabled && "text-muted-foreground", cursorClass),
336
- children: label
337
- }), badge]
338
- }), description && /* @__PURE__ */ jsx("p", {
339
- id: descId,
340
- className: "text-sm text-muted-foreground mt-1 text-pretty",
341
- children: description
342
- })]
343
- })
344
- ]
345
- }), children]
346
- });
347
- return /* @__PURE__ */ jsxs("div", {
348
- className: cn("space-y-3", className),
349
- children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
350
- className: "flex items-center justify-between gap-4",
351
- children: [/* @__PURE__ */ jsx("label", {
352
- htmlFor: switchId,
353
- className: cn("text-sm font-medium select-none", cursorClass),
354
- children: label
355
- }), /* @__PURE__ */ jsxs("div", {
356
- className: "flex items-center gap-2 shrink-0",
357
- children: [onSettings && checked && /* @__PURE__ */ jsx(Button, {
358
- variant: "ghost",
359
- size: "icon-xs",
360
- onClick: onSettings,
361
- className: "text-muted-foreground hover:text-foreground",
362
- "aria-label": "Configure",
363
- children: /* @__PURE__ */ jsx(HugeiconsIcon, {
364
- icon: Setting07Icon,
365
- size: 14
366
- })
367
- }), /* @__PURE__ */ jsx(Switch, {
368
- id: switchId,
369
- "aria-describedby": description ? descId : void 0,
370
- checked,
371
- onCheckedChange,
372
- disabled
373
- })]
374
- })]
375
- }), description && /* @__PURE__ */ jsx("p", {
376
- id: descId,
377
- className: "text-sm text-muted-foreground mt-0.5 text-pretty",
378
- children: description
379
- })] }), checked && children && children]
380
- });
381
- };
382
-
383
- //#endregion
384
- export { Button as a, cn as c, Input as i, Switch as n, buttonVariants as o, Label as r, Spinner as s, ToggleRow as t };
385
- //# sourceMappingURL=toggle-row-CeiCy3Aa.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toggle-row-CeiCy3Aa.esm.js","names":["shaderDefaults: Required<ShaderBorderConfig>","Root"],"sources":["../src/lib/utils.ts","../src/components/ui/spinner/spinner.tsx","../src/components/ui/button/button.tsx","../src/components/ui/input/input.tsx","../src/components/ui/label/label.tsx","../src/components/ui/switch/switch.tsx","../src/components/toggle-row/toggle-row.tsx"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport const cn = (...inputs: ClassValue[]): string => twMerge(clsx(inputs));\n","import type { ReactElement } from 'react';\n\nimport { cn } from '../../../lib/utils';\n\n/** Maps the `size` prop to Tailwind size utilities. */\nconst sizeMap = {\n lg: 'size-6',\n md: 'size-4',\n sm: 'size-3',\n} as const;\n\ntype SpinnerSize = keyof typeof sizeMap;\n\ntype SpinnerProps = {\n className?: string;\n /** Controls the spinner diameter. Defaults to `md` (size-4). `className` wins over `size`. */\n size?: SpinnerSize;\n};\n\nconst Spinner = ({ className, size = 'md' }: SpinnerProps): ReactElement => (\n <output aria-label=\"Loading\" className=\"inline-flex\">\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={cn(\n 'animate-spin motion-reduce:animate-none',\n sizeMap[size],\n className\n )}\n >\n <circle\n className=\"opacity-25\"\n cx=\"12\"\n cy=\"12\"\n r=\"10\"\n stroke=\"currentColor\"\n strokeWidth=\"4\"\n />\n <path\n className=\"opacity-75\"\n fill=\"currentColor\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z\"\n />\n </svg>\n </output>\n);\n\nexport { Spinner };\nexport type { SpinnerProps, SpinnerSize };\n","import { type ComponentProps, type ReactElement } from 'react';\nimport { type VariantProps, cva } from 'class-variance-authority';\nimport { Slot } from '@radix-ui/react-slot';\n\nimport { cn } from '../../../lib/utils';\nimport { Spinner } from '../spinner';\n\nconst buttonVariants = cva(\n \"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\",\n {\n // Min-width floors so short labels (Done/OK/Save) read as proper buttons and\n // paired footer actions balance — only for solid/outlined TEXT buttons.\n // Excluded by design: `ghost`/`link` (inline text, no button floor) and all\n // `icon*` sizes (square). `min-w-*` (not fixed width) so labels still grow,\n // and `w-full`/`flex-1` usages override it harmlessly.\n compoundVariants: [\n {\n class: 'min-w-16',\n size: 'sm',\n variant: ['default', 'destructive', 'outline', 'secondary'],\n },\n {\n class: 'min-w-20',\n size: 'default',\n variant: ['default', 'destructive', 'outline', 'secondary'],\n },\n {\n class: 'min-w-24',\n size: 'lg',\n variant: ['default', 'destructive', 'outline', 'secondary'],\n },\n ],\n defaultVariants: {\n size: 'default',\n variant: 'default',\n },\n variants: {\n size: {\n default:\n \"rounded-md px-3 py-1.5 h-8 has-[>svg]:px-2.5 [&_svg:not([class*='size-'])]:size-3.5\",\n icon: 'size-9 rounded-md',\n 'icon-sm':\n \"size-7 rounded-md [&_svg:not([class*='size-'])]:size-3.5 relative before:absolute before:-inset-[8px] before:content-['']\",\n 'icon-xs':\n \"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3 relative before:absolute before:-inset-[10px] before:content-['']\",\n lg: \"rounded-md px-5 py-2.5 h-10 has-[>svg]:px-4 [&_svg:not([class*='size-'])]:size-4\",\n 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-['']\",\n xs: \"rounded-md px-3 py-1 h-7 [&_svg:not([class*='size-'])]:size-3\",\n },\n variant: {\n default:\n '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)]',\n destructive:\n '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',\n ghost:\n 'text-muted-foreground hover:bg-[#f8f8f9] hover:text-foreground dark:hover:bg-white/[0.06]',\n link: 'text-(--action) underline-offset-4 hover:underline',\n outline:\n '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]',\n secondary:\n '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]',\n },\n },\n }\n);\n\n/**\n * Primary clickable action button.\n *\n * Variants: `default` | `destructive` | `outline` | `secondary` | `ghost` | `link`.\n * Sizes: `default` | `sm` | `xs` | `lg` | `icon` | `icon-sm` | `icon-xs`.\n * Set `asChild` to render the button styles onto a child element (e.g. an anchor) instead of a `<button>`.\n * Set `loading` to show an inline spinner before the label and disable interaction while an async action is pending.\n * When `asChild` is true, `loading` is ignored — the Slot host cannot render an additional spinner child.\n */\nconst Button = ({\n className,\n variant = 'default',\n size = 'default',\n asChild = false,\n loading = false,\n disabled,\n children,\n style,\n ...props\n}: ComponentProps<'button'> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n /** When true, renders an inline spinner before the label and disables interaction. */\n loading?: boolean;\n }): ReactElement => {\n if (asChild) {\n return (\n <Slot\n data-slot=\"button\"\n data-size={size}\n data-variant={variant}\n className={cn(buttonVariants({ className, size, variant }))}\n {...{ ...props, disabled, style }}\n >\n {children}\n </Slot>\n );\n }\n\n return (\n <button\n data-slot=\"button\"\n data-size={size}\n data-variant={variant}\n className={cn(\n buttonVariants({ size, variant }),\n // Loading stays full-strength (not the 50% disabled wash) so it reads as\n // \"working\", not \"disabled\" — interaction is still blocked via `disabled`.\n loading && 'cursor-wait',\n className\n )}\n disabled={disabled || loading}\n aria-busy={loading || undefined}\n // Inline opacity wins over the class-level `disabled:opacity-50` so the\n // loading button keeps its color while remaining truly disabled.\n style={loading ? { opacity: 1, ...style } : style}\n {...props}\n >\n {loading && (\n // Size matches the svg sizing the button already applies to icons at each size\n <Spinner className=\"size-3.5\" />\n )}\n {children}\n </button>\n );\n};\n\nexport { Button, buttonVariants };\n","'use client';\n\nimport type { ComponentProps } from 'react';\nimport { forwardRef } from 'react';\nimport { AnimatePresence, motion, useReducedMotion } from 'motion/react';\nimport { PulsingBorder } from '@paper-design/shaders-react';\n\nimport { cn } from '../../../lib/utils';\n\ntype ShaderBorderConfig = {\n bloom?: number;\n colors?: string[];\n inset?: number;\n intensity?: number;\n pulse?: number;\n roundness?: number;\n scale?: number;\n smoke?: number;\n smokeSize?: number;\n softness?: number;\n speed?: number;\n spotSize?: number;\n spots?: number;\n thickness?: number;\n};\n\nconst shaderDefaults: Required<ShaderBorderConfig> = {\n bloom: 0,\n colors: ['#BDDCFF', '#57A7FF', '#DEEAFC'],\n inset: 1,\n intensity: 0,\n pulse: 0.3,\n roundness: 0.6,\n scale: 1,\n smoke: 0.75,\n smokeSize: 0.7,\n softness: 0.6,\n speed: 2.2,\n spots: 8,\n spotSize: 0.75,\n thickness: 0.04,\n};\n\nconst spring = { bounce: 0, duration: 0.35, type: 'spring' as const };\n\ntype InputProps = ComponentProps<'input'> & {\n shaderBorder?: boolean | ShaderBorderConfig;\n};\n\nconst Input = forwardRef<HTMLInputElement, InputProps>(\n ({ className, type, shaderBorder, style, ...props }, ref) => {\n const prefersReducedMotion = useReducedMotion();\n const inputClassName = cn(\n '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',\n 'hover:shadow-[var(--shadow-input-hover)]',\n 'focus-visible:shadow-[0_0_0_1px_var(--ring),0_0_0_4px_var(--ring-halo,#0072EF26)]',\n '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)]',\n className,\n );\n\n const isActive = !!shaderBorder;\n const config =\n typeof shaderBorder === 'object'\n ? { ...shaderDefaults, ...shaderBorder }\n : shaderDefaults;\n const inset = config.inset;\n\n if (shaderBorder !== undefined) {\n return (\n <div className='relative'>\n <AnimatePresence initial={false}>\n {isActive && (\n <motion.div\n key='shader-border'\n initial={prefersReducedMotion ? false : { opacity: 0 }}\n animate={{ opacity: 1 }}\n exit={{ opacity: 0 }}\n transition={prefersReducedMotion ? { duration: 0 } : spring}\n className='absolute pointer-events-none z-20'\n style={{\n borderRadius: `${8 + inset}px`,\n inset: `-${inset}px`,\n willChange: 'opacity',\n }}\n >\n <PulsingBorder\n colorBack='#00000000'\n colors={config.colors}\n speed={config.speed}\n scale={config.scale}\n roundness={config.roundness}\n thickness={config.thickness}\n softness={config.softness}\n intensity={config.intensity}\n bloom={config.bloom}\n spots={config.spots}\n spotSize={config.spotSize}\n pulse={config.pulse}\n smoke={config.smoke}\n smokeSize={config.smokeSize}\n webGlContextAttributes={{\n alpha: true,\n premultipliedAlpha: true,\n }}\n className='size-full'\n style={{ borderRadius: `${8 + inset}px` }}\n />\n </motion.div>\n )}\n </AnimatePresence>\n <input\n ref={ref}\n type={type}\n data-slot='input'\n className={cn(\n inputClassName,\n isActive && 'animate-shimmer motion-reduce:animate-none',\n isActive && 'focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-[var(--ring)]',\n )}\n style={\n isActive\n ? {\n backgroundClip: 'text',\n 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))`,\n backgroundSize: '200% 100%',\n boxShadow: 'none',\n color: 'transparent',\n WebkitBackgroundClip: 'text',\n ...style,\n }\n : style\n }\n {...props}\n />\n </div>\n );\n }\n\n return (\n <input\n ref={ref}\n type={type}\n data-slot='input'\n className={inputClassName}\n style={style}\n {...props}\n />\n );\n },\n);\nInput.displayName = 'Input';\n\nexport { Input };\nexport type { ShaderBorderConfig };\n","'use client';\n\nimport type { ComponentPropsWithoutRef, ComponentRef} from 'react';\nimport { forwardRef } from 'react';\nimport { Root } from '@radix-ui/react-label';\nimport { type VariantProps, cva } from 'class-variance-authority';\n\nimport { cn } from '../../../lib/utils';\n\nconst labelVariants = cva(\n 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',\n);\n\n/**\n * The text label for a form control.\n *\n * `Label` carries no spacing of its own. To label a form control, wrap the\n * control in `Field` and pass `label`: `Field` sets the gap between the label\n * and the control and wires up `htmlFor`. A bare `Label` placed next to a\n * control ends up at whatever gap its parent happens to use.\n *\n * @example\n * ```tsx\n * <Field label=\"Email\">\n * <Input type=\"email\" />\n * </Field>\n * ```\n */\nconst Label = forwardRef<\n ComponentRef<typeof Root>,\n ComponentPropsWithoutRef<typeof Root> & VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <Root ref={ref} className={cn(labelVariants(), className)} {...props} />\n));\nLabel.displayName = Root.displayName;\n\nexport { Label };\n","'use client';\n\nimport type { ComponentPropsWithoutRef, ComponentRef } from 'react';\nimport { forwardRef } from 'react';\nimport { Root, Thumb } from '@radix-ui/react-switch';\n\nimport { cn } from '../../../lib/utils';\n\nconst Switch = forwardRef<\n ComponentRef<typeof Root>,\n ComponentPropsWithoutRef<typeof Root> & {\n size?: 'sm' | 'default';\n }\n>(({ className, size = 'default', ...props }, ref) => (\n <Root\n ref={ref}\n data-slot='switch'\n data-size={size}\n className={cn(\n \"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-['']\",\n className,\n )}\n {...props}\n >\n <Thumb\n data-slot='switch-thumb'\n className={cn(\n 'pointer-events-none relative block ring-0',\n // travel only — slides between off/on with ease-out (Emil's blueprint)\n 'transition-transform duration-200 ease-out motion-reduce:transition-none',\n 'group-data-[size=default]/switch:size-3.5 group-data-[size=sm]/switch:size-2.5',\n '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]',\n )}\n >\n {/* Inner pill carries the appearance + the press stretch. It animates WIDTH\n (not scaleX, which would oval the round caps) and is pinned to the edge\n nearest the track wall — right when checked, left when unchecked — so it\n only ever grows inward toward the track centre, never past the wall. */}\n <span\n className={cn(\n 'absolute top-0 h-full rounded-full',\n 'bg-background dark:group-data-[state=checked]/switch:bg-white dark:group-data-[state=unchecked]/switch:bg-[oklch(0.500_0.013_253)]',\n 'shadow-[var(--shadow-control-thumb)] dark:shadow-[var(--shadow-control-thumb)]',\n 'group-data-[size=default]/switch:w-3.5 group-data-[size=sm]/switch:w-2.5',\n 'group-data-[state=checked]/switch:right-0 group-data-[state=unchecked]/switch:left-0',\n // press stretch (1.2×) — ease-out, quick, direct-manipulation feedback\n 'group-[&[data-size=default]:active]/switch:w-[17px] group-[&[data-size=sm]:active]/switch:w-3',\n 'transition-[width,background-color] duration-[120ms] ease-out motion-reduce:transition-none',\n )}\n />\n </Thumb>\n </Root>\n));\nSwitch.displayName = 'Switch';\n\nexport { Switch };\n","'use client';\n\nimport { type ReactElement, type ReactNode, useId } from 'react';\nimport { HugeiconsIcon } from '@hugeicons/react';\nimport { Setting07Icon } from '@hugeicons/core-free-icons';\n\nimport { Switch } from '../ui/switch';\nimport { Button } from '../ui/button';\nimport { cn } from '../../lib/utils';\n\nexport interface ToggleRowProps {\n /** Status next to the label. Pass droplet `Badge` elements only, never hand-made chips. */\n badge?: ReactNode;\n checked: boolean;\n /** Content rendered under the row. For sub-options, prefer a `FlushCardStack.Item` reveal. */\n children?: ReactNode;\n className?: string;\n description?: string;\n disabled?: boolean;\n icon?: ReactNode;\n label: string;\n onCheckedChange: (checked: boolean) => void;\n /**\n * @deprecated Only rendered with `switchPosition='right'`, which is deprecated.\n * Put settings in a `FlushCardStack.Item` reveal instead.\n */\n onSettings?: () => void;\n /**\n * @deprecated The switch always sits on the left. `'right'` still renders for\n * existing callers but must not be used in new code.\n */\n switchPosition?: 'left' | 'right';\n}\n\n// The component still honours the deprecated props for existing callers, so it reads them through a type without the\n// deprecation tags; the tags are for callers, not for this implementation.\ntype ToggleRowImplementationProps = Omit<\n ToggleRowProps,\n 'onSettings' | 'switchPosition'\n> & {\n onSettings?: () => void;\n switchPosition?: 'left' | 'right';\n};\n\n/**\n * A single on/off setting: switch on the left, then label, description and\n * optional `Badge`. It has no surface of its own.\n *\n * Use it as the `header` of a `FlushCardStack.Item`, or on its own inside a\n * `Card`. Never put a `Well` under it directly; sub-options go in the\n * `FlushCardStack.Item` reveal.\n *\n * @see FlushCardStack\n * @see Switch\n */\nexport const ToggleRow = (props: ToggleRowProps): ReactElement => {\n const {\n label,\n description,\n checked,\n onCheckedChange,\n disabled = false,\n switchPosition = 'left',\n icon,\n badge,\n onSettings,\n children,\n className,\n }: ToggleRowImplementationProps = props;\n\n const switchId = useId();\n const descId = useId();\n\n const cursorClass = disabled ? 'cursor-not-allowed' : 'cursor-pointer';\n\n if (switchPosition === 'left') {\n return (\n <div className={className}>\n <div\n className={cn(\n 'flex items-start gap-2.5 touch-manipulation group/toggle'\n )}\n >\n <Switch\n id={switchId}\n aria-describedby={description ? descId : undefined}\n checked={checked}\n onCheckedChange={onCheckedChange}\n disabled={disabled}\n className=\"mt-0.5\"\n />\n {icon && (\n <label\n htmlFor={switchId}\n className={cn(\n 'text-muted-foreground shrink-0 self-start',\n cursorClass\n )}\n >\n {icon}\n </label>\n )}\n <div className=\"flex-1 min-w-0\">\n <div className=\"flex items-center gap-2\">\n <label\n htmlFor={switchId}\n className={cn(\n 'font-medium select-none',\n disabled && 'text-muted-foreground',\n cursorClass\n )}\n >\n {label}\n </label>\n {badge}\n </div>\n {/* Not a <label>: a second label would add the description to the\n switch's name, and screen readers would read it twice. */}\n {description && (\n <p\n id={descId}\n className=\"text-sm text-muted-foreground mt-1 text-pretty\"\n >\n {description}\n </p>\n )}\n </div>\n </div>\n {children}\n </div>\n );\n }\n\n // Deprecated right-switch layout, kept so existing callers keep rendering.\n return (\n <div className={cn('space-y-3', className)}>\n <div>\n <div className=\"flex items-center justify-between gap-4\">\n <label\n htmlFor={switchId}\n className={cn('text-sm font-medium select-none', cursorClass)}\n >\n {label}\n </label>\n <div className=\"flex items-center gap-2 shrink-0\">\n {onSettings && checked && (\n <Button\n variant=\"ghost\"\n size=\"icon-xs\"\n onClick={onSettings}\n className=\"text-muted-foreground hover:text-foreground\"\n aria-label=\"Configure\"\n >\n <HugeiconsIcon icon={Setting07Icon} size={14} />\n </Button>\n )}\n <Switch\n id={switchId}\n aria-describedby={description ? descId : undefined}\n checked={checked}\n onCheckedChange={onCheckedChange}\n disabled={disabled}\n />\n </div>\n </div>\n {description && (\n <p\n id={descId}\n className=\"text-sm text-muted-foreground mt-0.5 text-pretty\"\n >\n {description}\n </p>\n )}\n </div>\n {checked && children && children}\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;AAGA,MAAa,MAAM,GAAG,WAAiC,QAAQ,KAAK,OAAO,CAAC;;;;;ACE5E,MAAM,UAAU;CACd,IAAI;CACJ,IAAI;CACJ,IAAI;CACL;AAUD,MAAM,WAAW,EAAE,WAAW,OAAO,WACnC,oBAAC;CAAO,cAAW;CAAU,WAAU;WACrC,qBAAC;EACC,SAAQ;EACR,MAAK;EACL,OAAM;EACN,WAAW,GACT,2CACA,QAAQ,OACR,UACD;aAED,oBAAC;GACC,WAAU;GACV,IAAG;GACH,IAAG;GACH,GAAE;GACF,QAAO;GACP,aAAY;IACZ,EACF,oBAAC;GACC,WAAU;GACV,MAAK;GACL,GAAE;IACF;GACE;EACC;;;;ACtCX,MAAM,iBAAiB,IACrB,qmBACA;CAME,kBAAkB;EAChB;GACE,OAAO;GACP,MAAM;GACN,SAAS;IAAC;IAAW;IAAe;IAAW;IAAY;GAC5D;EACD;GACE,OAAO;GACP,MAAM;GACN,SAAS;IAAC;IAAW;IAAe;IAAW;IAAY;GAC5D;EACD;GACE,OAAO;GACP,MAAM;GACN,SAAS;IAAC;IAAW;IAAe;IAAW;IAAY;GAC5D;EACF;CACD,iBAAiB;EACf,MAAM;EACN,SAAS;EACV;CACD,UAAU;EACR,MAAM;GACJ,SACE;GACF,MAAM;GACN,WACE;GACF,WACE;GACF,IAAI;GACJ,IAAI;GACJ,IAAI;GACL;EACD,SAAS;GACP,SACE;GACF,aACE;GACF,OACE;GACF,MAAM;GACN,SACE;GACF,WACE;GACH;EACF;CACF,CACF;;;;;;;;;;AAWD,MAAM,UAAU,EACd,WACA,UAAU,WACV,OAAO,WACP,UAAU,OACV,UAAU,OACV,UACA,UACA,OACA,GAAG,YAMiB;AACpB,KAAI,QACF,QACE,oBAAC;EACC,aAAU;EACV,aAAW;EACX,gBAAc;EACd,WAAW,GAAG,eAAe;GAAE;GAAW;GAAM;GAAS,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