@ostack.tech/ui 0.14.2 → 0.15.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/dist/chunks/en-Buw2XVWt.js +140 -0
- package/dist/chunks/en-Buw2XVWt.js.map +1 -0
- package/dist/chunks/platformUtils-dLFQaWJG.js +7 -0
- package/dist/chunks/platformUtils-dLFQaWJG.js.map +1 -0
- package/dist/locales/en-GB.js +16 -14
- package/dist/locales/en-GB.js.map +1 -1
- package/dist/locales/en-US.js +16 -14
- package/dist/locales/en-US.js.map +1 -1
- package/dist/locales/fr-FR.js +172 -209
- package/dist/locales/fr-FR.js.map +1 -1
- package/dist/locales/pt-PT.js +156 -195
- package/dist/locales/pt-PT.js.map +1 -1
- package/dist/ostack-ui.js +12884 -15108
- package/dist/ostack-ui.js.map +1 -1
- package/dist/types/components/Alert/Alert.d.ts +5 -5
- package/dist/types/components/Alert/AlertContext.d.ts +1 -1
- package/dist/types/components/Alert/AlertTitle.d.ts +1 -1
- 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 +8 -8
- 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 +2 -4
- package/dist/types/components/Calendar/CalendarHeader.d.ts +2 -4
- package/dist/types/components/Calendar/CalendarMonthGrid.d.ts +2 -1
- 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 +1 -1
- package/dist/types/components/Card/index.d.ts +5 -5
- package/dist/types/components/Checkbox/Checkbox.d.ts +10 -10
- package/dist/types/components/Checkbox/index.d.ts +1 -1
- package/dist/types/components/CheckboxGroup/CheckboxGroup.d.ts +7 -7
- package/dist/types/components/CheckboxGroup/CheckboxGroupContext.d.ts +4 -4
- 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 +4 -4
- 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/Control/Control.d.ts +6 -6
- package/dist/types/components/Control/ControlContext.d.ts +2 -2
- package/dist/types/components/Control/ControlWithContainerRef.d.ts +4 -4
- package/dist/types/components/Control/controlUtils.d.ts +2 -2
- package/dist/types/components/Control/index.d.ts +4 -4
- 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 +57 -11
- 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 +21 -42
- package/dist/types/components/DataTable/DataTableEmptyOrLoadingRows.d.ts +2 -2
- package/dist/types/components/DataTable/DataTableFilter.d.ts +2 -2
- 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 +3 -3
- 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 +6 -4
- package/dist/types/components/DataTable/PagedDataTablePagination.d.ts +3 -3
- package/dist/types/components/DataTable/PagedDataTableRows.d.ts +1 -1
- package/dist/types/components/DataTable/ScrolledDataTablePagination.d.ts +3 -3
- package/dist/types/components/DataTable/ScrolledDataTableRows.d.ts +2 -2
- package/dist/types/components/DataTable/columnUtils.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 → processRows.d.ts} +2 -2
- package/dist/types/components/DataTable/sanitizeProps.d.ts +2 -2
- package/dist/types/components/DataTable/useDataTableSelectionColumn.d.ts +1 -1
- package/dist/types/components/DateInput/DateInput.d.ts +7 -7
- package/dist/types/components/DateInput/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/DescriptionList/DescriptionList.d.ts +3 -3
- package/dist/types/components/DescriptionList/DescriptionListItem.d.ts +3 -3
- package/dist/types/components/DescriptionList/index.d.ts +2 -2
- 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 +4 -4
- package/dist/types/components/Field/FieldProvider.d.ts +2 -2
- package/dist/types/components/Field/index.d.ts +3 -3
- 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 +1 -1
- package/dist/types/components/FieldGroup/index.d.ts +4 -4
- package/dist/types/components/Form/Form.d.ts +2 -2
- package/dist/types/components/Form/FormContext.d.ts +8 -8
- package/dist/types/components/Form/FormError.d.ts +2 -2
- package/dist/types/components/Form/FormReset.d.ts +2 -2
- package/dist/types/components/Form/FormState.d.ts +1 -1
- package/dist/types/components/Form/FormSubmit.d.ts +2 -2
- package/dist/types/components/Form/HiddenFormControl.d.ts +2 -2
- package/dist/types/components/Form/formUtils.d.ts +2 -2
- package/dist/types/components/Form/index.d.ts +6 -6
- package/dist/types/components/Form/useRegisterFormControl.d.ts +3 -3
- 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 +1 -1
- 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 +8 -8
- package/dist/types/components/IconButton/index.d.ts +1 -1
- package/dist/types/components/Input/Input.d.ts +4 -4
- package/dist/types/components/Input/index.d.ts +1 -1
- package/dist/types/components/Keybinds/Key.d.ts +2 -2
- package/dist/types/components/Keybinds/KeyPress.d.ts +2 -2
- package/dist/types/components/Keybinds/Keybind.d.ts +2 -2
- package/dist/types/components/Keybinds/Keybinds.d.ts +2 -2
- package/dist/types/components/Keybinds/index.d.ts +1 -1
- 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/Layer/Layer.d.ts +3 -3
- package/dist/types/components/Layer/LayerContext.d.ts +1 -1
- package/dist/types/components/Layer/index.d.ts +2 -2
- 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 +8 -8
- package/dist/types/components/MenuList/index.d.ts +3 -3
- package/dist/types/components/NumericInput/NumericInput.d.ts +5 -5
- package/dist/types/components/NumericInput/index.d.ts +1 -1
- package/dist/types/components/NumericInput/numericInputUtils.d.ts +2 -2
- 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/Printer/Printer.d.ts +3 -3
- package/dist/types/components/Printer/PrinterContent.d.ts +3 -3
- package/dist/types/components/Printer/PrinterContentContext.d.ts +1 -1
- package/dist/types/components/Printer/PrinterContext.d.ts +3 -3
- package/dist/types/components/Printer/PrinterTrigger.d.ts +2 -2
- package/dist/types/components/Printer/index.d.ts +6 -6
- package/dist/types/components/RadioGroup/Radio.d.ts +7 -7
- package/dist/types/components/RadioGroup/RadioGroup.d.ts +9 -9
- 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 +9 -9
- package/dist/types/components/Select/SelectContext.d.ts +7 -7
- package/dist/types/components/Select/SelectMultipleValue.d.ts +1 -1
- package/dist/types/components/Select/SelectNative.d.ts +2 -2
- 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 +4 -4
- 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 +2 -2
- package/dist/types/components/Stepper/StepList.d.ts +2 -2
- package/dist/types/components/Stepper/Stepper.d.ts +3 -3
- package/dist/types/components/Stepper/StepperContext.d.ts +3 -3
- package/dist/types/components/Stepper/StepperFinishTrigger.d.ts +3 -3
- package/dist/types/components/Stepper/StepperNextTrigger.d.ts +3 -3
- package/dist/types/components/Stepper/StepperPreviousTrigger.d.ts +3 -3
- package/dist/types/components/Stepper/StepperState.d.ts +2 -2
- package/dist/types/components/Stepper/index.d.ts +9 -9
- 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 +9 -9
- 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/columnUtils.d.ts +3 -3
- package/dist/types/components/Table/index.d.ts +8 -8
- package/dist/types/components/Tabs/Tab.d.ts +5 -5
- package/dist/types/components/Tabs/TabContent.d.ts +3 -3
- package/dist/types/components/Tabs/TabList.d.ts +4 -4
- package/dist/types/components/Tabs/Tabs.d.ts +3 -3
- package/dist/types/components/Tabs/TabsContext.d.ts +5 -5
- 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 +4 -4
- 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 +3 -3
- 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 +1 -1
- package/dist/types/components/VisuallyHidden/index.d.ts +1 -1
- package/dist/types/index.d.ts +106 -105
- 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-FR.d.ts +1 -1
- package/dist/types/locales/index.d.ts +4 -4
- package/dist/types/locales/pt-PT.d.ts +1 -1
- package/dist/types/providers/AlertDialogProvider/AlertDialogProvider.d.ts +2 -2
- 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 +2 -2
- package/dist/types/providers/DocumentTitleProvider/DocumentTitleProvider.d.ts +2 -2
- 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 +3 -3
- 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 +25 -25
- 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 +2 -2
- 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/keyboardShortcut.d.ts +15 -10
- package/dist/types/utils/parseDateStrict.d.ts +1 -1
- package/dist/types/utils/polymorphicTypes.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/useLatestRef.d.ts +9 -0
- package/dist/types/utils/usePrevious.d.ts +9 -0
- package/dist/types/utils/useResponsiveValues.d.ts +2 -2
- package/dist/types/utils/useSafeLayoutEffect.d.ts +3 -0
- package/dist/types/utils/useSearchParam.d.ts +1 -1
- package/dist/types/utils/useSearchParams.d.ts +1 -1
- package/dist/types/utils/zustandUtils.d.ts +1 -1
- package/package.json +8 -8
- package/dist/chunks/en-BiTLo8i1.js +0 -179
- package/dist/chunks/en-BiTLo8i1.js.map +0 -1
- package/dist/chunks/platformUtils-C3IHCr90.js +0 -6
- package/dist/chunks/platformUtils-C3IHCr90.js.map +0 -1
- package/dist/types/utils/useLatestValues.d.ts +0 -8
- package/dist/types/utils/useLayoutEffect.d.ts +0 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, CSSProperties, ReactNode } from
|
|
2
|
-
import { CommandMenu } from
|
|
3
|
-
import { ControlSelectMultipleProps, ControlSelectSingleProps } from
|
|
4
|
-
import { FormValidationMode } from
|
|
5
|
-
import { FormControlValidateFn } from
|
|
6
|
-
import { IconButton } from
|
|
7
|
-
import { PopoverContent, PopoverTrigger } from
|
|
8
|
-
import { Tag } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type CSSProperties, type ReactNode } from "react";
|
|
2
|
+
import { CommandMenu } from "../CommandMenu";
|
|
3
|
+
import { type ControlSelectMultipleProps, type ControlSelectSingleProps } from "../Control";
|
|
4
|
+
import type { FormValidationMode } from "../Form";
|
|
5
|
+
import { type FormControlValidateFn } from "../Form/useRegisterFormControl.ts";
|
|
6
|
+
import type { IconButton } from "../IconButton";
|
|
7
|
+
import { PopoverContent, PopoverTrigger } from "../Popover";
|
|
8
|
+
import type { Tag } from "../Tag";
|
|
9
9
|
/** Select's popover trigger properties. */
|
|
10
10
|
type SelectPopoverTriggerProps = Omit<ComponentPropsWithoutRef<typeof PopoverTrigger>, "defaultValue" | "value">;
|
|
11
11
|
/** Base properties of the select component. */
|
|
@@ -113,5 +113,5 @@ export type SelectProps = SelectSingleProps | SelectMultipleProps;
|
|
|
113
113
|
* }
|
|
114
114
|
* ```
|
|
115
115
|
*/
|
|
116
|
-
export declare const Select: import(
|
|
116
|
+
export declare const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
117
117
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { AccentColor } from
|
|
3
|
-
import { ControlStatus } from
|
|
4
|
-
import { SelectProps } from
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { AccentColor } from "../../utils/accent.ts";
|
|
3
|
+
import type { ControlStatus } from "../Control";
|
|
4
|
+
import type { SelectProps } from "./Select.tsx";
|
|
5
5
|
/** Value of the select context. */
|
|
6
6
|
export interface SelectContextValue {
|
|
7
7
|
registering?: boolean;
|
|
@@ -35,7 +35,7 @@ export interface SelectActions {
|
|
|
35
35
|
/** Select store. */
|
|
36
36
|
export type SelectStore = ReturnType<typeof useCreateSelectContext>["store"];
|
|
37
37
|
/** Select context. */
|
|
38
|
-
export declare const SelectContext: import(
|
|
38
|
+
export declare const SelectContext: import("react").Context<SelectContextValue | null>;
|
|
39
39
|
/** Options to pass to the `useCreateSelectContext` hook. */
|
|
40
40
|
export type UseCreateSelectContextOptions = Omit<SelectContextValue, "store">;
|
|
41
41
|
/** Hook which creates the select context. */
|
|
@@ -47,8 +47,8 @@ export declare function useCreateSelectContext({ multiple, value, onOptionSelect
|
|
|
47
47
|
disabled: boolean | undefined;
|
|
48
48
|
readOnly: boolean | undefined;
|
|
49
49
|
valueTagCloseButtonLabel: ReactNode;
|
|
50
|
-
valueTagProps: Omit<Omit<import(
|
|
51
|
-
store: Omit<import(
|
|
50
|
+
valueTagProps: Omit<Omit<import("../Tag/Tag.tsx").TagProps & import("react").RefAttributes<HTMLSpanElement>, "ref">, "color" | "open" | "defaultOpen" | "onOpenChange" | "showCloseButton"> | undefined;
|
|
51
|
+
store: Omit<import("zustand").StoreApi<SelectState>, "subscribe"> & {
|
|
52
52
|
subscribe: {
|
|
53
53
|
(listener: (selectedState: SelectState, previousSelectedState: SelectState) => void): () => void;
|
|
54
54
|
<U>(selector: (state: SelectState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function SelectMultipleValue(): import("react
|
|
1
|
+
export declare function SelectMultipleValue(): import("react").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
2
|
/** Properties of the native `<select>` element. */
|
|
3
3
|
export interface SelectNativeProps extends ComponentPropsWithoutRef<"select"> {
|
|
4
4
|
actualElement: HTMLElement | null;
|
|
5
5
|
onValueChange: (value: string | string[]) => void;
|
|
6
6
|
}
|
|
7
7
|
/** Native `<select>` element used by the `Select` component. */
|
|
8
|
-
export declare const SelectNative: import(
|
|
8
|
+
export declare const SelectNative: import("react").ForwardRefExoticComponent<SelectNativeProps & import("react").RefAttributes<HTMLSelectElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function SelectSingleValue(): import(
|
|
1
|
+
export declare function SelectSingleValue(): import("react").ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./Option.tsx";
|
|
2
|
+
export * from "./OptionsGroup.tsx";
|
|
3
|
+
export * from "./Select.tsx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Separator as SeparatorPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef } from
|
|
3
|
-
import { AccentColor } from
|
|
1
|
+
import { Separator as SeparatorPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
|
+
import type { AccentColor } from "../../utils/accent.ts";
|
|
4
4
|
/** Link colours. */
|
|
5
5
|
export type SeparatorColor = AccentColor;
|
|
6
6
|
/** Properties of the separator component. */
|
|
@@ -42,4 +42,4 @@ export interface SeparatorProps extends ComponentPropsWithoutRef<typeof Separato
|
|
|
42
42
|
* }
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
|
-
export declare const Separator: import(
|
|
45
|
+
export declare const Separator: import("react").ForwardRefExoticComponent<SeparatorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./Separator.tsx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Slot as SlotPrimitive } from
|
|
1
|
+
import { Slot as SlotPrimitive } from "radix-ui";
|
|
2
2
|
/**
|
|
3
3
|
* Component that merges its props onto its immediate child.
|
|
4
4
|
*
|
|
5
5
|
* Used to support components with an `asChild` property.
|
|
6
6
|
*/
|
|
7
|
-
export declare const Slot: import(
|
|
7
|
+
export declare const Slot: import("react").ForwardRefExoticComponent<SlotPrimitive.SlotProps & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./Slot.tsx";
|
|
2
|
+
export * from "./Slottable.tsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from
|
|
2
|
-
import { AccentColor } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
+
import type { AccentColor } from "../../utils/accent.ts";
|
|
3
3
|
/** Possible sizes of the spinner. */
|
|
4
4
|
export type SpinnerSize = "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
5
5
|
/** Possible colours of the spinner. */
|
|
@@ -38,4 +38,4 @@ export interface SpinnerProps extends ComponentPropsWithoutRef<"span"> {
|
|
|
38
38
|
* }
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
|
-
export declare const Spinner: import(
|
|
41
|
+
export declare const Spinner: import("react").ForwardRefExoticComponent<SpinnerProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./Spinner.tsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, CSSProperties, ReactElement } from
|
|
2
|
-
import { Responsive } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type CSSProperties, type ReactElement } from "react";
|
|
2
|
+
import { type Responsive } from "../../utils/useResponsiveValues.ts";
|
|
3
3
|
/** Possible stack directions. */
|
|
4
4
|
export type StackDirection = "column" | "column-reverse" | "row" | "row-reverse";
|
|
5
5
|
/** Whether to wrap items. */
|
|
@@ -61,4 +61,4 @@ export interface StackProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
61
61
|
* }
|
|
62
62
|
* ```
|
|
63
63
|
*/
|
|
64
|
-
export declare const Stack: import(
|
|
64
|
+
export declare const Stack: import("react").ForwardRefExoticComponent<StackProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./Stack.tsx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from
|
|
2
|
-
import { ButtonProps } from
|
|
3
|
-
import { ControlStatus } from
|
|
4
|
-
import { Label } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactNode } from "react";
|
|
2
|
+
import { type ButtonProps } from "../Button";
|
|
3
|
+
import { type ControlStatus } from "../Control";
|
|
4
|
+
import { Label } from "../Label";
|
|
5
5
|
/** Properties of the step component. */
|
|
6
6
|
export interface StepProps extends ComponentPropsWithoutRef<"li">, Pick<ButtonProps, "variant" | "disabled" | "loading" | "showSpinner" | "spinnerProps"> {
|
|
7
7
|
/**
|
|
@@ -29,4 +29,4 @@ export interface StepProps extends ComponentPropsWithoutRef<"li">, Pick<ButtonPr
|
|
|
29
29
|
labelProps?: Omit<ComponentPropsWithRef<typeof Label>, "htmlFor">;
|
|
30
30
|
}
|
|
31
31
|
/** Step trigger component. */
|
|
32
|
-
export declare const Step: import(
|
|
32
|
+
export declare const Step: import("react").ForwardRefExoticComponent<StepProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef } from "react";
|
|
2
2
|
/** Properties of the step content component. */
|
|
3
3
|
export interface StepContentProps extends ComponentPropsWithoutRef<"div"> {
|
|
4
4
|
/**
|
|
@@ -15,4 +15,4 @@ export interface StepContentProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
15
15
|
stepContentLabelIndexProps?: ComponentPropsWithRef<"span">;
|
|
16
16
|
}
|
|
17
17
|
/** Step content component. */
|
|
18
|
-
export declare const StepContent: import(
|
|
18
|
+
export declare const StepContent: import("react").ForwardRefExoticComponent<StepContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
2
|
/** Properties of the step list component. */
|
|
3
3
|
export interface StepListProps extends ComponentPropsWithoutRef<"ol"> {
|
|
4
4
|
/**
|
|
@@ -14,4 +14,4 @@ export interface StepListProps extends ComponentPropsWithoutRef<"ol"> {
|
|
|
14
14
|
* The `index` of each `Step` is automatically added when `Step`s are direct
|
|
15
15
|
* children of `StepList`.
|
|
16
16
|
*/
|
|
17
|
-
export declare const StepList: import(
|
|
17
|
+
export declare const StepList: import("react").ForwardRefExoticComponent<StepListProps & import("react").RefAttributes<HTMLOListElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, Ref } from
|
|
2
|
-
import { StepperApi } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type Ref } from "react";
|
|
2
|
+
import { type StepperApi } from "./StepperContext.ts";
|
|
3
3
|
/** Properties of the stepper component. */
|
|
4
4
|
export interface StepperProps extends ComponentPropsWithoutRef<"div"> {
|
|
5
5
|
/**
|
|
@@ -73,4 +73,4 @@ export interface StepperProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
73
73
|
* }
|
|
74
74
|
* ```
|
|
75
75
|
*/
|
|
76
|
-
export declare const Stepper: import(
|
|
76
|
+
export declare const Stepper: import("react").ForwardRefExoticComponent<StepperProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from
|
|
1
|
+
import { type ReactNode, type RefObject } from "react";
|
|
2
2
|
/** Value of the stepper context. */
|
|
3
3
|
export interface StepperContextValue {
|
|
4
4
|
showAllStepsWhilePrinting?: boolean;
|
|
@@ -37,7 +37,7 @@ interface StepperStateActions {
|
|
|
37
37
|
/** Stepper store. */
|
|
38
38
|
export type StepperStore = ReturnType<typeof useCreateStepperContext>["store"];
|
|
39
39
|
/** Stepper context. */
|
|
40
|
-
export declare const StepperContext: import(
|
|
40
|
+
export declare const StepperContext: import("react").Context<StepperContextValue | null>;
|
|
41
41
|
/** Stepper API. */
|
|
42
42
|
export interface StepperApi {
|
|
43
43
|
/** Currently active step. */
|
|
@@ -56,7 +56,7 @@ export interface StepperApi {
|
|
|
56
56
|
/** Hook which creates the stepper store. */
|
|
57
57
|
export declare function useCreateStepperContext(defaultActiveStep?: number, activeStep?: number, onActiveStepChange?: (activeStep: number) => void, showAllStepsWhilePrinting?: boolean): {
|
|
58
58
|
showAllStepsWhilePrinting: boolean | undefined;
|
|
59
|
-
store: Omit<import(
|
|
59
|
+
store: Omit<import("zustand").StoreApi<StepperState>, "subscribe"> & {
|
|
60
60
|
subscribe: {
|
|
61
61
|
(listener: (selectedState: StepperState, previousSelectedState: StepperState) => void): () => void;
|
|
62
62
|
<U>(selector: (state: StepperState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from
|
|
2
|
-
import { Button } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
+
import { Button } from "../Button";
|
|
3
3
|
/** Properties of the stepper finish trigger component. */
|
|
4
4
|
export type StepperFinishTriggerProps = StepperFinishTriggerChildlessProps | StepperFinishTriggerChildrenProps;
|
|
5
5
|
/** Base properties of the stepper finish trigger component. */
|
|
@@ -34,4 +34,4 @@ export interface StepperFinishTriggerChildrenProps extends StepperFinishTriggerP
|
|
|
34
34
|
children: ReactNode;
|
|
35
35
|
}
|
|
36
36
|
/** Trigger used to conclude the stepper. */
|
|
37
|
-
export declare const StepperFinishTrigger: import(
|
|
37
|
+
export declare const StepperFinishTrigger: import("react").ForwardRefExoticComponent<StepperFinishTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from
|
|
2
|
-
import { Button } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
+
import { Button } from "../Button";
|
|
3
3
|
/** Properties of the stepper next trigger component. */
|
|
4
4
|
export type StepperNextTriggerProps = StepperNextTriggerChildlessProps | StepperNextTriggerChildrenProps;
|
|
5
5
|
/** Base properties of the stepper next trigger component. */
|
|
@@ -31,4 +31,4 @@ export interface StepperNextTriggerChildrenProps extends StepperNextTriggerProps
|
|
|
31
31
|
children: ReactNode;
|
|
32
32
|
}
|
|
33
33
|
/** Trigger used to go to the next step of the stepper. */
|
|
34
|
-
export declare const StepperNextTrigger: import(
|
|
34
|
+
export declare const StepperNextTrigger: import("react").ForwardRefExoticComponent<StepperNextTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from
|
|
2
|
-
import { Button } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
+
import { Button } from "../Button";
|
|
3
3
|
/** Properties of the stepper previous trigger component. */
|
|
4
4
|
export type StepperPreviousTriggerProps = StepperPreviousTriggerChildlessProps | StepperPreviousTriggerChildrenProps;
|
|
5
5
|
/** Base properties of the stepper previous trigger component. */
|
|
@@ -34,4 +34,4 @@ export interface StepperPreviousTriggerChildrenProps extends StepperPreviousTrig
|
|
|
34
34
|
children: ReactNode;
|
|
35
35
|
}
|
|
36
36
|
/** Trigger used to go to the previous step of the stepper. */
|
|
37
|
-
export declare const StepperPreviousTrigger: import(
|
|
37
|
+
export declare const StepperPreviousTrigger: import("react").ForwardRefExoticComponent<StepperPreviousTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { StepperApi } from
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type StepperApi } from "./StepperContext.ts";
|
|
3
3
|
/** Properties of the stepper state component. */
|
|
4
4
|
export interface StepperStateProps {
|
|
5
5
|
children?: (api: StepperApi) => ReactNode;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export { type StepperApi, useStepperApi } from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
1
|
+
export * from "./Step.tsx";
|
|
2
|
+
export * from "./StepContent.tsx";
|
|
3
|
+
export * from "./StepList.tsx";
|
|
4
|
+
export * from "./Stepper.tsx";
|
|
5
|
+
export { type StepperApi, useStepperApi } from "./StepperContext.ts";
|
|
6
|
+
export * from "./StepperFinishTrigger.tsx";
|
|
7
|
+
export * from "./StepperNextTrigger.tsx";
|
|
8
|
+
export * from "./StepperPreviousTrigger.tsx";
|
|
9
|
+
export * from "./StepperState.tsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, CSSProperties, ReactNode } from
|
|
2
|
-
import { ControlStatus } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type CSSProperties, type ReactNode } from "react";
|
|
2
|
+
import { type ControlStatus } from "../Control";
|
|
3
3
|
/** Default column width in `"fixed"` mode. */
|
|
4
4
|
export declare const DEFAULT_TABLE_COLUMN_WIDTH = 150;
|
|
5
5
|
/** Possible table caption sides. */
|
|
@@ -165,4 +165,4 @@ export interface TableProps extends ComponentPropsWithoutRef<"table"> {
|
|
|
165
165
|
* }
|
|
166
166
|
* ```
|
|
167
167
|
*/
|
|
168
|
-
export declare const Table: import(
|
|
168
|
+
export declare const Table: import("react").ForwardRefExoticComponent<TableProps & import("react").RefAttributes<HTMLTableElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
2
|
/** Properties of the table body component. */
|
|
3
3
|
export interface TableBodyProps extends ComponentPropsWithoutRef<"tbody"> {
|
|
4
4
|
}
|
|
5
5
|
/** Table body component. */
|
|
6
|
-
export declare const TableBody: import(
|
|
6
|
+
export declare const TableBody: import("react").ForwardRefExoticComponent<TableBodyProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, CSSProperties } from
|
|
2
|
-
import { ControlStatus } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type CSSProperties } from "react";
|
|
2
|
+
import type { ControlStatus } from "../Control";
|
|
3
3
|
/** Type of table cell. */
|
|
4
4
|
export type TableCellVariant = "header" | "data";
|
|
5
5
|
/** Sticky position of the table cell. */
|
|
@@ -57,4 +57,4 @@ export interface TableCellProps extends Omit<ComponentPropsWithoutRef<"td" | "th
|
|
|
57
57
|
sticky?: TableCellSticky;
|
|
58
58
|
}
|
|
59
59
|
/** Table row component. */
|
|
60
|
-
export declare const TableCell: import(
|
|
60
|
+
export declare const TableCell: import("react").ForwardRefExoticComponent<TableCellProps & import("react").RefAttributes<HTMLTableDataCellElement>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from
|
|
2
|
-
import { SortDirection } from
|
|
3
|
-
import { Button } from
|
|
4
|
-
import { Icon } from
|
|
5
|
-
import { IconButton } from
|
|
6
|
-
import { Popover, PopoverContent } from
|
|
7
|
-
import { Stack } from
|
|
8
|
-
import { TableCell } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactNode } from "react";
|
|
2
|
+
import type { SortDirection } from "../../utils/sorting.ts";
|
|
3
|
+
import type { Button } from "../Button";
|
|
4
|
+
import type { Icon } from "../Icon";
|
|
5
|
+
import type { IconButton } from "../IconButton";
|
|
6
|
+
import type { Popover, PopoverContent } from "../Popover";
|
|
7
|
+
import type { Stack } from "../Stack";
|
|
8
|
+
import type { TableCell } from "./TableCell.tsx";
|
|
9
9
|
/** Properties of a table column. */
|
|
10
10
|
export interface TableColumnProps extends Omit<ComponentPropsWithoutRef<typeof TableCell>, "columnIndex" | "_stickyColumnIndex" | "rowSpan" | "scope"> {
|
|
11
11
|
/** Column's label. */
|
|
@@ -80,4 +80,4 @@ export interface TableColumnProps extends Omit<ComponentPropsWithoutRef<typeof T
|
|
|
80
80
|
* `TableHead` component to automatically create an appropriate header based on
|
|
81
81
|
* the columns.
|
|
82
82
|
*/
|
|
83
|
-
export declare const TableColumn: import(
|
|
83
|
+
export declare const TableColumn: import("react").ForwardRefExoticComponent<TableColumnProps & import("react").RefAttributes<HTMLTableDataCellElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ScrollPosition } from
|
|
2
|
-
import { ControlStatus } from
|
|
3
|
-
import { TableColumnObject } from
|
|
4
|
-
import { TableLayout } from
|
|
1
|
+
import type { ScrollPosition } from "../../utils/useScrollPosition.ts";
|
|
2
|
+
import type { ControlStatus } from "../Control";
|
|
3
|
+
import { type TableColumnObject } from "./columnUtils.ts";
|
|
4
|
+
import type { TableLayout } from "./Table.tsx";
|
|
5
5
|
/** Value of the table context. */
|
|
6
6
|
export interface TableContextValue {
|
|
7
7
|
editable: boolean;
|
|
@@ -20,7 +20,7 @@ export interface TableState {
|
|
|
20
20
|
/** Table store. */
|
|
21
21
|
export type TableStore = ReturnType<typeof useCreateTableContext>["store"];
|
|
22
22
|
/** Table context. */
|
|
23
|
-
export declare const TableContext: import(
|
|
23
|
+
export declare const TableContext: import("react").Context<TableContextValue | null>;
|
|
24
24
|
/** Options for the `useCreateTableContext` hook. */
|
|
25
25
|
export type UseCreateTableContextOptions = Omit<TableContextValue, "store"> & {
|
|
26
26
|
defaultColumnWidth: number;
|
|
@@ -30,7 +30,7 @@ export declare function useCreateTableContext({ editable, status, layout, defaul
|
|
|
30
30
|
editable: boolean;
|
|
31
31
|
status: ControlStatus | undefined;
|
|
32
32
|
layout: TableLayout;
|
|
33
|
-
store: Omit<import(
|
|
33
|
+
store: Omit<import("zustand").StoreApi<TableState>, "subscribe"> & {
|
|
34
34
|
subscribe: {
|
|
35
35
|
(listener: (selectedState: TableState, previousSelectedState: TableState) => void): () => void;
|
|
36
36
|
<U>(selector: (state: TableState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -45,14 +45,14 @@ export declare function useTableContext(): TableContextValue;
|
|
|
45
45
|
/** Hook returning the number of columns of the table. */
|
|
46
46
|
export declare function useTableNumberOfColumns(): number | undefined;
|
|
47
47
|
/** Table head context. */
|
|
48
|
-
export declare const TableHeadContext: import(
|
|
48
|
+
export declare const TableHeadContext: import("react").Context<boolean>;
|
|
49
49
|
/** Hook exposing whether a component is being rendered within a table head. */
|
|
50
50
|
export declare function useIsInTableHead(): boolean;
|
|
51
51
|
/** Table foot context. */
|
|
52
|
-
export declare const TableFootContext: import(
|
|
52
|
+
export declare const TableFootContext: import("react").Context<boolean>;
|
|
53
53
|
/** Hook exposing whether a component is being rendered within a table foot. */
|
|
54
54
|
export declare function useIsInTableFoot(): boolean;
|
|
55
55
|
/** Context present within a table cell. */
|
|
56
|
-
export declare const TableCellContext: import(
|
|
56
|
+
export declare const TableCellContext: import("react").Context<boolean>;
|
|
57
57
|
/** Hook exposing whether a component is being rendered within a table cell. */
|
|
58
58
|
export declare function useIsInTableCell(): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
2
|
/** Properties of the table foot component. */
|
|
3
3
|
export interface TableFootProps extends ComponentPropsWithoutRef<"tfoot"> {
|
|
4
4
|
/**
|
|
@@ -9,4 +9,4 @@ export interface TableFootProps extends ComponentPropsWithoutRef<"tfoot"> {
|
|
|
9
9
|
sticky?: boolean;
|
|
10
10
|
}
|
|
11
11
|
/** Table foot component. */
|
|
12
|
-
export declare const TableFoot: import(
|
|
12
|
+
export declare const TableFoot: import("react").ForwardRefExoticComponent<TableFootProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
2
|
-
import { SortDirection } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import type { SortDirection } from "../../utils/sorting.ts";
|
|
3
3
|
/** Properties of the table head component. */
|
|
4
4
|
export interface TableHeadProps extends ComponentPropsWithoutRef<"thead"> {
|
|
5
5
|
/**
|
|
@@ -20,4 +20,4 @@ export interface TableHeadProps extends ComponentPropsWithoutRef<"thead"> {
|
|
|
20
20
|
rowProps?: ComponentPropsWithoutRef<"tr"> | ((index: number) => ComponentPropsWithoutRef<"tr">);
|
|
21
21
|
}
|
|
22
22
|
/** Table head component. */
|
|
23
|
-
export declare const TableHead: import(
|
|
23
|
+
export declare const TableHead: import("react").ForwardRefExoticComponent<TableHeadProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
2
|
/** Default table row height (with a single line of text or with form controls). */
|
|
3
3
|
export declare const DEFAULT_TABLE_ROW_HEIGHT = 41;
|
|
4
4
|
/** Properties of the table row component. */
|
|
@@ -7,4 +7,4 @@ export interface TableRowProps extends ComponentPropsWithoutRef<"tr"> {
|
|
|
7
7
|
selected?: boolean;
|
|
8
8
|
}
|
|
9
9
|
/** Table row component. */
|
|
10
|
-
export declare const TableRow: import(
|
|
10
|
+
export declare const TableRow: import("react").ForwardRefExoticComponent<TableRowProps & import("react").RefAttributes<HTMLTableRowElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentRef, ReactNode, RefAttributes } from
|
|
2
|
-
import { TableCell } from
|
|
3
|
-
import { TableColumnProps } from
|
|
1
|
+
import { type ComponentRef, type ReactNode, type RefAttributes } from "react";
|
|
2
|
+
import type { TableCell } from "./TableCell.tsx";
|
|
3
|
+
import { type TableColumnProps } from "./TableColumn.tsx";
|
|
4
4
|
/** Representation of a table column in object notation. */
|
|
5
5
|
export type TableColumnObject = Omit<TableColumnProps & RefAttributes<ComponentRef<typeof TableCell>>, "children"> & {
|
|
6
6
|
subColumns: TableColumnObject[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export { useIsInTableCell, useTableNumberOfColumns } from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
1
|
+
export * from "./Table.tsx";
|
|
2
|
+
export * from "./TableBody.tsx";
|
|
3
|
+
export * from "./TableCell.tsx";
|
|
4
|
+
export * from "./TableColumn.tsx";
|
|
5
|
+
export { useIsInTableCell, useTableNumberOfColumns } from "./TableContext.ts";
|
|
6
|
+
export * from "./TableFoot.tsx";
|
|
7
|
+
export * from "./TableHead.tsx";
|
|
8
|
+
export * from "./TableRow.tsx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Tabs as TabsPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from
|
|
3
|
-
import { ControlStatus } from
|
|
4
|
-
import { Tooltip } from
|
|
1
|
+
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef } from "react";
|
|
3
|
+
import { type ControlStatus } from "../Control";
|
|
4
|
+
import { Tooltip } from "../Tooltip";
|
|
5
5
|
/** Properties of the tab component. */
|
|
6
6
|
export interface TabProps extends Omit<ComponentPropsWithoutRef<typeof TabsPrimitive.TabsTrigger>, "asChild" | "value"> {
|
|
7
7
|
/** Value representing this tab. */
|
|
@@ -16,4 +16,4 @@ export interface TabProps extends Omit<ComponentPropsWithoutRef<typeof TabsPrimi
|
|
|
16
16
|
tabTextProps?: ComponentPropsWithRef<"span">;
|
|
17
17
|
}
|
|
18
18
|
/** Tab trigger component. */
|
|
19
|
-
export declare const Tab: import(
|
|
19
|
+
export declare const Tab: import("react").ForwardRefExoticComponent<TabProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Tabs as TabsPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from
|
|
1
|
+
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef } from "react";
|
|
3
3
|
/** Properties of the tab content component. */
|
|
4
4
|
export interface TabContentProps extends Omit<ComponentPropsWithoutRef<typeof TabsPrimitive.TabsContent>, "value"> {
|
|
5
5
|
/** Value of the tab that corresponds to this content. */
|
|
@@ -11,4 +11,4 @@ export interface TabContentProps extends Omit<ComponentPropsWithoutRef<typeof Ta
|
|
|
11
11
|
tabContentLabelProps?: ComponentPropsWithRef<"span">;
|
|
12
12
|
}
|
|
13
13
|
/** Tab content component. */
|
|
14
|
-
export declare const TabContent: import(
|
|
14
|
+
export declare const TabContent: import("react").ForwardRefExoticComponent<TabContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Tabs as TabsPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from
|
|
3
|
-
import { IconButton } from
|
|
1
|
+
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactNode } from "react";
|
|
3
|
+
import { IconButton } from "../IconButton";
|
|
4
4
|
/** Properties of the tab list component. */
|
|
5
5
|
export interface TabListProps extends ComponentPropsWithoutRef<typeof TabsPrimitive.List> {
|
|
6
6
|
/** Label of the scroll left button. */
|
|
@@ -17,4 +17,4 @@ export interface TabListProps extends ComponentPropsWithoutRef<typeof TabsPrimit
|
|
|
17
17
|
scrollRightButtonProps?: Omit<Partial<ComponentPropsWithRef<typeof IconButton>>, "label">;
|
|
18
18
|
}
|
|
19
19
|
/** Component containing all tabs. */
|
|
20
|
-
export declare const TabList: import(
|
|
20
|
+
export declare const TabList: import("react").ForwardRefExoticComponent<TabListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Tabs as TabsPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
3
|
/** Tabs variants. */
|
|
4
4
|
export type TabsVariant = "default" | "annexes";
|
|
5
5
|
/** Properties of the tabs component. */
|
|
@@ -53,4 +53,4 @@ export interface TabsProps extends Omit<ComponentPropsWithoutRef<typeof TabsPrim
|
|
|
53
53
|
* }
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
export declare const Tabs: import(
|
|
56
|
+
export declare const Tabs: import("react").ForwardRefExoticComponent<TabsProps & import("react").RefAttributes<HTMLDivElement>>;
|