@ostack.tech/ui 0.3.0 → 0.3.2
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/dist/chunks/en-lyNzumTm.js.map +1 -1
- package/dist/locales/en-GB.js.map +1 -1
- package/dist/locales/en-US.js.map +1 -1
- package/dist/locales/fr.js.map +1 -1
- package/dist/locales/pt.js.map +1 -1
- package/dist/ostack-ui.js +8773 -8752
- package/dist/ostack-ui.js.map +1 -1
- package/dist/types/components/Alert/Alert.d.ts +5 -5
- package/dist/types/components/Alert/AlertTitle.d.ts +2 -2
- package/dist/types/components/Alert/index.d.ts +2 -2
- package/dist/types/components/AlertDialog/AlertDialog.d.ts +2 -2
- package/dist/types/components/AlertDialog/AlertDialogAction.d.ts +3 -3
- package/dist/types/components/AlertDialog/AlertDialogBody.d.ts +3 -3
- package/dist/types/components/AlertDialog/AlertDialogCancel.d.ts +3 -3
- package/dist/types/components/AlertDialog/AlertDialogContent.d.ts +5 -5
- package/dist/types/components/AlertDialog/AlertDialogDescription.d.ts +3 -3
- package/dist/types/components/AlertDialog/AlertDialogFooter.d.ts +3 -3
- package/dist/types/components/AlertDialog/AlertDialogHeader.d.ts +3 -3
- package/dist/types/components/AlertDialog/AlertDialogTitle.d.ts +3 -3
- package/dist/types/components/AlertDialog/AlertDialogTrigger.d.ts +3 -3
- package/dist/types/components/AlertDialog/index.d.ts +10 -10
- package/dist/types/components/Button/Button.d.ts +5 -5
- package/dist/types/components/Button/index.d.ts +1 -1
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/dist/types/components/ButtonGroup/index.d.ts +1 -1
- package/dist/types/components/Calendar/Calendar.d.ts +5 -5
- package/dist/types/components/Calendar/CalendarContext.d.ts +2 -2
- package/dist/types/components/Calendar/CalendarDay.d.ts +4 -4
- package/dist/types/components/Calendar/CalendarMonthCaption.d.ts +3 -3
- package/dist/types/components/Calendar/index.d.ts +1 -1
- package/dist/types/components/Card/Card.d.ts +3 -3
- package/dist/types/components/Card/CardBody.d.ts +2 -2
- package/dist/types/components/Card/CardFooter.d.ts +2 -2
- package/dist/types/components/Card/CardHeader.d.ts +2 -2
- package/dist/types/components/Card/CardTitle.d.ts +3 -3
- package/dist/types/components/Card/index.d.ts +5 -5
- package/dist/types/components/Checkbox/Checkbox.d.ts +8 -8
- package/dist/types/components/Checkbox/index.d.ts +1 -1
- package/dist/types/components/CheckboxGroup/CheckboxGroup.d.ts +5 -5
- package/dist/types/components/CheckboxGroup/CheckboxGroupContext.d.ts +1 -1
- package/dist/types/components/CheckboxGroup/index.d.ts +1 -1
- package/dist/types/components/ClearContexts/ClearContexts.d.ts +1 -1
- package/dist/types/components/ClearContexts/index.d.ts +1 -1
- package/dist/types/components/CloseButton/CloseButton.d.ts +3 -3
- package/dist/types/components/CloseButton/index.d.ts +1 -1
- package/dist/types/components/Code/Code.d.ts +3 -3
- package/dist/types/components/Code/index.d.ts +1 -1
- package/dist/types/components/Collapsible/Collapsible.d.ts +3 -3
- package/dist/types/components/Collapsible/CollapsibleContent.d.ts +3 -3
- package/dist/types/components/Collapsible/CollapsibleContext.d.ts +2 -2
- package/dist/types/components/Collapsible/CollapsibleTrigger.d.ts +3 -3
- package/dist/types/components/Collapsible/index.d.ts +3 -3
- package/dist/types/components/CommandMenu/CommandMenu.d.ts +8 -8
- package/dist/types/components/CommandMenu/CommandMenuDialog.d.ts +5 -5
- package/dist/types/components/CommandMenu/CommandMenuGroup.d.ts +3 -3
- package/dist/types/components/CommandMenu/CommandMenuItem.d.ts +4 -4
- package/dist/types/components/CommandMenu/index.d.ts +4 -4
- package/dist/types/components/Container/Container.d.ts +4 -4
- package/dist/types/components/Container/index.d.ts +1 -1
- package/dist/types/components/ControlAddon/ControlAddon.d.ts +3 -3
- package/dist/types/components/ControlAddon/index.d.ts +1 -1
- package/dist/types/components/ControlCode/ControlCode.d.ts +3 -3
- package/dist/types/components/ControlCode/index.d.ts +1 -1
- package/dist/types/components/DataTable/DataTable.d.ts +7 -7
- package/dist/types/components/DataTable/DataTableApi.d.ts +2 -2
- package/dist/types/components/DataTable/DataTableBody.d.ts +4 -4
- package/dist/types/components/DataTable/DataTableCell.d.ts +3 -3
- package/dist/types/components/DataTable/DataTableColumn.d.ts +3 -3
- package/dist/types/components/DataTable/DataTableContent.d.ts +3 -3
- package/dist/types/components/DataTable/DataTableContext.d.ts +10 -10
- package/dist/types/components/DataTable/DataTableEmptyOrLoadingRows.d.ts +1 -1
- package/dist/types/components/DataTable/DataTableFilter.d.ts +3 -3
- package/dist/types/components/DataTable/DataTableFoot.d.ts +3 -3
- package/dist/types/components/DataTable/DataTableHead.d.ts +3 -3
- package/dist/types/components/DataTable/DataTablePagination.d.ts +10 -2
- package/dist/types/components/DataTable/DataTableRow.d.ts +3 -3
- package/dist/types/components/DataTable/DataTableRowsPerPage.d.ts +2 -2
- package/dist/types/components/DataTable/DataTableSelectionTrigger.d.ts +3 -3
- package/dist/types/components/DataTable/PagedDataTablePagination.d.ts +4 -4
- package/dist/types/components/DataTable/ScrolledDataTablePagination.d.ts +3 -3
- package/dist/types/components/DataTable/ScrolledDataTableRows.d.ts +1 -1
- package/dist/types/components/DataTable/getRowKey.d.ts +2 -2
- package/dist/types/components/DataTable/index.d.ts +12 -12
- package/dist/types/components/DataTable/transformRows.d.ts +2 -2
- package/dist/types/components/DataTable/useDataTableSelectionColumn.d.ts +1 -1
- package/dist/types/components/DateInput/DateInput.d.ts +6 -6
- package/dist/types/components/DateInput/index.d.ts +1 -1
- package/dist/types/components/DatePicker/DatePicker.d.ts +2 -2
- package/dist/types/components/DatePicker/index.d.ts +1 -1
- package/dist/types/components/DateRangeInput/DateRangeInput.d.ts +11 -11
- package/dist/types/components/DateRangeInput/index.d.ts +1 -1
- package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/dist/types/components/DateRangePicker/index.d.ts +1 -1
- package/dist/types/components/Dialog/Dialog.d.ts +2 -2
- package/dist/types/components/Dialog/DialogBody.d.ts +3 -3
- package/dist/types/components/Dialog/DialogClose.d.ts +3 -3
- package/dist/types/components/Dialog/DialogContent.d.ts +5 -5
- package/dist/types/components/Dialog/DialogDescription.d.ts +3 -3
- package/dist/types/components/Dialog/DialogFooter.d.ts +3 -3
- package/dist/types/components/Dialog/DialogHeader.d.ts +4 -4
- package/dist/types/components/Dialog/DialogTitle.d.ts +3 -3
- package/dist/types/components/Dialog/DialogTrigger.d.ts +3 -3
- package/dist/types/components/Dialog/index.d.ts +9 -9
- package/dist/types/components/DropdownMenu/DropdownMenu.d.ts +2 -2
- package/dist/types/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +6 -6
- package/dist/types/components/DropdownMenu/DropdownMenuContent.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuGroup.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuItem.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuRadioGroup.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuRadioItem.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuSub.d.ts +2 -2
- package/dist/types/components/DropdownMenu/DropdownMenuSubContent.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +4 -4
- package/dist/types/components/DropdownMenu/DropdownMenuTrigger.d.ts +3 -3
- package/dist/types/components/DropdownMenu/index.d.ts +11 -11
- package/dist/types/components/ErrorBoundary/ErrorBoundary.d.ts +5 -5
- package/dist/types/components/ErrorBoundary/index.d.ts +2 -2
- package/dist/types/components/ErrorBoundary/useErrorBoundary.d.ts +1 -1
- package/dist/types/components/Feedback/Feedback.d.ts +2 -2
- package/dist/types/components/Feedback/index.d.ts +1 -1
- package/dist/types/components/FeedbackList/FeedbackList.d.ts +2 -2
- package/dist/types/components/FeedbackList/FeedbackListContext.d.ts +1 -1
- package/dist/types/components/FeedbackList/index.d.ts +2 -2
- package/dist/types/components/FeedbackPopover/FeedbackPopover.d.ts +5 -5
- package/dist/types/components/FeedbackPopover/FeedbackPopoverContext.d.ts +2 -2
- package/dist/types/components/FeedbackPopover/index.d.ts +2 -2
- package/dist/types/components/Field/Field.d.ts +2 -2
- package/dist/types/components/Field/FieldContext.d.ts +3 -3
- package/dist/types/components/Field/index.d.ts +2 -2
- package/dist/types/components/FieldGroup/FieldGroup.d.ts +2 -2
- package/dist/types/components/FieldGroup/FieldGroupBody.d.ts +2 -2
- package/dist/types/components/FieldGroup/FieldGroupContext.d.ts +2 -2
- package/dist/types/components/FieldGroup/FieldGroupHeader.d.ts +2 -2
- package/dist/types/components/FieldGroup/FieldGroupTitle.d.ts +3 -3
- package/dist/types/components/FieldGroup/index.d.ts +4 -4
- package/dist/types/components/Grid/Grid.d.ts +3 -3
- package/dist/types/components/Grid/index.d.ts +1 -1
- package/dist/types/components/Heading/Heading.d.ts +2 -2
- package/dist/types/components/Heading/index.d.ts +1 -1
- package/dist/types/components/HelperText/HelperText.d.ts +2 -2
- package/dist/types/components/HelperText/index.d.ts +1 -1
- package/dist/types/components/Icon/Icon.d.ts +6 -6
- package/dist/types/components/Icon/index.d.ts +1 -1
- package/dist/types/components/IconButton/IconButton.d.ts +6 -6
- package/dist/types/components/IconButton/index.d.ts +1 -1
- package/dist/types/components/Input/Input.d.ts +7 -7
- package/dist/types/components/Input/InputWithContainerRef.d.ts +4 -4
- package/dist/types/components/Input/index.d.ts +2 -2
- package/dist/types/components/Keyboard/Keyboard.d.ts +2 -2
- package/dist/types/components/Keyboard/index.d.ts +1 -1
- package/dist/types/components/Label/Label.d.ts +6 -6
- package/dist/types/components/Label/index.d.ts +1 -1
- package/dist/types/components/Link/Link.d.ts +4 -4
- package/dist/types/components/Link/LinkContext.d.ts +2 -2
- package/dist/types/components/Link/index.d.ts +1 -1
- package/dist/types/components/Mark/Mark.d.ts +3 -3
- package/dist/types/components/Mark/index.d.ts +1 -1
- package/dist/types/components/MenuList/MenuList.d.ts +2 -2
- package/dist/types/components/MenuList/MenuListContext.d.ts +2 -2
- package/dist/types/components/MenuList/MenuListGroup.d.ts +2 -2
- package/dist/types/components/MenuList/MenuListItem.d.ts +6 -6
- package/dist/types/components/MenuList/index.d.ts +3 -3
- package/dist/types/components/NumericInput/NumericInput.d.ts +4 -4
- package/dist/types/components/NumericInput/index.d.ts +1 -1
- package/dist/types/components/Output/Output.d.ts +3 -3
- package/dist/types/components/Output/index.d.ts +1 -1
- package/dist/types/components/Overlay/Overlay.d.ts +2 -2
- package/dist/types/components/Overlay/index.d.ts +1 -1
- package/dist/types/components/Popover/Popover.d.ts +2 -2
- package/dist/types/components/Popover/PopoverAnchor.d.ts +2 -2
- package/dist/types/components/Popover/PopoverClose.d.ts +3 -3
- package/dist/types/components/Popover/PopoverContent.d.ts +3 -3
- package/dist/types/components/Popover/PopoverTrigger.d.ts +3 -3
- package/dist/types/components/Popover/index.d.ts +5 -5
- package/dist/types/components/Portal/Portal.d.ts +3 -3
- package/dist/types/components/Portal/PortalContext.d.ts +1 -1
- package/dist/types/components/Portal/index.d.ts +2 -2
- package/dist/types/components/RadioGroup/Radio.d.ts +7 -7
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +8 -8
- package/dist/types/components/RadioGroup/index.d.ts +2 -2
- package/dist/types/components/Root/Root.d.ts +7 -7
- package/dist/types/components/Root/RootContext.d.ts +1 -1
- package/dist/types/components/Root/RootElement.d.ts +3 -3
- package/dist/types/components/Root/index.d.ts +2 -2
- package/dist/types/components/Select/Option.d.ts +3 -3
- package/dist/types/components/Select/OptionsGroup.d.ts +3 -3
- package/dist/types/components/Select/Select.d.ts +7 -7
- package/dist/types/components/Select/SelectContext.d.ts +7 -7
- package/dist/types/components/Select/SelectSingleValue.d.ts +1 -1
- package/dist/types/components/Select/index.d.ts +3 -3
- package/dist/types/components/Separator/Separator.d.ts +3 -3
- package/dist/types/components/Separator/index.d.ts +1 -1
- package/dist/types/components/Slot/Slot.d.ts +2 -2
- package/dist/types/components/Slot/Slottable.d.ts +1 -1
- package/dist/types/components/Slot/index.d.ts +2 -2
- package/dist/types/components/Spinner/Spinner.d.ts +3 -3
- package/dist/types/components/Spinner/index.d.ts +1 -1
- package/dist/types/components/Stack/Stack.d.ts +3 -3
- package/dist/types/components/Stack/index.d.ts +1 -1
- package/dist/types/components/Stepper/Step.d.ts +5 -5
- package/dist/types/components/Stepper/StepContent.d.ts +3 -3
- package/dist/types/components/Stepper/StepList.d.ts +3 -3
- package/dist/types/components/Stepper/Stepper.d.ts +3 -3
- package/dist/types/components/Stepper/StepperContext.d.ts +1 -1
- package/dist/types/components/Stepper/index.d.ts +4 -4
- package/dist/types/components/Table/Table.d.ts +3 -3
- package/dist/types/components/Table/TableBody.d.ts +2 -2
- package/dist/types/components/Table/TableCell.d.ts +3 -3
- package/dist/types/components/Table/TableColumn.d.ts +9 -9
- package/dist/types/components/Table/TableContext.d.ts +8 -8
- package/dist/types/components/Table/TableFoot.d.ts +2 -2
- package/dist/types/components/Table/TableHead.d.ts +3 -3
- package/dist/types/components/Table/TableRow.d.ts +2 -2
- package/dist/types/components/Table/index.d.ts +8 -8
- package/dist/types/components/Tabs/Tab.d.ts +4 -4
- package/dist/types/components/Tabs/TabContent.d.ts +3 -3
- package/dist/types/components/Tabs/TabList.d.ts +3 -3
- package/dist/types/components/Tabs/Tabs.d.ts +3 -3
- package/dist/types/components/Tabs/TabsContext.d.ts +4 -4
- package/dist/types/components/Tabs/index.d.ts +4 -4
- package/dist/types/components/Tag/Badge.d.ts +2 -2
- package/dist/types/components/Tag/Tag.d.ts +6 -6
- package/dist/types/components/Tag/index.d.ts +2 -2
- package/dist/types/components/TextArea/TextArea.d.ts +3 -3
- package/dist/types/components/TextArea/index.d.ts +1 -1
- package/dist/types/components/Toast/Toast.d.ts +5 -5
- package/dist/types/components/Toast/ToastDescription.d.ts +2 -2
- package/dist/types/components/Toast/ToastProvider.d.ts +2 -2
- package/dist/types/components/Toast/ToastTitle.d.ts +3 -3
- package/dist/types/components/Toast/ToastViewport.d.ts +3 -3
- package/dist/types/components/Toast/index.d.ts +5 -5
- package/dist/types/components/Tooltip/Tooltip.d.ts +3 -3
- package/dist/types/components/Tooltip/TooltipProvider.d.ts +2 -2
- package/dist/types/components/Tooltip/index.d.ts +2 -2
- package/dist/types/components/VisuallyHidden/VisuallyHidden.d.ts +2 -2
- package/dist/types/components/VisuallyHidden/index.d.ts +1 -1
- package/dist/types/index.d.ts +96 -96
- package/dist/types/locales/en-GB.d.ts +1 -1
- package/dist/types/locales/en-US.d.ts +1 -1
- package/dist/types/locales/en.d.ts +1 -1
- package/dist/types/locales/fr.d.ts +1 -1
- package/dist/types/locales/index.d.ts +4 -4
- package/dist/types/locales/pt.d.ts +1 -1
- package/dist/types/providers/AlertDialogProvider/AlertDialogProvider.d.ts +1 -1
- package/dist/types/providers/AlertDialogProvider/AlertDialogProviderContext.d.ts +4 -4
- package/dist/types/providers/AlertDialogProvider/index.d.ts +3 -3
- package/dist/types/providers/AlertDialogProvider/useAlertDialog.d.ts +1 -1
- package/dist/types/providers/DocumentTitleProvider/DocumentTitle.d.ts +1 -1
- package/dist/types/providers/DocumentTitleProvider/DocumentTitleProvider.d.ts +1 -1
- package/dist/types/providers/DocumentTitleProvider/DocumentTitleProviderContext.d.ts +3 -3
- package/dist/types/providers/DocumentTitleProvider/index.d.ts +2 -2
- package/dist/types/providers/ErrorReportingProvider/ErrorReport.d.ts +1 -1
- package/dist/types/providers/ErrorReportingProvider/ErrorReportingContext.d.ts +2 -2
- package/dist/types/providers/ErrorReportingProvider/ErrorReportingProvider.d.ts +2 -2
- package/dist/types/providers/ErrorReportingProvider/index.d.ts +4 -4
- package/dist/types/providers/ErrorReportingProvider/useErrorReporter.d.ts +1 -1
- package/dist/types/providers/LocalizationProvider/LocalizationContext.d.ts +2 -2
- package/dist/types/providers/LocalizationProvider/LocalizationObject.d.ts +19 -19
- package/dist/types/providers/LocalizationProvider/LocalizationProvider.d.ts +3 -3
- package/dist/types/providers/LocalizationProvider/index.d.ts +4 -4
- package/dist/types/providers/LocalizationProvider/useLocale.d.ts +1 -1
- package/dist/types/providers/PrefixProvider/PrefixContext.d.ts +1 -1
- package/dist/types/providers/PrefixProvider/PrefixProvider.d.ts +2 -2
- package/dist/types/providers/PrefixProvider/defaultPrefix.d.ts +1 -1
- package/dist/types/providers/PrefixProvider/index.d.ts +4 -4
- package/dist/types/providers/ToastManagerProvider/ToastManagerContext.d.ts +4 -4
- package/dist/types/providers/ToastManagerProvider/ToastManagerProvider.d.ts +1 -1
- package/dist/types/providers/ToastManagerProvider/index.d.ts +3 -3
- package/dist/types/providers/ToastManagerProvider/useToastManager.d.ts +1 -1
- package/dist/types/utils/breakpoints.d.ts +1 -1
- package/dist/types/utils/control.d.ts +2 -2
- package/dist/types/utils/parseDateStrict.d.ts +1 -1
- package/dist/types/utils/useCombinedRef.d.ts +1 -1
- package/dist/types/utils/useControllableState.d.ts +1 -1
- package/dist/types/utils/useCssVars.d.ts +1 -1
- package/dist/types/utils/useDateTransformer.d.ts +1 -1
- package/dist/types/utils/useLayoutEffect.d.ts +1 -1
- package/dist/types/utils/useResponsiveValues.d.ts +2 -2
- package/dist/types/utils/zustandUtils.d.ts +1 -1
- package/package.json +7 -22
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Overlay } from
|
|
1
|
+
import { Dialog as DialogPrimitive } from 'radix-ui';
|
|
2
|
+
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from 'react';
|
|
3
|
+
import { DialogContentSize } from '../Dialog';
|
|
4
|
+
import { Overlay } from '../Overlay';
|
|
5
5
|
/** Possible command menu dialog sizes. */
|
|
6
6
|
export type CommandMenuDialogSize = DialogContentSize;
|
|
7
7
|
/** Properties of the command menu dialog. */
|
|
@@ -42,4 +42,4 @@ export interface CommandMenuDialogProps extends Omit<ComponentPropsWithoutRef<ty
|
|
|
42
42
|
overlayProps?: ComponentPropsWithRef<typeof Overlay>;
|
|
43
43
|
}
|
|
44
44
|
/** Component used to display the command menu within a dialog. */
|
|
45
|
-
export declare const CommandMenuDialog: import(
|
|
45
|
+
export declare const CommandMenuDialog: import('react').ForwardRefExoticComponent<CommandMenuDialogProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Command as CommandPrimitive } from
|
|
2
|
-
import {
|
|
1
|
+
import { Command as CommandPrimitive } from 'cmdk';
|
|
2
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
3
3
|
/** Properties of the command menu group. */
|
|
4
4
|
export interface CommandMenuGroupProps extends Omit<ComponentPropsWithoutRef<typeof CommandPrimitive.Group>, "asChild" | "heading"> {
|
|
5
5
|
/** Optional label of the command menu group. */
|
|
6
6
|
label?: ReactNode;
|
|
7
7
|
}
|
|
8
8
|
/** Component used to group multiple command items. */
|
|
9
|
-
export declare const CommandMenuGroup: import(
|
|
9
|
+
export declare const CommandMenuGroup: import('react').ForwardRefExoticComponent<CommandMenuGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Command as CommandPrimitive } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Command as CommandPrimitive } from 'cmdk';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { MenuListItemProps } from '../MenuList';
|
|
4
4
|
export interface CommandMenuItemProps extends Omit<ComponentPropsWithoutRef<typeof CommandPrimitive.Item>, "asChild" | "color">, Pick<MenuListItemProps, "selected" | "color" | "loading" | "enabledWhenLoading" | "loadingContent" | "icon" | "iconPlacement" | "href" | "target" | "rel" | "actionProps" | "contentProps" | "iconProps" | "spinnerProps"> {
|
|
5
5
|
/**
|
|
6
6
|
* Render the item as a link. When set, you can pass `href`, `target`, and
|
|
@@ -10,4 +10,4 @@ export interface CommandMenuItemProps extends Omit<ComponentPropsWithoutRef<type
|
|
|
10
10
|
*/
|
|
11
11
|
asLink?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare const CommandMenuItem: import(
|
|
13
|
+
export declare const CommandMenuItem: import('react').ForwardRefExoticComponent<CommandMenuItemProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from './CommandMenu.tsx';
|
|
2
|
+
export * from './CommandMenuDialog.tsx';
|
|
3
|
+
export * from './CommandMenuGroup.tsx';
|
|
4
|
+
export * from './CommandMenuItem.tsx';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { Breakpoint } from '../../utils/breakpoints.ts';
|
|
3
|
+
import { Responsive } from '../../utils/useResponsiveValues.ts';
|
|
4
4
|
/** Value specifying up to which breakpoint the container should be fluid. */
|
|
5
5
|
export type ContainerFluidUntil = Omit<Breakpoint, "xs">;
|
|
6
6
|
/** Properties of the container component. */
|
|
@@ -63,4 +63,4 @@ export interface ContainerProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
63
63
|
* }
|
|
64
64
|
* ```
|
|
65
65
|
*/
|
|
66
|
-
export declare const Container: import(
|
|
66
|
+
export declare const Container: import('react').ForwardRefExoticComponent<ContainerProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Container.tsx';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { ControlStatus, ControlVariant } from '../../utils/control.ts';
|
|
3
3
|
/** Properties of the control addon component. */
|
|
4
4
|
export interface ControlAddonProps extends ComponentPropsWithoutRef<"div"> {
|
|
5
5
|
/**
|
|
@@ -33,4 +33,4 @@ export interface ControlAddonProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
33
33
|
* `endAdornment` properties of a control, but can also be used standalone where
|
|
34
34
|
* it makes sense.
|
|
35
35
|
*/
|
|
36
|
-
export declare const ControlAddon: import(
|
|
36
|
+
export declare const ControlAddon: import('react').ForwardRefExoticComponent<ControlAddonProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './ControlAddon.tsx';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { ControlStatus, ControlVariant } from '../../utils/control.ts';
|
|
3
3
|
/** Properties of the control's code component. */
|
|
4
4
|
export interface ControlCodeProps extends ComponentPropsWithoutRef<"div"> {
|
|
5
5
|
/**
|
|
@@ -19,4 +19,4 @@ export interface ControlCodeProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
19
19
|
visuallyHiddenPrefix?: ReactNode;
|
|
20
20
|
}
|
|
21
21
|
/** Component used to display the "code" of a form control. */
|
|
22
|
-
export declare const ControlCode: import(
|
|
22
|
+
export declare const ControlCode: import('react').ForwardRefExoticComponent<ControlCodeProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './ControlCode.tsx';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef, Key, ReactNode, Ref } from 'react';
|
|
2
|
+
import { SortDirection } from '../../utils/sorting.ts';
|
|
3
|
+
import { DataTableApi } from './DataTableApi.ts';
|
|
4
|
+
import { DataTableCellProps } from './DataTableCell.tsx';
|
|
5
|
+
import { DataTableColumns } from './DataTableColumn.tsx';
|
|
6
|
+
import { DataTableRowProps } from './DataTableRow.tsx';
|
|
7
7
|
/** Display mode of the data table. */
|
|
8
8
|
export type DataTableDisplayMode = "paged" | "scrolled";
|
|
9
9
|
/**
|
|
@@ -258,4 +258,4 @@ export interface DataTableProps<T = any> extends ComponentPropsWithoutRef<"div">
|
|
|
258
258
|
* component is only relevant when providing a custom data table cell via
|
|
259
259
|
* `renderCell`.
|
|
260
260
|
*/
|
|
261
|
-
export declare const DataTable: import(
|
|
261
|
+
export declare const DataTable: import('react').ForwardRefExoticComponent<DataTableProps<any> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ScrollToOptions } from '@tanstack/react-virtual';
|
|
2
|
+
import { RefObject } from 'react';
|
|
3
3
|
/** Options used when using the `goTo` function of the `DataTableApi`. */
|
|
4
4
|
export type DataTableScrollToOptions = ScrollToOptions;
|
|
5
5
|
/** Imperative data table API. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TableBody } from
|
|
3
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef, RefObject } from 'react';
|
|
2
|
+
import { TableBody } from '../Table';
|
|
3
|
+
import { DataTableContentProps } from './DataTableContent.tsx';
|
|
4
4
|
/** Properties of the data table foot component. */
|
|
5
5
|
export interface DataTableBodyProps extends ComponentPropsWithoutRef<typeof TableBody>, Pick<DataTableContentProps, "emptyMessage" | "emptyMessageProps"> {
|
|
6
6
|
containerRef: RefObject<HTMLDivElement | null>;
|
|
7
7
|
}
|
|
8
8
|
/** Body of the data table. */
|
|
9
|
-
export declare const DataTableBody: import(
|
|
9
|
+
export declare const DataTableBody: import('react').ForwardRefExoticComponent<DataTableBodyProps & import('react').RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TableCell } from
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { TableCell } from '../Table';
|
|
3
3
|
/** Properties of a data table cell. */
|
|
4
4
|
export interface DataTableCellProps extends ComponentPropsWithoutRef<typeof TableCell> {
|
|
5
5
|
columnLabel?: ReactNode;
|
|
6
6
|
columnLabelId?: string;
|
|
7
7
|
}
|
|
8
8
|
/** Data table cell. */
|
|
9
|
-
export declare const DataTableCell: import(
|
|
9
|
+
export declare const DataTableCell: import('react').ForwardRefExoticComponent<DataTableCellProps & import('react').RefAttributes<HTMLTableDataCellElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import { MatchAgainstFilter } from '../../utils/filtering.ts';
|
|
3
|
+
import { TableColumn } from '../Table';
|
|
4
4
|
/** Data table columns. */
|
|
5
5
|
export type DataTableColumns<T = unknown> = Record<string, DataTableColumn<T>>;
|
|
6
6
|
/** Data table column. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Table,
|
|
1
|
+
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import { Table, TableBody, TableFoot, TableHead } from '../Table';
|
|
3
3
|
/** Properties of the data table content component. */
|
|
4
4
|
export interface DataTableContentProps extends Omit<ComponentPropsWithoutRef<typeof Table>, "layout"> {
|
|
5
5
|
/** Message to display when the data table contains no rows. */
|
|
@@ -25,4 +25,4 @@ export interface DataTableContentProps extends Omit<ComponentPropsWithoutRef<typ
|
|
|
25
25
|
* Component containing the "main content" of the data table, i.e. the table
|
|
26
26
|
* itself.
|
|
27
27
|
*/
|
|
28
|
-
export declare const DataTableContent: import(
|
|
28
|
+
export declare const DataTableContent: import('react').ForwardRefExoticComponent<DataTableContentProps & import('react').RefAttributes<HTMLTableElement>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { Key, ReactNode, Ref } from 'react';
|
|
2
|
+
import { SortDirection } from '../../utils/sorting.ts';
|
|
3
|
+
import { DataTableDisplayMode, DataTableGetRowsOptions, DataTableGetRowsResult } from './DataTable.tsx';
|
|
4
|
+
import { DataTableApi } from './DataTableApi.ts';
|
|
5
|
+
import { DataTableCellProps } from './DataTableCell.tsx';
|
|
6
|
+
import { DataTableColumns } from './DataTableColumn.tsx';
|
|
7
|
+
import { DataTableRowProps } from './DataTableRow.tsx';
|
|
8
8
|
/** Value of the data table context. */
|
|
9
9
|
export interface DataTableContextValue<T = any> {
|
|
10
10
|
displayMode: DataTableDisplayMode;
|
|
@@ -75,7 +75,7 @@ export interface DataTableActions<T> {
|
|
|
75
75
|
/** Data table store. */
|
|
76
76
|
export type DataTableStore<T> = ReturnType<typeof useCreateDataTableContext<T>>["store"];
|
|
77
77
|
/** Data table context. */
|
|
78
|
-
export declare const DataTableContext: import(
|
|
78
|
+
export declare const DataTableContext: import('react').Context<DataTableContextValue<any> | null>;
|
|
79
79
|
/** Options used to create the data table context value. */
|
|
80
80
|
export interface UseCreateDataTableContextOptions<T> extends Omit<DataTableContextValue, "generatedId" | "store"> {
|
|
81
81
|
columns: DataTableColumns<T>;
|
|
@@ -118,7 +118,7 @@ export declare function useCreateDataTableContext<T>({ displayMode, columns, row
|
|
|
118
118
|
overscan: number;
|
|
119
119
|
generatedId: string;
|
|
120
120
|
apiRef: Ref<DataTableApi<any> | undefined> | undefined;
|
|
121
|
-
store: Omit<import(
|
|
121
|
+
store: Omit<import('zustand').StoreApi<DataTableState<T>>, "subscribe"> & {
|
|
122
122
|
subscribe: {
|
|
123
123
|
(listener: (selectedState: DataTableState<T>, previousSelectedState: DataTableState<T>) => void): () => void;
|
|
124
124
|
<U>(selector: (state: DataTableState<T>) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -136,7 +136,7 @@ export interface DataTableCellContextValue {
|
|
|
136
136
|
columnLabelId?: string;
|
|
137
137
|
}
|
|
138
138
|
/** Data table cell context. */
|
|
139
|
-
export declare const DataTableCellContext: import(
|
|
139
|
+
export declare const DataTableCellContext: import('react').Context<DataTableCellContextValue | null>;
|
|
140
140
|
/** Column label accessible within a data table cell. */
|
|
141
141
|
export declare function useDataTableColumnLabel(): ReactNode;
|
|
142
142
|
/** Column label id accessible within a data table cell. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DataTableContentProps } from './DataTableContent.tsx';
|
|
2
2
|
/** Properties of the data table empty/loading row. */
|
|
3
3
|
export interface DataTableEmptyOrLoadingRowProps extends Pick<DataTableContentProps, "emptyMessage" | "emptyMessageProps"> {
|
|
4
4
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Input } from
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { Input } from '../Input';
|
|
3
3
|
/** Properties of the data table filter component. */
|
|
4
4
|
export interface DataTableFilterProps extends Omit<ComponentPropsWithoutRef<typeof Input>, "defaultValue" | "value"> {
|
|
5
5
|
}
|
|
6
6
|
/** Input used to globally filter a data table. */
|
|
7
|
-
export declare const DataTableFilter: import(
|
|
7
|
+
export declare const DataTableFilter: import('react').ForwardRefExoticComponent<DataTableFilterProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TableFoot } from
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { TableFoot } from '../Table';
|
|
3
3
|
/** Properties of the data table foot component. */
|
|
4
4
|
export interface DataTableFootProps extends ComponentPropsWithoutRef<typeof TableFoot> {
|
|
5
5
|
showWhenEmpty: boolean;
|
|
6
6
|
}
|
|
7
7
|
/** Foot of the data table. */
|
|
8
|
-
export declare const DataTableFoot: import(
|
|
8
|
+
export declare const DataTableFoot: import('react').ForwardRefExoticComponent<DataTableFootProps & import('react').RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TableHead } from
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { TableHead } from '../Table';
|
|
3
3
|
/** Properties of the data table head component. */
|
|
4
4
|
export interface DataTableHeadProps extends ComponentPropsWithoutRef<typeof TableHead> {
|
|
5
5
|
}
|
|
6
6
|
/** Head of the data table. */
|
|
7
|
-
export declare const DataTableHead: import(
|
|
7
|
+
export declare const DataTableHead: import('react').ForwardRefExoticComponent<DataTableHeadProps & import('react').RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import { IconButton } from '../IconButton';
|
|
2
3
|
/** Properties of the data table pagination component. */
|
|
3
4
|
export interface DataTablePaginationProps extends ComponentPropsWithoutRef<"div"> {
|
|
4
5
|
/**
|
|
@@ -13,6 +14,13 @@ export interface DataTablePaginationProps extends ComponentPropsWithoutRef<"div"
|
|
|
13
14
|
previousPageButtonLabel?: string;
|
|
14
15
|
/** Label of the next page button (only relevant in paged mode). */
|
|
15
16
|
nextPageButtonLabel?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Properties to pass to the previous page button (only relevant in paged
|
|
19
|
+
* mode).
|
|
20
|
+
*/
|
|
21
|
+
previousPageButtonProps?: ComponentPropsWithRef<typeof IconButton>;
|
|
22
|
+
/** Properties to pass to the next page button (only relevant in paged mode). */
|
|
23
|
+
nextPageButtonProps?: ComponentPropsWithRef<typeof IconButton>;
|
|
16
24
|
}
|
|
17
25
|
/** Component used to provide pagination to the data table. */
|
|
18
|
-
export declare const DataTablePagination: import(
|
|
26
|
+
export declare const DataTablePagination: import('react').ForwardRefExoticComponent<DataTablePaginationProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TableRow } from
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { TableRow } from '../Table';
|
|
3
3
|
/** Properties of a data table row. */
|
|
4
4
|
export interface DataTableRowProps<T = any> extends ComponentPropsWithoutRef<typeof TableRow> {
|
|
5
5
|
/** Row data. When `undefined`, the row is rendered as "loading". */
|
|
@@ -8,4 +8,4 @@ export interface DataTableRowProps<T = any> extends ComponentPropsWithoutRef<typ
|
|
|
8
8
|
index: number;
|
|
9
9
|
}
|
|
10
10
|
/** Data table row. */
|
|
11
|
-
export declare const DataTableRow: import(
|
|
11
|
+
export declare const DataTableRow: import('react').NamedExoticComponent<DataTableRowProps<any> & import('react').RefAttributes<HTMLTableRowElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
/** Properties of the data table rows per page component. */
|
|
3
3
|
export interface DataTableRowsPerPageProps extends ComponentPropsWithoutRef<"div"> {
|
|
4
4
|
/**
|
|
@@ -16,4 +16,4 @@ export interface DataTableRowsPerPageProps extends ComponentPropsWithoutRef<"div
|
|
|
16
16
|
label?: ReactNode;
|
|
17
17
|
}
|
|
18
18
|
/** Component displaying a select used to change the number of rows per page. */
|
|
19
|
-
export declare const DataTableRowsPerPage: import(
|
|
19
|
+
export declare const DataTableRowsPerPage: import('react').ForwardRefExoticComponent<DataTableRowsPerPageProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Button } from
|
|
1
|
+
import { ComponentPropsWithoutRef, Key, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import { Button } from '../Button';
|
|
3
3
|
/** Properties of the data table selection trigger component. */
|
|
4
4
|
export interface DataTableSelectionTriggerProps extends Omit<ComponentPropsWithoutRef<typeof Button>, "onClick"> {
|
|
5
5
|
/**
|
|
@@ -18,4 +18,4 @@ export interface DataTableSelectionTriggerProps extends Omit<ComponentPropsWitho
|
|
|
18
18
|
children: ReactNode;
|
|
19
19
|
}
|
|
20
20
|
/** Trigger used to run an action over selected rows. */
|
|
21
|
-
export declare const DataTableSelectionTrigger: import(
|
|
21
|
+
export declare const DataTableSelectionTrigger: import('react').ForwardRefExoticComponent<DataTableSelectionTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { DataTablePaginationProps } from './DataTablePagination.tsx';
|
|
3
3
|
/** Properties of the scrolled data table pagination. */
|
|
4
|
-
export interface PagedDataTablePaginationProps extends ComponentPropsWithoutRef<"div">, Pick<DataTablePaginationProps, "rowsRange" | "previousPageButtonLabel" | "nextPageButtonLabel"> {
|
|
4
|
+
export interface PagedDataTablePaginationProps extends ComponentPropsWithoutRef<"div">, Pick<DataTablePaginationProps, "rowsRange" | "previousPageButtonLabel" | "nextPageButtonLabel" | "previousPageButtonProps" | "nextPageButtonProps"> {
|
|
5
5
|
}
|
|
6
6
|
/** Pagination component of the scrolled data table. */
|
|
7
|
-
export declare const PagedDataTablePagination: import(
|
|
7
|
+
export declare const PagedDataTablePagination: import('react').ForwardRefExoticComponent<PagedDataTablePaginationProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { DataTablePaginationProps } from './DataTablePagination.tsx';
|
|
3
3
|
/** Properties of the scrolled data table pagination. */
|
|
4
4
|
export interface ScrolledDataTablePaginationProps extends ComponentPropsWithoutRef<"div">, Pick<DataTablePaginationProps, "rowsRange"> {
|
|
5
5
|
}
|
|
6
6
|
/** Pagination component of the scrolled data table. */
|
|
7
|
-
export declare const ScrolledDataTablePagination: import(
|
|
7
|
+
export declare const ScrolledDataTablePagination: import('react').ForwardRefExoticComponent<ScrolledDataTablePaginationProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DataTableBodyProps } from './DataTableBody.tsx';
|
|
2
2
|
/** Properties of the scrolled data table body component. */
|
|
3
3
|
interface ScrolledDataTableRowsProps extends Pick<DataTableBodyProps, "containerRef"> {
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Key } from 'react';
|
|
2
|
+
import { DataTableProps } from './DataTable.tsx';
|
|
3
3
|
/** Returns the key of a row. */
|
|
4
4
|
export declare function getRowKey<T = unknown>(row: T, rowKey: DataTableProps<T>["rowKey"]): Key;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export { useDataTableColumnLabel, useDataTableColumnLabelId, } from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export { DATA_TABLE_SELECTION_COLUMN_WIDTH } from
|
|
1
|
+
export * from './DataTable.tsx';
|
|
2
|
+
export * from './DataTableApi.ts';
|
|
3
|
+
export * from './DataTableCell.tsx';
|
|
4
|
+
export * from './DataTableColumn.tsx';
|
|
5
|
+
export * from './DataTableContent.tsx';
|
|
6
|
+
export { useDataTableColumnLabel, useDataTableColumnLabelId, } from './DataTableContext.ts';
|
|
7
|
+
export * from './DataTableFilter.tsx';
|
|
8
|
+
export * from './DataTablePagination.tsx';
|
|
9
|
+
export * from './DataTableRow.tsx';
|
|
10
|
+
export * from './DataTableRowsPerPage.tsx';
|
|
11
|
+
export * from './DataTableSelectionTrigger.tsx';
|
|
12
|
+
export { DATA_TABLE_SELECTION_COLUMN_WIDTH } from './useDataTableSelectionColumn.tsx';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SortDirection } from '../../utils/sorting.ts';
|
|
2
|
+
import { DataTableColumns } from './DataTableColumn.tsx';
|
|
3
3
|
/** Filters the provided rows. */
|
|
4
4
|
export declare function filterRows<T>(leafColumns: DataTableColumns<T>, rows: T[], filter: string): T[];
|
|
5
5
|
export declare function filterRows<T>(leafColumns: DataTableColumns<T>, rows: undefined, filter: string): undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DataTableColumn } from './DataTableColumn.tsx';
|
|
2
2
|
export declare const DATA_TABLE_SELECTION_COLUMN_WIDTH = 42;
|
|
3
3
|
export declare function useDataTableSelectionColumn<T = unknown, TValue = any>(): DataTableColumn<T, TValue> | undefined;
|
|
4
4
|
export declare function useDataTableSelectionColumnId(): string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { DatePicker } from
|
|
4
|
-
import {
|
|
5
|
-
import { PopoverContent } from
|
|
1
|
+
import { Locale } from 'date-fns';
|
|
2
|
+
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from 'react';
|
|
3
|
+
import { DatePicker } from '../DatePicker';
|
|
4
|
+
import { Input } from '../Input';
|
|
5
|
+
import { PopoverContent } from '../Popover';
|
|
6
6
|
/** Properties of the date input component. */
|
|
7
7
|
export interface DateInputProps extends Omit<ComponentPropsWithoutRef<typeof Input>, "defaultValue" | "value" | "onValueChange"> {
|
|
8
8
|
/** Date input's default value. */
|
|
@@ -84,4 +84,4 @@ export interface DateValueRepresentations {
|
|
|
84
84
|
* }
|
|
85
85
|
* ```
|
|
86
86
|
*/
|
|
87
|
-
export declare const DateInput: import(
|
|
87
|
+
export declare const DateInput: import('react').ForwardRefExoticComponent<DateInputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './DateInput.tsx';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Calendar } from
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { Calendar } from '../Calendar';
|
|
3
3
|
/** Properties of the date picker component. */
|
|
4
4
|
export interface DatePickerProps extends ComponentPropsWithoutRef<typeof Calendar> {
|
|
5
5
|
/** Default date value. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './DatePicker.tsx';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { CloseButton } from
|
|
6
|
-
import { ControlCode } from
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { PopoverAnchor, PopoverContent } from
|
|
10
|
-
import { Spinner } from
|
|
1
|
+
import { Locale } from 'date-fns';
|
|
2
|
+
import { ComponentPropsWithoutRef, ComponentPropsWithRef, CSSProperties, FocusEvent, ReactNode } from 'react';
|
|
3
|
+
import { ControlStatus, ControlVariant } from '../../utils/control.ts';
|
|
4
|
+
import { Responsive } from '../../utils/useResponsiveValues.ts';
|
|
5
|
+
import { CloseButton } from '../CloseButton';
|
|
6
|
+
import { ControlCode } from '../ControlCode';
|
|
7
|
+
import { DateRange, DateRangePicker } from '../DateRangePicker';
|
|
8
|
+
import { ShowClearButton } from '../Input';
|
|
9
|
+
import { PopoverAnchor, PopoverContent } from '../Popover';
|
|
10
|
+
import { Spinner } from '../Spinner';
|
|
11
11
|
/** Date-range using strings as dates. */
|
|
12
12
|
export interface StringRange {
|
|
13
13
|
start: string;
|
|
@@ -194,4 +194,4 @@ export interface DateRangeValueRepresentations {
|
|
|
194
194
|
* }
|
|
195
195
|
* ```
|
|
196
196
|
*/
|
|
197
|
-
export declare const DateRangeInput: import(
|
|
197
|
+
export declare const DateRangeInput: import('react').ForwardRefExoticComponent<DateRangeInputProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './DateRangeInput.tsx';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Calendar } from
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { Calendar } from '../Calendar';
|
|
3
3
|
/** A range of dates from a start date to an end date. */
|
|
4
4
|
export interface DateRange {
|
|
5
5
|
start: Date | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './DateRangePicker.tsx';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive } from
|
|
1
|
+
import { Dialog as DialogPrimitive } from 'radix-ui';
|
|
2
2
|
/**
|
|
3
3
|
* The dialog component displays a “window” overlaid on either the main screen
|
|
4
4
|
* or another dialog window, rendering the content underneath inert.
|
|
@@ -65,4 +65,4 @@ import { Dialog as DialogPrimitive } from "radix-ui";
|
|
|
65
65
|
* }
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
|
68
|
-
export declare const Dialog: import(
|
|
68
|
+
export declare const Dialog: import('react').FC<DialogPrimitive.DialogProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CardBody } from
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { CardBody } from '../Card';
|
|
3
3
|
/** Properties of the dialog body component. */
|
|
4
4
|
export interface DialogBodyProps extends ComponentPropsWithoutRef<typeof CardBody> {
|
|
5
5
|
}
|
|
6
6
|
/** Body section of the dialog. */
|
|
7
|
-
export declare const DialogBody: import(
|
|
7
|
+
export declare const DialogBody: import('react').ForwardRefExoticComponent<DialogBodyProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive } from
|
|
2
|
-
import {
|
|
1
|
+
import { Dialog as DialogPrimitive } from 'radix-ui';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
3
|
/** Properties of the dialog close component. */
|
|
4
4
|
export interface DialogCloseProps extends Omit<ComponentPropsWithoutRef<typeof DialogPrimitive.Close>, "asChild"> {
|
|
5
5
|
}
|
|
6
6
|
/** Button which closes the dialog. */
|
|
7
|
-
export declare const DialogClose: import(
|
|
7
|
+
export declare const DialogClose: import('react').ForwardRefExoticComponent<DialogCloseProps & import('react').RefAttributes<HTMLButtonElement>>;
|