@cascivo/react 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +233 -168
- package/dist/cascivo.css +1 -1
- package/dist/index.d.ts +2826 -1
- package/dist/index.js +3865 -2760
- package/package.json +8 -8
- package/readme.body.md +232 -5
- package/dist/types/packages/components/src/_all-metas.d.ts +0 -2
- package/dist/types/packages/components/src/accordion/accordion.d.ts +0 -16
- package/dist/types/packages/components/src/accordion/accordion.meta.d.ts +0 -2
- package/dist/types/packages/components/src/alert/alert.d.ts +0 -13
- package/dist/types/packages/components/src/alert/alert.meta.d.ts +0 -2
- package/dist/types/packages/components/src/alert-dialog/alert-dialog.d.ts +0 -14
- package/dist/types/packages/components/src/alert-dialog/alert-dialog.meta.d.ts +0 -2
- package/dist/types/packages/components/src/aspect-ratio/aspect-ratio.d.ts +0 -7
- package/dist/types/packages/components/src/aspect-ratio/aspect-ratio.meta.d.ts +0 -2
- package/dist/types/packages/components/src/avatar/avatar.d.ts +0 -9
- package/dist/types/packages/components/src/avatar/avatar.meta.d.ts +0 -2
- package/dist/types/packages/components/src/badge/badge.d.ts +0 -6
- package/dist/types/packages/components/src/badge/badge.meta.d.ts +0 -2
- package/dist/types/packages/components/src/blockquote/blockquote.d.ts +0 -5
- package/dist/types/packages/components/src/blockquote/blockquote.meta.d.ts +0 -2
- package/dist/types/packages/components/src/blocks/app-shell/app-shell.d.ts +0 -1
- package/dist/types/packages/components/src/blocks/app-shell/app-shell.meta.d.ts +0 -2
- package/dist/types/packages/components/src/blocks/auth-login/auth-login.d.ts +0 -1
- package/dist/types/packages/components/src/blocks/auth-login/auth-login.meta.d.ts +0 -2
- package/dist/types/packages/components/src/blocks/auth-signup/auth-signup.d.ts +0 -1
- package/dist/types/packages/components/src/blocks/auth-signup/auth-signup.meta.d.ts +0 -2
- package/dist/types/packages/components/src/blocks/dashboard-overview/dashboard-overview.d.ts +0 -1
- package/dist/types/packages/components/src/blocks/dashboard-overview/dashboard-overview.meta.d.ts +0 -2
- package/dist/types/packages/components/src/blocks/dashboard-table/dashboard-table.d.ts +0 -2
- package/dist/types/packages/components/src/blocks/dashboard-table/dashboard-table.meta.d.ts +0 -2
- package/dist/types/packages/components/src/blocks/marketing-features/marketing-features.d.ts +0 -1
- package/dist/types/packages/components/src/blocks/marketing-features/marketing-features.meta.d.ts +0 -2
- package/dist/types/packages/components/src/blocks/marketing-hero/marketing-hero.d.ts +0 -1
- package/dist/types/packages/components/src/blocks/marketing-hero/marketing-hero.meta.d.ts +0 -2
- package/dist/types/packages/components/src/blocks/settings-profile/settings-profile.d.ts +0 -1
- package/dist/types/packages/components/src/blocks/settings-profile/settings-profile.meta.d.ts +0 -2
- package/dist/types/packages/components/src/blocks/types.d.ts +0 -12
- package/dist/types/packages/components/src/breadcrumb/breadcrumb.d.ts +0 -12
- package/dist/types/packages/components/src/breadcrumb/breadcrumb.meta.d.ts +0 -2
- package/dist/types/packages/components/src/button/button.d.ts +0 -7
- package/dist/types/packages/components/src/button/button.meta.d.ts +0 -2
- package/dist/types/packages/components/src/button-group/button-group.d.ts +0 -9
- package/dist/types/packages/components/src/button-group/button-group.meta.d.ts +0 -2
- package/dist/types/packages/components/src/calendar/calendar.d.ts +0 -35
- package/dist/types/packages/components/src/calendar/calendar.meta.d.ts +0 -2
- package/dist/types/packages/components/src/card/card.d.ts +0 -18
- package/dist/types/packages/components/src/card/card.meta.d.ts +0 -2
- package/dist/types/packages/components/src/carousel/carousel.d.ts +0 -17
- package/dist/types/packages/components/src/carousel/carousel.meta.d.ts +0 -2
- package/dist/types/packages/components/src/chat-bubble/chat-bubble.d.ts +0 -10
- package/dist/types/packages/components/src/chat-bubble/chat-bubble.meta.d.ts +0 -2
- package/dist/types/packages/components/src/checkbox/checkbox.d.ts +0 -6
- package/dist/types/packages/components/src/checkbox/checkbox.meta.d.ts +0 -2
- package/dist/types/packages/components/src/checkbox-card/checkbox-card.d.ts +0 -8
- package/dist/types/packages/components/src/checkbox-card/checkbox-card.meta.d.ts +0 -2
- package/dist/types/packages/components/src/checkbox-card/index.d.ts +0 -2
- package/dist/types/packages/components/src/code/code.d.ts +0 -5
- package/dist/types/packages/components/src/code/code.meta.d.ts +0 -2
- package/dist/types/packages/components/src/code-snippet/code-snippet.d.ts +0 -21
- package/dist/types/packages/components/src/code-snippet/code-snippet.meta.d.ts +0 -2
- package/dist/types/packages/components/src/collapsible/collapsible.d.ts +0 -16
- package/dist/types/packages/components/src/collapsible/collapsible.meta.d.ts +0 -2
- package/dist/types/packages/components/src/color-picker/color-picker.d.ts +0 -19
- package/dist/types/packages/components/src/color-picker/color-picker.meta.d.ts +0 -2
- package/dist/types/packages/components/src/combobox/combobox.d.ts +0 -27
- package/dist/types/packages/components/src/combobox/combobox.meta.d.ts +0 -2
- package/dist/types/packages/components/src/command-menu/command-menu.d.ts +0 -39
- package/dist/types/packages/components/src/command-menu/command-menu.meta.d.ts +0 -2
- package/dist/types/packages/components/src/contained-list/contained-list.d.ts +0 -11
- package/dist/types/packages/components/src/contained-list/contained-list.meta.d.ts +0 -2
- package/dist/types/packages/components/src/context-menu/context-menu.d.ts +0 -11
- package/dist/types/packages/components/src/context-menu/context-menu.meta.d.ts +0 -2
- package/dist/types/packages/components/src/copy-button/copy-button.d.ts +0 -11
- package/dist/types/packages/components/src/copy-button/copy-button.meta.d.ts +0 -2
- package/dist/types/packages/components/src/data-list/data-list.d.ts +0 -13
- package/dist/types/packages/components/src/data-list/data-list.meta.d.ts +0 -2
- package/dist/types/packages/components/src/data-table/data-table.d.ts +0 -60
- package/dist/types/packages/components/src/data-table/data-table.meta.d.ts +0 -2
- package/dist/types/packages/components/src/date-picker/date-picker.d.ts +0 -23
- package/dist/types/packages/components/src/date-picker/date-picker.meta.d.ts +0 -2
- package/dist/types/packages/components/src/date-range-picker/date-range-picker.d.ts +0 -32
- package/dist/types/packages/components/src/date-range-picker/date-range-picker.meta.d.ts +0 -2
- package/dist/types/packages/components/src/dock/dock.d.ts +0 -12
- package/dist/types/packages/components/src/dock/dock.meta.d.ts +0 -2
- package/dist/types/packages/components/src/drawer/drawer.d.ts +0 -29
- package/dist/types/packages/components/src/drawer/drawer.meta.d.ts +0 -2
- package/dist/types/packages/components/src/dropdown/dropdown.d.ts +0 -17
- package/dist/types/packages/components/src/dropdown/dropdown.meta.d.ts +0 -2
- package/dist/types/packages/components/src/editable/editable.d.ts +0 -10
- package/dist/types/packages/components/src/editable/editable.meta.d.ts +0 -2
- package/dist/types/packages/components/src/empty-state/empty-state.d.ts +0 -9
- package/dist/types/packages/components/src/empty-state/empty-state.meta.d.ts +0 -2
- package/dist/types/packages/components/src/field/field.d.ts +0 -24
- package/dist/types/packages/components/src/field/field.meta.d.ts +0 -2
- package/dist/types/packages/components/src/file-uploader/file-uploader.d.ts +0 -30
- package/dist/types/packages/components/src/file-uploader/file-uploader.meta.d.ts +0 -2
- package/dist/types/packages/components/src/filter/filter.d.ts +0 -16
- package/dist/types/packages/components/src/filter/filter.meta.d.ts +0 -2
- package/dist/types/packages/components/src/form/form.d.ts +0 -37
- package/dist/types/packages/components/src/form/form.meta.d.ts +0 -2
- package/dist/types/packages/components/src/form/standard-schema.d.ts +0 -24
- package/dist/types/packages/components/src/header/header.d.ts +0 -17
- package/dist/types/packages/components/src/header/header.meta.d.ts +0 -2
- package/dist/types/packages/components/src/header-panel/header-panel.d.ts +0 -13
- package/dist/types/packages/components/src/header-panel/header-panel.meta.d.ts +0 -2
- package/dist/types/packages/components/src/header-panel/index.d.ts +0 -2
- package/dist/types/packages/components/src/heading/heading.d.ts +0 -8
- package/dist/types/packages/components/src/heading/heading.meta.d.ts +0 -2
- package/dist/types/packages/components/src/hover-card/hover-card.d.ts +0 -16
- package/dist/types/packages/components/src/hover-card/hover-card.meta.d.ts +0 -2
- package/dist/types/packages/components/src/icon-button/icon-button.d.ts +0 -12
- package/dist/types/packages/components/src/icon-button/icon-button.meta.d.ts +0 -2
- package/dist/types/packages/components/src/indicator/indicator.d.ts +0 -8
- package/dist/types/packages/components/src/indicator/indicator.meta.d.ts +0 -2
- package/dist/types/packages/components/src/inline-loading/inline-loading.d.ts +0 -12
- package/dist/types/packages/components/src/inline-loading/inline-loading.meta.d.ts +0 -2
- package/dist/types/packages/components/src/input/input.d.ts +0 -8
- package/dist/types/packages/components/src/input/input.meta.d.ts +0 -2
- package/dist/types/packages/components/src/input-group/input-group.d.ts +0 -18
- package/dist/types/packages/components/src/input-group/input-group.meta.d.ts +0 -2
- package/dist/types/packages/components/src/item/item.d.ts +0 -22
- package/dist/types/packages/components/src/item/item.meta.d.ts +0 -2
- package/dist/types/packages/components/src/join/join.d.ts +0 -7
- package/dist/types/packages/components/src/join/join.meta.d.ts +0 -2
- package/dist/types/packages/components/src/kbd/kbd.d.ts +0 -5
- package/dist/types/packages/components/src/kbd/kbd.meta.d.ts +0 -2
- package/dist/types/packages/components/src/label/label.d.ts +0 -15
- package/dist/types/packages/components/src/label/label.meta.d.ts +0 -2
- package/dist/types/packages/components/src/link/link.d.ts +0 -7
- package/dist/types/packages/components/src/link/link.meta.d.ts +0 -2
- package/dist/types/packages/components/src/list/list.d.ts +0 -8
- package/dist/types/packages/components/src/list/list.meta.d.ts +0 -2
- package/dist/types/packages/components/src/menu/menu.d.ts +0 -17
- package/dist/types/packages/components/src/menu/menu.meta.d.ts +0 -2
- package/dist/types/packages/components/src/menu-button/menu-button.d.ts +0 -20
- package/dist/types/packages/components/src/menu-button/menu-button.meta.d.ts +0 -2
- package/dist/types/packages/components/src/menubar/menubar.d.ts +0 -18
- package/dist/types/packages/components/src/menubar/menubar.meta.d.ts +0 -2
- package/dist/types/packages/components/src/modal/modal.d.ts +0 -11
- package/dist/types/packages/components/src/modal/modal.meta.d.ts +0 -2
- package/dist/types/packages/components/src/multi-select/multi-select.d.ts +0 -21
- package/dist/types/packages/components/src/multi-select/multi-select.meta.d.ts +0 -2
- package/dist/types/packages/components/src/native-select/native-select.d.ts +0 -23
- package/dist/types/packages/components/src/native-select/native-select.meta.d.ts +0 -2
- package/dist/types/packages/components/src/navigation-menu/navigation-menu.d.ts +0 -15
- package/dist/types/packages/components/src/navigation-menu/navigation-menu.meta.d.ts +0 -2
- package/dist/types/packages/components/src/notification/notification.d.ts +0 -15
- package/dist/types/packages/components/src/notification/notification.meta.d.ts +0 -2
- package/dist/types/packages/components/src/number-input/number-input.d.ts +0 -18
- package/dist/types/packages/components/src/number-input/number-input.meta.d.ts +0 -2
- package/dist/types/packages/components/src/otp-input/otp-input.d.ts +0 -9
- package/dist/types/packages/components/src/otp-input/otp-input.meta.d.ts +0 -2
- package/dist/types/packages/components/src/overflow-menu/overflow-menu.d.ts +0 -18
- package/dist/types/packages/components/src/overflow-menu/overflow-menu.meta.d.ts +0 -2
- package/dist/types/packages/components/src/pagination/pagination.d.ts +0 -19
- package/dist/types/packages/components/src/pagination/pagination.meta.d.ts +0 -2
- package/dist/types/packages/components/src/password-input/password-input.d.ts +0 -12
- package/dist/types/packages/components/src/password-input/password-input.meta.d.ts +0 -2
- package/dist/types/packages/components/src/popover/index.d.ts +0 -4
- package/dist/types/packages/components/src/popover/popover.d.ts +0 -16
- package/dist/types/packages/components/src/popover/popover.meta.d.ts +0 -2
- package/dist/types/packages/components/src/popover/use-popover.d.ts +0 -17
- package/dist/types/packages/components/src/progress/progress.d.ts +0 -12
- package/dist/types/packages/components/src/progress/progress.meta.d.ts +0 -2
- package/dist/types/packages/components/src/progress-bar/progress-bar.d.ts +0 -11
- package/dist/types/packages/components/src/progress-bar/progress-bar.meta.d.ts +0 -2
- package/dist/types/packages/components/src/progress-circle/progress-circle.d.ts +0 -12
- package/dist/types/packages/components/src/progress-circle/progress-circle.meta.d.ts +0 -2
- package/dist/types/packages/components/src/progress-indicator/progress-indicator.d.ts +0 -11
- package/dist/types/packages/components/src/progress-indicator/progress-indicator.meta.d.ts +0 -2
- package/dist/types/packages/components/src/prose/prose.d.ts +0 -3
- package/dist/types/packages/components/src/prose/prose.meta.d.ts +0 -2
- package/dist/types/packages/components/src/radial-progress/radial-progress.d.ts +0 -11
- package/dist/types/packages/components/src/radial-progress/radial-progress.meta.d.ts +0 -2
- package/dist/types/packages/components/src/radio/radio.d.ts +0 -16
- package/dist/types/packages/components/src/radio/radio.meta.d.ts +0 -2
- package/dist/types/packages/components/src/radio-card/index.d.ts +0 -2
- package/dist/types/packages/components/src/radio-card/radio-card.d.ts +0 -19
- package/dist/types/packages/components/src/radio-card/radio-card.meta.d.ts +0 -2
- package/dist/types/packages/components/src/rating-group/rating-group.d.ts +0 -14
- package/dist/types/packages/components/src/rating-group/rating-group.meta.d.ts +0 -2
- package/dist/types/packages/components/src/resizable/resizable.d.ts +0 -13
- package/dist/types/packages/components/src/resizable/resizable.meta.d.ts +0 -2
- package/dist/types/packages/components/src/scroll-area/scroll-area.d.ts +0 -11
- package/dist/types/packages/components/src/scroll-area/scroll-area.meta.d.ts +0 -2
- package/dist/types/packages/components/src/search/search.d.ts +0 -15
- package/dist/types/packages/components/src/search/search.meta.d.ts +0 -2
- package/dist/types/packages/components/src/segmented-control/segmented-control.d.ts +0 -14
- package/dist/types/packages/components/src/segmented-control/segmented-control.meta.d.ts +0 -2
- package/dist/types/packages/components/src/select/select.d.ts +0 -15
- package/dist/types/packages/components/src/select/select.meta.d.ts +0 -2
- package/dist/types/packages/components/src/separator/separator.d.ts +0 -6
- package/dist/types/packages/components/src/separator/separator.meta.d.ts +0 -2
- package/dist/types/packages/components/src/sheet/sheet.d.ts +0 -9
- package/dist/types/packages/components/src/sheet/sheet.meta.d.ts +0 -2
- package/dist/types/packages/components/src/shell-header/index.d.ts +0 -2
- package/dist/types/packages/components/src/shell-header/shell-header.d.ts +0 -46
- package/dist/types/packages/components/src/shell-header/shell-header.meta.d.ts +0 -2
- package/dist/types/packages/components/src/side-nav/side-nav.d.ts +0 -33
- package/dist/types/packages/components/src/side-nav/side-nav.meta.d.ts +0 -2
- package/dist/types/packages/components/src/skeleton/skeleton.d.ts +0 -8
- package/dist/types/packages/components/src/skeleton/skeleton.meta.d.ts +0 -2
- package/dist/types/packages/components/src/skip-nav/skip-nav.d.ts +0 -14
- package/dist/types/packages/components/src/skip-nav/skip-nav.meta.d.ts +0 -2
- package/dist/types/packages/components/src/slider/slider.d.ts +0 -5
- package/dist/types/packages/components/src/slider/slider.meta.d.ts +0 -2
- package/dist/types/packages/components/src/spinner/spinner.d.ts +0 -6
- package/dist/types/packages/components/src/spinner/spinner.meta.d.ts +0 -2
- package/dist/types/packages/components/src/stack/stack.d.ts +0 -6
- package/dist/types/packages/components/src/stack/stack.meta.d.ts +0 -2
- package/dist/types/packages/components/src/stat/stat.d.ts +0 -9
- package/dist/types/packages/components/src/stat/stat.meta.d.ts +0 -2
- package/dist/types/packages/components/src/status/status.d.ts +0 -7
- package/dist/types/packages/components/src/status/status.meta.d.ts +0 -2
- package/dist/types/packages/components/src/steps/steps.d.ts +0 -12
- package/dist/types/packages/components/src/steps/steps.meta.d.ts +0 -2
- package/dist/types/packages/components/src/structured-list/structured-list.d.ts +0 -17
- package/dist/types/packages/components/src/structured-list/structured-list.meta.d.ts +0 -2
- package/dist/types/packages/components/src/swap/swap.d.ts +0 -11
- package/dist/types/packages/components/src/swap/swap.meta.d.ts +0 -2
- package/dist/types/packages/components/src/switcher/index.d.ts +0 -2
- package/dist/types/packages/components/src/switcher/switcher.d.ts +0 -16
- package/dist/types/packages/components/src/switcher/switcher.meta.d.ts +0 -2
- package/dist/types/packages/components/src/tabs/tabs.d.ts +0 -19
- package/dist/types/packages/components/src/tabs/tabs.meta.d.ts +0 -2
- package/dist/types/packages/components/src/tag/tag.d.ts +0 -8
- package/dist/types/packages/components/src/tag/tag.meta.d.ts +0 -2
- package/dist/types/packages/components/src/tags-input/tags-input.d.ts +0 -10
- package/dist/types/packages/components/src/tags-input/tags-input.meta.d.ts +0 -2
- package/dist/types/packages/components/src/text/text.d.ts +0 -8
- package/dist/types/packages/components/src/text/text.meta.d.ts +0 -2
- package/dist/types/packages/components/src/textarea/textarea.d.ts +0 -8
- package/dist/types/packages/components/src/textarea/textarea.meta.d.ts +0 -2
- package/dist/types/packages/components/src/tile/tile.d.ts +0 -25
- package/dist/types/packages/components/src/tile/tile.meta.d.ts +0 -2
- package/dist/types/packages/components/src/time-picker/time-picker.d.ts +0 -14
- package/dist/types/packages/components/src/time-picker/time-picker.meta.d.ts +0 -2
- package/dist/types/packages/components/src/timeline/timeline.d.ts +0 -14
- package/dist/types/packages/components/src/timeline/timeline.meta.d.ts +0 -2
- package/dist/types/packages/components/src/toast/toast.d.ts +0 -17
- package/dist/types/packages/components/src/toast/toast.meta.d.ts +0 -2
- package/dist/types/packages/components/src/toggle/toggle.d.ts +0 -9
- package/dist/types/packages/components/src/toggle/toggle.meta.d.ts +0 -2
- package/dist/types/packages/components/src/toggle-group/toggle-group.d.ts +0 -18
- package/dist/types/packages/components/src/toggle-group/toggle-group.meta.d.ts +0 -2
- package/dist/types/packages/components/src/toggletip/toggletip.d.ts +0 -17
- package/dist/types/packages/components/src/toggletip/toggletip.meta.d.ts +0 -2
- package/dist/types/packages/components/src/tooltip/tooltip.d.ts +0 -8
- package/dist/types/packages/components/src/tooltip/tooltip.meta.d.ts +0 -2
- package/dist/types/packages/components/src/tree-view/tree-view.d.ts +0 -25
- package/dist/types/packages/components/src/tree-view/tree-view.meta.d.ts +0 -2
- package/dist/types/packages/components/src/visually-hidden/visually-hidden.d.ts +0 -5
- package/dist/types/packages/components/src/visually-hidden/visually-hidden.meta.d.ts +0 -2
- package/dist/types/packages/react/src/index.d.ts +0 -122
- package/dist/types/packages/react/src/setup.d.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,2826 @@
|
|
|
1
|
-
|
|
1
|
+
import { ErrorBoundary, FocusScope, Portal, RovingOrientation, Signal, SuspenseBoundary } from "@cascivo/core";
|
|
2
|
+
import { AnchorHTMLAttributes, ButtonHTMLAttributes, FormHTMLAttributes, HTMLAttributes, ImgHTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, LiHTMLAttributes, MouseEvent, ReactElement, ReactNode, RefObject, SelectHTMLAttributes, TextareaHTMLAttributes, TimeHTMLAttributes } from "react";
|
|
3
|
+
|
|
4
|
+
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'destructive';
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function Button({
|
|
10
|
+
variant,
|
|
11
|
+
size,
|
|
12
|
+
loading,
|
|
13
|
+
className,
|
|
14
|
+
disabled,
|
|
15
|
+
children,
|
|
16
|
+
...props
|
|
17
|
+
}: ButtonProps): import("react").JSX.Element;
|
|
18
|
+
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
19
|
+
label?: string;
|
|
20
|
+
hint?: string;
|
|
21
|
+
error?: string;
|
|
22
|
+
size?: 'sm' | 'md' | 'lg';
|
|
23
|
+
}
|
|
24
|
+
declare function Input({
|
|
25
|
+
label,
|
|
26
|
+
hint,
|
|
27
|
+
error,
|
|
28
|
+
size,
|
|
29
|
+
className,
|
|
30
|
+
id,
|
|
31
|
+
onFocus,
|
|
32
|
+
onBlur,
|
|
33
|
+
...props
|
|
34
|
+
}: InputProps): import("react").JSX.Element;
|
|
35
|
+
interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
36
|
+
variant?: 'default' | 'outlined' | 'elevated';
|
|
37
|
+
padding?: 'none' | 'sm' | 'md' | 'lg';
|
|
38
|
+
}
|
|
39
|
+
declare function Card({
|
|
40
|
+
variant,
|
|
41
|
+
padding,
|
|
42
|
+
className,
|
|
43
|
+
children,
|
|
44
|
+
...props
|
|
45
|
+
}: CardProps): import("react").JSX.Element;
|
|
46
|
+
interface CardHeaderProps extends HTMLAttributes<HTMLDivElement> {}
|
|
47
|
+
declare function CardHeader({
|
|
48
|
+
className,
|
|
49
|
+
children,
|
|
50
|
+
...props
|
|
51
|
+
}: CardHeaderProps): import("react").JSX.Element;
|
|
52
|
+
interface CardTitleProps extends HTMLAttributes<HTMLHeadingElement> {}
|
|
53
|
+
declare function CardTitle({
|
|
54
|
+
className,
|
|
55
|
+
children,
|
|
56
|
+
...props
|
|
57
|
+
}: CardTitleProps): import("react").JSX.Element;
|
|
58
|
+
interface CardContentProps extends HTMLAttributes<HTMLDivElement> {}
|
|
59
|
+
declare function CardContent({
|
|
60
|
+
className,
|
|
61
|
+
children,
|
|
62
|
+
...props
|
|
63
|
+
}: CardContentProps): import("react").JSX.Element;
|
|
64
|
+
interface CardFooterProps extends HTMLAttributes<HTMLDivElement> {}
|
|
65
|
+
declare function CardFooter({
|
|
66
|
+
className,
|
|
67
|
+
children,
|
|
68
|
+
...props
|
|
69
|
+
}: CardFooterProps): import("react").JSX.Element;
|
|
70
|
+
interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
71
|
+
variant?: 'default' | 'secondary' | 'success' | 'warning' | 'destructive' | 'outline';
|
|
72
|
+
size?: 'sm' | 'md';
|
|
73
|
+
}
|
|
74
|
+
declare function Badge({
|
|
75
|
+
variant,
|
|
76
|
+
size,
|
|
77
|
+
className,
|
|
78
|
+
children,
|
|
79
|
+
...props
|
|
80
|
+
}: BadgeProps): import("react").JSX.Element;
|
|
81
|
+
interface ModalProps {
|
|
82
|
+
open?: boolean;
|
|
83
|
+
onClose?: () => void;
|
|
84
|
+
title?: string;
|
|
85
|
+
description?: string;
|
|
86
|
+
children?: ReactNode;
|
|
87
|
+
className?: string;
|
|
88
|
+
size?: 'sm' | 'md' | 'lg';
|
|
89
|
+
/** Allow dragging the dialog by its header (opt-in; CSS translate, no animation library). */
|
|
90
|
+
draggable?: boolean;
|
|
91
|
+
}
|
|
92
|
+
declare function Modal({
|
|
93
|
+
open,
|
|
94
|
+
onClose,
|
|
95
|
+
title,
|
|
96
|
+
description,
|
|
97
|
+
children,
|
|
98
|
+
className,
|
|
99
|
+
size,
|
|
100
|
+
draggable
|
|
101
|
+
}: ModalProps): import("react").JSX.Element;
|
|
102
|
+
interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
103
|
+
size?: 'sm' | 'md' | 'lg';
|
|
104
|
+
label?: string;
|
|
105
|
+
}
|
|
106
|
+
declare function Spinner({
|
|
107
|
+
size,
|
|
108
|
+
label,
|
|
109
|
+
className,
|
|
110
|
+
...props
|
|
111
|
+
}: SpinnerProps): import("react").JSX.Element;
|
|
112
|
+
interface SeparatorProps extends HTMLAttributes<HTMLElement> {
|
|
113
|
+
orientation?: 'horizontal' | 'vertical';
|
|
114
|
+
decorative?: boolean;
|
|
115
|
+
}
|
|
116
|
+
declare function Separator({
|
|
117
|
+
orientation,
|
|
118
|
+
decorative,
|
|
119
|
+
className,
|
|
120
|
+
...props
|
|
121
|
+
}: SeparatorProps): import("react").JSX.Element;
|
|
122
|
+
interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
123
|
+
variant?: 'default' | 'info' | 'success' | 'warning' | 'destructive';
|
|
124
|
+
title?: string;
|
|
125
|
+
icon?: ReactNode;
|
|
126
|
+
dismissible?: boolean;
|
|
127
|
+
onDismiss?: () => void;
|
|
128
|
+
action?: {
|
|
129
|
+
label: string;
|
|
130
|
+
onClick: () => void;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
declare function Alert({
|
|
134
|
+
variant,
|
|
135
|
+
title,
|
|
136
|
+
icon,
|
|
137
|
+
dismissible,
|
|
138
|
+
onDismiss,
|
|
139
|
+
action,
|
|
140
|
+
className,
|
|
141
|
+
children,
|
|
142
|
+
...props
|
|
143
|
+
}: AlertProps): import("react").JSX.Element | null;
|
|
144
|
+
interface AvatarProps extends HTMLAttributes<HTMLSpanElement> {
|
|
145
|
+
src?: string;
|
|
146
|
+
alt?: string;
|
|
147
|
+
fallback?: string;
|
|
148
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
149
|
+
status?: 'online' | 'offline' | 'busy';
|
|
150
|
+
}
|
|
151
|
+
declare function Avatar({
|
|
152
|
+
src,
|
|
153
|
+
alt,
|
|
154
|
+
fallback,
|
|
155
|
+
size,
|
|
156
|
+
status,
|
|
157
|
+
className,
|
|
158
|
+
...props
|
|
159
|
+
}: AvatarProps): import("react").JSX.Element;
|
|
160
|
+
interface AvatarGroupLabels {
|
|
161
|
+
/** Accessible label for the +N overflow chip. */
|
|
162
|
+
more?: (count: number) => string;
|
|
163
|
+
}
|
|
164
|
+
interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
165
|
+
/** Cap the number of visible avatars; the rest collapse into a +N chip. */
|
|
166
|
+
max?: number;
|
|
167
|
+
/** Override the total count used for the +N chip (when more exist than rendered). */
|
|
168
|
+
total?: number;
|
|
169
|
+
/** Overlap amount. */
|
|
170
|
+
spacing?: 'sm' | 'md' | 'lg';
|
|
171
|
+
/** Wrap into a grid instead of an overlapping row. */
|
|
172
|
+
isGrid?: boolean;
|
|
173
|
+
labels?: AvatarGroupLabels;
|
|
174
|
+
/** The <Avatar> children. */
|
|
175
|
+
children?: ReactNode;
|
|
176
|
+
}
|
|
177
|
+
/** Overlapping stack of avatars with a `max` cap and an i18n-labelled +N overflow chip. */
|
|
178
|
+
declare function AvatarGroup({
|
|
179
|
+
max,
|
|
180
|
+
total,
|
|
181
|
+
spacing,
|
|
182
|
+
isGrid,
|
|
183
|
+
labels,
|
|
184
|
+
className,
|
|
185
|
+
children,
|
|
186
|
+
...rest
|
|
187
|
+
}: AvatarGroupProps): import("react").JSX.Element;
|
|
188
|
+
interface UserProps extends HTMLAttributes<HTMLDivElement> {
|
|
189
|
+
/** Primary identity label (name). */
|
|
190
|
+
name: ReactNode;
|
|
191
|
+
/** Secondary line (email, role, …). */
|
|
192
|
+
description?: ReactNode;
|
|
193
|
+
/** Forwarded to the composed <Avatar>. */
|
|
194
|
+
avatarProps?: AvatarProps;
|
|
195
|
+
/** Optional trailing action slot (e.g. a menu button). */
|
|
196
|
+
children?: ReactNode;
|
|
197
|
+
}
|
|
198
|
+
/** Identity composite: an Avatar with a name + optional description and trailing action. */
|
|
199
|
+
declare function User({
|
|
200
|
+
name,
|
|
201
|
+
description,
|
|
202
|
+
avatarProps,
|
|
203
|
+
className,
|
|
204
|
+
children,
|
|
205
|
+
...rest
|
|
206
|
+
}: UserProps): import("react").JSX.Element;
|
|
207
|
+
interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'placeholder'> {
|
|
208
|
+
src?: string;
|
|
209
|
+
alt?: string;
|
|
210
|
+
/** Image shown if `src` fails to load. Without it, a neutral fallback box renders. */
|
|
211
|
+
fallbackSrc?: string;
|
|
212
|
+
width?: string | number;
|
|
213
|
+
height?: string | number;
|
|
214
|
+
radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
215
|
+
/** Hover-zoom the image (reduced-motion-safe). */
|
|
216
|
+
zoom?: boolean;
|
|
217
|
+
/** Render a bare <img> with no wrapper, placeholder, or zoom (HeroUI parity). */
|
|
218
|
+
removeWrapper?: boolean;
|
|
219
|
+
/** Show a blurred placeholder while loading. */
|
|
220
|
+
isBlurred?: boolean;
|
|
221
|
+
}
|
|
222
|
+
declare function Image({
|
|
223
|
+
src,
|
|
224
|
+
alt,
|
|
225
|
+
fallbackSrc,
|
|
226
|
+
width,
|
|
227
|
+
height,
|
|
228
|
+
radius,
|
|
229
|
+
zoom,
|
|
230
|
+
removeWrapper,
|
|
231
|
+
isBlurred,
|
|
232
|
+
className,
|
|
233
|
+
style,
|
|
234
|
+
...rest
|
|
235
|
+
}: ImageProps): import("react").JSX.Element;
|
|
236
|
+
interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
237
|
+
label?: string;
|
|
238
|
+
hint?: string;
|
|
239
|
+
error?: string;
|
|
240
|
+
resize?: 'none' | 'vertical' | 'both';
|
|
241
|
+
}
|
|
242
|
+
declare function Textarea({
|
|
243
|
+
label,
|
|
244
|
+
hint,
|
|
245
|
+
error,
|
|
246
|
+
resize,
|
|
247
|
+
rows,
|
|
248
|
+
className,
|
|
249
|
+
id,
|
|
250
|
+
onFocus,
|
|
251
|
+
onBlur,
|
|
252
|
+
...props
|
|
253
|
+
}: TextareaProps): import("react").JSX.Element;
|
|
254
|
+
interface SelectOption {
|
|
255
|
+
value: string;
|
|
256
|
+
label: string;
|
|
257
|
+
disabled?: boolean;
|
|
258
|
+
}
|
|
259
|
+
interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
260
|
+
label?: string;
|
|
261
|
+
hint?: string;
|
|
262
|
+
error?: string;
|
|
263
|
+
placeholder?: string;
|
|
264
|
+
options: SelectOption[];
|
|
265
|
+
size?: 'sm' | 'md' | 'lg';
|
|
266
|
+
}
|
|
267
|
+
declare function Select({
|
|
268
|
+
label,
|
|
269
|
+
hint,
|
|
270
|
+
error,
|
|
271
|
+
placeholder,
|
|
272
|
+
options,
|
|
273
|
+
size,
|
|
274
|
+
className,
|
|
275
|
+
id,
|
|
276
|
+
defaultValue,
|
|
277
|
+
value,
|
|
278
|
+
onFocus,
|
|
279
|
+
onBlur,
|
|
280
|
+
...props
|
|
281
|
+
}: SelectProps): import("react").JSX.Element;
|
|
282
|
+
interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
283
|
+
label?: string;
|
|
284
|
+
indeterminate?: boolean;
|
|
285
|
+
}
|
|
286
|
+
declare function Checkbox({
|
|
287
|
+
label,
|
|
288
|
+
indeterminate,
|
|
289
|
+
className,
|
|
290
|
+
id,
|
|
291
|
+
disabled,
|
|
292
|
+
...props
|
|
293
|
+
}: CheckboxProps): import("react").JSX.Element;
|
|
294
|
+
interface RadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
295
|
+
label?: string;
|
|
296
|
+
value: string;
|
|
297
|
+
}
|
|
298
|
+
declare function Radio({
|
|
299
|
+
label,
|
|
300
|
+
className,
|
|
301
|
+
id,
|
|
302
|
+
disabled,
|
|
303
|
+
value,
|
|
304
|
+
...props
|
|
305
|
+
}: RadioProps): import("react").JSX.Element;
|
|
306
|
+
interface RadioGroupProps {
|
|
307
|
+
name: string;
|
|
308
|
+
value?: string;
|
|
309
|
+
defaultValue?: string;
|
|
310
|
+
onChange?: (value: string) => void;
|
|
311
|
+
orientation?: 'horizontal' | 'vertical';
|
|
312
|
+
className?: string;
|
|
313
|
+
children: ReactNode;
|
|
314
|
+
}
|
|
315
|
+
declare function RadioGroup({
|
|
316
|
+
name,
|
|
317
|
+
value,
|
|
318
|
+
defaultValue,
|
|
319
|
+
onChange,
|
|
320
|
+
orientation,
|
|
321
|
+
className,
|
|
322
|
+
children
|
|
323
|
+
}: RadioGroupProps): import("react").JSX.Element;
|
|
324
|
+
interface ToggleProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
|
|
325
|
+
checked?: boolean;
|
|
326
|
+
defaultChecked?: boolean;
|
|
327
|
+
onChange?: (checked: boolean) => void;
|
|
328
|
+
label?: string;
|
|
329
|
+
size?: 'sm' | 'md';
|
|
330
|
+
}
|
|
331
|
+
declare function Toggle({
|
|
332
|
+
checked,
|
|
333
|
+
defaultChecked,
|
|
334
|
+
onChange,
|
|
335
|
+
label,
|
|
336
|
+
size,
|
|
337
|
+
className,
|
|
338
|
+
disabled,
|
|
339
|
+
...props
|
|
340
|
+
}: ToggleProps): import("react").JSX.Element;
|
|
341
|
+
interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
342
|
+
label?: string;
|
|
343
|
+
}
|
|
344
|
+
declare function Slider({
|
|
345
|
+
label,
|
|
346
|
+
className,
|
|
347
|
+
id,
|
|
348
|
+
min,
|
|
349
|
+
max,
|
|
350
|
+
step,
|
|
351
|
+
disabled,
|
|
352
|
+
...props
|
|
353
|
+
}: SliderProps): import("react").JSX.Element;
|
|
354
|
+
interface TooltipProps {
|
|
355
|
+
content: ReactNode;
|
|
356
|
+
placement?: 'top' | 'right' | 'bottom' | 'left';
|
|
357
|
+
children: ReactElement;
|
|
358
|
+
delay?: number;
|
|
359
|
+
}
|
|
360
|
+
declare function Tooltip({
|
|
361
|
+
content,
|
|
362
|
+
placement,
|
|
363
|
+
children,
|
|
364
|
+
delay
|
|
365
|
+
}: TooltipProps): import("react").JSX.Element;
|
|
366
|
+
interface DropdownItem {
|
|
367
|
+
label: string;
|
|
368
|
+
value: string;
|
|
369
|
+
icon?: ReactNode;
|
|
370
|
+
disabled?: boolean;
|
|
371
|
+
separator?: boolean;
|
|
372
|
+
}
|
|
373
|
+
interface DropdownProps {
|
|
374
|
+
trigger: ReactElement;
|
|
375
|
+
items: DropdownItem[];
|
|
376
|
+
onSelect?: (value: string) => void;
|
|
377
|
+
placement?: 'bottom-start' | 'bottom-end';
|
|
378
|
+
open?: boolean;
|
|
379
|
+
onOpenChange?: (open: boolean) => void;
|
|
380
|
+
}
|
|
381
|
+
declare function Dropdown({
|
|
382
|
+
trigger,
|
|
383
|
+
items,
|
|
384
|
+
onSelect,
|
|
385
|
+
placement,
|
|
386
|
+
open,
|
|
387
|
+
onOpenChange
|
|
388
|
+
}: DropdownProps): import("react").JSX.Element;
|
|
389
|
+
type ToastVariant = 'default' | 'success' | 'warning' | 'destructive';
|
|
390
|
+
interface ToastOptions {
|
|
391
|
+
title: string;
|
|
392
|
+
description?: string;
|
|
393
|
+
variant?: ToastVariant;
|
|
394
|
+
duration?: number;
|
|
395
|
+
}
|
|
396
|
+
declare function enqueue(options: ToastOptions): void;
|
|
397
|
+
declare function ToastProvider({
|
|
398
|
+
children
|
|
399
|
+
}: {
|
|
400
|
+
children: ReactNode;
|
|
401
|
+
}): import("react").JSX.Element;
|
|
402
|
+
declare function useToast(): {
|
|
403
|
+
toast: typeof enqueue;
|
|
404
|
+
};
|
|
405
|
+
declare function dismissAllToasts(): void;
|
|
406
|
+
interface TabsProps {
|
|
407
|
+
defaultValue?: string;
|
|
408
|
+
value?: string;
|
|
409
|
+
onValueChange?: (value: string) => void;
|
|
410
|
+
className?: string;
|
|
411
|
+
children: ReactNode;
|
|
412
|
+
}
|
|
413
|
+
declare function Tabs({
|
|
414
|
+
defaultValue,
|
|
415
|
+
value,
|
|
416
|
+
onValueChange,
|
|
417
|
+
className,
|
|
418
|
+
children
|
|
419
|
+
}: TabsProps): import("react").JSX.Element;
|
|
420
|
+
declare function TabsList({
|
|
421
|
+
className,
|
|
422
|
+
children,
|
|
423
|
+
...props
|
|
424
|
+
}: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
425
|
+
interface TabsTriggerProps extends HTMLAttributes<HTMLButtonElement> {
|
|
426
|
+
value: string;
|
|
427
|
+
disabled?: boolean;
|
|
428
|
+
}
|
|
429
|
+
declare function TabsTrigger(props: TabsTriggerProps): import("react").JSX.Element;
|
|
430
|
+
interface TabsContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
431
|
+
value: string;
|
|
432
|
+
}
|
|
433
|
+
declare function TabsContent(props: TabsContentProps): import("react").JSX.Element;
|
|
434
|
+
interface AccordionProps {
|
|
435
|
+
type?: 'single' | 'multiple';
|
|
436
|
+
defaultValue?: string | string[];
|
|
437
|
+
value?: string | string[];
|
|
438
|
+
onValueChange?: (value: string | string[]) => void;
|
|
439
|
+
className?: string;
|
|
440
|
+
children: ReactNode;
|
|
441
|
+
}
|
|
442
|
+
declare function Accordion({
|
|
443
|
+
type,
|
|
444
|
+
defaultValue,
|
|
445
|
+
value,
|
|
446
|
+
onValueChange,
|
|
447
|
+
className,
|
|
448
|
+
children
|
|
449
|
+
}: AccordionProps): import("react").JSX.Element;
|
|
450
|
+
interface AccordionItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
451
|
+
value: string;
|
|
452
|
+
}
|
|
453
|
+
declare function AccordionItem({
|
|
454
|
+
value,
|
|
455
|
+
className,
|
|
456
|
+
children,
|
|
457
|
+
...props
|
|
458
|
+
}: AccordionItemProps): import("react").JSX.Element;
|
|
459
|
+
declare function AccordionTrigger(props: HTMLAttributes<HTMLButtonElement>): import("react").JSX.Element;
|
|
460
|
+
declare function AccordionContent(props: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
461
|
+
interface KbdProps extends HTMLAttributes<HTMLElement> {
|
|
462
|
+
size?: 'sm' | 'md';
|
|
463
|
+
}
|
|
464
|
+
declare function Kbd({
|
|
465
|
+
size,
|
|
466
|
+
className,
|
|
467
|
+
children,
|
|
468
|
+
...props
|
|
469
|
+
}: KbdProps): import("react").JSX.Element;
|
|
470
|
+
interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
471
|
+
variant?: 'standalone' | 'inline';
|
|
472
|
+
size?: 'sm' | 'md' | 'lg';
|
|
473
|
+
external?: boolean;
|
|
474
|
+
}
|
|
475
|
+
declare function Link({
|
|
476
|
+
variant,
|
|
477
|
+
size,
|
|
478
|
+
external,
|
|
479
|
+
className,
|
|
480
|
+
children,
|
|
481
|
+
...props
|
|
482
|
+
}: LinkProps): import("react").JSX.Element;
|
|
483
|
+
interface BreadcrumbItem {
|
|
484
|
+
label: string;
|
|
485
|
+
href?: string;
|
|
486
|
+
}
|
|
487
|
+
interface BreadcrumbProps {
|
|
488
|
+
items: BreadcrumbItem[];
|
|
489
|
+
maxVisible?: number;
|
|
490
|
+
className?: string;
|
|
491
|
+
/** Accessible label for the nav landmark */
|
|
492
|
+
ariaLabel?: string;
|
|
493
|
+
}
|
|
494
|
+
declare function Breadcrumb({
|
|
495
|
+
items,
|
|
496
|
+
maxVisible,
|
|
497
|
+
className,
|
|
498
|
+
ariaLabel
|
|
499
|
+
}: BreadcrumbProps): import("react").JSX.Element;
|
|
500
|
+
interface TocItem {
|
|
501
|
+
/** id of the heading/section this entry links to (without the leading `#`) */
|
|
502
|
+
id: string;
|
|
503
|
+
label: string;
|
|
504
|
+
/** heading level (2 = h2, 3 = h3 …); drives indentation. Defaults to 2. */
|
|
505
|
+
level?: number;
|
|
506
|
+
}
|
|
507
|
+
interface TocProps {
|
|
508
|
+
items: TocItem[];
|
|
509
|
+
/**
|
|
510
|
+
* Controlled active item id. When set, the component reflects this value and
|
|
511
|
+
* does not run its own scroll-spy. Leave undefined for built-in scroll-spy.
|
|
512
|
+
*/
|
|
513
|
+
activeId?: string;
|
|
514
|
+
onActiveChange?: (id: string) => void;
|
|
515
|
+
/** Override the built-in nav landmark label. */
|
|
516
|
+
labels?: {
|
|
517
|
+
nav?: string;
|
|
518
|
+
};
|
|
519
|
+
className?: string;
|
|
520
|
+
}
|
|
521
|
+
declare function Toc({
|
|
522
|
+
items,
|
|
523
|
+
activeId,
|
|
524
|
+
onActiveChange,
|
|
525
|
+
labels,
|
|
526
|
+
className
|
|
527
|
+
}: TocProps): import("react").JSX.Element;
|
|
528
|
+
interface UseTocFromRegionOptions {
|
|
529
|
+
/** CSS selector for the headings to collect. Defaults to `h2, h3, h4`. */
|
|
530
|
+
selector?: string;
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Opt-in convenience: derive a `TocItem[]` signal from the headings inside a
|
|
534
|
+
* container. Headings must have an `id`. Feed the result to `<Toc items={…} />`.
|
|
535
|
+
* The controlled `items` API on `Toc` remains the primary, testable surface;
|
|
536
|
+
* this helper only builds the list.
|
|
537
|
+
*/
|
|
538
|
+
declare function useTocFromRegion(ref: RefObject<HTMLElement | null>, options?: UseTocFromRegionOptions): Signal<TocItem[]>;
|
|
539
|
+
interface HeaderLink {
|
|
540
|
+
label: string;
|
|
541
|
+
href: string;
|
|
542
|
+
active?: boolean;
|
|
543
|
+
}
|
|
544
|
+
interface HeaderLabels {
|
|
545
|
+
nav?: string;
|
|
546
|
+
}
|
|
547
|
+
interface HeaderProps extends HTMLAttributes<HTMLElement> {
|
|
548
|
+
brand?: ReactNode;
|
|
549
|
+
links?: HeaderLink[];
|
|
550
|
+
actions?: ReactNode;
|
|
551
|
+
sticky?: boolean;
|
|
552
|
+
labels?: HeaderLabels;
|
|
553
|
+
}
|
|
554
|
+
declare function Header({
|
|
555
|
+
brand,
|
|
556
|
+
links,
|
|
557
|
+
actions,
|
|
558
|
+
sticky,
|
|
559
|
+
labels,
|
|
560
|
+
className,
|
|
561
|
+
...props
|
|
562
|
+
}: HeaderProps): import("react").JSX.Element;
|
|
563
|
+
interface SideNavSubItem {
|
|
564
|
+
label: string;
|
|
565
|
+
href: string;
|
|
566
|
+
active?: boolean;
|
|
567
|
+
}
|
|
568
|
+
interface SideNavItem {
|
|
569
|
+
label: string;
|
|
570
|
+
href?: string;
|
|
571
|
+
icon?: ReactNode;
|
|
572
|
+
active?: boolean;
|
|
573
|
+
items?: SideNavSubItem[];
|
|
574
|
+
onClick?: (e: MouseEvent<HTMLAnchorElement>) => void;
|
|
575
|
+
}
|
|
576
|
+
interface SideNavGroup {
|
|
577
|
+
label?: string;
|
|
578
|
+
items: SideNavItem[];
|
|
579
|
+
}
|
|
580
|
+
interface SideNavProps {
|
|
581
|
+
items?: SideNavItem[];
|
|
582
|
+
groups?: SideNavGroup[];
|
|
583
|
+
collapsed?: boolean;
|
|
584
|
+
defaultCollapsed?: boolean;
|
|
585
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
586
|
+
ariaLabel?: string;
|
|
587
|
+
collapseLabel?: string;
|
|
588
|
+
expandLabel?: string;
|
|
589
|
+
expandOnHover?: boolean;
|
|
590
|
+
showCollapseToggle?: boolean;
|
|
591
|
+
footer?: ReactNode;
|
|
592
|
+
className?: string;
|
|
593
|
+
}
|
|
594
|
+
declare function SideNav({
|
|
595
|
+
items,
|
|
596
|
+
groups,
|
|
597
|
+
collapsed,
|
|
598
|
+
defaultCollapsed,
|
|
599
|
+
onCollapsedChange,
|
|
600
|
+
ariaLabel,
|
|
601
|
+
collapseLabel,
|
|
602
|
+
expandLabel,
|
|
603
|
+
expandOnHover,
|
|
604
|
+
showCollapseToggle,
|
|
605
|
+
footer,
|
|
606
|
+
className
|
|
607
|
+
}: SideNavProps): import("react").JSX.Element;
|
|
608
|
+
interface PaginationLabels {
|
|
609
|
+
nav?: string;
|
|
610
|
+
itemsPerPage?: string;
|
|
611
|
+
pageOf?: (page: number, total: number) => string;
|
|
612
|
+
range?: (start: number, end: number, total: number) => string;
|
|
613
|
+
previous?: string;
|
|
614
|
+
next?: string;
|
|
615
|
+
}
|
|
616
|
+
interface PaginationProps {
|
|
617
|
+
page: number;
|
|
618
|
+
pageSize: number;
|
|
619
|
+
totalItems: number;
|
|
620
|
+
onPageChange: (page: number) => void;
|
|
621
|
+
onPageSizeChange?: (size: number) => void;
|
|
622
|
+
pageSizeOptions?: number[];
|
|
623
|
+
labels?: PaginationLabels;
|
|
624
|
+
className?: string;
|
|
625
|
+
}
|
|
626
|
+
declare function Pagination({
|
|
627
|
+
page,
|
|
628
|
+
pageSize,
|
|
629
|
+
totalItems,
|
|
630
|
+
onPageChange,
|
|
631
|
+
onPageSizeChange,
|
|
632
|
+
pageSizeOptions,
|
|
633
|
+
labels,
|
|
634
|
+
className
|
|
635
|
+
}: PaginationProps): import("react").JSX.Element;
|
|
636
|
+
interface ProgressStep {
|
|
637
|
+
label: string;
|
|
638
|
+
description?: string;
|
|
639
|
+
}
|
|
640
|
+
interface ProgressIndicatorProps {
|
|
641
|
+
steps: ProgressStep[];
|
|
642
|
+
currentIndex: number;
|
|
643
|
+
vertical?: boolean;
|
|
644
|
+
className?: string;
|
|
645
|
+
}
|
|
646
|
+
declare function ProgressIndicator({
|
|
647
|
+
steps,
|
|
648
|
+
currentIndex,
|
|
649
|
+
vertical,
|
|
650
|
+
className
|
|
651
|
+
}: ProgressIndicatorProps): import("react").JSX.Element;
|
|
652
|
+
interface TagProps extends HTMLAttributes<HTMLSpanElement> {
|
|
653
|
+
variant?: 'default' | 'info' | 'success' | 'warning' | 'error';
|
|
654
|
+
size?: 'sm' | 'md';
|
|
655
|
+
onDismiss?: () => void;
|
|
656
|
+
dismissLabel?: string;
|
|
657
|
+
}
|
|
658
|
+
declare function Tag$1({
|
|
659
|
+
variant,
|
|
660
|
+
size,
|
|
661
|
+
onDismiss,
|
|
662
|
+
dismissLabel,
|
|
663
|
+
className,
|
|
664
|
+
children,
|
|
665
|
+
...props
|
|
666
|
+
}: TagProps): import("react").JSX.Element;
|
|
667
|
+
interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
668
|
+
variant?: 'text' | 'circle' | 'rect';
|
|
669
|
+
width?: string;
|
|
670
|
+
height?: string;
|
|
671
|
+
lines?: number;
|
|
672
|
+
}
|
|
673
|
+
declare function Skeleton({
|
|
674
|
+
variant,
|
|
675
|
+
width,
|
|
676
|
+
height,
|
|
677
|
+
lines,
|
|
678
|
+
className,
|
|
679
|
+
style,
|
|
680
|
+
...props
|
|
681
|
+
}: SkeletonProps): import("react").JSX.Element;
|
|
682
|
+
interface ProgressBarProps {
|
|
683
|
+
/** Current value from 0 to max. Omit for an indeterminate bar. */
|
|
684
|
+
value?: number;
|
|
685
|
+
max?: number;
|
|
686
|
+
label?: string;
|
|
687
|
+
helperText?: string;
|
|
688
|
+
size?: 'sm' | 'md';
|
|
689
|
+
status?: 'active' | 'success' | 'error';
|
|
690
|
+
className?: string;
|
|
691
|
+
}
|
|
692
|
+
declare function ProgressBar({
|
|
693
|
+
value,
|
|
694
|
+
max,
|
|
695
|
+
label,
|
|
696
|
+
helperText,
|
|
697
|
+
size,
|
|
698
|
+
status,
|
|
699
|
+
className
|
|
700
|
+
}: ProgressBarProps): import("react").JSX.Element;
|
|
701
|
+
interface EmptyStateProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
702
|
+
icon?: ReactNode;
|
|
703
|
+
title: string;
|
|
704
|
+
description?: string;
|
|
705
|
+
action?: ReactNode;
|
|
706
|
+
size?: 'md' | 'lg';
|
|
707
|
+
}
|
|
708
|
+
declare function EmptyState({
|
|
709
|
+
icon,
|
|
710
|
+
title,
|
|
711
|
+
description,
|
|
712
|
+
action,
|
|
713
|
+
size,
|
|
714
|
+
className,
|
|
715
|
+
...props
|
|
716
|
+
}: EmptyStateProps): import("react").JSX.Element;
|
|
717
|
+
interface OverflowMenuItem {
|
|
718
|
+
label: string;
|
|
719
|
+
value: string;
|
|
720
|
+
icon?: ReactNode;
|
|
721
|
+
disabled?: boolean;
|
|
722
|
+
destructive?: boolean;
|
|
723
|
+
}
|
|
724
|
+
interface OverflowMenuProps {
|
|
725
|
+
items: OverflowMenuItem[];
|
|
726
|
+
onSelect?: (value: string) => void;
|
|
727
|
+
placement?: 'bottom-start' | 'bottom-end';
|
|
728
|
+
ariaLabel?: string;
|
|
729
|
+
size?: 'sm' | 'md';
|
|
730
|
+
disabled?: boolean;
|
|
731
|
+
className?: string;
|
|
732
|
+
}
|
|
733
|
+
declare function OverflowMenu({
|
|
734
|
+
items,
|
|
735
|
+
onSelect,
|
|
736
|
+
placement,
|
|
737
|
+
ariaLabel,
|
|
738
|
+
size,
|
|
739
|
+
disabled,
|
|
740
|
+
className
|
|
741
|
+
}: OverflowMenuProps): import("react").JSX.Element;
|
|
742
|
+
interface SearchProps {
|
|
743
|
+
value?: string;
|
|
744
|
+
defaultValue?: string;
|
|
745
|
+
onChange?: (value: string) => void;
|
|
746
|
+
onSearch?: (value: string) => void;
|
|
747
|
+
debounceMs?: number;
|
|
748
|
+
placeholder?: string;
|
|
749
|
+
size?: 'sm' | 'md' | 'lg';
|
|
750
|
+
label?: string;
|
|
751
|
+
disabled?: boolean;
|
|
752
|
+
clearLabel?: string;
|
|
753
|
+
id?: string;
|
|
754
|
+
className?: string;
|
|
755
|
+
}
|
|
756
|
+
declare function Search({
|
|
757
|
+
value,
|
|
758
|
+
defaultValue,
|
|
759
|
+
onChange,
|
|
760
|
+
onSearch,
|
|
761
|
+
debounceMs,
|
|
762
|
+
placeholder,
|
|
763
|
+
size,
|
|
764
|
+
label,
|
|
765
|
+
disabled,
|
|
766
|
+
clearLabel,
|
|
767
|
+
id,
|
|
768
|
+
className
|
|
769
|
+
}: SearchProps): import("react").JSX.Element;
|
|
770
|
+
interface NumberInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'value' | 'defaultValue' | 'onChange' | 'min' | 'max' | 'step'> {
|
|
771
|
+
value?: number | null;
|
|
772
|
+
defaultValue?: number;
|
|
773
|
+
onChange?: (value: number | null) => void;
|
|
774
|
+
min?: number;
|
|
775
|
+
max?: number;
|
|
776
|
+
step?: number;
|
|
777
|
+
precision?: number;
|
|
778
|
+
formatOptions?: Intl.NumberFormatOptions;
|
|
779
|
+
label?: string;
|
|
780
|
+
hint?: string;
|
|
781
|
+
error?: string;
|
|
782
|
+
size?: 'sm' | 'md' | 'lg';
|
|
783
|
+
incrementLabel?: string;
|
|
784
|
+
decrementLabel?: string;
|
|
785
|
+
}
|
|
786
|
+
declare function NumberInput({
|
|
787
|
+
value,
|
|
788
|
+
defaultValue,
|
|
789
|
+
onChange,
|
|
790
|
+
min,
|
|
791
|
+
max,
|
|
792
|
+
step,
|
|
793
|
+
precision,
|
|
794
|
+
formatOptions,
|
|
795
|
+
label,
|
|
796
|
+
hint,
|
|
797
|
+
error,
|
|
798
|
+
size,
|
|
799
|
+
disabled,
|
|
800
|
+
incrementLabel,
|
|
801
|
+
decrementLabel,
|
|
802
|
+
className,
|
|
803
|
+
id,
|
|
804
|
+
onFocus,
|
|
805
|
+
onBlur,
|
|
806
|
+
onKeyDown,
|
|
807
|
+
...props
|
|
808
|
+
}: NumberInputProps): import("react").JSX.Element;
|
|
809
|
+
interface Column<Row> {
|
|
810
|
+
key: string;
|
|
811
|
+
header: string;
|
|
812
|
+
sortable?: boolean;
|
|
813
|
+
render?: (row: Row) => ReactNode;
|
|
814
|
+
align?: 'start' | 'end';
|
|
815
|
+
width?: string;
|
|
816
|
+
}
|
|
817
|
+
type SortDirection = 'asc' | 'desc';
|
|
818
|
+
interface SortState {
|
|
819
|
+
key: string;
|
|
820
|
+
direction: SortDirection;
|
|
821
|
+
}
|
|
822
|
+
interface DataTableLabels {
|
|
823
|
+
search?: string;
|
|
824
|
+
empty?: string;
|
|
825
|
+
selectAll?: string;
|
|
826
|
+
selectRow?: string;
|
|
827
|
+
itemsSelected?: (n: number) => string;
|
|
828
|
+
expandRow?: string;
|
|
829
|
+
}
|
|
830
|
+
interface DataTableProps<Row> {
|
|
831
|
+
columns: Column<Row>[];
|
|
832
|
+
rows: Row[];
|
|
833
|
+
getRowId?: (row: Row) => string;
|
|
834
|
+
sort?: SortState;
|
|
835
|
+
defaultSort?: SortState;
|
|
836
|
+
sortMode?: 'client' | 'server';
|
|
837
|
+
onSortChange?: (sort: SortState | undefined) => void;
|
|
838
|
+
searchable?: boolean;
|
|
839
|
+
pagination?: {
|
|
840
|
+
pageSize: number;
|
|
841
|
+
pageSizeOptions?: number[];
|
|
842
|
+
};
|
|
843
|
+
selection?: {
|
|
844
|
+
mode: 'single' | 'multi';
|
|
845
|
+
selected?: string[];
|
|
846
|
+
onChange?: (ids: string[]) => void;
|
|
847
|
+
};
|
|
848
|
+
batchActions?: {
|
|
849
|
+
label: string;
|
|
850
|
+
onClick: (selectedIds: string[]) => void;
|
|
851
|
+
}[];
|
|
852
|
+
renderExpandedRow?: (row: Row) => ReactNode;
|
|
853
|
+
density?: 'compact' | 'normal' | 'relaxed';
|
|
854
|
+
zebra?: boolean;
|
|
855
|
+
stickyHeader?: boolean;
|
|
856
|
+
loading?: boolean;
|
|
857
|
+
emptyState?: ReactNode;
|
|
858
|
+
title?: string;
|
|
859
|
+
description?: string;
|
|
860
|
+
labels?: DataTableLabels;
|
|
861
|
+
className?: string;
|
|
862
|
+
virtualized?: boolean;
|
|
863
|
+
rowHeight?: number;
|
|
864
|
+
windowSize?: number;
|
|
865
|
+
overscan?: number;
|
|
866
|
+
}
|
|
867
|
+
declare function DataTable<Row>({
|
|
868
|
+
columns,
|
|
869
|
+
rows,
|
|
870
|
+
getRowId,
|
|
871
|
+
sort,
|
|
872
|
+
defaultSort,
|
|
873
|
+
sortMode,
|
|
874
|
+
onSortChange,
|
|
875
|
+
searchable,
|
|
876
|
+
pagination,
|
|
877
|
+
selection,
|
|
878
|
+
batchActions,
|
|
879
|
+
renderExpandedRow,
|
|
880
|
+
density,
|
|
881
|
+
zebra,
|
|
882
|
+
stickyHeader,
|
|
883
|
+
loading,
|
|
884
|
+
emptyState,
|
|
885
|
+
title,
|
|
886
|
+
description,
|
|
887
|
+
labels,
|
|
888
|
+
className,
|
|
889
|
+
virtualized,
|
|
890
|
+
rowHeight,
|
|
891
|
+
windowSize,
|
|
892
|
+
overscan
|
|
893
|
+
}: DataTableProps<Row>): import("react").JSX.Element;
|
|
894
|
+
interface CommandPage {
|
|
895
|
+
placeholder?: string;
|
|
896
|
+
groups: CommandGroup[];
|
|
897
|
+
}
|
|
898
|
+
interface CommandItem {
|
|
899
|
+
id: string;
|
|
900
|
+
label: string;
|
|
901
|
+
icon?: ReactNode;
|
|
902
|
+
shortcut?: string[];
|
|
903
|
+
keywords?: string[];
|
|
904
|
+
/** Exactly one of onSelect or page is required */
|
|
905
|
+
onSelect?: () => void;
|
|
906
|
+
disabled?: boolean;
|
|
907
|
+
page?: CommandPage;
|
|
908
|
+
}
|
|
909
|
+
interface CommandGroup {
|
|
910
|
+
heading?: string;
|
|
911
|
+
items: CommandItem[];
|
|
912
|
+
}
|
|
913
|
+
interface CommandMenuProps {
|
|
914
|
+
open: boolean;
|
|
915
|
+
onOpenChange: (open: boolean) => void;
|
|
916
|
+
groups: CommandGroup[];
|
|
917
|
+
placeholder?: string;
|
|
918
|
+
emptyLabel?: string;
|
|
919
|
+
hotkey?: boolean;
|
|
920
|
+
label?: string;
|
|
921
|
+
loading?: boolean;
|
|
922
|
+
onQueryChange?: (query: string) => void;
|
|
923
|
+
className?: string;
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* Fuzzy subsequence matcher. Every character of `query` must appear in order
|
|
927
|
+
* (case-insensitive) in `text`. Returns 0 for no match; higher is better.
|
|
928
|
+
* Consecutive runs and word-start matches score bonuses.
|
|
929
|
+
*/
|
|
930
|
+
declare function fuzzyScore(query: string, text: string): number;
|
|
931
|
+
declare function CommandMenu({
|
|
932
|
+
open,
|
|
933
|
+
onOpenChange,
|
|
934
|
+
groups,
|
|
935
|
+
placeholder,
|
|
936
|
+
emptyLabel,
|
|
937
|
+
hotkey,
|
|
938
|
+
label,
|
|
939
|
+
loading,
|
|
940
|
+
onQueryChange,
|
|
941
|
+
className
|
|
942
|
+
}: CommandMenuProps): import("react").JSX.Element;
|
|
943
|
+
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
944
|
+
readonly '~standard': {
|
|
945
|
+
readonly version: 1;
|
|
946
|
+
readonly vendor: string;
|
|
947
|
+
readonly validate: (value: unknown) => StandardResult<Output> | Promise<StandardResult<Output>>;
|
|
948
|
+
readonly types?: {
|
|
949
|
+
readonly input: Input;
|
|
950
|
+
readonly output: Output;
|
|
951
|
+
} | undefined;
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
type StandardResult<Output> = {
|
|
955
|
+
readonly value: Output;
|
|
956
|
+
readonly issues?: undefined;
|
|
957
|
+
} | {
|
|
958
|
+
readonly issues: ReadonlyArray<StandardIssue>;
|
|
959
|
+
};
|
|
960
|
+
interface StandardIssue {
|
|
961
|
+
readonly message: string;
|
|
962
|
+
readonly path?: ReadonlyArray<string | number | {
|
|
963
|
+
readonly key: string | number;
|
|
964
|
+
}>;
|
|
965
|
+
}
|
|
966
|
+
type Errors<T> = Partial<Record<keyof T, string>>;
|
|
967
|
+
type Touched<T> = Partial<Record<keyof T, boolean>>;
|
|
968
|
+
interface FormConfig<T extends Record<string, unknown>> {
|
|
969
|
+
initialValues: T;
|
|
970
|
+
/** Sync or async; return a (partial) field→message map. Empty map = valid. */
|
|
971
|
+
validate?: (values: T) => Errors<T> | Promise<Errors<T>>;
|
|
972
|
+
/** Standard Schema V1 compatible schema (zod, valibot, arktype, …). Runs before validate(). */
|
|
973
|
+
schema?: StandardSchemaV1;
|
|
974
|
+
}
|
|
975
|
+
interface FormStore<T extends Record<string, unknown>> {
|
|
976
|
+
values: Signal<T>;
|
|
977
|
+
errors: Signal<Errors<T>>;
|
|
978
|
+
touched: Signal<Touched<T>>;
|
|
979
|
+
submitting: Signal<boolean>;
|
|
980
|
+
field<K extends keyof T>(name: K): {
|
|
981
|
+
value: T[K];
|
|
982
|
+
onChange: (value: T[K]) => void;
|
|
983
|
+
onBlur: () => void;
|
|
984
|
+
error: string | undefined;
|
|
985
|
+
};
|
|
986
|
+
setValue<K extends keyof T>(name: K, value: T[K]): void;
|
|
987
|
+
submit(onValid: (values: T) => void | Promise<void>): Promise<void>;
|
|
988
|
+
reset(): void;
|
|
989
|
+
}
|
|
990
|
+
declare function createForm<T extends Record<string, unknown>>(config: FormConfig<T>): FormStore<T>;
|
|
991
|
+
/** Stable per-mount form store. Config is captured on first render. */
|
|
992
|
+
declare function useForm<T extends Record<string, unknown>>(config: FormConfig<T>): FormStore<T>;
|
|
993
|
+
interface FormProps<T extends Record<string, unknown>> extends Omit<FormHTMLAttributes<HTMLFormElement>, 'onSubmit'> {
|
|
994
|
+
form: FormStore<T>;
|
|
995
|
+
onValid: (values: T) => void | Promise<void>;
|
|
996
|
+
children: ReactNode;
|
|
997
|
+
}
|
|
998
|
+
declare function Form<T extends Record<string, unknown>>({
|
|
999
|
+
form,
|
|
1000
|
+
onValid,
|
|
1001
|
+
children,
|
|
1002
|
+
className,
|
|
1003
|
+
...props
|
|
1004
|
+
}: FormProps<T>): import("react").JSX.Element;
|
|
1005
|
+
interface ComboboxOption {
|
|
1006
|
+
value: string;
|
|
1007
|
+
label: string;
|
|
1008
|
+
disabled?: boolean;
|
|
1009
|
+
}
|
|
1010
|
+
interface ComboboxLabels {
|
|
1011
|
+
placeholder?: string;
|
|
1012
|
+
empty?: string;
|
|
1013
|
+
clear?: string;
|
|
1014
|
+
}
|
|
1015
|
+
interface ComboboxProps {
|
|
1016
|
+
options: ComboboxOption[];
|
|
1017
|
+
value?: string;
|
|
1018
|
+
defaultValue?: string;
|
|
1019
|
+
onChange?: (value: string | undefined) => void;
|
|
1020
|
+
clearable?: boolean;
|
|
1021
|
+
searchable?: boolean;
|
|
1022
|
+
label?: string;
|
|
1023
|
+
hint?: string;
|
|
1024
|
+
error?: string;
|
|
1025
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1026
|
+
disabled?: boolean;
|
|
1027
|
+
labels?: ComboboxLabels;
|
|
1028
|
+
className?: string;
|
|
1029
|
+
id?: string;
|
|
1030
|
+
}
|
|
1031
|
+
declare function Combobox({
|
|
1032
|
+
options,
|
|
1033
|
+
value,
|
|
1034
|
+
defaultValue,
|
|
1035
|
+
onChange,
|
|
1036
|
+
clearable,
|
|
1037
|
+
searchable,
|
|
1038
|
+
label,
|
|
1039
|
+
hint,
|
|
1040
|
+
error,
|
|
1041
|
+
size,
|
|
1042
|
+
disabled,
|
|
1043
|
+
labels,
|
|
1044
|
+
className,
|
|
1045
|
+
id
|
|
1046
|
+
}: ComboboxProps): import("react").JSX.Element;
|
|
1047
|
+
interface DatePickerLabels {
|
|
1048
|
+
placeholder?: string;
|
|
1049
|
+
previousMonth?: string;
|
|
1050
|
+
nextMonth?: string;
|
|
1051
|
+
clear?: string;
|
|
1052
|
+
}
|
|
1053
|
+
interface DatePickerProps {
|
|
1054
|
+
value?: string;
|
|
1055
|
+
defaultValue?: string;
|
|
1056
|
+
onChange?: (value: string | undefined) => void;
|
|
1057
|
+
min?: string;
|
|
1058
|
+
max?: string;
|
|
1059
|
+
clearable?: boolean;
|
|
1060
|
+
label?: string;
|
|
1061
|
+
hint?: string;
|
|
1062
|
+
error?: string;
|
|
1063
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1064
|
+
disabled?: boolean;
|
|
1065
|
+
labels?: DatePickerLabels;
|
|
1066
|
+
className?: string;
|
|
1067
|
+
id?: string;
|
|
1068
|
+
}
|
|
1069
|
+
declare function DatePicker({
|
|
1070
|
+
value,
|
|
1071
|
+
defaultValue,
|
|
1072
|
+
onChange,
|
|
1073
|
+
min,
|
|
1074
|
+
max,
|
|
1075
|
+
clearable,
|
|
1076
|
+
label,
|
|
1077
|
+
hint,
|
|
1078
|
+
error,
|
|
1079
|
+
size,
|
|
1080
|
+
disabled,
|
|
1081
|
+
labels,
|
|
1082
|
+
className,
|
|
1083
|
+
id
|
|
1084
|
+
}: DatePickerProps): import("react").JSX.Element;
|
|
1085
|
+
interface UploaderFile {
|
|
1086
|
+
id: string;
|
|
1087
|
+
name: string;
|
|
1088
|
+
size?: number;
|
|
1089
|
+
status: 'uploading' | 'complete' | 'error';
|
|
1090
|
+
errorMessage?: string;
|
|
1091
|
+
}
|
|
1092
|
+
interface FileUploaderLabels {
|
|
1093
|
+
label?: string;
|
|
1094
|
+
drop?: string;
|
|
1095
|
+
remove?: string;
|
|
1096
|
+
uploading?: string;
|
|
1097
|
+
complete?: string;
|
|
1098
|
+
error?: string;
|
|
1099
|
+
}
|
|
1100
|
+
interface FileUploaderProps {
|
|
1101
|
+
files?: UploaderFile[];
|
|
1102
|
+
onFilesAdded?: (files: File[]) => void;
|
|
1103
|
+
onRemove?: (id: string) => void;
|
|
1104
|
+
multiple?: boolean;
|
|
1105
|
+
accept?: string;
|
|
1106
|
+
maxSize?: number;
|
|
1107
|
+
onRejected?: (files: File[], reason: 'size' | 'type') => void;
|
|
1108
|
+
label?: string;
|
|
1109
|
+
hint?: string;
|
|
1110
|
+
labels?: FileUploaderLabels;
|
|
1111
|
+
disabled?: boolean;
|
|
1112
|
+
className?: string;
|
|
1113
|
+
}
|
|
1114
|
+
declare function FileUploader({
|
|
1115
|
+
files,
|
|
1116
|
+
onFilesAdded,
|
|
1117
|
+
onRemove,
|
|
1118
|
+
multiple,
|
|
1119
|
+
accept,
|
|
1120
|
+
maxSize,
|
|
1121
|
+
onRejected,
|
|
1122
|
+
label,
|
|
1123
|
+
hint,
|
|
1124
|
+
labels,
|
|
1125
|
+
disabled,
|
|
1126
|
+
className
|
|
1127
|
+
}: FileUploaderProps): import("react").JSX.Element;
|
|
1128
|
+
interface TimePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'value' | 'defaultValue' | 'onChange' | 'min' | 'max' | 'step'> {
|
|
1129
|
+
value?: string;
|
|
1130
|
+
defaultValue?: string;
|
|
1131
|
+
onChange?: (value: string) => void;
|
|
1132
|
+
min?: string;
|
|
1133
|
+
max?: string;
|
|
1134
|
+
step?: number;
|
|
1135
|
+
label?: string;
|
|
1136
|
+
hint?: string;
|
|
1137
|
+
error?: string;
|
|
1138
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1139
|
+
}
|
|
1140
|
+
declare function TimePicker({
|
|
1141
|
+
value,
|
|
1142
|
+
defaultValue,
|
|
1143
|
+
onChange,
|
|
1144
|
+
min,
|
|
1145
|
+
max,
|
|
1146
|
+
step,
|
|
1147
|
+
label,
|
|
1148
|
+
hint,
|
|
1149
|
+
error,
|
|
1150
|
+
size,
|
|
1151
|
+
className,
|
|
1152
|
+
id,
|
|
1153
|
+
onFocus,
|
|
1154
|
+
onBlur,
|
|
1155
|
+
...props
|
|
1156
|
+
}: TimePickerProps): import("react").JSX.Element;
|
|
1157
|
+
interface UsePopoverOptions {
|
|
1158
|
+
open?: boolean;
|
|
1159
|
+
onOpenChange?: (open: boolean) => void;
|
|
1160
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
1161
|
+
offset?: number;
|
|
1162
|
+
}
|
|
1163
|
+
interface UsePopoverReturn {
|
|
1164
|
+
triggerRef: React.RefObject<HTMLElement | null>;
|
|
1165
|
+
popoverRef: React.RefObject<HTMLElement | null>;
|
|
1166
|
+
isOpen: Signal<boolean>;
|
|
1167
|
+
anchorName: string;
|
|
1168
|
+
open: () => void;
|
|
1169
|
+
close: () => void;
|
|
1170
|
+
toggle: () => void;
|
|
1171
|
+
}
|
|
1172
|
+
declare function usePopover(options?: UsePopoverOptions): UsePopoverReturn;
|
|
1173
|
+
interface PopoverProps extends UsePopoverOptions {
|
|
1174
|
+
children: ReactNode;
|
|
1175
|
+
}
|
|
1176
|
+
declare function Popover({
|
|
1177
|
+
children,
|
|
1178
|
+
...options
|
|
1179
|
+
}: PopoverProps): import("react").JSX.Element;
|
|
1180
|
+
interface PopoverTriggerProps {
|
|
1181
|
+
children: ReactNode;
|
|
1182
|
+
asChild?: boolean;
|
|
1183
|
+
}
|
|
1184
|
+
declare function PopoverTrigger({
|
|
1185
|
+
children
|
|
1186
|
+
}: PopoverTriggerProps): import("react").JSX.Element;
|
|
1187
|
+
interface PopoverContentProps {
|
|
1188
|
+
children: ReactNode;
|
|
1189
|
+
className?: string;
|
|
1190
|
+
}
|
|
1191
|
+
declare function PopoverContent({
|
|
1192
|
+
children,
|
|
1193
|
+
className
|
|
1194
|
+
}: PopoverContentProps): import("react").JSX.Element;
|
|
1195
|
+
interface MenuProps {
|
|
1196
|
+
children: ReactNode;
|
|
1197
|
+
}
|
|
1198
|
+
declare function Menu({
|
|
1199
|
+
children
|
|
1200
|
+
}: MenuProps): import("react").JSX.Element;
|
|
1201
|
+
interface MenuTriggerProps {
|
|
1202
|
+
children: ReactNode;
|
|
1203
|
+
'aria-label'?: string;
|
|
1204
|
+
}
|
|
1205
|
+
declare function MenuTrigger({
|
|
1206
|
+
children,
|
|
1207
|
+
'aria-label': ariaLabel
|
|
1208
|
+
}: MenuTriggerProps): import("react").JSX.Element;
|
|
1209
|
+
interface MenuItemProps {
|
|
1210
|
+
children: ReactNode;
|
|
1211
|
+
onSelect: () => void;
|
|
1212
|
+
disabled?: boolean;
|
|
1213
|
+
}
|
|
1214
|
+
declare function MenuItem({
|
|
1215
|
+
children,
|
|
1216
|
+
onSelect,
|
|
1217
|
+
disabled
|
|
1218
|
+
}: MenuItemProps): import("react").JSX.Element;
|
|
1219
|
+
declare function MenuSeparator(): import("react").JSX.Element;
|
|
1220
|
+
interface AlertDialogLabels {
|
|
1221
|
+
confirm?: string;
|
|
1222
|
+
cancel?: string;
|
|
1223
|
+
}
|
|
1224
|
+
interface AlertDialogProps {
|
|
1225
|
+
open: boolean;
|
|
1226
|
+
title: string;
|
|
1227
|
+
description: string;
|
|
1228
|
+
onConfirm: () => void;
|
|
1229
|
+
onCancel: () => void;
|
|
1230
|
+
labels?: AlertDialogLabels;
|
|
1231
|
+
variant?: 'destructive' | 'default';
|
|
1232
|
+
}
|
|
1233
|
+
declare function AlertDialog({
|
|
1234
|
+
open,
|
|
1235
|
+
title,
|
|
1236
|
+
description,
|
|
1237
|
+
onConfirm,
|
|
1238
|
+
onCancel,
|
|
1239
|
+
labels,
|
|
1240
|
+
variant
|
|
1241
|
+
}: AlertDialogProps): import("react").JSX.Element;
|
|
1242
|
+
interface SheetProps {
|
|
1243
|
+
open: boolean;
|
|
1244
|
+
onClose: () => void;
|
|
1245
|
+
title: string;
|
|
1246
|
+
children: ReactNode;
|
|
1247
|
+
side?: 'start' | 'end' | 'top' | 'bottom';
|
|
1248
|
+
}
|
|
1249
|
+
declare function Sheet({
|
|
1250
|
+
open,
|
|
1251
|
+
onClose,
|
|
1252
|
+
title,
|
|
1253
|
+
children,
|
|
1254
|
+
side
|
|
1255
|
+
}: SheetProps): import("react").JSX.Element;
|
|
1256
|
+
interface ContextMenuProps {
|
|
1257
|
+
children: ReactNode;
|
|
1258
|
+
}
|
|
1259
|
+
declare function ContextMenu({
|
|
1260
|
+
children
|
|
1261
|
+
}: ContextMenuProps): import("react").JSX.Element;
|
|
1262
|
+
interface ContextMenuItemProps {
|
|
1263
|
+
children: ReactNode;
|
|
1264
|
+
onSelect: () => void;
|
|
1265
|
+
disabled?: boolean;
|
|
1266
|
+
}
|
|
1267
|
+
declare function ContextMenuItem({
|
|
1268
|
+
children,
|
|
1269
|
+
onSelect,
|
|
1270
|
+
disabled
|
|
1271
|
+
}: ContextMenuItemProps): import("react").JSX.Element;
|
|
1272
|
+
interface ComparisonProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
1273
|
+
/** The base layer, fully visible underneath. */
|
|
1274
|
+
after: ReactNode;
|
|
1275
|
+
/** The top layer, revealed from the start edge up to `position`. */
|
|
1276
|
+
before: ReactNode;
|
|
1277
|
+
/** Divider position as a percentage 0–100. Controlled when provided. */
|
|
1278
|
+
position?: number;
|
|
1279
|
+
/** Initial divider position for uncontrolled use. Default 50. */
|
|
1280
|
+
defaultPosition?: number;
|
|
1281
|
+
onPositionChange?: (position: number) => void;
|
|
1282
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1283
|
+
/** Percentage the Arrow keys move the divider. Default 5. */
|
|
1284
|
+
keyboardStep?: number;
|
|
1285
|
+
/** Accessible label for the divider slider. */
|
|
1286
|
+
label?: string;
|
|
1287
|
+
}
|
|
1288
|
+
declare function Comparison({
|
|
1289
|
+
after,
|
|
1290
|
+
before,
|
|
1291
|
+
position,
|
|
1292
|
+
defaultPosition,
|
|
1293
|
+
onPositionChange,
|
|
1294
|
+
orientation,
|
|
1295
|
+
keyboardStep,
|
|
1296
|
+
label,
|
|
1297
|
+
className,
|
|
1298
|
+
...props
|
|
1299
|
+
}: ComparisonProps): import("react").JSX.Element;
|
|
1300
|
+
interface HoverCardProps {
|
|
1301
|
+
children: ReactNode;
|
|
1302
|
+
openDelay?: number;
|
|
1303
|
+
closeDelay?: number;
|
|
1304
|
+
}
|
|
1305
|
+
declare function HoverCard({
|
|
1306
|
+
children,
|
|
1307
|
+
openDelay,
|
|
1308
|
+
closeDelay
|
|
1309
|
+
}: HoverCardProps): import("react").JSX.Element;
|
|
1310
|
+
interface HoverCardTriggerProps {
|
|
1311
|
+
children: ReactNode;
|
|
1312
|
+
}
|
|
1313
|
+
declare function HoverCardTrigger({
|
|
1314
|
+
children
|
|
1315
|
+
}: HoverCardTriggerProps): import("react").JSX.Element;
|
|
1316
|
+
interface HoverCardContentProps {
|
|
1317
|
+
children: ReactNode;
|
|
1318
|
+
className?: string;
|
|
1319
|
+
}
|
|
1320
|
+
declare function HoverCardContent({
|
|
1321
|
+
children,
|
|
1322
|
+
className
|
|
1323
|
+
}: HoverCardContentProps): import("react").JSX.Element;
|
|
1324
|
+
interface PasswordInputLabels {
|
|
1325
|
+
reveal?: string;
|
|
1326
|
+
hide?: string;
|
|
1327
|
+
strengthLabel?: (level: string) => string;
|
|
1328
|
+
}
|
|
1329
|
+
interface PasswordInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> {
|
|
1330
|
+
showStrengthMeter?: boolean;
|
|
1331
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1332
|
+
labels?: PasswordInputLabels;
|
|
1333
|
+
}
|
|
1334
|
+
declare function PasswordInput({
|
|
1335
|
+
showStrengthMeter,
|
|
1336
|
+
size,
|
|
1337
|
+
labels,
|
|
1338
|
+
className,
|
|
1339
|
+
id,
|
|
1340
|
+
value,
|
|
1341
|
+
defaultValue,
|
|
1342
|
+
onChange,
|
|
1343
|
+
...props
|
|
1344
|
+
}: PasswordInputProps): import("react").JSX.Element;
|
|
1345
|
+
interface MultiSelectOption {
|
|
1346
|
+
label: string;
|
|
1347
|
+
value: string;
|
|
1348
|
+
disabled?: boolean;
|
|
1349
|
+
}
|
|
1350
|
+
interface MultiSelectLabels {
|
|
1351
|
+
placeholder?: string;
|
|
1352
|
+
selected?: (count: number) => string;
|
|
1353
|
+
search?: string;
|
|
1354
|
+
noResults?: string;
|
|
1355
|
+
}
|
|
1356
|
+
interface MultiSelectProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
1357
|
+
options: MultiSelectOption[];
|
|
1358
|
+
value: string[];
|
|
1359
|
+
onValueChange: (v: string[]) => void;
|
|
1360
|
+
placeholder?: string;
|
|
1361
|
+
disabled?: boolean;
|
|
1362
|
+
labels?: MultiSelectLabels;
|
|
1363
|
+
}
|
|
1364
|
+
declare function MultiSelect({
|
|
1365
|
+
options,
|
|
1366
|
+
value,
|
|
1367
|
+
onValueChange,
|
|
1368
|
+
placeholder,
|
|
1369
|
+
disabled,
|
|
1370
|
+
labels,
|
|
1371
|
+
className,
|
|
1372
|
+
...props
|
|
1373
|
+
}: MultiSelectProps): import("react").JSX.Element;
|
|
1374
|
+
interface TagsInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
1375
|
+
value: string[];
|
|
1376
|
+
onValueChange: (v: string[]) => void;
|
|
1377
|
+
placeholder?: string;
|
|
1378
|
+
validate?: (tag: string) => boolean;
|
|
1379
|
+
max?: number;
|
|
1380
|
+
disabled?: boolean;
|
|
1381
|
+
}
|
|
1382
|
+
declare function TagsInput({
|
|
1383
|
+
value,
|
|
1384
|
+
onValueChange,
|
|
1385
|
+
placeholder,
|
|
1386
|
+
validate,
|
|
1387
|
+
max,
|
|
1388
|
+
disabled,
|
|
1389
|
+
className,
|
|
1390
|
+
...props
|
|
1391
|
+
}: TagsInputProps): import("react").JSX.Element;
|
|
1392
|
+
interface OtpInputProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
1393
|
+
length?: number;
|
|
1394
|
+
value: string;
|
|
1395
|
+
onValueChange: (v: string) => void;
|
|
1396
|
+
disabled?: boolean;
|
|
1397
|
+
type?: 'numeric' | 'alphanumeric';
|
|
1398
|
+
}
|
|
1399
|
+
declare function OtpInput({
|
|
1400
|
+
length,
|
|
1401
|
+
value,
|
|
1402
|
+
onValueChange,
|
|
1403
|
+
disabled,
|
|
1404
|
+
type,
|
|
1405
|
+
className,
|
|
1406
|
+
...props
|
|
1407
|
+
}: OtpInputProps): import("react").JSX.Element;
|
|
1408
|
+
interface SegmentedControlOption {
|
|
1409
|
+
label: string;
|
|
1410
|
+
value: string;
|
|
1411
|
+
disabled?: boolean;
|
|
1412
|
+
}
|
|
1413
|
+
interface SegmentedControlProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
1414
|
+
options: SegmentedControlOption[];
|
|
1415
|
+
value: string;
|
|
1416
|
+
onValueChange: (v: string) => void;
|
|
1417
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1418
|
+
disabled?: boolean;
|
|
1419
|
+
}
|
|
1420
|
+
declare function SegmentedControl({
|
|
1421
|
+
options,
|
|
1422
|
+
value,
|
|
1423
|
+
onValueChange,
|
|
1424
|
+
size,
|
|
1425
|
+
disabled,
|
|
1426
|
+
className,
|
|
1427
|
+
...props
|
|
1428
|
+
}: SegmentedControlProps): import("react").JSX.Element;
|
|
1429
|
+
interface InputGroupAddonProps extends HTMLAttributes<HTMLSpanElement> {
|
|
1430
|
+
/** Visual side, logical: 'inline-start' (leading) or 'inline-end' (trailing). */
|
|
1431
|
+
align?: 'inline-start' | 'inline-end';
|
|
1432
|
+
children: ReactNode;
|
|
1433
|
+
}
|
|
1434
|
+
/** Inline adornment (icon, unit) rendered INSIDE the field border. Decorative by default. */
|
|
1435
|
+
declare function InputGroupAddon({
|
|
1436
|
+
align,
|
|
1437
|
+
children,
|
|
1438
|
+
className,
|
|
1439
|
+
...props
|
|
1440
|
+
}: InputGroupAddonProps): import("react").JSX.Element;
|
|
1441
|
+
interface InputGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'prefix' | 'suffix'> {
|
|
1442
|
+
prefix?: ReactNode;
|
|
1443
|
+
suffix?: ReactNode;
|
|
1444
|
+
children: ReactNode;
|
|
1445
|
+
}
|
|
1446
|
+
declare function InputGroup({
|
|
1447
|
+
prefix,
|
|
1448
|
+
suffix,
|
|
1449
|
+
children,
|
|
1450
|
+
className,
|
|
1451
|
+
...props
|
|
1452
|
+
}: InputGroupProps): import("react").JSX.Element;
|
|
1453
|
+
interface RatingGroupLabels {
|
|
1454
|
+
rating?: (value: number, max: number) => string;
|
|
1455
|
+
}
|
|
1456
|
+
interface RatingGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
1457
|
+
value: number;
|
|
1458
|
+
onValueChange?: (v: number) => void;
|
|
1459
|
+
max?: number;
|
|
1460
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1461
|
+
disabled?: boolean;
|
|
1462
|
+
readOnly?: boolean;
|
|
1463
|
+
labels?: RatingGroupLabels;
|
|
1464
|
+
}
|
|
1465
|
+
declare function RatingGroup({
|
|
1466
|
+
value,
|
|
1467
|
+
onValueChange,
|
|
1468
|
+
max,
|
|
1469
|
+
size,
|
|
1470
|
+
disabled,
|
|
1471
|
+
readOnly,
|
|
1472
|
+
labels,
|
|
1473
|
+
className,
|
|
1474
|
+
...props
|
|
1475
|
+
}: RatingGroupProps): import("react").JSX.Element;
|
|
1476
|
+
interface EditableProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
1477
|
+
value: string;
|
|
1478
|
+
onValueChange: (v: string) => void;
|
|
1479
|
+
placeholder?: string;
|
|
1480
|
+
disabled?: boolean;
|
|
1481
|
+
submitOnBlur?: boolean;
|
|
1482
|
+
onCancel?: () => void;
|
|
1483
|
+
}
|
|
1484
|
+
declare function Editable({
|
|
1485
|
+
value,
|
|
1486
|
+
onValueChange,
|
|
1487
|
+
placeholder,
|
|
1488
|
+
disabled,
|
|
1489
|
+
submitOnBlur,
|
|
1490
|
+
onCancel,
|
|
1491
|
+
className,
|
|
1492
|
+
...props
|
|
1493
|
+
}: EditableProps): import("react").JSX.Element;
|
|
1494
|
+
interface RadioCardGroupProps {
|
|
1495
|
+
name: string;
|
|
1496
|
+
label: string;
|
|
1497
|
+
value?: string;
|
|
1498
|
+
defaultValue?: string;
|
|
1499
|
+
onValueChange?: (value: string) => void;
|
|
1500
|
+
children: ReactNode;
|
|
1501
|
+
className?: string | undefined;
|
|
1502
|
+
}
|
|
1503
|
+
declare function RadioCardGroup({
|
|
1504
|
+
name,
|
|
1505
|
+
label,
|
|
1506
|
+
value,
|
|
1507
|
+
defaultValue,
|
|
1508
|
+
onValueChange,
|
|
1509
|
+
children,
|
|
1510
|
+
className
|
|
1511
|
+
}: RadioCardGroupProps): import("react").JSX.Element;
|
|
1512
|
+
interface RadioCardProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'name' | 'value' | 'title'> {
|
|
1513
|
+
value: string;
|
|
1514
|
+
title: ReactNode;
|
|
1515
|
+
description?: ReactNode;
|
|
1516
|
+
disabled?: boolean;
|
|
1517
|
+
hideIndicator?: boolean;
|
|
1518
|
+
}
|
|
1519
|
+
declare function RadioCard({
|
|
1520
|
+
value,
|
|
1521
|
+
title,
|
|
1522
|
+
description,
|
|
1523
|
+
disabled,
|
|
1524
|
+
hideIndicator,
|
|
1525
|
+
...props
|
|
1526
|
+
}: RadioCardProps): import("react").JSX.Element;
|
|
1527
|
+
interface ShellHeaderBrand {
|
|
1528
|
+
prefix?: string;
|
|
1529
|
+
name: string;
|
|
1530
|
+
href?: string;
|
|
1531
|
+
}
|
|
1532
|
+
interface ShellHeaderNavLink {
|
|
1533
|
+
label: string;
|
|
1534
|
+
href: string;
|
|
1535
|
+
active?: boolean;
|
|
1536
|
+
}
|
|
1537
|
+
interface ShellHeaderNavMenuItem {
|
|
1538
|
+
label: string;
|
|
1539
|
+
href: string;
|
|
1540
|
+
active?: boolean;
|
|
1541
|
+
}
|
|
1542
|
+
interface ShellHeaderNavMenu {
|
|
1543
|
+
label: string;
|
|
1544
|
+
items: ShellHeaderNavMenuItem[];
|
|
1545
|
+
}
|
|
1546
|
+
type ShellHeaderNavItem = ShellHeaderNavLink | ShellHeaderNavMenu;
|
|
1547
|
+
interface ShellHeaderAction {
|
|
1548
|
+
id: string;
|
|
1549
|
+
label: string;
|
|
1550
|
+
icon: ReactNode;
|
|
1551
|
+
active?: boolean;
|
|
1552
|
+
onClick?: (() => void) | undefined;
|
|
1553
|
+
}
|
|
1554
|
+
interface ShellHeaderLabels {
|
|
1555
|
+
skipToContent?: string;
|
|
1556
|
+
nav?: string;
|
|
1557
|
+
openMenu?: string;
|
|
1558
|
+
closeMenu?: string;
|
|
1559
|
+
}
|
|
1560
|
+
interface ShellHeaderProps {
|
|
1561
|
+
brand?: ShellHeaderBrand | ReactNode;
|
|
1562
|
+
nav?: ShellHeaderNavItem[];
|
|
1563
|
+
actions?: ShellHeaderAction[];
|
|
1564
|
+
end?: ReactNode;
|
|
1565
|
+
onMenuClick?: (() => void) | undefined;
|
|
1566
|
+
menuExpanded?: boolean;
|
|
1567
|
+
skipToContentHref?: string | false;
|
|
1568
|
+
labels?: ShellHeaderLabels;
|
|
1569
|
+
className?: string | undefined;
|
|
1570
|
+
}
|
|
1571
|
+
declare function ShellHeader({
|
|
1572
|
+
brand,
|
|
1573
|
+
nav,
|
|
1574
|
+
actions,
|
|
1575
|
+
end,
|
|
1576
|
+
onMenuClick,
|
|
1577
|
+
menuExpanded,
|
|
1578
|
+
skipToContentHref,
|
|
1579
|
+
labels,
|
|
1580
|
+
className
|
|
1581
|
+
}: ShellHeaderProps): import("react").JSX.Element;
|
|
1582
|
+
interface HeaderPanelLabels {
|
|
1583
|
+
close?: string;
|
|
1584
|
+
}
|
|
1585
|
+
interface HeaderPanelProps {
|
|
1586
|
+
open: boolean;
|
|
1587
|
+
onClose: () => void;
|
|
1588
|
+
label: string;
|
|
1589
|
+
children: ReactNode;
|
|
1590
|
+
labels?: HeaderPanelLabels;
|
|
1591
|
+
className?: string | undefined;
|
|
1592
|
+
}
|
|
1593
|
+
declare function HeaderPanel({
|
|
1594
|
+
open,
|
|
1595
|
+
onClose,
|
|
1596
|
+
label,
|
|
1597
|
+
children,
|
|
1598
|
+
labels,
|
|
1599
|
+
className
|
|
1600
|
+
}: HeaderPanelProps): import("react").JSX.Element;
|
|
1601
|
+
interface SwitcherLink {
|
|
1602
|
+
label: string;
|
|
1603
|
+
href: string;
|
|
1604
|
+
active?: boolean;
|
|
1605
|
+
icon?: ReactNode;
|
|
1606
|
+
}
|
|
1607
|
+
type SwitcherEntry = SwitcherLink | {
|
|
1608
|
+
divider: true;
|
|
1609
|
+
};
|
|
1610
|
+
interface SwitcherProps {
|
|
1611
|
+
items: SwitcherEntry[];
|
|
1612
|
+
label?: string;
|
|
1613
|
+
className?: string | undefined;
|
|
1614
|
+
}
|
|
1615
|
+
declare function Switcher({
|
|
1616
|
+
items,
|
|
1617
|
+
label,
|
|
1618
|
+
className
|
|
1619
|
+
}: SwitcherProps): import("react").JSX.Element;
|
|
1620
|
+
interface CheckboxCardProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'title' | 'onChange'> {
|
|
1621
|
+
title: ReactNode;
|
|
1622
|
+
description?: ReactNode;
|
|
1623
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1624
|
+
className?: string | undefined;
|
|
1625
|
+
}
|
|
1626
|
+
declare function CheckboxCard({
|
|
1627
|
+
title,
|
|
1628
|
+
description,
|
|
1629
|
+
checked,
|
|
1630
|
+
defaultChecked,
|
|
1631
|
+
disabled,
|
|
1632
|
+
onCheckedChange,
|
|
1633
|
+
className,
|
|
1634
|
+
...props
|
|
1635
|
+
}: CheckboxCardProps): import("react").JSX.Element;
|
|
1636
|
+
interface CopyButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value'> {
|
|
1637
|
+
/** The text written to the clipboard on click. */
|
|
1638
|
+
value: string;
|
|
1639
|
+
size?: 'sm' | 'md';
|
|
1640
|
+
labels?: {
|
|
1641
|
+
copy?: string;
|
|
1642
|
+
copied?: string;
|
|
1643
|
+
};
|
|
1644
|
+
}
|
|
1645
|
+
declare function CopyButton({
|
|
1646
|
+
value,
|
|
1647
|
+
size,
|
|
1648
|
+
labels,
|
|
1649
|
+
className,
|
|
1650
|
+
...props
|
|
1651
|
+
}: CopyButtonProps): import("react").JSX.Element;
|
|
1652
|
+
interface StatProps extends HTMLAttributes<HTMLDivElement> {
|
|
1653
|
+
label: string;
|
|
1654
|
+
value: string | number;
|
|
1655
|
+
delta?: string;
|
|
1656
|
+
trend?: 'up' | 'down' | 'flat';
|
|
1657
|
+
helpText?: string;
|
|
1658
|
+
}
|
|
1659
|
+
declare function Stat({
|
|
1660
|
+
label,
|
|
1661
|
+
value,
|
|
1662
|
+
delta,
|
|
1663
|
+
trend,
|
|
1664
|
+
helpText,
|
|
1665
|
+
className,
|
|
1666
|
+
...props
|
|
1667
|
+
}: StatProps): import("react").JSX.Element;
|
|
1668
|
+
interface StatusProps extends HTMLAttributes<HTMLSpanElement> {
|
|
1669
|
+
status?: 'success' | 'warning' | 'error' | 'info' | 'neutral';
|
|
1670
|
+
/** Pulses the dot — only when the user allows motion. */
|
|
1671
|
+
pulse?: boolean;
|
|
1672
|
+
}
|
|
1673
|
+
declare function Status({
|
|
1674
|
+
status,
|
|
1675
|
+
pulse,
|
|
1676
|
+
className,
|
|
1677
|
+
children,
|
|
1678
|
+
...props
|
|
1679
|
+
}: StatusProps): import("react").JSX.Element;
|
|
1680
|
+
interface VisuallyHiddenProps extends HTMLAttributes<HTMLSpanElement> {
|
|
1681
|
+
children: ReactNode;
|
|
1682
|
+
}
|
|
1683
|
+
declare function VisuallyHidden({
|
|
1684
|
+
children,
|
|
1685
|
+
className,
|
|
1686
|
+
...props
|
|
1687
|
+
}: VisuallyHiddenProps): import("react").JSX.Element;
|
|
1688
|
+
interface SkipNavLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> {
|
|
1689
|
+
targetId?: string;
|
|
1690
|
+
labels?: {
|
|
1691
|
+
label?: string;
|
|
1692
|
+
};
|
|
1693
|
+
}
|
|
1694
|
+
/** Render as the FIRST focusable element on the page — visually hidden until focused. */
|
|
1695
|
+
declare function SkipNavLink({
|
|
1696
|
+
targetId,
|
|
1697
|
+
labels,
|
|
1698
|
+
className,
|
|
1699
|
+
...props
|
|
1700
|
+
}: SkipNavLinkProps): import("react").JSX.Element;
|
|
1701
|
+
interface SkipNavTargetProps extends HTMLAttributes<HTMLDivElement> {
|
|
1702
|
+
id?: string;
|
|
1703
|
+
}
|
|
1704
|
+
/** Place where the main content starts; the link's hash navigation moves focus here. */
|
|
1705
|
+
declare function SkipNavTarget({
|
|
1706
|
+
id,
|
|
1707
|
+
...props
|
|
1708
|
+
}: SkipNavTargetProps): import("react").JSX.Element;
|
|
1709
|
+
type ProgressVariant = 'primary' | 'info' | 'success' | 'warning' | 'error';
|
|
1710
|
+
type ProgressSize = 'sm' | 'md' | 'lg';
|
|
1711
|
+
interface ProgressProps {
|
|
1712
|
+
/** 0–100. Omit for indeterminate state. */
|
|
1713
|
+
value?: number;
|
|
1714
|
+
variant?: ProgressVariant;
|
|
1715
|
+
size?: ProgressSize;
|
|
1716
|
+
'aria-label'?: string;
|
|
1717
|
+
'aria-describedby'?: string;
|
|
1718
|
+
className?: string;
|
|
1719
|
+
}
|
|
1720
|
+
declare function Progress({
|
|
1721
|
+
value,
|
|
1722
|
+
variant,
|
|
1723
|
+
size,
|
|
1724
|
+
className,
|
|
1725
|
+
...aria
|
|
1726
|
+
}: ProgressProps): import("react").JSX.Element;
|
|
1727
|
+
interface ProgressCircleProps extends HTMLAttributes<HTMLDivElement> {
|
|
1728
|
+
/** Current value from 0 to max — clamped. */
|
|
1729
|
+
value: number;
|
|
1730
|
+
max?: number;
|
|
1731
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1732
|
+
/** Renders the rounded percentage in the center — pairs best with md and lg. */
|
|
1733
|
+
showValue?: boolean;
|
|
1734
|
+
/** Accessible name for the progressbar. */
|
|
1735
|
+
label?: string;
|
|
1736
|
+
}
|
|
1737
|
+
declare function ProgressCircle({
|
|
1738
|
+
value,
|
|
1739
|
+
max,
|
|
1740
|
+
size,
|
|
1741
|
+
showValue,
|
|
1742
|
+
label,
|
|
1743
|
+
className,
|
|
1744
|
+
...props
|
|
1745
|
+
}: ProgressCircleProps): import("react").JSX.Element;
|
|
1746
|
+
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
1747
|
+
type HeadingSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
1748
|
+
interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
1749
|
+
level?: HeadingLevel;
|
|
1750
|
+
size?: HeadingSize;
|
|
1751
|
+
}
|
|
1752
|
+
declare function Heading({
|
|
1753
|
+
level,
|
|
1754
|
+
size,
|
|
1755
|
+
className,
|
|
1756
|
+
children,
|
|
1757
|
+
...props
|
|
1758
|
+
}: HeadingProps): import("react").JSX.Element;
|
|
1759
|
+
interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
1760
|
+
as?: 'p' | 'span' | 'div';
|
|
1761
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1762
|
+
weight?: 'normal' | 'medium' | 'semibold';
|
|
1763
|
+
muted?: boolean;
|
|
1764
|
+
}
|
|
1765
|
+
declare function Text({
|
|
1766
|
+
as: Tag,
|
|
1767
|
+
size,
|
|
1768
|
+
weight,
|
|
1769
|
+
muted,
|
|
1770
|
+
className,
|
|
1771
|
+
children,
|
|
1772
|
+
...props
|
|
1773
|
+
}: TextProps): import("react").JSX.Element;
|
|
1774
|
+
interface CodeProps extends HTMLAttributes<HTMLElement> {
|
|
1775
|
+
size?: 'sm' | 'md';
|
|
1776
|
+
}
|
|
1777
|
+
declare function Code({
|
|
1778
|
+
size,
|
|
1779
|
+
className,
|
|
1780
|
+
children,
|
|
1781
|
+
...props
|
|
1782
|
+
}: CodeProps): import("react").JSX.Element;
|
|
1783
|
+
interface BlockquoteProps extends HTMLAttributes<HTMLQuoteElement> {
|
|
1784
|
+
cite?: string;
|
|
1785
|
+
}
|
|
1786
|
+
declare function Blockquote({
|
|
1787
|
+
cite,
|
|
1788
|
+
className,
|
|
1789
|
+
children,
|
|
1790
|
+
...props
|
|
1791
|
+
}: BlockquoteProps): import("react").JSX.Element;
|
|
1792
|
+
interface ListProps extends HTMLAttributes<HTMLElement> {
|
|
1793
|
+
as?: 'ul' | 'ol';
|
|
1794
|
+
marker?: 'disc' | 'decimal' | 'none';
|
|
1795
|
+
}
|
|
1796
|
+
declare function List({
|
|
1797
|
+
as: Tag,
|
|
1798
|
+
marker,
|
|
1799
|
+
className,
|
|
1800
|
+
children,
|
|
1801
|
+
...props
|
|
1802
|
+
}: ListProps): import("react").JSX.Element;
|
|
1803
|
+
type ListItemProps = LiHTMLAttributes<HTMLLIElement>;
|
|
1804
|
+
declare function ListItem({
|
|
1805
|
+
className,
|
|
1806
|
+
children,
|
|
1807
|
+
...props
|
|
1808
|
+
}: ListItemProps): import("react").JSX.Element;
|
|
1809
|
+
type ProseProps = HTMLAttributes<HTMLDivElement>;
|
|
1810
|
+
declare function Prose({
|
|
1811
|
+
className,
|
|
1812
|
+
children,
|
|
1813
|
+
...props
|
|
1814
|
+
}: ProseProps): import("react").JSX.Element;
|
|
1815
|
+
/**
|
|
1816
|
+
* Minimal QR Code encoder (byte mode, versions 1–40, EC levels L/M/Q/H).
|
|
1817
|
+
*
|
|
1818
|
+
* Vendored as owned source to keep `@cascivo` free of runtime dependencies.
|
|
1819
|
+
* Algorithm and lookup tables adapted from Project Nayuki's "QR Code generator
|
|
1820
|
+
* library" (MIT License, https://www.nayuki.io/page/qr-code-generator-library),
|
|
1821
|
+
* trimmed to byte-mode segments with automatic version and mask selection.
|
|
1822
|
+
*/
|
|
1823
|
+
type ErrorCorrection = 'L' | 'M' | 'Q' | 'H';
|
|
1824
|
+
interface QrCodeProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
1825
|
+
/** The text or URL to encode. */
|
|
1826
|
+
value: string;
|
|
1827
|
+
/** Rendered size in pixels (width and height). Default 128. */
|
|
1828
|
+
size?: number;
|
|
1829
|
+
/** Error-correction level. Higher tolerates more damage but holds less data. Default 'M'. */
|
|
1830
|
+
errorCorrection?: ErrorCorrection;
|
|
1831
|
+
/** CSS length rounding the code's corners (applied to the container). */
|
|
1832
|
+
radius?: string;
|
|
1833
|
+
/** Module color. Default `currentColor` so the code inherits text color. */
|
|
1834
|
+
fill?: string;
|
|
1835
|
+
/** Background color behind the modules. Default `transparent`. */
|
|
1836
|
+
background?: string;
|
|
1837
|
+
/** Accessible label. Defaults to the i18n built-in "QR code". */
|
|
1838
|
+
label?: string;
|
|
1839
|
+
}
|
|
1840
|
+
declare function QrCode({
|
|
1841
|
+
value,
|
|
1842
|
+
size,
|
|
1843
|
+
errorCorrection,
|
|
1844
|
+
radius,
|
|
1845
|
+
fill,
|
|
1846
|
+
background,
|
|
1847
|
+
label,
|
|
1848
|
+
className,
|
|
1849
|
+
style,
|
|
1850
|
+
...props
|
|
1851
|
+
}: QrCodeProps): import("react").JSX.Element | null;
|
|
1852
|
+
interface RelativeTimeProps extends Omit<TimeHTMLAttributes<HTMLTimeElement>, 'dateTime'> {
|
|
1853
|
+
/** The instant to describe relative to now. */
|
|
1854
|
+
date: Date | number | string;
|
|
1855
|
+
/** Auto-update as time passes. Default true. */
|
|
1856
|
+
sync?: boolean;
|
|
1857
|
+
/** Override "now" (ms since epoch). Mainly for deterministic tests; disables the interval. */
|
|
1858
|
+
now?: number;
|
|
1859
|
+
/** Passed through to Intl.RelativeTimeFormat (e.g. `{ numeric: 'auto' }`). */
|
|
1860
|
+
format?: Intl.RelativeTimeFormatOptions;
|
|
1861
|
+
}
|
|
1862
|
+
declare function RelativeTime({
|
|
1863
|
+
date,
|
|
1864
|
+
sync,
|
|
1865
|
+
now: nowProp,
|
|
1866
|
+
format,
|
|
1867
|
+
className,
|
|
1868
|
+
...props
|
|
1869
|
+
}: RelativeTimeProps): import("react").JSX.Element;
|
|
1870
|
+
interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
1871
|
+
/** Renders into the child element (Slot composition) instead of a native `<label>`. */
|
|
1872
|
+
asChild?: boolean;
|
|
1873
|
+
/** Shows a required marker after the label text. */
|
|
1874
|
+
required?: boolean;
|
|
1875
|
+
/** Dims the label to match an associated disabled control. */
|
|
1876
|
+
disabled?: boolean;
|
|
1877
|
+
children: ReactNode;
|
|
1878
|
+
/** Override built-in strings (e.g. the required-marker accessible text). */
|
|
1879
|
+
labels?: {
|
|
1880
|
+
required?: string;
|
|
1881
|
+
};
|
|
1882
|
+
}
|
|
1883
|
+
declare function Label({
|
|
1884
|
+
asChild,
|
|
1885
|
+
required,
|
|
1886
|
+
disabled,
|
|
1887
|
+
className,
|
|
1888
|
+
children,
|
|
1889
|
+
labels,
|
|
1890
|
+
...props
|
|
1891
|
+
}: LabelProps): import("react").JSX.Element;
|
|
1892
|
+
interface FieldProps {
|
|
1893
|
+
/** Label text for the control. */
|
|
1894
|
+
label?: ReactNode;
|
|
1895
|
+
/** Helper text describing the control, wired via aria-describedby. */
|
|
1896
|
+
description?: ReactNode;
|
|
1897
|
+
/** Error message; sets aria-invalid on the control and is announced via role="alert". */
|
|
1898
|
+
error?: ReactNode;
|
|
1899
|
+
/** Marks the field required (forwarded to the Label marker). */
|
|
1900
|
+
required?: boolean;
|
|
1901
|
+
/** Dims the label and is forwarded to the cloned control. */
|
|
1902
|
+
disabled?: boolean;
|
|
1903
|
+
/** Explicit id for the control; auto-generated when omitted. */
|
|
1904
|
+
id?: string;
|
|
1905
|
+
/** The single form control element. */
|
|
1906
|
+
children: ReactElement<{
|
|
1907
|
+
id?: string;
|
|
1908
|
+
'aria-describedby'?: string;
|
|
1909
|
+
'aria-invalid'?: boolean;
|
|
1910
|
+
disabled?: boolean;
|
|
1911
|
+
}>;
|
|
1912
|
+
className?: string;
|
|
1913
|
+
}
|
|
1914
|
+
declare function Field({
|
|
1915
|
+
label,
|
|
1916
|
+
description,
|
|
1917
|
+
error,
|
|
1918
|
+
required,
|
|
1919
|
+
disabled,
|
|
1920
|
+
id,
|
|
1921
|
+
children,
|
|
1922
|
+
className
|
|
1923
|
+
}: FieldProps): import("react").JSX.Element;
|
|
1924
|
+
type FilterVariant = 'pill' | 'outline';
|
|
1925
|
+
interface FilterOption {
|
|
1926
|
+
label: string;
|
|
1927
|
+
value: string;
|
|
1928
|
+
}
|
|
1929
|
+
interface FilterProps {
|
|
1930
|
+
options: FilterOption[];
|
|
1931
|
+
value?: string[];
|
|
1932
|
+
defaultValue?: string[];
|
|
1933
|
+
onChange?: (selected: string[]) => void;
|
|
1934
|
+
multi?: boolean;
|
|
1935
|
+
variant?: FilterVariant;
|
|
1936
|
+
'aria-label'?: string;
|
|
1937
|
+
className?: string;
|
|
1938
|
+
}
|
|
1939
|
+
declare function Filter({
|
|
1940
|
+
options,
|
|
1941
|
+
value,
|
|
1942
|
+
defaultValue,
|
|
1943
|
+
onChange,
|
|
1944
|
+
multi,
|
|
1945
|
+
variant,
|
|
1946
|
+
className,
|
|
1947
|
+
...aria
|
|
1948
|
+
}: FilterProps): import("react").JSX.Element;
|
|
1949
|
+
interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1950
|
+
/** Accessible name for the icon-only control. Required — there is no visible text. */
|
|
1951
|
+
label: string;
|
|
1952
|
+
/** The icon to render. Alias for `children`. */
|
|
1953
|
+
icon?: ReactNode;
|
|
1954
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1955
|
+
variant?: 'ghost' | 'outline' | 'filled';
|
|
1956
|
+
/** Render the single child element instead of a `<button>` (composition). */
|
|
1957
|
+
asChild?: boolean;
|
|
1958
|
+
}
|
|
1959
|
+
declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
1960
|
+
interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
1961
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1962
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1963
|
+
/** Enable arrow-key roving focus across the group's focusable buttons. */
|
|
1964
|
+
roving?: boolean;
|
|
1965
|
+
loop?: boolean;
|
|
1966
|
+
}
|
|
1967
|
+
declare const ButtonGroup: import("react").ForwardRefExoticComponent<ButtonGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1968
|
+
interface ToggleGroupItem {
|
|
1969
|
+
value: string;
|
|
1970
|
+
label?: string;
|
|
1971
|
+
icon?: ReactNode;
|
|
1972
|
+
disabled?: boolean;
|
|
1973
|
+
}
|
|
1974
|
+
interface ToggleGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
|
|
1975
|
+
type: 'single' | 'multiple';
|
|
1976
|
+
value?: string | string[];
|
|
1977
|
+
defaultValue?: string | string[];
|
|
1978
|
+
onValueChange?: (value: string | string[]) => void;
|
|
1979
|
+
items: ToggleGroupItem[];
|
|
1980
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1981
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1982
|
+
disabled?: boolean;
|
|
1983
|
+
}
|
|
1984
|
+
declare const ToggleGroup: import("react").ForwardRefExoticComponent<ToggleGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1985
|
+
type InlineLoadingStatus = 'inactive' | 'active' | 'finished' | 'error';
|
|
1986
|
+
interface InlineLoadingProps extends HTMLAttributes<HTMLDivElement> {
|
|
1987
|
+
status: InlineLoadingStatus;
|
|
1988
|
+
label?: ReactNode;
|
|
1989
|
+
labels?: {
|
|
1990
|
+
active?: string;
|
|
1991
|
+
finished?: string;
|
|
1992
|
+
error?: string;
|
|
1993
|
+
};
|
|
1994
|
+
}
|
|
1995
|
+
declare function InlineLoading({
|
|
1996
|
+
status,
|
|
1997
|
+
label,
|
|
1998
|
+
labels,
|
|
1999
|
+
className,
|
|
2000
|
+
...props
|
|
2001
|
+
}: InlineLoadingProps): import("react").JSX.Element;
|
|
2002
|
+
type NotificationVariant = 'info' | 'success' | 'warning' | 'error';
|
|
2003
|
+
interface NotificationProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
2004
|
+
title: ReactNode;
|
|
2005
|
+
description?: ReactNode;
|
|
2006
|
+
variant?: NotificationVariant;
|
|
2007
|
+
dismissible?: boolean;
|
|
2008
|
+
onDismiss?: () => void;
|
|
2009
|
+
actions?: ReactNode;
|
|
2010
|
+
icon?: ReactNode;
|
|
2011
|
+
labels?: {
|
|
2012
|
+
dismiss?: string;
|
|
2013
|
+
};
|
|
2014
|
+
}
|
|
2015
|
+
declare function Notification({
|
|
2016
|
+
title,
|
|
2017
|
+
description,
|
|
2018
|
+
variant,
|
|
2019
|
+
dismissible,
|
|
2020
|
+
onDismiss,
|
|
2021
|
+
actions,
|
|
2022
|
+
icon,
|
|
2023
|
+
labels,
|
|
2024
|
+
className,
|
|
2025
|
+
...props
|
|
2026
|
+
}: NotificationProps): import("react").JSX.Element;
|
|
2027
|
+
interface ScrollAreaProps extends HTMLAttributes<HTMLDivElement> {
|
|
2028
|
+
/** Max block size of the scroll container (any CSS length). */
|
|
2029
|
+
height?: string;
|
|
2030
|
+
/** Max inline size of the scroll container (any CSS length). */
|
|
2031
|
+
width?: string;
|
|
2032
|
+
/** Which axes may scroll. */
|
|
2033
|
+
orientation?: 'vertical' | 'horizontal' | 'both';
|
|
2034
|
+
/** Edge affordance: box-shadow (default), a mask-image fade (HeroUI ScrollShadow), or none. */
|
|
2035
|
+
edges?: 'shadow' | 'mask' | 'none';
|
|
2036
|
+
children?: ReactNode;
|
|
2037
|
+
}
|
|
2038
|
+
declare function ScrollArea({
|
|
2039
|
+
height,
|
|
2040
|
+
width,
|
|
2041
|
+
orientation,
|
|
2042
|
+
edges,
|
|
2043
|
+
className,
|
|
2044
|
+
style,
|
|
2045
|
+
children,
|
|
2046
|
+
...props
|
|
2047
|
+
}: ScrollAreaProps): import("react").JSX.Element;
|
|
2048
|
+
interface CollapsibleProps {
|
|
2049
|
+
/** Controlled open state. */
|
|
2050
|
+
open?: boolean;
|
|
2051
|
+
/** Initial open state for uncontrolled use. */
|
|
2052
|
+
defaultOpen?: boolean;
|
|
2053
|
+
/** Called whenever the open state should change. */
|
|
2054
|
+
onOpenChange?: (open: boolean) => void;
|
|
2055
|
+
/** Content rendered inside the trigger button. */
|
|
2056
|
+
trigger: ReactNode;
|
|
2057
|
+
/** Disables the trigger. */
|
|
2058
|
+
disabled?: boolean;
|
|
2059
|
+
className?: string;
|
|
2060
|
+
children?: ReactNode;
|
|
2061
|
+
}
|
|
2062
|
+
declare function Collapsible({
|
|
2063
|
+
open,
|
|
2064
|
+
defaultOpen,
|
|
2065
|
+
onOpenChange,
|
|
2066
|
+
trigger,
|
|
2067
|
+
disabled,
|
|
2068
|
+
className,
|
|
2069
|
+
children
|
|
2070
|
+
}: CollapsibleProps): import("react").JSX.Element;
|
|
2071
|
+
interface AspectRatioProps extends HTMLAttributes<HTMLDivElement> {
|
|
2072
|
+
/** Width-to-height ratio (e.g. 16 / 9). Defaults to 16/9. */
|
|
2073
|
+
ratio?: number;
|
|
2074
|
+
children?: ReactNode;
|
|
2075
|
+
}
|
|
2076
|
+
declare function AspectRatio({
|
|
2077
|
+
ratio,
|
|
2078
|
+
className,
|
|
2079
|
+
style,
|
|
2080
|
+
children,
|
|
2081
|
+
...props
|
|
2082
|
+
}: AspectRatioProps): import("react").JSX.Element;
|
|
2083
|
+
interface MenuButtonItem {
|
|
2084
|
+
id: string;
|
|
2085
|
+
label: ReactNode;
|
|
2086
|
+
onSelect?: () => void;
|
|
2087
|
+
disabled?: boolean;
|
|
2088
|
+
}
|
|
2089
|
+
interface MenuButtonProps {
|
|
2090
|
+
label: ReactNode;
|
|
2091
|
+
items: MenuButtonItem[];
|
|
2092
|
+
variant?: 'primary' | 'secondary' | 'ghost';
|
|
2093
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2094
|
+
disabled?: boolean;
|
|
2095
|
+
align?: 'start' | 'end';
|
|
2096
|
+
labels?: {
|
|
2097
|
+
open?: string;
|
|
2098
|
+
};
|
|
2099
|
+
className?: string;
|
|
2100
|
+
}
|
|
2101
|
+
declare function MenuButton({
|
|
2102
|
+
label,
|
|
2103
|
+
items,
|
|
2104
|
+
variant,
|
|
2105
|
+
size,
|
|
2106
|
+
disabled,
|
|
2107
|
+
align,
|
|
2108
|
+
labels,
|
|
2109
|
+
className
|
|
2110
|
+
}: MenuButtonProps): import("react").JSX.Element;
|
|
2111
|
+
type ToggletipPlacement = 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
|
|
2112
|
+
interface ToggletipProps {
|
|
2113
|
+
/** The trigger node (e.g. an info icon). Rendered inside a button. */
|
|
2114
|
+
trigger: ReactNode;
|
|
2115
|
+
/** The popover content. Interactive and selectable. */
|
|
2116
|
+
children: ReactNode;
|
|
2117
|
+
placement?: ToggletipPlacement;
|
|
2118
|
+
defaultOpen?: boolean;
|
|
2119
|
+
open?: boolean;
|
|
2120
|
+
onOpenChange?: (open: boolean) => void;
|
|
2121
|
+
labels?: {
|
|
2122
|
+
label?: string;
|
|
2123
|
+
};
|
|
2124
|
+
className?: string;
|
|
2125
|
+
}
|
|
2126
|
+
declare function Toggletip({
|
|
2127
|
+
trigger,
|
|
2128
|
+
children,
|
|
2129
|
+
placement,
|
|
2130
|
+
defaultOpen,
|
|
2131
|
+
open,
|
|
2132
|
+
onOpenChange,
|
|
2133
|
+
labels,
|
|
2134
|
+
className
|
|
2135
|
+
}: ToggletipProps): import("react").JSX.Element;
|
|
2136
|
+
interface MenubarItem {
|
|
2137
|
+
id: string;
|
|
2138
|
+
label: ReactNode;
|
|
2139
|
+
onSelect?: () => void;
|
|
2140
|
+
disabled?: boolean;
|
|
2141
|
+
}
|
|
2142
|
+
interface MenubarMenu {
|
|
2143
|
+
id: string;
|
|
2144
|
+
label: ReactNode;
|
|
2145
|
+
items: MenubarItem[];
|
|
2146
|
+
}
|
|
2147
|
+
interface MenubarProps {
|
|
2148
|
+
menus: MenubarMenu[];
|
|
2149
|
+
'aria-label': string;
|
|
2150
|
+
className?: string;
|
|
2151
|
+
}
|
|
2152
|
+
declare function Menubar({
|
|
2153
|
+
menus,
|
|
2154
|
+
'aria-label': ariaLabel,
|
|
2155
|
+
className
|
|
2156
|
+
}: MenubarProps): import("react").JSX.Element;
|
|
2157
|
+
interface NavigationMenuItem {
|
|
2158
|
+
id: string;
|
|
2159
|
+
label: ReactNode;
|
|
2160
|
+
href?: string;
|
|
2161
|
+
content?: ReactNode;
|
|
2162
|
+
}
|
|
2163
|
+
interface NavigationMenuProps {
|
|
2164
|
+
items: NavigationMenuItem[];
|
|
2165
|
+
'aria-label'?: string;
|
|
2166
|
+
orientation?: RovingOrientation;
|
|
2167
|
+
className?: string;
|
|
2168
|
+
}
|
|
2169
|
+
declare function NavigationMenu({
|
|
2170
|
+
items,
|
|
2171
|
+
'aria-label': ariaLabel,
|
|
2172
|
+
orientation,
|
|
2173
|
+
className
|
|
2174
|
+
}: NavigationMenuProps): import("react").JSX.Element;
|
|
2175
|
+
interface TreeNode {
|
|
2176
|
+
id: string;
|
|
2177
|
+
label: ReactNode;
|
|
2178
|
+
icon?: ReactNode;
|
|
2179
|
+
children?: TreeNode[];
|
|
2180
|
+
}
|
|
2181
|
+
interface TreeViewProps {
|
|
2182
|
+
items: TreeNode[];
|
|
2183
|
+
selectionMode?: 'single' | 'multi';
|
|
2184
|
+
selected?: string | string[];
|
|
2185
|
+
defaultSelected?: string | string[];
|
|
2186
|
+
onSelectChange?: (selected: string | string[]) => void;
|
|
2187
|
+
expanded?: string[];
|
|
2188
|
+
defaultExpanded?: string[];
|
|
2189
|
+
onExpandedChange?: (expanded: string[]) => void;
|
|
2190
|
+
className?: string;
|
|
2191
|
+
'aria-label'?: string;
|
|
2192
|
+
}
|
|
2193
|
+
declare function TreeView({
|
|
2194
|
+
items,
|
|
2195
|
+
selectionMode,
|
|
2196
|
+
selected,
|
|
2197
|
+
defaultSelected,
|
|
2198
|
+
onSelectChange,
|
|
2199
|
+
expanded,
|
|
2200
|
+
defaultExpanded,
|
|
2201
|
+
onExpandedChange,
|
|
2202
|
+
className,
|
|
2203
|
+
'aria-label': ariaLabel
|
|
2204
|
+
}: TreeViewProps): import("react").JSX.Element;
|
|
2205
|
+
declare const treeViewMessages: {
|
|
2206
|
+
loading: () => string;
|
|
2207
|
+
expand: () => string;
|
|
2208
|
+
collapse: () => string;
|
|
2209
|
+
};
|
|
2210
|
+
interface StructuredListItem {
|
|
2211
|
+
id: string;
|
|
2212
|
+
cells: ReactNode[];
|
|
2213
|
+
selected?: boolean;
|
|
2214
|
+
}
|
|
2215
|
+
interface StructuredListProps {
|
|
2216
|
+
items: StructuredListItem[];
|
|
2217
|
+
headers?: ReactNode[];
|
|
2218
|
+
selectable?: boolean;
|
|
2219
|
+
value?: string;
|
|
2220
|
+
defaultValue?: string;
|
|
2221
|
+
onSelect?: (id: string) => void;
|
|
2222
|
+
className?: string;
|
|
2223
|
+
'aria-label'?: string;
|
|
2224
|
+
}
|
|
2225
|
+
declare function StructuredList(props: StructuredListProps): import("react").JSX.Element;
|
|
2226
|
+
interface ContainedListProps extends HTMLAttributes<HTMLDivElement> {
|
|
2227
|
+
label: ReactNode;
|
|
2228
|
+
kind?: 'on-page' | 'disclosed';
|
|
2229
|
+
action?: ReactNode;
|
|
2230
|
+
}
|
|
2231
|
+
declare function ContainedList({
|
|
2232
|
+
label,
|
|
2233
|
+
kind,
|
|
2234
|
+
action,
|
|
2235
|
+
className,
|
|
2236
|
+
children,
|
|
2237
|
+
...props
|
|
2238
|
+
}: ContainedListProps): import("react").JSX.Element;
|
|
2239
|
+
interface ContainedListItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
2240
|
+
asChild?: boolean;
|
|
2241
|
+
}
|
|
2242
|
+
declare function ContainedListItem({
|
|
2243
|
+
asChild,
|
|
2244
|
+
onClick,
|
|
2245
|
+
className,
|
|
2246
|
+
children,
|
|
2247
|
+
...props
|
|
2248
|
+
}: ContainedListItemProps): import("react").JSX.Element;
|
|
2249
|
+
interface DataListItem {
|
|
2250
|
+
id?: string;
|
|
2251
|
+
label: ReactNode;
|
|
2252
|
+
value: ReactNode;
|
|
2253
|
+
}
|
|
2254
|
+
interface DataListProps extends HTMLAttributes<HTMLDListElement> {
|
|
2255
|
+
items: DataListItem[];
|
|
2256
|
+
orientation?: 'horizontal' | 'vertical';
|
|
2257
|
+
dividers?: boolean;
|
|
2258
|
+
size?: 'sm' | 'md';
|
|
2259
|
+
}
|
|
2260
|
+
declare function DataList({
|
|
2261
|
+
items,
|
|
2262
|
+
orientation,
|
|
2263
|
+
dividers,
|
|
2264
|
+
size,
|
|
2265
|
+
className,
|
|
2266
|
+
...props
|
|
2267
|
+
}: DataListProps): import("react").JSX.Element;
|
|
2268
|
+
interface TimelineItem {
|
|
2269
|
+
id: string;
|
|
2270
|
+
title: ReactNode;
|
|
2271
|
+
description?: ReactNode;
|
|
2272
|
+
time?: string;
|
|
2273
|
+
icon?: ReactNode;
|
|
2274
|
+
status?: 'complete' | 'current' | 'upcoming';
|
|
2275
|
+
}
|
|
2276
|
+
interface TimelineProps extends HTMLAttributes<HTMLOListElement> {
|
|
2277
|
+
items: TimelineItem[];
|
|
2278
|
+
orientation?: 'vertical' | 'horizontal';
|
|
2279
|
+
}
|
|
2280
|
+
declare function Timeline({
|
|
2281
|
+
items,
|
|
2282
|
+
orientation,
|
|
2283
|
+
className,
|
|
2284
|
+
...props
|
|
2285
|
+
}: TimelineProps): import("react").JSX.Element;
|
|
2286
|
+
interface ItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
2287
|
+
asChild?: boolean;
|
|
2288
|
+
variant?: 'default' | 'muted';
|
|
2289
|
+
size?: 'sm' | 'md';
|
|
2290
|
+
}
|
|
2291
|
+
declare function Item({
|
|
2292
|
+
asChild,
|
|
2293
|
+
variant,
|
|
2294
|
+
size,
|
|
2295
|
+
className,
|
|
2296
|
+
children,
|
|
2297
|
+
...props
|
|
2298
|
+
}: ItemProps): import("react").JSX.Element;
|
|
2299
|
+
interface ItemMediaProps extends HTMLAttributes<HTMLDivElement> {}
|
|
2300
|
+
declare function ItemMedia({
|
|
2301
|
+
className,
|
|
2302
|
+
children,
|
|
2303
|
+
...props
|
|
2304
|
+
}: ItemMediaProps): import("react").JSX.Element;
|
|
2305
|
+
interface ItemContentProps extends HTMLAttributes<HTMLDivElement> {}
|
|
2306
|
+
declare function ItemContent({
|
|
2307
|
+
className,
|
|
2308
|
+
children,
|
|
2309
|
+
...props
|
|
2310
|
+
}: ItemContentProps): import("react").JSX.Element;
|
|
2311
|
+
interface ItemTitleProps extends HTMLAttributes<HTMLDivElement> {}
|
|
2312
|
+
declare function ItemTitle({
|
|
2313
|
+
className,
|
|
2314
|
+
children,
|
|
2315
|
+
...props
|
|
2316
|
+
}: ItemTitleProps): import("react").JSX.Element;
|
|
2317
|
+
interface ItemDescriptionProps extends HTMLAttributes<HTMLParagraphElement> {}
|
|
2318
|
+
declare function ItemDescription({
|
|
2319
|
+
className,
|
|
2320
|
+
children,
|
|
2321
|
+
...props
|
|
2322
|
+
}: ItemDescriptionProps): import("react").JSX.Element;
|
|
2323
|
+
interface ItemActionsProps extends HTMLAttributes<HTMLDivElement> {}
|
|
2324
|
+
declare function ItemActions({
|
|
2325
|
+
className,
|
|
2326
|
+
children,
|
|
2327
|
+
...props
|
|
2328
|
+
}: ItemActionsProps): import("react").JSX.Element;
|
|
2329
|
+
interface CalendarLabels {
|
|
2330
|
+
previousMonth?: string;
|
|
2331
|
+
nextMonth?: string;
|
|
2332
|
+
}
|
|
2333
|
+
interface CalendarProps {
|
|
2334
|
+
value?: Date | null;
|
|
2335
|
+
defaultValue?: Date;
|
|
2336
|
+
onValueChange?: (date: Date) => void;
|
|
2337
|
+
min?: Date;
|
|
2338
|
+
max?: Date;
|
|
2339
|
+
disabled?: (date: Date) => boolean;
|
|
2340
|
+
locale?: string;
|
|
2341
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2342
|
+
labels?: CalendarLabels;
|
|
2343
|
+
className?: string;
|
|
2344
|
+
/** Highlight predicate for range previews (date-range-picker). */
|
|
2345
|
+
isInRange?: (date: Date) => boolean;
|
|
2346
|
+
/** Range endpoint markers for styling. */
|
|
2347
|
+
isRangeStart?: (date: Date) => boolean;
|
|
2348
|
+
isRangeEnd?: (date: Date) => boolean;
|
|
2349
|
+
/** Hover handler for range preview. */
|
|
2350
|
+
onDayHover?: (date: Date | null) => void;
|
|
2351
|
+
/** Controlled view month (0-11). When set, the calendar's displayed month is owned by the parent. */
|
|
2352
|
+
month?: number;
|
|
2353
|
+
/** Controlled view year. */
|
|
2354
|
+
year?: number;
|
|
2355
|
+
/** Called when the user navigates months (prev/next or keyboard). */
|
|
2356
|
+
onViewChange?: (view: {
|
|
2357
|
+
month: number;
|
|
2358
|
+
year: number;
|
|
2359
|
+
}) => void;
|
|
2360
|
+
/** Hide the prev/next header nav (parent drives navigation). */
|
|
2361
|
+
hideNav?: boolean;
|
|
2362
|
+
}
|
|
2363
|
+
declare function Calendar({
|
|
2364
|
+
value,
|
|
2365
|
+
defaultValue,
|
|
2366
|
+
onValueChange,
|
|
2367
|
+
min,
|
|
2368
|
+
max,
|
|
2369
|
+
disabled,
|
|
2370
|
+
locale: localeProp,
|
|
2371
|
+
size,
|
|
2372
|
+
labels,
|
|
2373
|
+
className,
|
|
2374
|
+
isInRange,
|
|
2375
|
+
isRangeStart,
|
|
2376
|
+
isRangeEnd,
|
|
2377
|
+
onDayHover,
|
|
2378
|
+
month,
|
|
2379
|
+
year,
|
|
2380
|
+
onViewChange,
|
|
2381
|
+
hideNav
|
|
2382
|
+
}: CalendarProps): import("react").JSX.Element;
|
|
2383
|
+
interface DateRange {
|
|
2384
|
+
start: Date;
|
|
2385
|
+
end: Date;
|
|
2386
|
+
}
|
|
2387
|
+
interface DateRangePreset {
|
|
2388
|
+
label: string;
|
|
2389
|
+
range: DateRange;
|
|
2390
|
+
}
|
|
2391
|
+
interface DateRangePickerLabels {
|
|
2392
|
+
placeholder?: string;
|
|
2393
|
+
start?: string;
|
|
2394
|
+
end?: string;
|
|
2395
|
+
apply?: string;
|
|
2396
|
+
clear?: string;
|
|
2397
|
+
previousMonth?: string;
|
|
2398
|
+
nextMonth?: string;
|
|
2399
|
+
}
|
|
2400
|
+
interface DateRangePickerProps {
|
|
2401
|
+
value?: DateRange | null;
|
|
2402
|
+
defaultValue?: DateRange;
|
|
2403
|
+
onValueChange?: (range: DateRange) => void;
|
|
2404
|
+
min?: Date;
|
|
2405
|
+
max?: Date;
|
|
2406
|
+
disabled?: (date: Date) => boolean;
|
|
2407
|
+
presets?: DateRangePreset[];
|
|
2408
|
+
locale?: string;
|
|
2409
|
+
placeholder?: string;
|
|
2410
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2411
|
+
labels?: DateRangePickerLabels;
|
|
2412
|
+
className?: string;
|
|
2413
|
+
}
|
|
2414
|
+
declare function DateRangePicker({
|
|
2415
|
+
value,
|
|
2416
|
+
defaultValue,
|
|
2417
|
+
onValueChange,
|
|
2418
|
+
min,
|
|
2419
|
+
max,
|
|
2420
|
+
disabled,
|
|
2421
|
+
presets,
|
|
2422
|
+
locale: localeProp,
|
|
2423
|
+
placeholder,
|
|
2424
|
+
size,
|
|
2425
|
+
labels,
|
|
2426
|
+
className
|
|
2427
|
+
}: DateRangePickerProps): import("react").JSX.Element;
|
|
2428
|
+
interface ColorPickerLabels {
|
|
2429
|
+
hue?: string;
|
|
2430
|
+
alpha?: string;
|
|
2431
|
+
colorArea?: string;
|
|
2432
|
+
eyedropper?: string;
|
|
2433
|
+
}
|
|
2434
|
+
interface ColorPickerProps {
|
|
2435
|
+
value?: string;
|
|
2436
|
+
defaultValue?: string;
|
|
2437
|
+
onValueChange?: (value: string) => void;
|
|
2438
|
+
presets?: string[];
|
|
2439
|
+
alpha?: boolean;
|
|
2440
|
+
label?: string;
|
|
2441
|
+
disabled?: boolean;
|
|
2442
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2443
|
+
className?: string;
|
|
2444
|
+
labels?: ColorPickerLabels;
|
|
2445
|
+
}
|
|
2446
|
+
declare function ColorPicker({
|
|
2447
|
+
value,
|
|
2448
|
+
defaultValue,
|
|
2449
|
+
onValueChange,
|
|
2450
|
+
presets,
|
|
2451
|
+
alpha,
|
|
2452
|
+
label,
|
|
2453
|
+
disabled,
|
|
2454
|
+
size,
|
|
2455
|
+
className,
|
|
2456
|
+
labels
|
|
2457
|
+
}: ColorPickerProps): import("react").JSX.Element;
|
|
2458
|
+
interface CarouselLabels {
|
|
2459
|
+
region?: string;
|
|
2460
|
+
previous?: string;
|
|
2461
|
+
next?: string;
|
|
2462
|
+
}
|
|
2463
|
+
interface CarouselProps {
|
|
2464
|
+
children?: ReactNode;
|
|
2465
|
+
slides?: ReactNode[];
|
|
2466
|
+
index?: number;
|
|
2467
|
+
defaultIndex?: number;
|
|
2468
|
+
onIndexChange?: (index: number) => void;
|
|
2469
|
+
loop?: boolean;
|
|
2470
|
+
className?: string;
|
|
2471
|
+
labels?: CarouselLabels;
|
|
2472
|
+
}
|
|
2473
|
+
declare function Carousel({
|
|
2474
|
+
children,
|
|
2475
|
+
slides,
|
|
2476
|
+
index,
|
|
2477
|
+
defaultIndex,
|
|
2478
|
+
onIndexChange,
|
|
2479
|
+
loop,
|
|
2480
|
+
className,
|
|
2481
|
+
labels
|
|
2482
|
+
}: CarouselProps): import("react").JSX.Element;
|
|
2483
|
+
interface ResizableProps {
|
|
2484
|
+
children: ReactNode;
|
|
2485
|
+
orientation?: 'horizontal' | 'vertical';
|
|
2486
|
+
defaultRatio?: number;
|
|
2487
|
+
ratio?: number;
|
|
2488
|
+
minRatio?: number;
|
|
2489
|
+
maxRatio?: number;
|
|
2490
|
+
onRatioChange?: (ratio: number) => void;
|
|
2491
|
+
className?: string;
|
|
2492
|
+
label?: string;
|
|
2493
|
+
}
|
|
2494
|
+
declare function Resizable({
|
|
2495
|
+
children,
|
|
2496
|
+
orientation,
|
|
2497
|
+
defaultRatio,
|
|
2498
|
+
ratio,
|
|
2499
|
+
minRatio,
|
|
2500
|
+
maxRatio,
|
|
2501
|
+
onRatioChange,
|
|
2502
|
+
className,
|
|
2503
|
+
label
|
|
2504
|
+
}: ResizableProps): import("react").JSX.Element;
|
|
2505
|
+
interface DockItem {
|
|
2506
|
+
label: string;
|
|
2507
|
+
icon: React.ReactNode;
|
|
2508
|
+
onClick?: () => void;
|
|
2509
|
+
href?: string;
|
|
2510
|
+
}
|
|
2511
|
+
interface DockProps {
|
|
2512
|
+
items: DockItem[];
|
|
2513
|
+
activeIndex?: number;
|
|
2514
|
+
className?: string;
|
|
2515
|
+
}
|
|
2516
|
+
declare function Dock({
|
|
2517
|
+
items,
|
|
2518
|
+
activeIndex,
|
|
2519
|
+
className
|
|
2520
|
+
}: DockProps): import("react").JSX.Element;
|
|
2521
|
+
interface DrawerProps {
|
|
2522
|
+
/** Controlled open state. */
|
|
2523
|
+
open?: boolean;
|
|
2524
|
+
/** Initial open state for uncontrolled use. */
|
|
2525
|
+
defaultOpen?: boolean;
|
|
2526
|
+
/** Called whenever the open state should change. */
|
|
2527
|
+
onOpenChange?: (open: boolean) => void;
|
|
2528
|
+
/** Edge the panel is anchored to. Drives the slide direction. */
|
|
2529
|
+
side?: 'start' | 'end' | 'top' | 'bottom';
|
|
2530
|
+
/** Panel size along its cross axis (width for start/end, height for top/bottom). */
|
|
2531
|
+
size?: string;
|
|
2532
|
+
/** Accessible title shown in the header and used to label the dialog. */
|
|
2533
|
+
title?: ReactNode;
|
|
2534
|
+
/** Optional supporting description shown under the title. */
|
|
2535
|
+
description?: ReactNode;
|
|
2536
|
+
children?: ReactNode;
|
|
2537
|
+
labels?: {
|
|
2538
|
+
close?: string;
|
|
2539
|
+
};
|
|
2540
|
+
className?: string;
|
|
2541
|
+
/** Allow dragging the header toward its edge to dismiss (opt-in; CSS translate, no animation library). */
|
|
2542
|
+
swipeToDismiss?: boolean;
|
|
2543
|
+
}
|
|
2544
|
+
/**
|
|
2545
|
+
* Edge-anchored panel. Unlike Sheet's gesture-driven sheet, Drawer is a plain dialog surface that
|
|
2546
|
+
* slides in from an edge with CSS-only enter/exit motion (data-state + @starting-style). Open state
|
|
2547
|
+
* is controllable; while open, body scroll is locked, focus is trapped, and outside pointer /
|
|
2548
|
+
* Escape dismiss it.
|
|
2549
|
+
*/
|
|
2550
|
+
declare function Drawer({
|
|
2551
|
+
open,
|
|
2552
|
+
defaultOpen,
|
|
2553
|
+
onOpenChange,
|
|
2554
|
+
side,
|
|
2555
|
+
size,
|
|
2556
|
+
title,
|
|
2557
|
+
description,
|
|
2558
|
+
children,
|
|
2559
|
+
labels,
|
|
2560
|
+
className,
|
|
2561
|
+
swipeToDismiss
|
|
2562
|
+
}: DrawerProps): import("react").JSX.Element;
|
|
2563
|
+
interface NativeSelectOption {
|
|
2564
|
+
value: string;
|
|
2565
|
+
label: string;
|
|
2566
|
+
disabled?: boolean;
|
|
2567
|
+
}
|
|
2568
|
+
interface NativeSelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
2569
|
+
/** Options to render. Alternatively pass `<option>` children. */
|
|
2570
|
+
options?: NativeSelectOption[];
|
|
2571
|
+
/** Raw `<option>` children (used when `options` is not provided). */
|
|
2572
|
+
children?: ReactNode;
|
|
2573
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2574
|
+
/** Marks the control as invalid for error styling and a11y. */
|
|
2575
|
+
invalid?: boolean;
|
|
2576
|
+
/** Placeholder rendered as a disabled, hidden first option. */
|
|
2577
|
+
placeholder?: string;
|
|
2578
|
+
}
|
|
2579
|
+
/**
|
|
2580
|
+
* A styled native `<select>` — keeps the platform's open/close, keyboard, and form behavior, and
|
|
2581
|
+
* layers on a custom chevron and focus/invalid rings via CSS only. No JS interactivity, so no
|
|
2582
|
+
* signals: the browser owns all state. Distinct from the custom-rendered `Select` listbox.
|
|
2583
|
+
*/
|
|
2584
|
+
declare function NativeSelect({
|
|
2585
|
+
options,
|
|
2586
|
+
children,
|
|
2587
|
+
size,
|
|
2588
|
+
invalid,
|
|
2589
|
+
disabled,
|
|
2590
|
+
placeholder,
|
|
2591
|
+
value,
|
|
2592
|
+
defaultValue,
|
|
2593
|
+
className,
|
|
2594
|
+
...props
|
|
2595
|
+
}: NativeSelectProps): import("react").JSX.Element;
|
|
2596
|
+
type CodeLang = 'bash' | 'css' | 'js' | 'ts';
|
|
2597
|
+
interface CodeSnippetProps {
|
|
2598
|
+
/** The code to display (and copy). */
|
|
2599
|
+
code: string;
|
|
2600
|
+
/** inline = a <code> span; single = one-line <pre>; multi = multi-line <pre>. */
|
|
2601
|
+
variant?: 'inline' | 'single' | 'multi';
|
|
2602
|
+
/**
|
|
2603
|
+
* Enables lightweight, dependency-free syntax highlighting for the block
|
|
2604
|
+
* variants. Omit for plain text. Inline code is never highlighted.
|
|
2605
|
+
*/
|
|
2606
|
+
language?: CodeLang;
|
|
2607
|
+
/**
|
|
2608
|
+
* Renders terminal-window chrome (a title bar with traffic-light dots). Pair
|
|
2609
|
+
* with `language="bash"` for a shell transcript. Block variants only.
|
|
2610
|
+
*/
|
|
2611
|
+
terminal?: boolean;
|
|
2612
|
+
/** Optional label shown in the terminal title bar. */
|
|
2613
|
+
title?: string;
|
|
2614
|
+
/** Show line numbers (multi only; ignored when `language` is set). */
|
|
2615
|
+
showLineNumbers?: boolean;
|
|
2616
|
+
/** Show the copy-to-clipboard button. Defaults true for single/multi, false for inline. */
|
|
2617
|
+
showCopyButton?: boolean;
|
|
2618
|
+
labels?: {
|
|
2619
|
+
copy?: string;
|
|
2620
|
+
copied?: string;
|
|
2621
|
+
};
|
|
2622
|
+
className?: string;
|
|
2623
|
+
}
|
|
2624
|
+
/**
|
|
2625
|
+
* Code display with optional, dependency-free syntax highlighting. `inline`
|
|
2626
|
+
* renders a `<code>` chip in flowing text; `single` a horizontally scrolling
|
|
2627
|
+
* one-liner; `multi` a block with optional line numbers. Pass `language` to
|
|
2628
|
+
* colour bash/css/js/ts, and `terminal` for shell-window chrome. An optional
|
|
2629
|
+
* copy button uses `useClipboard` to copy the raw `code`.
|
|
2630
|
+
*/
|
|
2631
|
+
declare function CodeSnippet({
|
|
2632
|
+
code,
|
|
2633
|
+
variant,
|
|
2634
|
+
language,
|
|
2635
|
+
terminal,
|
|
2636
|
+
title,
|
|
2637
|
+
showLineNumbers,
|
|
2638
|
+
showCopyButton,
|
|
2639
|
+
labels,
|
|
2640
|
+
className
|
|
2641
|
+
}: CodeSnippetProps): import("react").JSX.Element;
|
|
2642
|
+
type StepState = 'pending' | 'active' | 'complete' | 'error';
|
|
2643
|
+
interface Step {
|
|
2644
|
+
label: string;
|
|
2645
|
+
state?: StepState;
|
|
2646
|
+
}
|
|
2647
|
+
interface StepsProps {
|
|
2648
|
+
steps: Step[];
|
|
2649
|
+
activeStep?: number;
|
|
2650
|
+
orientation?: 'horizontal' | 'vertical';
|
|
2651
|
+
className?: string;
|
|
2652
|
+
}
|
|
2653
|
+
declare function Steps({
|
|
2654
|
+
steps,
|
|
2655
|
+
activeStep: controlledActiveStep,
|
|
2656
|
+
orientation,
|
|
2657
|
+
className
|
|
2658
|
+
}: StepsProps): import("react").JSX.Element;
|
|
2659
|
+
interface TileProps {
|
|
2660
|
+
/** Identifies this tile within a group. */
|
|
2661
|
+
value: string;
|
|
2662
|
+
/** Controlled selected state. */
|
|
2663
|
+
selected?: boolean;
|
|
2664
|
+
/** Initial selected state for uncontrolled use. */
|
|
2665
|
+
defaultSelected?: boolean;
|
|
2666
|
+
/** Called with this tile's value whenever it is toggled on (or off for multi). */
|
|
2667
|
+
onSelect?: (value: string) => void;
|
|
2668
|
+
/** Single = radio semantics (toggle on); multi = checkbox semantics (toggle on/off). */
|
|
2669
|
+
selectable?: 'single' | 'multi';
|
|
2670
|
+
disabled?: boolean;
|
|
2671
|
+
/** Optional leading icon/visual. */
|
|
2672
|
+
icon?: ReactNode;
|
|
2673
|
+
/** Render as the child element instead of a div (Radix-style composition). */
|
|
2674
|
+
asChild?: boolean;
|
|
2675
|
+
children?: ReactNode;
|
|
2676
|
+
className?: string;
|
|
2677
|
+
}
|
|
2678
|
+
/**
|
|
2679
|
+
* A selectable card. Renders with radio (single) or checkbox (multi) semantics and toggles via
|
|
2680
|
+
* click or Space/Enter. Selection is controllable; `data-selected` drives the visuals via CSS.
|
|
2681
|
+
*/
|
|
2682
|
+
declare function Tile({
|
|
2683
|
+
value,
|
|
2684
|
+
selected,
|
|
2685
|
+
defaultSelected,
|
|
2686
|
+
onSelect,
|
|
2687
|
+
selectable,
|
|
2688
|
+
disabled,
|
|
2689
|
+
icon,
|
|
2690
|
+
asChild,
|
|
2691
|
+
children,
|
|
2692
|
+
className
|
|
2693
|
+
}: TileProps): import("react").JSX.Element;
|
|
2694
|
+
type IndicatorPlacement = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
|
|
2695
|
+
interface IndicatorProps {
|
|
2696
|
+
children: React.ReactNode;
|
|
2697
|
+
overlay: React.ReactNode;
|
|
2698
|
+
placement?: IndicatorPlacement;
|
|
2699
|
+
className?: string;
|
|
2700
|
+
}
|
|
2701
|
+
declare function Indicator({
|
|
2702
|
+
children,
|
|
2703
|
+
overlay,
|
|
2704
|
+
placement,
|
|
2705
|
+
className
|
|
2706
|
+
}: IndicatorProps): import("react").JSX.Element;
|
|
2707
|
+
type JoinOrientation = 'horizontal' | 'vertical';
|
|
2708
|
+
interface JoinProps {
|
|
2709
|
+
children: React.ReactNode;
|
|
2710
|
+
orientation?: JoinOrientation;
|
|
2711
|
+
className?: string;
|
|
2712
|
+
}
|
|
2713
|
+
declare function Join({
|
|
2714
|
+
children,
|
|
2715
|
+
orientation,
|
|
2716
|
+
className
|
|
2717
|
+
}: JoinProps): import("react").JSX.Element;
|
|
2718
|
+
interface StackProps {
|
|
2719
|
+
children: React.ReactNode;
|
|
2720
|
+
offset?: number;
|
|
2721
|
+
className?: string;
|
|
2722
|
+
}
|
|
2723
|
+
declare function Stack({
|
|
2724
|
+
children,
|
|
2725
|
+
offset,
|
|
2726
|
+
className
|
|
2727
|
+
}: StackProps): import("react").JSX.Element;
|
|
2728
|
+
interface AppShellProps {
|
|
2729
|
+
/**
|
|
2730
|
+
* Top bar — typically a `<ShellHeader>`. If it is a React element, AppShell
|
|
2731
|
+
* binds its burger (`onMenuClick`/`menuExpanded`) to the nav open state so the
|
|
2732
|
+
* header button toggles the nav out of the box.
|
|
2733
|
+
*/
|
|
2734
|
+
header: ReactNode;
|
|
2735
|
+
/** Side navigation — typically a `<SideNav>`. Fills full height and scrolls internally. */
|
|
2736
|
+
nav?: ReactNode;
|
|
2737
|
+
/** Main content. Lives in the single scroll container. */
|
|
2738
|
+
children: ReactNode;
|
|
2739
|
+
/** Optional footer pinned below the content area. */
|
|
2740
|
+
footer?: ReactNode;
|
|
2741
|
+
/** Controlled nav open/visible state. Omit for uncontrolled (see `defaultOpen`). */
|
|
2742
|
+
open?: boolean;
|
|
2743
|
+
/** Initial open state when uncontrolled. Defaults to open on desktop, closed on small screens. */
|
|
2744
|
+
defaultOpen?: boolean;
|
|
2745
|
+
/** Fired when the nav requests open/close (burger, Escape, scrim). */
|
|
2746
|
+
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
2747
|
+
className?: string | undefined;
|
|
2748
|
+
}
|
|
2749
|
+
/**
|
|
2750
|
+
* App shell: composes a header + side navigation + main content into one
|
|
2751
|
+
* sticky-header, full-height-nav, single-scroll-container layout (#11). The
|
|
2752
|
+
* header burger toggles the nav with an animated show/hide that honors
|
|
2753
|
+
* `prefers-reduced-motion` (via `--cascivo-motion-*`), toggles `inert` on the
|
|
2754
|
+
* hidden nav so it leaves the tab order, and renders a mobile drawer + scrim
|
|
2755
|
+
* (#12). Below `lg` (64rem) the nav is an overlay drawer; at `lg`+ it is an
|
|
2756
|
+
* in-flow column whose width animates between its open width and 0.
|
|
2757
|
+
*
|
|
2758
|
+
* Rail vs full-hide reconcile cleanly: AppShell owns the full show/hide (this
|
|
2759
|
+
* `open` state); the SideNav you pass owns its own rail collapse
|
|
2760
|
+
* (`showCollapseToggle`). They compose on different axes and never fight.
|
|
2761
|
+
*/
|
|
2762
|
+
declare function AppShell({
|
|
2763
|
+
header,
|
|
2764
|
+
nav,
|
|
2765
|
+
children,
|
|
2766
|
+
footer,
|
|
2767
|
+
open,
|
|
2768
|
+
defaultOpen,
|
|
2769
|
+
onOpenChange,
|
|
2770
|
+
className
|
|
2771
|
+
}: AppShellProps): import("react").JSX.Element;
|
|
2772
|
+
type ChatBubbleSide = 'start' | 'end';
|
|
2773
|
+
interface ChatBubbleProps {
|
|
2774
|
+
children: React.ReactNode;
|
|
2775
|
+
side?: ChatBubbleSide;
|
|
2776
|
+
avatar?: React.ReactNode;
|
|
2777
|
+
name?: string;
|
|
2778
|
+
time?: string;
|
|
2779
|
+
className?: string;
|
|
2780
|
+
}
|
|
2781
|
+
declare function ChatBubble({
|
|
2782
|
+
children,
|
|
2783
|
+
side,
|
|
2784
|
+
avatar,
|
|
2785
|
+
name,
|
|
2786
|
+
time,
|
|
2787
|
+
className
|
|
2788
|
+
}: ChatBubbleProps): import("react").JSX.Element;
|
|
2789
|
+
type RadialProgressSize = 'sm' | 'md' | 'lg';
|
|
2790
|
+
type RadialProgressVariant = 'primary' | 'info' | 'success' | 'warning' | 'error';
|
|
2791
|
+
interface RadialProgressProps {
|
|
2792
|
+
value: number;
|
|
2793
|
+
size?: RadialProgressSize;
|
|
2794
|
+
variant?: RadialProgressVariant;
|
|
2795
|
+
children?: React.ReactNode;
|
|
2796
|
+
'aria-label'?: string;
|
|
2797
|
+
className?: string;
|
|
2798
|
+
}
|
|
2799
|
+
declare function RadialProgress({
|
|
2800
|
+
value,
|
|
2801
|
+
size,
|
|
2802
|
+
variant,
|
|
2803
|
+
children,
|
|
2804
|
+
className,
|
|
2805
|
+
...aria
|
|
2806
|
+
}: RadialProgressProps): import("react").JSX.Element;
|
|
2807
|
+
type SwapMode = 'rotate' | 'flip';
|
|
2808
|
+
interface SwapProps {
|
|
2809
|
+
on: React.ReactNode;
|
|
2810
|
+
off: React.ReactNode;
|
|
2811
|
+
checked?: boolean;
|
|
2812
|
+
onChange?: (checked: boolean) => void;
|
|
2813
|
+
mode?: SwapMode;
|
|
2814
|
+
'aria-label'?: string;
|
|
2815
|
+
className?: string;
|
|
2816
|
+
}
|
|
2817
|
+
declare function Swap({
|
|
2818
|
+
on,
|
|
2819
|
+
off,
|
|
2820
|
+
checked,
|
|
2821
|
+
onChange,
|
|
2822
|
+
mode,
|
|
2823
|
+
className,
|
|
2824
|
+
...aria
|
|
2825
|
+
}: SwapProps): import("react").JSX.Element;
|
|
2826
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionItemProps, AccordionProps, AccordionTrigger, Alert, AlertDialog, AlertDialogLabels, AlertDialogProps, AlertProps, AppShell, AppShellProps, AspectRatio, AspectRatioProps, Avatar, AvatarGroup, AvatarGroupLabels, AvatarGroupProps, AvatarProps, Badge, BadgeProps, Blockquote, BlockquoteProps, Breadcrumb, BreadcrumbItem, BreadcrumbProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, Calendar, CalendarLabels, CalendarProps, Card, CardContent, CardContentProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardProps, CardTitle, CardTitleProps, Carousel, CarouselLabels, CarouselProps, ChatBubble, ChatBubbleProps, ChatBubbleSide, Checkbox, CheckboxCard, CheckboxCardProps, CheckboxProps, Code, type CodeLang, CodeProps, CodeSnippet, CodeSnippetProps, Collapsible, CollapsibleProps, ColorPicker, ColorPickerLabels, ColorPickerProps, Column, Combobox, ComboboxLabels, ComboboxOption, ComboboxProps, CommandGroup, CommandItem, CommandMenu, CommandMenuProps, CommandPage, Comparison, ComparisonProps, ContainedList, ContainedListItem, ContainedListItemProps, ContainedListProps, ContextMenu, ContextMenuItem, ContextMenuItemProps, ContextMenuProps, CopyButton, CopyButtonProps, DataList, DataListItem, DataListProps, DataTable, DataTableLabels, DataTableProps, DatePicker, DatePickerLabels, DatePickerProps, DateRange, DateRangePicker, DateRangePickerLabels, DateRangePickerProps, DateRangePreset, Dock, DockItem, DockProps, Drawer, DrawerProps, Dropdown, DropdownItem, DropdownProps, Editable, EditableProps, EmptyState, EmptyStateProps, ErrorBoundary, Field, FieldProps, FileUploader, FileUploaderLabels, FileUploaderProps, Filter, FilterOption, FilterProps, FilterVariant, FocusScope, Form, FormConfig, FormProps, FormStore, Header, HeaderLabels, HeaderLink, HeaderPanel, HeaderPanelLabels, HeaderPanelProps, HeaderProps, Heading, HeadingLevel, HeadingProps, HeadingSize, HoverCard, HoverCardContent, HoverCardContentProps, HoverCardProps, HoverCardTrigger, HoverCardTriggerProps, IconButton, IconButtonProps, Image, ImageProps, Indicator, IndicatorPlacement, IndicatorProps, InlineLoading, InlineLoadingProps, InlineLoadingStatus, Input, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupProps, InputProps, Item, ItemActions, ItemActionsProps, ItemContent, ItemContentProps, ItemDescription, ItemDescriptionProps, ItemMedia, ItemMediaProps, ItemProps, ItemTitle, ItemTitleProps, Join, JoinOrientation, JoinProps, Kbd, KbdProps, Label, LabelProps, Link, LinkProps, List, ListItem, ListItemProps, ListProps, Menu, MenuButton, MenuButtonItem, MenuButtonProps, MenuItem, MenuItemProps, MenuProps, MenuSeparator, MenuTrigger, MenuTriggerProps, Menubar, MenubarItem, MenubarMenu, MenubarProps, Modal, ModalProps, MultiSelect, MultiSelectLabels, MultiSelectOption, MultiSelectProps, NativeSelect, NativeSelectOption, NativeSelectProps, NavigationMenu, NavigationMenuItem, NavigationMenuProps, Notification, NotificationProps, NotificationVariant, NumberInput, NumberInputProps, OtpInput, OtpInputProps, OverflowMenu, OverflowMenuItem, OverflowMenuProps, Pagination, PaginationLabels, PaginationProps, PasswordInput, PasswordInputLabels, PasswordInputProps, Popover, PopoverContent, PopoverContentProps, PopoverProps, PopoverTrigger, PopoverTriggerProps, Portal, Progress, ProgressBar, ProgressBarProps, ProgressCircle, ProgressCircleProps, ProgressIndicator, ProgressIndicatorProps, ProgressProps, ProgressSize, ProgressStep, ProgressVariant, Prose, ProseProps, QrCode, QrCodeProps, RadialProgress, RadialProgressProps, RadialProgressSize, RadialProgressVariant, Radio, RadioCard, RadioCardGroup, RadioCardGroupProps, RadioCardProps, RadioGroup, RadioGroupProps, RadioProps, RatingGroup, RatingGroupLabels, RatingGroupProps, RelativeTime, RelativeTimeProps, Resizable, ResizableProps, ScrollArea, ScrollAreaProps, Search, SearchProps, SegmentedControl, SegmentedControlOption, SegmentedControlProps, Select, SelectOption, SelectProps, Separator, SeparatorProps, Sheet, SheetProps, ShellHeader, ShellHeaderAction, ShellHeaderBrand, ShellHeaderLabels, ShellHeaderNavItem, ShellHeaderNavLink, ShellHeaderNavMenu, ShellHeaderNavMenuItem, ShellHeaderProps, SideNav, SideNavGroup, SideNavItem, SideNavProps, SideNavSubItem, Skeleton, SkeletonProps, SkipNavLink, SkipNavLinkProps, SkipNavTarget, SkipNavTargetProps, Slider, SliderProps, SortDirection, SortState, Spinner, SpinnerProps, Stack, StackProps, type StandardSchemaV1, Stat, StatProps, Status, StatusProps, Step, StepState, Steps, StepsProps, StructuredList, StructuredListItem, StructuredListProps, SuspenseBoundary, Swap, SwapMode, SwapProps, Switcher, SwitcherEntry, SwitcherLink, SwitcherProps, Tabs, TabsContent, TabsContentProps, TabsList, TabsProps, TabsTrigger, TabsTriggerProps, Tag$1 as Tag, TagProps, TagsInput, TagsInputProps, Text, TextProps, Textarea, TextareaProps, Tile, TileProps, TimePicker, TimePickerProps, Timeline, TimelineItem, TimelineProps, ToastOptions, ToastProvider, ToastVariant, Toc, TocItem, TocProps, Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupProps, ToggleProps, Toggletip, ToggletipPlacement, ToggletipProps, Tooltip, TooltipProps, TreeNode, TreeView, TreeViewProps, UploaderFile, type UsePopoverOptions, type UsePopoverReturn, type UseTocFromRegionOptions, User, UserProps, VisuallyHidden, VisuallyHiddenProps, createForm, dismissAllToasts, fuzzyScore, treeViewMessages, useForm, usePopover, useToast, useTocFromRegion };
|