@ostack.tech/ui 0.15.0 → 0.15.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-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 +17 -15
- package/dist/locales/en-GB.js.map +1 -1
- package/dist/locales/en-US.js +17 -15
- package/dist/locales/en-US.js.map +1 -1
- package/dist/locales/fr-FR.js +173 -210
- package/dist/locales/fr-FR.js.map +1 -1
- package/dist/locales/pt-PT.js +157 -196
- package/dist/locales/pt-PT.js.map +1 -1
- package/dist/ostack-ui.js +12884 -15205
- package/dist/ostack-ui.js.map +1 -1
- package/package.json +13 -13
- package/{dist/types → types}/components/Alert/Alert.d.ts +5 -5
- package/{dist/types → types}/components/Alert/AlertContext.d.ts +1 -1
- package/{dist/types → types}/components/Alert/AlertTitle.d.ts +1 -1
- package/types/components/Alert/index.d.ts +2 -0
- package/{dist/types → types}/components/AlertDialog/AlertDialog.d.ts +2 -2
- package/{dist/types → types}/components/AlertDialog/AlertDialogAction.d.ts +3 -3
- package/types/components/AlertDialog/AlertDialogBody.d.ts +7 -0
- package/{dist/types → types}/components/AlertDialog/AlertDialogCancel.d.ts +3 -3
- package/{dist/types → types}/components/AlertDialog/AlertDialogContent.d.ts +5 -5
- package/{dist/types → types}/components/AlertDialog/AlertDialogDescription.d.ts +3 -3
- package/types/components/AlertDialog/AlertDialogFooter.d.ts +7 -0
- package/{dist/types → types}/components/AlertDialog/AlertDialogHeader.d.ts +3 -3
- package/{dist/types → types}/components/AlertDialog/AlertDialogTitle.d.ts +3 -3
- package/{dist/types → types}/components/AlertDialog/AlertDialogTrigger.d.ts +3 -3
- package/types/components/AlertDialog/index.d.ts +10 -0
- package/{dist/types → types}/components/Button/Button.d.ts +8 -8
- package/types/components/Button/index.d.ts +1 -0
- package/{dist/types → types}/components/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/types/components/ButtonGroup/index.d.ts +1 -0
- package/{dist/types → types}/components/Calendar/Calendar.d.ts +6 -6
- package/{dist/types → types}/components/Calendar/CalendarContext.d.ts +2 -2
- package/{dist/types → types}/components/Calendar/CalendarDay.d.ts +2 -4
- package/types/components/Calendar/CalendarHeader.d.ts +6 -0
- package/types/components/Calendar/CalendarMonthGrid.d.ts +2 -0
- package/types/components/Calendar/index.d.ts +1 -0
- package/{dist/types → types}/components/Card/Card.d.ts +3 -3
- package/{dist/types → types}/components/Card/CardBody.d.ts +2 -2
- package/{dist/types → types}/components/Card/CardFooter.d.ts +2 -2
- package/{dist/types → types}/components/Card/CardHeader.d.ts +2 -2
- package/{dist/types → types}/components/Card/CardTitle.d.ts +1 -1
- package/types/components/Card/index.d.ts +5 -0
- package/{dist/types → types}/components/Checkbox/Checkbox.d.ts +10 -10
- package/types/components/Checkbox/index.d.ts +1 -0
- package/{dist/types → types}/components/CheckboxGroup/CheckboxGroup.d.ts +7 -7
- package/{dist/types → types}/components/CheckboxGroup/CheckboxGroupContext.d.ts +4 -4
- package/types/components/CheckboxGroup/index.d.ts +1 -0
- package/{dist/types → types}/components/ClearContexts/ClearContexts.d.ts +1 -1
- package/types/components/ClearContexts/index.d.ts +1 -0
- package/types/components/CloseButton/CloseButton.d.ts +7 -0
- package/types/components/CloseButton/index.d.ts +1 -0
- package/{dist/types → types}/components/Code/Code.d.ts +3 -3
- package/types/components/Code/index.d.ts +1 -0
- package/{dist/types → types}/components/Collapsible/Collapsible.d.ts +3 -3
- package/{dist/types → types}/components/Collapsible/CollapsibleContent.d.ts +3 -3
- package/{dist/types → types}/components/Collapsible/CollapsibleContext.d.ts +2 -2
- package/{dist/types → types}/components/Collapsible/CollapsibleTrigger.d.ts +4 -4
- package/types/components/Collapsible/index.d.ts +3 -0
- package/{dist/types → types}/components/CommandMenu/CommandMenu.d.ts +8 -8
- package/{dist/types → types}/components/CommandMenu/CommandMenuDialog.d.ts +5 -5
- package/{dist/types → types}/components/CommandMenu/CommandMenuGroup.d.ts +3 -3
- package/{dist/types → types}/components/CommandMenu/CommandMenuItem.d.ts +4 -4
- package/types/components/CommandMenu/index.d.ts +4 -0
- package/{dist/types → types}/components/Container/Container.d.ts +4 -4
- package/types/components/Container/index.d.ts +1 -0
- package/{dist/types → types}/components/Control/Control.d.ts +6 -6
- package/{dist/types → types}/components/Control/ControlContext.d.ts +2 -2
- package/{dist/types → types}/components/Control/ControlWithContainerRef.d.ts +4 -4
- package/{dist/types → types}/components/Control/controlUtils.d.ts +2 -2
- package/types/components/Control/index.d.ts +4 -0
- package/{dist/types → types}/components/ControlAddon/ControlAddon.d.ts +3 -3
- package/types/components/ControlAddon/index.d.ts +1 -0
- package/{dist/types → types}/components/ControlCode/ControlCode.d.ts +3 -3
- package/types/components/ControlCode/index.d.ts +1 -0
- package/{dist/types → types}/components/DataTable/DataTable.d.ts +8 -8
- package/{dist/types → types}/components/DataTable/DataTableApi.d.ts +2 -2
- package/{dist/types → types}/components/DataTable/DataTableBody.d.ts +4 -4
- package/{dist/types → types}/components/DataTable/DataTableCell.d.ts +3 -3
- package/{dist/types → types}/components/DataTable/DataTableColumn.d.ts +3 -3
- package/{dist/types → types}/components/DataTable/DataTableContent.d.ts +3 -3
- package/{dist/types → types}/components/DataTable/DataTableContext.d.ts +11 -11
- package/{dist/types → types}/components/DataTable/DataTableEmptyOrLoadingRows.d.ts +2 -2
- package/{dist/types → types}/components/DataTable/DataTableFilter.d.ts +2 -2
- package/{dist/types → types}/components/DataTable/DataTableFoot.d.ts +3 -3
- package/types/components/DataTable/DataTableHead.d.ts +7 -0
- package/{dist/types → types}/components/DataTable/DataTablePagination.d.ts +3 -3
- package/{dist/types → types}/components/DataTable/DataTableRow.d.ts +3 -3
- package/{dist/types → types}/components/DataTable/DataTableRowsPerPage.d.ts +2 -2
- package/{dist/types → types}/components/DataTable/DataTableSelectionTrigger.d.ts +4 -4
- package/{dist/types → types}/components/DataTable/PagedDataTablePagination.d.ts +3 -3
- package/{dist/types → types}/components/DataTable/PagedDataTableRows.d.ts +1 -1
- package/{dist/types → types}/components/DataTable/ScrolledDataTablePagination.d.ts +3 -3
- package/{dist/types → types}/components/DataTable/ScrolledDataTableRows.d.ts +2 -2
- package/{dist/types → types}/components/DataTable/columnUtils.d.ts +1 -1
- package/{dist/types → types}/components/DataTable/getRowKey.d.ts +2 -2
- package/types/components/DataTable/index.d.ts +12 -0
- package/{dist/types → types}/components/DataTable/processRows.d.ts +2 -2
- package/{dist/types → types}/components/DataTable/sanitizeProps.d.ts +2 -2
- package/{dist/types → types}/components/DataTable/useDataTableSelectionColumn.d.ts +1 -1
- package/{dist/types → types}/components/DateInput/DateInput.d.ts +7 -7
- package/types/components/DateInput/index.d.ts +1 -0
- package/{dist/types → types}/components/DateRangeInput/DateRangeInput.d.ts +11 -11
- package/types/components/DateRangeInput/index.d.ts +1 -0
- package/{dist/types → types}/components/DescriptionList/DescriptionList.d.ts +3 -3
- package/{dist/types → types}/components/DescriptionList/DescriptionListItem.d.ts +3 -3
- package/types/components/DescriptionList/index.d.ts +2 -0
- package/{dist/types → types}/components/Dialog/Dialog.d.ts +2 -2
- package/types/components/Dialog/DialogBody.d.ts +7 -0
- package/types/components/Dialog/DialogClose.d.ts +7 -0
- package/{dist/types → types}/components/Dialog/DialogContent.d.ts +5 -5
- package/{dist/types → types}/components/Dialog/DialogDescription.d.ts +3 -3
- package/types/components/Dialog/DialogFooter.d.ts +7 -0
- package/{dist/types → types}/components/Dialog/DialogHeader.d.ts +4 -4
- package/{dist/types → types}/components/Dialog/DialogTitle.d.ts +3 -3
- package/{dist/types → types}/components/Dialog/DialogTrigger.d.ts +3 -3
- package/types/components/Dialog/index.d.ts +9 -0
- package/{dist/types → types}/components/DropdownMenu/DropdownMenu.d.ts +2 -2
- package/{dist/types → types}/components/DropdownMenu/DropdownMenuCheckboxItem.d.ts +6 -6
- package/{dist/types → types}/components/DropdownMenu/DropdownMenuContent.d.ts +4 -4
- package/{dist/types → types}/components/DropdownMenu/DropdownMenuGroup.d.ts +4 -4
- package/{dist/types → types}/components/DropdownMenu/DropdownMenuItem.d.ts +4 -4
- package/types/components/DropdownMenu/DropdownMenuRadioGroup.d.ts +8 -0
- package/{dist/types → types}/components/DropdownMenu/DropdownMenuRadioItem.d.ts +4 -4
- package/types/components/DropdownMenu/DropdownMenuSub.d.ts +3 -0
- package/{dist/types → types}/components/DropdownMenu/DropdownMenuSubContent.d.ts +4 -4
- package/{dist/types → types}/components/DropdownMenu/DropdownMenuSubTrigger.d.ts +4 -4
- package/{dist/types → types}/components/DropdownMenu/DropdownMenuTrigger.d.ts +3 -3
- package/types/components/DropdownMenu/index.d.ts +11 -0
- package/{dist/types → types}/components/ErrorBoundary/ErrorBoundary.d.ts +5 -5
- package/types/components/ErrorBoundary/index.d.ts +2 -0
- package/types/components/ErrorBoundary/useErrorBoundary.d.ts +1 -0
- package/{dist/types → types}/components/Feedback/Feedback.d.ts +2 -2
- package/types/components/Feedback/index.d.ts +1 -0
- package/{dist/types → types}/components/FeedbackList/FeedbackList.d.ts +2 -2
- package/{dist/types → types}/components/FeedbackList/FeedbackListContext.d.ts +1 -1
- package/types/components/FeedbackList/index.d.ts +2 -0
- package/{dist/types → types}/components/FeedbackPopover/FeedbackPopover.d.ts +5 -5
- package/{dist/types → types}/components/FeedbackPopover/FeedbackPopoverContext.d.ts +2 -2
- package/types/components/FeedbackPopover/index.d.ts +2 -0
- package/{dist/types → types}/components/Field/Field.d.ts +2 -2
- package/{dist/types → types}/components/Field/FieldContext.d.ts +4 -4
- package/{dist/types → types}/components/Field/FieldProvider.d.ts +2 -2
- package/{dist/types → types}/components/Field/index.d.ts +3 -3
- package/{dist/types → types}/components/FieldGroup/FieldGroup.d.ts +2 -2
- package/{dist/types → types}/components/FieldGroup/FieldGroupBody.d.ts +2 -2
- package/{dist/types → types}/components/FieldGroup/FieldGroupContext.d.ts +2 -2
- package/{dist/types → types}/components/FieldGroup/FieldGroupHeader.d.ts +2 -2
- package/{dist/types → types}/components/FieldGroup/FieldGroupTitle.d.ts +1 -1
- package/types/components/FieldGroup/index.d.ts +4 -0
- package/{dist/types → types}/components/Form/Form.d.ts +2 -2
- package/{dist/types → types}/components/Form/FormContext.d.ts +8 -8
- package/{dist/types → types}/components/Form/FormError.d.ts +2 -2
- package/{dist/types → types}/components/Form/FormReset.d.ts +2 -2
- package/{dist/types → types}/components/Form/FormState.d.ts +1 -1
- package/{dist/types → types}/components/Form/FormSubmit.d.ts +2 -2
- package/{dist/types → types}/components/Form/HiddenFormControl.d.ts +2 -2
- package/{dist/types → types}/components/Form/formUtils.d.ts +2 -2
- package/types/components/Form/index.d.ts +6 -0
- package/{dist/types → types}/components/Form/useRegisterFormControl.d.ts +3 -3
- package/{dist/types → types}/components/Grid/Grid.d.ts +3 -3
- package/types/components/Grid/index.d.ts +1 -0
- package/{dist/types → types}/components/Heading/Heading.d.ts +1 -1
- package/types/components/Heading/index.d.ts +1 -0
- package/{dist/types → types}/components/HelperText/HelperText.d.ts +2 -2
- package/types/components/HelperText/index.d.ts +1 -0
- package/{dist/types → types}/components/Icon/Icon.d.ts +6 -6
- package/types/components/Icon/index.d.ts +1 -0
- package/{dist/types → types}/components/IconButton/IconButton.d.ts +8 -8
- package/types/components/IconButton/index.d.ts +1 -0
- package/{dist/types → types}/components/Input/Input.d.ts +4 -4
- package/types/components/Input/index.d.ts +1 -0
- package/{dist/types → types}/components/Keybinds/Key.d.ts +2 -2
- package/{dist/types → types}/components/Keybinds/KeyPress.d.ts +2 -2
- package/{dist/types → types}/components/Keybinds/Keybind.d.ts +2 -2
- package/{dist/types → types}/components/Keybinds/Keybinds.d.ts +2 -2
- package/types/components/Keybinds/index.d.ts +1 -0
- package/{dist/types → types}/components/Keyboard/Keyboard.d.ts +2 -2
- package/types/components/Keyboard/index.d.ts +1 -0
- package/{dist/types → types}/components/Label/Label.d.ts +6 -6
- package/types/components/Label/index.d.ts +1 -0
- package/{dist/types → types}/components/Layer/Layer.d.ts +3 -3
- package/{dist/types → types}/components/Layer/LayerContext.d.ts +1 -1
- package/types/components/Layer/index.d.ts +2 -0
- package/{dist/types → types}/components/Link/Link.d.ts +4 -4
- package/{dist/types → types}/components/Link/LinkContext.d.ts +2 -2
- package/types/components/Link/index.d.ts +1 -0
- package/{dist/types → types}/components/Mark/Mark.d.ts +3 -3
- package/types/components/Mark/index.d.ts +1 -0
- package/{dist/types → types}/components/MenuList/MenuList.d.ts +2 -2
- package/{dist/types → types}/components/MenuList/MenuListContext.d.ts +2 -2
- package/{dist/types → types}/components/MenuList/MenuListGroup.d.ts +2 -2
- package/{dist/types → types}/components/MenuList/MenuListItem.d.ts +8 -8
- package/types/components/MenuList/index.d.ts +3 -0
- package/{dist/types → types}/components/NumericInput/NumericInput.d.ts +5 -5
- package/types/components/NumericInput/index.d.ts +1 -0
- package/{dist/types → types}/components/NumericInput/numericInputUtils.d.ts +2 -2
- package/{dist/types → types}/components/Output/Output.d.ts +3 -3
- package/types/components/Output/index.d.ts +1 -0
- package/{dist/types → types}/components/Overlay/Overlay.d.ts +2 -2
- package/types/components/Overlay/index.d.ts +1 -0
- package/{dist/types → types}/components/Popover/Popover.d.ts +2 -2
- package/types/components/Popover/PopoverAnchor.d.ts +6 -0
- package/{dist/types → types}/components/Popover/PopoverClose.d.ts +3 -3
- package/{dist/types → types}/components/Popover/PopoverContent.d.ts +3 -3
- package/{dist/types → types}/components/Popover/PopoverTrigger.d.ts +3 -3
- package/types/components/Popover/index.d.ts +5 -0
- package/{dist/types → types}/components/Portal/Portal.d.ts +3 -3
- package/{dist/types → types}/components/Portal/PortalContext.d.ts +1 -1
- package/types/components/Portal/index.d.ts +2 -0
- package/{dist/types → types}/components/Printer/Printer.d.ts +3 -3
- package/{dist/types → types}/components/Printer/PrinterContent.d.ts +3 -3
- package/{dist/types → types}/components/Printer/PrinterContentContext.d.ts +1 -1
- package/{dist/types → types}/components/Printer/PrinterContext.d.ts +3 -3
- package/{dist/types → types}/components/Printer/PrinterTrigger.d.ts +2 -2
- package/types/components/Printer/index.d.ts +6 -0
- package/{dist/types → types}/components/RadioGroup/Radio.d.ts +7 -7
- package/{dist/types → types}/components/RadioGroup/RadioGroup.d.ts +9 -9
- package/types/components/RadioGroup/index.d.ts +2 -0
- package/{dist/types → types}/components/Root/Root.d.ts +7 -7
- package/{dist/types → types}/components/Root/RootContext.d.ts +1 -1
- package/{dist/types → types}/components/Root/RootElement.d.ts +3 -3
- package/types/components/Root/index.d.ts +2 -0
- package/{dist/types → types}/components/Select/Option.d.ts +3 -3
- package/types/components/Select/OptionsGroup.d.ts +7 -0
- package/{dist/types → types}/components/Select/Select.d.ts +9 -9
- package/{dist/types → types}/components/Select/SelectContext.d.ts +7 -7
- package/types/components/Select/SelectMultipleValue.d.ts +1 -0
- package/{dist/types → types}/components/Select/SelectNative.d.ts +2 -2
- package/types/components/Select/SelectSingleValue.d.ts +1 -0
- package/types/components/Select/index.d.ts +3 -0
- package/{dist/types → types}/components/Separator/Separator.d.ts +4 -4
- package/types/components/Separator/index.d.ts +1 -0
- package/types/components/Slot/Slot.d.ts +7 -0
- package/{dist/types → types}/components/Slot/Slottable.d.ts +1 -1
- package/types/components/Slot/index.d.ts +2 -0
- package/{dist/types → types}/components/Spinner/Spinner.d.ts +3 -3
- package/types/components/Spinner/index.d.ts +1 -0
- package/{dist/types → types}/components/Stack/Stack.d.ts +3 -3
- package/types/components/Stack/index.d.ts +1 -0
- package/{dist/types → types}/components/Stepper/Step.d.ts +5 -5
- package/{dist/types → types}/components/Stepper/StepContent.d.ts +2 -2
- package/{dist/types → types}/components/Stepper/StepList.d.ts +2 -2
- package/{dist/types → types}/components/Stepper/Stepper.d.ts +3 -3
- package/{dist/types → types}/components/Stepper/StepperContext.d.ts +3 -3
- package/{dist/types → types}/components/Stepper/StepperFinishTrigger.d.ts +3 -3
- package/{dist/types → types}/components/Stepper/StepperNextTrigger.d.ts +3 -3
- package/{dist/types → types}/components/Stepper/StepperPreviousTrigger.d.ts +3 -3
- package/{dist/types → types}/components/Stepper/StepperState.d.ts +2 -2
- package/types/components/Stepper/index.d.ts +9 -0
- package/{dist/types → types}/components/Table/Table.d.ts +3 -3
- package/types/components/Table/TableBody.d.ts +6 -0
- package/{dist/types → types}/components/Table/TableCell.d.ts +3 -3
- package/{dist/types → types}/components/Table/TableColumn.d.ts +9 -9
- package/{dist/types → types}/components/Table/TableContext.d.ts +9 -9
- package/{dist/types → types}/components/Table/TableFoot.d.ts +2 -2
- package/{dist/types → types}/components/Table/TableHead.d.ts +3 -3
- package/{dist/types → types}/components/Table/TableRow.d.ts +2 -2
- package/{dist/types → types}/components/Table/columnUtils.d.ts +3 -3
- package/types/components/Table/index.d.ts +8 -0
- package/{dist/types → types}/components/Tabs/Tab.d.ts +5 -5
- package/{dist/types → types}/components/Tabs/TabContent.d.ts +3 -3
- package/{dist/types → types}/components/Tabs/TabList.d.ts +4 -4
- package/{dist/types → types}/components/Tabs/Tabs.d.ts +3 -3
- package/{dist/types → types}/components/Tabs/TabsContext.d.ts +5 -5
- package/types/components/Tabs/index.d.ts +4 -0
- package/{dist/types → types}/components/Tag/Badge.d.ts +2 -2
- package/{dist/types → types}/components/Tag/Tag.d.ts +6 -6
- package/types/components/Tag/index.d.ts +2 -0
- package/{dist/types → types}/components/TextArea/TextArea.d.ts +4 -4
- package/types/components/TextArea/index.d.ts +1 -0
- package/{dist/types → types}/components/Toast/Toast.d.ts +5 -5
- package/types/components/Toast/ToastDescription.d.ts +3 -0
- package/{dist/types → types}/components/Toast/ToastProvider.d.ts +3 -3
- package/types/components/Toast/ToastTitle.d.ts +7 -0
- package/{dist/types → types}/components/Toast/ToastViewport.d.ts +3 -3
- package/types/components/Toast/index.d.ts +5 -0
- package/{dist/types → types}/components/Tooltip/Tooltip.d.ts +3 -3
- package/types/components/Tooltip/TooltipProvider.d.ts +3 -0
- package/types/components/Tooltip/index.d.ts +2 -0
- package/{dist/types → types}/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/types/components/VisuallyHidden/index.d.ts +1 -0
- package/types/index.d.ts +106 -0
- package/types/locales/en-GB.d.ts +3 -0
- package/types/locales/en-US.d.ts +3 -0
- package/{dist/types → types}/locales/en.d.ts +1 -1
- package/types/locales/fr-FR.d.ts +3 -0
- package/types/locales/index.d.ts +4 -0
- package/types/locales/pt-PT.d.ts +3 -0
- package/{dist/types → types}/providers/AlertDialogProvider/AlertDialogProvider.d.ts +2 -2
- package/{dist/types → types}/providers/AlertDialogProvider/AlertDialogProviderContext.d.ts +4 -4
- package/types/providers/AlertDialogProvider/index.d.ts +3 -0
- package/{dist/types → types}/providers/AlertDialogProvider/useAlertDialog.d.ts +1 -1
- package/{dist/types → types}/providers/DocumentTitleProvider/DocumentTitle.d.ts +2 -2
- package/{dist/types → types}/providers/DocumentTitleProvider/DocumentTitleProvider.d.ts +2 -2
- package/{dist/types → types}/providers/DocumentTitleProvider/DocumentTitleProviderContext.d.ts +3 -3
- package/types/providers/DocumentTitleProvider/index.d.ts +2 -0
- package/{dist/types → types}/providers/ErrorReportingProvider/ErrorReport.d.ts +1 -1
- package/{dist/types → types}/providers/ErrorReportingProvider/ErrorReportingContext.d.ts +2 -2
- package/{dist/types → types}/providers/ErrorReportingProvider/ErrorReportingProvider.d.ts +3 -3
- package/types/providers/ErrorReportingProvider/index.d.ts +4 -0
- package/{dist/types → types}/providers/ErrorReportingProvider/useErrorReporter.d.ts +1 -1
- package/{dist/types → types}/providers/LocalizationProvider/LocalizationContext.d.ts +2 -2
- package/{dist/types → types}/providers/LocalizationProvider/LocalizationObject.d.ts +25 -25
- package/{dist/types → types}/providers/LocalizationProvider/LocalizationProvider.d.ts +3 -3
- package/types/providers/LocalizationProvider/index.d.ts +4 -0
- package/{dist/types → types}/providers/LocalizationProvider/useLocale.d.ts +1 -1
- package/types/providers/PrefixProvider/PrefixContext.d.ts +2 -0
- package/{dist/types → types}/providers/PrefixProvider/PrefixProvider.d.ts +2 -2
- package/{dist/types → types}/providers/PrefixProvider/defaultPrefix.d.ts +1 -1
- package/types/providers/PrefixProvider/index.d.ts +4 -0
- package/{dist/types → types}/providers/ToastManagerProvider/ToastManagerContext.d.ts +4 -4
- package/{dist/types → types}/providers/ToastManagerProvider/ToastManagerProvider.d.ts +2 -2
- package/types/providers/ToastManagerProvider/index.d.ts +3 -0
- package/{dist/types → types}/providers/ToastManagerProvider/useToastManager.d.ts +1 -1
- package/{dist/types → types}/utils/breakpoints.d.ts +1 -1
- package/{dist/types → types}/utils/keyboardShortcut.d.ts +15 -10
- package/{dist/types → types}/utils/parseDateStrict.d.ts +1 -1
- package/{dist/types → types}/utils/polymorphicTypes.d.ts +1 -1
- package/{dist/types → types}/utils/useCombinedRef.d.ts +1 -1
- package/{dist/types → types}/utils/useControllableState.d.ts +1 -1
- package/{dist/types → types}/utils/useCssVars.d.ts +1 -1
- package/{dist/types → types}/utils/useDateTransformer.d.ts +1 -1
- package/types/utils/useLatestRef.d.ts +9 -0
- package/types/utils/usePrevious.d.ts +9 -0
- package/{dist/types → types}/utils/useResponsiveValues.d.ts +2 -2
- package/types/utils/useSafeLayoutEffect.d.ts +3 -0
- package/{dist/types → types}/utils/useSearchParam.d.ts +1 -1
- package/{dist/types → types}/utils/useSearchParams.d.ts +1 -1
- package/{dist/types → types}/utils/zustandUtils.d.ts +1 -1
- 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/components/Alert/index.d.ts +0 -2
- package/dist/types/components/AlertDialog/AlertDialogBody.d.ts +0 -7
- package/dist/types/components/AlertDialog/AlertDialogFooter.d.ts +0 -7
- package/dist/types/components/AlertDialog/index.d.ts +0 -10
- package/dist/types/components/Button/index.d.ts +0 -1
- package/dist/types/components/ButtonGroup/index.d.ts +0 -1
- package/dist/types/components/Calendar/CalendarHeader.d.ts +0 -8
- package/dist/types/components/Calendar/CalendarMonthGrid.d.ts +0 -1
- package/dist/types/components/Calendar/index.d.ts +0 -1
- package/dist/types/components/Card/index.d.ts +0 -5
- package/dist/types/components/Checkbox/index.d.ts +0 -1
- package/dist/types/components/CheckboxGroup/index.d.ts +0 -1
- package/dist/types/components/ClearContexts/index.d.ts +0 -1
- package/dist/types/components/CloseButton/CloseButton.d.ts +0 -7
- package/dist/types/components/CloseButton/index.d.ts +0 -1
- package/dist/types/components/Code/index.d.ts +0 -1
- package/dist/types/components/Collapsible/index.d.ts +0 -3
- package/dist/types/components/CommandMenu/index.d.ts +0 -4
- package/dist/types/components/Container/index.d.ts +0 -1
- package/dist/types/components/Control/index.d.ts +0 -4
- package/dist/types/components/ControlAddon/index.d.ts +0 -1
- package/dist/types/components/ControlCode/index.d.ts +0 -1
- package/dist/types/components/DataTable/DataTableHead.d.ts +0 -7
- package/dist/types/components/DataTable/index.d.ts +0 -12
- package/dist/types/components/DateInput/index.d.ts +0 -1
- package/dist/types/components/DateRangeInput/index.d.ts +0 -1
- package/dist/types/components/DescriptionList/index.d.ts +0 -2
- package/dist/types/components/Dialog/DialogBody.d.ts +0 -7
- package/dist/types/components/Dialog/DialogClose.d.ts +0 -7
- package/dist/types/components/Dialog/DialogFooter.d.ts +0 -7
- package/dist/types/components/Dialog/index.d.ts +0 -9
- package/dist/types/components/DropdownMenu/DropdownMenuRadioGroup.d.ts +0 -8
- package/dist/types/components/DropdownMenu/DropdownMenuSub.d.ts +0 -3
- package/dist/types/components/DropdownMenu/index.d.ts +0 -11
- package/dist/types/components/ErrorBoundary/index.d.ts +0 -2
- package/dist/types/components/ErrorBoundary/useErrorBoundary.d.ts +0 -1
- package/dist/types/components/Feedback/index.d.ts +0 -1
- package/dist/types/components/FeedbackList/index.d.ts +0 -2
- package/dist/types/components/FeedbackPopover/index.d.ts +0 -2
- package/dist/types/components/FieldGroup/index.d.ts +0 -4
- package/dist/types/components/Form/index.d.ts +0 -6
- package/dist/types/components/Grid/index.d.ts +0 -1
- package/dist/types/components/Heading/index.d.ts +0 -1
- package/dist/types/components/HelperText/index.d.ts +0 -1
- package/dist/types/components/Icon/index.d.ts +0 -1
- package/dist/types/components/IconButton/index.d.ts +0 -1
- package/dist/types/components/Input/index.d.ts +0 -1
- package/dist/types/components/Keybinds/index.d.ts +0 -1
- package/dist/types/components/Keyboard/index.d.ts +0 -1
- package/dist/types/components/Label/index.d.ts +0 -1
- package/dist/types/components/Layer/index.d.ts +0 -2
- package/dist/types/components/Link/index.d.ts +0 -1
- package/dist/types/components/Mark/index.d.ts +0 -1
- package/dist/types/components/MenuList/index.d.ts +0 -3
- package/dist/types/components/NumericInput/index.d.ts +0 -1
- package/dist/types/components/Output/index.d.ts +0 -1
- package/dist/types/components/Overlay/index.d.ts +0 -1
- package/dist/types/components/Popover/PopoverAnchor.d.ts +0 -6
- package/dist/types/components/Popover/index.d.ts +0 -5
- package/dist/types/components/Portal/index.d.ts +0 -2
- package/dist/types/components/Printer/index.d.ts +0 -6
- package/dist/types/components/RadioGroup/index.d.ts +0 -2
- package/dist/types/components/Root/index.d.ts +0 -2
- package/dist/types/components/Select/OptionsGroup.d.ts +0 -7
- package/dist/types/components/Select/SelectMultipleValue.d.ts +0 -1
- package/dist/types/components/Select/SelectSingleValue.d.ts +0 -1
- package/dist/types/components/Select/index.d.ts +0 -3
- package/dist/types/components/Separator/index.d.ts +0 -1
- package/dist/types/components/Slot/Slot.d.ts +0 -7
- package/dist/types/components/Slot/index.d.ts +0 -2
- package/dist/types/components/Spinner/index.d.ts +0 -1
- package/dist/types/components/Stack/index.d.ts +0 -1
- package/dist/types/components/Stepper/index.d.ts +0 -9
- package/dist/types/components/Table/TableBody.d.ts +0 -6
- package/dist/types/components/Table/index.d.ts +0 -8
- package/dist/types/components/Tabs/index.d.ts +0 -4
- package/dist/types/components/Tag/index.d.ts +0 -2
- package/dist/types/components/TextArea/index.d.ts +0 -1
- package/dist/types/components/Toast/ToastDescription.d.ts +0 -3
- package/dist/types/components/Toast/ToastTitle.d.ts +0 -7
- package/dist/types/components/Toast/index.d.ts +0 -5
- package/dist/types/components/Tooltip/TooltipProvider.d.ts +0 -3
- package/dist/types/components/Tooltip/index.d.ts +0 -2
- package/dist/types/components/VisuallyHidden/index.d.ts +0 -1
- package/dist/types/index.d.ts +0 -105
- package/dist/types/locales/en-GB.d.ts +0 -3
- package/dist/types/locales/en-US.d.ts +0 -3
- package/dist/types/locales/fr-FR.d.ts +0 -3
- package/dist/types/locales/index.d.ts +0 -4
- package/dist/types/locales/pt-PT.d.ts +0 -3
- package/dist/types/providers/AlertDialogProvider/index.d.ts +0 -3
- package/dist/types/providers/DocumentTitleProvider/index.d.ts +0 -2
- package/dist/types/providers/ErrorReportingProvider/index.d.ts +0 -4
- package/dist/types/providers/LocalizationProvider/index.d.ts +0 -4
- package/dist/types/providers/PrefixProvider/PrefixContext.d.ts +0 -2
- package/dist/types/providers/PrefixProvider/index.d.ts +0 -4
- package/dist/types/providers/ToastManagerProvider/index.d.ts +0 -3
- package/dist/types/utils/useLatestValues.d.ts +0 -8
- package/dist/types/utils/useLayoutEffect.d.ts +0 -3
- /package/{dist/types → types}/components/Calendar/calendarUtils.d.ts +0 -0
- /package/{dist/types → types}/components/CommandMenu/cmdk/command-score.d.ts +0 -0
- /package/{dist/types → types}/components/CommandMenu/cmdk/index.d.ts +0 -0
- /package/{dist/types → types}/components/DataTable/spliceWindow.d.ts +0 -0
- /package/{dist/types → types}/components/Form/useResetControlOnFormReset.d.ts +0 -0
- /package/{dist/types → types}/components/Printer/usePrintClassNames.d.ts +0 -0
- /package/{dist/types → types}/providers/PrefixProvider/usePrefix.d.ts +0 -0
- /package/{dist/types → types}/utils/accent.d.ts +0 -0
- /package/{dist/types → types}/utils/boolDataAttr.d.ts +0 -0
- /package/{dist/types → types}/utils/changeCase.d.ts +0 -0
- /package/{dist/types → types}/utils/combineAriaIds.d.ts +0 -0
- /package/{dist/types → types}/utils/combineEventHandlers.d.ts +0 -0
- /package/{dist/types → types}/utils/cx.d.ts +0 -0
- /package/{dist/types → types}/utils/filtering.d.ts +0 -0
- /package/{dist/types → types}/utils/intersperse.d.ts +0 -0
- /package/{dist/types → types}/utils/nativeControls.d.ts +0 -0
- /package/{dist/types → types}/utils/navigate.d.ts +0 -0
- /package/{dist/types → types}/utils/numericStringUtils.d.ts +0 -0
- /package/{dist/types → types}/utils/platformUtils.d.ts +0 -0
- /package/{dist/types → types}/utils/promiseUtils.d.ts +0 -0
- /package/{dist/types → types}/utils/setNativeProperty.d.ts +0 -0
- /package/{dist/types → types}/utils/sorting.d.ts +0 -0
- /package/{dist/types → types}/utils/stringHash.d.ts +0 -0
- /package/{dist/types → types}/utils/typeUtils.d.ts +0 -0
- /package/{dist/types → types}/utils/useConstant.d.ts +0 -0
- /package/{dist/types → types}/utils/useIntersectionObserver.d.ts +0 -0
- /package/{dist/types → types}/utils/useLocation.d.ts +0 -0
- /package/{dist/types → types}/utils/useMeasure.d.ts +0 -0
- /package/{dist/types → types}/utils/useMediaQuery.d.ts +0 -0
- /package/{dist/types → types}/utils/useNumericTransformer.d.ts +0 -0
- /package/{dist/types → types}/utils/useScrollPosition.d.ts +0 -0
- /package/{dist/types → types}/utils/useScrollbarSize.d.ts +0 -0
- /package/{dist/types → types}/utils/useSpacing.d.ts +0 -0
- /package/{dist/types → types}/utils/validationUtils.d.ts +0 -0
- /package/{dist/types → types}/utils/warnOnce.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
2
|
/** Properties of the alert dialog provider. */
|
|
3
3
|
export interface AlertDialogProviderProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}
|
|
6
6
|
/** Alert dialog provider. */
|
|
7
|
-
export declare function AlertDialogProvider({ children }: AlertDialogProviderProps): import("react
|
|
7
|
+
export declare function AlertDialogProvider({ children }: AlertDialogProviderProps): import("react").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from
|
|
2
|
-
import { AlertDialogBody, AlertDialogContent, AlertDialogContentColor, AlertDialogContentSize, AlertDialogContentVariant, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from
|
|
3
|
-
import { Button } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactNode } from "react";
|
|
2
|
+
import type { AlertDialogBody, AlertDialogContent, AlertDialogContentColor, AlertDialogContentSize, AlertDialogContentVariant, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from "../../components/AlertDialog";
|
|
3
|
+
import type { Button } from "../../components/Button";
|
|
4
4
|
/** Options that can be provided to both `alert` and `confirm` alert dialogs. */
|
|
5
5
|
export interface AlertDialogOptions {
|
|
6
6
|
/** Alert dialog's title. */
|
|
@@ -94,4 +94,4 @@ export interface AlertDialogProviderContextValue {
|
|
|
94
94
|
confirm: (description: ReactNode, dialogOptions?: ConfirmDialogOptions) => Promise<boolean>;
|
|
95
95
|
}
|
|
96
96
|
/** Alert dialog context. */
|
|
97
|
-
export declare const AlertDialogProviderContext: import(
|
|
97
|
+
export declare const AlertDialogProviderContext: import("react").Context<AlertDialogProviderContextValue | undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlertDialogProviderContextValue } from
|
|
1
|
+
import { type AlertDialogProviderContextValue } from "./AlertDialogProviderContext.ts";
|
|
2
2
|
/**
|
|
3
3
|
* Hook used to access an alert dialog in an imperative manner, providing
|
|
4
4
|
* `alert` and `confirm` functions somewhat mimicking the browser's.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
2
|
/** Properties of the document title component. */
|
|
3
3
|
export interface DocumentTitleProps {
|
|
4
4
|
/** Title to set as a breadcrumb of the document title. */
|
|
@@ -9,4 +9,4 @@ export interface DocumentTitleProps {
|
|
|
9
9
|
* Component used to set the provided title as a breadcrumb of the document
|
|
10
10
|
* title.
|
|
11
11
|
*/
|
|
12
|
-
export declare function DocumentTitle({ title, children }: DocumentTitleProps): import("react
|
|
12
|
+
export declare function DocumentTitle({ title, children }: DocumentTitleProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
2
|
/** Properties of the document title provider. */
|
|
3
3
|
export interface DocumentTitleProviderProps {
|
|
4
4
|
/** Base document title. Defaults to the existing document title at load time. */
|
|
@@ -22,4 +22,4 @@ export declare const DEFAULT_DOCUMENT_TITLE_BASE_SEPARATOR = " | ";
|
|
|
22
22
|
/** Default breadcrumbs separator. */
|
|
23
23
|
export declare const DEFAULT_DOCUMENT_TITLE_BREADCRUMBS_SEPARATOR = " \u2039 ";
|
|
24
24
|
/** Localisation provider. */
|
|
25
|
-
export declare function DocumentTitleProvider({ baseDocumentTitle, baseSeparator, breadcrumbsSeparator, children, }: DocumentTitleProviderProps): import("react
|
|
25
|
+
export declare function DocumentTitleProvider({ baseDocumentTitle, baseSeparator, breadcrumbsSeparator, children, }: DocumentTitleProviderProps): import("react").JSX.Element;
|
package/{dist/types → types}/providers/DocumentTitleProvider/DocumentTitleProviderContext.d.ts
RENAMED
|
@@ -5,7 +5,7 @@ export interface DocumentTitleProviderContextValue {
|
|
|
5
5
|
breadcrumbsSeparator: string;
|
|
6
6
|
}
|
|
7
7
|
/** Document title provider context. */
|
|
8
|
-
export declare const DocumentTitleProviderContext: import(
|
|
8
|
+
export declare const DocumentTitleProviderContext: import("react").Context<DocumentTitleProviderContextValue | null>;
|
|
9
9
|
/** State of the document title component. */
|
|
10
10
|
export interface DocumentTitleState {
|
|
11
11
|
breadcrumbs: string[];
|
|
@@ -20,7 +20,7 @@ export interface DocumentTitleActions {
|
|
|
20
20
|
/** Document title store. */
|
|
21
21
|
export type DocumentTitleStore = ReturnType<typeof useCreateDocumentTitleStore>;
|
|
22
22
|
/** Document title context. */
|
|
23
|
-
export declare const DocumentTitleContext: import(
|
|
23
|
+
export declare const DocumentTitleContext: import("react").Context<(Omit<import("zustand").StoreApi<DocumentTitleState>, "subscribe"> & {
|
|
24
24
|
subscribe: {
|
|
25
25
|
(listener: (selectedState: DocumentTitleState, previousSelectedState: DocumentTitleState) => void): () => void;
|
|
26
26
|
<U>(selector: (state: DocumentTitleState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -30,7 +30,7 @@ export declare const DocumentTitleContext: import('react').Context<(Omit<import(
|
|
|
30
30
|
};
|
|
31
31
|
}) | null>;
|
|
32
32
|
/** Hook used to create the context of a document title component. */
|
|
33
|
-
export declare function useCreateDocumentTitleStore(breadcrumbs?: string[]): Omit<import(
|
|
33
|
+
export declare function useCreateDocumentTitleStore(breadcrumbs?: string[]): Omit<import("zustand").StoreApi<DocumentTitleState>, "subscribe"> & {
|
|
34
34
|
subscribe: {
|
|
35
35
|
(listener: (selectedState: DocumentTitleState, previousSelectedState: DocumentTitleState) => void): () => void;
|
|
36
36
|
<U>(selector: (state: DocumentTitleState) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ErrorInfo } from
|
|
1
|
+
import { type ErrorInfo } from "react";
|
|
2
2
|
/** Value of the error reporting context. */
|
|
3
3
|
export interface ErrorReportingContextValue {
|
|
4
4
|
onError: (error: unknown, info?: ErrorInfo) => void;
|
|
5
5
|
}
|
|
6
6
|
/** Error reporting context. */
|
|
7
|
-
export declare const ErrorReportingContext: import(
|
|
7
|
+
export declare const ErrorReportingContext: import("react").Context<ErrorReportingContextValue | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { ErrorReport } from
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type ErrorReport } from "./ErrorReport.ts";
|
|
3
3
|
/** Properties of the error reporting provider. */
|
|
4
4
|
export interface ErrorReportingProviderProps {
|
|
5
5
|
/**
|
|
@@ -67,4 +67,4 @@ export interface ErrorReportingProviderProps {
|
|
|
67
67
|
* Note that this provider does **not** automatically set an error boundary, so
|
|
68
68
|
* at least one should be manually set.
|
|
69
69
|
*/
|
|
70
|
-
export declare function ErrorReportingProvider({ enabled, reportError, errorReportingUrl, errorReportingMethod, encodeErrorReport, encodedErrorReportMimeType, errorReportingOptions, children, }: ErrorReportingProviderProps): import("react
|
|
70
|
+
export declare function ErrorReportingProvider({ enabled, reportError, errorReportingUrl, errorReportingMethod, encodeErrorReport, encodedErrorReportMimeType, errorReportingOptions, children, }: ErrorReportingProviderProps): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Hook used to report an error. */
|
|
2
|
-
export declare function useErrorReporter(): (error: unknown, info?: import(
|
|
2
|
+
export declare function useErrorReporter(): (error: unknown, info?: import("react").ErrorInfo) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { LocalizationObject } from
|
|
1
|
+
import type { LocalizationObject } from "./LocalizationObject.ts";
|
|
2
2
|
/** Value of the localisation context. */
|
|
3
3
|
export interface LocalizationContextValue {
|
|
4
4
|
locale: LocalizationObject;
|
|
5
5
|
setLocale: (locale: LocalizationObject) => void;
|
|
6
6
|
}
|
|
7
7
|
/** Localisation context. */
|
|
8
|
-
export declare const LocalizationContext: import(
|
|
8
|
+
export declare const LocalizationContext: import("react").Context<LocalizationContextValue | null>;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { Locale as DayPickerLocale } from
|
|
2
|
-
import { CalendarProps } from
|
|
3
|
-
import { CloseButtonProps } from
|
|
4
|
-
import { CollapsibleTriggerChildlessProps } from
|
|
5
|
-
import { CommandMenuDialogProps, CommandMenuProps } from
|
|
6
|
-
import { ControlCodeProps } from
|
|
7
|
-
import { DataTableContentProps, DataTableFilterProps, DataTablePaginationProps, DataTableProps, DataTableRowsPerPageProps } from
|
|
8
|
-
import { DateInputProps } from
|
|
9
|
-
import { DateRangeInputProps } from
|
|
10
|
-
import { ErrorBoundaryProps } from
|
|
11
|
-
import { FeedbackProps } from
|
|
12
|
-
import { FeedbackPopoverProps } from
|
|
13
|
-
import { FieldGroupHeaderProps } from
|
|
14
|
-
import { FormProps } from
|
|
15
|
-
import { InputProps } from
|
|
16
|
-
import { KeybindsProps } from
|
|
17
|
-
import { LabelProps } from
|
|
18
|
-
import { NumericInputProps } from
|
|
19
|
-
import { RadioGroupProps } from
|
|
20
|
-
import { SelectProps } from
|
|
21
|
-
import { StepperFinishTriggerChildlessProps, StepperNextTriggerChildlessProps, StepperPreviousTriggerChildlessProps, StepProps } from
|
|
22
|
-
import { TableColumnProps, TableHeadProps } from
|
|
23
|
-
import { TabListProps } from
|
|
24
|
-
import { ToastProviderProps, ToastViewportProps } from
|
|
25
|
-
import { ConfirmDialogOptions } from
|
|
1
|
+
import type { Locale as DayPickerLocale } from "@daypicker/react";
|
|
2
|
+
import type { CalendarProps } from "../../components/Calendar";
|
|
3
|
+
import type { CloseButtonProps } from "../../components/CloseButton";
|
|
4
|
+
import type { CollapsibleTriggerChildlessProps } from "../../components/Collapsible/CollapsibleTrigger.tsx";
|
|
5
|
+
import type { CommandMenuDialogProps, CommandMenuProps } from "../../components/CommandMenu";
|
|
6
|
+
import type { ControlCodeProps } from "../../components/ControlCode";
|
|
7
|
+
import type { DataTableContentProps, DataTableFilterProps, DataTablePaginationProps, DataTableProps, DataTableRowsPerPageProps } from "../../components/DataTable";
|
|
8
|
+
import type { DateInputProps } from "../../components/DateInput";
|
|
9
|
+
import type { DateRangeInputProps } from "../../components/DateRangeInput";
|
|
10
|
+
import type { ErrorBoundaryProps } from "../../components/ErrorBoundary";
|
|
11
|
+
import type { FeedbackProps } from "../../components/Feedback";
|
|
12
|
+
import type { FeedbackPopoverProps } from "../../components/FeedbackPopover";
|
|
13
|
+
import type { FieldGroupHeaderProps } from "../../components/FieldGroup";
|
|
14
|
+
import type { FormProps } from "../../components/Form";
|
|
15
|
+
import type { InputProps } from "../../components/Input";
|
|
16
|
+
import type { KeybindsProps } from "../../components/Keybinds";
|
|
17
|
+
import type { LabelProps } from "../../components/Label";
|
|
18
|
+
import type { NumericInputProps } from "../../components/NumericInput";
|
|
19
|
+
import type { RadioGroupProps } from "../../components/RadioGroup";
|
|
20
|
+
import type { SelectProps } from "../../components/Select";
|
|
21
|
+
import type { StepperFinishTriggerChildlessProps, StepperNextTriggerChildlessProps, StepperPreviousTriggerChildlessProps, StepProps } from "../../components/Stepper";
|
|
22
|
+
import type { TableColumnProps, TableHeadProps } from "../../components/Table";
|
|
23
|
+
import type { TabListProps } from "../../components/Tabs";
|
|
24
|
+
import type { ToastProviderProps, ToastViewportProps } from "../../components/Toast";
|
|
25
|
+
import type { ConfirmDialogOptions } from "../AlertDialogProvider";
|
|
26
26
|
/** Localization object representation. */
|
|
27
27
|
export interface LocalizationObject {
|
|
28
28
|
languageTag: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { LocalizationObject } from
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { LocalizationObject } from "./LocalizationObject.ts";
|
|
3
3
|
/** Properties of the localisation provider. */
|
|
4
4
|
export interface LocalizationProviderProps {
|
|
5
5
|
/** Uncontrolled locale to use. */
|
|
@@ -15,4 +15,4 @@ export interface LocalizationProviderProps {
|
|
|
15
15
|
children: ReactNode;
|
|
16
16
|
}
|
|
17
17
|
/** Localisation provider. */
|
|
18
|
-
export declare function LocalizationProvider({ defaultLocale, locale: controlledLocale, onLocaleChange, children, }: LocalizationProviderProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import(
|
|
18
|
+
export declare function LocalizationProvider({ defaultLocale, locale: controlledLocale, onLocaleChange, children, }: LocalizationProviderProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
2
|
/** Properties of the prefix provider. */
|
|
3
3
|
export interface PrefixProviderProps {
|
|
4
4
|
/** Prefix to use. */
|
|
@@ -6,4 +6,4 @@ export interface PrefixProviderProps {
|
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
}
|
|
8
8
|
/** Prefix provider. */
|
|
9
|
-
export declare function PrefixProvider({ prefix, children }: PrefixProviderProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import(
|
|
9
|
+
export declare function PrefixProvider({ prefix, children }: PrefixProviderProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, ReactNode } from
|
|
2
|
-
import { Toast, ToastDescription, ToastTitle } from
|
|
3
|
-
import { DistributedOmit } from
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from "react";
|
|
2
|
+
import type { Toast, ToastDescription, ToastTitle } from "../../components/Toast";
|
|
3
|
+
import type { DistributedOmit } from "../../utils/typeUtils.ts";
|
|
4
4
|
/** Toast options. */
|
|
5
5
|
export type ToastOptions = DistributedOmit<ComponentPropsWithRef<typeof Toast>, "defaultOpen" | "open" | "title"> & {
|
|
6
6
|
/** Toast's title. */
|
|
@@ -34,4 +34,4 @@ export interface ToastManagerContextValue {
|
|
|
34
34
|
removeToast: (toastId: ToastId | null | undefined) => void;
|
|
35
35
|
}
|
|
36
36
|
/** Toast manager context. */
|
|
37
|
-
export declare const ToastManagerContext: import(
|
|
37
|
+
export declare const ToastManagerContext: import("react").Context<ToastManagerContextValue | undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
2
|
/** Properties of the toast manager provider. */
|
|
3
3
|
export interface ToastManagerProviderProps {
|
|
4
4
|
children: ReactNode;
|
|
@@ -8,4 +8,4 @@ export interface ToastManagerProviderProps {
|
|
|
8
8
|
*
|
|
9
9
|
* Note that this provider should be within a `ToastProvider`.
|
|
10
10
|
*/
|
|
11
|
-
export declare function ToastManagerProvider({ children }: ToastManagerProviderProps): import("react
|
|
11
|
+
export declare function ToastManagerProvider({ children }: ToastManagerProviderProps): import("react").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { defaultKeybindingsHandlerIgnore } from "tinykeys";
|
|
1
2
|
/** Keyboard shortcut keybinds. */
|
|
2
3
|
export type KeyboardShortcutKeybinds = string[] | string | null | undefined;
|
|
3
4
|
/** Type of the shortcut action. */
|
|
@@ -26,13 +27,15 @@ export interface RegisterKeyboardShortcutOptions {
|
|
|
26
27
|
/**
|
|
27
28
|
* Whether the triggered shortcut should be ignored.
|
|
28
29
|
*
|
|
29
|
-
* By default,
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* `<select>`).
|
|
30
|
+
* By default, shortcuts are ignored according to
|
|
31
|
+
* {@link defaultIgnoreKeyboardShortcut}, which allows mostly all shortcuts
|
|
32
|
+
* through.
|
|
33
33
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
34
|
+
* To ignore shortcuts originating from editable elements
|
|
35
|
+
* (`[contenteditable]`, `input`, `textarea`, and `select`), you can use
|
|
36
|
+
* {@link ignoreKeyboardShortcutInEditableElements} instead.
|
|
37
|
+
*
|
|
38
|
+
* @param event Keyboard event which triggered the shortcut.
|
|
36
39
|
* @returns Whether the keyboard shortcut should be ignored.
|
|
37
40
|
*/
|
|
38
41
|
ignore?: (event: KeyboardEvent) => boolean;
|
|
@@ -107,12 +110,14 @@ export interface UseKeyboardShortcutOptions extends Omit<RegisterKeyboardShortcu
|
|
|
107
110
|
* function.
|
|
108
111
|
*/
|
|
109
112
|
export declare function useKeyboardShortcut(keybinds: KeyboardShortcutKeybinds, action: KeyboardShortcutAction, { disabled, target, eventType, sequenceTimeout, ignore, capture, preventDefault, }?: UseKeyboardShortcutOptions): void;
|
|
113
|
+
/** Default function used to choose whether to ignore a keyboard shortcut. */
|
|
114
|
+
export declare function defaultIgnoreKeyboardShortcut(evt: KeyboardEvent): boolean;
|
|
110
115
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
116
|
+
* Function used to ignore keyboard events from elements matching
|
|
117
|
+
* `[contenteditable]`, `input`, `textarea`, and `select`, unless they are the
|
|
118
|
+
* `event.currentTarget`.
|
|
114
119
|
*/
|
|
115
|
-
export declare
|
|
120
|
+
export declare const ignoreKeyboardShortcutInEditableElements: typeof defaultKeybindingsHandlerIgnore;
|
|
116
121
|
/**
|
|
117
122
|
* Normalises `tinykeys` keybinds into an array of keybinds.
|
|
118
123
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType, ReactElement } from
|
|
1
|
+
import type { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType, ReactElement } from "react";
|
|
2
2
|
/** Properties of a polymorphic component. */
|
|
3
3
|
export type PolymorphicProps<TAsAllowed extends ElementType, TAs extends TAsAllowed, TAsDefault extends TAsAllowed, TOwnProps> = TOwnProps & AsProp<TAsAllowed, TAs, TAsDefault> & Omit<ComponentPropsWithoutRef<TAs>, keyof TOwnProps | "as">;
|
|
4
4
|
/** Reference type for a polymorphic component. */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from
|
|
1
|
+
import { type Dispatch, type SetStateAction } from "react";
|
|
2
2
|
/** Helper hook to handle controlled or uncontrolled values. */
|
|
3
3
|
export declare function useControllableState<T>(initialValue: T | (() => T), controlledValue: T | undefined): [T, Dispatch<SetStateAction<T>>];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Hook providing a reference which is continuously updated with the latest
|
|
4
|
+
* provided `value`.
|
|
5
|
+
*
|
|
6
|
+
* @param value Value to store in the reference.
|
|
7
|
+
* @returns Reference to the latest provided value.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useLatestRef<T>(value: T): RefObject<T>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook providing access to the value of a provided argument in the previous
|
|
3
|
+
* render.
|
|
4
|
+
*
|
|
5
|
+
* @param value Value to store and return on the next render.
|
|
6
|
+
* @returns The value of the provided argument in the previous render or
|
|
7
|
+
* `undefined` during the first render.
|
|
8
|
+
*/
|
|
9
|
+
export declare function usePrevious<T>(value: T): T | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Breakpoint } from
|
|
2
|
-
import { UseCssVarsOptions } from
|
|
1
|
+
import type { Breakpoint } from "./breakpoints.ts";
|
|
2
|
+
import { type UseCssVarsOptions } from "./useCssVars.ts";
|
|
3
3
|
/** Value allowing for different values depending on the current breakpoint. */
|
|
4
4
|
export type Responsive<T = unknown> = T | Partial<Record<Breakpoint, T>>;
|
|
5
5
|
/** Options available to the {@link useResponsiveValues} hook. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SetSearchParamsOptions } from
|
|
1
|
+
import type { SetSearchParamsOptions } from "./useSearchParams.ts";
|
|
2
2
|
/** Options used to navigate to the new search parameter. */
|
|
3
3
|
export interface SetSearchParamOptions extends SetSearchParamsOptions {
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Empty Zustand store. */
|
|
2
|
-
export declare const EMPTY_STORE: import(
|
|
2
|
+
export declare const EMPTY_STORE: import("zustand").StoreApi<any>;
|
|
3
3
|
/** Function used within a Zustand store to hold computed state. */
|
|
4
4
|
export declare function computed<const TDeps extends readonly unknown[] = unknown[], TResult = unknown>(depsFn: () => TDeps, computeFn: (...deps: TDeps) => TResult): () => TResult;
|