@furcrer/fullstack-components 0.1.0 → 1.0.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 +2 -2
- package/dist/index.js +2015 -1088
- package/dist/styles.css +1 -1
- package/dist/types/components/containers/Grid/Grid.d.ts +1 -0
- package/dist/types/components/containers/Stack/Stack.d.ts +1 -0
- package/dist/types/components/data/CrudExample/CrudExample.d.ts +1 -0
- package/dist/types/components/data/ResourceTable/ResourceTable.d.ts +3 -2
- package/dist/types/components/data/ResultsCount/ResultsCount.d.ts +11 -0
- package/dist/types/components/data/ResultsCount/ResultsCount.fixture.d.ts +2 -0
- package/dist/types/components/data/ResultsCount/ResultsCount.variants.d.ts +11 -0
- package/dist/types/components/data/ResultsCount/index.d.ts +2 -0
- package/dist/types/components/forms/ColorInput/ColorInput.d.ts +6 -0
- package/dist/types/components/forms/DateInput/DateInput.d.ts +9 -0
- package/dist/types/components/forms/FileInput/FileInput.d.ts +6 -0
- package/dist/types/components/forms/MultiSelectFilter/MultiSelectFilter.d.ts +23 -0
- package/dist/types/components/forms/MultiSelectFilter/MultiSelectFilter.fixture.d.ts +2 -0
- package/dist/types/components/forms/MultiSelectFilter/MultiSelectFilter.variants.d.ts +9 -0
- package/dist/types/components/forms/MultiSelectFilter/index.d.ts +2 -0
- package/dist/types/components/forms/NumberInput/NumberInput.d.ts +8 -0
- package/dist/types/components/forms/PasswordInput/PasswordInput.d.ts +6 -0
- package/dist/types/components/forms/RadioGroup/RadioGroup.d.ts +8 -0
- package/dist/types/components/forms/SearchInput/SearchInput.d.ts +4 -0
- package/dist/types/components/forms/SelectFilter/SelectFilter.d.ts +19 -0
- package/dist/types/components/forms/SelectFilter/SelectFilter.fixture.d.ts +2 -0
- package/dist/types/components/forms/SelectFilter/SelectFilter.variants.d.ts +9 -0
- package/dist/types/components/forms/SelectFilter/index.d.ts +2 -0
- package/dist/types/components/forms/Slider/Slider.d.ts +10 -0
- package/dist/types/components/ohm/ActionBar/ActionBar.d.ts +17 -0
- package/dist/types/components/ohm/ActionBar/ActionBar.fixture.d.ts +2 -0
- package/dist/types/components/ohm/ActionBar/ActionBar.variants.d.ts +13 -0
- package/dist/types/components/ohm/ActionBar/index.d.ts +2 -0
- package/dist/types/components/ohm/DataField/DataField.d.ts +27 -0
- package/dist/types/components/ohm/DataField/DataField.fixture.d.ts +2 -0
- package/dist/types/components/ohm/DataField/DataField.variants.d.ts +5 -0
- package/dist/types/components/ohm/DataField/index.d.ts +2 -0
- package/dist/types/components/ohm/DocumentList/DocumentList.d.ts +21 -0
- package/dist/types/components/ohm/DocumentList/DocumentList.fixture.d.ts +2 -0
- package/dist/types/components/ohm/DocumentList/DocumentList.variants.d.ts +5 -0
- package/dist/types/components/ohm/DocumentList/index.d.ts +2 -0
- package/dist/types/components/ohm/EntityCard/EntityCard.d.ts +14 -0
- package/dist/types/components/ohm/EntityCard/EntityCard.fixture.d.ts +2 -0
- package/dist/types/components/ohm/EntityCard/EntityCard.variants.d.ts +7 -0
- package/dist/types/components/ohm/EntityCard/index.d.ts +2 -0
- package/dist/types/components/ohm/Main/Main.d.ts +8 -0
- package/dist/types/components/ohm/Main/Main.fixture.d.ts +3 -0
- package/dist/types/components/ohm/Main/Main.variants.d.ts +5 -0
- package/dist/types/components/ohm/Main/index.d.ts +2 -0
- package/dist/types/components/ohm/Navbar/Navbar.d.ts +115 -0
- package/dist/types/components/ohm/Navbar/Navbar.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Navbar/Navbar.variants.d.ts +75 -0
- package/dist/types/components/ohm/Navbar/index.d.ts +2 -0
- package/dist/types/components/ohm/PageHeader/PageHeader.d.ts +11 -0
- package/dist/types/components/ohm/PageHeader/PageHeader.fixture.d.ts +2 -0
- package/dist/types/components/ohm/PageHeader/PageHeader.variants.d.ts +15 -0
- package/dist/types/components/ohm/PageHeader/index.d.ts +2 -0
- package/dist/types/components/ohm/PhotoGrid/PhotoGrid.d.ts +19 -0
- package/dist/types/components/ohm/PhotoGrid/PhotoGrid.fixture.d.ts +2 -0
- package/dist/types/components/ohm/PhotoGrid/PhotoGrid.variants.d.ts +5 -0
- package/dist/types/components/ohm/PhotoGrid/index.d.ts +2 -0
- package/dist/types/components/ohm/SearchFilterSection/SearchFilterSection.d.ts +20 -0
- package/dist/types/components/ohm/SearchFilterSection/SearchFilterSection.fixture.d.ts +1 -0
- package/dist/types/components/ohm/SearchFilterSection/SearchFilterSection.variants.d.ts +5 -0
- package/dist/types/components/ohm/SearchFilterSection/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/Table.d.ts +5 -0
- package/dist/types/{data → components/ohm/Table}/Table.fixture.d.ts +1 -1
- package/dist/types/components/ohm/Table/Table.types.d.ts +43 -0
- package/dist/types/components/ohm/Table/Table.variants.d.ts +23 -0
- package/dist/types/components/ohm/Table/TableAction/TableAction.d.ts +6 -0
- package/dist/types/components/ohm/Table/TableAction/TableAction.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableAction/TableAction.variants.d.ts +22 -0
- package/dist/types/components/ohm/Table/TableAction/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableActions/TableActions.d.ts +11 -0
- package/dist/types/components/ohm/Table/TableActions/TableActions.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableActions/TableActions.variants.d.ts +28 -0
- package/dist/types/components/ohm/Table/TableActions/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableBody/TableBody.d.ts +6 -0
- package/dist/types/components/ohm/Table/TableBody/TableBody.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableBody/TableBody.variants.d.ts +7 -0
- package/dist/types/components/ohm/Table/TableBody/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableCell/TableCell.d.ts +7 -0
- package/dist/types/components/ohm/Table/TableCell/TableCell.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableCell/TableCell.variants.d.ts +7 -0
- package/dist/types/components/ohm/Table/TableCell/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableEmpty/TableEmpty.d.ts +6 -0
- package/dist/types/components/ohm/Table/TableEmpty/TableEmpty.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableEmpty/TableEmpty.variants.d.ts +8 -0
- package/dist/types/components/ohm/Table/TableEmpty/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableError/TableError.d.ts +6 -0
- package/dist/types/components/ohm/Table/TableError/TableError.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableError/TableError.variants.d.ts +8 -0
- package/dist/types/components/ohm/Table/TableError/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableExpand/TableExpand.d.ts +7 -0
- package/dist/types/components/ohm/Table/TableExpand/TableExpand.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableExpand/TableExpand.variants.d.ts +7 -0
- package/dist/types/components/ohm/Table/TableExpand/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableFooter/TableFooter.d.ts +6 -0
- package/dist/types/components/ohm/Table/TableFooter/TableFooter.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableFooter/TableFooter.variants.d.ts +7 -0
- package/dist/types/components/ohm/Table/TableFooter/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableHeader/TableHeader.d.ts +6 -0
- package/dist/types/components/ohm/Table/TableHeader/TableHeader.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableHeader/TableHeader.variants.d.ts +7 -0
- package/dist/types/components/ohm/Table/TableHeader/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableHeaderCell/TableHeaderCell.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableHeaderCell/TableHeaderCell.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableHeaderCell/TableHeaderCell.variants.d.ts +15 -0
- package/dist/types/components/ohm/Table/TableHeaderCell/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableLoading/TableLoading.d.ts +5 -0
- package/dist/types/components/ohm/Table/TableLoading/TableLoading.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableLoading/TableLoading.variants.d.ts +7 -0
- package/dist/types/components/ohm/Table/TableLoading/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/TablePagination/TablePagination.d.ts +6 -0
- package/dist/types/components/ohm/Table/TablePagination/TablePagination.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TablePagination/TablePagination.variants.d.ts +8 -0
- package/dist/types/components/ohm/Table/TablePagination/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableRow/TableRow.d.ts +8 -0
- package/dist/types/components/ohm/Table/TableRow/TableRow.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableRow/TableRow.variants.d.ts +7 -0
- package/dist/types/components/ohm/Table/TableRow/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableRowActions/TableRowActions.d.ts +6 -0
- package/dist/types/components/ohm/Table/TableRowActions/TableRowActions.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableRowActions/TableRowActions.variants.d.ts +7 -0
- package/dist/types/components/ohm/Table/TableRowActions/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableSelection/TableSelection.d.ts +7 -0
- package/dist/types/components/ohm/Table/TableSelection/TableSelection.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableSelection/TableSelection.variants.d.ts +7 -0
- package/dist/types/components/ohm/Table/TableSelection/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableSort/TableSort.d.ts +8 -0
- package/dist/types/components/ohm/Table/TableSort/TableSort.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableSort/TableSort.variants.d.ts +8 -0
- package/dist/types/components/ohm/Table/TableSort/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableStructure/TableStructure.d.ts +11 -0
- package/dist/types/components/ohm/Table/TableStructure/TableStructure.fixture.d.ts +2 -0
- package/dist/types/components/ohm/Table/TableStructure/TableStructure.variants.d.ts +14 -0
- package/dist/types/components/ohm/Table/TableStructure/index.d.ts +2 -0
- package/dist/types/components/ohm/Table/index.d.ts +21 -0
- package/dist/types/components/overlays/FilterMenu/FilterMenu.d.ts +17 -0
- package/dist/types/components/overlays/FilterMenu/FilterMenu.fixture.d.ts +2 -0
- package/dist/types/components/overlays/FilterMenu/FilterMenu.variants.d.ts +9 -0
- package/dist/types/components/overlays/FilterMenu/index.d.ts +2 -0
- package/dist/types/components/primitives/Accordion/Accordion.d.ts +1 -0
- package/dist/types/components/primitives/Alert/Alert.d.ts +1 -0
- package/dist/types/components/primitives/Avatar/Avatar.d.ts +1 -0
- package/dist/types/components/primitives/Button/Button.types.d.ts +2 -0
- package/dist/types/components/primitives/Button/Button.variants.d.ts +34 -0
- package/dist/types/components/primitives/Carousel/Carousel.d.ts +1 -0
- package/dist/types/components/primitives/Combobox/Combobox.d.ts +1 -0
- package/dist/types/components/primitives/CommandPalette/CommandPalette.d.ts +1 -0
- package/dist/types/components/primitives/ContextMenu/ContextMenu.d.ts +1 -0
- package/dist/types/components/primitives/DatePicker/DatePicker.d.ts +1 -0
- package/dist/types/components/primitives/Drawer/Drawer.d.ts +5 -0
- package/dist/types/components/primitives/DropdownMenu/DropdownMenu.d.ts +1 -0
- package/dist/types/components/primitives/FileUpload/FileUpload.d.ts +1 -0
- package/dist/types/components/primitives/FormField/FormField.variants.d.ts +19 -0
- package/dist/types/components/primitives/Heading/Heading.d.ts +3 -0
- package/dist/types/components/primitives/Link/Link.d.ts +1 -0
- package/dist/types/components/primitives/Menubar/Menubar.d.ts +1 -0
- package/dist/types/components/primitives/MultiSelect/MultiSelect.d.ts +1 -0
- package/dist/types/components/primitives/NavigationMenu/NavigationMenu.d.ts +1 -0
- package/dist/types/components/primitives/Pagination/Pagination.d.ts +4 -0
- package/dist/types/components/primitives/Popover/Popover.d.ts +4 -0
- package/dist/types/components/primitives/Progress/Progress.d.ts +4 -0
- package/dist/types/components/primitives/ResizablePanel/ResizablePanel.d.ts +1 -0
- package/dist/types/components/primitives/SearchBar/SearchBar.d.ts +1 -0
- package/dist/types/components/primitives/Separator/Separator.d.ts +1 -0
- package/dist/types/components/primitives/Sidebar/Sidebar.d.ts +1 -0
- package/dist/types/components/primitives/Skeleton/Skeleton.d.ts +1 -0
- package/dist/types/components/primitives/Spinner/Spinner.d.ts +1 -0
- package/dist/types/components/primitives/Stepper/Stepper.d.ts +1 -0
- package/dist/types/components/primitives/Tabs/Tabs.d.ts +1 -0
- package/dist/types/components/primitives/Text/Text.d.ts +1 -0
- package/dist/types/components/primitives/Toast/Toast.d.ts +1 -0
- package/dist/types/components/primitives/Tooltip/Tooltip.d.ts +2 -0
- package/dist/types/components/primitives/TreeView/TreeView.d.ts +1 -0
- package/dist/types/data/index.d.ts +0 -1
- package/dist/types/forms/FormActions.d.ts +2 -0
- package/dist/types/forms/FormField.d.ts +4 -0
- package/dist/types/forms/react-form.d.ts +6 -0
- package/dist/types/forms/react.d.ts +6 -1
- package/dist/types/generated/component-registry.d.ts +2913 -50
- package/dist/types/generated/public-exports.d.ts +92 -0
- package/dist/types/types/metadata.d.ts +23 -3
- package/package.json +3 -2
- package/dist/types/data/Table.d.ts +0 -13
- package/dist/types/data/resource-controller.test.d.ts +0 -1
- package/dist/types/theme/theme.test.d.ts +0 -1
- package/dist/types/tooling/discovery/discover.d.ts +0 -9
- package/dist/types/tooling/discovery/discover.test.d.ts +0 -1
- package/dist/types/tooling/discovery/generate-exports.d.ts +0 -6
- package/dist/types/tooling/discovery/generate-registry.d.ts +0 -6
- package/dist/types/tooling/discovery/generate-registry.test.d.ts +0 -1
- package/dist/types/tooling/discovery/generate.d.ts +0 -1
- package/dist/types/tooling/discovery/vite-plugin.d.ts +0 -8
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const TableHeaderCellVariants: readonly [{
|
|
2
|
+
readonly id: "default";
|
|
3
|
+
readonly name: "Default";
|
|
4
|
+
readonly props: {
|
|
5
|
+
readonly children: "Názov";
|
|
6
|
+
};
|
|
7
|
+
}, {
|
|
8
|
+
readonly id: "sortable";
|
|
9
|
+
readonly name: "Sortable";
|
|
10
|
+
readonly props: {
|
|
11
|
+
readonly children: "Názov";
|
|
12
|
+
readonly sortable: true;
|
|
13
|
+
readonly sortDirection: "asc";
|
|
14
|
+
};
|
|
15
|
+
}];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface TableRowProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function TableRow({ children, className, selected, onClick }: TableRowProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface TableSelectionProps {
|
|
2
|
+
checked?: boolean;
|
|
3
|
+
onChange?: (checked: boolean) => void;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
"aria-label"?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function TableSelection({ checked, onChange, disabled, "aria-label": ariaLabel }: TableSelectionProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { TableSortDirection } from "../Table.types.js";
|
|
3
|
+
export interface TableSortProps {
|
|
4
|
+
direction?: TableSortDirection;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function TableSort({ direction, onClick, children }: TableSortProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface TableStructureProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface TableCaptionProps {
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function TableStructure({ children, className }: TableStructureProps): import("react").JSX.Element;
|
|
11
|
+
export declare function TableCaption({ children, className }: TableCaptionProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const TableStructureVariants: readonly [{
|
|
2
|
+
readonly id: "default";
|
|
3
|
+
readonly name: "Default";
|
|
4
|
+
readonly props: {
|
|
5
|
+
readonly children: "Obsah";
|
|
6
|
+
};
|
|
7
|
+
}];
|
|
8
|
+
export declare const TableCaptionVariants: readonly [{
|
|
9
|
+
readonly id: "default";
|
|
10
|
+
readonly name: "Default";
|
|
11
|
+
readonly props: {
|
|
12
|
+
readonly children: "Tabuľka";
|
|
13
|
+
};
|
|
14
|
+
}];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { Table } from "./Table.js";
|
|
2
|
+
export { TableAction } from "./TableAction/TableAction.js";
|
|
3
|
+
export type { TableActionProps } from "./TableAction/TableAction.js";
|
|
4
|
+
export { TableActions } from "./TableActions/TableActions.js";
|
|
5
|
+
export type { TableActionsProps, TableActionDefinition } from "./TableActions/TableActions.js";
|
|
6
|
+
export type { TableProps, TableColumn, TableSortState } from "./Table.js";
|
|
7
|
+
export { TableStructure, TableCaption } from "./TableStructure/TableStructure.js";
|
|
8
|
+
export { TableHeader } from "./TableHeader/TableHeader.js";
|
|
9
|
+
export { TableHeaderCell } from "./TableHeaderCell/TableHeaderCell.js";
|
|
10
|
+
export { TableBody } from "./TableBody/TableBody.js";
|
|
11
|
+
export { TableRow } from "./TableRow/TableRow.js";
|
|
12
|
+
export { TableCell } from "./TableCell/TableCell.js";
|
|
13
|
+
export { TableFooter } from "./TableFooter/TableFooter.js";
|
|
14
|
+
export { TableSort } from "./TableSort/TableSort.js";
|
|
15
|
+
export { TableSelection } from "./TableSelection/TableSelection.js";
|
|
16
|
+
export { TableRowActions } from "./TableRowActions/TableRowActions.js";
|
|
17
|
+
export { TableExpand } from "./TableExpand/TableExpand.js";
|
|
18
|
+
export { TablePagination } from "./TablePagination/TablePagination.js";
|
|
19
|
+
export { TableLoading } from "./TableLoading/TableLoading.js";
|
|
20
|
+
export { TableEmpty } from "./TableEmpty/TableEmpty.js";
|
|
21
|
+
export { TableError } from "./TableError/TableError.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface FilterMenuProps {
|
|
3
|
+
/** Content displayed by the trigger button. */
|
|
4
|
+
trigger: ReactNode;
|
|
5
|
+
/** Filter controls rendered inside the popup. */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Controls whether the menu is open. */
|
|
8
|
+
open?: boolean;
|
|
9
|
+
/** Initial open state for uncontrolled usage. */
|
|
10
|
+
defaultOpen?: boolean;
|
|
11
|
+
/** Called when the menu open state changes. */
|
|
12
|
+
onOpenChange?: (open: boolean) => void;
|
|
13
|
+
/** Accessible label for the popup. */
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
}
|
|
16
|
+
/** Generic popover menu for composing one or more filter controls. */
|
|
17
|
+
export declare function FilterMenu({ trigger, children, open, defaultOpen, onOpenChange, ariaLabel, }: FilterMenuProps): import("react").JSX.Element;
|
|
@@ -3,4 +3,5 @@ export interface AlertProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
variant?: "info" | "success" | "warning" | "danger";
|
|
5
5
|
}
|
|
6
|
+
/** undefined */
|
|
6
7
|
export declare function Alert({ children, variant, ...props }: AlertProps): import("react").JSX.Element;
|
|
@@ -5,4 +5,5 @@ export interface AvatarProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, "
|
|
|
5
5
|
fallback?: ReactNode;
|
|
6
6
|
size?: "small" | "medium" | "large";
|
|
7
7
|
}
|
|
8
|
+
/** undefined */
|
|
8
9
|
export declare function Avatar({ src, alt, fallback, ...props }: AvatarProps): import("react").JSX.Element;
|
|
@@ -10,6 +10,8 @@ export interface ButtonProps {
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
/** Shows the loading state. */
|
|
12
12
|
loading?: boolean;
|
|
13
|
+
/** HTML button action type. */
|
|
14
|
+
type?: "button" | "submit" | "reset";
|
|
13
15
|
/** Called when the button is activated. */
|
|
14
16
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
15
17
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const ButtonVariants: ({
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
props: {
|
|
6
|
+
children: string;
|
|
7
|
+
type: string;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
loading?: undefined;
|
|
10
|
+
variant?: undefined;
|
|
11
|
+
};
|
|
12
|
+
} | {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
props: {
|
|
17
|
+
children: string;
|
|
18
|
+
type: string;
|
|
19
|
+
loading: boolean;
|
|
20
|
+
disabled?: undefined;
|
|
21
|
+
variant?: undefined;
|
|
22
|
+
};
|
|
23
|
+
} | {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
description: string;
|
|
27
|
+
props: {
|
|
28
|
+
children: string;
|
|
29
|
+
variant: string;
|
|
30
|
+
type?: undefined;
|
|
31
|
+
disabled?: undefined;
|
|
32
|
+
loading?: undefined;
|
|
33
|
+
};
|
|
34
|
+
})[];
|
|
@@ -11,4 +11,5 @@ export interface ComboboxProps {
|
|
|
11
11
|
placeholder?: string;
|
|
12
12
|
onValueChange?: (value: string) => void;
|
|
13
13
|
}
|
|
14
|
+
/** undefined */
|
|
14
15
|
export declare function Combobox({ options, value, defaultValue, placeholder, onValueChange }: ComboboxProps): import("react").JSX.Element;
|
|
@@ -11,4 +11,5 @@ export interface CommandPaletteProps {
|
|
|
11
11
|
open?: boolean;
|
|
12
12
|
placeholder?: string;
|
|
13
13
|
}
|
|
14
|
+
/** Command palette dialog with a searchable list of actions. */
|
|
14
15
|
export declare function CommandPalette({ items, open, placeholder }: CommandPaletteProps): import("react").JSX.Element | null;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
export interface DrawerProps {
|
|
3
|
+
/** Whether the drawer is visible. */
|
|
3
4
|
open: boolean;
|
|
5
|
+
/** Drawer content. */
|
|
4
6
|
children: ReactNode;
|
|
7
|
+
/** Accessible drawer heading. */
|
|
5
8
|
title?: ReactNode;
|
|
9
|
+
/** Called when the drawer requests closing. */
|
|
6
10
|
onClose?: () => void;
|
|
11
|
+
/** Drawer placement. */
|
|
7
12
|
side?: "left" | "right";
|
|
8
13
|
}
|
|
9
14
|
export declare function Drawer({ open, children, title, onClose, side }: DrawerProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const FormFieldVariants: ({
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
props: {
|
|
6
|
+
label: string;
|
|
7
|
+
description: string;
|
|
8
|
+
error?: undefined;
|
|
9
|
+
};
|
|
10
|
+
} | {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
props: {
|
|
15
|
+
label: string;
|
|
16
|
+
error: string;
|
|
17
|
+
description?: undefined;
|
|
18
|
+
};
|
|
19
|
+
})[];
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
/** Semantic heading with a configurable heading level. */
|
|
2
3
|
export interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
4
|
+
/** Heading content. */
|
|
3
5
|
children: ReactNode;
|
|
6
|
+
/** Semantic heading level. */
|
|
4
7
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
8
|
}
|
|
6
9
|
export declare function Heading({ children, level, ...props }: HeadingProps): import("react").JSX.Element;
|
|
@@ -2,4 +2,5 @@ import type { AnchorHTMLAttributes, ReactNode } from "react";
|
|
|
2
2
|
export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
}
|
|
5
|
+
/** Link wrapper preserving native anchor behavior. */
|
|
5
6
|
export declare function Link({ children, ...props }: LinkProps): import("react").JSX.Element;
|
|
@@ -10,4 +10,5 @@ export interface MultiSelectProps {
|
|
|
10
10
|
defaultValue?: string[];
|
|
11
11
|
onValueChange?: (value: string[]) => void;
|
|
12
12
|
}
|
|
13
|
+
/** Checkbox-based multi-selection control. */
|
|
13
14
|
export declare function MultiSelect({ options, value, defaultValue, onValueChange }: MultiSelectProps): import("react").JSX.Element;
|
|
@@ -7,4 +7,5 @@ export interface NavigationItem {
|
|
|
7
7
|
export interface NavigationMenuProps {
|
|
8
8
|
items: NavigationItem[];
|
|
9
9
|
}
|
|
10
|
+
/** Nested navigation menu with optional links and children. */
|
|
10
11
|
export declare function NavigationMenu({ items }: NavigationMenuProps): import("react").JSX.Element;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { HTMLAttributes } from "react";
|
|
2
|
+
/** Pagination controls for navigating a finite set of pages. */
|
|
2
3
|
export interface PaginationProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
+
/** Current 1-based page number. */
|
|
3
5
|
page: number;
|
|
6
|
+
/** Total number of available pages. */
|
|
4
7
|
pageCount: number;
|
|
8
|
+
/** Called when the user requests another page. */
|
|
5
9
|
onPageChange?: (page: number) => void;
|
|
6
10
|
}
|
|
7
11
|
export declare function Pagination({ page, pageCount, onPageChange, ...props }: PaginationProps): import("react").JSX.Element;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
export interface PopoverProps {
|
|
3
|
+
/** Element that toggles the popover. */
|
|
3
4
|
trigger: ReactNode;
|
|
5
|
+
/** Popover content. */
|
|
4
6
|
children: ReactNode;
|
|
7
|
+
/** Controlled open state. */
|
|
5
8
|
open?: boolean;
|
|
9
|
+
/** Called when open state changes. */
|
|
6
10
|
onOpenChange?: (open: boolean) => void;
|
|
7
11
|
}
|
|
8
12
|
export declare function Popover({ trigger, children, open, onOpenChange }: PopoverProps): import("react").JSX.Element;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import type { HTMLAttributes } from "react";
|
|
2
|
+
/** Progress indicator exposing the current numeric completion value. */
|
|
2
3
|
export interface ProgressProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
4
|
+
/** Current progress value. */
|
|
3
5
|
value?: number;
|
|
6
|
+
/** Maximum progress value. */
|
|
4
7
|
max?: number;
|
|
8
|
+
/** Accessible label for the progress indicator. */
|
|
5
9
|
label?: string;
|
|
6
10
|
}
|
|
7
11
|
export declare function Progress({ value, max, label, ...props }: ProgressProps): import("react").JSX.Element;
|
|
@@ -5,4 +5,5 @@ export interface ResizablePanelProps {
|
|
|
5
5
|
minSize?: number;
|
|
6
6
|
maxSize?: number;
|
|
7
7
|
}
|
|
8
|
+
/** Resizable panel controlled by minimum, maximum and initial size. */
|
|
8
9
|
export declare function ResizablePanel({ children, initialSize, minSize, maxSize }: ResizablePanelProps): import("react").JSX.Element;
|
|
@@ -2,4 +2,5 @@ import type { InputHTMLAttributes } from "react";
|
|
|
2
2
|
export interface SearchBarProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
3
|
onClear?: () => void;
|
|
4
4
|
}
|
|
5
|
+
/** Search input with an optional clear action. */
|
|
5
6
|
export declare function SearchBar({ onClear, ...props }: SearchBarProps): import("react").JSX.Element;
|
|
@@ -2,4 +2,5 @@ import type { HTMLAttributes } from "react";
|
|
|
2
2
|
export interface SeparatorProps extends HTMLAttributes<HTMLHRElement> {
|
|
3
3
|
orientation?: "horizontal" | "vertical";
|
|
4
4
|
}
|
|
5
|
+
/** Visual separator supporting horizontal and vertical orientation. */
|
|
5
6
|
export declare function Separator({ orientation, ...props }: SeparatorProps): import("react").JSX.Element;
|
|
@@ -4,4 +4,5 @@ export interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
4
4
|
height?: string | number;
|
|
5
5
|
variant?: "text" | "rect" | "circle";
|
|
6
6
|
}
|
|
7
|
+
/** Placeholder skeleton for loading layouts. */
|
|
7
8
|
export declare function Skeleton({ width, height, variant, style, ...props }: SkeletonProps): import("react").JSX.Element;
|
|
@@ -3,4 +3,5 @@ export interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
3
3
|
label?: string;
|
|
4
4
|
size?: "small" | "medium" | "large";
|
|
5
5
|
}
|
|
6
|
+
/** Compact loading spinner with an accessible status label. */
|
|
6
7
|
export declare function Spinner({ label, ...props }: SpinnerProps): import("react").JSX.Element;
|
|
@@ -10,4 +10,5 @@ export interface StepperProps {
|
|
|
10
10
|
current: number;
|
|
11
11
|
orientation?: "horizontal" | "vertical";
|
|
12
12
|
}
|
|
13
|
+
/** Step navigation indicator for linear multi-step workflows. */
|
|
13
14
|
export declare function Stepper({ steps, current, orientation }: StepperProps): import("react").JSX.Element;
|
|
@@ -11,4 +11,5 @@ export interface TabsProps {
|
|
|
11
11
|
defaultValue?: string;
|
|
12
12
|
onValueChange?: (value: string) => void;
|
|
13
13
|
}
|
|
14
|
+
/** Tabbed interface that displays the content of the active tab. */
|
|
14
15
|
export declare function Tabs({ items, value, defaultValue, onValueChange }: TabsProps): import("react").JSX.Element;
|
|
@@ -3,4 +3,5 @@ export interface TextProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
as?: "p" | "span" | "div";
|
|
5
5
|
}
|
|
6
|
+
/** Text primitive that can render as a paragraph, span or div. */
|
|
6
7
|
export declare function Text({ children, as, ...props }: TextProps): import("react").JSX.Element;
|