@dynamic-labs-sdk/droplet 1.51.0 → 1.52.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.
Files changed (83) hide show
  1. package/README.md +0 -1
  2. package/dist/components/ui/field/field.d.ts +4 -0
  3. package/dist/components/ui/field/field.d.ts.map +1 -1
  4. package/dist/components/ui/field/field.stories.d.ts +8 -0
  5. package/dist/components/ui/field/field.stories.d.ts.map +1 -1
  6. package/dist/components/ui/field/use-field-feedback.d.ts +25 -0
  7. package/dist/components/ui/field/use-field-feedback.d.ts.map +1 -0
  8. package/dist/components/ui/table/table.d.ts +7 -1
  9. package/dist/components/ui/table/table.d.ts.map +1 -1
  10. package/dist/components/ui/well/index.d.ts +1 -1
  11. package/dist/components/ui/well/index.d.ts.map +1 -1
  12. package/dist/components/ui/well/well-reveal.stories.d.ts.map +1 -1
  13. package/dist/components/ui/well/well.d.ts +18 -3
  14. package/dist/components/ui/well/well.d.ts.map +1 -1
  15. package/dist/components/ui/well/well.stories.d.ts +1 -9
  16. package/dist/components/ui/well/well.stories.d.ts.map +1 -1
  17. package/dist/index.cjs +727 -279
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.ts +1 -2
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.esm.js +520 -69
  22. package/dist/index.esm.js.map +1 -1
  23. package/package.json +1 -6
  24. package/dist/components/migration/banner/banner.d.ts +0 -24
  25. package/dist/components/migration/banner/banner.d.ts.map +0 -1
  26. package/dist/components/migration/banner/banner.stories.d.ts +0 -39
  27. package/dist/components/migration/banner/banner.stories.d.ts.map +0 -1
  28. package/dist/components/migration/banner/index.d.ts +0 -2
  29. package/dist/components/migration/banner/index.d.ts.map +0 -1
  30. package/dist/components/migration/double-section/double-section.d.ts +0 -29
  31. package/dist/components/migration/double-section/double-section.d.ts.map +0 -1
  32. package/dist/components/migration/double-section/double-section.stories.d.ts +0 -32
  33. package/dist/components/migration/double-section/double-section.stories.d.ts.map +0 -1
  34. package/dist/components/migration/double-section/index.d.ts +0 -2
  35. package/dist/components/migration/double-section/index.d.ts.map +0 -1
  36. package/dist/components/migration/field/field.d.ts +0 -19
  37. package/dist/components/migration/field/field.d.ts.map +0 -1
  38. package/dist/components/migration/field/field.stories.d.ts +0 -43
  39. package/dist/components/migration/field/field.stories.d.ts.map +0 -1
  40. package/dist/components/migration/field/index.d.ts +0 -2
  41. package/dist/components/migration/field/index.d.ts.map +0 -1
  42. package/dist/components/migration/index.d.ts +0 -16
  43. package/dist/components/migration/index.d.ts.map +0 -1
  44. package/dist/components/migration/settings-section-v2/index.d.ts +0 -2
  45. package/dist/components/migration/settings-section-v2/index.d.ts.map +0 -1
  46. package/dist/components/migration/settings-section-v2/settings-section-v2.d.ts +0 -45
  47. package/dist/components/migration/settings-section-v2/settings-section-v2.d.ts.map +0 -1
  48. package/dist/components/migration/settings-section-v2/settings-section-v2.stories.d.ts +0 -40
  49. package/dist/components/migration/settings-section-v2/settings-section-v2.stories.d.ts.map +0 -1
  50. package/dist/components/migration/sub-section/index.d.ts +0 -2
  51. package/dist/components/migration/sub-section/index.d.ts.map +0 -1
  52. package/dist/components/migration/sub-section/sub-section.d.ts +0 -26
  53. package/dist/components/migration/sub-section/sub-section.d.ts.map +0 -1
  54. package/dist/components/migration/sub-section/sub-section.stories.d.ts +0 -33
  55. package/dist/components/migration/sub-section/sub-section.stories.d.ts.map +0 -1
  56. package/dist/components/migration/toggle-group/index.d.ts +0 -2
  57. package/dist/components/migration/toggle-group/index.d.ts.map +0 -1
  58. package/dist/components/migration/toggle-group/toggle-group.d.ts +0 -22
  59. package/dist/components/migration/toggle-group/toggle-group.d.ts.map +0 -1
  60. package/dist/components/migration/toggle-group/toggle-group.stories.d.ts +0 -30
  61. package/dist/components/migration/toggle-group/toggle-group.stories.d.ts.map +0 -1
  62. package/dist/components/patterns/config-tab-with-pill/config-tab-with-pill.stories.d.ts +0 -17
  63. package/dist/components/patterns/config-tab-with-pill/config-tab-with-pill.stories.d.ts.map +0 -1
  64. package/dist/components/patterns/cors-list/cors-list.stories.d.ts +0 -17
  65. package/dist/components/patterns/cors-list/cors-list.stories.d.ts.map +0 -1
  66. package/dist/components/patterns/rounded-row-list/rounded-row-list.stories.d.ts +0 -17
  67. package/dist/components/patterns/rounded-row-list/rounded-row-list.stories.d.ts.map +0 -1
  68. package/dist/components/status-badge/index.d.ts +0 -2
  69. package/dist/components/status-badge/index.d.ts.map +0 -1
  70. package/dist/components/status-badge/status-badge.d.ts +0 -10
  71. package/dist/components/status-badge/status-badge.d.ts.map +0 -1
  72. package/dist/components/status-badge/status-badge.stories.d.ts +0 -24
  73. package/dist/components/status-badge/status-badge.stories.d.ts.map +0 -1
  74. package/dist/components/ui/flush-card-detach/flush-card-detach.stories.d.ts +0 -17
  75. package/dist/components/ui/flush-card-detach/flush-card-detach.stories.d.ts.map +0 -1
  76. package/dist/migration.cjs +0 -328
  77. package/dist/migration.cjs.map +0 -1
  78. package/dist/migration.esm.js +0 -322
  79. package/dist/migration.esm.js.map +0 -1
  80. package/dist/toggle-row-CeiCy3Aa.esm.js +0 -385
  81. package/dist/toggle-row-CeiCy3Aa.esm.js.map +0 -1
  82. package/dist/toggle-row-DcV81G3w.cjs +0 -433
  83. package/dist/toggle-row-DcV81G3w.cjs.map +0 -1
package/README.md CHANGED
@@ -148,7 +148,6 @@ Higher-level components composed from primitives, designed for dashboard and set
148
148
  | `PageSkeleton`, `StatCardSkeleton`, `TableSkeleton` | Page-level loading skeletons |
149
149
  | `ProductPageLayout` | Full-page scaffold: header, tabs, content, sidebar |
150
150
  | `SettingsSection` | Labeled section wrapper for settings pages |
151
- | `StatusBadge` | Live / inactive / pending status indicator |
152
151
  | `TabNavigation` | Full-width underline tab navigation for switching related views |
153
152
  | `ToggleRow` | Label + description + switch in a single accessible row |
154
153
  | `UnsavedChangesBar` | Sticky bottom bar for save/discard with change tracking |
@@ -57,6 +57,10 @@ type FieldProps = {
57
57
  * - `aria-describedby` — references the description and/or error paragraph ids
58
58
  * - `aria-invalid` — `true` when `error` is present
59
59
  *
60
+ * When an error appears, the control shakes, the message slides in, and
61
+ * touch devices get a short haptic tick. Motion is skipped under
62
+ * `prefers-reduced-motion` and never plays on first render.
63
+ *
60
64
  * `Select` renders no element of its own, so `SelectTrigger` picks up `id`,
61
65
  * `aria-describedby` and `aria-invalid` from `Field` instead.
62
66
  *
@@ -1 +1 @@
1
- {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/field/field.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,EAAE,EAAE,KAAK,SAAS,EAAgD,MAAM,OAAO,CAAC;AAOxG,KAAK,UAAU,GAAG;IAChB,8DAA8D;IAC9D,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yEAAyE;IACzE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAqBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,QAAA,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAgHzB,CAAC;AAIF,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,YAAY,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/field/field.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,EAAE,EAAE,KAAK,SAAS,EAAgD,MAAM,OAAO,CAAC;AAQxG,KAAK,UAAU,GAAG;IAChB,8DAA8D;IAC9D,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yEAAyE;IACzE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAqBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,QAAA,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAqHzB,CAAC;AAIF,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,YAAY,EAAE,UAAU,EAAE,CAAC"}
@@ -47,4 +47,12 @@ export declare const Form: Story;
47
47
  * own. Left, a hand-built pair at `gap-1.5` (6px). Right, `Field` at 10px.
48
48
  */
49
49
  export declare const BareLabelVsField: Story;
50
+ /**
51
+ * Validation feedback. Submit with an invalid address: the control shakes,
52
+ * the error slides in, and touch devices get a short haptic tick. Submit
53
+ * again without fixing it and it nudges again. Fix it and the error clears
54
+ * as you type. Text changes while the error shows swap without motion. Motion is
55
+ * skipped under `prefers-reduced-motion`.
56
+ */
57
+ export declare const ValidationFeedback: Story;
50
58
  //# sourceMappingURL=field.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"field.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/field/field.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAe5D,QAAA,MAAM,IAAI;;;;;;;;;;CAOoB,CAAC;AAE/B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,KAevB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,KA+B5B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,IAAI,EAAE,KAmDlB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAY9B,CAAC"}
1
+ {"version":3,"file":"field.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/field/field.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAe5D,QAAA,MAAM,IAAI;;;;;;;;;;CAOoB,CAAC;AAE/B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,KAevB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,KA+B5B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,IAAI,EAAE,KAmDlB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAY9B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAsChC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { type ReactNode, type RefObject } from 'react';
2
+ type UseFieldFeedbackParams = {
3
+ /** The field's current error. Feedback plays when it appears. */
4
+ error: ReactNode;
5
+ };
6
+ /**
7
+ * Plays a field's validation feedback and returns the ref for its wrapper.
8
+ *
9
+ * When an error appears, the control shakes, the message under it slides in,
10
+ * and touch devices get a short haptic tick. Each later submit of the
11
+ * surrounding `<form>` that leaves the error in place shakes and ticks again,
12
+ * so every failed attempt is acknowledged. When the error clears, the
13
+ * description slides back in. A change to the error's text alone swaps
14
+ * instantly: it usually comes from re-validating while the user types, and
15
+ * motion on every keystroke reads as noise. Nothing plays on first render, and
16
+ * motion is skipped under `prefers-reduced-motion`.
17
+ *
18
+ * Uses the Web Animations API, so the feedback needs no stylesheet.
19
+ *
20
+ * @see Field
21
+ * @see FieldControlContext
22
+ */
23
+ export declare const useFieldFeedback: ({ error, }: UseFieldFeedbackParams) => RefObject<HTMLDivElement | null>;
24
+ export {};
25
+ //# sourceMappingURL=use-field-feedback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-field-feedback.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/field/use-field-feedback.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAqE1E,KAAK,sBAAsB,GAAG;IAC5B,iEAAiE;IACjE,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,gBAAgB,eAE1B,sBAAsB,KAAG,SAAS,CAAC,cAAc,GAAG,IAAI,CAsD1D,CAAC"}
@@ -9,7 +9,13 @@ type TableProps = ComponentProps<'table'> & {
9
9
  /** Receives the scroll viewport element, for code that follows its scrolling such as row virtualization. */
10
10
  viewportRef?: Ref<HTMLDivElement>;
11
11
  };
12
- /** Render a table in a stable tray with keyboard access only when content overflows. */
12
+ /**
13
+ * Render a table in a stable tray with keyboard access only when content overflows.
14
+ * For any list of records, use `DataTable`, which is built on this. Use `Table` directly
15
+ * only for static layout: a short fixed grid of values that nobody sorts, filters, pages or selects.
16
+ *
17
+ * @deprecated For lists of records, use `DataTable`. Direct use is only for static layout.
18
+ */
13
19
  declare const Table: ({ className, fill, scrollAreaProps, stickyFirstColumn, viewportRef, ...props }: TableProps) => ReactElement;
14
20
  declare const TableHeader: ({ className, ...props }: ComponentProps<"thead">) => ReactElement;
15
21
  declare const TableBody: ({ className, ...props }: ComponentProps<"tbody">) => ReactElement;
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/table/table.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,GAAG,EAOT,MAAM,OAAO,CAAC;AAKf,KAAK,UAAU,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG;IAC1C,gJAAgJ;IAChJ,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,8EAA8E;IAC9E,eAAe,CAAC,EAAE,IAAI,CACpB,cAAc,CAAC,KAAK,CAAC,EACrB,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,UAAU,CACzC,CAAC;IACF,2FAA2F;IAC3F,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,4GAA4G;IAC5G,WAAW,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CACnC,CAAC;AAwEF,wFAAwF;AACxF,QAAA,MAAM,KAAK,mFAOR,UAAU,KAAG,YA0Rf,CAAC;AAEF,QAAA,MAAM,WAAW,4BAGd,cAAc,CAAC,OAAO,CAAC,KAAG,YAW5B,CAAC;AAEF,QAAA,MAAM,SAAS,4BAGZ,cAAc,CAAC,OAAO,CAAC,KAAG,YAW5B,CAAC;AAEF,QAAA,MAAM,WAAW,4BAGd,cAAc,CAAC,OAAO,CAAC,KAAG,YAW5B,CAAC;AAGF,QAAA,MAAM,QAAQ,0NAcb,CAAC;AAGF,QAAA,MAAM,SAAS,mCAIZ,cAAc,CAAC,IAAI,CAAC,KAAG,YAYzB,CAAC;AAEF,QAAA,MAAM,SAAS,4BAGZ,cAAc,CAAC,IAAI,CAAC,KAAG,YAWzB,CAAC;AAEF,QAAA,MAAM,YAAY,4BAGf,cAAc,CAAC,SAAS,CAAC,KAAG,YAW9B,CAAC;AAEF,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACb,CAAC"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/table/table.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,GAAG,EAOT,MAAM,OAAO,CAAC;AAKf,KAAK,UAAU,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG;IAC1C,gJAAgJ;IAChJ,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,8EAA8E;IAC9E,eAAe,CAAC,EAAE,IAAI,CACpB,cAAc,CAAC,KAAK,CAAC,EACrB,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,UAAU,CACzC,CAAC;IACF,2FAA2F;IAC3F,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,4GAA4G;IAC5G,WAAW,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CACnC,CAAC;AAwEF;;;;;;GAMG;AACH,QAAA,MAAM,KAAK,mFAOR,UAAU,KAAG,YA0Rf,CAAC;AAEF,QAAA,MAAM,WAAW,4BAGd,cAAc,CAAC,OAAO,CAAC,KAAG,YAW5B,CAAC;AAEF,QAAA,MAAM,SAAS,4BAGZ,cAAc,CAAC,OAAO,CAAC,KAAG,YAW5B,CAAC;AAEF,QAAA,MAAM,WAAW,4BAGd,cAAc,CAAC,OAAO,CAAC,KAAG,YAW5B,CAAC;AAGF,QAAA,MAAM,QAAQ,0NAcb,CAAC;AAGF,QAAA,MAAM,SAAS,mCAIZ,cAAc,CAAC,IAAI,CAAC,KAAG,YAYzB,CAAC;AAEF,QAAA,MAAM,SAAS,4BAGZ,cAAc,CAAC,IAAI,CAAC,KAAG,YAWzB,CAAC;AAEF,QAAA,MAAM,YAAY,4BAGf,cAAc,CAAC,SAAS,CAAC,KAAG,YAW9B,CAAC;AAEF,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACb,CAAC"}
@@ -1,2 +1,2 @@
1
- export { Well, WellReveal, wellVariants } from './well';
1
+ export { Well, WellReveal } from './well';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/well/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/well/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"well-reveal.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/well/well-reveal.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAU5D,QAAA,MAAM,IAAI;;;;;;;iBAyBK,CAAC;;;;;;;;;;;;;CANmB,CAAC;AAEpC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAkDrB,CAAC"}
1
+ {"version":3,"file":"well-reveal.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/well/well-reveal.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAU5D,QAAA,MAAM,IAAI;;;;;;;iBAmCE,CAAD;;;;;;;;;;;;;CAhBwB,CAAC;AAEpC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAkDrB,CAAC"}
@@ -1,15 +1,30 @@
1
1
  import { type ComponentProps, type ReactElement, type ReactNode } from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
+ /** The Well's one look plus the rhythm knobs (`gap`, `spacing`). */
3
4
  declare const wellVariants: (props?: ({
4
5
  gap?: "lg" | "sm" | "none" | "default" | null | undefined;
5
6
  spacing?: "lg" | "sm" | "none" | "default" | null | undefined;
6
- variant?: "default" | "outline" | "inset" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
- declare const Well: ({ className, gap, spacing, variant, ...props }: ComponentProps<"div"> & VariantProps<typeof wellVariants>) => ReactElement;
8
+ type WellProps = ComponentProps<'div'> & VariantProps<typeof wellVariants>;
9
+ /**
10
+ * The muted surface that holds the settings a toggle reveals. Put it inside `WellReveal`
11
+ * or a `FlushCardStack.Item`. It has one look; `gap` and `spacing` only tune its rhythm.
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * <WellReveal open={emailOn}>
16
+ * <Well>{rows}</Well>
17
+ * </WellReveal>
18
+ * ```
19
+ * @returns The rendered surface.
20
+ * @see WellReveal
21
+ * @see FlushCardStack
22
+ */
23
+ declare const Well: ({ className, gap, spacing, ...props }: WellProps) => ReactElement;
9
24
  declare const WellReveal: ({ children, className, open, }: {
10
25
  children: ReactNode;
11
26
  className?: string;
12
27
  open: boolean;
13
28
  }) => ReactElement;
14
- export { Well, WellReveal, wellVariants };
29
+ export { Well, WellReveal };
15
30
  //# sourceMappingURL=well.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"well.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/well/well.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/E,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,YAAY;;;;8EA2BhB,CAAC;AAEH,QAAA,MAAM,IAAI,mDAMP,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,KAAG,YAO9D,CAAC;AAEF,QAAA,MAAM,UAAU,mCAIb;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;CACf,KAAG,YAuBH,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"well.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/well/well.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC/E,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAIlE,oEAAoE;AACpE,QAAA,MAAM,YAAY;;;8EAqBhB,CAAC;AAEH,KAAK,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3E;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,IAAI,0CAKP,SAAS,KAAG,YAOd,CAAC;AAEF,QAAA,MAAM,UAAU,mCAIb;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;CACf,KAAG,YAuBH,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC"}
@@ -4,7 +4,6 @@ declare const meta: {
4
4
  args: {
5
5
  gap: "sm";
6
6
  spacing: "default";
7
- variant: "inset";
8
7
  };
9
8
  argTypes: {
10
9
  gap: {
@@ -15,15 +14,10 @@ declare const meta: {
15
14
  control: "select";
16
15
  options: string[];
17
16
  };
18
- variant: {
19
- control: "select";
20
- options: string[];
21
- };
22
17
  };
23
- component: ({ className, gap, spacing, variant, ...props }: React.ComponentProps<"div"> & import("class-variance-authority").VariantProps<(props?: ({
18
+ component: ({ className, gap, spacing, ...props }: React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & import("class-variance-authority").VariantProps<(props?: ({
24
19
  gap?: "lg" | "sm" | "none" | "default" | null | undefined;
25
20
  spacing?: "lg" | "sm" | "none" | "default" | null | undefined;
26
- variant?: "default" | "outline" | "inset" | null | undefined;
27
21
  } & import("class-variance-authority/types").ClassProp) | undefined) => string>) => React.ReactElement;
28
22
  parameters: {
29
23
  layout: string;
@@ -34,7 +28,5 @@ declare const meta: {
34
28
  export default meta;
35
29
  type Story = StoryObj<typeof meta>;
36
30
  export declare const Default: Story;
37
- export declare const Variants: Story;
38
31
  export declare const WellRevealFromToggle: Story;
39
- export declare const RowRhythm: Story;
40
32
  //# sourceMappingURL=well.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"well.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/well/well.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAO5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAemB,CAAC;AAE9B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAarB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KActB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KA2DlC,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KASvB,CAAC"}
1
+ {"version":3,"file":"well.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/well/well.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAO5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;CAamB,CAAC;AAE9B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAarB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KA2DlC,CAAC"}