@furcrer/fullstack-components 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +328 -0
- package/dist/index.js +2067 -0
- package/dist/styles.css +1 -0
- package/dist/types/components/containers/Grid/Grid.d.ts +7 -0
- package/dist/types/components/containers/Grid/Grid.fixture.d.ts +2 -0
- package/dist/types/components/containers/Grid/index.d.ts +2 -0
- package/dist/types/components/containers/Stack/Stack.d.ts +7 -0
- package/dist/types/components/containers/Stack/Stack.fixture.d.ts +2 -0
- package/dist/types/components/containers/Stack/index.d.ts +2 -0
- package/dist/types/components/data/CrudExample/CrudExample.d.ts +4 -0
- package/dist/types/components/data/CrudExample/CrudExample.preview.d.ts +2 -0
- package/dist/types/components/data/CrudExample/index.d.ts +2 -0
- package/dist/types/components/data/ResourceTable/ResourceTable.d.ts +12 -0
- package/dist/types/components/data/ResourceTable/ResourceTable.preview.d.ts +2 -0
- package/dist/types/components/data/ResourceTable/index.d.ts +2 -0
- package/dist/types/components/forms/ColorInput/ColorInput.d.ts +5 -0
- package/dist/types/components/forms/ColorInput/ColorInput.fixture.d.ts +2 -0
- package/dist/types/components/forms/ColorInput/index.d.ts +2 -0
- package/dist/types/components/forms/DateInput/DateInput.d.ts +5 -0
- package/dist/types/components/forms/DateInput/DateInput.fixture.d.ts +2 -0
- package/dist/types/components/forms/DateInput/index.d.ts +2 -0
- package/dist/types/components/forms/FileInput/FileInput.d.ts +4 -0
- package/dist/types/components/forms/FileInput/FileInput.fixture.d.ts +2 -0
- package/dist/types/components/forms/FileInput/index.d.ts +2 -0
- package/dist/types/components/forms/NumberInput/NumberInput.d.ts +4 -0
- package/dist/types/components/forms/NumberInput/NumberInput.fixture.d.ts +2 -0
- package/dist/types/components/forms/NumberInput/index.d.ts +2 -0
- package/dist/types/components/forms/PasswordInput/PasswordInput.d.ts +4 -0
- package/dist/types/components/forms/PasswordInput/PasswordInput.fixture.d.ts +2 -0
- package/dist/types/components/forms/PasswordInput/index.d.ts +2 -0
- package/dist/types/components/forms/RadioGroup/RadioGroup.d.ts +13 -0
- package/dist/types/components/forms/RadioGroup/RadioGroup.fixture.d.ts +2 -0
- package/dist/types/components/forms/RadioGroup/index.d.ts +2 -0
- package/dist/types/components/forms/SearchInput/SearchInput.d.ts +4 -0
- package/dist/types/components/forms/SearchInput/SearchInput.fixture.d.ts +2 -0
- package/dist/types/components/forms/SearchInput/index.d.ts +2 -0
- package/dist/types/components/forms/Slider/Slider.d.ts +5 -0
- package/dist/types/components/forms/Slider/Slider.fixture.d.ts +2 -0
- package/dist/types/components/forms/Slider/index.d.ts +2 -0
- package/dist/types/components/primitives/Accordion/Accordion.d.ts +10 -0
- package/dist/types/components/primitives/Accordion/Accordion.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Accordion/index.d.ts +2 -0
- package/dist/types/components/primitives/Alert/Alert.d.ts +6 -0
- package/dist/types/components/primitives/Alert/Alert.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Alert/index.d.ts +2 -0
- package/dist/types/components/primitives/Avatar/Avatar.d.ts +8 -0
- package/dist/types/components/primitives/Avatar/Avatar.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Avatar/index.d.ts +2 -0
- package/dist/types/components/primitives/Badge/Badge.d.ts +3 -0
- package/dist/types/components/primitives/Badge/Badge.fixture.d.ts +3 -0
- package/dist/types/components/primitives/Badge/Badge.types.d.ts +9 -0
- package/dist/types/components/primitives/Badge/index.d.ts +2 -0
- package/dist/types/components/primitives/Button/Button.d.ts +6 -0
- package/dist/types/components/primitives/Button/Button.fixture.d.ts +3 -0
- package/dist/types/components/primitives/Button/Button.types.d.ts +15 -0
- package/dist/types/components/primitives/Button/index.d.ts +2 -0
- package/dist/types/components/primitives/Card/Card.d.ts +3 -0
- package/dist/types/components/primitives/Card/Card.fixture.d.ts +3 -0
- package/dist/types/components/primitives/Card/Card.types.d.ts +9 -0
- package/dist/types/components/primitives/Card/index.d.ts +2 -0
- package/dist/types/components/primitives/Carousel/Carousel.d.ts +7 -0
- package/dist/types/components/primitives/Carousel/Carousel.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Carousel/index.d.ts +2 -0
- package/dist/types/components/primitives/Checkbox/Checkbox.d.ts +3 -0
- package/dist/types/components/primitives/Checkbox/Checkbox.fixture.d.ts +3 -0
- package/dist/types/components/primitives/Checkbox/Checkbox.types.d.ts +5 -0
- package/dist/types/components/primitives/Checkbox/index.d.ts +2 -0
- package/dist/types/components/primitives/Combobox/Combobox.d.ts +14 -0
- package/dist/types/components/primitives/Combobox/Combobox.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Combobox/index.d.ts +2 -0
- package/dist/types/components/primitives/CommandPalette/CommandPalette.d.ts +14 -0
- package/dist/types/components/primitives/CommandPalette/CommandPalette.fixture.d.ts +2 -0
- package/dist/types/components/primitives/CommandPalette/index.d.ts +2 -0
- package/dist/types/components/primitives/ContextMenu/ContextMenu.d.ts +11 -0
- package/dist/types/components/primitives/ContextMenu/ContextMenu.fixture.d.ts +2 -0
- package/dist/types/components/primitives/ContextMenu/index.d.ts +2 -0
- package/dist/types/components/primitives/DatePicker/DatePicker.d.ts +8 -0
- package/dist/types/components/primitives/DatePicker/DatePicker.fixture.d.ts +2 -0
- package/dist/types/components/primitives/DatePicker/index.d.ts +2 -0
- package/dist/types/components/primitives/Drawer/Drawer.d.ts +9 -0
- package/dist/types/components/primitives/Drawer/Drawer.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Drawer/index.d.ts +2 -0
- package/dist/types/components/primitives/DropdownMenu/DropdownMenu.d.ts +11 -0
- package/dist/types/components/primitives/DropdownMenu/DropdownMenu.fixture.d.ts +2 -0
- package/dist/types/components/primitives/DropdownMenu/index.d.ts +2 -0
- package/dist/types/components/primitives/EmptyState/EmptyState.d.ts +3 -0
- package/dist/types/components/primitives/EmptyState/EmptyState.fixture.d.ts +3 -0
- package/dist/types/components/primitives/EmptyState/EmptyState.types.d.ts +9 -0
- package/dist/types/components/primitives/EmptyState/index.d.ts +2 -0
- package/dist/types/components/primitives/ErrorState/ErrorState.d.ts +3 -0
- package/dist/types/components/primitives/ErrorState/ErrorState.fixture.d.ts +3 -0
- package/dist/types/components/primitives/ErrorState/ErrorState.types.d.ts +9 -0
- package/dist/types/components/primitives/ErrorState/index.d.ts +2 -0
- package/dist/types/components/primitives/FileUpload/FileUpload.d.ts +8 -0
- package/dist/types/components/primitives/FileUpload/FileUpload.fixture.d.ts +2 -0
- package/dist/types/components/primitives/FileUpload/index.d.ts +2 -0
- package/dist/types/components/primitives/FormField/FormField.d.ts +3 -0
- package/dist/types/components/primitives/FormField/FormField.fixture.d.ts +3 -0
- package/dist/types/components/primitives/FormField/FormField.types.d.ts +11 -0
- package/dist/types/components/primitives/FormField/index.d.ts +2 -0
- package/dist/types/components/primitives/Heading/Heading.d.ts +6 -0
- package/dist/types/components/primitives/Heading/Heading.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Heading/index.d.ts +2 -0
- package/dist/types/components/primitives/IconButton/IconButton.d.ts +3 -0
- package/dist/types/components/primitives/IconButton/IconButton.fixture.d.ts +3 -0
- package/dist/types/components/primitives/IconButton/IconButton.types.d.ts +13 -0
- package/dist/types/components/primitives/IconButton/index.d.ts +2 -0
- package/dist/types/components/primitives/Input/Input.d.ts +3 -0
- package/dist/types/components/primitives/Input/Input.fixture.d.ts +3 -0
- package/dist/types/components/primitives/Input/Input.types.d.ts +5 -0
- package/dist/types/components/primitives/Input/index.d.ts +2 -0
- package/dist/types/components/primitives/Label/Label.d.ts +3 -0
- package/dist/types/components/primitives/Label/Label.fixture.d.ts +3 -0
- package/dist/types/components/primitives/Label/Label.types.d.ts +7 -0
- package/dist/types/components/primitives/Label/index.d.ts +2 -0
- package/dist/types/components/primitives/Link/Link.d.ts +5 -0
- package/dist/types/components/primitives/Link/Link.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Link/index.d.ts +2 -0
- package/dist/types/components/primitives/LoadingState/LoadingState.d.ts +3 -0
- package/dist/types/components/primitives/LoadingState/LoadingState.fixture.d.ts +3 -0
- package/dist/types/components/primitives/LoadingState/LoadingState.types.d.ts +7 -0
- package/dist/types/components/primitives/LoadingState/index.d.ts +2 -0
- package/dist/types/components/primitives/Menubar/Menubar.d.ts +9 -0
- package/dist/types/components/primitives/Menubar/Menubar.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Menubar/index.d.ts +2 -0
- package/dist/types/components/primitives/Modal/Modal.d.ts +3 -0
- package/dist/types/components/primitives/Modal/Modal.fixture.d.ts +3 -0
- package/dist/types/components/primitives/Modal/Modal.types.d.ts +13 -0
- package/dist/types/components/primitives/Modal/index.d.ts +2 -0
- package/dist/types/components/primitives/MultiSelect/MultiSelect.d.ts +13 -0
- package/dist/types/components/primitives/MultiSelect/MultiSelect.fixture.d.ts +2 -0
- package/dist/types/components/primitives/MultiSelect/index.d.ts +2 -0
- package/dist/types/components/primitives/NavigationMenu/NavigationMenu.d.ts +10 -0
- package/dist/types/components/primitives/NavigationMenu/NavigationMenu.fixture.d.ts +2 -0
- package/dist/types/components/primitives/NavigationMenu/index.d.ts +2 -0
- package/dist/types/components/primitives/Pagination/Pagination.d.ts +7 -0
- package/dist/types/components/primitives/Pagination/Pagination.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Pagination/index.d.ts +2 -0
- package/dist/types/components/primitives/Popover/Popover.d.ts +8 -0
- package/dist/types/components/primitives/Popover/Popover.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Popover/index.d.ts +2 -0
- package/dist/types/components/primitives/Progress/Progress.d.ts +7 -0
- package/dist/types/components/primitives/Progress/Progress.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Progress/index.d.ts +2 -0
- package/dist/types/components/primitives/Radio/Radio.d.ts +3 -0
- package/dist/types/components/primitives/Radio/Radio.fixture.d.ts +3 -0
- package/dist/types/components/primitives/Radio/Radio.types.d.ts +5 -0
- package/dist/types/components/primitives/Radio/index.d.ts +2 -0
- package/dist/types/components/primitives/ResizablePanel/ResizablePanel.d.ts +8 -0
- package/dist/types/components/primitives/ResizablePanel/ResizablePanel.fixture.d.ts +2 -0
- package/dist/types/components/primitives/ResizablePanel/index.d.ts +2 -0
- package/dist/types/components/primitives/SearchBar/SearchBar.d.ts +5 -0
- package/dist/types/components/primitives/SearchBar/SearchBar.fixture.d.ts +2 -0
- package/dist/types/components/primitives/SearchBar/index.d.ts +2 -0
- package/dist/types/components/primitives/Select/Select.d.ts +3 -0
- package/dist/types/components/primitives/Select/Select.fixture.d.ts +3 -0
- package/dist/types/components/primitives/Select/Select.types.d.ts +15 -0
- package/dist/types/components/primitives/Select/index.d.ts +2 -0
- package/dist/types/components/primitives/Separator/Separator.d.ts +5 -0
- package/dist/types/components/primitives/Separator/Separator.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Separator/index.d.ts +2 -0
- package/dist/types/components/primitives/Sidebar/Sidebar.d.ts +7 -0
- package/dist/types/components/primitives/Sidebar/Sidebar.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Sidebar/index.d.ts +2 -0
- package/dist/types/components/primitives/Skeleton/Skeleton.d.ts +7 -0
- package/dist/types/components/primitives/Skeleton/Skeleton.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Skeleton/index.d.ts +2 -0
- package/dist/types/components/primitives/Spinner/Spinner.d.ts +6 -0
- package/dist/types/components/primitives/Spinner/Spinner.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Spinner/index.d.ts +2 -0
- package/dist/types/components/primitives/StatCard/StatCard.d.ts +3 -0
- package/dist/types/components/primitives/StatCard/StatCard.fixture.d.ts +3 -0
- package/dist/types/components/primitives/StatCard/StatCard.preview.d.ts +3 -0
- package/dist/types/components/primitives/StatCard/StatCard.types.d.ts +13 -0
- package/dist/types/components/primitives/StatCard/index.d.ts +2 -0
- package/dist/types/components/primitives/Stepper/Stepper.d.ts +13 -0
- package/dist/types/components/primitives/Stepper/Stepper.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Stepper/index.d.ts +2 -0
- package/dist/types/components/primitives/Switch/Switch.d.ts +3 -0
- package/dist/types/components/primitives/Switch/Switch.fixture.d.ts +3 -0
- package/dist/types/components/primitives/Switch/Switch.types.d.ts +5 -0
- package/dist/types/components/primitives/Switch/index.d.ts +2 -0
- package/dist/types/components/primitives/Tabs/Tabs.d.ts +14 -0
- package/dist/types/components/primitives/Tabs/Tabs.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Tabs/index.d.ts +2 -0
- package/dist/types/components/primitives/Text/Text.d.ts +6 -0
- package/dist/types/components/primitives/Text/Text.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Text/index.d.ts +2 -0
- package/dist/types/components/primitives/Textarea/Textarea.d.ts +3 -0
- package/dist/types/components/primitives/Textarea/Textarea.fixture.d.ts +3 -0
- package/dist/types/components/primitives/Textarea/Textarea.types.d.ts +7 -0
- package/dist/types/components/primitives/Textarea/index.d.ts +2 -0
- package/dist/types/components/primitives/Toast/Toast.d.ts +8 -0
- package/dist/types/components/primitives/Toast/Toast.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Toast/index.d.ts +2 -0
- package/dist/types/components/primitives/Tooltip/Tooltip.d.ts +6 -0
- package/dist/types/components/primitives/Tooltip/Tooltip.fixture.d.ts +2 -0
- package/dist/types/components/primitives/Tooltip/index.d.ts +2 -0
- package/dist/types/components/primitives/TreeView/TreeView.d.ts +12 -0
- package/dist/types/components/primitives/TreeView/TreeView.fixture.d.ts +2 -0
- package/dist/types/components/primitives/TreeView/index.d.ts +2 -0
- package/dist/types/data/Table.d.ts +13 -0
- package/dist/types/data/Table.fixture.d.ts +2 -0
- package/dist/types/data/api.d.ts +25 -0
- package/dist/types/data/crud.d.ts +20 -0
- package/dist/types/data/index.d.ts +9 -0
- package/dist/types/data/react-crud.d.ts +6 -0
- package/dist/types/data/react-table.d.ts +6 -0
- package/dist/types/data/resource-controller.d.ts +28 -0
- package/dist/types/data/resource-controller.test.d.ts +1 -0
- package/dist/types/data/resource.d.ts +2 -0
- package/dist/types/data/table-controller.d.ts +28 -0
- package/dist/types/data/types.d.ts +36 -0
- package/dist/types/forms/FormActions.d.ts +4 -0
- package/dist/types/forms/FormActions.fixture.d.ts +3 -0
- package/dist/types/forms/FormField.d.ts +8 -0
- package/dist/types/forms/FormField.fixture.d.ts +2 -0
- package/dist/types/forms/adapters.d.ts +19 -0
- package/dist/types/forms/adapters.fixture.d.ts +2 -0
- package/dist/types/forms/field.d.ts +16 -0
- package/dist/types/forms/form-store.d.ts +8 -0
- package/dist/types/forms/index.d.ts +10 -0
- package/dist/types/forms/react-field.d.ts +7 -0
- package/dist/types/forms/react-form.d.ts +10 -0
- package/dist/types/forms/react-form.fixture.d.ts +2 -0
- package/dist/types/forms/react.d.ts +16 -0
- package/dist/types/forms/react.fixture.d.ts +2 -0
- package/dist/types/forms/resource-form.d.ts +13 -0
- package/dist/types/forms/types.d.ts +25 -0
- package/dist/types/generated/component-registry.d.ts +2238 -0
- package/dist/types/generated/public-exports.d.ts +123 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/theme/index.d.ts +4 -0
- package/dist/types/theme/provider.d.ts +20 -0
- package/dist/types/theme/theme.d.ts +47 -0
- package/dist/types/theme/theme.test.d.ts +1 -0
- package/dist/types/tokens/index.d.ts +1 -0
- package/dist/types/tokens/tokens.d.ts +55 -0
- package/dist/types/tooling/discovery/discover.d.ts +9 -0
- package/dist/types/tooling/discovery/discover.test.d.ts +1 -0
- package/dist/types/tooling/discovery/generate-exports.d.ts +6 -0
- package/dist/types/tooling/discovery/generate-registry.d.ts +6 -0
- package/dist/types/tooling/discovery/generate-registry.test.d.ts +1 -0
- package/dist/types/tooling/discovery/generate.d.ts +1 -0
- package/dist/types/tooling/discovery/vite-plugin.d.ts +8 -0
- package/dist/types/types/component.d.ts +12 -0
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/metadata.d.ts +48 -0
- package/package.json +56 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FormFieldProps } from "./FormField.types.js";
|
|
2
|
+
/** Accessible labeled input field with description and validation messaging. */
|
|
3
|
+
export declare function FormField({ label, description, error, size, id, required, className, ...props }: FormFieldProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { InputHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export interface FormFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
3
|
+
/** Label displayed above the field. */
|
|
4
|
+
label: string;
|
|
5
|
+
/** Optional supporting text displayed below the field. */
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
/** Validation message displayed below the field. */
|
|
8
|
+
error?: ReactNode;
|
|
9
|
+
/** Visual size of the field. */
|
|
10
|
+
size?: "small" | "medium" | "large";
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
|
+
}
|
|
6
|
+
export declare function Heading({ children, level, ...props }: HeadingProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export interface IconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
|
|
3
|
+
/** Icon rendered inside the button. */
|
|
4
|
+
icon: ReactNode;
|
|
5
|
+
/** Accessible label describing the action. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Visual style of the button. */
|
|
8
|
+
variant?: "primary" | "secondary" | "ghost";
|
|
9
|
+
/** Controls the button size. */
|
|
10
|
+
size?: "small" | "medium" | "large";
|
|
11
|
+
/** Shows the loading state. */
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { LabelHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
3
|
+
/** Text or content displayed as the field label. */
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** Marks the associated field as required. */
|
|
6
|
+
required?: boolean;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export interface LoadingStateProps extends Omit<HTMLAttributes<HTMLDivElement>, "aria-label"> {
|
|
3
|
+
/** Accessible status text announced while content is loading. */
|
|
4
|
+
label?: ReactNode;
|
|
5
|
+
/** Accessible name for the loading region. */
|
|
6
|
+
"aria-label"?: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface MenubarItem {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
items?: ReactNode[];
|
|
5
|
+
}
|
|
6
|
+
export interface MenubarProps {
|
|
7
|
+
items: MenubarItem[];
|
|
8
|
+
}
|
|
9
|
+
export declare function Menubar({ items }: MenubarProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ModalProps } from "./Modal.types.js";
|
|
2
|
+
/** Accessible modal dialog with Escape handling, focus trapping and focus restoration. */
|
|
3
|
+
export declare function Modal({ open, title, children, onClose, dismissible, ...props }: ModalProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export interface ModalProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
3
|
+
/** Controls whether the modal is open. */
|
|
4
|
+
open: boolean;
|
|
5
|
+
/** Accessible name for the modal dialog. */
|
|
6
|
+
title: string;
|
|
7
|
+
/** Content rendered inside the modal. */
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
/** Called when the modal requests to close. */
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
/** Prevents closing through the Escape key and backdrop interaction. */
|
|
12
|
+
dismissible?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface MultiSelectOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface MultiSelectProps {
|
|
8
|
+
options: MultiSelectOption[];
|
|
9
|
+
value?: string[];
|
|
10
|
+
defaultValue?: string[];
|
|
11
|
+
onValueChange?: (value: string[]) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function MultiSelect({ options, value, defaultValue, onValueChange }: MultiSelectProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface NavigationItem {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
href?: string;
|
|
5
|
+
children?: NavigationItem[];
|
|
6
|
+
}
|
|
7
|
+
export interface NavigationMenuProps {
|
|
8
|
+
items: NavigationItem[];
|
|
9
|
+
}
|
|
10
|
+
export declare function NavigationMenu({ items }: NavigationMenuProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "react";
|
|
2
|
+
export interface PaginationProps extends HTMLAttributes<HTMLElement> {
|
|
3
|
+
page: number;
|
|
4
|
+
pageCount: number;
|
|
5
|
+
onPageChange?: (page: number) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function Pagination({ page, pageCount, onPageChange, ...props }: PaginationProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface PopoverProps {
|
|
3
|
+
trigger: ReactNode;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
onOpenChange?: (open: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function Popover({ trigger, children, open, onOpenChange }: PopoverProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "react";
|
|
2
|
+
export interface ProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
3
|
+
value?: number;
|
|
4
|
+
max?: number;
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function Progress({ value, max, label, ...props }: ProgressProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface ResizablePanelProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
initialSize?: number;
|
|
5
|
+
minSize?: number;
|
|
6
|
+
maxSize?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function ResizablePanel({ children, initialSize, minSize, maxSize }: ResizablePanelProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SelectHTMLAttributes } from "react";
|
|
2
|
+
export interface SelectOption {
|
|
3
|
+
/** Value submitted by the select. */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Text displayed for the option. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Prevents this option from being selected. */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export type SelectProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, "size" | "children"> & {
|
|
11
|
+
/** Visual size of the select. */
|
|
12
|
+
size?: "small" | "medium" | "large";
|
|
13
|
+
/** Options rendered by the select. */
|
|
14
|
+
options?: SelectOption[];
|
|
15
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "react";
|
|
2
|
+
export interface SeparatorProps extends HTMLAttributes<HTMLHRElement> {
|
|
3
|
+
orientation?: "horizontal" | "vertical";
|
|
4
|
+
}
|
|
5
|
+
export declare function Separator({ orientation, ...props }: SeparatorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "react";
|
|
2
|
+
export interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
width?: string | number;
|
|
4
|
+
height?: string | number;
|
|
5
|
+
variant?: "text" | "rect" | "circle";
|
|
6
|
+
}
|
|
7
|
+
export declare function Skeleton({ width, height, variant, style, ...props }: SkeletonProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "react";
|
|
2
|
+
export interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
label?: string;
|
|
4
|
+
size?: "small" | "medium" | "large";
|
|
5
|
+
}
|
|
6
|
+
export declare function Spinner({ label, ...props }: SpinnerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { StatCardProps } from "./StatCard.types.js";
|
|
2
|
+
/** Compact surface for displaying a label, primary value, and optional trend context. */
|
|
3
|
+
export declare function StatCard({ label, value, description, trend, trendValue, className, ...props }: StatCardProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "react";
|
|
2
|
+
export interface StatCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/** Short label describing the statistic. */
|
|
4
|
+
label: string;
|
|
5
|
+
/** Primary value displayed by the card. */
|
|
6
|
+
value: string | number;
|
|
7
|
+
/** Optional supporting context below the primary value. */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Semantic direction of the statistic trend. */
|
|
10
|
+
trend?: "up" | "down" | "neutral";
|
|
11
|
+
/** Optional human-readable trend value, such as "+12.4%". */
|
|
12
|
+
trendValue?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface Step {
|
|
3
|
+
id: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface StepperProps {
|
|
9
|
+
steps: Step[];
|
|
10
|
+
current: number;
|
|
11
|
+
orientation?: "horizontal" | "vertical";
|
|
12
|
+
}
|
|
13
|
+
export declare function Stepper({ steps, current, orientation }: StepperProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface TabItem {
|
|
3
|
+
id: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
content?: ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface TabsProps {
|
|
9
|
+
items: TabItem[];
|
|
10
|
+
value?: string;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
onValueChange?: (value: string) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function Tabs({ items, value, defaultValue, onValueChange }: TabsProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export interface TextProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
as?: "p" | "span" | "div";
|
|
5
|
+
}
|
|
6
|
+
export declare function Text({ children, as, ...props }: TextProps): import("react").JSX.Element;
|