@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,8 +1,8 @@
|
|
|
1
|
-
import { Label as LabelPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from
|
|
3
|
-
import { Icon } from
|
|
4
|
-
import { IconButton } from
|
|
5
|
-
import { Popover, PopoverContent } from
|
|
1
|
+
import { Label as LabelPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactNode } from "react";
|
|
3
|
+
import { Icon } from "../Icon";
|
|
4
|
+
import { IconButton } from "../IconButton";
|
|
5
|
+
import { Popover, PopoverContent } from "../Popover";
|
|
6
6
|
/** Properties of the label component. */
|
|
7
7
|
export interface LabelProps extends ComponentPropsWithoutRef<typeof LabelPrimitive.Root> {
|
|
8
8
|
/** Shows a "required" symbol next to the label. */
|
|
@@ -42,4 +42,4 @@ export interface LabelProps extends ComponentPropsWithoutRef<typeof LabelPrimiti
|
|
|
42
42
|
* }
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
|
-
export declare const Label: import(
|
|
45
|
+
export declare const Label: import("react").ForwardRefExoticComponent<LabelProps & import("react").RefAttributes<HTMLLabelElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./Label.tsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from
|
|
2
|
-
import { Slot } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
+
import { Slot } from "../Slot";
|
|
3
3
|
/** Available z-index names. */
|
|
4
4
|
export type LayerZIndex = "docked" | "dropdown" | "sticky" | "banner" | "overlay" | "dialog" | "popover" | "skipLink" | "toast" | "tooltip";
|
|
5
5
|
/** Properties of the layer component. */
|
|
@@ -29,4 +29,4 @@ export interface LayerProps extends ComponentPropsWithoutRef<typeof Slot> {
|
|
|
29
29
|
* }
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
export declare function Layer({ zIndex, reset, style, ...otherProps }: LayerProps): import("react
|
|
32
|
+
export declare function Layer({ zIndex, reset, style, ...otherProps }: LayerProps): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Layer context. */
|
|
2
|
-
export declare const LayerContext: import(
|
|
2
|
+
export declare const LayerContext: import("react").Context<(string | number)[]>;
|
|
3
3
|
/** Hook providing access to the current layer's z-index. */
|
|
4
4
|
export declare function useLayerZIndex(): string | undefined;
|
|
5
5
|
/** Computes the z-index of a layer based on its z-indices. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export { useLayerZIndex } from
|
|
1
|
+
export * from "./Layer.tsx";
|
|
2
|
+
export { useLayerZIndex } from "./LayerContext.ts";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentPropsWithRef } from
|
|
2
|
-
import { AccentColor } from
|
|
3
|
-
import { PolymorphicComponent, PolymorphicProps } from
|
|
4
|
-
import { Icon, IconProp } from
|
|
1
|
+
import { type ComponentPropsWithRef } from "react";
|
|
2
|
+
import type { AccentColor } from "../../utils/accent.ts";
|
|
3
|
+
import type { PolymorphicComponent, PolymorphicProps } from "../../utils/polymorphicTypes.ts";
|
|
4
|
+
import { Icon, type IconProp } from "../Icon";
|
|
5
5
|
/** Elements a link can be rendered as. */
|
|
6
6
|
export type LinkAs = "a" | "button";
|
|
7
7
|
/** Link variants. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinkColor, LinkVariant } from
|
|
1
|
+
import type { LinkColor, LinkVariant } from "./Link.tsx";
|
|
2
2
|
/** Value of the link context. */
|
|
3
3
|
export interface LinkContextValue {
|
|
4
4
|
/** Default colour that the link should use. */
|
|
@@ -9,6 +9,6 @@ export interface LinkContextValue {
|
|
|
9
9
|
/** Default value of the link context. */
|
|
10
10
|
export declare const LINK_CONTEXT_DEFAULT_VALUE: LinkContextValue;
|
|
11
11
|
/** Context for links. */
|
|
12
|
-
export declare const LinkContext: import(
|
|
12
|
+
export declare const LinkContext: import("react").Context<LinkContextValue>;
|
|
13
13
|
/** Hook providing access to the link context. */
|
|
14
14
|
export declare function useLinkContext(): LinkContextValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./Link.tsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
2
|
-
import { AccentColor } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import type { AccentColor } from "../../utils/accent.ts";
|
|
3
3
|
/** Possible mark colours. */
|
|
4
4
|
export type MarkColor = AccentColor;
|
|
5
5
|
/** Properties of the mark component. */
|
|
@@ -38,4 +38,4 @@ export interface MarkProps extends ComponentPropsWithoutRef<"mark"> {
|
|
|
38
38
|
* }
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
|
-
export declare const Mark: import(
|
|
41
|
+
export declare const Mark: import("react").ForwardRefExoticComponent<MarkProps & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./Mark.tsx";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
2
|
/** Menu list variants. */
|
|
3
3
|
export type MenuListVariant = "solid" | "subtle";
|
|
4
4
|
/** Placement of icons within menu list items. */
|
|
@@ -50,4 +50,4 @@ export interface MenuListProps extends ComponentPropsWithoutRef<"ul"> {
|
|
|
50
50
|
* }
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
|
53
|
-
export declare const MenuList: import(
|
|
53
|
+
export declare const MenuList: import("react").ForwardRefExoticComponent<MenuListProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MenuListIconPlacement, MenuListVariant } from
|
|
1
|
+
import type { MenuListIconPlacement, MenuListVariant } from "./MenuList.tsx";
|
|
2
2
|
/** Value of the menu list context. */
|
|
3
3
|
export interface MenuListContextValue {
|
|
4
4
|
iconPlacement: MenuListIconPlacement;
|
|
5
5
|
variant: MenuListVariant;
|
|
6
6
|
}
|
|
7
7
|
/** Context for menu lists. */
|
|
8
|
-
export declare const MenuListContext: import(
|
|
8
|
+
export declare const MenuListContext: import("react").Context<MenuListContextValue>;
|
|
9
9
|
/** Hook providing access to the menu list context. */
|
|
10
10
|
export declare function useMenuListContext(): MenuListContextValue;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType, ReactNode } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ElementType, type ReactNode } from "react";
|
|
2
2
|
/** Properties of the menu list group component. */
|
|
3
3
|
export interface MenuListGroupProps extends ComponentPropsWithoutRef<"ul"> {
|
|
4
4
|
/**
|
|
@@ -21,4 +21,4 @@ export interface MenuListGroupProps extends ComponentPropsWithoutRef<"ul"> {
|
|
|
21
21
|
labelProps?: ComponentPropsWithRef<"div">;
|
|
22
22
|
}
|
|
23
23
|
/** Menu list group component. */
|
|
24
|
-
export declare const MenuListGroup: import(
|
|
24
|
+
export declare const MenuListGroup: import("react").ForwardRefExoticComponent<MenuListGroupProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ComponentProps, ComponentPropsWithoutRef, ComponentPropsWithRef, MouseEvent, ReactElement, ReactNode } from
|
|
2
|
-
import { AccentColor } from
|
|
3
|
-
import { KeyboardShortcutKeybinds } from
|
|
4
|
-
import { Icon, IconProp } from
|
|
5
|
-
import { Keybinds } from
|
|
6
|
-
import { Spinner } from
|
|
7
|
-
import { MenuListIconPlacement } from
|
|
1
|
+
import { type ComponentProps, type ComponentPropsWithoutRef, type ComponentPropsWithRef, type MouseEvent, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import type { AccentColor } from "../../utils/accent.ts";
|
|
3
|
+
import { type KeyboardShortcutKeybinds } from "../../utils/keyboardShortcut.ts";
|
|
4
|
+
import { Icon, type IconProp } from "../Icon";
|
|
5
|
+
import { Keybinds } from "../Keybinds";
|
|
6
|
+
import { Spinner } from "../Spinner";
|
|
7
|
+
import type { MenuListIconPlacement } from "./MenuList.tsx";
|
|
8
8
|
/** Elements a menu list item's action can be rendered as. */
|
|
9
9
|
export type MenuListItemType = "button" | "link" | "text";
|
|
10
10
|
/** Menu list item colours. */
|
|
@@ -117,4 +117,4 @@ export interface MenuListItemProps extends Omit<ComponentPropsWithoutRef<"li">,
|
|
|
117
117
|
keybindsProps?: ComponentPropsWithRef<typeof Keybinds>;
|
|
118
118
|
}
|
|
119
119
|
/** Menu list item component. */
|
|
120
|
-
export declare const MenuListItem: import(
|
|
120
|
+
export declare const MenuListItem: import("react").ForwardRefExoticComponent<MenuListItemProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./MenuList.tsx";
|
|
2
|
+
export * from "./MenuListGroup.tsx";
|
|
3
|
+
export * from "./MenuListItem.tsx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NumericTransformerOptions } from
|
|
2
|
-
import { ControlNonFileInputProps } from
|
|
3
|
-
import { FormValidationMode } from
|
|
4
|
-
import { FormControlValidateFn } from
|
|
1
|
+
import type { NumericTransformerOptions } from "../../utils/useNumericTransformer.tsx";
|
|
2
|
+
import { type ControlNonFileInputProps } from "../Control";
|
|
3
|
+
import type { FormValidationMode } from "../Form";
|
|
4
|
+
import { type FormControlValidateFn } from "../Form/useRegisterFormControl.ts";
|
|
5
5
|
/** Properties of the numeric input component. */
|
|
6
6
|
export interface NumericInputProps extends NumericTransformerOptions, Omit<ControlNonFileInputProps, "defaultValue" | "value" | "onValueChange" | "validate" | "type" | "min" | "max"> {
|
|
7
7
|
type?: "text" | "tel" | "password";
|
|
@@ -97,4 +97,4 @@ export interface NumericValueRepresentations {
|
|
|
97
97
|
* }
|
|
98
98
|
* ```
|
|
99
99
|
*/
|
|
100
|
-
export declare const NumericInput: import(
|
|
100
|
+
export declare const NumericInput: import("react").ForwardRefExoticComponent<NumericInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./NumericInput.tsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NumberFormatValues, NumericFormatProps } from
|
|
2
|
-
import { NumericInputProps, NumericValueRepresentations } from
|
|
1
|
+
import { type NumberFormatValues, type NumericFormatProps } from "react-number-format";
|
|
2
|
+
import type { NumericInputProps, NumericValueRepresentations } from "./NumericInput.tsx";
|
|
3
3
|
/** Validates numeric props. */
|
|
4
4
|
export declare function validateNumericProps({ valueIsInteger, precision, scale, decimalSeparator, groupSeparator, minString, maxString, exclusiveMinString, exclusiveMaxString, }: Pick<NumericInputProps, "valueIsInteger" | "precision" | "scale" | "decimalSeparator" | "groupSeparator"> & {
|
|
5
5
|
minString?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { ControlOutputProps } from
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type ControlOutputProps } from "../Control";
|
|
3
3
|
/** Properties of the output component. */
|
|
4
4
|
export interface OutputProps extends Omit<ControlOutputProps, "asChild" | "disabled" | "loading" | "loadingDescription" | "showClearButton" | "clearButtonLabel" | "onValueChange" | "onBlurToOutside" | "clearButtonProps"> {
|
|
5
5
|
/**
|
|
@@ -40,4 +40,4 @@ export interface OutputProps extends Omit<ControlOutputProps, "asChild" | "disab
|
|
|
40
40
|
* }
|
|
41
41
|
* ```
|
|
42
42
|
*/
|
|
43
|
-
export declare const Output: import(
|
|
43
|
+
export declare const Output: import("react").ForwardRefExoticComponent<OutputProps & import("react").RefAttributes<HTMLOutputElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./Output.tsx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
2
|
/** Properties of the label component. */
|
|
3
3
|
export interface OverlayProps extends ComponentPropsWithoutRef<"div"> {
|
|
4
4
|
}
|
|
5
5
|
/** Internal component used by dialogs to overlay content. */
|
|
6
|
-
export declare const Overlay: import(
|
|
6
|
+
export declare const Overlay: import("react").ForwardRefExoticComponent<OverlayProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./Overlay.tsx";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Popover as PopoverPrimitive } from
|
|
1
|
+
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
2
2
|
/**
|
|
3
3
|
* The popover component displays content in a floating pop-up, triggered by a
|
|
4
4
|
* button. Built on top of the [Radix Popover
|
|
@@ -37,4 +37,4 @@ import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
|
37
37
|
* }
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
|
-
export declare const Popover: import(
|
|
40
|
+
export declare const Popover: import("react").FC<PopoverPrimitive.PopoverProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Popover as PopoverPrimitive } from
|
|
1
|
+
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
2
2
|
/**
|
|
3
3
|
* An optional element to position the `PopoverContent` against. If this part is
|
|
4
4
|
* not used, the content will position alongside the `PopoverTrigger`.
|
|
5
5
|
*/
|
|
6
|
-
export declare const PopoverAnchor: import(
|
|
6
|
+
export declare const PopoverAnchor: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from
|
|
2
|
-
import { CloseButton } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
2
|
+
import { CloseButton } from "../CloseButton";
|
|
3
3
|
/** Properties of the popover close component. */
|
|
4
4
|
export type PopoverCloseProps = PopoverCloseChildlessProps | PopoverCloseChildrenProps;
|
|
5
5
|
/** Properties of the popover close component when rendered without children. */
|
|
@@ -11,4 +11,4 @@ export interface PopoverCloseChildrenProps extends ComponentPropsWithoutRef<"but
|
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
}
|
|
13
13
|
/** The button that closes an open popover. */
|
|
14
|
-
export declare const PopoverClose: import(
|
|
14
|
+
export declare const PopoverClose: import("react").ForwardRefExoticComponent<PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Popover as PopoverPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from
|
|
1
|
+
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef } from "react";
|
|
3
3
|
/** Properties of the popover content component. */
|
|
4
4
|
export interface PopoverContentProps extends ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> {
|
|
5
5
|
/**
|
|
@@ -14,4 +14,4 @@ export interface PopoverContentProps extends ComponentPropsWithoutRef<typeof Pop
|
|
|
14
14
|
arrowProps?: ComponentPropsWithRef<typeof PopoverPrimitive.Arrow>;
|
|
15
15
|
}
|
|
16
16
|
/** The component that pops out when the popover is open. */
|
|
17
|
-
export declare const PopoverContent: import(
|
|
17
|
+
export declare const PopoverContent: import("react").ForwardRefExoticComponent<PopoverContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Popover as PopoverPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
3
|
/** Properties of the popover trigger component. */
|
|
4
4
|
export interface PopoverTriggerProps extends Omit<ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>, "asChild"> {
|
|
5
5
|
}
|
|
@@ -7,4 +7,4 @@ export interface PopoverTriggerProps extends Omit<ComponentPropsWithoutRef<typeo
|
|
|
7
7
|
* The button that toggles the popover. By default, the `PopoverContent` will
|
|
8
8
|
* position itself against the trigger.
|
|
9
9
|
*/
|
|
10
|
-
export declare const PopoverTrigger: import(
|
|
10
|
+
export declare const PopoverTrigger: import("react").ForwardRefExoticComponent<PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from "./Popover.tsx";
|
|
2
|
+
export * from "./PopoverAnchor.tsx";
|
|
3
|
+
export * from "./PopoverClose.tsx";
|
|
4
|
+
export * from "./PopoverContent.tsx";
|
|
5
|
+
export * from "./PopoverTrigger.tsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Portal as PortalPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef } from
|
|
1
|
+
import { Portal as PortalPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
3
3
|
/** Properties of the portal component. */
|
|
4
4
|
export interface PortalProps extends ComponentPropsWithoutRef<typeof PortalPrimitive.Root> {
|
|
5
5
|
}
|
|
@@ -10,4 +10,4 @@ export interface PortalProps extends ComponentPropsWithoutRef<typeof PortalPrimi
|
|
|
10
10
|
* The rendered subtree is automatically wrapped in a `Root` component, so that
|
|
11
11
|
* styles are rendered correctly.
|
|
12
12
|
*/
|
|
13
|
-
export declare const Portal: import(
|
|
13
|
+
export declare const Portal: import("react").ForwardRefExoticComponent<PortalProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -4,6 +4,6 @@ export interface PortalContextValue {
|
|
|
4
4
|
container?: Element | DocumentFragment | null;
|
|
5
5
|
}
|
|
6
6
|
/** Portal context. */
|
|
7
|
-
export declare const PortalContext: import(
|
|
7
|
+
export declare const PortalContext: import("react").Context<PortalContextValue | null>;
|
|
8
8
|
/** Hook providing access to the portal context. */
|
|
9
9
|
export declare function usePortalContext(): PortalContextValue | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./Portal.tsx";
|
|
2
|
+
export * from "./PortalContext.ts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from
|
|
2
|
-
import { UseReactToPrintOptions } from
|
|
1
|
+
import { type CSSProperties, type ReactNode } from "react";
|
|
2
|
+
import { type UseReactToPrintOptions } from "react-to-print";
|
|
3
3
|
/** Options that can be passed when calling `print`. */
|
|
4
4
|
export interface PrintOptions {
|
|
5
5
|
/**
|
|
@@ -146,4 +146,4 @@ export interface PrinterProps extends PrintOptions {
|
|
|
146
146
|
* }
|
|
147
147
|
* ```
|
|
148
148
|
*/
|
|
149
|
-
export declare function Printer({ preview, printInForeground, documentTitle, pageSize, pageMargin, printColorAdjust, fonts, copyShadowRoots, nonce, printFn, onBeforePrint, onAfterPrint, iframeProps, children, }: PrinterProps): import("react
|
|
149
|
+
export declare function Printer({ preview, printInForeground, documentTitle, pageSize, pageMargin, printColorAdjust, fonts, copyShadowRoots, nonce, printFn, onBeforePrint, onAfterPrint, iframeProps, children, }: PrinterProps): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from
|
|
2
|
-
import { Portal } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef } from "react";
|
|
2
|
+
import { Portal } from "../Portal";
|
|
3
3
|
/** Properties of the printer content. */
|
|
4
4
|
export interface PrinterContentProps extends ComponentPropsWithoutRef<"div"> {
|
|
5
5
|
/**
|
|
@@ -19,4 +19,4 @@ export interface PrinterContentProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
19
19
|
* All “element” properties provided to this component will be forwarded to a
|
|
20
20
|
* wrapper element which **only** exists during printing.
|
|
21
21
|
*/
|
|
22
|
-
export declare const PrinterContent: import(
|
|
22
|
+
export declare const PrinterContent: import("react").ForwardRefExoticComponent<PrinterContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -5,7 +5,7 @@ export interface PrinterContextValue {
|
|
|
5
5
|
finishPrintingTask?: () => void;
|
|
6
6
|
}
|
|
7
7
|
/** Printer content context. */
|
|
8
|
-
export declare const PrinterContentContext: import(
|
|
8
|
+
export declare const PrinterContentContext: import("react").Context<PrinterContextValue>;
|
|
9
9
|
/**
|
|
10
10
|
* Hook providing access to the printer content context.
|
|
11
11
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RefObject } from
|
|
2
|
-
import { PrinterProps, PrintOptions } from
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
import type { PrinterProps, PrintOptions } from "./Printer.tsx";
|
|
3
3
|
/** Value of the printer context. */
|
|
4
4
|
interface PrinterContextValue {
|
|
5
5
|
preview?: boolean;
|
|
@@ -13,7 +13,7 @@ interface PrinterContextValue {
|
|
|
13
13
|
finishPrintingTask: () => void;
|
|
14
14
|
}
|
|
15
15
|
/** Printer context. */
|
|
16
|
-
export declare const PrinterContext: import(
|
|
16
|
+
export declare const PrinterContext: import("react").Context<PrinterContextValue | null>;
|
|
17
17
|
/** Hook providing access to the printer context. */
|
|
18
18
|
export declare function usePrinterContext(): PrinterContextValue;
|
|
19
19
|
/** Returns the `documentTitle` passed to the `Printer` component. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactElement } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactElement } from "react";
|
|
2
2
|
/** Properties of the printer trigger. */
|
|
3
3
|
export interface PrinterTriggerProps extends ComponentPropsWithoutRef<"button"> {
|
|
4
4
|
/**
|
|
@@ -17,4 +17,4 @@ export interface PrinterTriggerProps extends ComponentPropsWithoutRef<"button">
|
|
|
17
17
|
* This trigger will **not** show in the print, even when inside the print
|
|
18
18
|
* content, unless `showWhenPrinting` is set to `true`.
|
|
19
19
|
*/
|
|
20
|
-
export declare const PrinterTrigger: import(
|
|
20
|
+
export declare const PrinterTrigger: import("react").ForwardRefExoticComponent<PrinterTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export { usePrinting, useStartPrintingTask } from
|
|
4
|
-
export { usePrint, usePrinterDocumentTitle, usePrintInProgress, } from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
1
|
+
export * from "./Printer.tsx";
|
|
2
|
+
export * from "./PrinterContent.tsx";
|
|
3
|
+
export { usePrinting, useStartPrintingTask } from "./PrinterContentContext.tsx";
|
|
4
|
+
export { usePrint, usePrinterDocumentTitle, usePrintInProgress, } from "./PrinterContext.ts";
|
|
5
|
+
export * from "./PrinterTrigger.tsx";
|
|
6
|
+
export * from "./usePrintClassNames.ts";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RadioGroup as RadioGroupPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode } from
|
|
3
|
-
import { ControlStatus } from
|
|
4
|
-
import { ControlCode } from
|
|
5
|
-
import { Label } from
|
|
6
|
-
import { Spinner } from
|
|
1
|
+
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactNode } from "react";
|
|
3
|
+
import { type ControlStatus } from "../Control";
|
|
4
|
+
import { ControlCode } from "../ControlCode";
|
|
5
|
+
import { Label } from "../Label";
|
|
6
|
+
import { Spinner } from "../Spinner";
|
|
7
7
|
/** Properties of a radio component. */
|
|
8
8
|
export interface RadioProps extends Omit<ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>, "value"> {
|
|
9
9
|
/** Radio value. */
|
|
@@ -57,4 +57,4 @@ export interface RadioProps extends Omit<ComponentPropsWithoutRef<typeof RadioGr
|
|
|
57
57
|
spinnerProps?: Omit<ComponentPropsWithRef<typeof Spinner>, "size">;
|
|
58
58
|
}
|
|
59
59
|
/** Radio component. Must be used within a radio group. */
|
|
60
|
-
export declare const Radio: import(
|
|
60
|
+
export declare const Radio: import("react").ForwardRefExoticComponent<RadioProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { RadioGroup as RadioGroupPrimitive } from
|
|
2
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, FocusEvent, ReactNode } from
|
|
3
|
-
import { CloseButton } from
|
|
4
|
-
import { ControlShowClearButton, ControlStatus, ControlVariant } from
|
|
5
|
-
import { ControlCode } from
|
|
6
|
-
import { FormValidationMode } from
|
|
7
|
-
import { FormControlValidateFn } from
|
|
8
|
-
import { Spinner } from
|
|
1
|
+
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
2
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type FocusEvent, type ReactNode } from "react";
|
|
3
|
+
import { CloseButton } from "../CloseButton";
|
|
4
|
+
import { type ControlShowClearButton, type ControlStatus, type ControlVariant } from "../Control";
|
|
5
|
+
import { ControlCode } from "../ControlCode";
|
|
6
|
+
import type { FormValidationMode } from "../Form";
|
|
7
|
+
import { type FormControlValidateFn } from "../Form/useRegisterFormControl.ts";
|
|
8
|
+
import { Spinner } from "../Spinner";
|
|
9
9
|
/** Properties of the radio group component. */
|
|
10
10
|
export interface RadioGroupProps extends Omit<ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>, "asChild" | "onValueChange"> {
|
|
11
11
|
/** Whether to display the radio group inline. */
|
|
@@ -122,4 +122,4 @@ export interface RadioGroupProps extends Omit<ComponentPropsWithoutRef<typeof Ra
|
|
|
122
122
|
* }
|
|
123
123
|
* ```
|
|
124
124
|
*/
|
|
125
|
-
export declare const RadioGroup: import(
|
|
125
|
+
export declare const RadioGroup: import("react").ForwardRefExoticComponent<RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./Radio.tsx";
|
|
2
|
+
export * from "./RadioGroup.tsx";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef } from
|
|
2
|
-
import { DocumentTitleProvider } from
|
|
3
|
-
import { ErrorReportingProvider } from
|
|
4
|
-
import { LocalizationObject } from
|
|
5
|
-
import { ErrorBoundary } from
|
|
6
|
-
import { ToastSwipeDirection, ToastViewportPosition } from
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef } from "react";
|
|
2
|
+
import { DocumentTitleProvider } from "../../providers/DocumentTitleProvider";
|
|
3
|
+
import { ErrorReportingProvider } from "../../providers/ErrorReportingProvider";
|
|
4
|
+
import type { LocalizationObject } from "../../providers/LocalizationProvider";
|
|
5
|
+
import type { ErrorBoundary } from "../ErrorBoundary";
|
|
6
|
+
import { type ToastSwipeDirection, type ToastViewportPosition } from "../Toast";
|
|
7
7
|
/** Properties of the ostack/UI root component. */
|
|
8
8
|
export interface RootProps extends ComponentPropsWithoutRef<"div">, Pick<ComponentPropsWithoutRef<typeof ErrorReportingProvider>, "reportError" | "errorReportingUrl" | "errorReportingMethod" | "encodeErrorReport" | "encodedErrorReportMimeType" | "errorReportingOptions">, Pick<ComponentPropsWithoutRef<typeof DocumentTitleProvider>, "baseDocumentTitle"> {
|
|
9
9
|
/**
|
|
@@ -127,4 +127,4 @@ export interface RootProps extends ComponentPropsWithoutRef<"div">, Pick<Compone
|
|
|
127
127
|
* It further wraps the whole application in an error boundary with support for
|
|
128
128
|
* error reporting.
|
|
129
129
|
*/
|
|
130
|
-
export declare const Root: import(
|
|
130
|
+
export declare const Root: import("react").ForwardRefExoticComponent<RootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
2
|
-
import { RootProps } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import type { RootProps } from "./Root.tsx";
|
|
3
3
|
/** Properties of the root element component. */
|
|
4
4
|
export interface RootElementProps extends ComponentPropsWithoutRef<"div">, Pick<RootProps, "asChild" | "errorBoundaryProps"> {
|
|
5
5
|
/** Whether to wrap children in an error boundary. */
|
|
6
6
|
includeErrorBoundary: boolean;
|
|
7
7
|
}
|
|
8
8
|
/** Root element. */
|
|
9
|
-
export declare const RootElement: import(
|
|
9
|
+
export declare const RootElement: import("react").ForwardRefExoticComponent<RootElementProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export { useIsInRoot } from
|
|
1
|
+
export * from "./Root.tsx";
|
|
2
|
+
export { useIsInRoot } from "./RootContext.ts";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
2
|
-
import { CommandMenuItem } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import { CommandMenuItem } from "../CommandMenu";
|
|
3
3
|
/** Properties of the option component. */
|
|
4
4
|
export interface OptionProps extends Omit<ComponentPropsWithoutRef<typeof CommandMenuItem>, "value" | "asLink" | "onSelect" | "selected" | "icon" | "target" | "href"> {
|
|
5
5
|
/**
|
|
@@ -10,4 +10,4 @@ export interface OptionProps extends Omit<ComponentPropsWithoutRef<typeof Comman
|
|
|
10
10
|
value?: string | number;
|
|
11
11
|
}
|
|
12
12
|
/** An option which can be selected in a `Select`. */
|
|
13
|
-
export declare const Option: import(
|
|
13
|
+
export declare const Option: import("react").NamedExoticComponent<OptionProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from
|
|
2
|
-
import { CommandMenuGroup } from
|
|
1
|
+
import { type ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import { CommandMenuGroup } from "../CommandMenu";
|
|
3
3
|
/** Properties of the options group component. */
|
|
4
4
|
export interface OptionsGroupProps extends ComponentPropsWithoutRef<typeof CommandMenuGroup> {
|
|
5
5
|
}
|
|
6
6
|
/** Component used to group options within a `Select`. */
|
|
7
|
-
export declare const OptionsGroup: import(
|
|
7
|
+
export declare const OptionsGroup: import("react").ForwardRefExoticComponent<OptionsGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|