@dynamic-labs-sdk/droplet 1.50.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.
- package/README.md +0 -1
- package/dist/components/copy-button/copy-button.d.ts +3 -1
- package/dist/components/copy-button/copy-button.d.ts.map +1 -1
- package/dist/components/copy-button/copy-button.stories.d.ts +1 -1
- package/dist/components/toggle-card/toggle-card.d.ts +10 -0
- package/dist/components/toggle-card/toggle-card.d.ts.map +1 -1
- package/dist/components/toggle-card/toggle-card.stories.d.ts +5 -0
- package/dist/components/toggle-card/toggle-card.stories.d.ts.map +1 -1
- package/dist/components/toggle-row/toggle-row.d.ts +22 -1
- package/dist/components/toggle-row/toggle-row.d.ts.map +1 -1
- package/dist/components/toggle-row/toggle-row.stories.d.ts +10 -6
- package/dist/components/toggle-row/toggle-row.stories.d.ts.map +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/ui/combobox/combobox.d.ts +54 -12
- package/dist/components/ui/combobox/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox/combobox.stories.d.ts +12 -1
- package/dist/components/ui/combobox/combobox.stories.d.ts.map +1 -1
- package/dist/components/ui/field/field-control-context.d.ts +20 -0
- package/dist/components/ui/field/field-control-context.d.ts.map +1 -0
- package/dist/components/ui/field/field.d.ts +24 -4
- package/dist/components/ui/field/field.d.ts.map +1 -1
- package/dist/components/ui/field/field.stories.d.ts +26 -6
- package/dist/components/ui/field/field.stories.d.ts.map +1 -1
- package/dist/components/ui/field/use-field-feedback.d.ts +25 -0
- package/dist/components/ui/field/use-field-feedback.d.ts.map +1 -0
- package/dist/components/ui/label/label.d.ts +15 -0
- package/dist/components/ui/label/label.d.ts.map +1 -1
- package/dist/components/ui/select/select.d.ts.map +1 -1
- package/dist/components/ui/select/select.stories.d.ts.map +1 -1
- package/dist/components/ui/table/table.d.ts +7 -1
- package/dist/components/ui/table/table.d.ts.map +1 -1
- package/dist/components/ui/well/index.d.ts +1 -1
- package/dist/components/ui/well/index.d.ts.map +1 -1
- package/dist/components/ui/well/well-reveal.stories.d.ts.map +1 -1
- package/dist/components/ui/well/well.d.ts +18 -3
- package/dist/components/ui/well/well.d.ts.map +1 -1
- package/dist/components/ui/well/well.stories.d.ts +1 -9
- package/dist/components/ui/well/well.stories.d.ts.map +1 -1
- package/dist/index.cjs +995 -407
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +796 -205
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -6
- package/src/styles/globals.css +11 -15
- package/dist/components/migration/banner/banner.d.ts +0 -24
- package/dist/components/migration/banner/banner.d.ts.map +0 -1
- package/dist/components/migration/banner/banner.stories.d.ts +0 -39
- package/dist/components/migration/banner/banner.stories.d.ts.map +0 -1
- package/dist/components/migration/banner/index.d.ts +0 -2
- package/dist/components/migration/banner/index.d.ts.map +0 -1
- package/dist/components/migration/double-section/double-section.d.ts +0 -29
- package/dist/components/migration/double-section/double-section.d.ts.map +0 -1
- package/dist/components/migration/double-section/double-section.stories.d.ts +0 -32
- package/dist/components/migration/double-section/double-section.stories.d.ts.map +0 -1
- package/dist/components/migration/double-section/index.d.ts +0 -2
- package/dist/components/migration/double-section/index.d.ts.map +0 -1
- package/dist/components/migration/field/field.d.ts +0 -19
- package/dist/components/migration/field/field.d.ts.map +0 -1
- package/dist/components/migration/field/field.stories.d.ts +0 -43
- package/dist/components/migration/field/field.stories.d.ts.map +0 -1
- package/dist/components/migration/field/index.d.ts +0 -2
- package/dist/components/migration/field/index.d.ts.map +0 -1
- package/dist/components/migration/index.d.ts +0 -16
- package/dist/components/migration/index.d.ts.map +0 -1
- package/dist/components/migration/settings-section-v2/index.d.ts +0 -2
- package/dist/components/migration/settings-section-v2/index.d.ts.map +0 -1
- package/dist/components/migration/settings-section-v2/settings-section-v2.d.ts +0 -45
- package/dist/components/migration/settings-section-v2/settings-section-v2.d.ts.map +0 -1
- package/dist/components/migration/settings-section-v2/settings-section-v2.stories.d.ts +0 -40
- package/dist/components/migration/settings-section-v2/settings-section-v2.stories.d.ts.map +0 -1
- package/dist/components/migration/sub-section/index.d.ts +0 -2
- package/dist/components/migration/sub-section/index.d.ts.map +0 -1
- package/dist/components/migration/sub-section/sub-section.d.ts +0 -26
- package/dist/components/migration/sub-section/sub-section.d.ts.map +0 -1
- package/dist/components/migration/sub-section/sub-section.stories.d.ts +0 -33
- package/dist/components/migration/sub-section/sub-section.stories.d.ts.map +0 -1
- package/dist/components/migration/toggle-group/index.d.ts +0 -2
- package/dist/components/migration/toggle-group/index.d.ts.map +0 -1
- package/dist/components/migration/toggle-group/toggle-group.d.ts +0 -22
- package/dist/components/migration/toggle-group/toggle-group.d.ts.map +0 -1
- package/dist/components/migration/toggle-group/toggle-group.stories.d.ts +0 -30
- package/dist/components/migration/toggle-group/toggle-group.stories.d.ts.map +0 -1
- package/dist/components/patterns/config-tab-with-pill/config-tab-with-pill.stories.d.ts +0 -17
- package/dist/components/patterns/config-tab-with-pill/config-tab-with-pill.stories.d.ts.map +0 -1
- package/dist/components/patterns/cors-list/cors-list.stories.d.ts +0 -17
- package/dist/components/patterns/cors-list/cors-list.stories.d.ts.map +0 -1
- package/dist/components/patterns/rounded-row-list/rounded-row-list.stories.d.ts +0 -17
- package/dist/components/patterns/rounded-row-list/rounded-row-list.stories.d.ts.map +0 -1
- package/dist/components/status-badge/index.d.ts +0 -2
- package/dist/components/status-badge/index.d.ts.map +0 -1
- package/dist/components/status-badge/status-badge.d.ts +0 -10
- package/dist/components/status-badge/status-badge.d.ts.map +0 -1
- package/dist/components/status-badge/status-badge.stories.d.ts +0 -24
- package/dist/components/status-badge/status-badge.stories.d.ts.map +0 -1
- package/dist/components/ui/flush-card-detach/flush-card-detach.stories.d.ts +0 -17
- package/dist/components/ui/flush-card-detach/flush-card-detach.stories.d.ts.map +0 -1
- package/dist/migration.cjs +0 -328
- package/dist/migration.cjs.map +0 -1
- package/dist/migration.esm.js +0 -322
- package/dist/migration.esm.js.map +0 -1
- package/dist/toggle-row-BBTk7_bT.cjs +0 -408
- package/dist/toggle-row-BBTk7_bT.cjs.map +0 -1
- package/dist/toggle-row-PqelNVXI.esm.js +0 -360
- package/dist/toggle-row-PqelNVXI.esm.js.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 |
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
2
|
export type CopyButtonProps = {
|
|
3
|
+
/** Names an icon-only button for screen readers while idle, without showing text. Defaults to `label`, then "Copy to clipboard". */
|
|
4
|
+
ariaLabel?: string;
|
|
3
5
|
className?: string;
|
|
4
6
|
label?: string;
|
|
5
7
|
size?: 'default' | 'sm' | 'xs' | 'icon' | 'icon-xs' | 'icon-sm';
|
|
@@ -7,5 +9,5 @@ export type CopyButtonProps = {
|
|
|
7
9
|
variant?: 'default' | 'outline' | 'ghost' | 'secondary';
|
|
8
10
|
};
|
|
9
11
|
/** Copies a value and presents stable, accessible success or failure feedback. */
|
|
10
|
-
export declare const CopyButton: ({ value, label, variant, size, className, }: CopyButtonProps) => ReactElement;
|
|
12
|
+
export declare const CopyButton: ({ value, ariaLabel: idleAriaLabel, label, variant, size, className, }: CopyButtonProps) => ReactElement;
|
|
11
13
|
//# sourceMappingURL=copy-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-button.d.ts","sourceRoot":"","sources":["../../../src/components/copy-button/copy-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"copy-button.d.ts","sourceRoot":"","sources":["../../../src/components/copy-button/copy-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAA+B,MAAM,OAAO,CAAC;AA0FvE,MAAM,MAAM,eAAe,GAAG;IAC5B,oIAAoI;IACpI,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,CAAC;CACzD,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,UAAU,0EAOpB,eAAe,KAAG,YAsJpB,CAAC"}
|
|
@@ -21,7 +21,7 @@ declare const meta: {
|
|
|
21
21
|
options: string[];
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
component: ({ value, label, variant, size, className, }: import("./copy-button").CopyButtonProps) => import("react").ReactElement;
|
|
24
|
+
component: ({ value, ariaLabel: idleAriaLabel, label, variant, size, className, }: import("./copy-button").CopyButtonProps) => import("react").ReactElement;
|
|
25
25
|
tags: string[];
|
|
26
26
|
title: string;
|
|
27
27
|
};
|
|
@@ -108,6 +108,16 @@ export type ToggleCardProps = {
|
|
|
108
108
|
/** Controlled accordion value. */
|
|
109
109
|
value?: string;
|
|
110
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* DEPRECATED. Never use in new code. Use `FlushCardStack` with a `ToggleRow`
|
|
113
|
+
* header instead; put sub-options in the item's reveal.
|
|
114
|
+
*
|
|
115
|
+
* Kept so existing callers keep rendering while they migrate.
|
|
116
|
+
*
|
|
117
|
+
* @deprecated Use `FlushCardStack` + `ToggleRow`.
|
|
118
|
+
* @see FlushCardStack
|
|
119
|
+
* @see ToggleRow
|
|
120
|
+
*/
|
|
111
121
|
export declare const ToggleCard: FC<ToggleCardProps>;
|
|
112
122
|
export {};
|
|
113
123
|
//# sourceMappingURL=toggle-card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-card.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-card/toggle-card.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,EAAE,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AAc5F,KAAK,mBAAmB,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;AAE3D,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8EAA8E;IAC9E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;uEACmE;IACnE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC1D,gEAAgE;IAChE,IAAI,CAAC,EAAE,mBAAmB,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EA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;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wDAAwD;IACxD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AA0FF;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA6L1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-card.stories.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-card/toggle-card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAK5D,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"toggle-card.stories.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-card/toggle-card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAK5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwByB,CAAC;AAEpC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAiBrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAkB7B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAuBtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAqB/B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAwBxB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KA6B5B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAetB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAuB1B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAmBxB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAmB3B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAmBtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAqBhC,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { type ReactElement, type ReactNode } from 'react';
|
|
2
2
|
export interface ToggleRowProps {
|
|
3
|
+
/** Status next to the label. Pass droplet `Badge` elements only, never hand-made chips. */
|
|
3
4
|
badge?: ReactNode;
|
|
4
5
|
checked: boolean;
|
|
6
|
+
/** Content rendered under the row. For sub-options, prefer a `FlushCardStack.Item` reveal. */
|
|
5
7
|
children?: ReactNode;
|
|
6
8
|
className?: string;
|
|
7
9
|
description?: string;
|
|
@@ -9,8 +11,27 @@ export interface ToggleRowProps {
|
|
|
9
11
|
icon?: ReactNode;
|
|
10
12
|
label: string;
|
|
11
13
|
onCheckedChange: (checked: boolean) => void;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Only rendered with `switchPosition='right'`, which is deprecated.
|
|
16
|
+
* Put settings in a `FlushCardStack.Item` reveal instead.
|
|
17
|
+
*/
|
|
12
18
|
onSettings?: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated The switch always sits on the left. `'right'` still renders for
|
|
21
|
+
* existing callers but must not be used in new code.
|
|
22
|
+
*/
|
|
13
23
|
switchPosition?: 'left' | 'right';
|
|
14
24
|
}
|
|
15
|
-
|
|
25
|
+
/**
|
|
26
|
+
* A single on/off setting: switch on the left, then label, description and
|
|
27
|
+
* optional `Badge`. It has no surface of its own.
|
|
28
|
+
*
|
|
29
|
+
* Use it as the `header` of a `FlushCardStack.Item`, or on its own inside a
|
|
30
|
+
* `Card`. Never put a `Well` under it directly; sub-options go in the
|
|
31
|
+
* `FlushCardStack.Item` reveal.
|
|
32
|
+
*
|
|
33
|
+
* @see FlushCardStack
|
|
34
|
+
* @see Switch
|
|
35
|
+
*/
|
|
36
|
+
export declare const ToggleRow: (props: ToggleRowProps) => ReactElement;
|
|
16
37
|
//# sourceMappingURL=toggle-row.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-row.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-row/toggle-row.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AAQjE,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACnC;
|
|
1
|
+
{"version":3,"file":"toggle-row.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-row/toggle-row.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AAQjE,MAAM,WAAW,cAAc;IAC7B,2FAA2F;IAC3F,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,8FAA8F;IAC9F,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACnC;AAYD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,UAAW,cAAc,KAAG,YA0HjD,CAAC"}
|
|
@@ -6,18 +6,23 @@ declare const meta: {
|
|
|
6
6
|
description: string;
|
|
7
7
|
label: string;
|
|
8
8
|
onCheckedChange: any;
|
|
9
|
-
switchPosition: "left";
|
|
10
9
|
};
|
|
11
10
|
argTypes: {
|
|
12
11
|
disabled: {
|
|
13
12
|
control: "boolean";
|
|
14
13
|
};
|
|
14
|
+
onSettings: {
|
|
15
|
+
table: {
|
|
16
|
+
disable: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
15
19
|
switchPosition: {
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
table: {
|
|
21
|
+
disable: true;
|
|
22
|
+
};
|
|
18
23
|
};
|
|
19
24
|
};
|
|
20
|
-
component: (
|
|
25
|
+
component: (props: import("./toggle-row").ToggleRowProps) => React.ReactElement;
|
|
21
26
|
parameters: {
|
|
22
27
|
layout: string;
|
|
23
28
|
};
|
|
@@ -28,7 +33,6 @@ export default meta;
|
|
|
28
33
|
type Story = StoryObj<typeof meta>;
|
|
29
34
|
export declare const Default: Story;
|
|
30
35
|
export declare const WithBadges: Story;
|
|
31
|
-
export declare const
|
|
36
|
+
export declare const InFlushCardStack: Story;
|
|
32
37
|
export declare const Disabled: Story;
|
|
33
|
-
export declare const RightSwitch: Story;
|
|
34
38
|
//# sourceMappingURL=toggle-row.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-row.stories.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-row/toggle-row.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"toggle-row.stories.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-row/toggle-row.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAS5D,QAAA,MAAM,IAAI;;;;;yBAKwB,GAAG;;;;;;;;;;;;;;;;;;;;;;;CAYH,CAAC;AAEnC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAwBxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAyD9B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAatB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/checkbox/checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAI9D,QAAA,MAAM,QAAQ,4BAGX,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,KAAG,
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/checkbox/checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAI9D,QAAA,MAAM,QAAQ,4BAGX,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,KAAG,YA0ClD,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactElement } from 'react';
|
|
1
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
2
2
|
/** A single selectable option rendered inside the Combobox dropdown. */
|
|
3
3
|
type ComboboxOption = {
|
|
4
4
|
/** The human-readable label shown in the trigger and list. */
|
|
@@ -6,32 +6,65 @@ type ComboboxOption = {
|
|
|
6
6
|
/** The machine-readable value passed to `onValueChange`. */
|
|
7
7
|
value: string;
|
|
8
8
|
};
|
|
9
|
-
/** Props
|
|
10
|
-
type
|
|
9
|
+
/** Props shared by the single- and multi-select `Combobox`. */
|
|
10
|
+
type ComboboxBaseProps = {
|
|
11
11
|
/** Additional class names forwarded to the trigger button. */
|
|
12
12
|
className?: string;
|
|
13
13
|
/** When true the trigger is rendered in a disabled state and the popover cannot open. */
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
/** Text shown when the search query matches no options. Defaults to "No results." */
|
|
16
16
|
emptyText?: string;
|
|
17
|
-
/** Called with the newly selected option's value when the user picks an item. */
|
|
18
|
-
onValueChange: (value: string) => void;
|
|
19
17
|
/** The list of options to search and select from. */
|
|
20
18
|
options: ComboboxOption[];
|
|
21
19
|
/** Text shown in the trigger when no option is selected. Defaults to "Select…". */
|
|
22
20
|
placeholder?: string;
|
|
23
21
|
/** Placeholder text shown inside the search input. Defaults to "Search…". */
|
|
24
22
|
searchPlaceholder?: string;
|
|
23
|
+
};
|
|
24
|
+
/** Props for the single-select `Combobox` (the default). */
|
|
25
|
+
type ComboboxSingleProps = ComboboxBaseProps & {
|
|
26
|
+
/** Omit or pass `false` for single-select. */
|
|
27
|
+
multiple?: false;
|
|
28
|
+
/** Called with the newly selected option's value when the user picks an item. */
|
|
29
|
+
onValueChange: (value: string) => void;
|
|
25
30
|
/** The currently selected value. Pass `undefined` to show the placeholder. */
|
|
26
31
|
value?: string;
|
|
27
32
|
};
|
|
33
|
+
/** Props for the multi-select `Combobox`. Options render a `Checkbox`. */
|
|
34
|
+
type ComboboxMultipleProps = ComboboxBaseProps & {
|
|
35
|
+
/**
|
|
36
|
+
* Formats the trigger text from the selected labels, in option order. Only
|
|
37
|
+
* called when at least one option is selected. Defaults to joining them
|
|
38
|
+
* with ", ". Use it to switch to a count, e.g. "3 chains", once the list
|
|
39
|
+
* would get cut off.
|
|
40
|
+
*/
|
|
41
|
+
formatSelected?: (labels: string[]) => ReactNode;
|
|
42
|
+
/** Turns on multi-select: the list stays open and each option toggles. */
|
|
43
|
+
multiple: true;
|
|
44
|
+
/** Called with the full list of selected values after each toggle. */
|
|
45
|
+
onValueChange: (value: string[]) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Label for an optional row above the options that selects or clears all
|
|
48
|
+
* of them. Its checkbox is indeterminate while only some are selected.
|
|
49
|
+
* Hidden while the user is searching. Omit to leave the row out.
|
|
50
|
+
*/
|
|
51
|
+
selectAllLabel?: string;
|
|
52
|
+
/** The currently selected values, in any order. */
|
|
53
|
+
value: string[];
|
|
54
|
+
};
|
|
55
|
+
/** Props for the controlled `Combobox` component. */
|
|
56
|
+
type ComboboxProps = ComboboxSingleProps | ComboboxMultipleProps;
|
|
28
57
|
/**
|
|
29
|
-
* Searchable single-select
|
|
58
|
+
* Searchable Combobox, single-select by default or multi-select with `multiple`.
|
|
59
|
+
*
|
|
60
|
+
* Composes `Popover`, `Command` and `Checkbox` from the droplet design system.
|
|
61
|
+
* The trigger is styled like `SelectTrigger` with a rotating chevron that
|
|
62
|
+
* signals open/closed state.
|
|
30
63
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
64
|
+
* - Single-select: picking an item closes the popover, fires `onValueChange`
|
|
65
|
+
* and shows a check mark next to the active selection.
|
|
66
|
+
* - Multi-select: each option shows a `Checkbox`, picking an item toggles it
|
|
67
|
+
* and keeps the popover open, and the trigger lists the selected labels.
|
|
35
68
|
*
|
|
36
69
|
* @example
|
|
37
70
|
* ```tsx
|
|
@@ -42,9 +75,18 @@ type ComboboxProps = {
|
|
|
42
75
|
* onValueChange={setChain}
|
|
43
76
|
* placeholder="Select a chain"
|
|
44
77
|
* />
|
|
78
|
+
*
|
|
79
|
+
* const [chains, setChains] = useState<string[]>([]);
|
|
80
|
+
* <Combobox
|
|
81
|
+
* multiple
|
|
82
|
+
* options={[{ value: 'eth', label: 'Ethereum' }, { value: 'sol', label: 'Solana' }]}
|
|
83
|
+
* value={chains}
|
|
84
|
+
* onValueChange={setChains}
|
|
85
|
+
* selectAllLabel="All chains"
|
|
86
|
+
* />
|
|
45
87
|
* ```
|
|
46
88
|
*/
|
|
47
|
-
declare const Combobox: (
|
|
89
|
+
declare const Combobox: (props: ComboboxProps) => ReactElement;
|
|
48
90
|
export { Combobox };
|
|
49
|
-
export type { ComboboxOption, ComboboxProps };
|
|
91
|
+
export type { ComboboxMultipleProps, ComboboxOption, ComboboxProps, ComboboxSingleProps, };
|
|
50
92
|
//# sourceMappingURL=combobox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/combobox/combobox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAY,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/combobox/combobox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAkBpE,wEAAwE;AACxE,KAAK,cAAc,GAAG;IACpB,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,+DAA+D;AAC/D,KAAK,iBAAiB,GAAG;IAC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pB,CAAC"}
|
|
@@ -9,7 +9,7 @@ declare const meta: {
|
|
|
9
9
|
}[];
|
|
10
10
|
value: string;
|
|
11
11
|
};
|
|
12
|
-
component: (
|
|
12
|
+
component: (props: import("./combobox").ComboboxProps) => ReactElement;
|
|
13
13
|
parameters: {
|
|
14
14
|
layout: string;
|
|
15
15
|
};
|
|
@@ -22,4 +22,15 @@ type Story = StoryObj<typeof meta>;
|
|
|
22
22
|
export declare const Default: Story;
|
|
23
23
|
/** Shows the trigger label and check mark when a value is already selected. */
|
|
24
24
|
export declare const Preselected: Story;
|
|
25
|
+
/**
|
|
26
|
+
* Multi-select. Each option shows a `Checkbox`; clicking anywhere on the row
|
|
27
|
+
* (or Enter on the highlighted row) toggles it and the list stays open.
|
|
28
|
+
*/
|
|
29
|
+
export declare const Multiple: Story;
|
|
30
|
+
/**
|
|
31
|
+
* Multi-select with a select-all row. Its checkbox is indeterminate while only
|
|
32
|
+
* some options are selected. The row hides while searching. `formatSelected`
|
|
33
|
+
* switches the trigger to a count past two picks.
|
|
34
|
+
*/
|
|
35
|
+
export declare const MultipleWithSelectAll: Story;
|
|
25
36
|
//# sourceMappingURL=combobox.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/combobox/combobox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAY,MAAM,OAAO,CAAC;AACpD,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAc5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;CAOuB,CAAC;AAElC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAmBnC,qEAAqE;AACrE,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAiBF,+EAA+E;AAC/E,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC"}
|
|
1
|
+
{"version":3,"file":"combobox.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/combobox/combobox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAY,MAAM,OAAO,CAAC;AACpD,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAc5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;CAOuB,CAAC;AAElC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAmBnC,qEAAqE;AACrE,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAiBF,+EAA+E;AAC/E,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAoBF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAwBF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAEnC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The attributes `Field` hands to the element that receives focus inside it.
|
|
3
|
+
*/
|
|
4
|
+
type FieldControlProps = {
|
|
5
|
+
'aria-describedby'?: string;
|
|
6
|
+
'aria-invalid'?: true;
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Carries a `Field`'s control attributes to a control that renders its focusable
|
|
11
|
+
* element deeper than `Field`'s direct child.
|
|
12
|
+
*
|
|
13
|
+
* `Field` injects `id` and the `aria-*` attributes onto its direct child. That
|
|
14
|
+
* works for `Input` and `Textarea`, but `Select` renders no element of its own,
|
|
15
|
+
* so `SelectTrigger` reads them from here instead.
|
|
16
|
+
*/
|
|
17
|
+
declare const FieldControlContext: import("react").Context<FieldControlProps | null>;
|
|
18
|
+
export { FieldControlContext };
|
|
19
|
+
export type { FieldControlProps };
|
|
20
|
+
//# sourceMappingURL=field-control-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-control-context.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/field/field-control-context.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,KAAK,iBAAiB,GAAG;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;;;;;;GAOG;AACH,QAAA,MAAM,mBAAmB,mDAAgD,CAAC;AAE1E,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAC/B,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -8,7 +8,12 @@ type FieldProps = {
|
|
|
8
8
|
* wrapper, so column, flex and direct-child utilities apply to each of them.
|
|
9
9
|
*/
|
|
10
10
|
className?: string;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Helper text rendered below the control, hidden while `error` is set.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated Don't add helper text to fields. The label carries the
|
|
15
|
+
* meaning and the error is the only message under a control.
|
|
16
|
+
*/
|
|
12
17
|
description?: ReactNode;
|
|
13
18
|
/**
|
|
14
19
|
* Validation error message. When present, renders with `role="alert"` and
|
|
@@ -19,7 +24,8 @@ type FieldProps = {
|
|
|
19
24
|
/**
|
|
20
25
|
* Override the auto-generated control id. Useful when the consumer already
|
|
21
26
|
* manages a stable id. When omitted, a React-stable id is generated via
|
|
22
|
-
* `useId()` and injected onto the single child element (if applicable).
|
|
27
|
+
* `useId()` and injected onto the single child element (if applicable). A
|
|
28
|
+
* single child that already has an `id` keeps it, and the label points at it.
|
|
23
29
|
*/
|
|
24
30
|
htmlFor?: string;
|
|
25
31
|
/** Visible label rendered above the control and linked via `htmlFor`. */
|
|
@@ -38,16 +44,30 @@ type FieldProps = {
|
|
|
38
44
|
* an error message together with the correct `id`/`htmlFor`/`aria-describedby`
|
|
39
45
|
* associations so callers don't have to hand-assemble these.
|
|
40
46
|
*
|
|
47
|
+
* Always wrap a form control in `Field` rather than pairing a bare `<Label>`
|
|
48
|
+
* with it: `Field` owns the label-to-control gap (10px) and the gap to the
|
|
49
|
+
* error (6px). Don't add helper text: the error is the only message under a
|
|
50
|
+
* control.
|
|
51
|
+
*
|
|
41
52
|
* When there is exactly one child element, `Field` uses `cloneElement` to
|
|
42
53
|
* inject:
|
|
43
54
|
* - `id` — links the label's `htmlFor` to the control
|
|
55
|
+
* - `aria-labelledby` — names group controls such as `RadioGroup`, which a
|
|
56
|
+
* `<label for>` cannot name
|
|
44
57
|
* - `aria-describedby` — references the description and/or error paragraph ids
|
|
45
58
|
* - `aria-invalid` — `true` when `error` is present
|
|
46
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
|
+
*
|
|
64
|
+
* `Select` renders no element of its own, so `SelectTrigger` picks up `id`,
|
|
65
|
+
* `aria-describedby` and `aria-invalid` from `Field` instead.
|
|
66
|
+
*
|
|
47
67
|
* @example
|
|
48
68
|
* ```tsx
|
|
49
|
-
* <Field label="Email"
|
|
50
|
-
* <Input type="email" />
|
|
69
|
+
* <Field label="Email" required>
|
|
70
|
+
* <Input type="email" required />
|
|
51
71
|
* </Field>
|
|
52
72
|
*
|
|
53
73
|
* <Field label="Email" error="Enter a valid email address.">
|
|
@@ -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,
|
|
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"}
|
|
@@ -14,14 +14,13 @@ declare const meta: {
|
|
|
14
14
|
export default meta;
|
|
15
15
|
type Story = StoryObj<typeof meta>;
|
|
16
16
|
/**
|
|
17
|
-
* A basic labeled input field
|
|
18
|
-
* `
|
|
19
|
-
* so the consumer only needs to provide the control as a child.
|
|
17
|
+
* A basic labeled input field. `Field` auto-generates a stable `id` and wires
|
|
18
|
+
* `htmlFor` so the consumer only needs to provide the control as a child.
|
|
20
19
|
*/
|
|
21
20
|
export declare const Default: Story;
|
|
22
21
|
/**
|
|
23
|
-
* When `required` is true, a red asterisk is appended to the label.
|
|
24
|
-
*
|
|
22
|
+
* When `required` is true, a red asterisk is appended to the label. Also set
|
|
23
|
+
* `required` on the `<Input>` so assistive tech announces it.
|
|
25
24
|
*/
|
|
26
25
|
export declare const Required: Story;
|
|
27
26
|
/**
|
|
@@ -32,7 +31,28 @@ export declare const Required: Story;
|
|
|
32
31
|
export declare const WithError: Story;
|
|
33
32
|
/**
|
|
34
33
|
* `Field` is not limited to text inputs — any form control works as a child.
|
|
35
|
-
* Here a `RadioGroup` is labeled
|
|
34
|
+
* Here a `RadioGroup` is labeled by the wrapper.
|
|
36
35
|
*/
|
|
37
36
|
export declare const WithRadioGroup: Story;
|
|
37
|
+
/**
|
|
38
|
+
* The form pattern: one column, 16px between fields (`flex flex-col gap-4`),
|
|
39
|
+
* larger than the 10px label gap so each label groups with its own control.
|
|
40
|
+
* Two fields share a row only when they make up one value. `noValidate` turns
|
|
41
|
+
* off the browser's validation popup; errors show through `Field` instead.
|
|
42
|
+
* Submit it empty to see one.
|
|
43
|
+
*/
|
|
44
|
+
export declare const Form: Story;
|
|
45
|
+
/**
|
|
46
|
+
* Why every control goes in a `Field`: a bare `Label` has no spacing of its
|
|
47
|
+
* own. Left, a hand-built pair at `gap-1.5` (6px). Right, `Field` at 10px.
|
|
48
|
+
*/
|
|
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;
|
|
38
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;
|
|
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"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
/**
|
|
3
|
+
* The text label for a form control.
|
|
4
|
+
*
|
|
5
|
+
* `Label` carries no spacing of its own. To label a form control, wrap the
|
|
6
|
+
* control in `Field` and pass `label`: `Field` sets the gap between the label
|
|
7
|
+
* and the control and wires up `htmlFor`. A bare `Label` placed next to a
|
|
8
|
+
* control ends up at whatever gap its parent happens to use.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Field label="Email">
|
|
13
|
+
* <Input type="email" />
|
|
14
|
+
* </Field>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
2
17
|
declare const Label: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-label").LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
3
18
|
export { Label };
|
|
4
19
|
//# sourceMappingURL=label.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/label/label.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAQlE,QAAA,MAAM,KAAK,2SAKT,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/label/label.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAQlE;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,KAAK,2SAKT,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/select/select.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/select/select.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,EAAc,MAAM,OAAO,CAAC;AAO3E,OAAO,EACL,OAAO,EACP,KAAK,EAEL,IAAI,EAGJ,KAAK,EAEL,IAAI,EACJ,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,OAAO,EACP,KAAK,EAEN,MAAM,wBAAwB,CAAC;AAKhC,QAAA,MAAM,MAAM,iBAAkB,cAAc,CAAC,OAAO,IAAI,CAAC,KAAG,YAE3D,CAAC;AAEF,QAAA,MAAM,WAAW,iBAEd,cAAc,CAAC,OAAO,KAAK,CAAC,KAAG,YAEjC,CAAC;AAEF,QAAA,MAAM,WAAW,iBAEd,cAAc,CAAC,OAAO,KAAK,CAAC,KAAG,YAEjC,CAAC;AAEF,QAAA,MAAM,aAAa,4CAKhB,cAAc,CAAC,OAAO,OAAO,CAAC,GAAG;IAClC,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CACzB,KAAG,YA4BH,CAAC;AAEF,QAAA,MAAM,aAAa,uDAMhB,cAAc,CAAC,OAAO,OAAO,CAAC,KAAG,YA2BnC,CAAC;AAEF,QAAA,MAAM,WAAW,4BAGd,cAAc,CAAC,OAAO,KAAK,CAAC,KAAG,YAMjC,CAAC;AAEF,QAAA,MAAM,UAAU,sCAIb,cAAc,CAAC,OAAO,IAAI,CAAC,KAAG,YAmBhC,CAAC;AAEF,QAAA,MAAM,eAAe,4BAGlB,cAAc,CAAC,OAAO,SAAS,CAAC,KAAG,YAMrC,CAAC;AAEF,QAAA,MAAM,oBAAoB,4BAGvB,cAAc,CAAC,OAAO,cAAc,CAAC,KAAG,YAW1C,CAAC;AAEF,QAAA,MAAM,sBAAsB,4BAGzB,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAG,YAW5C,CAAC;AAEF,OAAO,EACL,MAAM,EACN,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,WAAW,GACZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/select/select.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAc5D,QAAA,MAAM,IAAI;;;;;;;CAKqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"select.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/select/select.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAc5D,QAAA,MAAM,IAAI;;;;;;;CAKqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAgBrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAsBrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAUtB,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
|
-
/**
|
|
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,8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zB,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
|
|
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,
|
|
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;;;;;;;
|
|
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"}
|