@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,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
2
|
-
import { TableRow } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import { TableRow } from "../Table";
|
|
3
3
|
/** Properties of a data table row. */
|
|
4
4
|
export interface DataTableRowProps<T = any> extends ComponentPropsWithoutRef<typeof TableRow> {
|
|
5
5
|
/** Row data. When `undefined`, the row is rendered as "loading". */
|
|
@@ -8,4 +8,4 @@ export interface DataTableRowProps<T = any> extends ComponentPropsWithoutRef<typ
|
|
|
8
8
|
index: number;
|
|
9
9
|
}
|
|
10
10
|
/** Data table row. */
|
|
11
|
-
export declare const DataTableRow: import(
|
|
11
|
+
export declare const DataTableRow: import("react").NamedExoticComponent<DataTableRowProps<any> & import("react").RefAttributes<HTMLTableRowElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
2
|
/** Properties of the data table rows per page component. */
|
|
3
3
|
export interface DataTableRowsPerPageProps extends ComponentPropsWithoutRef<"div"> {
|
|
4
4
|
/**
|
|
@@ -23,4 +23,4 @@ export interface DataTableRowsPerPageProps extends ComponentPropsWithoutRef<"div
|
|
|
23
23
|
preferRightAlignment?: boolean;
|
|
24
24
|
}
|
|
25
25
|
/** Component displaying a select used to change the number of rows per page. */
|
|
26
|
-
export declare const DataTableRowsPerPage: import(
|
|
26
|
+
export declare const DataTableRowsPerPage: import("react").ForwardRefExoticComponent<DataTableRowsPerPageProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, Key, MouseEvent, ReactNode } from
|
|
2
|
-
import { Button } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type Key, type MouseEvent, type ReactNode } from "react";
|
|
2
|
+
import { Button } from "../Button";
|
|
3
|
+
import type { DataTableSelectionMode } from "./DataTable.tsx";
|
|
3
4
|
/** Properties of the data table selection trigger component. */
|
|
4
5
|
export interface DataTableSelectionTriggerProps extends Omit<ComponentPropsWithoutRef<typeof Button<"button">>, "onClick"> {
|
|
5
6
|
/**
|
|
@@ -19,10 +20,11 @@ export interface DataTableSelectionTriggerProps extends Omit<ComponentPropsWitho
|
|
|
19
20
|
* Action to run when triggering the action.
|
|
20
21
|
*
|
|
21
22
|
* @param selectedRows Rows currently selected.
|
|
23
|
+
* @param selectionMode Selection mode currently active.
|
|
22
24
|
* @param event Original click event.
|
|
23
25
|
*/
|
|
24
|
-
onClick: (selectedRows: Key[], event: MouseEvent) => void;
|
|
26
|
+
onClick: (selectedRows: Key[], selectionMode: DataTableSelectionMode, event: MouseEvent) => void;
|
|
25
27
|
children: ReactNode;
|
|
26
28
|
}
|
|
27
29
|
/** Trigger used to run an action over selected rows. */
|
|
28
|
-
export declare const DataTableSelectionTrigger: import(
|
|
30
|
+
export declare const DataTableSelectionTrigger: import("react").ForwardRefExoticComponent<DataTableSelectionTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
2
|
-
import { DataTablePaginationProps } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import type { DataTablePaginationProps } from "./DataTablePagination.tsx";
|
|
3
3
|
/** Properties of the scrolled data table pagination. */
|
|
4
4
|
export interface PagedDataTablePaginationProps extends ComponentPropsWithoutRef<"div">, Pick<DataTablePaginationProps, "rowsRange" | "rowsRangeSelectLabel" | "previousPageButtonLabel" | "nextPageButtonLabel" | "preferRightAlignment" | "previousPageButtonProps" | "nextPageButtonProps"> {
|
|
5
5
|
}
|
|
6
6
|
/** Pagination component of the scrolled data table. */
|
|
7
|
-
export declare const PagedDataTablePagination: import(
|
|
7
|
+
export declare const PagedDataTablePagination: import("react").ForwardRefExoticComponent<PagedDataTablePaginationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Body of the data table in "paged" display mode. */
|
|
2
|
-
export declare function PagedDataTableRows<T = unknown>(): import("react
|
|
2
|
+
export declare function PagedDataTableRows<T = unknown>(): import("react").JSX.Element[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
2
|
-
import { DataTablePaginationProps } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import type { DataTablePaginationProps } from "./DataTablePagination.tsx";
|
|
3
3
|
/** Properties of the scrolled data table pagination. */
|
|
4
4
|
export interface ScrolledDataTablePaginationProps extends ComponentPropsWithoutRef<"div">, Pick<DataTablePaginationProps, "rowsRange" | "preferRightAlignment"> {
|
|
5
5
|
}
|
|
6
6
|
/** Pagination component of the scrolled data table. */
|
|
7
|
-
export declare const ScrolledDataTablePagination: import(
|
|
7
|
+
export declare const ScrolledDataTablePagination: import("react").ForwardRefExoticComponent<ScrolledDataTablePaginationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DataTableBodyProps } from
|
|
1
|
+
import type { DataTableBodyProps } from "./DataTableBody.tsx";
|
|
2
2
|
/** Properties of the scrolled data table body component. */
|
|
3
3
|
interface ScrolledDataTableRowsProps extends Pick<DataTableBodyProps, "scrollableRef"> {
|
|
4
4
|
}
|
|
5
5
|
/** Body of the data table in "scrolled" display mode. */
|
|
6
|
-
export declare function ScrolledDataTableRows<T = unknown>({ scrollableRef, }: ScrolledDataTableRowsProps): import("react
|
|
6
|
+
export declare function ScrolledDataTableRows<T = unknown>({ scrollableRef, }: ScrolledDataTableRowsProps): import("react").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTableColumns } from
|
|
1
|
+
import type { DataTableColumns } from "./DataTableColumn.tsx";
|
|
2
2
|
/** List of "leaf" columns (columns with no sub columns, i.e. the "bottom" ones). */
|
|
3
3
|
export declare function leafColumns<T>(columns: DataTableColumns<T>): DataTableColumns<T>;
|
|
4
4
|
/** Total number of table rows of the head. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Key } from
|
|
2
|
-
import { DataTableProps } from
|
|
1
|
+
import type { Key } from "react";
|
|
2
|
+
import type { DataTableProps } from "./DataTable.tsx";
|
|
3
3
|
/** Returns the key of a row. */
|
|
4
4
|
export declare function getRowKey<T = unknown>(row: T, rowKey: DataTableProps<T>["rowKey"]): Key;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export { useDataTableColumnLabel, useDataTableColumnLabelId, } from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export { DATA_TABLE_SELECTION_COLUMN_WIDTH } from
|
|
1
|
+
export * from "./DataTable.tsx";
|
|
2
|
+
export * from "./DataTableApi.ts";
|
|
3
|
+
export * from "./DataTableCell.tsx";
|
|
4
|
+
export * from "./DataTableColumn.tsx";
|
|
5
|
+
export * from "./DataTableContent.tsx";
|
|
6
|
+
export { useDataTableColumnLabel, useDataTableColumnLabelId, } from "./DataTableContext.ts";
|
|
7
|
+
export * from "./DataTableFilter.tsx";
|
|
8
|
+
export * from "./DataTablePagination.tsx";
|
|
9
|
+
export * from "./DataTableRow.tsx";
|
|
10
|
+
export * from "./DataTableRowsPerPage.tsx";
|
|
11
|
+
export * from "./DataTableSelectionTrigger.tsx";
|
|
12
|
+
export { DATA_TABLE_SELECTION_COLUMN_WIDTH } from "./useDataTableSelectionColumn.tsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SortDirection } from
|
|
2
|
-
import { DataTableColumns } from
|
|
1
|
+
import { type SortDirection } from "../../utils/sorting.ts";
|
|
2
|
+
import type { DataTableColumns } from "./DataTableColumn.tsx";
|
|
3
3
|
/** Filters the provided rows. */
|
|
4
4
|
export declare function filterRows<T>(leafColumns: DataTableColumns<T>, rows: T[], filter: string): T[];
|
|
5
5
|
export declare function filterRows<T>(leafColumns: DataTableColumns<T>, rows: undefined, filter: string): undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SortDirection } from
|
|
2
|
-
import { DataTableColumns } from
|
|
1
|
+
import type { SortDirection } from "../../utils/sorting.ts";
|
|
2
|
+
import type { DataTableColumns } from "./DataTableColumn.tsx";
|
|
3
3
|
/** Sanitizes an integer property. */
|
|
4
4
|
export declare function sanitizeInt(value: number | string | undefined): number | undefined;
|
|
5
5
|
/** Sanitizes the `sortBy` property. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataTableColumn } from
|
|
1
|
+
import type { DataTableColumn } from "./DataTableColumn.tsx";
|
|
2
2
|
export declare const DATA_TABLE_SELECTION_COLUMN_WIDTH = 42;
|
|
3
3
|
export declare function useDataTableSelectionColumn<T = unknown, TValue = any>(): DataTableColumn<T, TValue> | undefined;
|
|
4
4
|
export declare function useDataTableSelectionColumnId(): string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, ReactNode } from
|
|
2
|
-
import { Calendar } from
|
|
3
|
-
import { ControlNonFileInputProps } from
|
|
4
|
-
import { FormValidationMode } from
|
|
5
|
-
import { FormControlValidateFn } from
|
|
6
|
-
import { PopoverContent } from
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from "react";
|
|
2
|
+
import { Calendar } from "../Calendar";
|
|
3
|
+
import { type ControlNonFileInputProps } from "../Control";
|
|
4
|
+
import type { FormValidationMode } from "../Form";
|
|
5
|
+
import { type FormControlValidateFn } from "../Form/useRegisterFormControl.ts";
|
|
6
|
+
import { PopoverContent } from "../Popover";
|
|
7
7
|
/** Properties of the date input component. */
|
|
8
8
|
export interface DateInputProps extends Omit<ControlNonFileInputProps, "defaultValue" | "value" | "onValueChange"> {
|
|
9
9
|
/** Date input's default value. */
|
|
@@ -110,4 +110,4 @@ export interface DateValueRepresentations {
|
|
|
110
110
|
* }
|
|
111
111
|
* ```
|
|
112
112
|
*/
|
|
113
|
-
export declare const DateInput: import(
|
|
113
|
+
export declare const DateInput: import("react").ForwardRefExoticComponent<DateInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./DateInput.tsx";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, CSSProperties, FocusEvent, ReactNode } from
|
|
2
|
-
import { Responsive } from
|
|
3
|
-
import { Calendar, DateRange } from
|
|
4
|
-
import { CloseButton } from
|
|
5
|
-
import { ControlShowClearButton, ControlStatus, ControlVariant } from
|
|
6
|
-
import { ControlCode } from
|
|
7
|
-
import { FormValidationMode } from
|
|
8
|
-
import { FormControlValidateFn } from
|
|
9
|
-
import { PopoverAnchor, PopoverContent } from
|
|
10
|
-
import { Spinner } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type CSSProperties, type FocusEvent, type ReactNode } from "react";
|
|
2
|
+
import { type Responsive } from "../../utils/useResponsiveValues.ts";
|
|
3
|
+
import { Calendar, type DateRange } from "../Calendar";
|
|
4
|
+
import { CloseButton } from "../CloseButton";
|
|
5
|
+
import { type ControlShowClearButton, type ControlStatus, type ControlVariant } from "../Control";
|
|
6
|
+
import { ControlCode } from "../ControlCode";
|
|
7
|
+
import type { FormValidationMode } from "../Form";
|
|
8
|
+
import { type FormControlValidateFn } from "../Form/useRegisterFormControl.ts";
|
|
9
|
+
import { PopoverAnchor, PopoverContent } from "../Popover";
|
|
10
|
+
import { Spinner } from "../Spinner";
|
|
11
11
|
/** Date-range using formatted strings as dates. */
|
|
12
12
|
export interface FormattedRange {
|
|
13
13
|
/** Start of the date-range. */
|
|
@@ -254,4 +254,4 @@ export interface DateRangeValueRepresentations {
|
|
|
254
254
|
* }
|
|
255
255
|
* ```
|
|
256
256
|
*/
|
|
257
|
-
export declare const DateRangeInput: import(
|
|
257
|
+
export declare const DateRangeInput: import("react").ForwardRefExoticComponent<DateRangeInputProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./DateRangeInput.tsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
2
|
-
import { GridContainerProps } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import { type GridContainerProps } from "../Grid";
|
|
3
3
|
/** Properties of the description list component. */
|
|
4
4
|
export interface DescriptionListProps extends Pick<GridContainerProps, "asChild" | "columns" | "gap" | "rowGap" | "columnGap">, ComponentPropsWithoutRef<"dl"> {
|
|
5
5
|
}
|
|
@@ -35,4 +35,4 @@ export interface DescriptionListProps extends Pick<GridContainerProps, "asChild"
|
|
|
35
35
|
* }
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
|
-
export declare const DescriptionList: import(
|
|
38
|
+
export declare const DescriptionList: import("react").ForwardRefExoticComponent<DescriptionListProps & import("react").RefAttributes<HTMLDListElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, ReactNode } from
|
|
2
|
-
import { GridItemProps } from
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from "react";
|
|
2
|
+
import { type GridItemProps } from "../Grid";
|
|
3
3
|
/** Properties of the description list item component. */
|
|
4
4
|
export interface DescriptionListItemProps extends GridItemProps {
|
|
5
5
|
/** Term of the description list item. */
|
|
@@ -12,4 +12,4 @@ export interface DescriptionListItemProps extends GridItemProps {
|
|
|
12
12
|
descriptionDetailsProps?: ComponentPropsWithRef<"dd">;
|
|
13
13
|
}
|
|
14
14
|
/** Item of the description list: a grouping of a term and its details. */
|
|
15
|
-
export declare const DescriptionListItem: import(
|
|
15
|
+
export declare const DescriptionListItem: import("react").ForwardRefExoticComponent<DescriptionListItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./DescriptionList.tsx";
|
|
2
|
+
export * from "./DescriptionListItem.tsx";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive } from
|
|
1
|
+
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
2
2
|
/**
|
|
3
3
|
* The dialog component displays a “window” overlaid on either the main screen
|
|
4
4
|
* or another dialog window, rendering the content underneath inert.
|
|
@@ -65,4 +65,4 @@ import { Dialog as DialogPrimitive } from 'radix-ui';
|
|
|
65
65
|
* }
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
|
68
|
-
export declare const Dialog: import(
|
|
68
|
+
export declare const Dialog: import("react").FC<DialogPrimitive.DialogProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
2
|
-
import { CardBody } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import { CardBody } from "../Card";
|
|
3
3
|
/** Properties of the dialog body component. */
|
|
4
4
|
export interface DialogBodyProps extends ComponentPropsWithoutRef<typeof CardBody> {
|
|
5
5
|
}
|
|
6
6
|
/** Body section of the dialog. */
|
|
7
|
-
export declare const DialogBody: import(
|
|
7
|
+
export declare const DialogBody: import("react").ForwardRefExoticComponent<DialogBodyProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
3
|
/** Properties of the dialog close component. */
|
|
4
4
|
export interface DialogCloseProps extends Omit<ComponentPropsWithoutRef<typeof DialogPrimitive.Close>, "asChild"> {
|
|
5
5
|
}
|
|
6
6
|
/** Button which closes the dialog. */
|
|
7
|
-
export declare const DialogClose: import(
|
|
7
|
+
export declare const DialogClose: import("react").ForwardRefExoticComponent<DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from
|
|
3
|
-
import { CardColor, CardVariant } from
|
|
4
|
-
import { Overlay } from
|
|
1
|
+
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef } from "react";
|
|
3
|
+
import { type CardColor, type CardVariant } from "../Card";
|
|
4
|
+
import { Overlay } from "../Overlay";
|
|
5
5
|
/** Dialog content variants. */
|
|
6
6
|
export type DialogContentVariant = CardVariant;
|
|
7
7
|
/** Possible dialog content colors. */
|
|
@@ -42,4 +42,4 @@ export interface DialogContentProps extends ComponentPropsWithoutRef<typeof Dial
|
|
|
42
42
|
overlayProps?: ComponentPropsWithRef<typeof Overlay>;
|
|
43
43
|
}
|
|
44
44
|
/** Content to be rendered in the open dialog. */
|
|
45
|
-
export declare const DialogContent: import(
|
|
45
|
+
export declare const DialogContent: import("react").ForwardRefExoticComponent<DialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
3
|
/** Properties of the dialog description component. */
|
|
4
4
|
export interface DialogDescriptionProps extends ComponentPropsWithoutRef<typeof DialogPrimitive.Description> {
|
|
5
5
|
}
|
|
@@ -10,4 +10,4 @@ export interface DialogDescriptionProps extends ComponentPropsWithoutRef<typeof
|
|
|
10
10
|
* the description entirely, pass `aria-describedby={undefined}` to the
|
|
11
11
|
* `DialogContent` and omit this component.
|
|
12
12
|
*/
|
|
13
|
-
export declare const DialogDescription: import(
|
|
13
|
+
export declare const DialogDescription: import("react").ForwardRefExoticComponent<DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
2
|
-
import { CardFooter } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import { CardFooter } from "../Card";
|
|
3
3
|
/** Properties of the dialog footer component. */
|
|
4
4
|
export interface DialogFooterProps extends ComponentPropsWithoutRef<typeof CardFooter> {
|
|
5
5
|
}
|
|
6
6
|
/** Footer section of the dialog. */
|
|
7
|
-
export declare const DialogFooter: import(
|
|
7
|
+
export declare const DialogFooter: import("react").ForwardRefExoticComponent<DialogFooterProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from
|
|
2
|
-
import { CardHeader } from
|
|
3
|
-
import { CloseButton } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef } from "react";
|
|
2
|
+
import { CardHeader } from "../Card";
|
|
3
|
+
import { CloseButton } from "../CloseButton";
|
|
4
4
|
/** Properties of the dialog header component. */
|
|
5
5
|
export interface DialogHeaderProps extends ComponentPropsWithoutRef<typeof CardHeader> {
|
|
6
6
|
/**
|
|
@@ -13,4 +13,4 @@ export interface DialogHeaderProps extends ComponentPropsWithoutRef<typeof CardH
|
|
|
13
13
|
closeButtonProps?: ComponentPropsWithRef<typeof CloseButton>;
|
|
14
14
|
}
|
|
15
15
|
/** Header section of the dialog. */
|
|
16
|
-
export declare const DialogHeader: import(
|
|
16
|
+
export declare const DialogHeader: import("react").ForwardRefExoticComponent<DialogHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef } from
|
|
3
|
-
import { PolymorphicComponent, PolymorphicProps } from
|
|
1
|
+
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
|
+
import type { PolymorphicComponent, PolymorphicProps } from "../../utils/polymorphicTypes.ts";
|
|
4
4
|
/** Element a dialog title can be rendered as. */
|
|
5
5
|
export type DialogTitleAs = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div" | "span";
|
|
6
6
|
/** Properties of the dialog title component. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
3
|
/** Properties of the dialog trigger component. */
|
|
4
4
|
export interface DialogTriggerProps extends Omit<ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>, "asChild"> {
|
|
5
5
|
}
|
|
6
6
|
/** The button which, when pressed, opens the dialog. */
|
|
7
|
-
export declare const DialogTrigger: import(
|
|
7
|
+
export declare const DialogTrigger: import("react").ForwardRefExoticComponent<DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
1
|
+
export * from "./Dialog.tsx";
|
|
2
|
+
export * from "./DialogBody.tsx";
|
|
3
|
+
export * from "./DialogClose.tsx";
|
|
4
|
+
export * from "./DialogContent.tsx";
|
|
5
|
+
export * from "./DialogDescription.tsx";
|
|
6
|
+
export * from "./DialogFooter.tsx";
|
|
7
|
+
export * from "./DialogHeader.tsx";
|
|
8
|
+
export * from "./DialogTitle.tsx";
|
|
9
|
+
export * from "./DialogTrigger.tsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef, ComponentType } from
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
2
|
+
import type { ComponentPropsWithoutRef, ComponentType } from "react";
|
|
3
3
|
/** Properties of the dropdown menu component. */
|
|
4
4
|
export interface DropdownMenuProps extends Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root>, "dir"> {
|
|
5
5
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from
|
|
3
|
-
import { CheckboxChecked } from
|
|
4
|
-
import { Icon } from
|
|
5
|
-
import { MenuListItemProps } from
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef } from "react";
|
|
3
|
+
import type { CheckboxChecked } from "../Checkbox";
|
|
4
|
+
import { Icon } from "../Icon";
|
|
5
|
+
import { type MenuListItemProps } from "../MenuList";
|
|
6
6
|
/** Properties of the dropdown menu checkbox item. */
|
|
7
7
|
export interface DropdownMenuCheckboxItemProps extends Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>, "asChild" | "color">, Pick<MenuListItemProps, "color" | "loading" | "loadingContent" | "showSpinner" | "iconPlacement" | "keybinds" | "actionProps" | "contentProps" | "iconProps" | "spinnerProps" | "keybindsProps"> {
|
|
8
8
|
/**
|
|
@@ -21,4 +21,4 @@ export interface DropdownMenuCheckboxItemProps extends Omit<ComponentPropsWithou
|
|
|
21
21
|
indicatorProps?: Omit<ComponentPropsWithRef<typeof Icon>, "icon">;
|
|
22
22
|
}
|
|
23
23
|
/** A dropdown menu item that can be controlled and rendered like a checkbox. */
|
|
24
|
-
export declare const DropdownMenuCheckboxItem: import(
|
|
24
|
+
export declare const DropdownMenuCheckboxItem: import("react").ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from
|
|
3
|
-
import { MenuList, MenuListProps } from
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef } from "react";
|
|
3
|
+
import { MenuList, type MenuListProps } from "../MenuList";
|
|
4
4
|
/** Properties of the dropdown menu content component. */
|
|
5
5
|
export interface DropdownMenuContentProps extends Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>, "asChild">, Pick<MenuListProps, "variant" | "iconPlacement"> {
|
|
6
6
|
/**
|
|
@@ -17,4 +17,4 @@ export interface DropdownMenuContentProps extends Omit<ComponentPropsWithoutRef<
|
|
|
17
17
|
menuListProps?: Omit<ComponentPropsWithRef<typeof MenuList>, "variant" | "iconPlacement" | "asChild">;
|
|
18
18
|
}
|
|
19
19
|
/** The component that pops out when the dropdown menu is open. */
|
|
20
|
-
export declare const DropdownMenuContent: import(
|
|
20
|
+
export declare const DropdownMenuContent: import("react").ForwardRefExoticComponent<DropdownMenuContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef } from
|
|
3
|
-
import { MenuListGroupProps } from
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
|
+
import { type MenuListGroupProps } from "../MenuList";
|
|
4
4
|
/** Properties of the dropdown menu group. */
|
|
5
5
|
export interface DropdownMenuGroupProps extends Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Group>, "asChild">, Pick<MenuListGroupProps, "label" | "itemProps" | "labelProps"> {
|
|
6
6
|
}
|
|
7
7
|
/** Component used to group multiple dropdown menu items. */
|
|
8
|
-
export declare const DropdownMenuGroup: import(
|
|
8
|
+
export declare const DropdownMenuGroup: import("react").ForwardRefExoticComponent<DropdownMenuGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef } from
|
|
3
|
-
import { MenuListItemProps } from
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
|
+
import { type MenuListItemProps } from "../MenuList";
|
|
4
4
|
/** Properties of the dropdown menu item. */
|
|
5
5
|
export interface DropdownMenuItemProps extends Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item>, "asChild" | "color">, Pick<MenuListItemProps, "selected" | "color" | "loading" | "loadingContent" | "showSpinner" | "icon" | "iconPlacement" | "keybinds" | "href" | "target" | "rel" | "actionProps" | "contentProps" | "iconProps" | "spinnerProps" | "keybindsProps"> {
|
|
6
6
|
/**
|
|
@@ -12,4 +12,4 @@ export interface DropdownMenuItemProps extends Omit<ComponentPropsWithoutRef<typ
|
|
|
12
12
|
asLink?: boolean;
|
|
13
13
|
}
|
|
14
14
|
/** Component containing a dropdown menu item. */
|
|
15
|
-
export declare const DropdownMenuItem: import(
|
|
15
|
+
export declare const DropdownMenuItem: import("react").ForwardRefExoticComponent<DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef } from
|
|
3
|
-
import { MenuListGroupProps } from
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
|
+
import { type MenuListGroupProps } from "../MenuList";
|
|
4
4
|
/** Properties of the dropdown menu radio group. */
|
|
5
5
|
export interface DropdownMenuRadioGroupProps extends Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioGroup>, "asChild">, Pick<MenuListGroupProps, "label" | "itemProps" | "labelProps"> {
|
|
6
6
|
}
|
|
7
7
|
/** Component used to group multiple dropdown menu radio items. */
|
|
8
|
-
export declare const DropdownMenuRadioGroup: import(
|
|
8
|
+
export declare const DropdownMenuRadioGroup: import("react").ForwardRefExoticComponent<DropdownMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from
|
|
3
|
-
import { MenuListItemProps } from
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef } from "react";
|
|
3
|
+
import { type MenuListItemProps } from "../MenuList";
|
|
4
4
|
/** Properties of the dropdown menu radio item. */
|
|
5
5
|
export interface DropdownMenuRadioItemProps extends Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>, "asChild" | "color">, Pick<MenuListItemProps, "color" | "loading" | "loadingContent" | "showSpinner" | "iconPlacement" | "keybinds" | "actionProps" | "contentProps" | "iconProps" | "spinnerProps" | "keybindsProps"> {
|
|
6
6
|
/**
|
|
@@ -13,4 +13,4 @@ export interface DropdownMenuRadioItemProps extends Omit<ComponentPropsWithoutRe
|
|
|
13
13
|
indicatorProps?: ComponentPropsWithRef<typeof DropdownMenuPrimitive.ItemIndicator>;
|
|
14
14
|
}
|
|
15
15
|
/** A dropdown menu item that can be controlled and rendered like a radio. */
|
|
16
|
-
export declare const DropdownMenuRadioItem: import(
|
|
16
|
+
export declare const DropdownMenuRadioItem: import("react").ForwardRefExoticComponent<DropdownMenuRadioItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
2
2
|
/** Container used to render a submenu. */
|
|
3
|
-
export declare const DropdownMenuSub: import(
|
|
3
|
+
export declare const DropdownMenuSub: import("react").FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from
|
|
3
|
-
import { MenuList, MenuListProps } from
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef } from "react";
|
|
3
|
+
import { MenuList, type MenuListProps } from "../MenuList";
|
|
4
4
|
/** Properties of the dropdown menu sub content component. */
|
|
5
5
|
export interface DropdownMenuSubContentProps extends Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>, "asChild">, Pick<MenuListProps, "variant" | "iconPlacement"> {
|
|
6
6
|
/** Properties to pass to the menu list component. */
|
|
@@ -10,4 +10,4 @@ export interface DropdownMenuSubContentProps extends Omit<ComponentPropsWithoutR
|
|
|
10
10
|
* The component that pops out when a submenu is open. Must be rendered inside
|
|
11
11
|
* `DropdownMenuSub`.
|
|
12
12
|
*/
|
|
13
|
-
export declare const DropdownMenuSubContent: import(
|
|
13
|
+
export declare const DropdownMenuSubContent: import("react").ForwardRefExoticComponent<DropdownMenuSubContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef } from
|
|
3
|
-
import { MenuListItemProps } from
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
|
+
import { type MenuListItemProps } from "../MenuList";
|
|
4
4
|
/** Properties of the dropdown menu submenu trigger. */
|
|
5
5
|
export interface DropdownMenuSubTriggerProps extends Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger>, "asChild" | "color">, Pick<MenuListItemProps, "color" | "icon" | "disabled" | "actionProps" | "contentProps" | "iconProps"> {
|
|
6
6
|
}
|
|
@@ -8,4 +8,4 @@ export interface DropdownMenuSubTriggerProps extends Omit<ComponentPropsWithoutR
|
|
|
8
8
|
* A dropdown menu item that opens a submenu. Must be rendered within a
|
|
9
9
|
* `DropdownMenuSub`.
|
|
10
10
|
*/
|
|
11
|
-
export declare const DropdownMenuSubTrigger: import(
|
|
11
|
+
export declare const DropdownMenuSubTrigger: import("react").ForwardRefExoticComponent<DropdownMenuSubTriggerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DropdownMenu as DropdownMenuPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
3
|
/** Properties of the dropdown menu trigger component. */
|
|
4
4
|
export interface DropdownMenuTriggerProps extends Omit<ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger>, "asChild"> {
|
|
5
5
|
}
|
|
6
6
|
/** Trigger component for the dropdown menu. */
|
|
7
|
-
export declare const DropdownMenuTrigger: import(
|
|
7
|
+
export declare const DropdownMenuTrigger: import("react").ForwardRefExoticComponent<DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|