@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,7 +1,7 @@
|
|
|
1
|
-
import { ErrorInfo } from
|
|
1
|
+
import { type ErrorInfo } from "react";
|
|
2
2
|
/** Value of the error reporting context. */
|
|
3
3
|
export interface ErrorReportingContextValue {
|
|
4
4
|
onError: (error: unknown, info?: ErrorInfo) => void;
|
|
5
5
|
}
|
|
6
6
|
/** Error reporting context. */
|
|
7
|
-
export declare const ErrorReportingContext: import(
|
|
7
|
+
export declare const ErrorReportingContext: import("react").Context<ErrorReportingContextValue | null>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { ErrorReport } from
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type ErrorReport } from "./ErrorReport.ts";
|
|
3
3
|
/** Properties of the error reporting provider. */
|
|
4
4
|
export interface ErrorReportingProviderProps {
|
|
5
5
|
/**
|
|
@@ -67,4 +67,4 @@ export interface ErrorReportingProviderProps {
|
|
|
67
67
|
* Note that this provider does **not** automatically set an error boundary, so
|
|
68
68
|
* at least one should be manually set.
|
|
69
69
|
*/
|
|
70
|
-
export declare function ErrorReportingProvider({ enabled, reportError, errorReportingUrl, errorReportingMethod, encodeErrorReport, encodedErrorReportMimeType, errorReportingOptions, children, }: ErrorReportingProviderProps): import("react
|
|
70
|
+
export declare function ErrorReportingProvider({ enabled, reportError, errorReportingUrl, errorReportingMethod, encodeErrorReport, encodedErrorReportMimeType, errorReportingOptions, children, }: ErrorReportingProviderProps): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from "./ErrorReport.ts";
|
|
2
|
+
export * from "./ErrorReportingContext.ts";
|
|
3
|
+
export * from "./ErrorReportingProvider.tsx";
|
|
4
|
+
export * from "./useErrorReporter.ts";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Hook used to report an error. */
|
|
2
|
-
export declare function useErrorReporter(): (error: unknown, info?: import(
|
|
2
|
+
export declare function useErrorReporter(): (error: unknown, info?: import("react").ErrorInfo) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { LocalizationObject } from
|
|
1
|
+
import type { LocalizationObject } from "./LocalizationObject.ts";
|
|
2
2
|
/** Value of the localisation context. */
|
|
3
3
|
export interface LocalizationContextValue {
|
|
4
4
|
locale: LocalizationObject;
|
|
5
5
|
setLocale: (locale: LocalizationObject) => void;
|
|
6
6
|
}
|
|
7
7
|
/** Localisation context. */
|
|
8
|
-
export declare const LocalizationContext: import(
|
|
8
|
+
export declare const LocalizationContext: import("react").Context<LocalizationContextValue | null>;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { Locale as DayPickerLocale } from
|
|
2
|
-
import { CalendarProps } from
|
|
3
|
-
import { CloseButtonProps } from
|
|
4
|
-
import { CollapsibleTriggerChildlessProps } from
|
|
5
|
-
import { CommandMenuDialogProps, CommandMenuProps } from
|
|
6
|
-
import { ControlCodeProps } from
|
|
7
|
-
import { DataTableContentProps, DataTableFilterProps, DataTablePaginationProps, DataTableProps, DataTableRowsPerPageProps } from
|
|
8
|
-
import { DateInputProps } from
|
|
9
|
-
import { DateRangeInputProps } from
|
|
10
|
-
import { ErrorBoundaryProps } from
|
|
11
|
-
import { FeedbackProps } from
|
|
12
|
-
import { FeedbackPopoverProps } from
|
|
13
|
-
import { FieldGroupHeaderProps } from
|
|
14
|
-
import { FormProps } from
|
|
15
|
-
import { InputProps } from
|
|
16
|
-
import { KeybindsProps } from
|
|
17
|
-
import { LabelProps } from
|
|
18
|
-
import { NumericInputProps } from
|
|
19
|
-
import { RadioGroupProps } from
|
|
20
|
-
import { SelectProps } from
|
|
21
|
-
import { StepperFinishTriggerChildlessProps, StepperNextTriggerChildlessProps, StepperPreviousTriggerChildlessProps, StepProps } from
|
|
22
|
-
import { TableColumnProps, TableHeadProps } from
|
|
23
|
-
import { TabListProps } from
|
|
24
|
-
import { ToastProviderProps, ToastViewportProps } from
|
|
25
|
-
import { ConfirmDialogOptions } from
|
|
1
|
+
import type { Locale as DayPickerLocale } from "react-day-picker";
|
|
2
|
+
import type { CalendarProps } from "../../components/Calendar";
|
|
3
|
+
import type { CloseButtonProps } from "../../components/CloseButton";
|
|
4
|
+
import type { CollapsibleTriggerChildlessProps } from "../../components/Collapsible/CollapsibleTrigger.tsx";
|
|
5
|
+
import type { CommandMenuDialogProps, CommandMenuProps } from "../../components/CommandMenu";
|
|
6
|
+
import type { ControlCodeProps } from "../../components/ControlCode";
|
|
7
|
+
import type { DataTableContentProps, DataTableFilterProps, DataTablePaginationProps, DataTableProps, DataTableRowsPerPageProps } from "../../components/DataTable";
|
|
8
|
+
import type { DateInputProps } from "../../components/DateInput";
|
|
9
|
+
import type { DateRangeInputProps } from "../../components/DateRangeInput";
|
|
10
|
+
import type { ErrorBoundaryProps } from "../../components/ErrorBoundary";
|
|
11
|
+
import type { FeedbackProps } from "../../components/Feedback";
|
|
12
|
+
import type { FeedbackPopoverProps } from "../../components/FeedbackPopover";
|
|
13
|
+
import type { FieldGroupHeaderProps } from "../../components/FieldGroup";
|
|
14
|
+
import type { FormProps } from "../../components/Form";
|
|
15
|
+
import type { InputProps } from "../../components/Input";
|
|
16
|
+
import type { KeybindsProps } from "../../components/Keybinds";
|
|
17
|
+
import type { LabelProps } from "../../components/Label";
|
|
18
|
+
import type { NumericInputProps } from "../../components/NumericInput";
|
|
19
|
+
import type { RadioGroupProps } from "../../components/RadioGroup";
|
|
20
|
+
import type { SelectProps } from "../../components/Select";
|
|
21
|
+
import type { StepperFinishTriggerChildlessProps, StepperNextTriggerChildlessProps, StepperPreviousTriggerChildlessProps, StepProps } from "../../components/Stepper";
|
|
22
|
+
import type { TableColumnProps, TableHeadProps } from "../../components/Table";
|
|
23
|
+
import type { TabListProps } from "../../components/Tabs";
|
|
24
|
+
import type { ToastProviderProps, ToastViewportProps } from "../../components/Toast";
|
|
25
|
+
import type { ConfirmDialogOptions } from "../AlertDialogProvider";
|
|
26
26
|
/** Localization object representation. */
|
|
27
27
|
export interface LocalizationObject {
|
|
28
28
|
languageTag: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { LocalizationObject } from
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { LocalizationObject } from "./LocalizationObject.ts";
|
|
3
3
|
/** Properties of the localisation provider. */
|
|
4
4
|
export interface LocalizationProviderProps {
|
|
5
5
|
/** Uncontrolled locale to use. */
|
|
@@ -15,4 +15,4 @@ export interface LocalizationProviderProps {
|
|
|
15
15
|
children: ReactNode;
|
|
16
16
|
}
|
|
17
17
|
/** Localisation provider. */
|
|
18
|
-
export declare function LocalizationProvider({ defaultLocale, locale: controlledLocale, onLocaleChange, children, }: LocalizationProviderProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import(
|
|
18
|
+
export declare function LocalizationProvider({ defaultLocale, locale: controlledLocale, onLocaleChange, children, }: LocalizationProviderProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from "./LocalizationContext.ts";
|
|
2
|
+
export * from "./LocalizationObject.ts";
|
|
3
|
+
export * from "./LocalizationProvider.tsx";
|
|
4
|
+
export * from "./useLocale.ts";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Prefix context. */
|
|
2
|
-
export declare const PrefixContext: import(
|
|
2
|
+
export declare const PrefixContext: import("react").Context<string | null>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
2
|
/** Properties of the prefix provider. */
|
|
3
3
|
export interface PrefixProviderProps {
|
|
4
4
|
/** Prefix to use. */
|
|
@@ -6,4 +6,4 @@ export interface PrefixProviderProps {
|
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
}
|
|
8
8
|
/** Prefix provider. */
|
|
9
|
-
export declare function PrefixProvider({ prefix, children }: PrefixProviderProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import(
|
|
9
|
+
export declare function PrefixProvider({ prefix, children }: PrefixProviderProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { setDefaultPrefix } from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export { setDefaultPrefix } from "./defaultPrefix.ts";
|
|
2
|
+
export * from "./PrefixContext.ts";
|
|
3
|
+
export * from "./PrefixProvider.tsx";
|
|
4
|
+
export * from "./usePrefix.ts";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, ReactNode } from
|
|
2
|
-
import { Toast, ToastDescription, ToastTitle } from
|
|
3
|
-
import { DistributedOmit } from
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode } from "react";
|
|
2
|
+
import type { Toast, ToastDescription, ToastTitle } from "../../components/Toast";
|
|
3
|
+
import type { DistributedOmit } from "../../utils/typeUtils.ts";
|
|
4
4
|
/** Toast options. */
|
|
5
5
|
export type ToastOptions = DistributedOmit<ComponentPropsWithRef<typeof Toast>, "defaultOpen" | "open" | "title"> & {
|
|
6
6
|
/** Toast's title. */
|
|
@@ -34,4 +34,4 @@ export interface ToastManagerContextValue {
|
|
|
34
34
|
removeToast: (toastId: ToastId | null | undefined) => void;
|
|
35
35
|
}
|
|
36
36
|
/** Toast manager context. */
|
|
37
|
-
export declare const ToastManagerContext: import(
|
|
37
|
+
export declare const ToastManagerContext: import("react").Context<ToastManagerContextValue | undefined>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
2
|
/** Properties of the toast manager provider. */
|
|
3
3
|
export interface ToastManagerProviderProps {
|
|
4
4
|
children: ReactNode;
|
|
@@ -8,4 +8,4 @@ export interface ToastManagerProviderProps {
|
|
|
8
8
|
*
|
|
9
9
|
* Note that this provider should be within a `ToastProvider`.
|
|
10
10
|
*/
|
|
11
|
-
export declare function ToastManagerProvider({ children }: ToastManagerProviderProps): import("react
|
|
11
|
+
export declare function ToastManagerProvider({ children }: ToastManagerProviderProps): import("react").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./ToastManagerContext.ts";
|
|
2
|
+
export * from "./ToastManagerProvider.tsx";
|
|
3
|
+
export * from "./useToastManager.ts";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { defaultKeybindingsHandlerIgnore } from "tinykeys";
|
|
1
2
|
/** Keyboard shortcut keybinds. */
|
|
2
3
|
export type KeyboardShortcutKeybinds = string[] | string | null | undefined;
|
|
3
4
|
/** Type of the shortcut action. */
|
|
@@ -26,13 +27,15 @@ export interface RegisterKeyboardShortcutOptions {
|
|
|
26
27
|
/**
|
|
27
28
|
* Whether the triggered shortcut should be ignored.
|
|
28
29
|
*
|
|
29
|
-
* By default,
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* `<select>`).
|
|
30
|
+
* By default, shortcuts are ignored according to
|
|
31
|
+
* {@link defaultIgnoreKeyboardShortcut}, which allows mostly all shortcuts
|
|
32
|
+
* through.
|
|
33
33
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
34
|
+
* To ignore shortcuts originating from editable elements
|
|
35
|
+
* (`[contenteditable]`, `input`, `textarea`, and `select`), you can use
|
|
36
|
+
* {@link ignoreKeyboardShortcutInEditableElements} instead.
|
|
37
|
+
*
|
|
38
|
+
* @param event Keyboard event which triggered the shortcut.
|
|
36
39
|
* @returns Whether the keyboard shortcut should be ignored.
|
|
37
40
|
*/
|
|
38
41
|
ignore?: (event: KeyboardEvent) => boolean;
|
|
@@ -107,12 +110,14 @@ export interface UseKeyboardShortcutOptions extends Omit<RegisterKeyboardShortcu
|
|
|
107
110
|
* function.
|
|
108
111
|
*/
|
|
109
112
|
export declare function useKeyboardShortcut(keybinds: KeyboardShortcutKeybinds, action: KeyboardShortcutAction, { disabled, target, eventType, sequenceTimeout, ignore, capture, preventDefault, }?: UseKeyboardShortcutOptions): void;
|
|
113
|
+
/** Default function used to choose whether to ignore a keyboard shortcut. */
|
|
114
|
+
export declare function defaultIgnoreKeyboardShortcut(evt: KeyboardEvent): boolean;
|
|
110
115
|
/**
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
116
|
+
* Function used to ignore keyboard events from elements matching
|
|
117
|
+
* `[contenteditable]`, `input`, `textarea`, and `select`, unless they are the
|
|
118
|
+
* `event.currentTarget`.
|
|
114
119
|
*/
|
|
115
|
-
export declare
|
|
120
|
+
export declare const ignoreKeyboardShortcutInEditableElements: typeof defaultKeybindingsHandlerIgnore;
|
|
116
121
|
/**
|
|
117
122
|
* Normalises `tinykeys` keybinds into an array of keybinds.
|
|
118
123
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType, ReactElement } from
|
|
1
|
+
import type { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType, ReactElement } from "react";
|
|
2
2
|
/** Properties of a polymorphic component. */
|
|
3
3
|
export type PolymorphicProps<TAsAllowed extends ElementType, TAs extends TAsAllowed, TAsDefault extends TAsAllowed, TOwnProps> = TOwnProps & AsProp<TAsAllowed, TAs, TAsDefault> & Omit<ComponentPropsWithoutRef<TAs>, keyof TOwnProps | "as">;
|
|
4
4
|
/** Reference type for a polymorphic component. */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from
|
|
1
|
+
import { type Dispatch, type SetStateAction } from "react";
|
|
2
2
|
/** Helper hook to handle controlled or uncontrolled values. */
|
|
3
3
|
export declare function useControllableState<T>(initialValue: T | (() => T), controlledValue: T | undefined): [T, Dispatch<SetStateAction<T>>];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Hook providing a reference which is continuously updated with the latest
|
|
4
|
+
* provided `value`.
|
|
5
|
+
*
|
|
6
|
+
* @param value Value to store in the reference.
|
|
7
|
+
* @returns Reference to the latest provided value.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useLatestRef<T>(value: T): RefObject<T>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook providing access to the value of a provided argument in the previous
|
|
3
|
+
* render.
|
|
4
|
+
*
|
|
5
|
+
* @param value Value to store and return on the next render.
|
|
6
|
+
* @returns The value of the provided argument in the previous render or
|
|
7
|
+
* `undefined` during the first render.
|
|
8
|
+
*/
|
|
9
|
+
export declare function usePrevious<T>(value: T): T | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Breakpoint } from
|
|
2
|
-
import { UseCssVarsOptions } from
|
|
1
|
+
import type { Breakpoint } from "./breakpoints.ts";
|
|
2
|
+
import { type UseCssVarsOptions } from "./useCssVars.ts";
|
|
3
3
|
/** Value allowing for different values depending on the current breakpoint. */
|
|
4
4
|
export type Responsive<T = unknown> = T | Partial<Record<Breakpoint, T>>;
|
|
5
5
|
/** Options available to the {@link useResponsiveValues} hook. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SetSearchParamsOptions } from
|
|
1
|
+
import type { SetSearchParamsOptions } from "./useSearchParams.ts";
|
|
2
2
|
/** Options used to navigate to the new search parameter. */
|
|
3
3
|
export interface SetSearchParamOptions extends SetSearchParamsOptions {
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Empty Zustand store. */
|
|
2
|
-
export declare const EMPTY_STORE: import(
|
|
2
|
+
export declare const EMPTY_STORE: import("zustand").StoreApi<any>;
|
|
3
3
|
/** Function used within a Zustand store to hold computed state. */
|
|
4
4
|
export declare function computed<const TDeps extends readonly unknown[] = unknown[], TResult = unknown>(depsFn: () => TDeps, computeFn: (...deps: TDeps) => TResult): () => TResult;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ostack.tech/ui",
|
|
3
3
|
"description": "ostack/UI component library.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.15.1",
|
|
5
5
|
"homepage": "https://ui.ostack.tech/",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Opensoft",
|
|
@@ -38,19 +38,19 @@
|
|
|
38
38
|
],
|
|
39
39
|
"scripts": {
|
|
40
40
|
"clean": "rimraf dist/ scss/",
|
|
41
|
-
"build": "vite build && npm run copy:scss",
|
|
41
|
+
"build": "vite build && npm run copy:scss && tsc -p tsconfig.build.json",
|
|
42
42
|
"copy:scss": "cpy 'src/**/*.scss' '!src/**/*.stories.scss' scss/"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@fortawesome/react-fontawesome": "^3.
|
|
46
|
-
"@tanstack/react-virtual": "^3.
|
|
45
|
+
"@fortawesome/react-fontawesome": "^3.3.1",
|
|
46
|
+
"@tanstack/react-virtual": "^3.14.2",
|
|
47
47
|
"from-exponential": "^1.1.1",
|
|
48
48
|
"radix-ui": "^1.4.3",
|
|
49
|
-
"react-day-picker": "^
|
|
50
|
-
"react-error-boundary": "^6.1.
|
|
51
|
-
"react-number-format": "^5.4.
|
|
49
|
+
"react-day-picker": "^10.0.1",
|
|
50
|
+
"react-error-boundary": "^6.1.2",
|
|
51
|
+
"react-number-format": "^5.4.5",
|
|
52
52
|
"react-to-print": "^3.3.0",
|
|
53
|
-
"tinykeys": "^
|
|
53
|
+
"tinykeys": "^4.0.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@fortawesome/fontawesome-svg-core": "^6.2.0 || ^7.0.0",
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { I as IS_APPLE } from "./platformUtils-C3IHCr90.js";
|
|
3
|
-
const en = {
|
|
4
|
-
AlertDialog: {
|
|
5
|
-
okText: "OK"
|
|
6
|
-
},
|
|
7
|
-
Calendar: {
|
|
8
|
-
monthSelectLabel: "Month",
|
|
9
|
-
yearSelectLabel: "Year",
|
|
10
|
-
previousMonthLabel: "Previous month",
|
|
11
|
-
nextMonthLabel: "Next month"
|
|
12
|
-
},
|
|
13
|
-
CloseButton: {
|
|
14
|
-
label: "Close"
|
|
15
|
-
},
|
|
16
|
-
CollapsibleTrigger: {
|
|
17
|
-
expandLabel: "Show",
|
|
18
|
-
collapseLabel: "Hide"
|
|
19
|
-
},
|
|
20
|
-
CommandMenu: {
|
|
21
|
-
searchPlaceholder: "Search…",
|
|
22
|
-
listLabel: "Suggestions",
|
|
23
|
-
loadingLabel: "Loading…",
|
|
24
|
-
emptyMessage: "No results found."
|
|
25
|
-
},
|
|
26
|
-
CommandMenuDialog: {
|
|
27
|
-
title: "Command palette",
|
|
28
|
-
description: "Search for a command…"
|
|
29
|
-
},
|
|
30
|
-
ConfirmDialog: {
|
|
31
|
-
cancelText: "Cancel"
|
|
32
|
-
},
|
|
33
|
-
ControlCode: {
|
|
34
|
-
visuallyHiddenPrefix: "Field"
|
|
35
|
-
},
|
|
36
|
-
DataTable: {
|
|
37
|
-
selectAllRowsLabel: "Select all",
|
|
38
|
-
selectRowLabel: "Select"
|
|
39
|
-
},
|
|
40
|
-
DataTableContent: {
|
|
41
|
-
emptyMessage: "Nothing to show."
|
|
42
|
-
},
|
|
43
|
-
DataTableFilter: {
|
|
44
|
-
"aria-label": "Search table",
|
|
45
|
-
placeholder: "Search…"
|
|
46
|
-
},
|
|
47
|
-
DataTablePagination: {
|
|
48
|
-
"aria-label": "Table pagination",
|
|
49
|
-
rowsRangeSelectLabel: (total) => `Visible rows out of ${total}`,
|
|
50
|
-
rowsRange: (range, total) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
51
|
-
"Rows ",
|
|
52
|
-
range,
|
|
53
|
-
" of ",
|
|
54
|
-
total
|
|
55
|
-
] }),
|
|
56
|
-
previousPageButtonLabel: "Previous page",
|
|
57
|
-
nextPageButtonLabel: "Next page"
|
|
58
|
-
},
|
|
59
|
-
DataTableRowsPerPage: {
|
|
60
|
-
label: "Rows per page:"
|
|
61
|
-
},
|
|
62
|
-
DateInput: {
|
|
63
|
-
selectedDateDescription: (date) => `Selected date, ${date}`,
|
|
64
|
-
calendarButtonLabel: "Open calendar"
|
|
65
|
-
},
|
|
66
|
-
DateRangeInput: {
|
|
67
|
-
startInputLabel: "Start date",
|
|
68
|
-
endInputLabel: "End date",
|
|
69
|
-
selectedDateRangeDescription: ({ start, end }) => `Selected date range, ${start || "missing start date"} to ${end || "missing end date"}`
|
|
70
|
-
},
|
|
71
|
-
ErrorBoundary: {
|
|
72
|
-
fallbackMessage: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
73
|
-
"Something went wrong.",
|
|
74
|
-
/* @__PURE__ */ jsx("br", {}),
|
|
75
|
-
"Press the button on the right to try again. If the problem persists, please try again later."
|
|
76
|
-
] }),
|
|
77
|
-
resetButtonLabel: "Retry"
|
|
78
|
-
},
|
|
79
|
-
Feedback: {
|
|
80
|
-
visuallyHiddenPrefix: (type) => type === "error" ? "Error," : type === "warning" ? "Warning," : null
|
|
81
|
-
},
|
|
82
|
-
FeedbackPopover: {
|
|
83
|
-
label: "Show feedback"
|
|
84
|
-
},
|
|
85
|
-
FieldGroupHeader: {
|
|
86
|
-
visuallyHiddenCodePrefix: "Section"
|
|
87
|
-
},
|
|
88
|
-
Form: {
|
|
89
|
-
submitErrorMessage: "An error occurred during submission. Please try again later.",
|
|
90
|
-
nativeErrorMessages: {
|
|
91
|
-
valueMissing: "Required.",
|
|
92
|
-
badInput: "Unrecognized format.",
|
|
93
|
-
typeMismatch: (el) => {
|
|
94
|
-
const type = el.type;
|
|
95
|
-
return type === "email" ? "Invalid email." : "Invalid URL.";
|
|
96
|
-
},
|
|
97
|
-
patternMismatch: "Invalid format.",
|
|
98
|
-
tooShort: (el) => {
|
|
99
|
-
const minLength = el.minLength;
|
|
100
|
-
return `Requires at least ${minLength} ${minLength === 1 ? "character" : "characters"}.`;
|
|
101
|
-
},
|
|
102
|
-
tooLong: (el) => {
|
|
103
|
-
const maxLength = el.maxLength;
|
|
104
|
-
return `Limited to at most ${maxLength} ${maxLength === 1 ? "character" : "characters"}.`;
|
|
105
|
-
},
|
|
106
|
-
rangeUnderflow: (el) => {
|
|
107
|
-
const min = el.min;
|
|
108
|
-
return `Below minimum of ${min}.`;
|
|
109
|
-
},
|
|
110
|
-
rangeOverflow: (el) => {
|
|
111
|
-
const max = el.max;
|
|
112
|
-
return `Above maximum of ${max}.`;
|
|
113
|
-
},
|
|
114
|
-
stepMismatch: "Invalid value increment."
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
Input: {
|
|
118
|
-
loadingDescription: "Loading…",
|
|
119
|
-
clearButtonLabel: "Clear"
|
|
120
|
-
},
|
|
121
|
-
Keybinds: {
|
|
122
|
-
keybindsSeparatorLabel: "or",
|
|
123
|
-
keyPressesSeparatorLabel: "then",
|
|
124
|
-
keyLabels: {
|
|
125
|
-
Meta: IS_APPLE ? void 0 : "Windows Key"
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
Label: {
|
|
129
|
-
helperButtonLabel: "Show help"
|
|
130
|
-
},
|
|
131
|
-
NumericInput: {
|
|
132
|
-
decimalSeparator: ".",
|
|
133
|
-
groupingStyle: "thousand",
|
|
134
|
-
groupSeparator: ","
|
|
135
|
-
},
|
|
136
|
-
RadioGroup: {
|
|
137
|
-
clearDescription: "Press Backspace or Delete to clear."
|
|
138
|
-
},
|
|
139
|
-
Select: {
|
|
140
|
-
placeholder: "Select…",
|
|
141
|
-
clearDescription: "Press Backspace or Delete to clear.",
|
|
142
|
-
searchLabel: "Search options",
|
|
143
|
-
optionsLabel: "Options",
|
|
144
|
-
valueTagCloseButtonLabel: "Remove"
|
|
145
|
-
},
|
|
146
|
-
Step: {
|
|
147
|
-
stepNumberLabel: (number) => `Step ${number}`,
|
|
148
|
-
completedLabel: "Completed"
|
|
149
|
-
},
|
|
150
|
-
StepperFinishTrigger: {
|
|
151
|
-
label: "Finish"
|
|
152
|
-
},
|
|
153
|
-
StepperNextTrigger: {
|
|
154
|
-
label: "Next"
|
|
155
|
-
},
|
|
156
|
-
StepperPreviousTrigger: {
|
|
157
|
-
label: "Back"
|
|
158
|
-
},
|
|
159
|
-
TableColumn: {
|
|
160
|
-
helperButtonLabel: "Show help"
|
|
161
|
-
},
|
|
162
|
-
TableHead: {
|
|
163
|
-
sortByColumnDescription: (columnName, sortDirection) => sortDirection === null ? `Stop sorting table by column “${columnName}”` : `Sort table by column “${columnName}” in ${sortDirection === "asc" ? "ascending" : "descending"} order`
|
|
164
|
-
},
|
|
165
|
-
TabList: {
|
|
166
|
-
scrollLeftButtonLabel: "Scroll left",
|
|
167
|
-
scrollRightButtonLabel: "Scroll right"
|
|
168
|
-
},
|
|
169
|
-
ToastProvider: {
|
|
170
|
-
label: "Notification"
|
|
171
|
-
},
|
|
172
|
-
ToastViewport: {
|
|
173
|
-
label: "Notifications ({hotkey})"
|
|
174
|
-
}
|
|
175
|
-
};
|
|
176
|
-
export {
|
|
177
|
-
en as e
|
|
178
|
-
};
|
|
179
|
-
//# sourceMappingURL=en-BiTLo8i1.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"en-BiTLo8i1.js","sources":["../../src/locales/en.tsx"],"sourcesContent":["import type { LocalizationObject } from \"../providers/LocalizationProvider\";\nimport { IS_APPLE } from \"../utils/platformUtils.ts\";\n\n/** `en` locale (partial). */\nexport const en: Omit<LocalizationObject, \"languageTag\" | \"dayPickerLocale\"> = {\n AlertDialog: {\n okText: \"OK\",\n },\n Calendar: {\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n previousMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n },\n CloseButton: {\n label: \"Close\",\n },\n CollapsibleTrigger: {\n expandLabel: \"Show\",\n collapseLabel: \"Hide\",\n },\n CommandMenu: {\n searchPlaceholder: \"Search…\",\n listLabel: \"Suggestions\",\n loadingLabel: \"Loading…\",\n emptyMessage: \"No results found.\",\n },\n CommandMenuDialog: {\n title: \"Command palette\",\n description: \"Search for a command…\",\n },\n ConfirmDialog: {\n cancelText: \"Cancel\",\n },\n ControlCode: {\n visuallyHiddenPrefix: \"Field\",\n },\n DataTable: {\n selectAllRowsLabel: \"Select all\",\n selectRowLabel: \"Select\",\n },\n DataTableContent: {\n emptyMessage: \"Nothing to show.\",\n },\n DataTableFilter: {\n \"aria-label\": \"Search table\",\n placeholder: \"Search…\",\n },\n DataTablePagination: {\n \"aria-label\": \"Table pagination\",\n rowsRangeSelectLabel: (total) => `Visible rows out of ${total}`,\n rowsRange: (range, total) => (\n <>\n Rows {range} of {total}\n </>\n ),\n previousPageButtonLabel: \"Previous page\",\n nextPageButtonLabel: \"Next page\",\n },\n DataTableRowsPerPage: {\n label: \"Rows per page:\",\n },\n DateInput: {\n selectedDateDescription: (date) => `Selected date, ${date}`,\n calendarButtonLabel: \"Open calendar\",\n },\n DateRangeInput: {\n startInputLabel: \"Start date\",\n endInputLabel: \"End date\",\n selectedDateRangeDescription: ({ start, end }) =>\n `Selected date range, ${start || \"missing start date\"} to ${\n end || \"missing end date\"\n }`,\n },\n ErrorBoundary: {\n fallbackMessage: (\n <>\n Something went wrong.\n <br />\n Press the button on the right to try again. If the problem persists,\n please try again later.\n </>\n ),\n resetButtonLabel: \"Retry\",\n },\n Feedback: {\n visuallyHiddenPrefix: (type) =>\n type === \"error\" ? \"Error,\" : type === \"warning\" ? \"Warning,\" : null,\n },\n FeedbackPopover: {\n label: \"Show feedback\",\n },\n FieldGroupHeader: {\n visuallyHiddenCodePrefix: \"Section\",\n },\n Form: {\n submitErrorMessage:\n \"An error occurred during submission. Please try again later.\",\n nativeErrorMessages: {\n valueMissing: \"Required.\",\n badInput: \"Unrecognized format.\",\n typeMismatch: (el) => {\n const type = (el as HTMLInputElement).type;\n return type === \"email\" ? \"Invalid email.\" : \"Invalid URL.\";\n },\n patternMismatch: \"Invalid format.\",\n tooShort: (el) => {\n const minLength = (el as HTMLInputElement).minLength;\n return `Requires at least ${minLength} ${\n minLength === 1 ? \"character\" : \"characters\"\n }.`;\n },\n tooLong: (el) => {\n const maxLength = (el as HTMLInputElement).maxLength;\n return `Limited to at most ${maxLength} ${\n maxLength === 1 ? \"character\" : \"characters\"\n }.`;\n },\n rangeUnderflow: (el) => {\n const min = (el as HTMLInputElement).min;\n return `Below minimum of ${min}.`;\n },\n rangeOverflow: (el) => {\n const max = (el as HTMLInputElement).max;\n return `Above maximum of ${max}.`;\n },\n stepMismatch: \"Invalid value increment.\",\n },\n },\n Input: {\n loadingDescription: \"Loading…\",\n clearButtonLabel: \"Clear\",\n },\n Keybinds: {\n keybindsSeparatorLabel: \"or\",\n keyPressesSeparatorLabel: \"then\",\n keyLabels: {\n Meta: IS_APPLE ? undefined : \"Windows Key\",\n },\n },\n Label: {\n helperButtonLabel: \"Show help\",\n },\n NumericInput: {\n decimalSeparator: \".\",\n groupingStyle: \"thousand\",\n groupSeparator: \",\",\n },\n RadioGroup: {\n clearDescription: \"Press Backspace or Delete to clear.\",\n },\n Select: {\n placeholder: \"Select…\",\n clearDescription: \"Press Backspace or Delete to clear.\",\n searchLabel: \"Search options\",\n optionsLabel: \"Options\",\n valueTagCloseButtonLabel: \"Remove\",\n },\n Step: {\n stepNumberLabel: (number) => `Step ${number}`,\n completedLabel: \"Completed\",\n },\n StepperFinishTrigger: {\n label: \"Finish\",\n },\n StepperNextTrigger: {\n label: \"Next\",\n },\n StepperPreviousTrigger: {\n label: \"Back\",\n },\n TableColumn: {\n helperButtonLabel: \"Show help\",\n },\n TableHead: {\n sortByColumnDescription: (columnName, sortDirection) =>\n sortDirection === null\n ? `Stop sorting table by column “${columnName}”`\n : `Sort table by column “${columnName}” in ${\n sortDirection === \"asc\" ? \"ascending\" : \"descending\"\n } order`,\n },\n TabList: {\n scrollLeftButtonLabel: \"Scroll left\",\n scrollRightButtonLabel: \"Scroll right\",\n },\n ToastProvider: {\n label: \"Notification\",\n },\n ToastViewport: {\n label: \"Notifications ({hotkey})\",\n },\n};\n"],"names":[],"mappings":"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"}
|