@catiarodrigues/goldfinch 1.0.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/LICENSE +15 -0
- package/README.md +119 -0
- package/dist/alert-Iba34Kfr.js +72 -0
- package/dist/badge-dMKK_Gm2.js +147 -0
- package/dist/breadcrumbs-CHev-E0K.js +148 -0
- package/dist/button-DDhP5P56.js +40 -0
- package/dist/card-CVUWZOar.js +42 -0
- package/dist/checkbox-BubMDtGW.js +149 -0
- package/dist/collapsible-Bk5IP_KI.js +55 -0
- package/dist/components/alert.mjs +2 -0
- package/dist/components/badge.mjs +2 -0
- package/dist/components/breadcrumbs.mjs +2 -0
- package/dist/components/button.mjs +2 -0
- package/dist/components/card.mjs +2 -0
- package/dist/components/checkbox.mjs +2 -0
- package/dist/components/collapsible.mjs +2 -0
- package/dist/components/copy-to-clipboard.mjs +2 -0
- package/dist/components/dropdown.mjs +2 -0
- package/dist/components/empty-state.mjs +2 -0
- package/dist/components/field.mjs +2 -0
- package/dist/components/grid.mjs +2 -0
- package/dist/components/input-group.mjs +2 -0
- package/dist/components/input.mjs +4 -0
- package/dist/components/label.mjs +2 -0
- package/dist/components/link.mjs +58 -0
- package/dist/components/menubar.mjs +2 -0
- package/dist/components/modal.mjs +2 -0
- package/dist/components/page.mjs +2 -0
- package/dist/components/pagination.mjs +2 -0
- package/dist/components/popover.mjs +2 -0
- package/dist/components/progress.mjs +2 -0
- package/dist/components/radio.mjs +2 -0
- package/dist/components/select.mjs +2 -0
- package/dist/components/sensitive-input.mjs +2 -0
- package/dist/components/sidebar.mjs +2 -0
- package/dist/components/spinner.mjs +3 -0
- package/dist/components/table-of-contents.mjs +2 -0
- package/dist/components/table.mjs +2 -0
- package/dist/components/tabs.mjs +2 -0
- package/dist/components/text.mjs +2 -0
- package/dist/components/toast.mjs +2 -0
- package/dist/components/toggle.mjs +2 -0
- package/dist/components/toolbar.mjs +2 -0
- package/dist/components/tooltip.mjs +2 -0
- package/dist/components/top-navigation.mjs +2 -0
- package/dist/copy-to-clipboard-KXU8jo6k.js +139 -0
- package/dist/dropdown-A5hLlUjr.js +172 -0
- package/dist/empty-state-DuugAIN_.js +76 -0
- package/dist/field-CZb7PLTY.js +47 -0
- package/dist/grid-BFkQ5cmR.js +101 -0
- package/dist/index.mjs +47 -0
- package/dist/input-6C_-SelY.js +48 -0
- package/dist/input-Bo8XL6_f.js +43 -0
- package/dist/input-group-Dm4hKEhq.js +302 -0
- package/dist/input-variants-CZevxTd8.js +41 -0
- package/dist/label-7oCakbyx.js +43 -0
- package/dist/link-provider-H0J4aZPH.js +21 -0
- package/dist/menubar-DyXmaeKZ.js +59 -0
- package/dist/modal-BYQ8MRMy.js +132 -0
- package/dist/page-DOevDFqd.js +60 -0
- package/dist/pagination-C3f16UOC.js +239 -0
- package/dist/popover-3kcRy9HX.js +120 -0
- package/dist/portal-provider-CWX8j9O1.js +15 -0
- package/dist/progress-Ac96hU_C.js +26 -0
- package/dist/radio-C8rcmsbS.js +144 -0
- package/dist/resolve-variant-DWiDeQhX.js +7 -0
- package/dist/select-DaJRanrs.js +178 -0
- package/dist/sensitive-input-BEAOu1A6.js +181 -0
- package/dist/sidebar-CkZxFt33.js +703 -0
- package/dist/skeleton-line-Dh4TDbeq.js +32 -0
- package/dist/spinner-DKzSES7b.js +79 -0
- package/dist/src/components/alert/alert.d.ts +105 -0
- package/dist/src/components/alert/index.d.ts +1 -0
- package/dist/src/components/badge/badge.d.ts +204 -0
- package/dist/src/components/badge/index.d.ts +1 -0
- package/dist/src/components/breadcrumbs/breadcrumbs.d.ts +94 -0
- package/dist/src/components/breadcrumbs/index.d.ts +1 -0
- package/dist/src/components/button/button.d.ts +37 -0
- package/dist/src/components/button/index.d.ts +2 -0
- package/dist/src/components/card/card.d.ts +31 -0
- package/dist/src/components/card/index.d.ts +1 -0
- package/dist/src/components/checkbox/checkbox.d.ts +196 -0
- package/dist/src/components/checkbox/index.d.ts +1 -0
- package/dist/src/components/collapsible/collapsible.d.ts +108 -0
- package/dist/src/components/collapsible/index.d.ts +1 -0
- package/dist/src/components/copy-to-clipboard/copy-to-clipboard.d.ts +86 -0
- package/dist/src/components/copy-to-clipboard/index.d.ts +1 -0
- package/dist/src/components/dropdown/dropdown.d.ts +115 -0
- package/dist/src/components/dropdown/index.d.ts +1 -0
- package/dist/src/components/empty-state/empty-state.d.ts +68 -0
- package/dist/src/components/empty-state/index.d.ts +1 -0
- package/dist/src/components/field/field.d.ts +88 -0
- package/dist/src/components/field/index.d.ts +1 -0
- package/dist/src/components/grid/grid.d.ts +134 -0
- package/dist/src/components/grid/index.d.ts +1 -0
- package/dist/src/components/input/index.d.ts +30 -0
- package/dist/src/components/input/input-area.d.ts +64 -0
- package/dist/src/components/input/input-variants.d.ts +58 -0
- package/dist/src/components/input/input.d.ts +67 -0
- package/dist/src/components/input-group/context.d.ts +95 -0
- package/dist/src/components/input-group/index.d.ts +1 -0
- package/dist/src/components/input-group/input-group-addon.d.ts +14 -0
- package/dist/src/components/input-group/input-group-button.d.ts +35 -0
- package/dist/src/components/input-group/input-group-input.d.ts +8 -0
- package/dist/src/components/input-group/input-group-suffix.d.ts +12 -0
- package/dist/src/components/input-group/input-group.d.ts +42 -0
- package/dist/src/components/label/index.d.ts +1 -0
- package/dist/src/components/label/label.d.ts +66 -0
- package/dist/src/components/link/index.d.ts +1 -0
- package/dist/src/components/link/link.d.ts +65 -0
- package/dist/src/components/menubar/index.d.ts +2 -0
- package/dist/src/components/menubar/menubar.d.ts +65 -0
- package/dist/src/components/menubar/use-menu-navigation.d.ts +7 -0
- package/dist/src/components/modal/index.d.ts +1 -0
- package/dist/src/components/modal/modal.d.ts +204 -0
- package/dist/src/components/page/index.d.ts +1 -0
- package/dist/src/components/page/page.d.ts +65 -0
- package/dist/src/components/pagination/index.d.ts +1 -0
- package/dist/src/components/pagination/pagination.d.ts +240 -0
- package/dist/src/components/popover/index.d.ts +2 -0
- package/dist/src/components/popover/popover.d.ts +177 -0
- package/dist/src/components/progress/index.d.ts +1 -0
- package/dist/src/components/progress/progress.d.ts +43 -0
- package/dist/src/components/radio/index.d.ts +1 -0
- package/dist/src/components/radio/radio.d.ts +276 -0
- package/dist/src/components/select/index.d.ts +1 -0
- package/dist/src/components/select/select.d.ts +283 -0
- package/dist/src/components/sensitive-input/index.d.ts +1 -0
- package/dist/src/components/sensitive-input/sensitive-input.d.ts +93 -0
- package/dist/src/components/sidebar/index.d.ts +1 -0
- package/dist/src/components/sidebar/sidebar.d.ts +579 -0
- package/dist/src/components/spinner/index.d.ts +2 -0
- package/dist/src/components/spinner/skeleton-line.d.ts +11 -0
- package/dist/src/components/spinner/spinner.d.ts +69 -0
- package/dist/src/components/table/index.d.ts +1 -0
- package/dist/src/components/table/table.d.ts +137 -0
- package/dist/src/components/table-of-contents/index.d.ts +1 -0
- package/dist/src/components/table-of-contents/table-of-contents.d.ts +71 -0
- package/dist/src/components/tabs/index.d.ts +2 -0
- package/dist/src/components/tabs/tabs.d.ts +115 -0
- package/dist/src/components/text/index.d.ts +1 -0
- package/dist/src/components/text/text.d.ts +213 -0
- package/dist/src/components/toast/index.d.ts +4 -0
- package/dist/src/components/toast/toast.d.ts +196 -0
- package/dist/src/components/toggle/index.d.ts +1 -0
- package/dist/src/components/toggle/toggle.d.ts +101 -0
- package/dist/src/components/toolbar/index.d.ts +1 -0
- package/dist/src/components/toolbar/toolbar.d.ts +49 -0
- package/dist/src/components/tooltip/index.d.ts +1 -0
- package/dist/src/components/tooltip/tooltip.d.ts +107 -0
- package/dist/src/components/top-navigation/index.d.ts +1 -0
- package/dist/src/components/top-navigation/top-navigation.d.ts +47 -0
- package/dist/src/index.d.ts +67 -0
- package/dist/src/utils/cn.d.ts +3 -0
- package/dist/src/utils/index.d.ts +4 -0
- package/dist/src/utils/link-provider.d.ts +11 -0
- package/dist/src/utils/portal-provider.d.ts +7 -0
- package/dist/src/utils/resolve-variant.d.ts +1 -0
- package/dist/styles/index.css +294 -0
- package/dist/table-CKmEd0O5.js +135 -0
- package/dist/table-of-contents-CuE1aDKE.js +91 -0
- package/dist/tabs-JX7xyFcA.js +101 -0
- package/dist/text-B0EvLge5.js +88 -0
- package/dist/toast-pSr7cFVU.js +274 -0
- package/dist/toggle-C72Skv4q.js +179 -0
- package/dist/toolbar-DtT4MUHB.js +109 -0
- package/dist/tooltip-QfSb4wnI.js +59 -0
- package/dist/top-navigation-DoTeFaXD.js +45 -0
- package/dist/utils.mjs +11 -0
- package/package.json +228 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Checkbox as BaseCheckbox } from '@base-ui/react/checkbox';
|
|
3
|
+
/** Event details passed to onCheckedChange callback. Re-exported from Base UI. */
|
|
4
|
+
export type CheckboxChangeEventDetails = Parameters<NonNullable<BaseCheckbox.Root.Props["onCheckedChange"]>>[1];
|
|
5
|
+
/** Checkbox variant definitions mapping variant names to their Tailwind classes. */
|
|
6
|
+
export declare const GOLDFINCH_CHECKBOX_VARIANTS: {
|
|
7
|
+
readonly variant: {
|
|
8
|
+
readonly default: {
|
|
9
|
+
readonly classes: "[&:focus-within>span]:ring-goldfinch-focus [&:hover>span]:ring-goldfinch-hairline";
|
|
10
|
+
readonly description: "Default checkbox appearance";
|
|
11
|
+
};
|
|
12
|
+
readonly error: {
|
|
13
|
+
readonly classes: "[&>span]:ring-goldfinch-danger";
|
|
14
|
+
readonly description: "Error state for validation failures";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const GOLDFINCH_CHECKBOX_DEFAULT_VARIANTS: {
|
|
19
|
+
readonly variant: "default";
|
|
20
|
+
};
|
|
21
|
+
export type GoldfinchCheckboxVariant = keyof typeof GOLDFINCH_CHECKBOX_VARIANTS.variant;
|
|
22
|
+
export interface GoldfinchCheckboxVariantsProps {
|
|
23
|
+
/**
|
|
24
|
+
* Visual variant.
|
|
25
|
+
* - `"default"` — Standard checkbox appearance
|
|
26
|
+
* - `"error"` — Error state for validation failures
|
|
27
|
+
* @default "default"
|
|
28
|
+
*/
|
|
29
|
+
variant?: GoldfinchCheckboxVariant;
|
|
30
|
+
}
|
|
31
|
+
export declare function checkboxVariants({ variant, }?: GoldfinchCheckboxVariantsProps): string;
|
|
32
|
+
export type CheckboxVariant = GoldfinchCheckboxVariant;
|
|
33
|
+
/**
|
|
34
|
+
* Single checkbox component props with accessibility guidance.
|
|
35
|
+
*
|
|
36
|
+
* **Accessible Name Required:** Checkbox should have one of:
|
|
37
|
+
* 1. `label` prop (recommended) - built-in Field wrapper with horizontal layout
|
|
38
|
+
* 2. `aria-label` - for checkboxes without visible label
|
|
39
|
+
* 3. `aria-labelledby` - for custom label association
|
|
40
|
+
*
|
|
41
|
+
* **Note:** When used inside Checkbox.Group or Dropdown, label is optional (parent provides context).
|
|
42
|
+
*
|
|
43
|
+
* Missing accessible names will trigger console warnings in development (unless inside a group).
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* // Recommended: Built-in Field wrapper with label
|
|
47
|
+
* <Checkbox label="Accept terms and conditions" />
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* // Control-first layout (checkbox before label)
|
|
51
|
+
* <Checkbox label="Remember me" controlFirst={true} />
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* // Label-first layout (label before checkbox)
|
|
55
|
+
* <Checkbox label="Enable notifications" controlFirst={false} />
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* // Error variant (visual only, no error text for single checkboxes)
|
|
59
|
+
* <Checkbox label="Required field" variant="error" />
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* // Without visible label (aria-label required)
|
|
63
|
+
* <Checkbox aria-label="Select all items" />
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* // Custom label association
|
|
67
|
+
* <label id="terms-label">I accept the terms</label>
|
|
68
|
+
* <Checkbox aria-labelledby="terms-label" />
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* // Inside Checkbox.Group (label optional)
|
|
72
|
+
* <Checkbox.Group legend="Preferences">
|
|
73
|
+
* <Checkbox.Item value="email" label="Email notifications" />
|
|
74
|
+
* <Checkbox.Item value="sms" label="SMS notifications" />
|
|
75
|
+
* </Checkbox.Group>
|
|
76
|
+
*/
|
|
77
|
+
export type CheckboxProps = {
|
|
78
|
+
/** Visual variant: "default" or "error" for validation failures (visual only, no error text) */
|
|
79
|
+
variant?: CheckboxVariant;
|
|
80
|
+
/** Label content for the checkbox (enables built-in Field wrapper) - can be a string or any React node */
|
|
81
|
+
label?: ReactNode;
|
|
82
|
+
/** Tooltip content to display next to the label via an info icon */
|
|
83
|
+
labelTooltip?: ReactNode;
|
|
84
|
+
/** When true (default), checkbox appears before label. When false, label appears before checkbox. */
|
|
85
|
+
controlFirst?: boolean;
|
|
86
|
+
/** Whether the checkbox is checked (controlled) */
|
|
87
|
+
checked?: boolean;
|
|
88
|
+
/** Whether the checkbox is in indeterminate state */
|
|
89
|
+
indeterminate?: boolean;
|
|
90
|
+
/** Whether the checkbox is disabled */
|
|
91
|
+
disabled?: boolean;
|
|
92
|
+
/** Callback when the checked state changes */
|
|
93
|
+
onCheckedChange?: BaseCheckbox.Root.Props["onCheckedChange"];
|
|
94
|
+
/** Name for form submission */
|
|
95
|
+
name?: string;
|
|
96
|
+
/** Whether the field is required */
|
|
97
|
+
required?: boolean;
|
|
98
|
+
/** Additional class name */
|
|
99
|
+
className?: string;
|
|
100
|
+
/** Accessible label when no visible label is provided */
|
|
101
|
+
"aria-label"?: string;
|
|
102
|
+
/** ID of element that labels this checkbox */
|
|
103
|
+
"aria-labelledby"?: string;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Checkbox group component props (with built-in Fieldset and CheckboxGroup)
|
|
107
|
+
*
|
|
108
|
+
* Usage:
|
|
109
|
+
* ```tsx
|
|
110
|
+
* <Checkbox.Group
|
|
111
|
+
* legend="Choose preferences"
|
|
112
|
+
* defaultValue={['email']}
|
|
113
|
+
* error="You must select at least one option"
|
|
114
|
+
* >
|
|
115
|
+
* <Checkbox.Item label="Email notifications" value="email" />
|
|
116
|
+
* <Checkbox.Item label="SMS notifications" value="sms" />
|
|
117
|
+
* </Checkbox.Group>
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
/**
|
|
121
|
+
* Props for Checkbox.Legend — a composable sub-component for labeling a Checkbox.Group.
|
|
122
|
+
*
|
|
123
|
+
* Place as a direct child of `<Checkbox.Group>` to provide a styled, accessible legend.
|
|
124
|
+
* Accepts `className` for full styling control (e.g. `className="sr-only"` to visually hide).
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* ```tsx
|
|
128
|
+
* <Checkbox.Group>
|
|
129
|
+
* <Checkbox.Legend className="sr-only">Preferences</Checkbox.Legend>
|
|
130
|
+
* <Checkbox.Item label="Email" value="email" />
|
|
131
|
+
* </Checkbox.Group>
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
export interface CheckboxLegendProps {
|
|
135
|
+
/** Legend content */
|
|
136
|
+
children: ReactNode;
|
|
137
|
+
/** Additional CSS classes (e.g. "sr-only" to visually hide the legend) */
|
|
138
|
+
className?: string;
|
|
139
|
+
}
|
|
140
|
+
export interface CheckboxGroupProps {
|
|
141
|
+
/**
|
|
142
|
+
* Legend text for the group.
|
|
143
|
+
* For more control over legend styling, omit this prop and use `<Checkbox.Legend>` as a child instead.
|
|
144
|
+
*/
|
|
145
|
+
legend?: string;
|
|
146
|
+
/** Child Checkbox.Item components (and optionally a Checkbox.Legend) */
|
|
147
|
+
children: ReactNode;
|
|
148
|
+
/** Error message for the group (only appears in groups, not single checkboxes) */
|
|
149
|
+
error?: string;
|
|
150
|
+
/** Helper text for the group */
|
|
151
|
+
description?: ReactNode;
|
|
152
|
+
/** Values of checkboxes that should be initially checked (uncontrolled) */
|
|
153
|
+
defaultValue?: string[];
|
|
154
|
+
/** Values of checkboxes that should be checked (controlled) */
|
|
155
|
+
value?: string[];
|
|
156
|
+
/** Event handler called when checkbox values change */
|
|
157
|
+
onValueChange?: (value: string[]) => void;
|
|
158
|
+
/** All possible checkbox values (required for parent checkbox pattern) */
|
|
159
|
+
allValues?: string[];
|
|
160
|
+
/** Whether all checkboxes in the group are disabled */
|
|
161
|
+
disabled?: boolean;
|
|
162
|
+
/** When true (default), checkbox appears before label. When false, label appears before checkbox. */
|
|
163
|
+
controlFirst?: boolean;
|
|
164
|
+
/** Additional CSS classes */
|
|
165
|
+
className?: string;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Individual checkbox item within a group
|
|
169
|
+
*/
|
|
170
|
+
export type CheckboxItemProps = {
|
|
171
|
+
/** Visual variant: "default" or "error" for validation failures */
|
|
172
|
+
variant?: CheckboxVariant;
|
|
173
|
+
/** Label text displayed next to checkbox */
|
|
174
|
+
label: string;
|
|
175
|
+
/** Value of the checkbox (required when used in Checkbox.Group) */
|
|
176
|
+
value?: string;
|
|
177
|
+
/** Additional CSS classes for the label wrapper */
|
|
178
|
+
className?: string;
|
|
179
|
+
checked?: boolean;
|
|
180
|
+
indeterminate?: boolean;
|
|
181
|
+
disabled?: boolean;
|
|
182
|
+
/** Callback when the checked state changes */
|
|
183
|
+
onCheckedChange?: BaseCheckbox.Root.Props["onCheckedChange"];
|
|
184
|
+
name?: string;
|
|
185
|
+
};
|
|
186
|
+
declare function CheckboxLegend({ children, className }: CheckboxLegendProps): import("react").JSX.Element;
|
|
187
|
+
declare namespace CheckboxLegend {
|
|
188
|
+
var displayName: string;
|
|
189
|
+
}
|
|
190
|
+
declare function CheckboxGroup({ legend, children, error, description, defaultValue, value, onValueChange, allValues, disabled, controlFirst, className, }: CheckboxGroupProps): import("react").JSX.Element;
|
|
191
|
+
export declare const Checkbox: import('react').ForwardRefExoticComponent<CheckboxProps & import('react').RefAttributes<HTMLButtonElement>> & {
|
|
192
|
+
Item: import('react').ForwardRefExoticComponent<CheckboxItemProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
193
|
+
Group: typeof CheckboxGroup;
|
|
194
|
+
Legend: typeof CheckboxLegend;
|
|
195
|
+
};
|
|
196
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Checkbox, GOLDFINCH_CHECKBOX_VARIANTS, GOLDFINCH_CHECKBOX_DEFAULT_VARIANTS, type CheckboxChangeEventDetails, type CheckboxProps, type CheckboxLegendProps, type CheckboxGroupProps, type CheckboxItemProps, type GoldfinchCheckboxVariant, type CheckboxVariant, } from './checkbox';
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Collapsible as CollapsibleBase } from '@base-ui/react/collapsible';
|
|
2
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
3
|
+
export declare const GOLDFINCH_COLLAPSIBLE_VARIANTS: {};
|
|
4
|
+
export declare const GOLDFINCH_COLLAPSIBLE_DEFAULT_VARIANTS: {};
|
|
5
|
+
export interface GoldfinchCollapsibleVariantsProps {
|
|
6
|
+
}
|
|
7
|
+
export declare function collapsibleVariants(_props?: GoldfinchCollapsibleVariantsProps): string;
|
|
8
|
+
type BaseRootProps = ComponentPropsWithoutRef<typeof CollapsibleBase.Root>;
|
|
9
|
+
export interface CollapsibleRootProps extends BaseRootProps {
|
|
10
|
+
/** Additional CSS classes */
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Root component that manages collapsible state.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <Collapsible.Root open={open} onOpenChange={setOpen}>
|
|
19
|
+
* <Collapsible.Trigger>Toggle</Collapsible.Trigger>
|
|
20
|
+
* <Collapsible.Panel>Content</Collapsible.Panel>
|
|
21
|
+
* </Collapsible.Root>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
declare function CollapsibleRoot({ className, ...props }: CollapsibleRootProps): import("react").JSX.Element;
|
|
25
|
+
declare namespace CollapsibleRoot {
|
|
26
|
+
var displayName: string;
|
|
27
|
+
}
|
|
28
|
+
type BaseTriggerProps = ComponentPropsWithoutRef<typeof CollapsibleBase.Trigger>;
|
|
29
|
+
export interface CollapsibleTriggerProps extends BaseTriggerProps {
|
|
30
|
+
/** Additional CSS classes */
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
type BasePanelProps = ComponentPropsWithoutRef<typeof CollapsibleBase.Panel>;
|
|
34
|
+
export interface CollapsiblePanelProps extends BasePanelProps {
|
|
35
|
+
/** Additional CSS classes */
|
|
36
|
+
className?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface CollapsibleDefaultTriggerProps {
|
|
39
|
+
/** Label text displayed in the trigger */
|
|
40
|
+
children: ReactNode;
|
|
41
|
+
/** Additional CSS classes */
|
|
42
|
+
className?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface CollapsibleDefaultPanelProps extends BasePanelProps {
|
|
45
|
+
/** Panel content */
|
|
46
|
+
children: ReactNode;
|
|
47
|
+
/** Additional CSS classes */
|
|
48
|
+
className?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Collapsible — a composable disclosure component for showing/hiding content.
|
|
52
|
+
*
|
|
53
|
+
* Built on Base UI's Collapsible with full composition support.
|
|
54
|
+
*
|
|
55
|
+
* ## Basic Usage
|
|
56
|
+
*
|
|
57
|
+
* ```tsx
|
|
58
|
+
* const [open, setOpen] = useState(false);
|
|
59
|
+
*
|
|
60
|
+
* <Collapsible.Root open={open} onOpenChange={setOpen}>
|
|
61
|
+
* <Collapsible.Trigger render={<Button variant="ghost" />}>
|
|
62
|
+
* Show details
|
|
63
|
+
* </Collapsible.Trigger>
|
|
64
|
+
* <Collapsible.Panel className="mt-2">
|
|
65
|
+
* <Text>Hidden content revealed when expanded.</Text>
|
|
66
|
+
* </Collapsible.Panel>
|
|
67
|
+
* </Collapsible.Root>
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* ## With Default Styling
|
|
71
|
+
*
|
|
72
|
+
* Use `DefaultTrigger` and `DefaultPanel` for the classic style:
|
|
73
|
+
*
|
|
74
|
+
* ```tsx
|
|
75
|
+
* <Collapsible.Root>
|
|
76
|
+
* <Collapsible.DefaultTrigger>Show details</Collapsible.DefaultTrigger>
|
|
77
|
+
* <Collapsible.DefaultPanel>
|
|
78
|
+
* <Text>Content with border-left accent</Text>
|
|
79
|
+
* </Collapsible.DefaultPanel>
|
|
80
|
+
* </Collapsible.Root>
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* ## Controlled Accordion Pattern
|
|
84
|
+
*
|
|
85
|
+
* ```tsx
|
|
86
|
+
* const [activeIndex, setActiveIndex] = useState<number | null>(null);
|
|
87
|
+
*
|
|
88
|
+
* {items.map((item, i) => (
|
|
89
|
+
* <Collapsible.Root
|
|
90
|
+
* key={i}
|
|
91
|
+
* open={activeIndex === i}
|
|
92
|
+
* onOpenChange={(open) => setActiveIndex(open ? i : null)}
|
|
93
|
+
* >
|
|
94
|
+
* <Collapsible.DefaultTrigger>{item.title}</Collapsible.DefaultTrigger>
|
|
95
|
+
* <Collapsible.DefaultPanel>{item.content}</Collapsible.DefaultPanel>
|
|
96
|
+
* </Collapsible.Root>
|
|
97
|
+
* ))}
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
export declare const Collapsible: typeof CollapsibleRoot & {
|
|
101
|
+
Root: typeof CollapsibleRoot;
|
|
102
|
+
Trigger: import('react').ForwardRefExoticComponent<CollapsibleTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
103
|
+
Panel: import('react').ForwardRefExoticComponent<CollapsiblePanelProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
104
|
+
DefaultTrigger: import('react').ForwardRefExoticComponent<CollapsibleDefaultTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
105
|
+
DefaultPanel: import('react').ForwardRefExoticComponent<CollapsibleDefaultPanelProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
106
|
+
};
|
|
107
|
+
export type CollapsibleProps = CollapsibleRootProps;
|
|
108
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Collapsible, type CollapsibleProps, type CollapsibleRootProps, type CollapsibleTriggerProps, type CollapsiblePanelProps, type CollapsibleDefaultTriggerProps, type CollapsibleDefaultPanelProps, } from './collapsible';
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/** CopyToClipboard size variant definitions mapping sizes to their Tailwind classes. */
|
|
2
|
+
export declare const GOLDFINCH_COPY_TO_CLIPBOARD_VARIANTS: {
|
|
3
|
+
readonly size: {
|
|
4
|
+
readonly sm: {
|
|
5
|
+
readonly classes: "text-xs";
|
|
6
|
+
readonly buttonSize: "sm";
|
|
7
|
+
readonly description: "Small copy-to-clipboard for compact UIs";
|
|
8
|
+
};
|
|
9
|
+
readonly base: {
|
|
10
|
+
readonly classes: "text-sm";
|
|
11
|
+
readonly buttonSize: "base";
|
|
12
|
+
readonly description: "Default copy-to-clipboard size";
|
|
13
|
+
};
|
|
14
|
+
readonly lg: {
|
|
15
|
+
readonly classes: "text-sm";
|
|
16
|
+
readonly buttonSize: "lg";
|
|
17
|
+
readonly description: "Large copy-to-clipboard for prominent display";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const GOLDFINCH_COPY_TO_CLIPBOARD_DEFAULT_VARIANTS: {
|
|
22
|
+
readonly size: "lg";
|
|
23
|
+
};
|
|
24
|
+
export type GoldfinchCopyToClipboardSize = keyof typeof GOLDFINCH_COPY_TO_CLIPBOARD_VARIANTS.size;
|
|
25
|
+
export interface GoldfinchCopyToClipboardVariantsProps {
|
|
26
|
+
/**
|
|
27
|
+
* Size of the copy-to-clipboard field.
|
|
28
|
+
* - `"sm"` — Small copy-to-clipboard for compact UIs
|
|
29
|
+
* - `"base"` — Default copy-to-clipboard size
|
|
30
|
+
* - `"lg"` — Large copy-to-clipboard for prominent display
|
|
31
|
+
* @default "lg"
|
|
32
|
+
*/
|
|
33
|
+
size?: GoldfinchCopyToClipboardSize;
|
|
34
|
+
}
|
|
35
|
+
export declare function copyToClipboardVariants({ size, }?: GoldfinchCopyToClipboardVariantsProps): string;
|
|
36
|
+
/**
|
|
37
|
+
* CopyToClipboard component props.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```tsx
|
|
41
|
+
* <CopyToClipboard text="sk_live_abc123" />
|
|
42
|
+
* <CopyToClipboard text="npm install @catiarodrigues/goldfinch" size="sm" />
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export interface CopyToClipboardProps extends GoldfinchCopyToClipboardVariantsProps {
|
|
46
|
+
/** The text to display and copy to clipboard. */
|
|
47
|
+
text: string;
|
|
48
|
+
/** If provided, this text will be copied to clipboard instead of the `text` prop. */
|
|
49
|
+
textToCopy?: string;
|
|
50
|
+
/** Additional CSS classes merged via `cn()`. */
|
|
51
|
+
className?: string;
|
|
52
|
+
/** Callback fired after text is copied to clipboard. */
|
|
53
|
+
onCopy?: () => void;
|
|
54
|
+
/**
|
|
55
|
+
* Tooltip config. Shows tooltip on hover, anchored toast on click.
|
|
56
|
+
* @example
|
|
57
|
+
* ```tsx
|
|
58
|
+
* <CopyToClipboard
|
|
59
|
+
* text="abc123"
|
|
60
|
+
* tooltip={{ text: "Copy", copiedText: "Copied!", side: "top" }}
|
|
61
|
+
* />
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
tooltip?: {
|
|
65
|
+
/** Text shown in tooltip on hover. @default "Copy" */
|
|
66
|
+
text?: string;
|
|
67
|
+
/** Text shown in toast after copying. @default "Copied" */
|
|
68
|
+
copiedText?: string;
|
|
69
|
+
/** Tooltip/toast placement. @default "top" */
|
|
70
|
+
side?: "top" | "bottom" | "left" | "right";
|
|
71
|
+
};
|
|
72
|
+
/** Accessible labels for i18n. */
|
|
73
|
+
labels?: {
|
|
74
|
+
/** @default "Copy to clipboard" */
|
|
75
|
+
copyAction?: string;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Read-only text field with a one-click copy-to-clipboard button.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```tsx
|
|
83
|
+
* <CopyToClipboard text="0c239dd2" />
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
export declare const CopyToClipboard: import('react').ForwardRefExoticComponent<CopyToClipboardProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CopyToClipboard } from './copy-to-clipboard';
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { Menu as DropdownMenuPrimitive } from '@base-ui/react/menu';
|
|
2
|
+
import { PortalContainer } from '../../utils/portal-provider';
|
|
3
|
+
import { Icon } from '@phosphor-icons/react';
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
/** Dropdown item variant definitions (default and danger styles). */
|
|
6
|
+
export declare const GOLDFINCH_DROPDOWN_VARIANTS: {
|
|
7
|
+
readonly variant: {
|
|
8
|
+
readonly default: {
|
|
9
|
+
readonly classes: "";
|
|
10
|
+
readonly description: "Default dropdown item appearance";
|
|
11
|
+
};
|
|
12
|
+
readonly danger: {
|
|
13
|
+
readonly classes: "text-goldfinch-danger data-highlighted:bg-goldfinch-danger/5 data-highlighted:text-goldfinch-danger";
|
|
14
|
+
readonly description: "Destructive action item";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const GOLDFINCH_DROPDOWN_DEFAULT_VARIANTS: {
|
|
19
|
+
readonly variant: "default";
|
|
20
|
+
};
|
|
21
|
+
export type GoldfinchDropdownVariant = keyof typeof GOLDFINCH_DROPDOWN_VARIANTS.variant;
|
|
22
|
+
export interface GoldfinchDropdownVariantsProps {
|
|
23
|
+
/**
|
|
24
|
+
* Visual style of the dropdown item.
|
|
25
|
+
* - `"default"` — Standard item appearance
|
|
26
|
+
* - `"danger"` — Destructive action with red text
|
|
27
|
+
* @default "default"
|
|
28
|
+
*/
|
|
29
|
+
variant?: GoldfinchDropdownVariant;
|
|
30
|
+
}
|
|
31
|
+
export declare function dropdownVariants({ variant, }?: GoldfinchDropdownVariantsProps): string;
|
|
32
|
+
/**
|
|
33
|
+
* DropdownMenu — accessible dropdown menu anchored to a trigger.
|
|
34
|
+
*
|
|
35
|
+
* Compound component: `DropdownMenu` (Root), `.Trigger`, `.Content`, `.Item`,
|
|
36
|
+
* `.LinkItem`, `.CheckboxItem`, `.RadioGroup`, `.RadioItem`, `.RadioItemIndicator`,
|
|
37
|
+
* `.Sub`, `.SubTrigger`, `.SubContent`, `.Label`, `.Separator`, `.Shortcut`, `.Group`.
|
|
38
|
+
*
|
|
39
|
+
* Built on `@base-ui/react/menu`.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* <DropdownMenu>
|
|
44
|
+
* <DropdownMenu.Trigger>
|
|
45
|
+
* <Button>Actions</Button>
|
|
46
|
+
* </DropdownMenu.Trigger>
|
|
47
|
+
* <DropdownMenu.Content>
|
|
48
|
+
* <DropdownMenu.Item>Edit</DropdownMenu.Item>
|
|
49
|
+
* <DropdownMenu.Item icon={CopyIcon}>Duplicate</DropdownMenu.Item>
|
|
50
|
+
* <DropdownMenu.LinkItem href="/settings" icon={GearIcon}>Settings</DropdownMenu.LinkItem>
|
|
51
|
+
* <DropdownMenu.Separator />
|
|
52
|
+
* <DropdownMenu.Item variant="danger">Delete</DropdownMenu.Item>
|
|
53
|
+
* </DropdownMenu.Content>
|
|
54
|
+
* </DropdownMenu>
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @see https://base-ui.com/react/components/menu
|
|
58
|
+
*/
|
|
59
|
+
export declare const DropdownMenu: (<Payload>(props: DropdownMenuPrimitive.Root.Props<Payload>) => import("react/jsx-runtime").JSX.Element) & {
|
|
60
|
+
Trigger: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').MenuTriggerProps<unknown> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
61
|
+
Portal: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').ContextMenuPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
62
|
+
Sub: typeof DropdownMenuPrimitive.SubmenuRoot;
|
|
63
|
+
SubTrigger: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ContextMenuSubmenuTriggerProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & {
|
|
64
|
+
inset?: boolean;
|
|
65
|
+
icon?: Icon;
|
|
66
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
67
|
+
SubContent: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ContextMenuPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
68
|
+
/**
|
|
69
|
+
* Container element for the portal. Use this to render the dropdown inside
|
|
70
|
+
* a Shadow DOM or custom container. Overrides `GoldfinchPortalProvider` context.
|
|
71
|
+
* @default document.body (or GoldfinchPortalProvider container if set)
|
|
72
|
+
*/
|
|
73
|
+
container?: PortalContainer;
|
|
74
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
75
|
+
Content: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ContextMenuPositionerProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
76
|
+
/**
|
|
77
|
+
* Container element for the portal. Use this to render the dropdown inside
|
|
78
|
+
* a Shadow DOM or custom container. Overrides `GoldfinchPortalProvider` context.
|
|
79
|
+
* @default document.body (or GoldfinchPortalProvider container if set)
|
|
80
|
+
*/
|
|
81
|
+
container?: PortalContainer;
|
|
82
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
83
|
+
Item: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ContextMenuItemProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & {
|
|
84
|
+
inset?: boolean;
|
|
85
|
+
icon?: Icon | React.ReactNode;
|
|
86
|
+
selected?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* @deprecated Use `DropdownMenu.LinkItem` instead for navigation links.
|
|
89
|
+
* This prop will be removed in a future major version.
|
|
90
|
+
*/
|
|
91
|
+
href?: string;
|
|
92
|
+
variant?: "default" | "danger";
|
|
93
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
94
|
+
LinkItem: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ContextMenuLinkItemProps, "ref"> & React.RefAttributes<Element>, "ref"> & {
|
|
95
|
+
inset?: boolean;
|
|
96
|
+
icon?: Icon | React.ReactNode;
|
|
97
|
+
variant?: "default" | "danger";
|
|
98
|
+
} & React.RefAttributes<Element>>;
|
|
99
|
+
CheckboxItem: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ContextMenuCheckboxItemProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
100
|
+
RadioGroup: React.NamedExoticComponent<Omit<import('@base-ui/react').ContextMenuRadioGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
101
|
+
RadioItem: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ContextMenuRadioItemProps, "ref"> & React.RefAttributes<HTMLElement>, "ref"> & {
|
|
102
|
+
inset?: boolean;
|
|
103
|
+
icon?: Icon | React.ReactNode;
|
|
104
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
105
|
+
RadioItemIndicator: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ContextMenuRadioItemIndicatorProps, "ref"> & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
106
|
+
Label: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ContextMenuGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
107
|
+
inset?: boolean;
|
|
108
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
109
|
+
Separator: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
110
|
+
Shortcut: {
|
|
111
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
112
|
+
displayName: string;
|
|
113
|
+
};
|
|
114
|
+
Group: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').ContextMenuGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
115
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DropdownMenu } from './dropdown';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/** EmptyState size variant definitions mapping sizes to their Tailwind classes. */
|
|
2
|
+
export declare const GOLDFINCH_EMPTY_STATE_VARIANTS: {
|
|
3
|
+
readonly size: {
|
|
4
|
+
readonly sm: {
|
|
5
|
+
readonly classes: "px-6 py-8 gap-4";
|
|
6
|
+
readonly description: "Compact empty state for smaller containers";
|
|
7
|
+
};
|
|
8
|
+
readonly base: {
|
|
9
|
+
readonly classes: "px-10 py-16 gap-6";
|
|
10
|
+
readonly description: "Default empty state size";
|
|
11
|
+
};
|
|
12
|
+
readonly lg: {
|
|
13
|
+
readonly classes: "px-12 py-20 gap-8";
|
|
14
|
+
readonly description: "Large empty state for prominent placement";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const GOLDFINCH_EMPTY_STATE_DEFAULT_VARIANTS: {
|
|
19
|
+
readonly size: "base";
|
|
20
|
+
};
|
|
21
|
+
export type GoldfinchEmptyStateSize = keyof typeof GOLDFINCH_EMPTY_STATE_VARIANTS.size;
|
|
22
|
+
export interface GoldfinchEmptyStateVariantsProps {
|
|
23
|
+
/**
|
|
24
|
+
* Size of the empty state container.
|
|
25
|
+
* - `"sm"` — Compact empty state for smaller containers
|
|
26
|
+
* - `"base"` — Default empty state size
|
|
27
|
+
* - `"lg"` — Large empty state for prominent placement
|
|
28
|
+
* @default "base"
|
|
29
|
+
*/
|
|
30
|
+
size?: GoldfinchEmptyStateSize;
|
|
31
|
+
}
|
|
32
|
+
export declare function emptyStateVariants({ size, }?: GoldfinchEmptyStateVariantsProps): string;
|
|
33
|
+
/**
|
|
34
|
+
* Empty state component props.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```tsx
|
|
38
|
+
* <EmptyState
|
|
39
|
+
* icon={<PackageIcon size={48} />}
|
|
40
|
+
* title="No packages found"
|
|
41
|
+
* description="Get started by installing your first package."
|
|
42
|
+
* commandLine="npm install @catiarodrigues/goldfinch"
|
|
43
|
+
* />
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export interface EmptyStateProps extends GoldfinchEmptyStateVariantsProps {
|
|
47
|
+
/** Decorative icon displayed above the title (e.g. from `@phosphor-icons/react`). */
|
|
48
|
+
icon?: React.ReactNode;
|
|
49
|
+
/** Primary heading text for the empty state. */
|
|
50
|
+
title: string;
|
|
51
|
+
/** Secondary description text displayed below the title. */
|
|
52
|
+
description?: string;
|
|
53
|
+
/** Shell command displayed in a copyable code block. */
|
|
54
|
+
commandLine?: string;
|
|
55
|
+
/** Additional content (buttons, links) rendered below the description. */
|
|
56
|
+
contents?: React.ReactNode;
|
|
57
|
+
/** Additional CSS classes merged via `cn()`. */
|
|
58
|
+
className?: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Placeholder shown when a list, table, or page has no content to display.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```tsx
|
|
65
|
+
* <EmptyState title="No results found" description="Try adjusting your search." />
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
export declare function EmptyState({ icon, title, description, commandLine, contents, size, className, }: EmptyStateProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EmptyState, emptyStateVariants, GOLDFINCH_EMPTY_STATE_VARIANTS, GOLDFINCH_EMPTY_STATE_DEFAULT_VARIANTS, type EmptyStateProps, type GoldfinchEmptyStateSize, type GoldfinchEmptyStateVariantsProps, } from './empty-state';
|