@flopay/ui 1.10.2 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -65,28 +65,86 @@ function Card({ padding = "md", interactive = false, className, ...props }) {
65
65
  );
66
66
  }
67
67
 
68
- // src/components/code-area.tsx
68
+ // src/components/checklist.tsx
69
69
  import { useId } from "react";
70
70
 
71
+ // src/components/check-icon.tsx
72
+ import { jsx as jsx4 } from "react/jsx-runtime";
73
+ function CheckIcon({ className }) {
74
+ return /* @__PURE__ */ jsx4("svg", { className, viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx4(
75
+ "path",
76
+ {
77
+ d: "M3.5 8.5l3 3 6-7",
78
+ stroke: "currentColor",
79
+ strokeWidth: "2",
80
+ strokeLinecap: "round",
81
+ strokeLinejoin: "round"
82
+ }
83
+ ) });
84
+ }
85
+
86
+ // src/components/checklist.tsx
87
+ import { Fragment, jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
88
+ function Checklist({ children, className }) {
89
+ return /* @__PURE__ */ jsx5("ul", { className: cn("checklist", className), children });
90
+ }
91
+ function ChecklistRow({
92
+ label,
93
+ done = false,
94
+ status,
95
+ optional = false,
96
+ href,
97
+ linkAs,
98
+ statusLabels,
99
+ className
100
+ }) {
101
+ const state = done ? statusLabels?.done ?? "Done" : statusLabels?.notDone ?? "Not done";
102
+ const content = /* @__PURE__ */ jsxs2(Fragment, { children: [
103
+ /* @__PURE__ */ jsx5("span", { className: cn("checklist-tick", done && "checklist-tick-done"), "aria-hidden": "true", children: done ? /* @__PURE__ */ jsx5(CheckIcon, { className: "checklist-tick-icon" }) : null }),
104
+ /* @__PURE__ */ jsx5("span", { className: "checklist-row-label", children: label }),
105
+ /* @__PURE__ */ jsx5("span", { className: "visually-hidden", children: state }),
106
+ optional ? /* @__PURE__ */ jsx5(Badge, { children: "Optional" }) : null,
107
+ status ? /* @__PURE__ */ jsx5("span", { className: "checklist-row-status", children: status }) : null
108
+ ] });
109
+ const Link = linkAs ?? "a";
110
+ return /* @__PURE__ */ jsx5("li", { className: cn("checklist-row", className), children: href ? /* @__PURE__ */ jsx5(Link, { href, className: "checklist-row-body checklist-row-link", children: content }) : /* @__PURE__ */ jsx5("div", { className: "checklist-row-body", children: content }) });
111
+ }
112
+ function ChecklistSkeleton({ rows = 3, className }) {
113
+ const labelId = useId();
114
+ return /* @__PURE__ */ jsxs2("div", { className: cn("checklist-skeleton", className), role: "status", "aria-labelledby": labelId, children: [
115
+ /* @__PURE__ */ jsx5("span", { id: labelId, className: "visually-hidden", children: "Loading" }),
116
+ Array.from({ length: rows }, (_, index) => (
117
+ // biome-ignore lint/suspicious/noArrayIndexKey: identical stateless placeholders with no identity of their own, so the position is the only key
118
+ /* @__PURE__ */ jsxs2("div", { className: "checklist-skeleton-row", "aria-hidden": "true", children: [
119
+ /* @__PURE__ */ jsx5("span", { className: "checklist-skeleton-tick" }),
120
+ /* @__PURE__ */ jsx5("span", { className: "checklist-skeleton-line" })
121
+ ] }, index)
122
+ ))
123
+ ] });
124
+ }
125
+
126
+ // src/components/code-area.tsx
127
+ import { useId as useId2 } from "react";
128
+
71
129
  // src/components/field.tsx
72
- import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
130
+ import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
73
131
  function Input({ className, ...props }) {
74
- return /* @__PURE__ */ jsx4("input", { className: cn("field", className), ...props });
132
+ return /* @__PURE__ */ jsx6("input", { className: cn("field", className), ...props });
75
133
  }
76
134
  function Label({ className, ...props }) {
77
- return /* @__PURE__ */ jsx4("label", { className: cn("field-label", className), ...props });
135
+ return /* @__PURE__ */ jsx6("label", { className: cn("field-label", className), ...props });
78
136
  }
79
137
  function Field({ label, hint, error, htmlFor, className, children }) {
80
138
  const message = error || hint;
81
- return /* @__PURE__ */ jsxs2("div", { className: cn("field-group", className), children: [
82
- label ? /* @__PURE__ */ jsx4(Label, { htmlFor, children: label }) : null,
139
+ return /* @__PURE__ */ jsxs3("div", { className: cn("field-group", className), children: [
140
+ label ? /* @__PURE__ */ jsx6(Label, { htmlFor, children: label }) : null,
83
141
  children,
84
- message ? /* @__PURE__ */ jsx4("span", { className: error ? "field-error" : "field-hint", children: message }) : null
142
+ message ? /* @__PURE__ */ jsx6("span", { className: error ? "field-error" : "field-hint", children: message }) : null
85
143
  ] });
86
144
  }
87
145
 
88
146
  // src/components/code-area.tsx
89
- import { jsx as jsx5 } from "react/jsx-runtime";
147
+ import { jsx as jsx7 } from "react/jsx-runtime";
90
148
  function CodeArea({
91
149
  label,
92
150
  hint,
@@ -99,9 +157,9 @@ function CodeArea({
99
157
  name,
100
158
  className
101
159
  }) {
102
- const generatedId = useId();
160
+ const generatedId = useId2();
103
161
  const controlId = id ?? generatedId;
104
- return /* @__PURE__ */ jsx5(Field, { label, hint, error, htmlFor: controlId, className, children: /* @__PURE__ */ jsx5(
162
+ return /* @__PURE__ */ jsx7(Field, { label, hint, error, htmlFor: controlId, className, children: /* @__PURE__ */ jsx7(
105
163
  "textarea",
106
164
  {
107
165
  ref,
@@ -123,48 +181,48 @@ function CodeArea({
123
181
  }
124
182
 
125
183
  // src/components/container.tsx
126
- import { jsx as jsx6 } from "react/jsx-runtime";
184
+ import { jsx as jsx8 } from "react/jsx-runtime";
127
185
  function Container({ className, ...props }) {
128
- return /* @__PURE__ */ jsx6("div", { className: cn("container", className), ...props });
186
+ return /* @__PURE__ */ jsx8("div", { className: cn("container", className), ...props });
129
187
  }
130
188
 
131
189
  // src/components/feedback.tsx
132
- import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
190
+ import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
133
191
  function Spinner({ center = false, className, ...props }) {
134
- const spinner = /* @__PURE__ */ jsx7("span", { className: cn("spinner", className), role: "status", "aria-label": "Loading", ...props });
135
- return center ? /* @__PURE__ */ jsx7("div", { className: "spinner-center", children: spinner }) : spinner;
192
+ const spinner = /* @__PURE__ */ jsx9("span", { className: cn("spinner", className), role: "status", "aria-label": "Loading", ...props });
193
+ return center ? /* @__PURE__ */ jsx9("div", { className: "spinner-center", children: spinner }) : spinner;
136
194
  }
137
195
  function EmptyState({ title, description, icon, className }) {
138
- return /* @__PURE__ */ jsxs3("div", { className: cn("empty-state", className), children: [
139
- icon ? /* @__PURE__ */ jsx7("div", { className: "empty-state-icon", children: icon }) : null,
140
- /* @__PURE__ */ jsx7("h3", { className: "empty-state-title", children: title }),
141
- description ? /* @__PURE__ */ jsx7("p", { className: "empty-state-desc", children: description }) : null
196
+ return /* @__PURE__ */ jsxs4("div", { className: cn("empty-state", className), children: [
197
+ icon ? /* @__PURE__ */ jsx9("div", { className: "empty-state-icon", children: icon }) : null,
198
+ /* @__PURE__ */ jsx9("h3", { className: "empty-state-title", children: title }),
199
+ description ? /* @__PURE__ */ jsx9("p", { className: "empty-state-desc", children: description }) : null
142
200
  ] });
143
201
  }
144
202
 
145
203
  // src/components/preview-frame.tsx
146
- import { jsx as jsx8 } from "react/jsx-runtime";
204
+ import { jsx as jsx10 } from "react/jsx-runtime";
147
205
  function PreviewFrame({ html, title, className }) {
148
- return /* @__PURE__ */ jsx8("div", { className: cn("preview-frame", className), children: /* @__PURE__ */ jsx8("iframe", { className: "preview-frame-iframe", title, srcDoc: html, sandbox: "" }) });
206
+ return /* @__PURE__ */ jsx10("div", { className: cn("preview-frame", className), children: /* @__PURE__ */ jsx10("iframe", { className: "preview-frame-iframe", title, srcDoc: html, sandbox: "" }) });
149
207
  }
150
208
 
151
209
  // src/components/section.tsx
152
- import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
210
+ import { jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
153
211
  function Section({ className, ...props }) {
154
- return /* @__PURE__ */ jsx9("section", { className: cn("section", className), ...props });
212
+ return /* @__PURE__ */ jsx11("section", { className: cn("section", className), ...props });
155
213
  }
156
214
  function SectionHeader({ label, title, description, className }) {
157
- return /* @__PURE__ */ jsxs4("div", { className: cn("section-center", className), children: [
158
- label ? /* @__PURE__ */ jsx9("div", { className: "section-label", children: label }) : null,
159
- /* @__PURE__ */ jsx9("h2", { className: "section-title", children: title }),
160
- description ? /* @__PURE__ */ jsx9("p", { className: "section-desc", children: description }) : null
215
+ return /* @__PURE__ */ jsxs5("div", { className: cn("section-center", className), children: [
216
+ label ? /* @__PURE__ */ jsx11("div", { className: "section-label", children: label }) : null,
217
+ /* @__PURE__ */ jsx11("h2", { className: "section-title", children: title }),
218
+ description ? /* @__PURE__ */ jsx11("p", { className: "section-desc", children: description }) : null
161
219
  ] });
162
220
  }
163
221
 
164
222
  // src/components/slot-text-field.tsx
165
223
  import {
166
224
  useCallback,
167
- useId as useId2,
225
+ useId as useId3,
168
226
  useRef
169
227
  } from "react";
170
228
 
@@ -204,7 +262,7 @@ function assignRef(ref, node) {
204
262
  }
205
263
 
206
264
  // src/components/slot-text-field.tsx
207
- import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
265
+ import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
208
266
  var LINK_PLACEHOLDER = "https://";
209
267
  function wrapWith(marker) {
210
268
  return (selected) => ({
@@ -237,7 +295,7 @@ function SlotTextField({
237
295
  name,
238
296
  className
239
297
  }) {
240
- const generatedId = useId2();
298
+ const generatedId = useId3();
241
299
  const controlId = id ?? generatedId;
242
300
  const control = useRef(null);
243
301
  const setControl = useCallback(
@@ -257,7 +315,7 @@ function SlotTextField({
257
315
  className: multiline ? "field field-multiline" : "field",
258
316
  "aria-invalid": error ? true : void 0
259
317
  };
260
- return /* @__PURE__ */ jsxs5(
318
+ return /* @__PURE__ */ jsxs6(
261
319
  Field,
262
320
  {
263
321
  label,
@@ -266,7 +324,7 @@ function SlotTextField({
266
324
  htmlFor: controlId,
267
325
  className,
268
326
  children: [
269
- /* @__PURE__ */ jsx10("div", { className: "slot-toolbar", children: FORMATS.map((format) => /* @__PURE__ */ jsx10(
327
+ /* @__PURE__ */ jsx12("div", { className: "slot-toolbar", children: FORMATS.map((format) => /* @__PURE__ */ jsx12(
270
328
  "button",
271
329
  {
272
330
  type: "button",
@@ -278,15 +336,59 @@ function SlotTextField({
278
336
  },
279
337
  format.name
280
338
  )) }),
281
- multiline ? /* @__PURE__ */ jsx10("textarea", { ref: setControl, rows: 4, ...shared }) : /* @__PURE__ */ jsx10("input", { ref: setControl, type: "text", ...shared })
339
+ multiline ? /* @__PURE__ */ jsx12("textarea", { ref: setControl, rows: 4, ...shared }) : /* @__PURE__ */ jsx12("input", { ref: setControl, type: "text", ...shared })
282
340
  ]
283
341
  }
284
342
  );
285
343
  }
286
344
 
345
+ // src/components/step-indicator.tsx
346
+ import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
347
+ var defaultStatusLabels = {
348
+ done: "Done",
349
+ current: "Current",
350
+ upcoming: "Upcoming"
351
+ };
352
+ var markerClass = {
353
+ done: "step-indicator-marker-done",
354
+ current: "step-indicator-marker-current",
355
+ upcoming: ""
356
+ };
357
+ function StepIndicator({ steps, statusLabels, className }) {
358
+ return /* @__PURE__ */ jsx13("ol", { className: cn("step-indicator", className), children: steps.map((step, index) => /* @__PURE__ */ jsxs7(
359
+ "li",
360
+ {
361
+ className: "step-indicator-step",
362
+ "aria-current": step.status === "current" ? "step" : void 0,
363
+ children: [
364
+ /* @__PURE__ */ jsx13(
365
+ "span",
366
+ {
367
+ className: cn("step-indicator-marker", markerClass[step.status]),
368
+ "aria-hidden": "true",
369
+ children: step.status === "done" ? /* @__PURE__ */ jsx13(CheckIcon, { className: "step-indicator-icon" }) : index + 1
370
+ }
371
+ ),
372
+ /* @__PURE__ */ jsx13(
373
+ "span",
374
+ {
375
+ className: cn(
376
+ "step-indicator-label",
377
+ step.status === "current" && "step-indicator-label-current"
378
+ ),
379
+ children: step.label
380
+ }
381
+ ),
382
+ /* @__PURE__ */ jsx13("span", { className: "visually-hidden", children: statusLabels?.[step.status] ?? defaultStatusLabels[step.status] })
383
+ ]
384
+ },
385
+ index
386
+ )) });
387
+ }
388
+
287
389
  // src/components/switch.tsx
288
- import { useId as useId3, useState } from "react";
289
- import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
390
+ import { useId as useId4, useState } from "react";
391
+ import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
290
392
  function ignorePress(event) {
291
393
  event.preventDefault();
292
394
  }
@@ -302,7 +404,7 @@ function Switch({
302
404
  name,
303
405
  className
304
406
  }) {
305
- const generatedId = useId3();
407
+ const generatedId = useId4();
306
408
  const controlId = id ?? generatedId;
307
409
  const labelId = `${controlId}-label`;
308
410
  const [ownChecked, setOwnChecked] = useState(defaultChecked);
@@ -313,8 +415,8 @@ function Switch({
313
415
  if (checked === void 0) setOwnChecked(next);
314
416
  onCheckedChange?.(next);
315
417
  };
316
- return /* @__PURE__ */ jsxs6("span", { className: cn("switch", className), children: [
317
- /* @__PURE__ */ jsx11(
418
+ return /* @__PURE__ */ jsxs8("span", { className: cn("switch", className), children: [
419
+ /* @__PURE__ */ jsx14(
318
420
  "button",
319
421
  {
320
422
  type: "button",
@@ -328,10 +430,10 @@ function Switch({
328
430
  disabled,
329
431
  onMouseDown: loading ? ignorePress : void 0,
330
432
  onClick: toggle,
331
- children: /* @__PURE__ */ jsx11("span", { className: "switch-thumb", "aria-hidden": "true" })
433
+ children: /* @__PURE__ */ jsx14("span", { className: "switch-thumb", "aria-hidden": "true" })
332
434
  }
333
435
  ),
334
- /* @__PURE__ */ jsx11(
436
+ /* @__PURE__ */ jsx14(
335
437
  "label",
336
438
  {
337
439
  id: labelId,
@@ -340,19 +442,19 @@ function Switch({
340
442
  children: label
341
443
  }
342
444
  ),
343
- loading ? /* @__PURE__ */ jsx11(Spinner, { className: "switch-spinner" }) : null,
344
- name && isChecked && !disabled ? /* @__PURE__ */ jsx11("input", { type: "hidden", name, value: "on" }) : null
445
+ loading ? /* @__PURE__ */ jsx14(Spinner, { className: "switch-spinner" }) : null,
446
+ name && isChecked && !disabled ? /* @__PURE__ */ jsx14("input", { type: "hidden", name, value: "on" }) : null
345
447
  ] });
346
448
  }
347
449
 
348
450
  // src/components/variable-picker.tsx
349
451
  import {
350
452
  useEffect,
351
- useId as useId4,
453
+ useId as useId5,
352
454
  useRef as useRef2,
353
455
  useState as useState2
354
456
  } from "react";
355
- import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
457
+ import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
356
458
  function liquidToken(name) {
357
459
  return `{{ ${name} }}`;
358
460
  }
@@ -360,7 +462,7 @@ function keepFocus(event) {
360
462
  event.preventDefault();
361
463
  }
362
464
  function VariablePicker({ variables, targetRef, className }) {
363
- const menuId = useId4();
465
+ const menuId = useId5();
364
466
  const trigger = useRef2(null);
365
467
  const menu = useRef2(null);
366
468
  const items = useRef2([]);
@@ -419,8 +521,8 @@ function VariablePicker({ variables, targetRef, className }) {
419
521
  const onItemBlur = (event) => {
420
522
  if (!menu.current?.contains(event.relatedTarget)) setOpen(false);
421
523
  };
422
- return /* @__PURE__ */ jsxs7("div", { className: cn("variable-picker", className), children: [
423
- /* @__PURE__ */ jsx12(
524
+ return /* @__PURE__ */ jsxs9("div", { className: cn("variable-picker", className), children: [
525
+ /* @__PURE__ */ jsx15(
424
526
  "button",
425
527
  {
426
528
  ref: trigger,
@@ -439,7 +541,7 @@ function VariablePicker({ variables, targetRef, className }) {
439
541
  children: "Insert variable"
440
542
  }
441
543
  ),
442
- open ? /* @__PURE__ */ jsx12(
544
+ open ? /* @__PURE__ */ jsx15(
443
545
  "div",
444
546
  {
445
547
  ref: menu,
@@ -447,7 +549,7 @@ function VariablePicker({ variables, targetRef, className }) {
447
549
  role: "menu",
448
550
  "aria-label": "Variables",
449
551
  className: "variable-picker-menu",
450
- children: variables.map((variable, index) => /* @__PURE__ */ jsxs7(
552
+ children: variables.map((variable, index) => /* @__PURE__ */ jsxs9(
451
553
  "button",
452
554
  {
453
555
  ref: (node) => {
@@ -462,8 +564,8 @@ function VariablePicker({ variables, targetRef, className }) {
462
564
  onKeyDown: (event) => onItemKeyDown(event, index),
463
565
  onBlur: onItemBlur,
464
566
  children: [
465
- /* @__PURE__ */ jsx12("span", { className: "variable-picker-item-label", children: variable.label }),
466
- /* @__PURE__ */ jsx12("code", { className: "variable-picker-item-token", children: liquidToken(variable.name) })
567
+ /* @__PURE__ */ jsx15("span", { className: "variable-picker-item-label", children: variable.label }),
568
+ /* @__PURE__ */ jsx15("code", { className: "variable-picker-item-token", children: liquidToken(variable.name) })
467
569
  ]
468
570
  },
469
571
  variable.name
@@ -476,6 +578,9 @@ export {
476
578
  Badge,
477
579
  Button,
478
580
  Card,
581
+ Checklist,
582
+ ChecklistRow,
583
+ ChecklistSkeleton,
479
584
  CodeArea,
480
585
  Container,
481
586
  EmptyState,
@@ -487,6 +592,7 @@ export {
487
592
  SectionHeader,
488
593
  SlotTextField,
489
594
  Spinner,
595
+ StepIndicator,
490
596
  Switch,
491
597
  VariablePicker,
492
598
  cn
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/badge.tsx","../src/components/button.tsx","../src/components/card.tsx","../src/components/code-area.tsx","../src/components/field.tsx","../src/components/container.tsx","../src/components/feedback.tsx","../src/components/preview-frame.tsx","../src/components/section.tsx","../src/components/slot-text-field.tsx","../src/components/text-selection.ts","../src/components/switch.tsx","../src/components/variable-picker.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\nimport { cn } from '../cn';\n\nexport type BadgeVariant = 'neutral' | 'success' | 'warning' | 'danger' | 'info';\n\nexport interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {\n /** Render a leading status dot. */\n dot?: boolean;\n /** Semantic color. `neutral` is the default outlined pill. */\n variant?: BadgeVariant;\n}\n\nconst variantClass: Record<BadgeVariant, string> = {\n neutral: '',\n success: 'badge-success',\n warning: 'badge-warning',\n danger: 'badge-danger',\n info: 'badge-info',\n};\n\n/** Pill badge — neutral by default, or a semantic variant, optionally with a dot. */\nexport function Badge({\n dot = false,\n variant = 'neutral',\n className,\n children,\n ...props\n}: BadgeProps) {\n return (\n <span className={cn('badge', variantClass[variant], className)} {...props}>\n {dot ? <span className=\"badge-dot\" /> : null}\n {children}\n </span>\n );\n}\n","import type { ButtonHTMLAttributes } from 'react';\nimport { cn } from '../cn';\n\nexport type ButtonVariant = 'primary' | 'secondary' | 'outline';\nexport type ButtonSize = 'md' | 'sm';\n\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: ButtonVariant;\n size?: ButtonSize;\n}\n\nconst variantClass: Record<ButtonVariant, string> = {\n primary: 'btn-primary',\n secondary: 'btn-secondary',\n outline: 'btn-outline',\n};\n\nexport function Button({\n variant = 'primary',\n size = 'md',\n className,\n type = 'button',\n ...props\n}: ButtonProps) {\n return (\n <button\n type={type}\n className={cn(variantClass[variant], size === 'sm' && 'btn-sm', className)}\n {...props}\n />\n );\n}\n","import type { HTMLAttributes } from 'react';\nimport { cn } from '../cn';\n\nexport type CardPadding = 'none' | 'sm' | 'md' | 'lg';\n\nexport interface CardProps extends HTMLAttributes<HTMLDivElement> {\n /** Inner padding. Defaults to `md` (28px); use `none` to supply your own. */\n padding?: CardPadding;\n /** Add pointer cursor + hover elevation (for clickable cards). */\n interactive?: boolean;\n}\n\n/** Bordered surface card. Static by default; opt into hover with `interactive`. */\nexport function Card({ padding = 'md', interactive = false, className, ...props }: CardProps) {\n return (\n <div\n className={cn(\n 'card',\n padding !== 'none' && `card-pad-${padding}`,\n interactive && 'card-interactive',\n className,\n )}\n {...props}\n />\n );\n}\n","import { type ChangeEventHandler, type ReactNode, type Ref, useId } from 'react';\nimport { Field } from './field';\n\nexport interface CodeAreaProps {\n label: ReactNode;\n hint?: ReactNode;\n error?: ReactNode;\n value?: string;\n defaultValue?: string;\n onChange?: ChangeEventHandler<HTMLTextAreaElement>;\n /** Ref to the underlying textarea (the target a `VariablePicker` attaches to). */\n ref?: Ref<HTMLTextAreaElement>;\n id?: string;\n name?: string;\n className?: string;\n}\n\n/**\n * Labelled monospace textarea for custom HTML / Liquid source. No editor dependency (CTO decision\n * 1): spellcheck, autocapitalize, autocomplete and soft wrapping are off, and Tab keeps its normal\n * job of moving focus, so the field never traps keyboard users.\n */\nexport function CodeArea({\n label,\n hint,\n error,\n value,\n defaultValue,\n onChange,\n ref,\n id,\n name,\n className,\n}: CodeAreaProps) {\n const generatedId = useId();\n const controlId = id ?? generatedId;\n\n return (\n <Field label={label} hint={hint} error={error} htmlFor={controlId} className={className}>\n <textarea\n ref={ref}\n id={controlId}\n name={name}\n className=\"field code-area\"\n rows={12}\n value={value}\n defaultValue={defaultValue}\n onChange={onChange}\n spellCheck={false}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n wrap=\"off\"\n aria-invalid={error ? true : undefined}\n />\n </Field>\n );\n}\n","import type { InputHTMLAttributes, LabelHTMLAttributes, ReactNode } from 'react';\nimport { cn } from '../cn';\n\nexport type InputProps = InputHTMLAttributes<HTMLInputElement>;\n\n/** Token-aligned text input (the `.field` look: border, surface, brand focus ring). */\nexport function Input({ className, ...props }: InputProps) {\n return <input className={cn('field', className)} {...props} />;\n}\n\nexport type LabelProps = LabelHTMLAttributes<HTMLLabelElement>;\n\nexport function Label({ className, ...props }: LabelProps) {\n // biome-ignore lint/a11y/noLabelWithoutControl: primitive pass-through: the caller supplies the control association (htmlFor, or the input as a child) through the spread props, which the rule cannot see\n return <label className={cn('field-label', className)} {...props} />;\n}\n\nexport interface FieldProps {\n label?: ReactNode;\n /** Helper text shown below the control (hidden when `error` is set). */\n hint?: ReactNode;\n /** Error text shown below the control (takes precedence over `hint`). */\n error?: ReactNode;\n /** `htmlFor` for the label, matching the control's id. */\n htmlFor?: string;\n className?: string;\n children: ReactNode;\n}\n\n/** Labelled field wrapper: optional label above and hint/error below the control. */\nexport function Field({ label, hint, error, htmlFor, className, children }: FieldProps) {\n const message = error || hint;\n return (\n <div className={cn('field-group', className)}>\n {label ? <Label htmlFor={htmlFor}>{label}</Label> : null}\n {children}\n {message ? <span className={error ? 'field-error' : 'field-hint'}>{message}</span> : null}\n </div>\n );\n}\n","import type { HTMLAttributes } from 'react';\nimport { cn } from '../cn';\n\nexport type ContainerProps = HTMLAttributes<HTMLDivElement>;\n\n/** Centered, max-width content wrapper (var(--max-w)) with horizontal padding. */\nexport function Container({ className, ...props }: ContainerProps) {\n return <div className={cn('container', className)} {...props} />;\n}\n","import type { HTMLAttributes, ReactNode } from 'react';\nimport { cn } from '../cn';\n\nexport interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {\n /** Wrap in a centered, padded block (for loading states in a panel). */\n center?: boolean;\n}\n\n/** Brand-colored loading spinner. */\nexport function Spinner({ center = false, className, ...props }: SpinnerProps) {\n const spinner = (\n <span className={cn('spinner', className)} role=\"status\" aria-label=\"Loading\" {...props} />\n );\n return center ? <div className=\"spinner-center\">{spinner}</div> : spinner;\n}\n\nexport interface EmptyStateProps {\n title: ReactNode;\n description?: ReactNode;\n /** Optional icon rendered in the circular badge above the title. */\n icon?: ReactNode;\n className?: string;\n}\n\n/** Centered \"nothing here yet\" placeholder for empty lists/tables. */\nexport function EmptyState({ title, description, icon, className }: EmptyStateProps) {\n return (\n <div className={cn('empty-state', className)}>\n {icon ? <div className=\"empty-state-icon\">{icon}</div> : null}\n <h3 className=\"empty-state-title\">{title}</h3>\n {description ? <p className=\"empty-state-desc\">{description}</p> : null}\n </div>\n );\n}\n","import { cn } from '../cn';\n\nexport interface PreviewFrameProps {\n /** HTML shown inside the isolated frame. */\n html: string;\n /** Accessible title of the iframe. */\n title: string;\n className?: string;\n}\n\n/**\n * Container that previews client-authored email HTML in an iframe. The HTML goes in `srcdoc` and\n * the frame has the strictest sandbox (`sandbox=\"\"`, CTO decision 6): no scripts, forms, popups or\n * same-origin access, so a preview can never reach the dashboard session. Size it through\n * `className` on the container; the frame fills it.\n */\nexport function PreviewFrame({ html, title, className }: PreviewFrameProps) {\n return (\n <div className={cn('preview-frame', className)}>\n <iframe className=\"preview-frame-iframe\" title={title} srcDoc={html} sandbox=\"\" />\n </div>\n );\n}\n","import type { HTMLAttributes, ReactNode } from 'react';\nimport { cn } from '../cn';\n\nexport type SectionProps = HTMLAttributes<HTMLElement>;\n\n/** Vertical page section with max-width and standard padding. */\nexport function Section({ className, ...props }: SectionProps) {\n return <section className={cn('section', className)} {...props} />;\n}\n\nexport interface SectionHeaderProps {\n /** Small eyebrow label above the title (brand colored). */\n label?: ReactNode;\n title: ReactNode;\n description?: ReactNode;\n className?: string;\n}\n\n/** Centered section heading: optional label, title, optional description. */\nexport function SectionHeader({ label, title, description, className }: SectionHeaderProps) {\n return (\n <div className={cn('section-center', className)}>\n {label ? <div className=\"section-label\">{label}</div> : null}\n <h2 className=\"section-title\">{title}</h2>\n {description ? <p className=\"section-desc\">{description}</p> : null}\n </div>\n );\n}\n","import {\n type ChangeEventHandler,\n type ReactNode,\n type Ref,\n useCallback,\n useId,\n useRef,\n} from 'react';\nimport { Field } from './field';\nimport {\n assignRef,\n editSelection,\n type TextControl,\n type TextEdit,\n watchFocus,\n} from './text-selection';\n\nexport interface SlotTextFieldProps {\n label: ReactNode;\n /** Helper text (hidden when `error` is set), as in `Field`. */\n hint?: ReactNode;\n /** Error text (takes precedence over `hint`), as in `Field`. */\n error?: ReactNode;\n /** Render a textarea instead of a single-line input. */\n multiline?: boolean;\n value?: string;\n defaultValue?: string;\n onChange?: ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;\n /** Ref to the underlying input / textarea (the target a `VariablePicker` attaches to). */\n ref?: Ref<HTMLInputElement | HTMLTextAreaElement>;\n id?: string;\n name?: string;\n className?: string;\n}\n\nconst LINK_PLACEHOLDER = 'https://';\n\n/** Wrap the selection in a Markdown-lite marker, keeping the wrapped text selected. */\nfunction wrapWith(marker: string) {\n return (selected: string): TextEdit => ({\n text: `${marker}${selected}${marker}`,\n select: [marker.length, marker.length + selected.length],\n });\n}\n\n/** Turn the selection into `[label](https://)` and select the URL placeholder to type over. */\nfunction toLink(selected: string): TextEdit {\n const label = selected || 'link';\n const url = label.length + 3;\n return { text: `[${label}](${LINK_PLACEHOLDER})`, select: [url, url + LINK_PLACEHOLDER.length] };\n}\n\nconst FORMATS = [\n { name: 'Bold', edit: wrapWith('**') },\n { name: 'Italic', edit: wrapWith('_') },\n { name: 'Link', edit: toLink },\n] as const;\n\n/** The Markdown-lite subset (CTO decision 2) the toolbar writes, named in the default hint. */\nconst SYNTAX_HINT = 'Markdown-lite: **bold**, _italic_ and [link](https://…).';\nconst PARAGRAPH_HINT = ' A blank line starts a new paragraph.';\n\n/**\n * Labelled text field for an email slot, with a Bold / Italic / Link toolbar that writes only the\n * Markdown-lite subset. Single-line by default; `multiline` renders a textarea. Typed text reaches\n * `onChange` unchanged, and toolbar edits fire `onChange` too, so controlled parents stay in sync.\n */\nexport function SlotTextField({\n label,\n hint,\n error,\n multiline = false,\n value,\n defaultValue,\n onChange,\n ref,\n id,\n name,\n className,\n}: SlotTextFieldProps) {\n const generatedId = useId();\n const controlId = id ?? generatedId;\n const control = useRef<TextControl | null>(null);\n\n const setControl = useCallback(\n (node: TextControl | null) => {\n control.current = node;\n if (node) watchFocus(node);\n assignRef(ref, node);\n },\n [ref],\n );\n\n const shared = {\n id: controlId,\n name,\n value,\n defaultValue,\n onChange,\n className: multiline ? 'field field-multiline' : 'field',\n 'aria-invalid': error ? true : undefined,\n };\n\n return (\n <Field\n label={label}\n hint={hint ?? (multiline ? SYNTAX_HINT + PARAGRAPH_HINT : SYNTAX_HINT)}\n error={error}\n htmlFor={controlId}\n className={className}\n >\n <div className=\"slot-toolbar\">\n {FORMATS.map((format) => (\n <button\n key={format.name}\n type=\"button\"\n className=\"slot-toolbar-button\"\n onClick={() => {\n if (control.current) editSelection(control.current, format.edit);\n }}\n >\n {format.name}\n </button>\n ))}\n </div>\n {multiline ? (\n <textarea ref={setControl} rows={4} {...shared} />\n ) : (\n <input ref={setControl} type=\"text\" {...shared} />\n )}\n </Field>\n );\n}\n","import type { Ref } from 'react';\n\n/** The native controls the editor blocks edit: a `SlotTextField` input/textarea or a `CodeArea`. */\nexport type TextControl = HTMLInputElement | HTMLTextAreaElement;\n\n/** An edit at the selection: the text that replaces it, and the selection to leave inside that text. */\nexport interface TextEdit {\n text: string;\n /** Selection after the edit, as `[start, end]` offsets into `text`. */\n select: [number, number];\n}\n\nconst watched = new WeakSet<TextControl>();\nconst focused = new WeakSet<TextControl>();\n\n/**\n * Start remembering whether `control` has ever had focus. A control that never had focus has no\n * cursor the user chose, so `editSelection` appends to it instead of editing at offset 0.\n */\nexport function watchFocus(control: TextControl): void {\n if (watched.has(control)) return;\n watched.add(control);\n if (control.ownerDocument.activeElement === control) {\n focused.add(control);\n return;\n }\n control.addEventListener('focus', () => focused.add(control), { once: true });\n}\n\n/**\n * Set the value the way typing does, so React's change handler fires for a controlled control:\n * the prototype's setter bypasses React's value tracker, then an `input` event reports the change.\n */\nfunction setValueAsTyped(control: TextControl, value: string): void {\n const { set } = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(control), 'value') ?? {};\n set?.call(control, value);\n control.dispatchEvent(new Event('input', { bubbles: true }));\n}\n\n/**\n * Replace the control's selection with the edit `build` makes from the selected text (or append it,\n * when the control never had focus), fire its change handler, then return focus to it with the\n * selection the edit asks for. The Markdown-lite toolbar and the variable picker both edit through\n * this one helper, so they behave the same way.\n */\nexport function editSelection(control: TextControl, build: (selected: string) => TextEdit): void {\n const { value } = control;\n const hadFocus = focused.has(control);\n const start = hadFocus ? (control.selectionStart ?? value.length) : value.length;\n const end = hadFocus ? (control.selectionEnd ?? start) : value.length;\n const edit = build(value.slice(start, end));\n\n setValueAsTyped(control, value.slice(0, start) + edit.text + value.slice(end));\n control.focus();\n control.setSelectionRange(start + edit.select[0], start + edit.select[1]);\n}\n\n/** Point a caller's ref (callback or object) at `node`, for components that also keep their own. */\nexport function assignRef<T>(ref: Ref<T> | undefined, node: T | null): void {\n if (typeof ref === 'function') {\n ref(node);\n return;\n }\n if (ref) ref.current = node;\n}\n","import { type MouseEvent, type ReactNode, useId, useState } from 'react';\nimport { cn } from '../cn';\nimport { Spinner } from './feedback';\n\nexport interface SwitchProps {\n /** Accessible name of the switch. Always rendered; `labelHidden` only hides it visually. */\n label: ReactNode;\n labelHidden?: boolean;\n checked?: boolean;\n defaultChecked?: boolean;\n onCheckedChange?: (checked: boolean) => void;\n disabled?: boolean;\n loading?: boolean;\n id?: string;\n name?: string;\n className?: string;\n}\n\n/** A busy switch ignores pointer presses entirely: no toggle, and no focus move on mouse down. */\nfunction ignorePress(event: MouseEvent<HTMLButtonElement>) {\n event.preventDefault();\n}\n\n/**\n * On/off switch: a native `<button role=\"switch\">` (WAI-ARIA switch pattern), so Tab, Space and\n * Enter work without extra wiring. Controlled with `checked` + `onCheckedChange`, or uncontrolled\n * with `defaultChecked`. While `loading` it stays reachable with Tab and keeps its state, announces\n * busy and ignores presses; the parent flips `checked` once the save resolves. `labelHidden` keeps\n * the accessible name but hides the label text (for table rows that are labelled by their column).\n * With `name`, a checked switch submits `name=on` in a form, as a checkbox does; like a disabled\n * checkbox, a disabled switch submits nothing.\n */\nexport function Switch({\n label,\n labelHidden = false,\n checked,\n defaultChecked = false,\n onCheckedChange,\n disabled = false,\n loading = false,\n id,\n name,\n className,\n}: SwitchProps) {\n const generatedId = useId();\n const controlId = id ?? generatedId;\n const labelId = `${controlId}-label`;\n const [ownChecked, setOwnChecked] = useState(defaultChecked);\n const isChecked = checked ?? ownChecked;\n\n const toggle = () => {\n if (loading) return;\n const next = !isChecked;\n if (checked === undefined) setOwnChecked(next);\n onCheckedChange?.(next);\n };\n\n return (\n <span className={cn('switch', className)}>\n <button\n type=\"button\"\n role=\"switch\"\n id={controlId}\n className=\"switch-control\"\n aria-checked={isChecked}\n aria-labelledby={labelId}\n aria-busy={loading || undefined}\n aria-disabled={loading || undefined}\n disabled={disabled}\n onMouseDown={loading ? ignorePress : undefined}\n onClick={toggle}\n >\n <span className=\"switch-thumb\" aria-hidden=\"true\" />\n </button>\n <label\n id={labelId}\n htmlFor={controlId}\n className={cn('switch-label', labelHidden && 'visually-hidden')}\n >\n {label}\n </label>\n {loading ? <Spinner className=\"switch-spinner\" /> : null}\n {name && isChecked && !disabled ? <input type=\"hidden\" name={name} value=\"on\" /> : null}\n </span>\n );\n}\n","import {\n type FocusEvent,\n type KeyboardEvent,\n type MouseEvent,\n type RefObject,\n useEffect,\n useId,\n useRef,\n useState,\n} from 'react';\nimport { cn } from '../cn';\nimport { editSelection, watchFocus } from './text-selection';\n\nexport interface VariablePickerProps {\n variables: ReadonlyArray<{ name: string; label: string }>;\n /** The `SlotTextField` / `CodeArea` control the chosen `{{ name }}` token is inserted into. */\n targetRef: RefObject<HTMLInputElement | HTMLTextAreaElement | null>;\n className?: string;\n}\n\n/** The Liquid output tag for a variable (CTO decision 3). */\nfunction liquidToken(name: string): string {\n return `{{ ${name} }}`;\n}\n\n/** Keep focus where it is on press, so the target keeps its selection and the menu stays open. */\nfunction keepFocus(event: MouseEvent) {\n event.preventDefault();\n}\n\n/**\n * \"Insert variable\" menu button (WAI-ARIA menu-button pattern) for a `SlotTextField` or `CodeArea`.\n * Choosing a variable replaces the target's selection with `{{ name }}` (or appends it, if the\n * target never had focus), fires the target's change handler and returns focus to the target with\n * the cursor after the token. The variable list is a prop; the picker fetches nothing.\n */\nexport function VariablePicker({ variables, targetRef, className }: VariablePickerProps) {\n const menuId = useId();\n const trigger = useRef<HTMLButtonElement>(null);\n const menu = useRef<HTMLDivElement>(null);\n const items = useRef<(HTMLButtonElement | null)[]>([]);\n const [open, setOpen] = useState(false);\n const [active, setActive] = useState(0);\n const count = variables.length;\n\n // The target may only mount or change after the picker, so look for it after every render.\n useEffect(() => {\n if (targetRef.current) watchFocus(targetRef.current);\n });\n\n useEffect(() => {\n if (open) items.current[active]?.focus();\n }, [open, active]);\n\n const openAt = (index: number) => {\n setActive(index);\n setOpen(true);\n };\n\n const close = () => {\n setOpen(false);\n trigger.current?.focus();\n };\n\n const choose = (name: string) => {\n setOpen(false);\n const control = targetRef.current;\n if (!control) {\n trigger.current?.focus();\n return;\n }\n const token = liquidToken(name);\n editSelection(control, () => ({ text: token, select: [token.length, token.length] }));\n };\n\n const onTriggerKeyDown = (event: KeyboardEvent<HTMLButtonElement>) => {\n const first = new Map([\n ['ArrowDown', 0],\n ['ArrowUp', count - 1],\n ]).get(event.key);\n if (first === undefined) return;\n event.preventDefault();\n openAt(first);\n };\n\n const onItemKeyDown = (event: KeyboardEvent<HTMLButtonElement>, index: number) => {\n const next = new Map([\n ['ArrowDown', (index + 1) % count],\n ['ArrowUp', (index - 1 + count) % count],\n ['Home', 0],\n ['End', count - 1],\n ]).get(event.key);\n if (next !== undefined) {\n event.preventDefault();\n setActive(next);\n return;\n }\n if (event.key !== 'Escape') return;\n event.preventDefault();\n close();\n };\n\n // Close when focus leaves the list: Tab or Shift+Tab, or a click anywhere else.\n const onItemBlur = (event: FocusEvent<HTMLButtonElement>) => {\n if (!menu.current?.contains(event.relatedTarget)) setOpen(false);\n };\n\n return (\n <div className={cn('variable-picker', className)}>\n <button\n ref={trigger}\n type=\"button\"\n className=\"variable-picker-trigger\"\n aria-haspopup=\"menu\"\n aria-expanded={open}\n aria-controls={open ? menuId : undefined}\n disabled={count === 0}\n onMouseDown={keepFocus}\n onClick={() => {\n if (open) close();\n else openAt(0);\n }}\n onKeyDown={onTriggerKeyDown}\n >\n Insert variable\n </button>\n {open ? (\n <div\n ref={menu}\n id={menuId}\n role=\"menu\"\n aria-label=\"Variables\"\n className=\"variable-picker-menu\"\n >\n {variables.map((variable, index) => (\n <button\n key={variable.name}\n ref={(node) => {\n items.current[index] = node;\n }}\n type=\"button\"\n role=\"menuitem\"\n tabIndex={-1}\n className=\"variable-picker-item\"\n onMouseDown={keepFocus}\n onClick={() => choose(variable.name)}\n onKeyDown={(event) => onItemKeyDown(event, index)}\n onBlur={onItemBlur}\n >\n <span className=\"variable-picker-item-label\">{variable.label}</span>\n <code className=\"variable-picker-item-token\">{liquidToken(variable.name)}</code>\n </button>\n ))}\n </div>\n ) : null}\n </div>\n );\n}\n"],"mappings":";;;;;AA6BI,SACS,KADT;AAjBJ,IAAM,eAA6C;AAAA,EACjD,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,MAAM;AACR;AAGO,SAAS,MAAM;AAAA,EACpB,MAAM;AAAA,EACN,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAe;AACb,SACE,qBAAC,UAAK,WAAW,GAAG,SAAS,aAAa,OAAO,GAAG,SAAS,GAAI,GAAG,OACjE;AAAA,UAAM,oBAAC,UAAK,WAAU,aAAY,IAAK;AAAA,IACvC;AAAA,KACH;AAEJ;;;ACTI,gBAAAA,YAAA;AAdJ,IAAMC,gBAA8C;AAAA,EAClD,SAAS;AAAA,EACT,WAAW;AAAA,EACX,SAAS;AACX;AAEO,SAAS,OAAO;AAAA,EACrB,UAAU;AAAA,EACV,OAAO;AAAA,EACP;AAAA,EACA,OAAO;AAAA,EACP,GAAG;AACL,GAAgB;AACd,SACE,gBAAAD;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,WAAW,GAAGC,cAAa,OAAO,GAAG,SAAS,QAAQ,UAAU,SAAS;AAAA,MACxE,GAAG;AAAA;AAAA,EACN;AAEJ;;;AChBI,gBAAAC,YAAA;AAFG,SAAS,KAAK,EAAE,UAAU,MAAM,cAAc,OAAO,WAAW,GAAG,MAAM,GAAc;AAC5F,SACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA,YAAY,UAAU,YAAY,OAAO;AAAA,QACzC,eAAe;AAAA,QACf;AAAA,MACF;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;;;ACzBA,SAA4D,aAAa;;;ACOhE,gBAAAC,MA0BL,QAAAC,aA1BK;AADF,SAAS,M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UAdpE,SAAS;AAAA,QAehB,CACD;AAAA;AAAA,IACH,IACE;AAAA,KACN;AAEJ;","names":["jsx","variantClass","jsx","jsx","jsxs","jsx","jsx","jsx","jsxs","jsx","jsx","jsxs","useId","jsx","jsxs","useId","useId","jsx","jsxs","useId","useId","useRef","useState","jsx","jsxs","useId","useRef","useState"]}
1
+ {"version":3,"sources":["../src/components/badge.tsx","../src/components/button.tsx","../src/components/card.tsx","../src/components/checklist.tsx","../src/components/check-icon.tsx","../src/components/code-area.tsx","../src/components/field.tsx","../src/components/container.tsx","../src/components/feedback.tsx","../src/components/preview-frame.tsx","../src/components/section.tsx","../src/components/slot-text-field.tsx","../src/components/text-selection.ts","../src/components/step-indicator.tsx","../src/components/switch.tsx","../src/components/variable-picker.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\nimport { cn } from '../cn';\n\nexport type BadgeVariant = 'neutral' | 'success' | 'warning' | 'danger' | 'info';\n\nexport interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {\n /** Render a leading status dot. */\n dot?: boolean;\n /** Semantic color. `neutral` is the default outlined pill. */\n variant?: BadgeVariant;\n}\n\nconst variantClass: Record<BadgeVariant, string> = {\n neutral: '',\n success: 'badge-success',\n warning: 'badge-warning',\n danger: 'badge-danger',\n info: 'badge-info',\n};\n\n/** Pill badge — neutral by default, or a semantic variant, optionally with a dot. */\nexport function Badge({\n dot = false,\n variant = 'neutral',\n className,\n children,\n ...props\n}: BadgeProps) {\n return (\n <span className={cn('badge', variantClass[variant], className)} {...props}>\n {dot ? <span className=\"badge-dot\" /> : null}\n {children}\n </span>\n );\n}\n","import type { ButtonHTMLAttributes } from 'react';\nimport { cn } from '../cn';\n\nexport type ButtonVariant = 'primary' | 'secondary' | 'outline';\nexport type ButtonSize = 'md' | 'sm';\n\nexport interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: ButtonVariant;\n size?: ButtonSize;\n}\n\nconst variantClass: Record<ButtonVariant, string> = {\n primary: 'btn-primary',\n secondary: 'btn-secondary',\n outline: 'btn-outline',\n};\n\nexport function Button({\n variant = 'primary',\n size = 'md',\n className,\n type = 'button',\n ...props\n}: ButtonProps) {\n return (\n <button\n type={type}\n className={cn(variantClass[variant], size === 'sm' && 'btn-sm', className)}\n {...props}\n />\n );\n}\n","import type { HTMLAttributes } from 'react';\nimport { cn } from '../cn';\n\nexport type CardPadding = 'none' | 'sm' | 'md' | 'lg';\n\nexport interface CardProps extends HTMLAttributes<HTMLDivElement> {\n /** Inner padding. Defaults to `md` (28px); use `none` to supply your own. */\n padding?: CardPadding;\n /** Add pointer cursor + hover elevation (for clickable cards). */\n interactive?: boolean;\n}\n\n/** Bordered surface card. Static by default; opt into hover with `interactive`. */\nexport function Card({ padding = 'md', interactive = false, className, ...props }: CardProps) {\n return (\n <div\n className={cn(\n 'card',\n padding !== 'none' && `card-pad-${padding}`,\n interactive && 'card-interactive',\n className,\n )}\n {...props}\n />\n );\n}\n","import { type ComponentType, type ElementType, type ReactNode, useId } from 'react';\nimport { cn } from '../cn';\nimport { Badge } from './badge';\nimport { CheckIcon } from './check-icon';\n\nexport interface ChecklistProps {\n /** The `ChecklistRow`s (or any list items) of the list. */\n children?: ReactNode;\n className?: string;\n}\n\nexport interface ChecklistRowProps {\n /** Text of the row. Always rendered. */\n label: ReactNode;\n /** Filled tick on the `success` token when true; an empty tick otherwise. */\n done?: boolean;\n /** Optional text on the right of the row. */\n status?: ReactNode;\n /** Shows an \"Optional\" tag next to the label. */\n optional?: boolean;\n /** Makes the whole row a single link. */\n href?: string;\n /** Component used for the link (default `a`), e.g. `next/link`. Receives `href`, `className` and the row content. */\n linkAs?: ComponentType<{ href: string; className?: string; children?: ReactNode }>;\n /** Overrides the visually hidden state wording (\"Done\", \"Not done\"). */\n statusLabels?: { done?: string; notDone?: string };\n className?: string;\n}\n\nexport interface ChecklistSkeletonProps {\n /** Number of placeholder rows. Defaults to 3. */\n rows?: number;\n className?: string;\n}\n\n/** A vertical tick list, e.g. a setup checklist. Its children are `ChecklistRow`s. */\nexport function Checklist({ children, className }: ChecklistProps) {\n return <ul className={cn('checklist', className)}>{children}</ul>;\n}\n\n/**\n * One row of a `Checklist`: a tick (filled on the `success` token when `done`, empty otherwise),\n * the label, an optional neutral \"Optional\" `Badge` and optional `status` text on the right. The\n * tick is decorative; the state is said in visually hidden text (\"Done\" / \"Not done\", or\n * `statusLabels`), so it is never conveyed by the graphic alone. With `href` the whole row is one\n * link, rendered as `<a>` or through `linkAs` (e.g. `next/link`) so the package never imports a\n * router.\n */\nexport function ChecklistRow({\n label,\n done = false,\n status,\n optional = false,\n href,\n linkAs,\n statusLabels,\n className,\n}: ChecklistRowProps) {\n const state = done ? (statusLabels?.done ?? 'Done') : (statusLabels?.notDone ?? 'Not done');\n const content = (\n <>\n <span className={cn('checklist-tick', done && 'checklist-tick-done')} aria-hidden=\"true\">\n {done ? <CheckIcon className=\"checklist-tick-icon\" /> : null}\n </span>\n <span className=\"checklist-row-label\">{label}</span>\n <span className=\"visually-hidden\">{state}</span>\n {optional ? <Badge>Optional</Badge> : null}\n {status ? <span className=\"checklist-row-status\">{status}</span> : null}\n </>\n );\n const Link: ElementType = linkAs ?? 'a';\n\n return (\n <li className={cn('checklist-row', className)}>\n {href ? (\n <Link href={href} className=\"checklist-row-body checklist-row-link\">\n {content}\n </Link>\n ) : (\n <div className=\"checklist-row-body\">{content}</div>\n )}\n </li>\n );\n}\n\n/**\n * Loading form of a `Checklist`: `rows` placeholder rows (3 by default) on the `bg-muted` token,\n * inside a `role=\"status\"` region named by visually hidden \"Loading\" text. The placeholders are\n * hidden from assistive tech.\n */\nexport function ChecklistSkeleton({ rows = 3, className }: ChecklistSkeletonProps) {\n const labelId = useId();\n\n return (\n <div className={cn('checklist-skeleton', className)} role=\"status\" aria-labelledby={labelId}>\n <span id={labelId} className=\"visually-hidden\">\n Loading\n </span>\n {Array.from({ length: rows }, (_, index) => (\n // biome-ignore lint/suspicious/noArrayIndexKey: identical stateless placeholders with no identity of their own, so the position is the only key\n <div key={index} className=\"checklist-skeleton-row\" aria-hidden=\"true\">\n <span className=\"checklist-skeleton-tick\" />\n <span className=\"checklist-skeleton-line\" />\n </div>\n ))}\n </div>\n );\n}\n","/** Decorative check mark drawn in `currentColor`. Hidden from assistive tech: callers say the state in text. */\nexport function CheckIcon({ className }: { className?: string }) {\n return (\n <svg className={className} viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\n <path\n d=\"M3.5 8.5l3 3 6-7\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n}\n","import { type ChangeEventHandler, type ReactNode, type Ref, useId } from 'react';\nimport { Field } from './field';\n\nexport interface CodeAreaProps {\n label: ReactNode;\n hint?: ReactNode;\n error?: ReactNode;\n value?: string;\n defaultValue?: string;\n onChange?: ChangeEventHandler<HTMLTextAreaElement>;\n /** Ref to the underlying textarea (the target a `VariablePicker` attaches to). */\n ref?: Ref<HTMLTextAreaElement>;\n id?: string;\n name?: string;\n className?: string;\n}\n\n/**\n * Labelled monospace textarea for custom HTML / Liquid source. No editor dependency (CTO decision\n * 1): spellcheck, autocapitalize, autocomplete and soft wrapping are off, and Tab keeps its normal\n * job of moving focus, so the field never traps keyboard users.\n */\nexport function CodeArea({\n label,\n hint,\n error,\n value,\n defaultValue,\n onChange,\n ref,\n id,\n name,\n className,\n}: CodeAreaProps) {\n const generatedId = useId();\n const controlId = id ?? generatedId;\n\n return (\n <Field label={label} hint={hint} error={error} htmlFor={controlId} className={className}>\n <textarea\n ref={ref}\n id={controlId}\n name={name}\n className=\"field code-area\"\n rows={12}\n value={value}\n defaultValue={defaultValue}\n onChange={onChange}\n spellCheck={false}\n autoCapitalize=\"off\"\n autoComplete=\"off\"\n autoCorrect=\"off\"\n wrap=\"off\"\n aria-invalid={error ? true : undefined}\n />\n </Field>\n );\n}\n","import type { InputHTMLAttributes, LabelHTMLAttributes, ReactNode } from 'react';\nimport { cn } from '../cn';\n\nexport type InputProps = InputHTMLAttributes<HTMLInputElement>;\n\n/** Token-aligned text input (the `.field` look: border, surface, brand focus ring). */\nexport function Input({ className, ...props }: InputProps) {\n return <input className={cn('field', className)} {...props} />;\n}\n\nexport type LabelProps = LabelHTMLAttributes<HTMLLabelElement>;\n\nexport function Label({ className, ...props }: LabelProps) {\n // biome-ignore lint/a11y/noLabelWithoutControl: primitive pass-through: the caller supplies the control association (htmlFor, or the input as a child) through the spread props, which the rule cannot see\n return <label className={cn('field-label', className)} {...props} />;\n}\n\nexport interface FieldProps {\n label?: ReactNode;\n /** Helper text shown below the control (hidden when `error` is set). */\n hint?: ReactNode;\n /** Error text shown below the control (takes precedence over `hint`). */\n error?: ReactNode;\n /** `htmlFor` for the label, matching the control's id. */\n htmlFor?: string;\n className?: string;\n children: ReactNode;\n}\n\n/** Labelled field wrapper: optional label above and hint/error below the control. */\nexport function Field({ label, hint, error, htmlFor, className, children }: FieldProps) {\n const message = error || hint;\n return (\n <div className={cn('field-group', className)}>\n {label ? <Label htmlFor={htmlFor}>{label}</Label> : null}\n {children}\n {message ? <span className={error ? 'field-error' : 'field-hint'}>{message}</span> : null}\n </div>\n );\n}\n","import type { HTMLAttributes } from 'react';\nimport { cn } from '../cn';\n\nexport type ContainerProps = HTMLAttributes<HTMLDivElement>;\n\n/** Centered, max-width content wrapper (var(--max-w)) with horizontal padding. */\nexport function Container({ className, ...props }: ContainerProps) {\n return <div className={cn('container', className)} {...props} />;\n}\n","import type { HTMLAttributes, ReactNode } from 'react';\nimport { cn } from '../cn';\n\nexport interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {\n /** Wrap in a centered, padded block (for loading states in a panel). */\n center?: boolean;\n}\n\n/** Brand-colored loading spinner. */\nexport function Spinner({ center = false, className, ...props }: SpinnerProps) {\n const spinner = (\n <span className={cn('spinner', className)} role=\"status\" aria-label=\"Loading\" {...props} />\n );\n return center ? <div className=\"spinner-center\">{spinner}</div> : spinner;\n}\n\nexport interface EmptyStateProps {\n title: ReactNode;\n description?: ReactNode;\n /** Optional icon rendered in the circular badge above the title. */\n icon?: ReactNode;\n className?: string;\n}\n\n/** Centered \"nothing here yet\" placeholder for empty lists/tables. */\nexport function EmptyState({ title, description, icon, className }: EmptyStateProps) {\n return (\n <div className={cn('empty-state', className)}>\n {icon ? <div className=\"empty-state-icon\">{icon}</div> : null}\n <h3 className=\"empty-state-title\">{title}</h3>\n {description ? <p className=\"empty-state-desc\">{description}</p> : null}\n </div>\n );\n}\n","import { cn } from '../cn';\n\nexport interface PreviewFrameProps {\n /** HTML shown inside the isolated frame. */\n html: string;\n /** Accessible title of the iframe. */\n title: string;\n className?: string;\n}\n\n/**\n * Container that previews client-authored email HTML in an iframe. The HTML goes in `srcdoc` and\n * the frame has the strictest sandbox (`sandbox=\"\"`, CTO decision 6): no scripts, forms, popups or\n * same-origin access, so a preview can never reach the dashboard session. Size it through\n * `className` on the container; the frame fills it.\n */\nexport function PreviewFrame({ html, title, className }: PreviewFrameProps) {\n return (\n <div className={cn('preview-frame', className)}>\n <iframe className=\"preview-frame-iframe\" title={title} srcDoc={html} sandbox=\"\" />\n </div>\n );\n}\n","import type { HTMLAttributes, ReactNode } from 'react';\nimport { cn } from '../cn';\n\nexport type SectionProps = HTMLAttributes<HTMLElement>;\n\n/** Vertical page section with max-width and standard padding. */\nexport function Section({ className, ...props }: SectionProps) {\n return <section className={cn('section', className)} {...props} />;\n}\n\nexport interface SectionHeaderProps {\n /** Small eyebrow label above the title (brand colored). */\n label?: ReactNode;\n title: ReactNode;\n description?: ReactNode;\n className?: string;\n}\n\n/** Centered section heading: optional label, title, optional description. */\nexport function SectionHeader({ label, title, description, className }: SectionHeaderProps) {\n return (\n <div className={cn('section-center', className)}>\n {label ? <div className=\"section-label\">{label}</div> : null}\n <h2 className=\"section-title\">{title}</h2>\n {description ? <p className=\"section-desc\">{description}</p> : null}\n </div>\n );\n}\n","import {\n type ChangeEventHandler,\n type ReactNode,\n type Ref,\n useCallback,\n useId,\n useRef,\n} from 'react';\nimport { Field } from './field';\nimport {\n assignRef,\n editSelection,\n type TextControl,\n type TextEdit,\n watchFocus,\n} from './text-selection';\n\nexport interface SlotTextFieldProps {\n label: ReactNode;\n /** Helper text (hidden when `error` is set), as in `Field`. */\n hint?: ReactNode;\n /** Error text (takes precedence over `hint`), as in `Field`. */\n error?: ReactNode;\n /** Render a textarea instead of a single-line input. */\n multiline?: boolean;\n value?: string;\n defaultValue?: string;\n onChange?: ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;\n /** Ref to the underlying input / textarea (the target a `VariablePicker` attaches to). */\n ref?: Ref<HTMLInputElement | HTMLTextAreaElement>;\n id?: string;\n name?: string;\n className?: string;\n}\n\nconst LINK_PLACEHOLDER = 'https://';\n\n/** Wrap the selection in a Markdown-lite marker, keeping the wrapped text selected. */\nfunction wrapWith(marker: string) {\n return (selected: string): TextEdit => ({\n text: `${marker}${selected}${marker}`,\n select: [marker.length, marker.length + selected.length],\n });\n}\n\n/** Turn the selection into `[label](https://)` and select the URL placeholder to type over. */\nfunction toLink(selected: string): TextEdit {\n const label = selected || 'link';\n const url = label.length + 3;\n return { text: `[${label}](${LINK_PLACEHOLDER})`, select: [url, url + LINK_PLACEHOLDER.length] };\n}\n\nconst FORMATS = [\n { name: 'Bold', edit: wrapWith('**') },\n { name: 'Italic', edit: wrapWith('_') },\n { name: 'Link', edit: toLink },\n] as const;\n\n/** The Markdown-lite subset (CTO decision 2) the toolbar writes, named in the default hint. */\nconst SYNTAX_HINT = 'Markdown-lite: **bold**, _italic_ and [link](https://…).';\nconst PARAGRAPH_HINT = ' A blank line starts a new paragraph.';\n\n/**\n * Labelled text field for an email slot, with a Bold / Italic / Link toolbar that writes only the\n * Markdown-lite subset. Single-line by default; `multiline` renders a textarea. Typed text reaches\n * `onChange` unchanged, and toolbar edits fire `onChange` too, so controlled parents stay in sync.\n */\nexport function SlotTextField({\n label,\n hint,\n error,\n multiline = false,\n value,\n defaultValue,\n onChange,\n ref,\n id,\n name,\n className,\n}: SlotTextFieldProps) {\n const generatedId = useId();\n const controlId = id ?? generatedId;\n const control = useRef<TextControl | null>(null);\n\n const setControl = useCallback(\n (node: TextControl | null) => {\n control.current = node;\n if (node) watchFocus(node);\n assignRef(ref, node);\n },\n [ref],\n );\n\n const shared = {\n id: controlId,\n name,\n value,\n defaultValue,\n onChange,\n className: multiline ? 'field field-multiline' : 'field',\n 'aria-invalid': error ? true : undefined,\n };\n\n return (\n <Field\n label={label}\n hint={hint ?? (multiline ? SYNTAX_HINT + PARAGRAPH_HINT : SYNTAX_HINT)}\n error={error}\n htmlFor={controlId}\n className={className}\n >\n <div className=\"slot-toolbar\">\n {FORMATS.map((format) => (\n <button\n key={format.name}\n type=\"button\"\n className=\"slot-toolbar-button\"\n onClick={() => {\n if (control.current) editSelection(control.current, format.edit);\n }}\n >\n {format.name}\n </button>\n ))}\n </div>\n {multiline ? (\n <textarea ref={setControl} rows={4} {...shared} />\n ) : (\n <input ref={setControl} type=\"text\" {...shared} />\n )}\n </Field>\n );\n}\n","import type { Ref } from 'react';\n\n/** The native controls the editor blocks edit: a `SlotTextField` input/textarea or a `CodeArea`. */\nexport type TextControl = HTMLInputElement | HTMLTextAreaElement;\n\n/** An edit at the selection: the text that replaces it, and the selection to leave inside that text. */\nexport interface TextEdit {\n text: string;\n /** Selection after the edit, as `[start, end]` offsets into `text`. */\n select: [number, number];\n}\n\nconst watched = new WeakSet<TextControl>();\nconst focused = new WeakSet<TextControl>();\n\n/**\n * Start remembering whether `control` has ever had focus. A control that never had focus has no\n * cursor the user chose, so `editSelection` appends to it instead of editing at offset 0.\n */\nexport function watchFocus(control: TextControl): void {\n if (watched.has(control)) return;\n watched.add(control);\n if (control.ownerDocument.activeElement === control) {\n focused.add(control);\n return;\n }\n control.addEventListener('focus', () => focused.add(control), { once: true });\n}\n\n/**\n * Set the value the way typing does, so React's change handler fires for a controlled control:\n * the prototype's setter bypasses React's value tracker, then an `input` event reports the change.\n */\nfunction setValueAsTyped(control: TextControl, value: string): void {\n const { set } = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(control), 'value') ?? {};\n set?.call(control, value);\n control.dispatchEvent(new Event('input', { bubbles: true }));\n}\n\n/**\n * Replace the control's selection with the edit `build` makes from the selected text (or append it,\n * when the control never had focus), fire its change handler, then return focus to it with the\n * selection the edit asks for. The Markdown-lite toolbar and the variable picker both edit through\n * this one helper, so they behave the same way.\n */\nexport function editSelection(control: TextControl, build: (selected: string) => TextEdit): void {\n const { value } = control;\n const hadFocus = focused.has(control);\n const start = hadFocus ? (control.selectionStart ?? value.length) : value.length;\n const end = hadFocus ? (control.selectionEnd ?? start) : value.length;\n const edit = build(value.slice(start, end));\n\n setValueAsTyped(control, value.slice(0, start) + edit.text + value.slice(end));\n control.focus();\n control.setSelectionRange(start + edit.select[0], start + edit.select[1]);\n}\n\n/** Point a caller's ref (callback or object) at `node`, for components that also keep their own. */\nexport function assignRef<T>(ref: Ref<T> | undefined, node: T | null): void {\n if (typeof ref === 'function') {\n ref(node);\n return;\n }\n if (ref) ref.current = node;\n}\n","import type { ReactNode } from 'react';\nimport { cn } from '../cn';\nimport { CheckIcon } from './check-icon';\n\nexport type StepStatus = 'done' | 'current' | 'upcoming';\n\nexport interface StepIndicatorStep {\n label: ReactNode;\n /** Passed by the caller; the component never works the state out itself. */\n status: StepStatus;\n}\n\nexport interface StepIndicatorProps {\n steps: StepIndicatorStep[];\n /** Overrides the visually hidden state wording (\"Done\", \"Current\", \"Upcoming\"). */\n statusLabels?: Partial<Record<StepStatus, string>>;\n className?: string;\n}\n\nconst defaultStatusLabels: Record<StepStatus, string> = {\n done: 'Done',\n current: 'Current',\n upcoming: 'Upcoming',\n};\n\nconst markerClass: Record<StepStatus, string> = {\n done: 'step-indicator-marker-done',\n current: 'step-indicator-marker-current',\n upcoming: '',\n};\n\n/**\n * Wizard progress as an ordered list, one item per step in the given order. Each step's `status`\n * comes from the caller, so steps can be completed out of order. The current step carries\n * `aria-current=\"step\"`, and every step says its state in visually hidden text (\"Done\",\n * \"Current\", \"Upcoming\", or `statusLabels`), so the state is never conveyed by colour alone.\n */\nexport function StepIndicator({ steps, statusLabels, className }: StepIndicatorProps) {\n return (\n <ol className={cn('step-indicator', className)}>\n {steps.map((step, index) => (\n <li\n // biome-ignore lint/suspicious/noArrayIndexKey: a step is its position in the wizard, `label` is a ReactNode with no uniqueness guarantee, and the items hold no state\n key={index}\n className=\"step-indicator-step\"\n aria-current={step.status === 'current' ? 'step' : undefined}\n >\n <span\n className={cn('step-indicator-marker', markerClass[step.status])}\n aria-hidden=\"true\"\n >\n {step.status === 'done' ? <CheckIcon className=\"step-indicator-icon\" /> : index + 1}\n </span>\n <span\n className={cn(\n 'step-indicator-label',\n step.status === 'current' && 'step-indicator-label-current',\n )}\n >\n {step.label}\n </span>\n <span className=\"visually-hidden\">\n {statusLabels?.[step.status] ?? defaultStatusLabels[step.status]}\n </span>\n </li>\n ))}\n </ol>\n );\n}\n","import { type MouseEvent, type ReactNode, useId, useState } from 'react';\nimport { cn } from '../cn';\nimport { Spinner } from './feedback';\n\nexport interface SwitchProps {\n /** Accessible name of the switch. Always rendered; `labelHidden` only hides it visually. */\n label: ReactNode;\n labelHidden?: boolean;\n checked?: boolean;\n defaultChecked?: boolean;\n onCheckedChange?: (checked: boolean) => void;\n disabled?: boolean;\n loading?: boolean;\n id?: string;\n name?: string;\n className?: string;\n}\n\n/** A busy switch ignores pointer presses entirely: no toggle, and no focus move on mouse down. */\nfunction ignorePress(event: MouseEvent<HTMLButtonElement>) {\n event.preventDefault();\n}\n\n/**\n * On/off switch: a native `<button role=\"switch\">` (WAI-ARIA switch pattern), so Tab, Space and\n * Enter work without extra wiring. Controlled with `checked` + `onCheckedChange`, or uncontrolled\n * with `defaultChecked`. While `loading` it stays reachable with Tab and keeps its state, announces\n * busy and ignores presses; the parent flips `checked` once the save resolves. `labelHidden` keeps\n * the accessible name but hides the label text (for table rows that are labelled by their column).\n * With `name`, a checked switch submits `name=on` in a form, as a checkbox does; like a disabled\n * checkbox, a disabled switch submits nothing.\n */\nexport function Switch({\n label,\n labelHidden = false,\n checked,\n defaultChecked = false,\n onCheckedChange,\n disabled = false,\n loading = false,\n id,\n name,\n className,\n}: SwitchProps) {\n const generatedId = useId();\n const controlId = id ?? generatedId;\n const labelId = `${controlId}-label`;\n const [ownChecked, setOwnChecked] = useState(defaultChecked);\n const isChecked = checked ?? ownChecked;\n\n const toggle = () => {\n if (loading) return;\n const next = !isChecked;\n if (checked === undefined) setOwnChecked(next);\n onCheckedChange?.(next);\n };\n\n return (\n <span className={cn('switch', className)}>\n <button\n type=\"button\"\n role=\"switch\"\n id={controlId}\n className=\"switch-control\"\n aria-checked={isChecked}\n aria-labelledby={labelId}\n aria-busy={loading || undefined}\n aria-disabled={loading || undefined}\n disabled={disabled}\n onMouseDown={loading ? ignorePress : undefined}\n onClick={toggle}\n >\n <span className=\"switch-thumb\" aria-hidden=\"true\" />\n </button>\n <label\n id={labelId}\n htmlFor={controlId}\n className={cn('switch-label', labelHidden && 'visually-hidden')}\n >\n {label}\n </label>\n {loading ? <Spinner className=\"switch-spinner\" /> : null}\n {name && isChecked && !disabled ? <input type=\"hidden\" name={name} value=\"on\" /> : null}\n </span>\n );\n}\n","import {\n type FocusEvent,\n type KeyboardEvent,\n type MouseEvent,\n type RefObject,\n useEffect,\n useId,\n useRef,\n useState,\n} from 'react';\nimport { cn } from '../cn';\nimport { editSelection, watchFocus } from './text-selection';\n\nexport interface VariablePickerProps {\n variables: ReadonlyArray<{ name: string; label: string }>;\n /** The `SlotTextField` / `CodeArea` control the chosen `{{ name }}` token is inserted into. */\n targetRef: RefObject<HTMLInputElement | HTMLTextAreaElement | null>;\n className?: string;\n}\n\n/** The Liquid output tag for a variable (CTO decision 3). */\nfunction liquidToken(name: string): string {\n return `{{ ${name} }}`;\n}\n\n/** Keep focus where it is on press, so the target keeps its selection and the menu stays open. */\nfunction keepFocus(event: MouseEvent) {\n event.preventDefault();\n}\n\n/**\n * \"Insert variable\" menu button (WAI-ARIA menu-button pattern) for a `SlotTextField` or `CodeArea`.\n * Choosing a variable replaces the target's selection with `{{ name }}` (or appends it, if the\n * target never had focus), fires the target's change handler and returns focus to the target with\n * the cursor after the token. The variable list is a prop; the picker fetches nothing.\n */\nexport function VariablePicker({ variables, targetRef, className }: VariablePickerProps) {\n const menuId = useId();\n const trigger = useRef<HTMLButtonElement>(null);\n const menu = useRef<HTMLDivElement>(null);\n const items = useRef<(HTMLButtonElement | null)[]>([]);\n const [open, setOpen] = useState(false);\n const [active, setActive] = useState(0);\n const count = variables.length;\n\n // The target may only mount or change after the picker, so look for it after every render.\n useEffect(() => {\n if (targetRef.current) watchFocus(targetRef.current);\n });\n\n useEffect(() => {\n if (open) items.current[active]?.focus();\n }, [open, active]);\n\n const openAt = (index: number) => {\n setActive(index);\n setOpen(true);\n };\n\n const close = () => {\n setOpen(false);\n trigger.current?.focus();\n };\n\n const choose = (name: string) => {\n setOpen(false);\n const control = targetRef.current;\n if (!control) {\n trigger.current?.focus();\n return;\n }\n const token = liquidToken(name);\n editSelection(control, () => ({ text: token, select: [token.length, token.length] }));\n };\n\n const onTriggerKeyDown = (event: KeyboardEvent<HTMLButtonElement>) => {\n const first = new Map([\n ['ArrowDown', 0],\n ['ArrowUp', count - 1],\n ]).get(event.key);\n if (first === undefined) return;\n event.preventDefault();\n openAt(first);\n };\n\n const onItemKeyDown = (event: KeyboardEvent<HTMLButtonElement>, index: number) => {\n const next = new Map([\n ['ArrowDown', (index + 1) % count],\n ['ArrowUp', (index - 1 + count) % count],\n ['Home', 0],\n ['End', count - 1],\n ]).get(event.key);\n if (next !== undefined) {\n event.preventDefault();\n setActive(next);\n return;\n }\n if (event.key !== 'Escape') return;\n event.preventDefault();\n close();\n };\n\n // Close when focus leaves the list: Tab or Shift+Tab, or a click anywhere else.\n const onItemBlur = (event: FocusEvent<HTMLButtonElement>) => {\n if (!menu.current?.contains(event.relatedTarget)) setOpen(false);\n };\n\n return (\n <div className={cn('variable-picker', className)}>\n <button\n ref={trigger}\n type=\"button\"\n className=\"variable-picker-trigger\"\n aria-haspopup=\"menu\"\n aria-expanded={open}\n aria-controls={open ? menuId : undefined}\n disabled={count === 0}\n onMouseDown={keepFocus}\n onClick={() => {\n if (open) close();\n else openAt(0);\n }}\n onKeyDown={onTriggerKeyDown}\n >\n Insert variable\n </button>\n {open ? (\n <div\n ref={menu}\n id={menuId}\n role=\"menu\"\n aria-label=\"Variables\"\n className=\"variable-picker-menu\"\n >\n {variables.map((variable, index) => (\n <button\n key={variable.name}\n ref={(node) => {\n items.current[index] = node;\n }}\n type=\"button\"\n role=\"menuitem\"\n tabIndex={-1}\n className=\"variable-picker-item\"\n onMouseDown={keepFocus}\n onClick={() => choose(variable.name)}\n onKeyDown={(event) => onItemKeyDown(event, index)}\n onBlur={onItemBlur}\n >\n <span className=\"variable-picker-item-label\">{variable.label}</span>\n <code className=\"variable-picker-item-token\">{liquidToken(variable.name)}</code>\n </button>\n ))}\n </div>\n ) : null}\n </div>\n );\n}\n"],"mappings":";;;;;AA6BI,SACS,KADT;AAjBJ,IAAM,eAA6C;AAAA,EACjD,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,MAAM;AACR;AAGO,SAAS,MAAM;AAAA,EACpB,MAAM;AAAA,EACN,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAe;AACb,SACE,qBAAC,UAAK,WAAW,GAAG,SAAS,aAAa,OAAO,GAAG,SAAS,GAAI,GAAG,OACjE;AAAA,UAAM,oBAAC,UAAK,WAAU,aAAY,IAAK;AAAA,IACvC;AAAA,KACH;AAEJ;;;ACTI,gBAAAA,YAAA;AAdJ,IAAMC,gBAA8C;AAAA,EAClD,SAAS;AAAA,EACT,WAAW;AAAA,EACX,SAAS;AACX;AAEO,SAAS,OAAO;AAAA,EACrB,UAAU;AAAA,EACV,OAAO;AAAA,EACP;AAAA,EACA,OAAO;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e,OAAO,SAAS;AAAA,QAC/B,UAAU,UAAU;AAAA,QACpB,aAAa;AAAA,QACb,SAAS,MAAM;AACb,cAAI,KAAM,OAAM;AAAA,cACX,QAAO,CAAC;AAAA,QACf;AAAA,QACA,WAAW;AAAA,QACZ;AAAA;AAAA,IAED;AAAA,IACC,OACC,gBAAAA;AAAA,MAAC;AAAA;AAAA,QACC,KAAK;AAAA,QACL,IAAI;AAAA,QACJ,MAAK;AAAA,QACL,cAAW;AAAA,QACX,WAAU;AAAA,QAET,oBAAU,IAAI,CAAC,UAAU,UACxB,gBAAAC;AAAA,UAAC;AAAA;AAAA,YAEC,KAAK,CAAC,SAAS;AACb,oBAAM,QAAQ,KAAK,IAAI;AAAA,YACzB;AAAA,YACA,MAAK;AAAA,YACL,MAAK;AAAA,YACL,UAAU;AAAA,YACV,WAAU;AAAA,YACV,aAAa;AAAA,YACb,SAAS,MAAM,OAAO,SAAS,IAAI;AAAA,YACnC,WAAW,CAAC,UAAU,cAAc,OAAO,KAAK;AAAA,YAChD,QAAQ;AAAA,YAER;AAAA,8BAAAD,MAAC,UAAK,WAAU,8BAA8B,mBAAS,OAAM;AAAA,cAC7D,gBAAAA,MAAC,UAAK,WAAU,8BAA8B,sBAAY,SAAS,IAAI,GAAE;AAAA;AAAA;AAAA,UAdpE,SAAS;AAAA,QAehB,CACD;AAAA;AAAA,IACH,IACE;AAAA,KACN;AAEJ;","names":["jsx","variantClass","jsx","jsx","jsx","jsxs","useId","jsx","jsxs","jsx","useId","jsx","jsx","jsxs","jsx","jsx","jsxs","useId","jsx","jsxs","useId","jsx","jsxs","useId","jsx","jsxs","useId","useId","useRef","useState","jsx","jsxs","useId","useRef","useState"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flopay/ui",
3
- "version": "1.10.2",
3
+ "version": "1.11.0",
4
4
  "type": "module",
5
5
  "description": "FloPay shared design system — design tokens, a Tailwind v4 preset, and React primitives shared across landing, demo, docs, and dashboard.",
6
6
  "license": "UNLICENSED",