@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,34 +1,81 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { accordionDefinition } from "./accordion.cva.js";
|
|
3
3
|
import { AccordionItem } from "./AccordionItem.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
4
5
|
import { clsx } from "clsx";
|
|
5
6
|
import { DisclosureGroup } from "react-aria-components";
|
|
6
7
|
import { jsx } from "react/jsx-runtime";
|
|
7
8
|
//#region src/components/navigation/Accordion/Accordion.tsx
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
const Accordion = (t0) => {
|
|
10
|
+
const $ = c(23);
|
|
11
|
+
const { items, variant: t1, actionPosition: t2, allowsMultipleExpanded: t3, expandedKeys, defaultExpandedKeys, onExpandedChange, className, disabled } = t0;
|
|
12
|
+
const variant = t1 === void 0 ? "filled" : t1;
|
|
13
|
+
const actionPosition = t2 === void 0 ? "right" : t2;
|
|
14
|
+
const allowsMultipleExpanded = t3 === void 0 ? false : t3;
|
|
15
|
+
const accordionCva = UIOverrides.useCva("accordion.cva", accordionDefinition);
|
|
16
|
+
const t4 = items.length === 1;
|
|
17
|
+
let t5;
|
|
18
|
+
if ($[0] !== accordionCva || $[1] !== className || $[2] !== t4 || $[3] !== variant) {
|
|
19
|
+
t5 = clsx(accordionCva({
|
|
15
20
|
className,
|
|
16
21
|
variant,
|
|
17
|
-
singleItem:
|
|
18
|
-
}))
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
singleItem: t4
|
|
23
|
+
}));
|
|
24
|
+
$[0] = accordionCva;
|
|
25
|
+
$[1] = className;
|
|
26
|
+
$[2] = t4;
|
|
27
|
+
$[3] = variant;
|
|
28
|
+
$[4] = t5;
|
|
29
|
+
} else t5 = $[4];
|
|
30
|
+
let t6;
|
|
31
|
+
if ($[5] !== actionPosition || $[6] !== disabled || $[7] !== items || $[8] !== variant) {
|
|
32
|
+
let t7;
|
|
33
|
+
if ($[10] !== actionPosition || $[11] !== disabled || $[12] !== items.length || $[13] !== variant) {
|
|
34
|
+
t7 = (item) => /* @__PURE__ */ jsx(AccordionItem, {
|
|
35
|
+
id: item.id,
|
|
36
|
+
heading: item.heading,
|
|
37
|
+
subheading: item.subheading,
|
|
38
|
+
icon: item.icon,
|
|
39
|
+
variant,
|
|
40
|
+
actionPosition,
|
|
41
|
+
disabled: item.disabled || disabled,
|
|
42
|
+
isSingle: items.length === 1,
|
|
43
|
+
children: item.children
|
|
44
|
+
}, item.id);
|
|
45
|
+
$[10] = actionPosition;
|
|
46
|
+
$[11] = disabled;
|
|
47
|
+
$[12] = items.length;
|
|
48
|
+
$[13] = variant;
|
|
49
|
+
$[14] = t7;
|
|
50
|
+
} else t7 = $[14];
|
|
51
|
+
t6 = items.map(t7);
|
|
52
|
+
$[5] = actionPosition;
|
|
53
|
+
$[6] = disabled;
|
|
54
|
+
$[7] = items;
|
|
55
|
+
$[8] = variant;
|
|
56
|
+
$[9] = t6;
|
|
57
|
+
} else t6 = $[9];
|
|
58
|
+
let t7;
|
|
59
|
+
if ($[15] !== allowsMultipleExpanded || $[16] !== defaultExpandedKeys || $[17] !== disabled || $[18] !== expandedKeys || $[19] !== onExpandedChange || $[20] !== t5 || $[21] !== t6) {
|
|
60
|
+
t7 = /* @__PURE__ */ jsx(DisclosureGroup, {
|
|
61
|
+
allowsMultipleExpanded,
|
|
62
|
+
expandedKeys,
|
|
63
|
+
defaultExpandedKeys,
|
|
64
|
+
onExpandedChange,
|
|
65
|
+
className: t5,
|
|
66
|
+
isDisabled: disabled,
|
|
67
|
+
children: t6
|
|
68
|
+
});
|
|
69
|
+
$[15] = allowsMultipleExpanded;
|
|
70
|
+
$[16] = defaultExpandedKeys;
|
|
71
|
+
$[17] = disabled;
|
|
72
|
+
$[18] = expandedKeys;
|
|
73
|
+
$[19] = onExpandedChange;
|
|
74
|
+
$[20] = t5;
|
|
75
|
+
$[21] = t6;
|
|
76
|
+
$[22] = t7;
|
|
77
|
+
} else t7 = $[22];
|
|
78
|
+
return t7;
|
|
32
79
|
};
|
|
33
80
|
//#endregion
|
|
34
81
|
export { Accordion };
|
|
@@ -2,10 +2,15 @@ import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
|
2
2
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
3
3
|
import { accordionChevronDefinition, accordionHeadingDefinition, accordionHeadingSubtitleDefinition, accordionHeadingTitleDefinition, accordionIconDefinition, accordionItemDefinition, accordionPanelContentDefinition, accordionPanelDefinition, accordionTriggerDefinition } from "./accordion.cva.js";
|
|
4
4
|
import { ChevronDown } from "lucide-react";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
5
6
|
import { Button, Disclosure, DisclosurePanel, Heading } from "react-aria-components";
|
|
6
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
8
|
//#region src/components/navigation/Accordion/AccordionItem.tsx
|
|
8
|
-
|
|
9
|
+
const AccordionItem = (t0) => {
|
|
10
|
+
const $ = c(25);
|
|
11
|
+
const { id, disabled, heading, subheading, children, icon: Icon, variant: t1, actionPosition: t2, isSingle } = t0;
|
|
12
|
+
const variant = t1 === void 0 ? "filled" : t1;
|
|
13
|
+
const actionPosition = t2 === void 0 ? "right" : t2;
|
|
9
14
|
const itemCva = UIOverrides.useCva("accordion.itemCva", accordionItemDefinition);
|
|
10
15
|
const triggerCva = UIOverrides.useCva("accordion.triggerCva", accordionTriggerDefinition);
|
|
11
16
|
const headingCva = UIOverrides.useCva("accordion.headingCva", accordionHeadingDefinition);
|
|
@@ -15,49 +20,89 @@ var AccordionItem = ({ id, disabled, heading, subheading, children, icon: Icon,
|
|
|
15
20
|
const iconCva = UIOverrides.useCva("accordion.iconCva", accordionIconDefinition);
|
|
16
21
|
const panelCva = UIOverrides.useCva("accordion.panelCva", accordionPanelDefinition);
|
|
17
22
|
const panelContentCva = UIOverrides.useCva("accordion.panelContentCva", accordionPanelContentDefinition);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
let t3;
|
|
24
|
+
if ($[0] !== isSingle || $[1] !== itemCva || $[2] !== variant) {
|
|
25
|
+
t3 = itemCva({
|
|
21
26
|
variant,
|
|
22
27
|
singleItem: isSingle
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
28
|
+
});
|
|
29
|
+
$[0] = isSingle;
|
|
30
|
+
$[1] = itemCva;
|
|
31
|
+
$[2] = variant;
|
|
32
|
+
$[3] = t3;
|
|
33
|
+
} else t3 = $[3];
|
|
34
|
+
let t4;
|
|
35
|
+
if ($[4] !== Icon || $[5] !== actionPosition || $[6] !== chevronCva || $[7] !== children || $[8] !== disabled || $[9] !== heading || $[10] !== headingCva || $[11] !== headingSubtitleCva || $[12] !== headingTitleCva || $[13] !== iconCva || $[14] !== panelContentCva || $[15] !== panelCva || $[16] !== subheading || $[17] !== triggerCva || $[18] !== variant) {
|
|
36
|
+
t4 = (t5) => {
|
|
37
|
+
const { isExpanded } = t5;
|
|
38
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Heading, { children: /* @__PURE__ */ jsxs(Button, {
|
|
39
|
+
slot: "trigger",
|
|
40
|
+
className: triggerCva({
|
|
41
|
+
variant,
|
|
42
|
+
actionPosition,
|
|
43
|
+
disabled
|
|
44
|
+
}),
|
|
45
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
46
|
+
className: headingCva({}),
|
|
47
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
48
|
+
className: "flex flex-1 items-center gap-accordion-gap-icon-to-text",
|
|
49
|
+
children: [
|
|
50
|
+
Icon && /* @__PURE__ */ jsx(Icon, { className: iconCva({}) }),
|
|
51
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
52
|
+
size: "label-2",
|
|
53
|
+
variant: "default",
|
|
54
|
+
className: headingTitleCva({}),
|
|
55
|
+
children: heading
|
|
56
|
+
}),
|
|
57
|
+
subheading && /* @__PURE__ */ jsx(Typography, {
|
|
58
|
+
size: "label-3",
|
|
59
|
+
variant: "default",
|
|
60
|
+
className: headingSubtitleCva({}),
|
|
61
|
+
children: subheading
|
|
62
|
+
})
|
|
63
|
+
]
|
|
64
|
+
})
|
|
65
|
+
}), /* @__PURE__ */ jsx(ChevronDown, { className: chevronCva({ isExpanded }) })]
|
|
66
|
+
}) }), /* @__PURE__ */ jsx(DisclosurePanel, {
|
|
67
|
+
className: panelCva({ isExpanded }),
|
|
68
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
69
|
+
className: panelContentCva({}),
|
|
70
|
+
children
|
|
51
71
|
})
|
|
52
|
-
})
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
72
|
+
})] });
|
|
73
|
+
};
|
|
74
|
+
$[4] = Icon;
|
|
75
|
+
$[5] = actionPosition;
|
|
76
|
+
$[6] = chevronCva;
|
|
77
|
+
$[7] = children;
|
|
78
|
+
$[8] = disabled;
|
|
79
|
+
$[9] = heading;
|
|
80
|
+
$[10] = headingCva;
|
|
81
|
+
$[11] = headingSubtitleCva;
|
|
82
|
+
$[12] = headingTitleCva;
|
|
83
|
+
$[13] = iconCva;
|
|
84
|
+
$[14] = panelContentCva;
|
|
85
|
+
$[15] = panelCva;
|
|
86
|
+
$[16] = subheading;
|
|
87
|
+
$[17] = triggerCva;
|
|
88
|
+
$[18] = variant;
|
|
89
|
+
$[19] = t4;
|
|
90
|
+
} else t4 = $[19];
|
|
91
|
+
let t5;
|
|
92
|
+
if ($[20] !== disabled || $[21] !== id || $[22] !== t3 || $[23] !== t4) {
|
|
93
|
+
t5 = /* @__PURE__ */ jsx(Disclosure, {
|
|
94
|
+
id,
|
|
95
|
+
className: t3,
|
|
96
|
+
isDisabled: disabled,
|
|
97
|
+
children: t4
|
|
98
|
+
});
|
|
99
|
+
$[20] = disabled;
|
|
100
|
+
$[21] = id;
|
|
101
|
+
$[22] = t3;
|
|
102
|
+
$[23] = t4;
|
|
103
|
+
$[24] = t5;
|
|
104
|
+
} else t5 = $[24];
|
|
105
|
+
return t5;
|
|
61
106
|
};
|
|
62
107
|
//#endregion
|
|
63
108
|
export { AccordionItem };
|
|
@@ -1,110 +1,86 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { StyleMergeUtils } from "../../../utils/style-merge.util.js";
|
|
2
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
3
|
+
//#region src/components/navigation/Accordion/accordion.cva.d.ts
|
|
4
|
+
declare const accordionDefinition: {
|
|
5
|
+
base: string[];
|
|
6
|
+
config: StyleMergeUtils.Config<{
|
|
7
|
+
readonly variant: {
|
|
8
|
+
readonly filled: "gap-1";
|
|
9
|
+
readonly outlined: "";
|
|
10
|
+
};
|
|
11
|
+
readonly singleItem: {
|
|
12
|
+
readonly true: "";
|
|
13
|
+
readonly false: "";
|
|
14
|
+
};
|
|
15
|
+
}>;
|
|
14
16
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}>;
|
|
17
|
+
type AccordionConfig = NonNullable<typeof accordionDefinition.config>;
|
|
18
|
+
interface AccordionVariantProps extends UIOverrides.VariantProps<AccordionConfig> {}
|
|
19
|
+
declare const accordionItemDefinition: {
|
|
20
|
+
base: string[];
|
|
21
|
+
config: StyleMergeUtils.Config<{
|
|
22
|
+
readonly variant: {
|
|
23
|
+
readonly filled: "rounded-accordion-rounding-filled bg-elevation-fill-default-2";
|
|
24
|
+
readonly outlined: "";
|
|
25
|
+
};
|
|
26
|
+
readonly singleItem: {
|
|
27
|
+
readonly true: "";
|
|
28
|
+
readonly false: "";
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
30
31
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
readonly true: "opacity-50";
|
|
47
|
-
};
|
|
48
|
-
}>;
|
|
32
|
+
declare const accordionTriggerDefinition: {
|
|
33
|
+
base: string[];
|
|
34
|
+
config: StyleMergeUtils.Config<{
|
|
35
|
+
readonly variant: {
|
|
36
|
+
readonly outlined: "rounded-accordion-rounding-outlined hover:bg-elevation-fill-default-2";
|
|
37
|
+
readonly filled: "rounded-accordion-rounding-filled bg-elevation-fill-default-2 hover:bg-elevation-fill-default-3";
|
|
38
|
+
};
|
|
39
|
+
readonly actionPosition: {
|
|
40
|
+
readonly left: "flex-row-reverse";
|
|
41
|
+
readonly right: "flex-row";
|
|
42
|
+
};
|
|
43
|
+
readonly disabled: {
|
|
44
|
+
readonly true: "opacity-50";
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
49
47
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
export declare const accordionHeadingDefinition: {
|
|
54
|
-
base: string[];
|
|
55
|
-
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{}>;
|
|
48
|
+
declare const accordionHeadingDefinition: {
|
|
49
|
+
base: string[];
|
|
50
|
+
config: StyleMergeUtils.Config<{}>;
|
|
56
51
|
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
export declare const accordionHeadingTitleDefinition: {
|
|
61
|
-
base: string[];
|
|
62
|
-
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{}>;
|
|
52
|
+
declare const accordionHeadingTitleDefinition: {
|
|
53
|
+
base: string[];
|
|
54
|
+
config: StyleMergeUtils.Config<{}>;
|
|
63
55
|
};
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
export declare const accordionHeadingSubtitleDefinition: {
|
|
68
|
-
base: string[];
|
|
69
|
-
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{}>;
|
|
56
|
+
declare const accordionHeadingSubtitleDefinition: {
|
|
57
|
+
base: string[];
|
|
58
|
+
config: StyleMergeUtils.Config<{}>;
|
|
70
59
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
readonly false: "rotate-0";
|
|
80
|
-
};
|
|
81
|
-
}>;
|
|
60
|
+
declare const accordionChevronDefinition: {
|
|
61
|
+
base: string[];
|
|
62
|
+
config: StyleMergeUtils.Config<{
|
|
63
|
+
readonly isExpanded: {
|
|
64
|
+
readonly true: "rotate-180";
|
|
65
|
+
readonly false: "rotate-0";
|
|
66
|
+
};
|
|
67
|
+
}>;
|
|
82
68
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
export declare const accordionIconDefinition: {
|
|
87
|
-
base: string[];
|
|
88
|
-
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{}>;
|
|
69
|
+
declare const accordionIconDefinition: {
|
|
70
|
+
base: string[];
|
|
71
|
+
config: StyleMergeUtils.Config<{}>;
|
|
89
72
|
};
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
readonly true: "px-accordion-side-accordion pt-0 pb-accordion-height-accordion";
|
|
98
|
-
};
|
|
99
|
-
}>;
|
|
73
|
+
declare const accordionPanelDefinition: {
|
|
74
|
+
base: string[];
|
|
75
|
+
config: StyleMergeUtils.Config<{
|
|
76
|
+
readonly isExpanded: {
|
|
77
|
+
readonly true: "px-accordion-side-accordion pt-0 pb-accordion-height-accordion";
|
|
78
|
+
};
|
|
79
|
+
}>;
|
|
100
80
|
};
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
export declare const accordionPanelContentDefinition: {
|
|
105
|
-
base: string[];
|
|
106
|
-
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{}>;
|
|
81
|
+
declare const accordionPanelContentDefinition: {
|
|
82
|
+
base: string[];
|
|
83
|
+
config: StyleMergeUtils.Config<{}>;
|
|
107
84
|
};
|
|
108
|
-
|
|
109
|
-
export
|
|
110
|
-
}
|
|
85
|
+
//#endregion
|
|
86
|
+
export { AccordionConfig, AccordionVariantProps, accordionChevronDefinition, accordionDefinition, accordionHeadingDefinition, accordionHeadingSubtitleDefinition, accordionHeadingTitleDefinition, accordionIconDefinition, accordionItemDefinition, accordionPanelContentDefinition, accordionPanelDefinition, accordionTriggerDefinition };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
//#region src/components/navigation/Accordion/accordion.cva.ts
|
|
3
|
-
|
|
3
|
+
const accordionDefinition = UIOverrides.defineConfig({
|
|
4
4
|
base: ["flex w-full flex-col"],
|
|
5
5
|
config: {
|
|
6
6
|
variants: {
|
|
@@ -24,7 +24,7 @@ var accordionDefinition = UIOverrides.defineConfig({
|
|
|
24
24
|
}]
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
|
|
27
|
+
const accordionItemDefinition = UIOverrides.defineConfig({
|
|
28
28
|
base: ["flex w-full flex-col"],
|
|
29
29
|
config: {
|
|
30
30
|
variants: {
|
|
@@ -52,7 +52,7 @@ var accordionItemDefinition = UIOverrides.defineConfig({
|
|
|
52
52
|
}]
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
-
|
|
55
|
+
const accordionTriggerDefinition = UIOverrides.defineConfig({
|
|
56
56
|
base: [
|
|
57
57
|
"group flex w-full items-center gap-accordion-gap-content-to-arrow",
|
|
58
58
|
"px-accordion-side-accordion py-accordion-height-accordion",
|
|
@@ -76,28 +76,28 @@ var accordionTriggerDefinition = UIOverrides.defineConfig({
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
-
|
|
79
|
+
const accordionHeadingDefinition = UIOverrides.defineConfig({
|
|
80
80
|
base: ["flex flex-1 items-center justify-between gap-accordion-gap-content-to-arrow"],
|
|
81
81
|
config: {
|
|
82
82
|
variants: {},
|
|
83
83
|
defaultVariants: {}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
|
|
86
|
+
const accordionHeadingTitleDefinition = UIOverrides.defineConfig({
|
|
87
87
|
base: ["flex-1 text-left text-text-default-1"],
|
|
88
88
|
config: {
|
|
89
89
|
variants: {},
|
|
90
90
|
defaultVariants: {}
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
|
|
93
|
+
const accordionHeadingSubtitleDefinition = UIOverrides.defineConfig({
|
|
94
94
|
base: ["flex-1 text-left text-text-default-2"],
|
|
95
95
|
config: {
|
|
96
96
|
variants: {},
|
|
97
97
|
defaultVariants: {}
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
|
-
|
|
100
|
+
const accordionChevronDefinition = UIOverrides.defineConfig({
|
|
101
101
|
base: ["size-6 shrink-0 text-interactive-text-secondary-idle transition-transform duration-200"],
|
|
102
102
|
config: {
|
|
103
103
|
variants: { isExpanded: {
|
|
@@ -107,18 +107,18 @@ var accordionChevronDefinition = UIOverrides.defineConfig({
|
|
|
107
107
|
defaultVariants: { isExpanded: false }
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
|
-
|
|
110
|
+
const accordionIconDefinition = UIOverrides.defineConfig({
|
|
111
111
|
base: ["size-6 shrink-0 text-text-default-3"],
|
|
112
112
|
config: {
|
|
113
113
|
variants: {},
|
|
114
114
|
defaultVariants: {}
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
|
-
|
|
117
|
+
const accordionPanelDefinition = UIOverrides.defineConfig({
|
|
118
118
|
base: [""],
|
|
119
119
|
config: { variants: { isExpanded: { true: "px-accordion-side-accordion pt-0 pb-accordion-height-accordion" } } }
|
|
120
120
|
});
|
|
121
|
-
|
|
121
|
+
const accordionPanelContentDefinition = UIOverrides.defineConfig({
|
|
122
122
|
base: ["py-accordion-height-content"],
|
|
123
123
|
config: {
|
|
124
124
|
variants: {},
|
|
@@ -1,52 +1,55 @@
|
|
|
1
|
-
import { FC, ReactNode, SVGProps } from
|
|
2
|
-
import { Key } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { FC, ReactNode, SVGProps } from "react";
|
|
2
|
+
import { Key } from "react-aria-components";
|
|
3
|
+
//#region src/components/navigation/Accordion/accordion.types.d.ts
|
|
4
|
+
interface AccordionItem {
|
|
5
|
+
/** Unique identifier for the item */
|
|
6
|
+
id: Key;
|
|
7
|
+
/** Main heading text */
|
|
8
|
+
heading: string;
|
|
9
|
+
/** Optional subheading text */
|
|
10
|
+
subheading?: string;
|
|
11
|
+
/** Content displayed when expanded */
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
/** Optional leading icon */
|
|
14
|
+
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
15
|
+
disabled?: boolean;
|
|
15
16
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
17
|
+
interface AccordionProps {
|
|
18
|
+
/** Array of accordion items */
|
|
19
|
+
items: AccordionItem[];
|
|
20
|
+
/** Visual style variant */
|
|
21
|
+
variant?: "filled" | "outlined";
|
|
22
|
+
/** Position of the expand/collapse chevron */
|
|
23
|
+
actionPosition?: "left" | "right";
|
|
24
|
+
/** Allow multiple items to be expanded simultaneously */
|
|
25
|
+
allowsMultipleExpanded?: boolean;
|
|
26
|
+
/** Controlled expanded keys */
|
|
27
|
+
expandedKeys?: Iterable<Key>;
|
|
28
|
+
/** Default expanded keys (uncontrolled) */
|
|
29
|
+
defaultExpandedKeys?: Iterable<Key>;
|
|
30
|
+
/** Callback when expansion state changes */
|
|
31
|
+
onExpandedChange?: (keys: Set<Key>) => void;
|
|
32
|
+
/** Additional CSS class */
|
|
33
|
+
className?: string;
|
|
34
|
+
disabled?: boolean;
|
|
34
35
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
36
|
+
interface AccordionItemProps {
|
|
37
|
+
/** Unique identifier for the item */
|
|
38
|
+
id: Key;
|
|
39
|
+
/** Main heading text */
|
|
40
|
+
heading: string;
|
|
41
|
+
/** Optional subheading text */
|
|
42
|
+
subheading?: string;
|
|
43
|
+
/** Content displayed when expanded */
|
|
44
|
+
children: ReactNode;
|
|
45
|
+
/** Optional leading icon */
|
|
46
|
+
icon?: FC<SVGProps<SVGSVGElement>>;
|
|
47
|
+
/** Visual style variant */
|
|
48
|
+
variant?: "filled" | "outlined";
|
|
49
|
+
/** Position of the expand/collapse chevron */
|
|
50
|
+
actionPosition?: "left" | "right";
|
|
51
|
+
disabled?: boolean;
|
|
52
|
+
isSingle?: boolean;
|
|
52
53
|
}
|
|
54
|
+
//#endregion
|
|
55
|
+
export { AccordionItem, AccordionItemProps, AccordionProps };
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import { StepperProps } from
|
|
2
|
-
|
|
1
|
+
import { StepperProps } from "./stepper.types.js";
|
|
2
|
+
//#region src/components/navigation/Stepper/Stepper.d.ts
|
|
3
|
+
declare const Stepper: ({ steps, currentStep, orientation, contentOrientation, iconsOnly, titlesOnly, onStepClick, className }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { Stepper };
|