@povio/ui 3.4.0-rc.14 → 3.4.0-rc.16
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/README.md +1 -1
- package/dist/assets/locales/en/{translation.json.js → translation.js} +1 -0
- package/dist/assets/locales/sl/{translation.json.js → translation.js} +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +17 -14
- package/dist/components/Breadcrumbs/Breadcrumbs.js +206 -55
- package/dist/components/Breadcrumbs/breadcrumbs.cva.d.ts +39 -40
- package/dist/components/Breadcrumbs/breadcrumbs.cva.js +5 -5
- package/dist/components/Menu/Menu.d.ts +20 -18
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuDesktop.js +2 -2
- package/dist/components/Menu/MenuItem.d.ts +6 -3
- package/dist/components/Menu/MenuItem.js +2 -2
- package/dist/components/Menu/MenuMobile.js +2 -2
- package/dist/components/Menu/MenuPopover.d.ts +7 -5
- package/dist/components/Menu/MenuPopover.js +2 -2
- package/dist/components/Menu/menu.cva.d.ts +35 -35
- package/dist/components/Menu/menu.cva.js +4 -4
- package/dist/components/buttons/Button/Button.d.ts +25 -23
- package/dist/components/buttons/Button/Button.js +1 -1
- package/dist/components/buttons/Button/button.cva.d.ts +89 -95
- package/dist/components/buttons/Button/button.cva.js +8 -44
- package/dist/components/buttons/IconButton/IconButton.d.ts +13 -10
- package/dist/components/buttons/IconButton/IconButton.js +1 -1
- package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +15 -12
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +34 -9
- package/dist/components/buttons/PillButton/PillButton.d.ts +14 -11
- package/dist/components/buttons/PillButton/PillButton.js +2 -2
- package/dist/components/buttons/PillButton/pillButton.cva.d.ts +33 -38
- package/dist/components/buttons/PillButton/pillButton.cva.js +5 -5
- package/dist/components/buttons/SplitButton/SplitButton.d.ts +14 -11
- package/dist/components/buttons/SplitButton/SplitButton.js +2 -2
- package/dist/components/buttons/TextButton/TextButton.d.ts +14 -11
- package/dist/components/buttons/TextButton/TextButton.js +1 -1
- package/dist/components/buttons/ToggleButton/ToggleButton.d.ts +11 -8
- package/dist/components/buttons/ToggleButton/ToggleButton.js +1 -1
- package/dist/components/buttons/shared/ButtonContent.js +80 -22
- package/dist/components/buttons/shared/buttonContent.cva.d.ts +6 -8
- package/dist/components/buttons/shared/buttonContent.cva.js +1 -1
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +22 -19
- package/dist/components/inputs/Checkbox/Checkbox.js +45 -201
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +1 -1
- package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +27 -25
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +126 -355
- package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +73 -89
- package/dist/components/inputs/Checkbox/checkbox.cva.js +8 -8
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +40 -37
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +44 -35
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +46 -43
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +172 -168
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +41 -38
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +21 -18
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +29 -26
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +166 -541
- package/dist/components/inputs/DateTime/shared/Calendar.js +17 -14
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +17 -17
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +5 -4
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +8 -7
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +43 -43
- package/dist/components/inputs/DateTime/shared/DateField.js +19 -20
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +11 -45
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +1 -1
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +26 -102
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +28 -83
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +2 -2
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +58 -103
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +82 -193
- package/dist/components/inputs/DateTime/shared/TimeField.js +8 -27
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +111 -281
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +71 -214
- package/dist/components/inputs/DateTime/shared/YearPicker.js +68 -119
- package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +8 -5
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +16 -15
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +1 -1
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +11 -50
- package/dist/components/inputs/DateTime/shared/datePickerValue.utils.js +4 -0
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +12 -11
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +12 -26
- package/dist/components/inputs/File/FileUpload.d.ts +7 -4
- package/dist/components/inputs/File/FileUpload.js +49 -88
- package/dist/components/inputs/File/FileUploadContainer.d.ts +5 -3
- package/dist/components/inputs/File/FileUploadContainer.js +10 -17
- package/dist/components/inputs/File/InputUpload.d.ts +7 -4
- package/dist/components/inputs/File/InputUpload.js +26 -65
- package/dist/components/inputs/File/fileUpload.types.d.ts +87 -84
- package/dist/components/inputs/File/inputUpload.types.d.ts +34 -32
- package/dist/components/inputs/File/inputUpload.types.js +1 -1
- package/dist/components/inputs/File/shared/FileCard.js +47 -110
- package/dist/components/inputs/File/shared/FileCardList.js +16 -54
- package/dist/components/inputs/File/shared/FileUploadContent.js +47 -188
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +1 -1
- package/dist/components/inputs/File/shared/FileUploadContentError.js +3 -3
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +3 -3
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +1 -1
- package/dist/components/inputs/File/shared/InputUploadContent.js +36 -149
- package/dist/components/inputs/File/shared/InputUploadFilled.js +8 -48
- package/dist/components/inputs/File/shared/ProgressBar.d.ts +6 -4
- package/dist/components/inputs/File/shared/ProgressBar.js +1 -1
- package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +17 -16
- package/dist/components/inputs/File/shared/fileUpload.cva.js +1 -1
- package/dist/components/inputs/File/shared/inputUploadButton.cva.d.ts +24 -25
- package/dist/components/inputs/File/shared/inputUploadButton.cva.js +5 -5
- package/dist/components/inputs/File/shared/progressBar.cva.d.ts +34 -33
- package/dist/components/inputs/File/shared/progressBar.cva.js +5 -5
- package/dist/components/inputs/FormField/FormField.d.ts +21 -17
- package/dist/components/inputs/FormField/FormField.js +39 -119
- package/dist/components/inputs/FormField/FormFieldError.d.ts +9 -6
- package/dist/components/inputs/FormField/FormFieldError.js +6 -24
- package/dist/components/inputs/FormField/FormFieldHeader.d.ts +15 -13
- package/dist/components/inputs/FormField/FormFieldHeader.js +22 -78
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +7 -31
- package/dist/components/inputs/FormField/FormFieldHelper.js +7 -25
- package/dist/components/inputs/FormField/FormFieldLabel.js +9 -40
- package/dist/components/inputs/FormField/formFieldError.cva.d.ts +13 -12
- package/dist/components/inputs/FormField/formFieldError.cva.js +1 -1
- package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +13 -12
- package/dist/components/inputs/FormField/formFieldHeader.cva.js +1 -1
- package/dist/components/inputs/FormField/formFieldHelper.cva.d.ts +13 -12
- package/dist/components/inputs/FormField/formFieldHelper.cva.js +1 -1
- package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +25 -21
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +145 -394
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +11 -45
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +120 -553
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +37 -34
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +93 -164
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.d.ts +10 -7
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +12 -50
- package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +8 -7
- package/dist/components/inputs/Input/TextArea/TextArea.cva.js +1 -1
- package/dist/components/inputs/Input/TextArea/TextArea.d.ts +20 -18
- package/dist/components/inputs/Input/TextArea/TextArea.js +96 -304
- package/dist/components/inputs/Input/TextInput/TextInput.d.ts +24 -20
- package/dist/components/inputs/Input/TextInput/TextInput.js +151 -380
- package/dist/components/inputs/Input/shared/InputContent.d.ts +25 -27
- package/dist/components/inputs/Input/shared/InputContent.js +59 -193
- package/dist/components/inputs/Input/shared/numberStatic.utils.js +1 -1
- package/dist/components/inputs/Inputs/Form.d.ts +19 -19
- package/dist/components/inputs/Inputs/Form.js +23 -51
- package/dist/components/inputs/Inputs/InputItem.d.ts +77 -58
- package/dist/components/inputs/Inputs/InputItem.js +16 -65
- package/dist/components/inputs/Inputs/Inputs.d.ts +12 -9
- package/dist/components/inputs/Inputs/Inputs.js +11 -37
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +23 -21
- package/dist/components/inputs/RadioGroup/RadioGroup.js +114 -320
- package/dist/components/inputs/RadioGroup/radio.cva.d.ts +49 -59
- package/dist/components/inputs/RadioGroup/radio.cva.js +6 -6
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +15 -11
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +25 -55
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +8 -4
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +46 -117
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +25 -38
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +18 -14
- package/dist/components/inputs/Selection/Select/QuerySelect.js +58 -115
- package/dist/components/inputs/Selection/Select/Select.d.ts +15 -11
- package/dist/components/inputs/Selection/Select/Select.js +35 -111
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +39 -37
- package/dist/components/inputs/Selection/shared/SelectBase.js +26 -70
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +144 -392
- package/dist/components/inputs/Selection/shared/SelectInput.js +161 -428
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +26 -100
- package/dist/components/inputs/Selection/shared/SelectListBox.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +35 -85
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +16 -69
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +23 -71
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +9 -58
- package/dist/components/inputs/Selection/shared/SelectMobile.js +1 -1
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +14 -39
- package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +8 -15
- package/dist/components/inputs/Selection/shared/querySelect.utils.js +6 -6
- package/dist/components/inputs/Selection/shared/select.context.js +52 -52
- package/dist/components/inputs/Selection/shared/select.types.d.ts +60 -62
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +8 -5
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +1 -1
- package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +12 -11
- package/dist/components/inputs/Selection/shared/selectInput.cva.js +1 -1
- package/dist/components/inputs/Selection/shared/selectItem.cva.d.ts +16 -15
- package/dist/components/inputs/Selection/shared/selectItem.cva.js +1 -1
- package/dist/components/inputs/Selection/shared/staticSelect.utils.js +3 -3
- package/dist/components/inputs/Selection/shared/useSelectItems.js +12 -12
- package/dist/components/inputs/Skeleton/InputFrame.js +27 -27
- package/dist/components/inputs/Slider/Slider.d.ts +20 -17
- package/dist/components/inputs/Slider/Slider.js +86 -268
- package/dist/components/inputs/TextEditor/TextEditor.d.ts +24 -20
- package/dist/components/inputs/TextEditor/TextEditor.js +21 -62
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +11 -37
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +30 -102
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +45 -194
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +28 -88
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +14 -48
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +19 -66
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +15 -49
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +32 -92
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +54 -126
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +38 -141
- package/dist/components/inputs/TextEditor/textEditor.types.js +1 -1
- package/dist/components/inputs/Toggle/Toggle.d.ts +18 -15
- package/dist/components/inputs/Toggle/Toggle.js +50 -210
- package/dist/components/inputs/Toggle/toggle.cva.d.ts +15 -18
- package/dist/components/inputs/Toggle/toggle.cva.js +3 -3
- package/dist/components/inputs/shared/CheckContent.js +11 -21
- package/dist/components/inputs/shared/InputClear.js +30 -102
- package/dist/components/inputs/shared/TooltipWrapper.js +13 -48
- package/dist/components/inputs/shared/form.binding.d.ts +7 -27
- package/dist/components/inputs/shared/form.binding.js +8 -37
- package/dist/components/inputs/shared/form.types.d.ts +11 -11
- package/dist/components/inputs/shared/form.types.js +1 -1
- package/dist/components/inputs/shared/input.cva.d.ts +76 -85
- package/dist/components/inputs/shared/input.cva.js +9 -19
- package/dist/components/inputs/shared/label.cva.d.ts +18 -18
- package/dist/components/inputs/shared/label.cva.js +2 -2
- package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +10 -7
- package/dist/components/inputs/shared/tooltipWrapper.cva.js +1 -1
- package/dist/components/inputs/shared/useFieldAccessibility.js +19 -0
- package/dist/components/inputs/shared/useStaticInputHandoff.js +50 -105
- package/dist/components/navigation/Accordion/Accordion.d.ts +5 -3
- package/dist/components/navigation/Accordion/Accordion.js +69 -22
- package/dist/components/navigation/Accordion/AccordionItem.js +86 -41
- package/dist/components/navigation/Accordion/accordion.cva.d.ts +76 -100
- package/dist/components/navigation/Accordion/accordion.cva.js +10 -10
- package/dist/components/navigation/Accordion/accordion.types.d.ts +52 -49
- package/dist/components/navigation/Stepper/Stepper.d.ts +5 -2
- package/dist/components/navigation/Stepper/Stepper.js +67 -22
- package/dist/components/navigation/Stepper/StepperItem.js +2 -2
- package/dist/components/navigation/Stepper/StepperSeparator.js +1 -1
- package/dist/components/navigation/Stepper/stepper.cva.d.ts +73 -86
- package/dist/components/navigation/Stepper/stepper.cva.js +7 -7
- package/dist/components/navigation/Stepper/stepper.types.d.ts +29 -37
- package/dist/components/outline.clsx.d.ts +4 -2
- package/dist/components/outline.clsx.js +2 -2
- package/dist/components/overlays/ActionModal/ActionModal.d.ts +23 -21
- package/dist/components/overlays/ActionModal/ActionModal.js +170 -36
- package/dist/components/overlays/BottomSheet/BottomSheet.d.ts +30 -28
- package/dist/components/overlays/BottomSheet/BottomSheet.js +13 -10
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +2 -2
- package/dist/components/overlays/Drawer/Drawer.d.ts +17 -14
- package/dist/components/overlays/Drawer/Drawer.js +3 -3
- package/dist/components/overlays/Modal/Modal.d.ts +18 -14
- package/dist/components/overlays/Modal/Modal.js +3 -1
- package/dist/components/overlays/Modal/modal.cva.d.ts +34 -34
- package/dist/components/overlays/Modal/modal.cva.js +4 -4
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.d.ts +16 -14
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +110 -29
- package/dist/components/overlays/Tooltip/Tooltip.d.ts +15 -12
- package/dist/components/overlays/Tooltip/Tooltip.js +3 -3
- package/dist/components/overlays/Tooltip/TooltipEllipsis.d.ts +10 -7
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +2 -2
- package/dist/components/overlays/Tooltip/tooltip.cva.d.ts +39 -45
- package/dist/components/overlays/Tooltip/tooltip.cva.js +4 -4
- package/dist/components/segment/Segment.d.ts +7 -4
- package/dist/components/segment/Segment.js +3 -3
- package/dist/components/segment/SegmentItem.js +2 -2
- package/dist/components/segment/segment.cva.d.ts +20 -18
- package/dist/components/segment/segment.cva.js +2 -2
- package/dist/components/segment/segment.types.d.ts +33 -30
- package/dist/components/shared/pagination/Pagination.d.ts +11 -8
- package/dist/components/shared/pagination/Pagination.js +108 -22
- package/dist/components/shared/pagination/PaginationList.d.ts +17 -14
- package/dist/components/shared/pagination/PaginationList.js +2 -2
- package/dist/components/shared/pagination/minWidth.cva.js +1 -1
- package/dist/components/shared/popover.cva.d.ts +8 -7
- package/dist/components/shared/popover.cva.js +1 -1
- package/dist/components/status/Alert/Alert.d.ts +13 -10
- package/dist/components/status/Alert/Alert.js +97 -30
- package/dist/components/status/Alert/alert.cva.d.ts +21 -18
- package/dist/components/status/Alert/alert.cva.js +1 -1
- package/dist/components/status/Loader/Loader.d.ts +7 -5
- package/dist/components/status/Loader/Loader.js +1 -1
- package/dist/components/status/Loader/loader.cva.d.ts +23 -26
- package/dist/components/status/Loader/loader.cva.js +4 -4
- package/dist/components/status/Toast/Toast.d.ts +15 -12
- package/dist/components/status/Toast/Toast.js +2 -2
- package/dist/components/status/Toast/toast.cva.d.ts +58 -77
- package/dist/components/status/Toast/toast.cva.js +6 -6
- package/dist/components/status/Toast/useToast.d.ts +14 -11
- package/dist/components/status/Toast/useToast.js +1 -1
- package/dist/components/status/shared/status.cva.d.ts +32 -28
- package/dist/components/status/shared/status.cva.js +2 -2
- package/dist/components/table/CellText.d.ts +10 -7
- package/dist/components/table/CellText.js +3 -2
- package/dist/components/table/ColumnConfig.d.ts +12 -9
- package/dist/components/table/ColumnConfig.js +6 -5
- package/dist/components/table/HeaderText.d.ts +10 -7
- package/dist/components/table/HeaderText.js +3 -2
- package/dist/components/table/InfiniteTable.d.ts +10 -8
- package/dist/components/table/InfiniteTable.js +67 -16
- package/dist/components/table/PaginatedTable.d.ts +12 -10
- package/dist/components/table/PaginatedTable.js +1 -1
- package/dist/components/table/Table.d.ts +34 -35
- package/dist/components/table/Table.js +18 -16
- package/dist/components/table/table.cva.d.ts +40 -59
- package/dist/components/table/table.cva.js +7 -7
- package/dist/components/text/Link/Link.d.ts +10 -8
- package/dist/components/text/Link/Link.js +2 -2
- package/dist/components/text/Link/link.cva.d.ts +14 -11
- package/dist/components/text/Link/link.cva.js +1 -1
- package/dist/components/text/Pill/Pill.d.ts +17 -14
- package/dist/components/text/Pill/Pill.js +1 -1
- package/dist/components/text/Tag/Tag.d.ts +17 -14
- package/dist/components/text/Tag/Tag.js +1 -1
- package/dist/components/text/Tag/tag.cva.d.ts +18 -15
- package/dist/components/text/Tag/tag.cva.js +1 -1
- package/dist/components/text/Typography/Typography.d.ts +10 -9
- package/dist/components/text/Typography/Typography.js +23 -8
- package/dist/components/text/Typography/typography.cva.d.ts +51 -48
- package/dist/components/text/Typography/typography.cva.js +1 -1
- package/dist/config/confirmation.context.d.ts +22 -19
- package/dist/config/confirmation.context.js +2 -2
- package/dist/config/i18n.d.ts +311 -308
- package/dist/config/i18n.js +4 -4
- package/dist/config/link.context.d.ts +9 -7
- package/dist/config/link.context.js +2 -2
- package/dist/config/router.context.d.ts +11 -9
- package/dist/config/router.context.js +2 -2
- package/dist/config/theme.context.d.ts +19 -16
- package/dist/config/theme.context.js +99 -46
- package/dist/config/uiConfig.context.d.ts +80 -75
- package/dist/config/uiConfig.context.js +46 -9
- package/dist/config/uiOverrides.context.d.ts +205 -204
- package/dist/config/uiOverrides.context.js +2 -2
- package/dist/helpers/dynamicColumns.d.ts +27 -28
- package/dist/helpers/dynamicColumns.js +32 -31
- package/dist/helpers/dynamicInputs.d.ts +66 -74
- package/dist/helpers/dynamicInputs.js +21 -20
- package/dist/hooks/useAutosave.d.ts +12 -9
- package/dist/hooks/useAutosave.js +1 -1
- package/dist/hooks/useBreakpoint.d.ts +4 -2
- package/dist/hooks/useBreakpoint.js +37 -10
- package/dist/hooks/useDebounceCallback.d.ts +7 -4
- package/dist/hooks/useDebounceCallback.js +51 -17
- package/dist/hooks/useDeepCompare.d.ts +7 -4
- package/dist/hooks/useDeepCompare.js +4 -4
- package/dist/hooks/useFilters.d.ts +10 -7
- package/dist/hooks/useFilters.js +8 -6
- package/dist/hooks/useForm.d.ts +35 -35
- package/dist/hooks/useForm.js +6 -6
- package/dist/hooks/useFormAutosave.d.ts +16 -13
- package/dist/hooks/useFormAutosave.js +18 -17
- package/dist/hooks/useIntersectionObserver.d.ts +7 -5
- package/dist/hooks/useIntersectionObserver.js +2 -2
- package/dist/hooks/useKeyInteractions.d.ts +19 -16
- package/dist/hooks/useKeyInteractions.js +5 -5
- package/dist/hooks/useLocalStorage.d.ts +10 -8
- package/dist/hooks/useLocalStorage.js +3 -3
- package/dist/hooks/useLongPressRepeat.d.ts +10 -7
- package/dist/hooks/useLongPressRepeat.js +55 -20
- package/dist/hooks/usePagination.d.ts +9 -6
- package/dist/hooks/usePagination.js +2 -2
- package/dist/hooks/useQueryAutocomplete.js +2 -2
- package/dist/hooks/useScrollableListBox.d.ts +5 -2
- package/dist/hooks/useScrollableListBox.js +1 -1
- package/dist/hooks/useSorting.d.ts +8 -5
- package/dist/hooks/useSorting.js +1 -1
- package/dist/hooks/useStateAndRef.d.ts +5 -3
- package/dist/hooks/useStateAndRef.js +2 -2
- package/dist/hooks/useTableColumnConfig.d.ts +15 -13
- package/dist/hooks/useTableColumnConfig.js +1 -1
- package/dist/hooks/useTableNav.d.ts +79 -77
- package/dist/hooks/useTableNav.js +19 -37
- package/dist/hooks/useTranslationMemo.d.ts +5 -3
- package/dist/index.d.ts +145 -1
- package/dist/index.js +3 -3
- package/dist/rhf/Inputs.d.ts +55 -54
- package/dist/rhf/Inputs.js +62 -17
- package/dist/rhf/components.d.ts +77 -75
- package/dist/rhf/components.js +27 -27
- package/dist/rhf/dynamicInputs.d.ts +16 -14
- package/dist/rhf/dynamicInputs.js +1 -1
- package/dist/rhf/fieldAdapter.d.ts +8 -6
- package/dist/rhf/form.types.d.ts +11 -10
- package/dist/rhf/useAutosave.d.ts +12 -9
- package/dist/rhf/useForm.d.ts +13 -13
- package/dist/rhf/useFormAutosave.d.ts +17 -14
- package/dist/rhf/useFormAutosave.js +121 -34
- package/dist/rhf.d.ts +146 -225
- package/dist/rhf.js +120 -0
- package/dist/tanstack.d.ts +151 -224
- package/dist/tanstack.js +3 -3
- package/dist/text-editor.d.ts +2 -2
- package/dist/tw-ui-plugin.d.ts +4 -2
- package/dist/tw-ui-plugin.js +1 -1
- package/dist/types/common.d.ts +11 -12
- package/dist/types/error-handling.d.ts +8 -5
- package/dist/utils/array.utils.d.ts +5 -2
- package/dist/utils/array.utils.js +1 -1
- package/dist/utils/compoundMapper.d.ts +12 -14
- package/dist/utils/compoundMapper.js +1 -1
- package/dist/utils/date-time.utils.d.ts +44 -41
- package/dist/utils/date-time.utils.js +7 -9
- package/dist/utils/date.utils.d.ts +6 -4
- package/dist/utils/date.utils.js +29 -6
- package/dist/utils/dom.utils.d.ts +7 -4
- package/dist/utils/dom.utils.js +2 -2
- package/dist/utils/file.utils.d.ts +20 -12
- package/dist/utils/file.utils.js +19 -8
- package/dist/utils/intl.utils.d.ts +7 -5
- package/dist/utils/intl.utils.js +2 -2
- package/dist/utils/isEqual.d.ts +4 -1
- package/dist/utils/isEqual.js +3 -3
- package/dist/utils/logger.d.ts +9 -6
- package/dist/utils/logger.js +1 -1
- package/dist/utils/object.utils.d.ts +12 -9
- package/dist/utils/object.utils.js +1 -1
- package/dist/utils/queries.utils.d.ts +6 -3
- package/dist/utils/queries.utils.js +1 -1
- package/dist/utils/query.utils.js +1 -1
- package/dist/utils/routing.utils.d.ts +6 -3
- package/dist/utils/routing.utils.js +1 -1
- package/dist/utils/string.utils.d.ts +6 -3
- package/dist/utils/string.utils.js +1 -1
- package/dist/utils/style-merge.util.d.ts +38 -41
- package/dist/utils/style-merge.util.js +7 -4
- package/dist/utils/zod.utils.d.ts +22 -19
- package/dist/utils/zod.utils.js +1 -1
- package/package.json +30 -8
- package/dist/assets/locales/en/translation.json.d.ts +0 -158
- package/dist/assets/locales/sl/translation.json.d.ts +0 -154
- package/dist/components/Menu/MenuDesktop.d.ts +0 -2
- package/dist/components/Menu/MenuMobile.d.ts +0 -2
- package/dist/components/buttons/shared/ButtonContent.d.ts +0 -14
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.d.ts +0 -9
- package/dist/components/inputs/DateTime/shared/Calendar.d.ts +0 -29
- package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +0 -22
- package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +0 -27
- package/dist/components/inputs/DateTime/shared/CalendarHeader.d.ts +0 -18
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.d.ts +0 -17
- package/dist/components/inputs/DateTime/shared/DateField.d.ts +0 -21
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +0 -28
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.d.ts +0 -18
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.d.ts +0 -8
- package/dist/components/inputs/DateTime/shared/MonthPicker.d.ts +0 -11
- package/dist/components/inputs/DateTime/shared/RangeCalendar.d.ts +0 -26
- package/dist/components/inputs/DateTime/shared/TimeField.d.ts +0 -12
- package/dist/components/inputs/DateTime/shared/TimePickerForm.d.ts +0 -10
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +0 -25
- package/dist/components/inputs/DateTime/shared/YearPicker.d.ts +0 -12
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +0 -15
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +0 -2
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +0 -1
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +0 -41
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +0 -1
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.d.ts +0 -2
- package/dist/components/inputs/File/index.d.ts +0 -9
- package/dist/components/inputs/File/shared/FileCard.d.ts +0 -9
- package/dist/components/inputs/File/shared/FileCardList.d.ts +0 -9
- package/dist/components/inputs/File/shared/FileUploadContent.d.ts +0 -10
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.d.ts +0 -9
- package/dist/components/inputs/File/shared/FileUploadContentError.d.ts +0 -11
- package/dist/components/inputs/File/shared/FileUploadContentFilled.d.ts +0 -11
- package/dist/components/inputs/File/shared/FileUploadContentLoading.d.ts +0 -9
- package/dist/components/inputs/File/shared/InputUploadContent.d.ts +0 -9
- package/dist/components/inputs/File/shared/InputUploadFilled.d.ts +0 -8
- package/dist/components/inputs/FormField/FormFieldHeaderClose.d.ts +0 -5
- package/dist/components/inputs/FormField/FormFieldHelper.d.ts +0 -8
- package/dist/components/inputs/FormField/FormFieldLabel.d.ts +0 -13
- package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +0 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +0 -5
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +0 -15
- package/dist/components/inputs/Selection/shared/SelectInputTags.d.ts +0 -12
- package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +0 -9
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.d.ts +0 -7
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.d.ts +0 -4
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.d.ts +0 -6
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.d.ts +0 -5
- package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +0 -5
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +0 -9
- package/dist/components/inputs/Selection/shared/select.context.d.ts +0 -32
- package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +0 -23
- package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +0 -1
- package/dist/components/inputs/Selection/shared/useSelectItems.d.ts +0 -23
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +0 -84
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.d.ts +0 -7
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.d.ts +0 -10
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.d.ts +0 -6
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.d.ts +0 -2
- package/dist/components/inputs/TextEditor/textEditor.types.d.ts +0 -5
- package/dist/components/inputs/shared/CheckContent.d.ts +0 -9
- package/dist/components/inputs/shared/InputClear.d.ts +0 -10
- package/dist/components/inputs/shared/TooltipWrapper.d.ts +0 -10
- package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +0 -15
- package/dist/components/navigation/Accordion/AccordionItem.d.ts +0 -2
- package/dist/components/navigation/Stepper/StepperItem.d.ts +0 -2
- package/dist/components/navigation/Stepper/StepperSeparator.d.ts +0 -5
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.d.ts +0 -13
- package/dist/components/segment/SegmentItem.d.ts +0 -2
- package/dist/components/shared/pagination/minWidth.cva.d.ts +0 -3
- package/dist/hooks/useFormAutosave.spec.d.ts +0 -1
- package/dist/hooks/useKeyInteractions.spec.d.ts +0 -1
- package/dist/hooks/useQueryAutocomplete.d.ts +0 -13
- package/dist/rhf/entrypoints.type-test.d.ts +0 -1
- package/dist/types/react-query.d.ts +0 -6
- package/dist/utils/array.utils.spec.d.ts +0 -1
- package/dist/utils/compoundMapper.spec.d.ts +0 -1
- package/dist/utils/date-time.utils.spec.d.ts +0 -1
- package/dist/utils/date.utils.spec.d.ts +0 -1
- package/dist/utils/intl.utils.spec.d.ts +0 -1
- package/dist/utils/query.utils.d.ts +0 -4
- package/dist/utils/rest.utils.d.ts +0 -10
- package/dist/utils/rest.utils.js +0 -33
- package/dist/utils/style-merge.util.spec.d.ts +0 -1
|
@@ -1,105 +1,31 @@
|
|
|
1
1
|
import { Tag } from "../../../text/Tag/Tag.js";
|
|
2
|
-
import {
|
|
3
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/inputs/Selection/shared/SelectInputTags.tsx
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} else t2 = $[4];
|
|
30
|
-
const t3 = selectedItems.length - (collapseAfter - 1);
|
|
31
|
-
let t4;
|
|
32
|
-
if ($[5] !== t2 || $[6] !== t3) {
|
|
33
|
-
t4 = {
|
|
34
|
-
displayedItems: t2,
|
|
35
|
-
remainingCount: t3
|
|
36
|
-
};
|
|
37
|
-
$[5] = t2;
|
|
38
|
-
$[6] = t3;
|
|
39
|
-
$[7] = t4;
|
|
40
|
-
} else t4 = $[7];
|
|
41
|
-
t1 = t4;
|
|
42
|
-
}
|
|
43
|
-
const { displayedItems, remainingCount } = t1;
|
|
44
|
-
if (selectedTagsType === "tags") {
|
|
45
|
-
let t2;
|
|
46
|
-
if ($[8] !== displayedItems || $[9] !== isDisabled || $[10] !== onRemove) {
|
|
47
|
-
let t3;
|
|
48
|
-
if ($[12] !== isDisabled || $[13] !== onRemove) {
|
|
49
|
-
t3 = (item) => /* @__PURE__ */ jsx(Tag, {
|
|
50
|
-
dismissable: true,
|
|
51
|
-
isDisabled,
|
|
52
|
-
onDismiss: () => onRemove(item.id),
|
|
53
|
-
excludeFromTabOrder: true,
|
|
54
|
-
className: "z-raised",
|
|
55
|
-
children: item.label
|
|
56
|
-
}, item.id);
|
|
57
|
-
$[12] = isDisabled;
|
|
58
|
-
$[13] = onRemove;
|
|
59
|
-
$[14] = t3;
|
|
60
|
-
} else t3 = $[14];
|
|
61
|
-
t2 = displayedItems.map(t3);
|
|
62
|
-
$[8] = displayedItems;
|
|
63
|
-
$[9] = isDisabled;
|
|
64
|
-
$[10] = onRemove;
|
|
65
|
-
$[11] = t2;
|
|
66
|
-
} else t2 = $[11];
|
|
67
|
-
let t3;
|
|
68
|
-
if ($[15] !== isDisabled || $[16] !== remainingCount) {
|
|
69
|
-
t3 = remainingCount > 0 && /* @__PURE__ */ jsx(Tag, {
|
|
70
|
-
isDisabled,
|
|
71
|
-
excludeFromTabOrder: true,
|
|
72
|
-
children: `+${remainingCount} more`
|
|
73
|
-
}, "remaining-count");
|
|
74
|
-
$[15] = isDisabled;
|
|
75
|
-
$[16] = remainingCount;
|
|
76
|
-
$[17] = t3;
|
|
77
|
-
} else t3 = $[17];
|
|
78
|
-
let t4;
|
|
79
|
-
if ($[18] !== t2 || $[19] !== t3) {
|
|
80
|
-
t4 = /* @__PURE__ */ jsxs(Fragment, { children: [t2, t3] });
|
|
81
|
-
$[18] = t2;
|
|
82
|
-
$[19] = t3;
|
|
83
|
-
$[20] = t4;
|
|
84
|
-
} else t4 = $[20];
|
|
85
|
-
return t4;
|
|
86
|
-
}
|
|
87
|
-
let t2;
|
|
88
|
-
if ($[21] !== selectedItems) {
|
|
89
|
-
t2 = selectedItems.map(_temp).join(", ");
|
|
90
|
-
$[21] = selectedItems;
|
|
91
|
-
$[22] = t2;
|
|
92
|
-
} else t2 = $[22];
|
|
93
|
-
let t3;
|
|
94
|
-
if ($[23] !== t2) {
|
|
95
|
-
t3 = /* @__PURE__ */ jsx("p", { children: t2 });
|
|
96
|
-
$[23] = t2;
|
|
97
|
-
$[24] = t3;
|
|
98
|
-
} else t3 = $[24];
|
|
99
|
-
return t3;
|
|
5
|
+
const SelectInputTags = ({ selectedItems, isDisabled, selectedTagsType, collapseAfter, onRemove }) => {
|
|
6
|
+
const { displayedItems, remainingCount } = useMemo(() => {
|
|
7
|
+
if (!collapseAfter || selectedItems.length <= collapseAfter) return {
|
|
8
|
+
displayedItems: selectedItems,
|
|
9
|
+
remainingCount: 0
|
|
10
|
+
};
|
|
11
|
+
return {
|
|
12
|
+
displayedItems: selectedItems.slice(0, collapseAfter - 1),
|
|
13
|
+
remainingCount: selectedItems.length - (collapseAfter - 1)
|
|
14
|
+
};
|
|
15
|
+
}, [selectedItems, collapseAfter]);
|
|
16
|
+
if (selectedTagsType === "tags") return /* @__PURE__ */ jsxs(Fragment$1, { children: [displayedItems.map((item) => /* @__PURE__ */ jsx(Tag, {
|
|
17
|
+
dismissable: true,
|
|
18
|
+
isDisabled,
|
|
19
|
+
onDismiss: () => onRemove(item.id),
|
|
20
|
+
excludeFromTabOrder: true,
|
|
21
|
+
className: "z-raised",
|
|
22
|
+
children: item.label
|
|
23
|
+
}, item.id)), remainingCount > 0 && /* @__PURE__ */ jsx(Tag, {
|
|
24
|
+
isDisabled,
|
|
25
|
+
excludeFromTabOrder: true,
|
|
26
|
+
children: `+${remainingCount} more`
|
|
27
|
+
}, "remaining-count")] });
|
|
28
|
+
return /* @__PURE__ */ jsx("p", { children: selectedItems.map((item) => item.label).join(", ") });
|
|
100
29
|
};
|
|
101
|
-
function _temp(item_0) {
|
|
102
|
-
return item_0.label;
|
|
103
|
-
}
|
|
104
30
|
//#endregion
|
|
105
31
|
export { SelectInputTags };
|
|
@@ -7,7 +7,7 @@ import { clsx } from "clsx";
|
|
|
7
7
|
import { ListBox, ListLayout, Virtualizer } from "react-aria-components";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/inputs/Selection/shared/SelectListBox.tsx
|
|
10
|
-
|
|
10
|
+
const SelectListBox = ({ label, selectionMode, isSearchable, isScrollable = true, virtualizerOptions, totalItems, newItemRender, onLoadMore, className, onClose, ...props }) => {
|
|
11
11
|
const { fieldState, onChange, listItems, selectableListItems, selectedIds, isMultiple, onClear, onSelectAll, hasLoadMore } = SelectContext.useSelect();
|
|
12
12
|
const onSelectionChange = (value) => {
|
|
13
13
|
const ids = Array.from(value);
|
|
@@ -3,102 +3,52 @@ import "../../../../config/i18n.js";
|
|
|
3
3
|
import { CheckboxCheckmark } from "../../Checkbox/CheckboxCheckmark.js";
|
|
4
4
|
import { SelectContext } from "./select.context.js";
|
|
5
5
|
import { selectListBoxItemDefinition } from "./selectItem.cva.js";
|
|
6
|
-
import { useRef } from "react";
|
|
6
|
+
import { useMemo, useRef } from "react";
|
|
7
7
|
import { ListBoxItem } from "react-aria-components";
|
|
8
|
-
import { c } from "react/compiler-runtime";
|
|
9
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
9
|
import { useTranslation } from "react-i18next";
|
|
11
10
|
//#region src/components/inputs/Selection/shared/SelectListBoxItem.tsx
|
|
12
|
-
|
|
13
|
-
const $ = c(24);
|
|
14
|
-
const { isSearchable, isNewItem, newItemRender, id, label, content, isDisabled } = t0;
|
|
11
|
+
const SelectListBoxItem = ({ isSearchable, isNewItem, newItemRender, id, label, content, isDisabled }) => {
|
|
15
12
|
const selectListItemCva = UIOverrides.useCva("select.listBoxItemCva", selectListBoxItemDefinition);
|
|
16
13
|
const ref = useRef(null);
|
|
17
14
|
const { t } = useTranslation("ui");
|
|
18
15
|
const { selectedIds, isMultiple } = SelectContext.useSelect();
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const t2 = !isMultiple;
|
|
37
|
-
let t3;
|
|
38
|
-
if ($[4] !== isNewItem || $[5] !== selectListItemCva || $[6] !== t2) {
|
|
39
|
-
t3 = selectListItemCva({
|
|
40
|
-
isSingle: t2,
|
|
16
|
+
const itemContent = useMemo(() => {
|
|
17
|
+
if (isNewItem) return newItemRender?.(label) ?? `${t(($) => $.ui.autocomplete.createNewBtn)} '${label}'`;
|
|
18
|
+
return content ?? label;
|
|
19
|
+
}, [
|
|
20
|
+
isNewItem,
|
|
21
|
+
newItemRender,
|
|
22
|
+
label,
|
|
23
|
+
content,
|
|
24
|
+
t
|
|
25
|
+
]);
|
|
26
|
+
return /* @__PURE__ */ jsxs(ListBoxItem, {
|
|
27
|
+
ref,
|
|
28
|
+
id,
|
|
29
|
+
textValue: label,
|
|
30
|
+
isDisabled,
|
|
31
|
+
className: selectListItemCva({
|
|
32
|
+
isSingle: !isMultiple,
|
|
41
33
|
isNewItem
|
|
42
|
-
})
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
$[6] = t2;
|
|
46
|
-
$[7] = t3;
|
|
47
|
-
} else t3 = $[7];
|
|
48
|
-
let t4;
|
|
49
|
-
if ($[8] !== isMultiple || $[9] !== isSearchable) {
|
|
50
|
-
t4 = isMultiple && !isSearchable && /* @__PURE__ */ jsx(CheckboxCheckmark, {
|
|
51
|
-
variant: "default",
|
|
52
|
-
className: "group-focus-visible:outline-none!"
|
|
53
|
-
});
|
|
54
|
-
$[8] = isMultiple;
|
|
55
|
-
$[9] = isSearchable;
|
|
56
|
-
$[10] = t4;
|
|
57
|
-
} else t4 = $[10];
|
|
58
|
-
let t5;
|
|
59
|
-
if ($[11] !== id || $[12] !== isMultiple || $[13] !== isSearchable || $[14] !== selectedIds) {
|
|
60
|
-
t5 = isMultiple && isSearchable && /* @__PURE__ */ jsx("div", {
|
|
61
|
-
className: "group",
|
|
62
|
-
"data-rac": "",
|
|
63
|
-
"data-selected": selectedIds.includes(id) || void 0,
|
|
64
|
-
children: /* @__PURE__ */ jsx(CheckboxCheckmark, {
|
|
34
|
+
}),
|
|
35
|
+
children: [
|
|
36
|
+
isMultiple && !isSearchable && /* @__PURE__ */ jsx(CheckboxCheckmark, {
|
|
65
37
|
variant: "default",
|
|
66
38
|
className: "group-focus-visible:outline-none!"
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
textValue: label,
|
|
81
|
-
isDisabled,
|
|
82
|
-
className: t3,
|
|
83
|
-
children: [
|
|
84
|
-
t4,
|
|
85
|
-
t5,
|
|
86
|
-
itemContent
|
|
87
|
-
]
|
|
88
|
-
});
|
|
89
|
-
$[16] = id;
|
|
90
|
-
$[17] = isDisabled;
|
|
91
|
-
$[18] = itemContent;
|
|
92
|
-
$[19] = label;
|
|
93
|
-
$[20] = t3;
|
|
94
|
-
$[21] = t4;
|
|
95
|
-
$[22] = t5;
|
|
96
|
-
$[23] = t6;
|
|
97
|
-
} else t6 = $[23];
|
|
98
|
-
return t6;
|
|
39
|
+
}),
|
|
40
|
+
isMultiple && isSearchable && /* @__PURE__ */ jsx("div", {
|
|
41
|
+
className: "group",
|
|
42
|
+
"data-rac": "",
|
|
43
|
+
"data-selected": selectedIds.includes(id) || void 0,
|
|
44
|
+
children: /* @__PURE__ */ jsx(CheckboxCheckmark, {
|
|
45
|
+
variant: "default",
|
|
46
|
+
className: "group-focus-visible:outline-none!"
|
|
47
|
+
})
|
|
48
|
+
}),
|
|
49
|
+
itemContent
|
|
50
|
+
]
|
|
51
|
+
});
|
|
99
52
|
};
|
|
100
|
-
function _temp($) {
|
|
101
|
-
return $.ui.autocomplete.createNewBtn;
|
|
102
|
-
}
|
|
103
53
|
//#endregion
|
|
104
54
|
export { SelectListBoxItem };
|
|
@@ -5,84 +5,31 @@ import { SelectContext } from "./select.context.js";
|
|
|
5
5
|
import { selectListBoxItemDefinition } from "./selectItem.cva.js";
|
|
6
6
|
import { useRef } from "react";
|
|
7
7
|
import { ListBoxItem } from "react-aria-components";
|
|
8
|
-
import { c } from "react/compiler-runtime";
|
|
9
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
9
|
import { useTranslation } from "react-i18next";
|
|
11
10
|
//#region src/components/inputs/Selection/shared/SelectListBoxItemSelectAll.tsx
|
|
12
|
-
|
|
13
|
-
const $ = c(18);
|
|
14
|
-
const { id, label, isDisabled } = t0;
|
|
11
|
+
const SelectListBoxItemSelectAll = ({ id, label, isDisabled }) => {
|
|
15
12
|
const selectListItemCva = UIOverrides.useCva("select.listBoxItemCva", selectListBoxItemDefinition);
|
|
16
13
|
const ref = useRef(null);
|
|
17
14
|
const { t } = useTranslation("ui");
|
|
18
15
|
const { selectableListItems, selectedIds } = SelectContext.useSelect();
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
$
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
let t2;
|
|
27
|
-
if ($[3] !== selectListItemCva) {
|
|
28
|
-
t2 = selectListItemCva({});
|
|
29
|
-
$[3] = selectListItemCva;
|
|
30
|
-
$[4] = t2;
|
|
31
|
-
} else t2 = $[4];
|
|
32
|
-
const t3 = selectedIds.length === selectableListItems.length || void 0;
|
|
33
|
-
const t4 = selectedIds.length > 0 && selectedIds.length < selectableListItems.length || void 0;
|
|
34
|
-
let t5;
|
|
35
|
-
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
36
|
-
t5 = /* @__PURE__ */ jsx(CheckboxCheckmark, {
|
|
37
|
-
variant: "default",
|
|
38
|
-
className: "group-focus-visible:outline-none!"
|
|
39
|
-
});
|
|
40
|
-
$[5] = t5;
|
|
41
|
-
} else t5 = $[5];
|
|
42
|
-
let t6;
|
|
43
|
-
if ($[6] !== t3 || $[7] !== t4) {
|
|
44
|
-
t6 = /* @__PURE__ */ jsx("div", {
|
|
16
|
+
return /* @__PURE__ */ jsxs(ListBoxItem, {
|
|
17
|
+
ref,
|
|
18
|
+
id,
|
|
19
|
+
textValue: label || t(($) => $.ui.select.allOption),
|
|
20
|
+
isDisabled,
|
|
21
|
+
className: selectListItemCva({}),
|
|
22
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
45
23
|
className: "group",
|
|
46
24
|
"data-rac": "",
|
|
47
|
-
"data-selected":
|
|
48
|
-
"data-indeterminate":
|
|
49
|
-
children:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
$
|
|
54
|
-
}
|
|
55
|
-
let t7;
|
|
56
|
-
if ($[9] !== t) {
|
|
57
|
-
t7 = t(_temp2);
|
|
58
|
-
$[9] = t;
|
|
59
|
-
$[10] = t7;
|
|
60
|
-
} else t7 = $[10];
|
|
61
|
-
let t8;
|
|
62
|
-
if ($[11] !== id || $[12] !== isDisabled || $[13] !== t1 || $[14] !== t2 || $[15] !== t6 || $[16] !== t7) {
|
|
63
|
-
t8 = /* @__PURE__ */ jsxs(ListBoxItem, {
|
|
64
|
-
ref,
|
|
65
|
-
id,
|
|
66
|
-
textValue: t1,
|
|
67
|
-
isDisabled,
|
|
68
|
-
className: t2,
|
|
69
|
-
children: [t6, t7]
|
|
70
|
-
});
|
|
71
|
-
$[11] = id;
|
|
72
|
-
$[12] = isDisabled;
|
|
73
|
-
$[13] = t1;
|
|
74
|
-
$[14] = t2;
|
|
75
|
-
$[15] = t6;
|
|
76
|
-
$[16] = t7;
|
|
77
|
-
$[17] = t8;
|
|
78
|
-
} else t8 = $[17];
|
|
79
|
-
return t8;
|
|
25
|
+
"data-selected": selectedIds.length === selectableListItems.length || void 0,
|
|
26
|
+
"data-indeterminate": selectedIds.length > 0 && selectedIds.length < selectableListItems.length || void 0,
|
|
27
|
+
children: /* @__PURE__ */ jsx(CheckboxCheckmark, {
|
|
28
|
+
variant: "default",
|
|
29
|
+
className: "group-focus-visible:outline-none!"
|
|
30
|
+
})
|
|
31
|
+
}), t(($) => $.ui.select.allOption)]
|
|
32
|
+
});
|
|
80
33
|
};
|
|
81
|
-
function _temp($) {
|
|
82
|
-
return $.ui.select.allOption;
|
|
83
|
-
}
|
|
84
|
-
function _temp2($_0) {
|
|
85
|
-
return $_0.ui.select.allOption;
|
|
86
|
-
}
|
|
87
34
|
//#endregion
|
|
88
35
|
export { SelectListBoxItemSelectAll };
|
|
@@ -4,86 +4,38 @@ import "../../../../config/i18n.js";
|
|
|
4
4
|
import { SelectContext } from "./select.context.js";
|
|
5
5
|
import { selectListBoxItemDefinition } from "./selectItem.cva.js";
|
|
6
6
|
import { useIntersectionObserver } from "../../../../hooks/useIntersectionObserver.js";
|
|
7
|
+
import { useCallback } from "react";
|
|
7
8
|
import { ListBoxItem } from "react-aria-components";
|
|
8
|
-
import { c } from "react/compiler-runtime";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
//#region src/components/inputs/Selection/shared/SelectListBoxLoadingItem.tsx
|
|
12
|
-
|
|
13
|
-
const $ = c(20);
|
|
14
|
-
const { id, label, onLoadMore } = t0;
|
|
12
|
+
const SelectListBoxLoadingItem = ({ id, label, onLoadMore }) => {
|
|
15
13
|
const selectListItemCva = UIOverrides.useCva("select.listBoxItemCva", selectListBoxItemDefinition);
|
|
16
14
|
const { t } = useTranslation("ui");
|
|
17
15
|
const { isDebouncing, isLoading, hasLoadMore } = SelectContext.useSelect();
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
$[5] = onIntersection;
|
|
37
|
-
$[6] = t2;
|
|
38
|
-
} else t2 = $[6];
|
|
39
|
-
const { ref } = useIntersectionObserver(t2);
|
|
40
|
-
let t3;
|
|
41
|
-
if ($[7] !== label || $[8] !== t) {
|
|
42
|
-
t3 = label || t(_temp);
|
|
43
|
-
$[7] = label;
|
|
44
|
-
$[8] = t;
|
|
45
|
-
$[9] = t3;
|
|
46
|
-
} else t3 = $[9];
|
|
47
|
-
let t4;
|
|
48
|
-
if ($[10] !== selectListItemCva) {
|
|
49
|
-
t4 = selectListItemCva({});
|
|
50
|
-
$[10] = selectListItemCva;
|
|
51
|
-
$[11] = t4;
|
|
52
|
-
} else t4 = $[11];
|
|
53
|
-
let t5;
|
|
54
|
-
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
55
|
-
t5 = /* @__PURE__ */ jsx(Loader, {});
|
|
56
|
-
$[12] = t5;
|
|
57
|
-
} else t5 = $[12];
|
|
58
|
-
let t6;
|
|
59
|
-
if ($[13] !== ref) {
|
|
60
|
-
t6 = /* @__PURE__ */ jsx("div", {
|
|
16
|
+
const onIntersection = useCallback(() => {
|
|
17
|
+
if (!isDebouncing && !isLoading && hasLoadMore) onLoadMore?.();
|
|
18
|
+
}, [
|
|
19
|
+
isDebouncing,
|
|
20
|
+
isLoading,
|
|
21
|
+
hasLoadMore,
|
|
22
|
+
onLoadMore
|
|
23
|
+
]);
|
|
24
|
+
const { ref } = useIntersectionObserver({
|
|
25
|
+
onIntersection,
|
|
26
|
+
rootMargin: "40px"
|
|
27
|
+
});
|
|
28
|
+
return /* @__PURE__ */ jsx(ListBoxItem, {
|
|
29
|
+
id,
|
|
30
|
+
textValue: label || t(($) => $.ui.loadingState.text),
|
|
31
|
+
isDisabled: true,
|
|
32
|
+
className: selectListItemCva({}),
|
|
33
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
61
34
|
ref,
|
|
62
35
|
className: "flex flex-1 justify-center text-interactive-text-primary-idle",
|
|
63
|
-
children:
|
|
64
|
-
})
|
|
65
|
-
|
|
66
|
-
$[14] = t6;
|
|
67
|
-
} else t6 = $[14];
|
|
68
|
-
let t7;
|
|
69
|
-
if ($[15] !== id || $[16] !== t3 || $[17] !== t4 || $[18] !== t6) {
|
|
70
|
-
t7 = /* @__PURE__ */ jsx(ListBoxItem, {
|
|
71
|
-
id,
|
|
72
|
-
textValue: t3,
|
|
73
|
-
isDisabled: true,
|
|
74
|
-
className: t4,
|
|
75
|
-
children: t6
|
|
76
|
-
});
|
|
77
|
-
$[15] = id;
|
|
78
|
-
$[16] = t3;
|
|
79
|
-
$[17] = t4;
|
|
80
|
-
$[18] = t6;
|
|
81
|
-
$[19] = t7;
|
|
82
|
-
} else t7 = $[19];
|
|
83
|
-
return t7;
|
|
36
|
+
children: /* @__PURE__ */ jsx(Loader, {})
|
|
37
|
+
})
|
|
38
|
+
});
|
|
84
39
|
};
|
|
85
|
-
function _temp($) {
|
|
86
|
-
return $.ui.loadingState.text;
|
|
87
|
-
}
|
|
88
40
|
//#endregion
|
|
89
41
|
export { SelectListBoxLoadingItem };
|
|
@@ -2,75 +2,26 @@ import "../../../../config/i18n.js";
|
|
|
2
2
|
import { TextButton } from "../../../buttons/TextButton/TextButton.js";
|
|
3
3
|
import { SelectContext } from "./select.context.js";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
import { c } from "react/compiler-runtime";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
import { useTranslation } from "react-i18next";
|
|
8
7
|
//#region src/components/inputs/Selection/shared/SelectListBoxSelectionBar.tsx
|
|
9
|
-
|
|
10
|
-
const $ = c(16);
|
|
11
|
-
const { className } = t0;
|
|
8
|
+
const SelectListBoxSelectionBar = ({ className }) => {
|
|
12
9
|
const { t } = useTranslation("ui");
|
|
13
10
|
const { onClear, onSelectAll } = SelectContext.useSelect();
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
$[0] = className;
|
|
18
|
-
$[1] = t1;
|
|
19
|
-
} else t1 = $[1];
|
|
20
|
-
let t2;
|
|
21
|
-
if ($[2] !== t) {
|
|
22
|
-
t2 = t(_temp);
|
|
23
|
-
$[2] = t;
|
|
24
|
-
$[3] = t2;
|
|
25
|
-
} else t2 = $[3];
|
|
26
|
-
let t3;
|
|
27
|
-
if ($[4] !== onSelectAll || $[5] !== t2) {
|
|
28
|
-
t3 = /* @__PURE__ */ jsx(TextButton, {
|
|
11
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
12
|
+
className: clsx("flex items-center justify-between border-elevation-outline-default-1 border-b px-4 py-3", className),
|
|
13
|
+
children: [/* @__PURE__ */ jsx(TextButton, {
|
|
29
14
|
type: "button",
|
|
30
15
|
color: "primary",
|
|
31
16
|
onPress: onSelectAll,
|
|
32
|
-
children:
|
|
33
|
-
})
|
|
34
|
-
$[4] = onSelectAll;
|
|
35
|
-
$[5] = t2;
|
|
36
|
-
$[6] = t3;
|
|
37
|
-
} else t3 = $[6];
|
|
38
|
-
let t4;
|
|
39
|
-
if ($[7] !== t) {
|
|
40
|
-
t4 = t(_temp2);
|
|
41
|
-
$[7] = t;
|
|
42
|
-
$[8] = t4;
|
|
43
|
-
} else t4 = $[8];
|
|
44
|
-
let t5;
|
|
45
|
-
if ($[9] !== onClear || $[10] !== t4) {
|
|
46
|
-
t5 = /* @__PURE__ */ jsx(TextButton, {
|
|
17
|
+
children: t(($) => $.ui.select.selectAll)
|
|
18
|
+
}), /* @__PURE__ */ jsx(TextButton, {
|
|
47
19
|
type: "button",
|
|
48
20
|
color: "secondary",
|
|
49
21
|
onPress: onClear,
|
|
50
|
-
children:
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
$[10] = t4;
|
|
54
|
-
$[11] = t5;
|
|
55
|
-
} else t5 = $[11];
|
|
56
|
-
let t6;
|
|
57
|
-
if ($[12] !== t1 || $[13] !== t3 || $[14] !== t5) {
|
|
58
|
-
t6 = /* @__PURE__ */ jsxs("div", {
|
|
59
|
-
className: t1,
|
|
60
|
-
children: [t3, t5]
|
|
61
|
-
});
|
|
62
|
-
$[12] = t1;
|
|
63
|
-
$[13] = t3;
|
|
64
|
-
$[14] = t5;
|
|
65
|
-
$[15] = t6;
|
|
66
|
-
} else t6 = $[15];
|
|
67
|
-
return t6;
|
|
22
|
+
children: t(($) => $.ui.select.clearSelection)
|
|
23
|
+
})]
|
|
24
|
+
});
|
|
68
25
|
};
|
|
69
|
-
function _temp($) {
|
|
70
|
-
return $.ui.select.selectAll;
|
|
71
|
-
}
|
|
72
|
-
function _temp2($_0) {
|
|
73
|
-
return $_0.ui.select.clearSelection;
|
|
74
|
-
}
|
|
75
26
|
//#endregion
|
|
76
27
|
export { SelectListBoxSelectionBar };
|
|
@@ -13,7 +13,7 @@ import { DialogTrigger } from "react-aria-components";
|
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { useLabel } from "react-aria";
|
|
15
15
|
//#region src/components/inputs/Selection/shared/SelectMobile.tsx
|
|
16
|
-
|
|
16
|
+
const SelectMobile = ({ ref, error, showSelectionContent, inputClassName, containerClassName, leadingContent, trailingContent, customTrigger, onBlur, onMouseEnter, onFocusCapture, bottomSheetProps, ...props }) => {
|
|
17
17
|
const { label, tooltipText, helperText, isDirty, isRequired, rightContent, isHeaderHidden, headerClassName, errorClassName, placeholder, variant, isDisabled, className, hideLabel, hideDropdownIcon, hideSearchIcon, isSearchable, isClearable, isClearableIfDisabled, as, size, collapseAfter, selectedTagsType } = props;
|
|
18
18
|
const formFieldProps = {
|
|
19
19
|
error,
|
|
@@ -2,49 +2,24 @@ import { UIOverrides } from "../../../../config/uiOverrides.context.js";
|
|
|
2
2
|
import { inputSizeDefinition } from "../../shared/input.cva.js";
|
|
3
3
|
import { Triangle } from "lucide-react";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
|
-
import { c } from "react/compiler-runtime";
|
|
6
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
6
|
//#region src/components/inputs/Selection/shared/StaticSelectTrailingContent.tsx
|
|
8
|
-
|
|
9
|
-
const $ = c(10);
|
|
10
|
-
const { trailingContent, hideDropdownIcon, isDisabled, size } = t0;
|
|
7
|
+
const StaticSelectTrailingContent = ({ trailingContent, hideDropdownIcon, isDisabled, size }) => {
|
|
11
8
|
const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
|
|
12
9
|
if (!trailingContent && hideDropdownIcon) return null;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
tabIndex: -1,
|
|
27
|
-
className: clsx("self-stretch border-0! pl-1-5 outline-none", inputSizeCva({ size })),
|
|
28
|
-
"aria-hidden": "true",
|
|
29
|
-
children: /* @__PURE__ */ jsx("span", {
|
|
30
|
-
className: clsx("flex size-6 shrink-0 items-center justify-center", isDisabled ? "text-interactive-text-secondary-disabled" : "text-interactive-text-secondary-idle"),
|
|
31
|
-
children: /* @__PURE__ */ jsx(Triangle, { className: "h-2 w-3 rotate-180 fill-current stroke-0" })
|
|
32
|
-
})
|
|
33
|
-
}) : void 0;
|
|
34
|
-
$[2] = hideDropdownIcon;
|
|
35
|
-
$[3] = inputSizeCva;
|
|
36
|
-
$[4] = isDisabled;
|
|
37
|
-
$[5] = size;
|
|
38
|
-
$[6] = t2;
|
|
39
|
-
} else t2 = $[6];
|
|
40
|
-
let t3;
|
|
41
|
-
if ($[7] !== t1 || $[8] !== t2) {
|
|
42
|
-
t3 = /* @__PURE__ */ jsxs(Fragment, { children: [t1, t2] });
|
|
43
|
-
$[7] = t1;
|
|
44
|
-
$[8] = t2;
|
|
45
|
-
$[9] = t3;
|
|
46
|
-
} else t3 = $[9];
|
|
47
|
-
return t3;
|
|
10
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [trailingContent && /* @__PURE__ */ jsx("div", {
|
|
11
|
+
className: "flex shrink-0 items-center",
|
|
12
|
+
children: trailingContent
|
|
13
|
+
}), !hideDropdownIcon ? /* @__PURE__ */ jsx("button", {
|
|
14
|
+
type: "button",
|
|
15
|
+
tabIndex: -1,
|
|
16
|
+
className: clsx("self-stretch border-0! pl-1-5 outline-none", inputSizeCva({ size })),
|
|
17
|
+
"aria-hidden": "true",
|
|
18
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
19
|
+
className: clsx("flex size-6 shrink-0 items-center justify-center", isDisabled ? "text-interactive-text-secondary-disabled" : "text-interactive-text-secondary-idle"),
|
|
20
|
+
children: /* @__PURE__ */ jsx(Triangle, { className: "h-2 w-3 rotate-180 fill-current stroke-0" })
|
|
21
|
+
})
|
|
22
|
+
}) : void 0] });
|
|
48
23
|
};
|
|
49
24
|
//#endregion
|
|
50
25
|
export { StaticSelectTrailingContent };
|