@povio/ui 2.3.2 → 3.0.0-rc.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/assets/icons/AlignCenter.js +26 -11
- package/dist/assets/icons/AlignLeft.js +26 -11
- package/dist/assets/icons/AlignLeftRight.js +26 -11
- package/dist/assets/icons/AlignRight.js +26 -11
- package/dist/assets/icons/ArrowDropDown.js +26 -11
- package/dist/assets/icons/ArrowDropUp.js +26 -11
- package/dist/assets/icons/ArrowLeft.js +26 -11
- package/dist/assets/icons/ArrowRight.js +26 -11
- package/dist/assets/icons/Bold.js +26 -11
- package/dist/assets/icons/BulletedList.js +26 -11
- package/dist/assets/icons/Calendar.js +28 -13
- package/dist/assets/icons/Check.js +28 -13
- package/dist/assets/icons/CheckCircle.js +26 -11
- package/dist/assets/icons/CheckboxCheckmark.js +29 -14
- package/dist/assets/icons/CheckboxIndeterminate.js +29 -14
- package/dist/assets/icons/ChevronDown.js +28 -13
- package/dist/assets/icons/ChevronLeft.js +28 -13
- package/dist/assets/icons/ChevronRight.js +28 -13
- package/dist/assets/icons/ChevronUp.js +28 -13
- package/dist/assets/icons/ChevronsLeft.js +28 -13
- package/dist/assets/icons/ChevronsRight.js +28 -13
- package/dist/assets/icons/Clock.js +26 -11
- package/dist/assets/icons/Close.js +26 -11
- package/dist/assets/icons/DateTime.js +35 -14
- package/dist/assets/icons/DragIndicator.js +26 -11
- package/dist/assets/icons/File.js +28 -13
- package/dist/assets/icons/Highlight.js +26 -11
- package/dist/assets/icons/HighlightOn.js +49 -15
- package/dist/assets/icons/Home.js +26 -11
- package/dist/assets/icons/Info.js +37 -16
- package/dist/assets/icons/Italic.js +26 -11
- package/dist/assets/icons/Link.js +26 -11
- package/dist/assets/icons/Menu.js +26 -11
- package/dist/assets/icons/NumberedList.js +26 -11
- package/dist/assets/icons/PointerHorizontal.js +26 -11
- package/dist/assets/icons/PointerVertical.js +26 -11
- package/dist/assets/icons/Search.js +26 -11
- package/dist/assets/icons/Send.js +28 -13
- package/dist/assets/icons/Strikethrough.js +26 -11
- package/dist/assets/icons/TextColor.js +48 -14
- package/dist/assets/icons/Today.js +26 -11
- package/dist/assets/icons/Underlined.js +28 -13
- package/dist/assets/icons/Upload.js +35 -14
- package/dist/assets/icons/Visibility.js +26 -11
- package/dist/assets/icons/VisibilityOff.js +26 -11
- package/dist/assets/icons/WarningFilled.js +28 -13
- package/dist/assets/locales/sl/translation.json.js +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.js +215 -64
- package/dist/components/Breadcrumbs/breadcrumbs.cva.d.ts +40 -14
- package/dist/components/Breadcrumbs/breadcrumbs.cva.js +21 -18
- package/dist/components/Menu/Menu.js +18 -2
- package/dist/components/Menu/MenuDesktop.js +41 -7
- package/dist/components/Menu/MenuItem.js +35 -12
- package/dist/components/Menu/MenuMobile.js +103 -44
- package/dist/components/Menu/MenuPopover.js +110 -34
- package/dist/components/Menu/menu.cva.d.ts +35 -13
- package/dist/components/Menu/menu.cva.js +30 -24
- package/dist/components/buttons/Button/Button.js +7 -7
- package/dist/components/buttons/Button/button.cva.d.ts +95 -26
- package/dist/components/buttons/Button/button.cva.js +601 -589
- package/dist/components/buttons/IconButton/IconButton.js +40 -8
- package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +2 -1
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +34 -9
- package/dist/components/buttons/PillButton/PillButton.js +59 -21
- package/dist/components/buttons/PillButton/pillButton.cva.d.ts +33 -9
- package/dist/components/buttons/PillButton/pillButton.cva.js +247 -239
- package/dist/components/buttons/SplitButton/SplitButton.js +103 -18
- package/dist/components/buttons/TextButton/TextButton.js +30 -8
- package/dist/components/buttons/ToggleButton/ToggleButton.js +28 -8
- package/dist/components/buttons/shared/ButtonContent.js +83 -25
- package/dist/components/buttons/shared/buttonContent.cva.d.ts +3 -5
- package/dist/components/buttons/shared/buttonContent.cva.js +1 -8
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/inputs/Checkbox/Checkbox.js +203 -37
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +28 -14
- package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +26 -10
- package/dist/components/inputs/Checkbox/checkbox.cva.js +47 -40
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +12 -5
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +371 -75
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +12 -5
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +596 -218
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +13 -5
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +267 -47
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +7 -3
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +611 -121
- package/dist/components/inputs/DateTime/shared/Calendar.d.ts +5 -2
- package/dist/components/inputs/DateTime/shared/Calendar.js +338 -119
- package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +4 -2
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +310 -103
- package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +4 -2
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +150 -33
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +249 -93
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +318 -137
- package/dist/components/inputs/DateTime/shared/DateField.js +286 -112
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +13 -3
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +387 -143
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +15 -0
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +96 -11
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +84 -30
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +59 -10
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +103 -58
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +193 -82
- package/dist/components/inputs/DateTime/shared/TimeField.js +27 -8
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +279 -110
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +4 -1
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +214 -69
- package/dist/components/inputs/DateTime/shared/YearPicker.js +119 -68
- package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +5 -0
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +27 -0
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +15 -0
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +15 -0
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +32 -0
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +2 -0
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +1 -0
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +40 -0
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +85 -0
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +1 -0
- package/dist/components/inputs/File/FileUpload.js +87 -44
- package/dist/components/inputs/File/FileUploadContainer.js +15 -7
- package/dist/components/inputs/File/InputUpload.js +317 -79
- package/dist/components/inputs/File/shared/FileCard.js +104 -41
- package/dist/components/inputs/File/shared/FileCardList.js +47 -12
- package/dist/components/inputs/File/shared/FileUploadContent.js +175 -44
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +149 -46
- package/dist/components/inputs/File/shared/FileUploadContentError.js +234 -93
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +230 -97
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +199 -55
- package/dist/components/inputs/File/shared/InputUploadContent.js +151 -37
- package/dist/components/inputs/File/shared/InputUploadFilled.js +51 -10
- package/dist/components/inputs/File/shared/ProgressBar.js +48 -9
- package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +26 -9
- package/dist/components/inputs/File/shared/fileUpload.cva.js +48 -40
- package/dist/components/inputs/File/shared/inputUploadButton.cva.d.ts +23 -6
- package/dist/components/inputs/File/shared/inputUploadButton.cva.js +29 -20
- package/dist/components/inputs/FormField/FormField.d.ts +3 -3
- package/dist/components/inputs/FormField/FormField.js +119 -37
- package/dist/components/inputs/FormField/FormFieldError.js +27 -7
- package/dist/components/inputs/FormField/FormFieldHeader.d.ts +2 -2
- package/dist/components/inputs/FormField/FormFieldHeader.js +81 -22
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +31 -7
- package/dist/components/inputs/FormField/FormFieldHelper.js +28 -8
- package/dist/components/inputs/FormField/FormFieldLabel.d.ts +2 -2
- package/dist/components/inputs/FormField/FormFieldLabel.js +46 -15
- package/dist/components/inputs/FormField/formFieldError.cva.d.ts +12 -5
- package/dist/components/inputs/FormField/formFieldError.cva.js +11 -8
- package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +22 -0
- package/dist/components/inputs/FormField/formFieldHeader.cva.js +13 -0
- package/dist/components/inputs/FormField/formFieldHelper.cva.d.ts +12 -5
- package/dist/components/inputs/FormField/formFieldHelper.cva.js +11 -8
- package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +5 -2
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +450 -100
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +45 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +571 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +35 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +575 -0
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +48 -9
- package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +12 -0
- package/dist/components/inputs/Input/TextArea/TextArea.cva.js +4 -0
- package/dist/components/inputs/Input/TextArea/TextArea.js +309 -94
- package/dist/components/inputs/Input/TextInput/TextInput.d.ts +3 -1
- package/dist/components/inputs/Input/TextInput/TextInput.js +422 -93
- package/dist/components/inputs/Input/shared/InputContent.js +196 -63
- package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +1 -0
- package/dist/components/inputs/Input/shared/numberStatic.utils.js +7 -0
- package/dist/components/inputs/Inputs/Form.js +40 -11
- package/dist/components/inputs/Inputs/InputItem.d.ts +15 -21
- package/dist/components/inputs/Inputs/InputItem.js +69 -14
- package/dist/components/inputs/Inputs/Inputs.js +37 -11
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +3 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.js +356 -64
- package/dist/components/inputs/RadioGroup/radio.cva.d.ts +101 -6
- package/dist/components/inputs/RadioGroup/radio.cva.js +74 -24
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +6 -2
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +214 -22
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +3 -18
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +104 -8
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +36 -0
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +14 -0
- package/dist/components/inputs/Selection/Select/QuerySelect.js +173 -0
- package/dist/components/inputs/Selection/Select/Select.d.ts +7 -3
- package/dist/components/inputs/Selection/Select/Select.js +225 -18
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +8 -1
- package/dist/components/inputs/Selection/shared/SelectBase.js +69 -18
- package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +396 -141
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +398 -119
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +99 -25
- package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectListBox.js +164 -52
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +88 -38
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +72 -19
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +73 -24
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +58 -9
- package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectMobile.js +9 -3
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +9 -0
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +47 -0
- package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +12 -0
- package/dist/components/inputs/Selection/shared/querySelect.utils.js +36 -0
- package/dist/components/inputs/Selection/shared/select.context.d.ts +3 -2
- package/dist/components/inputs/Selection/shared/select.context.js +67 -36
- package/dist/components/inputs/Selection/shared/select.types.d.ts +3 -2
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +10 -0
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +4 -0
- package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +5 -0
- package/dist/components/inputs/Selection/shared/selectInput.cva.js +5 -0
- package/dist/components/inputs/Selection/shared/selectItem.cva.d.ts +16 -6
- package/dist/components/inputs/Selection/shared/selectItem.cva.js +21 -18
- package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +23 -0
- package/dist/components/inputs/Selection/shared/staticSelect.utils.js +37 -0
- package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +1 -0
- package/dist/components/inputs/Selection/shared/useSelectItems.js +109 -49
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +82 -0
- package/dist/components/inputs/Skeleton/InputFrame.js +548 -0
- package/dist/components/inputs/Slider/Slider.d.ts +2 -1
- package/dist/components/inputs/Slider/Slider.js +265 -76
- package/dist/components/inputs/TextEditor/TextEditor.d.ts +1 -0
- package/dist/components/inputs/TextEditor/TextEditor.js +450 -101
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +37 -11
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +105 -33
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +194 -45
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +88 -28
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +48 -14
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +66 -19
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +49 -15
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +92 -32
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +126 -54
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +141 -38
- package/dist/components/inputs/Toggle/Toggle.d.ts +1 -0
- package/dist/components/inputs/Toggle/Toggle.js +217 -40
- package/dist/components/inputs/Toggle/toggle.cva.d.ts +15 -6
- package/dist/components/inputs/Toggle/toggle.cva.js +25 -21
- package/dist/components/inputs/shared/CheckContent.d.ts +2 -1
- package/dist/components/inputs/shared/CheckContent.js +23 -13
- package/dist/components/inputs/shared/InputClear.d.ts +2 -1
- package/dist/components/inputs/shared/InputClear.js +88 -12
- package/dist/components/inputs/shared/TooltipWrapper.js +50 -11
- package/dist/components/inputs/shared/input.cva.d.ts +137 -16
- package/dist/components/inputs/shared/input.cva.js +317 -273
- package/dist/components/inputs/shared/label.cva.d.ts +15 -6
- package/dist/components/inputs/shared/label.cva.js +28 -25
- package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +12 -0
- package/dist/components/inputs/shared/tooltipWrapper.cva.js +4 -0
- package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +14 -0
- package/dist/components/inputs/shared/useStaticInputHandoff.js +100 -0
- package/dist/components/navigation/Accordion/Accordion.js +71 -24
- package/dist/components/navigation/Accordion/AccordionItem.js +97 -52
- package/dist/components/navigation/Accordion/accordion.cva.d.ts +109 -44
- package/dist/components/navigation/Accordion/accordion.cva.js +114 -84
- package/dist/components/navigation/Stepper/Stepper.js +69 -24
- package/dist/components/navigation/Stepper/StepperItem.js +112 -39
- package/dist/components/navigation/Stepper/StepperSeparator.js +25 -7
- package/dist/components/navigation/Stepper/stepper.cva.d.ts +86 -30
- package/dist/components/navigation/Stepper/stepper.cva.js +104 -83
- package/dist/components/overlays/ActionModal/ActionModal.js +169 -35
- package/dist/components/overlays/BottomSheet/BottomSheet.js +96 -23
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +48 -8
- package/dist/components/overlays/Drawer/Drawer.js +62 -20
- package/dist/components/overlays/Modal/Modal.js +5 -5
- package/dist/components/overlays/Modal/modal.cva.d.ts +34 -9
- package/dist/components/overlays/Modal/modal.cva.js +38 -27
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +86 -30
- package/dist/components/overlays/Tooltip/Tooltip.js +143 -34
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +37 -12
- package/dist/components/overlays/Tooltip/tooltip.cva.d.ts +45 -17
- package/dist/components/overlays/Tooltip/tooltip.cva.js +38 -26
- package/dist/components/segment/Segment.js +221 -60
- package/dist/components/segment/SegmentItem.js +70 -13
- package/dist/components/segment/segment.cva.d.ts +18 -7
- package/dist/components/segment/segment.cva.js +24 -21
- package/dist/components/shared/pagination/Pagination.js +108 -22
- package/dist/components/shared/pagination/PaginationList.js +167 -64
- package/dist/components/shared/popover.cva.d.ts +7 -3
- package/dist/components/shared/popover.cva.js +3 -3
- package/dist/components/status/Alert/Alert.js +103 -36
- package/dist/components/status/Alert/alert.cva.d.ts +18 -6
- package/dist/components/status/Alert/alert.cva.js +60 -57
- package/dist/components/status/Loader/Loader.js +77 -22
- package/dist/components/status/Loader/loader.cva.d.ts +23 -4
- package/dist/components/status/Loader/loader.cva.js +22 -13
- package/dist/components/status/Toast/Toast.js +27 -20
- package/dist/components/status/Toast/toast.cva.d.ts +61 -10
- package/dist/components/status/Toast/toast.cva.js +129 -64
- package/dist/components/status/Toast/useToast.js +62 -57
- package/dist/components/status/shared/status.cva.d.ts +30 -8
- package/dist/components/status/shared/status.cva.js +56 -50
- package/dist/components/table/CellText.js +3 -3
- package/dist/components/table/ColumnConfig.js +158 -54
- package/dist/components/table/HeaderText.js +3 -3
- package/dist/components/table/InfiniteTable.js +67 -16
- package/dist/components/table/PaginatedTable.js +84 -18
- package/dist/components/table/Table.js +34 -33
- package/dist/components/table/table.cva.d.ts +52 -19
- package/dist/components/table/table.cva.js +44 -35
- package/dist/components/text/Link/Link.js +22 -10
- package/dist/components/text/Link/link.cva.d.ts +11 -5
- package/dist/components/text/Link/link.cva.js +8 -5
- package/dist/components/text/Tag/Tag.js +3 -3
- package/dist/components/text/Tag/tag.cva.d.ts +15 -5
- package/dist/components/text/Tag/tag.cva.js +51 -48
- package/dist/components/text/Typography/Typography.js +25 -10
- package/dist/components/text/Typography/typography.cva.d.ts +93 -7
- package/dist/components/text/Typography/typography.cva.js +126 -122
- package/dist/config/confirmation.context.js +1 -1
- package/dist/config/link.context.js +23 -9
- package/dist/config/router.context.js +42 -16
- package/dist/config/theme.context.js +98 -45
- package/dist/config/uiConfig.context.d.ts +20 -6
- package/dist/config/uiConfig.context.js +68 -14
- package/dist/config/uiOverrides.context.d.ts +192 -0
- package/dist/config/uiOverrides.context.js +113 -0
- package/dist/helpers/dynamicInputs.d.ts +5 -5
- package/dist/helpers/dynamicInputs.js +3 -0
- package/dist/hooks/useAutosave.d.ts +2 -1
- package/dist/hooks/useAutosave.js +12 -4
- package/dist/hooks/useAutosave.spec.d.ts +1 -0
- package/dist/hooks/useBreakpoint.js +16 -3
- package/dist/hooks/useDebounceCallback.js +51 -17
- package/dist/hooks/useFilters.js +125 -64
- package/dist/hooks/useForm.js +42 -8
- package/dist/hooks/useFormAutosave.d.ts +3 -1
- package/dist/hooks/useFormAutosave.js +122 -30
- package/dist/hooks/useFormAutosave.spec.d.ts +1 -0
- package/dist/hooks/useIntersectionObserver.d.ts +1 -1
- package/dist/hooks/useIntersectionObserver.js +91 -24
- package/dist/hooks/useKeyInteractions.d.ts +20 -0
- package/dist/hooks/useKeyInteractions.js +54 -0
- package/dist/hooks/useKeyInteractions.spec.d.ts +1 -0
- package/dist/hooks/useLocalStorage.js +43 -10
- package/dist/hooks/useLongPressRepeat.js +55 -20
- package/dist/hooks/usePagination.js +49 -19
- package/dist/hooks/useQueryAutocomplete.d.ts +14 -0
- package/dist/hooks/useQueryAutocomplete.js +57 -0
- package/dist/hooks/useScrollableListBox.js +37 -16
- package/dist/hooks/useSorting.js +69 -28
- package/dist/hooks/useStateAndRef.js +21 -7
- package/dist/hooks/useTableColumnConfig.js +124 -31
- package/dist/hooks/useTranslationMemo.js +25 -5
- package/dist/index.d.ts +37 -1
- package/dist/index.js +34 -3
- package/dist/tw-ui-plugin.js +6 -0
- package/dist/utils/date-time.utils.d.ts +38 -10
- package/dist/utils/date-time.utils.js +136 -22
- package/dist/utils/query.utils.d.ts +4 -0
- package/dist/utils/query.utils.js +8 -0
- package/dist/utils/style-merge.util.d.ts +43 -0
- package/dist/utils/style-merge.util.js +233 -0
- package/dist/utils/style-merge.util.spec.d.ts +1 -0
- package/package.json +1 -1
- package/dist/config/uiStyle.context.d.ts +0 -162
- package/dist/config/uiStyle.context.js +0 -30
package/dist/hooks/useSorting.js
CHANGED
|
@@ -1,38 +1,79 @@
|
|
|
1
1
|
import { UIRouter } from "../config/router.context.js";
|
|
2
2
|
import { RoutingUtils } from "../utils/routing.utils.js";
|
|
3
|
-
import {
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { useEffect, useState } from "react";
|
|
4
5
|
//#region src/hooks/useSorting.ts
|
|
5
|
-
function useSorting(defaultSorting,
|
|
6
|
+
function useSorting(defaultSorting, t0) {
|
|
7
|
+
const $ = c(16);
|
|
8
|
+
const prefix = t0 === void 0 ? "" : t0;
|
|
6
9
|
const { replace, searchParams } = UIRouter.useUIRouter();
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
let t1;
|
|
11
|
+
if ($[0] !== defaultSorting || $[1] !== prefix || $[2] !== searchParams) {
|
|
12
|
+
t1 = defaultSorting ?? searchParams.get(`order${prefix && `-${prefix}`}`)?.split(",").map(_temp) ?? [];
|
|
13
|
+
$[0] = defaultSorting;
|
|
14
|
+
$[1] = prefix;
|
|
15
|
+
$[2] = searchParams;
|
|
16
|
+
$[3] = t1;
|
|
17
|
+
} else t1 = $[3];
|
|
18
|
+
const [sorting, setSorting] = useState(t1);
|
|
19
|
+
let t2;
|
|
20
|
+
if ($[4] !== sorting) {
|
|
21
|
+
t2 = sorting.map(_temp2).join(",");
|
|
22
|
+
$[4] = sorting;
|
|
23
|
+
$[5] = t2;
|
|
24
|
+
} else t2 = $[5];
|
|
25
|
+
const order = t2;
|
|
26
|
+
let t3;
|
|
27
|
+
if ($[6] !== order || $[7] !== prefix || $[8] !== replace || $[9] !== searchParams) {
|
|
28
|
+
t3 = () => {
|
|
29
|
+
const params = new URLSearchParams(searchParams);
|
|
30
|
+
const orderKey = prefix ? `order-${prefix}` : "order";
|
|
31
|
+
params.delete(orderKey);
|
|
32
|
+
if (order) params.set(orderKey, order);
|
|
33
|
+
if (params.toString() === searchParams.toString()) return;
|
|
34
|
+
replace(".", RoutingUtils.toRouterSearch(params));
|
|
11
35
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
36
|
+
$[6] = order;
|
|
37
|
+
$[7] = prefix;
|
|
38
|
+
$[8] = replace;
|
|
39
|
+
$[9] = searchParams;
|
|
40
|
+
$[10] = t3;
|
|
41
|
+
} else t3 = $[10];
|
|
42
|
+
let t4;
|
|
43
|
+
if ($[11] !== order) {
|
|
44
|
+
t4 = [order];
|
|
45
|
+
$[11] = order;
|
|
46
|
+
$[12] = t4;
|
|
47
|
+
} else t4 = $[12];
|
|
48
|
+
useEffect(t3, t4);
|
|
49
|
+
let t5;
|
|
50
|
+
if ($[13] !== order || $[14] !== sorting) {
|
|
51
|
+
t5 = {
|
|
52
|
+
sorting,
|
|
53
|
+
setSorting,
|
|
54
|
+
order
|
|
15
55
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
56
|
+
$[13] = order;
|
|
57
|
+
$[14] = sorting;
|
|
58
|
+
$[15] = t5;
|
|
59
|
+
} else t5 = $[15];
|
|
60
|
+
return t5;
|
|
61
|
+
}
|
|
62
|
+
function _temp2(field) {
|
|
63
|
+
return `${field.desc ? "-" : "+"}${field.id}`;
|
|
64
|
+
}
|
|
65
|
+
function _temp(item) {
|
|
66
|
+
if (item.startsWith("-")) return {
|
|
67
|
+
id: item.slice(1),
|
|
68
|
+
desc: true
|
|
69
|
+
};
|
|
70
|
+
if (item.startsWith("+")) return {
|
|
71
|
+
id: item.slice(1),
|
|
72
|
+
desc: false
|
|
73
|
+
};
|
|
32
74
|
return {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
order
|
|
75
|
+
id: item,
|
|
76
|
+
desc: false
|
|
36
77
|
};
|
|
37
78
|
}
|
|
38
79
|
//#endregion
|
|
@@ -1,17 +1,31 @@
|
|
|
1
1
|
import { ObjectUtils } from "../utils/object.utils.js";
|
|
2
|
-
import {
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { useRef, useState } from "react";
|
|
3
4
|
//#region src/hooks/useStateAndRef.ts
|
|
4
5
|
var useStateAndRef = (initialState) => {
|
|
6
|
+
const $ = c(3);
|
|
5
7
|
const [state, setState] = useState(initialState);
|
|
6
8
|
const ref = useRef(state);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
useCallback((value) => {
|
|
9
|
+
let t0;
|
|
10
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11
|
+
t0 = (value) => {
|
|
11
12
|
ref.current = ObjectUtils.isFunction(value) ? value(ref.current) : value;
|
|
12
13
|
setState(ref.current);
|
|
13
|
-
}
|
|
14
|
-
|
|
14
|
+
};
|
|
15
|
+
$[0] = t0;
|
|
16
|
+
} else t0 = $[0];
|
|
17
|
+
const updateValue = t0;
|
|
18
|
+
let t1;
|
|
19
|
+
if ($[1] !== state) {
|
|
20
|
+
t1 = [
|
|
21
|
+
state,
|
|
22
|
+
ref,
|
|
23
|
+
updateValue
|
|
24
|
+
];
|
|
25
|
+
$[1] = state;
|
|
26
|
+
$[2] = t1;
|
|
27
|
+
} else t1 = $[2];
|
|
28
|
+
return t1;
|
|
15
29
|
};
|
|
16
30
|
//#endregion
|
|
17
31
|
export { useStateAndRef };
|
|
@@ -1,40 +1,133 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
2
3
|
//#region src/hooks/useTableColumnConfig.ts
|
|
3
4
|
function sortByKeyOrder(data, orderedKeys = []) {
|
|
4
5
|
return [...data].sort((a, b) => {
|
|
5
6
|
return orderedKeys.findIndex((key) => key === (a.id ?? a.accessorKey)) - orderedKeys.findIndex((key) => key === (b.id ?? b.accessorKey));
|
|
6
7
|
});
|
|
7
8
|
}
|
|
8
|
-
function useTableColumnConfig(defaultColumns,
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
9
|
+
function useTableColumnConfig(defaultColumns, t0) {
|
|
10
|
+
const $ = c(31);
|
|
11
|
+
let t1;
|
|
12
|
+
if ($[0] !== t0) {
|
|
13
|
+
t1 = t0 === void 0 ? {} : t0;
|
|
14
|
+
$[0] = t0;
|
|
15
|
+
$[1] = t1;
|
|
16
|
+
} else t1 = $[1];
|
|
17
|
+
const options = t1;
|
|
18
|
+
let t2;
|
|
19
|
+
if ($[2] !== defaultColumns) {
|
|
20
|
+
t2 = () => defaultColumns.reduce(_temp, {});
|
|
21
|
+
$[2] = defaultColumns;
|
|
22
|
+
$[3] = t2;
|
|
23
|
+
} else t2 = $[3];
|
|
24
|
+
const [internalVisibleColumns, setInternalVisibleColumns] = useState(t2);
|
|
25
|
+
let t3;
|
|
26
|
+
if ($[4] !== defaultColumns) {
|
|
27
|
+
t3 = () => defaultColumns.map(_temp2);
|
|
28
|
+
$[4] = defaultColumns;
|
|
29
|
+
$[5] = t3;
|
|
30
|
+
} else t3 = $[5];
|
|
31
|
+
const [internalColumnOrder, setInternalColumnOrder] = useState(t3);
|
|
32
|
+
let t4;
|
|
33
|
+
let t5;
|
|
34
|
+
if ($[6] !== options.visibleColumns) {
|
|
35
|
+
t4 = () => {
|
|
36
|
+
if (options.visibleColumns) setInternalVisibleColumns(options.visibleColumns);
|
|
37
|
+
};
|
|
38
|
+
t5 = [options.visibleColumns];
|
|
39
|
+
$[6] = options.visibleColumns;
|
|
40
|
+
$[7] = t4;
|
|
41
|
+
$[8] = t5;
|
|
42
|
+
} else {
|
|
43
|
+
t4 = $[7];
|
|
44
|
+
t5 = $[8];
|
|
45
|
+
}
|
|
46
|
+
useEffect(t4, t5);
|
|
47
|
+
let t6;
|
|
48
|
+
let t7;
|
|
49
|
+
if ($[9] !== options.columnOrder) {
|
|
50
|
+
t6 = () => {
|
|
51
|
+
if (options.columnOrder) setInternalColumnOrder(options.columnOrder);
|
|
52
|
+
};
|
|
53
|
+
t7 = [options.columnOrder];
|
|
54
|
+
$[9] = options.columnOrder;
|
|
55
|
+
$[10] = t6;
|
|
56
|
+
$[11] = t7;
|
|
57
|
+
} else {
|
|
58
|
+
t6 = $[10];
|
|
59
|
+
t7 = $[11];
|
|
60
|
+
}
|
|
61
|
+
useEffect(t6, t7);
|
|
62
|
+
let t8;
|
|
63
|
+
if ($[12] !== options) {
|
|
64
|
+
t8 = (value) => {
|
|
65
|
+
setInternalVisibleColumns(value);
|
|
66
|
+
options?.onVisibilityChange?.(value);
|
|
67
|
+
};
|
|
68
|
+
$[12] = options;
|
|
69
|
+
$[13] = t8;
|
|
70
|
+
} else t8 = $[13];
|
|
71
|
+
const handleVisibilityChange = t8;
|
|
72
|
+
let t9;
|
|
73
|
+
if ($[14] !== options) {
|
|
74
|
+
t9 = (value_0) => {
|
|
75
|
+
setInternalColumnOrder(value_0);
|
|
76
|
+
options?.onOrderChange?.(value_0);
|
|
77
|
+
};
|
|
78
|
+
$[14] = options;
|
|
79
|
+
$[15] = t9;
|
|
80
|
+
} else t9 = $[15];
|
|
81
|
+
const handleOrderChange = t9;
|
|
82
|
+
let t10;
|
|
83
|
+
if ($[16] !== defaultColumns || $[17] !== internalColumnOrder) {
|
|
84
|
+
t10 = sortByKeyOrder(defaultColumns, internalColumnOrder);
|
|
85
|
+
$[16] = defaultColumns;
|
|
86
|
+
$[17] = internalColumnOrder;
|
|
87
|
+
$[18] = t10;
|
|
88
|
+
} else t10 = $[18];
|
|
89
|
+
const configColumns = t10;
|
|
90
|
+
let t11;
|
|
91
|
+
if ($[19] !== configColumns || $[20] !== internalVisibleColumns) {
|
|
92
|
+
let t12;
|
|
93
|
+
if ($[22] !== internalVisibleColumns) {
|
|
94
|
+
t12 = (col_1) => internalVisibleColumns?.[col_1.id ?? col_1.accessorKey] ?? true;
|
|
95
|
+
$[22] = internalVisibleColumns;
|
|
96
|
+
$[23] = t12;
|
|
97
|
+
} else t12 = $[23];
|
|
98
|
+
t11 = configColumns.filter(t12);
|
|
99
|
+
$[19] = configColumns;
|
|
100
|
+
$[20] = internalVisibleColumns;
|
|
101
|
+
$[21] = t11;
|
|
102
|
+
} else t11 = $[21];
|
|
103
|
+
const columns = t11;
|
|
104
|
+
let t12;
|
|
105
|
+
if ($[24] !== columns || $[25] !== configColumns || $[26] !== handleOrderChange || $[27] !== handleVisibilityChange || $[28] !== internalColumnOrder || $[29] !== internalVisibleColumns) {
|
|
106
|
+
t12 = {
|
|
107
|
+
configColumns,
|
|
108
|
+
columns,
|
|
109
|
+
visibleColumns: internalVisibleColumns,
|
|
110
|
+
columnOrder: internalColumnOrder,
|
|
111
|
+
onVisibilityChange: handleVisibilityChange,
|
|
112
|
+
onOrderChange: handleOrderChange
|
|
113
|
+
};
|
|
114
|
+
$[24] = columns;
|
|
115
|
+
$[25] = configColumns;
|
|
116
|
+
$[26] = handleOrderChange;
|
|
117
|
+
$[27] = handleVisibilityChange;
|
|
118
|
+
$[28] = internalColumnOrder;
|
|
119
|
+
$[29] = internalVisibleColumns;
|
|
120
|
+
$[30] = t12;
|
|
121
|
+
} else t12 = $[30];
|
|
122
|
+
return t12;
|
|
123
|
+
}
|
|
124
|
+
function _temp2(col_0) {
|
|
125
|
+
return col_0.id ?? col_0.accessorKey;
|
|
126
|
+
}
|
|
127
|
+
function _temp(acc, col) {
|
|
128
|
+
const key = col.id ?? col.accessorKey;
|
|
129
|
+
acc[key] = true;
|
|
130
|
+
return acc;
|
|
38
131
|
}
|
|
39
132
|
//#endregion
|
|
40
133
|
export { useTableColumnConfig };
|
|
@@ -1,12 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
//#region src/hooks/useTranslationMemo.ts
|
|
4
4
|
function useTranslationMemo(func) {
|
|
5
|
+
const $ = c(5);
|
|
5
6
|
const { t } = useTranslation();
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
let t0;
|
|
8
|
+
bb0: {
|
|
9
|
+
if (func.length === 1) {
|
|
10
|
+
let t1;
|
|
11
|
+
if ($[0] !== func || $[1] !== t) {
|
|
12
|
+
t1 = func(t);
|
|
13
|
+
$[0] = func;
|
|
14
|
+
$[1] = t;
|
|
15
|
+
$[2] = t1;
|
|
16
|
+
} else t1 = $[2];
|
|
17
|
+
t0 = t1;
|
|
18
|
+
break bb0;
|
|
19
|
+
}
|
|
20
|
+
const t1 = func;
|
|
21
|
+
let t2;
|
|
22
|
+
if ($[3] !== t1) {
|
|
23
|
+
t2 = t1();
|
|
24
|
+
$[3] = t1;
|
|
25
|
+
$[4] = t2;
|
|
26
|
+
} else t2 = $[4];
|
|
27
|
+
t0 = t2;
|
|
28
|
+
}
|
|
29
|
+
return t0;
|
|
10
30
|
}
|
|
11
31
|
//#endregion
|
|
12
32
|
export { useTranslationMemo };
|
package/dist/index.d.ts
CHANGED
|
@@ -78,6 +78,8 @@ export type { FormFieldProps } from './components/inputs/FormField/FormField';
|
|
|
78
78
|
export { FormField } from './components/inputs/FormField/FormField';
|
|
79
79
|
export type { ControlledNumberInputProps, NumberInputProps } from './components/inputs/Input/NumberInput/NumberInput';
|
|
80
80
|
export { NumberInput } from './components/inputs/Input/NumberInput/NumberInput';
|
|
81
|
+
export type { ControlledNumberRangeInputProps, NumberRangeInputProps, NumberRangeValue, } from './components/inputs/Input/NumberRangeInput/NumberRangeInput';
|
|
82
|
+
export { NumberRangeInput } from './components/inputs/Input/NumberRangeInput/NumberRangeInput';
|
|
81
83
|
export type { ControlledPasswordInputProps, PasswordInputProps, } from './components/inputs/Input/PasswordInput/PasswordInput';
|
|
82
84
|
export { PasswordInput } from './components/inputs/Input/PasswordInput/PasswordInput';
|
|
83
85
|
export type { ControlledTextAreaProps, TextAreaProps } from './components/inputs/Input/TextArea/TextArea';
|
|
@@ -94,11 +96,16 @@ export type { RadioVariantProps } from './components/inputs/RadioGroup/radio.cva
|
|
|
94
96
|
export type { AutocompleteProps, ControlledAutocompleteProps, } from './components/inputs/Selection/Autocomplete/Autocomplete';
|
|
95
97
|
export { Autocomplete } from './components/inputs/Selection/Autocomplete/Autocomplete';
|
|
96
98
|
export { QueryAutocomplete } from './components/inputs/Selection/Autocomplete/QueryAutocomplete';
|
|
99
|
+
export type { SelectBaseProps } from './components/inputs/Selection/shared/SelectBase';
|
|
100
|
+
export type { DefaultInitialSelectItem, SelectAsyncProps, SelectItem, } from './components/inputs/Selection/shared/select.types';
|
|
101
|
+
export type { QuerySelectProps } from './components/inputs/Selection/Select/QuerySelect';
|
|
102
|
+
export { QuerySelect } from './components/inputs/Selection/Select/QuerySelect';
|
|
97
103
|
export type { ControlledSelectProps, SelectProps } from './components/inputs/Selection/Select/Select';
|
|
98
104
|
export { Select } from './components/inputs/Selection/Select/Select';
|
|
99
105
|
export type { ControlledSliderProps, SliderProps } from './components/inputs/Slider/Slider';
|
|
100
106
|
export { Slider } from './components/inputs/Slider/Slider';
|
|
101
107
|
export type { InputVariantProps } from './components/inputs/shared/input.cva';
|
|
108
|
+
export type { TooltipWrapperTriggerVariantProps } from './components/inputs/shared/tooltipWrapper.cva';
|
|
102
109
|
export type { ControlledToggleProps, ToggleProps } from './components/inputs/Toggle/Toggle';
|
|
103
110
|
export { Toggle } from './components/inputs/Toggle/Toggle';
|
|
104
111
|
export type { MenuProps } from './components/Menu/Menu';
|
|
@@ -171,7 +178,35 @@ export { LinkContext } from './config/link.context';
|
|
|
171
178
|
export { UIRouter } from './config/router.context';
|
|
172
179
|
export { ThemeContext } from './config/theme.context';
|
|
173
180
|
export { UIConfig } from './config/uiConfig.context';
|
|
174
|
-
export {
|
|
181
|
+
export { UIOverrides } from './config/uiOverrides.context';
|
|
182
|
+
export { breadcrumbChevronDefinition, breadcrumbIconDefinition, breadcrumbItemDefinition, breadcrumbsDefinition, breadcrumbSegmentDefinition, } from './components/Breadcrumbs/breadcrumbs.cva';
|
|
183
|
+
export { buttonContentDefinition, buttonDefinition, buttonIconSizeDefinition, buttonSizeDefinition, } from './components/buttons/Button/button.cva';
|
|
184
|
+
export { pillButtonContentDefinition, pillButtonDefinition } from './components/buttons/PillButton/pillButton.cva';
|
|
185
|
+
export { checkboxDefinition, checkboxIconDefinition } from './components/inputs/Checkbox/checkbox.cva';
|
|
186
|
+
export { fileCardListDefinition, fileUploadDropZoneDefinition } from './components/inputs/File/shared/fileUpload.cva';
|
|
187
|
+
export { inputUploadButtonDefinition, inputUploadDropZoneDefinition, } from './components/inputs/File/shared/inputUploadButton.cva';
|
|
188
|
+
export { formFieldErrorDefinition } from './components/inputs/FormField/formFieldError.cva';
|
|
189
|
+
export { formFieldHelperDefinition } from './components/inputs/FormField/formFieldHelper.cva';
|
|
190
|
+
export { inputBaseDefinition, inputSideDefinition, inputSizeDefinition } from './components/inputs/shared/input.cva';
|
|
191
|
+
export { labelDefinition } from './components/inputs/shared/label.cva';
|
|
192
|
+
export { radioDefinition } from './components/inputs/RadioGroup/radio.cva';
|
|
193
|
+
export { selectListBoxItemDefinition } from './components/inputs/Selection/shared/selectItem.cva';
|
|
194
|
+
export { toggleDefinition } from './components/inputs/Toggle/toggle.cva';
|
|
195
|
+
export { menuDefinition, menuItemDefinition, menuPopoverDefinition, menuPopoverWrapperDefinition, } from './components/Menu/menu.cva';
|
|
196
|
+
export { accordionChevronDefinition, accordionDefinition, accordionHeadingDefinition, accordionHeadingSubtitleDefinition, accordionHeadingTitleDefinition, accordionIconDefinition, accordionItemDefinition, accordionPanelContentDefinition, accordionPanelDefinition, accordionTriggerDefinition, } from './components/navigation/Accordion/accordion.cva';
|
|
197
|
+
export { stepperDefinition, stepperIconDefinition, stepperItemDefinition, stepperNumberDefinition, stepperSeparatorDefinition, stepperSubtextDefinition, stepperTitleDefinition, } from './components/navigation/Stepper/stepper.cva';
|
|
198
|
+
export { modalContentDefinition, modalMainDefinition, modalOverlayDefinition, } from './components/overlays/Modal/modal.cva';
|
|
199
|
+
export { tooltipDefinition, tooltipPointerHorizontalDefinition, tooltipPointerVerticalDefinition, tooltipTextDefinition, } from './components/overlays/Tooltip/tooltip.cva';
|
|
200
|
+
export { segmentDefinition, segmentItemDefinition } from './components/segment/segment.cva';
|
|
201
|
+
export { popoverDefinition } from './components/shared/popover.cva';
|
|
202
|
+
export { alertDefinition } from './components/status/Alert/alert.cva';
|
|
203
|
+
export { loaderDefinition, loaderWrapperDefinition } from './components/status/Loader/loader.cva';
|
|
204
|
+
export { statusIconDefinition, statusSeparatorDefinition } from './components/status/shared/status.cva';
|
|
205
|
+
export { toastDefinition, statusIconDefinition as toastStatusIconDefinition, statusSeparatorDefinition as toastStatusSeparatorDefinition, } from './components/status/Toast/toast.cva';
|
|
206
|
+
export { tableCellTextDefinition, tableDataDefinition, tableHeadDataDefinition, tableHeaderTextDefinition, tableHeadRowDefinition, tableRowDefinition, } from './components/table/table.cva';
|
|
207
|
+
export { linkDefinition } from './components/text/Link/link.cva';
|
|
208
|
+
export { tagDefinition } from './components/text/Tag/tag.cva';
|
|
209
|
+
export { typographyDefinition } from './components/text/Typography/typography.cva';
|
|
175
210
|
export type { DynamicColumnsOptions } from './helpers/dynamicColumns';
|
|
176
211
|
export { dynamicColumns } from './helpers/dynamicColumns';
|
|
177
212
|
export type { DynamicInputsOptions } from './helpers/dynamicInputs';
|
|
@@ -187,6 +222,7 @@ export { useForm } from './hooks/useForm';
|
|
|
187
222
|
export type { UseFormAutosaveProps } from './hooks/useFormAutosave';
|
|
188
223
|
export { useFormAutosave } from './hooks/useFormAutosave';
|
|
189
224
|
export { useIntersectionObserver } from './hooks/useIntersectionObserver';
|
|
225
|
+
export { createKeyInteractionsHandler, getKeyInteractionAction, useKeyInteractions, type KeyInteraction, type KeyInteractionAction, type KeyInteractionCallback, type KeyInteractionGroup, type KeyInteractions, type UseKeyInteractionsResult, } from './hooks/useKeyInteractions';
|
|
190
226
|
export { useLocalStorage } from './hooks/useLocalStorage';
|
|
191
227
|
export { useLongPressRepeat } from './hooks/useLongPressRepeat';
|
|
192
228
|
export { usePagination } from './hooks/usePagination';
|
package/dist/index.js
CHANGED
|
@@ -37,13 +37,18 @@ import { TextColorIcon } from "./assets/icons/TextColor.js";
|
|
|
37
37
|
import { UnderlinedIcon } from "./assets/icons/Underlined.js";
|
|
38
38
|
import { VisibilityIcon } from "./assets/icons/Visibility.js";
|
|
39
39
|
import { VisibilityOffIcon } from "./assets/icons/VisibilityOff.js";
|
|
40
|
-
import {
|
|
40
|
+
import { UIOverrides } from "./config/uiOverrides.context.js";
|
|
41
|
+
import { breadcrumbChevronDefinition, breadcrumbIconDefinition, breadcrumbItemDefinition, breadcrumbSegmentDefinition, breadcrumbsDefinition } from "./components/Breadcrumbs/breadcrumbs.cva.js";
|
|
42
|
+
import { menuDefinition, menuItemDefinition, menuPopoverDefinition, menuPopoverWrapperDefinition } from "./components/Menu/menu.cva.js";
|
|
41
43
|
import { MenuItem } from "./components/Menu/MenuItem.js";
|
|
42
44
|
import { MenuPopover } from "./components/Menu/MenuPopover.js";
|
|
45
|
+
import { tooltipDefinition, tooltipPointerHorizontalDefinition, tooltipPointerVerticalDefinition, tooltipTextDefinition } from "./components/overlays/Tooltip/tooltip.cva.js";
|
|
46
|
+
import { typographyDefinition } from "./components/text/Typography/typography.cva.js";
|
|
43
47
|
import { Typography } from "./components/text/Typography/Typography.js";
|
|
44
48
|
import { Tooltip } from "./components/overlays/Tooltip/Tooltip.js";
|
|
45
49
|
import { LinkContext } from "./config/link.context.js";
|
|
46
50
|
import { Breadcrumbs } from "./components/Breadcrumbs/Breadcrumbs.js";
|
|
51
|
+
import { loaderDefinition, loaderWrapperDefinition } from "./components/status/Loader/loader.cva.js";
|
|
47
52
|
import { Loader } from "./components/status/Loader/Loader.js";
|
|
48
53
|
import { ObjectUtils } from "./utils/object.utils.js";
|
|
49
54
|
import { isEqual } from "./utils/isEqual.js";
|
|
@@ -51,9 +56,11 @@ import { useDeepCompareEffect, useDeepCompareLayoutEffect, useDeepCompareMemo }
|
|
|
51
56
|
import { UIConfig } from "./config/uiConfig.context.js";
|
|
52
57
|
import { uiOutlineClass } from "./components/outline.clsx.js";
|
|
53
58
|
import { compoundMapper } from "./utils/compoundMapper.js";
|
|
59
|
+
import { buttonContentDefinition, buttonDefinition, buttonIconSizeDefinition, buttonSizeDefinition } from "./components/buttons/Button/button.cva.js";
|
|
54
60
|
import { Button } from "./components/buttons/Button/Button.js";
|
|
55
61
|
import { IconButton } from "./components/buttons/IconButton/IconButton.js";
|
|
56
62
|
import { InlineIconButton } from "./components/buttons/InlineIconButton/InlineIconButton.js";
|
|
63
|
+
import { pillButtonContentDefinition, pillButtonDefinition } from "./components/buttons/PillButton/pillButton.cva.js";
|
|
57
64
|
import { PillButton } from "./components/buttons/PillButton/PillButton.js";
|
|
58
65
|
import { ns, resources } from "./config/i18n.js";
|
|
59
66
|
import { useStateAndRef } from "./hooks/useStateAndRef.js";
|
|
@@ -64,14 +71,23 @@ import { Menu } from "./components/Menu/Menu.js";
|
|
|
64
71
|
import { SplitButton } from "./components/buttons/SplitButton/SplitButton.js";
|
|
65
72
|
import { TextButton } from "./components/buttons/TextButton/TextButton.js";
|
|
66
73
|
import { ToggleButton } from "./components/buttons/ToggleButton/ToggleButton.js";
|
|
74
|
+
import { checkboxDefinition, checkboxIconDefinition } from "./components/inputs/Checkbox/checkbox.cva.js";
|
|
75
|
+
import { formFieldErrorDefinition } from "./components/inputs/FormField/formFieldError.cva.js";
|
|
67
76
|
import { Checkbox } from "./components/inputs/Checkbox/Checkbox.js";
|
|
68
77
|
import { useLongPressRepeat } from "./hooks/useLongPressRepeat.js";
|
|
69
78
|
import { useScrollableListBox } from "./hooks/useScrollableListBox.js";
|
|
70
79
|
import { DateTimeUtils } from "./utils/date-time.utils.js";
|
|
80
|
+
import { labelDefinition } from "./components/inputs/shared/label.cva.js";
|
|
81
|
+
import { inputBaseDefinition, inputSideDefinition, inputSizeDefinition } from "./components/inputs/shared/input.cva.js";
|
|
82
|
+
import { popoverDefinition } from "./components/shared/popover.cva.js";
|
|
83
|
+
import { formFieldHelperDefinition } from "./components/inputs/FormField/formFieldHelper.cva.js";
|
|
71
84
|
import { FormField } from "./components/inputs/FormField/FormField.js";
|
|
85
|
+
import { useDebounceCallback } from "./hooks/useDebounceCallback.js";
|
|
72
86
|
import { DatePicker } from "./components/inputs/DateTime/DatePicker/DatePicker.js";
|
|
87
|
+
import { tagDefinition } from "./components/text/Tag/tag.cva.js";
|
|
73
88
|
import { Tag } from "./components/text/Tag/Tag.js";
|
|
74
|
-
import {
|
|
89
|
+
import { createKeyInteractionsHandler, getKeyInteractionAction, useKeyInteractions } from "./hooks/useKeyInteractions.js";
|
|
90
|
+
import { selectListBoxItemDefinition } from "./components/inputs/Selection/shared/selectItem.cva.js";
|
|
75
91
|
import { useIntersectionObserver } from "./hooks/useIntersectionObserver.js";
|
|
76
92
|
import { TextInput } from "./components/inputs/Input/TextInput/TextInput.js";
|
|
77
93
|
import { Select } from "./components/inputs/Selection/Select/Select.js";
|
|
@@ -81,24 +97,34 @@ import { TimePicker } from "./components/inputs/DateTime/TimePicker/TimePicker.j
|
|
|
81
97
|
import { RestUtils } from "./utils/rest.utils.js";
|
|
82
98
|
import { FileUtils } from "./utils/file.utils.js";
|
|
83
99
|
import { ProgressBar } from "./components/inputs/File/shared/ProgressBar.js";
|
|
100
|
+
import { fileCardListDefinition, fileUploadDropZoneDefinition } from "./components/inputs/File/shared/fileUpload.cva.js";
|
|
84
101
|
import { FileUpload } from "./components/inputs/File/FileUpload.js";
|
|
85
102
|
import { FileUploadContainer } from "./components/inputs/File/FileUploadContainer.js";
|
|
103
|
+
import { inputUploadButtonDefinition, inputUploadDropZoneDefinition } from "./components/inputs/File/shared/inputUploadButton.cva.js";
|
|
86
104
|
import { InputUpload } from "./components/inputs/File/InputUpload.js";
|
|
87
105
|
import { NumberInput } from "./components/inputs/Input/NumberInput/NumberInput.js";
|
|
106
|
+
import { NumberRangeInput } from "./components/inputs/Input/NumberRangeInput/NumberRangeInput.js";
|
|
88
107
|
import { PasswordInput } from "./components/inputs/Input/PasswordInput/PasswordInput.js";
|
|
89
108
|
import { TextArea } from "./components/inputs/Input/TextArea/TextArea.js";
|
|
90
109
|
import { Autocomplete } from "./components/inputs/Selection/Autocomplete/Autocomplete.js";
|
|
91
110
|
import { QueryAutocomplete } from "./components/inputs/Selection/Autocomplete/QueryAutocomplete.js";
|
|
92
111
|
import { Slider } from "./components/inputs/Slider/Slider.js";
|
|
112
|
+
import { toggleDefinition } from "./components/inputs/Toggle/toggle.cva.js";
|
|
93
113
|
import { Toggle } from "./components/inputs/Toggle/Toggle.js";
|
|
114
|
+
import { segmentDefinition, segmentItemDefinition } from "./components/segment/segment.cva.js";
|
|
94
115
|
import { Segment } from "./components/segment/Segment.js";
|
|
116
|
+
import { QuerySelect } from "./components/inputs/Selection/Select/QuerySelect.js";
|
|
95
117
|
import { StringUtils } from "./utils/string.utils.js";
|
|
96
118
|
import { dynamicInputs } from "./helpers/dynamicInputs.js";
|
|
97
119
|
import { Form } from "./components/inputs/Inputs/Form.js";
|
|
98
120
|
import { Inputs } from "./components/inputs/Inputs/Inputs.js";
|
|
121
|
+
import { radioDefinition } from "./components/inputs/RadioGroup/radio.cva.js";
|
|
99
122
|
import { RadioGroup } from "./components/inputs/RadioGroup/RadioGroup.js";
|
|
123
|
+
import { accordionChevronDefinition, accordionDefinition, accordionHeadingDefinition, accordionHeadingSubtitleDefinition, accordionHeadingTitleDefinition, accordionIconDefinition, accordionItemDefinition, accordionPanelContentDefinition, accordionPanelDefinition, accordionTriggerDefinition } from "./components/navigation/Accordion/accordion.cva.js";
|
|
100
124
|
import { Accordion } from "./components/navigation/Accordion/Accordion.js";
|
|
125
|
+
import { stepperDefinition, stepperIconDefinition, stepperItemDefinition, stepperNumberDefinition, stepperSeparatorDefinition, stepperSubtextDefinition, stepperTitleDefinition } from "./components/navigation/Stepper/stepper.cva.js";
|
|
101
126
|
import { Stepper } from "./components/navigation/Stepper/Stepper.js";
|
|
127
|
+
import { modalContentDefinition, modalMainDefinition, modalOverlayDefinition } from "./components/overlays/Modal/modal.cva.js";
|
|
102
128
|
import { Modal } from "./components/overlays/Modal/Modal.js";
|
|
103
129
|
import { ActionModal } from "./components/overlays/ActionModal/ActionModal.js";
|
|
104
130
|
import { Drawer } from "./components/overlays/Drawer/Drawer.js";
|
|
@@ -106,9 +132,13 @@ import { ResponsivePopover } from "./components/overlays/ResponsivePopover/Respo
|
|
|
106
132
|
import { TooltipEllipsis } from "./components/overlays/Tooltip/TooltipEllipsis.js";
|
|
107
133
|
import { PaginationList } from "./components/shared/pagination/PaginationList.js";
|
|
108
134
|
import { Pagination } from "./components/shared/pagination/Pagination.js";
|
|
135
|
+
import { alertDefinition } from "./components/status/Alert/alert.cva.js";
|
|
136
|
+
import { statusIconDefinition, statusSeparatorDefinition } from "./components/status/shared/status.cva.js";
|
|
109
137
|
import { Alert } from "./components/status/Alert/Alert.js";
|
|
138
|
+
import { statusIconDefinition as statusIconDefinition$1, statusSeparatorDefinition as statusSeparatorDefinition$1, toastDefinition } from "./components/status/Toast/toast.cva.js";
|
|
110
139
|
import { Toast, ToastContainer } from "./components/status/Toast/Toast.js";
|
|
111
140
|
import { useToast } from "./components/status/Toast/useToast.js";
|
|
141
|
+
import { tableCellTextDefinition, tableDataDefinition, tableHeadDataDefinition, tableHeadRowDefinition, tableHeaderTextDefinition, tableRowDefinition } from "./components/table/table.cva.js";
|
|
112
142
|
import { CellText } from "./components/table/CellText.js";
|
|
113
143
|
import { HeaderText } from "./components/table/HeaderText.js";
|
|
114
144
|
import { logger } from "./utils/logger.js";
|
|
@@ -118,6 +148,7 @@ import { useTranslationMemo } from "./hooks/useTranslationMemo.js";
|
|
|
118
148
|
import { ColumnConfigModal } from "./components/table/ColumnConfig.js";
|
|
119
149
|
import { InfiniteTable } from "./components/table/InfiniteTable.js";
|
|
120
150
|
import { PaginatedTable } from "./components/table/PaginatedTable.js";
|
|
151
|
+
import { linkDefinition } from "./components/text/Link/link.cva.js";
|
|
121
152
|
import { Link } from "./components/text/Link/Link.js";
|
|
122
153
|
import { Confirmation } from "./config/confirmation.context.js";
|
|
123
154
|
import { UIRouter } from "./config/router.context.js";
|
|
@@ -135,4 +166,4 @@ import { useSorting } from "./hooks/useSorting.js";
|
|
|
135
166
|
import { useTableColumnConfig } from "./hooks/useTableColumnConfig.js";
|
|
136
167
|
import { ArrayUtils } from "./utils/array.utils.js";
|
|
137
168
|
import { QueriesUtils } from "./utils/queries.utils.js";
|
|
138
|
-
export { Accordion, ActionModal, Alert, AlignCenterIcon, AlignLeftIcon, AlignLeftRightIcon, AlignRightIcon, ArrayUtils, ArrowDropDownIcon, ArrowDropUpIcon, ArrowLeftIcon, ArrowRightIcon, Autocomplete, BoldIcon, BottomSheet, Breadcrumbs, BulletedListIcon, Button, CalendarIcon, CellText, CheckIcon, Checkbox, CheckboxCheckmarkIcon, CheckboxIndeterminateIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ClockIcon, CloseIcon, ColumnConfigModal, Confirmation, DatePicker, DateRangePicker, DateTimeIcon, DateTimePicker, DateTimeUtils, DateUtils, DomUtils, Drawer, FileUpload, FileUploadContainer, FileUtils, Form, FormField, HeaderText, HighlightIcon, HighlightOnIcon, HomeIcon, IconButton, InfiniteTable, InfoIcon, InlineIconButton, InputUpload, Inputs, ItalicIcon, Link, LinkContext, LinkIcon, Loader, Menu, MenuIcon, MenuItem, MenuPopover, Modal, NumberInput, NumberedListIcon, ObjectUtils, PaginatedTable, Pagination, PaginationList, PasswordInput, PillButton, PointerHorizontalIcon, PointerVerticalIcon, ProgressBar, QueriesUtils, QueryAutocomplete, RadioGroup, ResponsivePopover, RestUtils, RoutingUtils, Segment, Select, SendIcon, Slider, SplitButton, Stepper, StrikethroughIcon, StringUtils, Table, Tag, TextArea, TextButton, TextColorIcon, TextInput, ThemeContext, TimePicker, Toast, ToastContainer, Toggle, ToggleButton, Tooltip, TooltipEllipsis, Typography, UIConfig,
|
|
169
|
+
export { Accordion, ActionModal, Alert, AlignCenterIcon, AlignLeftIcon, AlignLeftRightIcon, AlignRightIcon, ArrayUtils, ArrowDropDownIcon, ArrowDropUpIcon, ArrowLeftIcon, ArrowRightIcon, Autocomplete, BoldIcon, BottomSheet, Breadcrumbs, BulletedListIcon, Button, CalendarIcon, CellText, CheckIcon, Checkbox, CheckboxCheckmarkIcon, CheckboxIndeterminateIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ClockIcon, CloseIcon, ColumnConfigModal, Confirmation, DatePicker, DateRangePicker, DateTimeIcon, DateTimePicker, DateTimeUtils, DateUtils, DomUtils, Drawer, FileUpload, FileUploadContainer, FileUtils, Form, FormField, HeaderText, HighlightIcon, HighlightOnIcon, HomeIcon, IconButton, InfiniteTable, InfoIcon, InlineIconButton, InputUpload, Inputs, ItalicIcon, Link, LinkContext, LinkIcon, Loader, Menu, MenuIcon, MenuItem, MenuPopover, Modal, NumberInput, NumberRangeInput, NumberedListIcon, ObjectUtils, PaginatedTable, Pagination, PaginationList, PasswordInput, PillButton, PointerHorizontalIcon, PointerVerticalIcon, ProgressBar, QueriesUtils, QueryAutocomplete, QuerySelect, RadioGroup, ResponsivePopover, RestUtils, RoutingUtils, Segment, Select, SendIcon, Slider, SplitButton, Stepper, StrikethroughIcon, StringUtils, Table, Tag, TextArea, TextButton, TextColorIcon, TextInput, ThemeContext, TimePicker, Toast, ToastContainer, Toggle, ToggleButton, Tooltip, TooltipEllipsis, Typography, UIConfig, UIOverrides, UIRouter, UnderlinedIcon, VisibilityIcon, VisibilityOffIcon, accordionChevronDefinition, accordionDefinition, accordionHeadingDefinition, accordionHeadingSubtitleDefinition, accordionHeadingTitleDefinition, accordionIconDefinition, accordionItemDefinition, accordionPanelContentDefinition, accordionPanelDefinition, accordionTriggerDefinition, alertDefinition, breadcrumbChevronDefinition, breadcrumbIconDefinition, breadcrumbItemDefinition, breadcrumbSegmentDefinition, breadcrumbsDefinition, buttonContentDefinition, buttonDefinition, buttonIconSizeDefinition, buttonSizeDefinition, checkboxDefinition, checkboxIconDefinition, compoundMapper, createKeyInteractionsHandler, dynamicColumns, dynamicInputs, fileCardListDefinition, fileUploadDropZoneDefinition, formFieldErrorDefinition, formFieldHelperDefinition, getKeyInteractionAction, inputBaseDefinition, inputSideDefinition, inputSizeDefinition, inputUploadButtonDefinition, inputUploadDropZoneDefinition, isEqual, labelDefinition, linkDefinition, loaderDefinition, loaderWrapperDefinition, logger, menuDefinition, menuItemDefinition, menuPopoverDefinition, menuPopoverWrapperDefinition, modalContentDefinition, modalMainDefinition, modalOverlayDefinition, ns, pillButtonContentDefinition, pillButtonDefinition, popoverDefinition, radioDefinition, resources, segmentDefinition, segmentItemDefinition, selectListBoxItemDefinition, statusIconDefinition, statusSeparatorDefinition, stepperDefinition, stepperIconDefinition, stepperItemDefinition, stepperNumberDefinition, stepperSeparatorDefinition, stepperSubtextDefinition, stepperTitleDefinition, tableCellTextDefinition, tableDataDefinition, tableHeadDataDefinition, tableHeadRowDefinition, tableHeaderTextDefinition, tableRowDefinition, tagDefinition, toastDefinition, statusIconDefinition$1 as toastStatusIconDefinition, statusSeparatorDefinition$1 as toastStatusSeparatorDefinition, toggleDefinition, tooltipDefinition, tooltipPointerHorizontalDefinition, tooltipPointerVerticalDefinition, tooltipTextDefinition, typographyDefinition, uiOutlineClass, useAutosave, useBreakpoint, useDebounceCallback, useDeepCompareEffect, useDeepCompareLayoutEffect, useDeepCompareMemo, useFilters, useForm, useFormAutosave, useIntersectionObserver, useKeyInteractions, useLocalStorage, useLongPressRepeat, usePagination, useScrollableListBox, useSorting, useStateAndRef, useTableColumnConfig, useTableNav, useToast, useTranslationMemo };
|
package/dist/tw-ui-plugin.js
CHANGED
|
@@ -4,9 +4,14 @@ var uiPlugin = plugin(({ addVariant }) => {
|
|
|
4
4
|
addVariant("input-filled", [
|
|
5
5
|
"&:has(input:not(:placeholder-shown))",
|
|
6
6
|
"&:is(:where(.group\\/input-content):has(:is(input:not(:placeholder-shown))) *)",
|
|
7
|
+
"&:is(:where(.group\\/input-content)[data-is-filled])",
|
|
8
|
+
"&:is(:where(.group\\/input-content)[data-is-filled] *)",
|
|
9
|
+
"&:is(:where(.group\\/input-content)[data-has-selection])",
|
|
10
|
+
"&:is(:where(.group\\/input-content)[data-has-selection] *)",
|
|
7
11
|
"&:is(:where(.group\\/select-content)[data-has-selection] *)",
|
|
8
12
|
"&:is(:where(.group\\/select-content)[data-has-search] *)",
|
|
9
13
|
"&:is(:where(.group\\/select-content)[data-searchable-focus-within] *)",
|
|
14
|
+
"&:is(:where(.group\\/radio-group-content)[data-radio-group-content] *)",
|
|
10
15
|
"&:is(:where(.group\\/date-picker-content)[data-has-selection] *)",
|
|
11
16
|
"&:is(:where(.group\\/date-picker-content)[data-focus-within] *)"
|
|
12
17
|
].join(", "));
|
|
@@ -16,6 +21,7 @@ var uiPlugin = plugin(({ addVariant }) => {
|
|
|
16
21
|
"&:is(:where(.group\\/select-content)[data-disabled] *)",
|
|
17
22
|
"&:is(:where(.group\\/select-content):has(*:is(input:disabled)) *)",
|
|
18
23
|
"&:is(:where(.group):has([data-disabled]) *)",
|
|
24
|
+
"&:is(:where(.group\\/radio-group-content)[data-disabled] *)",
|
|
19
25
|
"&:is(:where(.group\\/text-area):has(*:is(textarea:disabled)) *)",
|
|
20
26
|
"&:is(:where(.group):has(*:is(textarea:disabled)) *)",
|
|
21
27
|
"&:is(:where(.group\\/text-editor):where([data-rac])[data-disabled] *)",
|
|
@@ -1,15 +1,43 @@
|
|
|
1
1
|
import { CalendarDate, CalendarDateTime, DateValue, ZonedDateTime } from '@internationalized/date';
|
|
2
2
|
export declare namespace DateTimeUtils {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
interface LocalizedDateFormatOptions {
|
|
4
|
+
shouldForceLeadingZeros?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface LocalizedDatePart {
|
|
7
|
+
type: Intl.DateTimeFormatPartTypes;
|
|
8
|
+
value: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
isPlaceholder: boolean;
|
|
11
|
+
}
|
|
12
|
+
export function getDatePlaceholder(locale?: string, options?: LocalizedDateFormatOptions): string;
|
|
13
|
+
export function getTimePlaceholder(locale?: string): string;
|
|
14
|
+
export function getDateTimePlaceholder(locale?: string, options?: LocalizedDateFormatOptions): string;
|
|
15
|
+
export function getDateRangePlaceholder(locale?: string, options?: LocalizedDateFormatOptions): string;
|
|
16
|
+
export function formatCalendarDateLocalized(calendarDate: CalendarDate, locale?: string, options?: LocalizedDateFormatOptions): string;
|
|
17
|
+
export function formatCalendarDatePartsLocalized(calendarDate?: CalendarDate | null, locale?: string, options?: LocalizedDateFormatOptions): LocalizedDatePart[];
|
|
18
|
+
export function formatCalendarDateTimePartsLocalized(calendarDateTime?: Pick<CalendarDateTime, "day" | "month" | "year" | "hour" | "minute"> | null, locale?: string, options?: LocalizedDateFormatOptions): LocalizedDatePart[];
|
|
19
|
+
export function formatTimeLocalized(timeValue: {
|
|
20
|
+
hour: number;
|
|
21
|
+
minute: number;
|
|
22
|
+
}, locale?: string, options?: LocalizedDateFormatOptions): string;
|
|
23
|
+
export function formatTimePartsLocalized(timeValue?: {
|
|
24
|
+
hour: number;
|
|
25
|
+
minute: number;
|
|
26
|
+
} | null, locale?: string, options?: LocalizedDateFormatOptions): LocalizedDatePart[];
|
|
27
|
+
export function formatCalendarDateTimeLocalized(calendarDateTime: Pick<CalendarDateTime, "day" | "month" | "year" | "hour" | "minute">, locale?: string, options?: LocalizedDateFormatOptions): string;
|
|
28
|
+
export function fromISOtoZonedDateTime(isoString: string, timeZone?: string): ZonedDateTime;
|
|
29
|
+
export function fromDateValueToISO(dateValue: DateValue, timeZone?: string): string;
|
|
30
|
+
export function fromDateValueFieldsToUTCISO(dateValue: DateValue): string;
|
|
31
|
+
export function getCurrentWallClockCalendarDateTime(): CalendarDateTime;
|
|
32
|
+
export function fromDateValueToOffsetISO(dateValue: DateValue, timeZone?: string): string;
|
|
33
|
+
export function fromLocalToZonedDateTime(date: Date, timeZone?: string): ZonedDateTime;
|
|
34
|
+
export function fromDateValueToLocal(dateValue: DateValue, timeZone?: string): Date;
|
|
35
|
+
export function fromCalendarDateToUTCISO(calendarDate: CalendarDate, options?: {
|
|
9
36
|
endOfDay?: boolean;
|
|
10
37
|
}): string;
|
|
11
|
-
function fromUTCISOToCalendarDate(isoString: string): CalendarDate;
|
|
12
|
-
function fromCalendarDateTimeToUTCISO(calendarDateTime: CalendarDateTime): string;
|
|
13
|
-
function fromUTCISOToCalendarDateTime(isoString: string, timeZone?: string): CalendarDateTime;
|
|
14
|
-
function formatTextDateToCalendarDateTime(textDate: string | null, timeZone?: string, locale?: string): CalendarDateTime | null;
|
|
38
|
+
export function fromUTCISOToCalendarDate(isoString: string): CalendarDate;
|
|
39
|
+
export function fromCalendarDateTimeToUTCISO(calendarDateTime: CalendarDateTime): string;
|
|
40
|
+
export function fromUTCISOToCalendarDateTime(isoString: string, timeZone?: string): CalendarDateTime;
|
|
41
|
+
export function formatTextDateToCalendarDateTime(textDate: string | null, timeZone?: string, locale?: string): CalendarDateTime | null;
|
|
42
|
+
export {};
|
|
15
43
|
}
|