@povio/ui 2.3.2 → 3.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icons/AlignCenter.js +26 -11
- package/dist/assets/icons/AlignLeft.js +26 -11
- package/dist/assets/icons/AlignLeftRight.js +26 -11
- package/dist/assets/icons/AlignRight.js +26 -11
- package/dist/assets/icons/ArrowDropDown.js +26 -11
- package/dist/assets/icons/ArrowDropUp.js +26 -11
- package/dist/assets/icons/ArrowLeft.js +26 -11
- package/dist/assets/icons/ArrowRight.js +26 -11
- package/dist/assets/icons/Bold.js +26 -11
- package/dist/assets/icons/BulletedList.js +26 -11
- package/dist/assets/icons/Calendar.js +28 -13
- package/dist/assets/icons/Check.js +28 -13
- package/dist/assets/icons/CheckCircle.js +26 -11
- package/dist/assets/icons/CheckboxCheckmark.js +29 -14
- package/dist/assets/icons/CheckboxIndeterminate.js +29 -14
- package/dist/assets/icons/ChevronDown.js +28 -13
- package/dist/assets/icons/ChevronLeft.js +28 -13
- package/dist/assets/icons/ChevronRight.js +28 -13
- package/dist/assets/icons/ChevronUp.js +28 -13
- package/dist/assets/icons/ChevronsLeft.js +28 -13
- package/dist/assets/icons/ChevronsRight.js +28 -13
- package/dist/assets/icons/Clock.js +26 -11
- package/dist/assets/icons/Close.js +26 -11
- package/dist/assets/icons/DateTime.js +35 -14
- package/dist/assets/icons/DragIndicator.js +26 -11
- package/dist/assets/icons/File.js +28 -13
- package/dist/assets/icons/Highlight.js +26 -11
- package/dist/assets/icons/HighlightOn.js +49 -15
- package/dist/assets/icons/Home.js +26 -11
- package/dist/assets/icons/Info.js +37 -16
- package/dist/assets/icons/Italic.js +26 -11
- package/dist/assets/icons/Link.js +26 -11
- package/dist/assets/icons/Menu.js +26 -11
- package/dist/assets/icons/NumberedList.js +26 -11
- package/dist/assets/icons/PointerHorizontal.js +26 -11
- package/dist/assets/icons/PointerVertical.js +26 -11
- package/dist/assets/icons/Search.js +26 -11
- package/dist/assets/icons/Send.js +28 -13
- package/dist/assets/icons/Strikethrough.js +26 -11
- package/dist/assets/icons/TextColor.js +48 -14
- package/dist/assets/icons/Today.js +26 -11
- package/dist/assets/icons/Underlined.js +28 -13
- package/dist/assets/icons/Upload.js +35 -14
- package/dist/assets/icons/Visibility.js +26 -11
- package/dist/assets/icons/VisibilityOff.js +26 -11
- package/dist/assets/icons/WarningFilled.js +28 -13
- package/dist/assets/locales/sl/translation.json.js +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.js +215 -64
- package/dist/components/Breadcrumbs/breadcrumbs.cva.d.ts +40 -14
- package/dist/components/Breadcrumbs/breadcrumbs.cva.js +21 -18
- package/dist/components/Menu/Menu.js +18 -2
- package/dist/components/Menu/MenuDesktop.js +41 -7
- package/dist/components/Menu/MenuItem.js +35 -12
- package/dist/components/Menu/MenuMobile.js +103 -44
- package/dist/components/Menu/MenuPopover.js +110 -34
- package/dist/components/Menu/menu.cva.d.ts +35 -13
- package/dist/components/Menu/menu.cva.js +30 -24
- package/dist/components/buttons/Button/Button.js +7 -7
- package/dist/components/buttons/Button/button.cva.d.ts +95 -26
- package/dist/components/buttons/Button/button.cva.js +601 -589
- package/dist/components/buttons/IconButton/IconButton.js +40 -8
- package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +2 -1
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +34 -9
- package/dist/components/buttons/PillButton/PillButton.js +59 -21
- package/dist/components/buttons/PillButton/pillButton.cva.d.ts +33 -9
- package/dist/components/buttons/PillButton/pillButton.cva.js +247 -239
- package/dist/components/buttons/SplitButton/SplitButton.js +103 -18
- package/dist/components/buttons/TextButton/TextButton.js +30 -8
- package/dist/components/buttons/ToggleButton/ToggleButton.js +28 -8
- package/dist/components/buttons/shared/ButtonContent.js +83 -25
- package/dist/components/buttons/shared/buttonContent.cva.d.ts +3 -5
- package/dist/components/buttons/shared/buttonContent.cva.js +1 -8
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/inputs/Checkbox/Checkbox.js +203 -37
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +28 -14
- package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +26 -10
- package/dist/components/inputs/Checkbox/checkbox.cva.js +47 -40
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +12 -5
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +371 -75
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +12 -5
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +596 -218
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +13 -5
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +267 -47
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +7 -3
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +611 -121
- package/dist/components/inputs/DateTime/shared/Calendar.d.ts +5 -2
- package/dist/components/inputs/DateTime/shared/Calendar.js +338 -119
- package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +4 -2
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +310 -103
- package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +4 -2
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +150 -33
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +249 -93
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +318 -137
- package/dist/components/inputs/DateTime/shared/DateField.js +286 -112
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +13 -3
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +387 -143
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +15 -0
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +96 -11
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +84 -30
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +59 -10
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +103 -58
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +193 -82
- package/dist/components/inputs/DateTime/shared/TimeField.js +27 -8
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +279 -110
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +4 -1
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +214 -69
- package/dist/components/inputs/DateTime/shared/YearPicker.js +119 -68
- package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +5 -0
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +27 -0
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +15 -0
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +15 -0
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +32 -0
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +2 -0
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +1 -0
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +40 -0
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +85 -0
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +1 -0
- package/dist/components/inputs/File/FileUpload.js +87 -44
- package/dist/components/inputs/File/FileUploadContainer.js +15 -7
- package/dist/components/inputs/File/InputUpload.js +317 -79
- package/dist/components/inputs/File/shared/FileCard.js +104 -41
- package/dist/components/inputs/File/shared/FileCardList.js +47 -12
- package/dist/components/inputs/File/shared/FileUploadContent.js +175 -44
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +149 -46
- package/dist/components/inputs/File/shared/FileUploadContentError.js +234 -93
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +230 -97
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +199 -55
- package/dist/components/inputs/File/shared/InputUploadContent.js +151 -37
- package/dist/components/inputs/File/shared/InputUploadFilled.js +51 -10
- package/dist/components/inputs/File/shared/ProgressBar.js +48 -9
- package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +26 -9
- package/dist/components/inputs/File/shared/fileUpload.cva.js +48 -40
- package/dist/components/inputs/File/shared/inputUploadButton.cva.d.ts +23 -6
- package/dist/components/inputs/File/shared/inputUploadButton.cva.js +29 -20
- package/dist/components/inputs/FormField/FormField.d.ts +3 -3
- package/dist/components/inputs/FormField/FormField.js +119 -37
- package/dist/components/inputs/FormField/FormFieldError.js +27 -7
- package/dist/components/inputs/FormField/FormFieldHeader.d.ts +2 -2
- package/dist/components/inputs/FormField/FormFieldHeader.js +81 -22
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +31 -7
- package/dist/components/inputs/FormField/FormFieldHelper.js +28 -8
- package/dist/components/inputs/FormField/FormFieldLabel.d.ts +2 -2
- package/dist/components/inputs/FormField/FormFieldLabel.js +46 -15
- package/dist/components/inputs/FormField/formFieldError.cva.d.ts +12 -5
- package/dist/components/inputs/FormField/formFieldError.cva.js +11 -8
- package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +22 -0
- package/dist/components/inputs/FormField/formFieldHeader.cva.js +13 -0
- package/dist/components/inputs/FormField/formFieldHelper.cva.d.ts +12 -5
- package/dist/components/inputs/FormField/formFieldHelper.cva.js +11 -8
- package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +5 -2
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +450 -100
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +45 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +571 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +35 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +575 -0
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +48 -9
- package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +12 -0
- package/dist/components/inputs/Input/TextArea/TextArea.cva.js +4 -0
- package/dist/components/inputs/Input/TextArea/TextArea.js +309 -94
- package/dist/components/inputs/Input/TextInput/TextInput.d.ts +3 -1
- package/dist/components/inputs/Input/TextInput/TextInput.js +422 -93
- package/dist/components/inputs/Input/shared/InputContent.js +196 -63
- package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +1 -0
- package/dist/components/inputs/Input/shared/numberStatic.utils.js +7 -0
- package/dist/components/inputs/Inputs/Form.js +40 -11
- package/dist/components/inputs/Inputs/InputItem.d.ts +15 -21
- package/dist/components/inputs/Inputs/InputItem.js +69 -14
- package/dist/components/inputs/Inputs/Inputs.js +37 -11
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +3 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.js +356 -64
- package/dist/components/inputs/RadioGroup/radio.cva.d.ts +101 -6
- package/dist/components/inputs/RadioGroup/radio.cva.js +74 -24
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +6 -2
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +214 -22
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +3 -18
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +104 -8
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +36 -0
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +14 -0
- package/dist/components/inputs/Selection/Select/QuerySelect.js +173 -0
- package/dist/components/inputs/Selection/Select/Select.d.ts +7 -3
- package/dist/components/inputs/Selection/Select/Select.js +225 -18
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +8 -1
- package/dist/components/inputs/Selection/shared/SelectBase.js +69 -18
- package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +396 -141
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +398 -119
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +99 -25
- package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectListBox.js +164 -52
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +88 -38
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +72 -19
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +73 -24
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +58 -9
- package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectMobile.js +9 -3
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +9 -0
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +47 -0
- package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +12 -0
- package/dist/components/inputs/Selection/shared/querySelect.utils.js +36 -0
- package/dist/components/inputs/Selection/shared/select.context.d.ts +3 -2
- package/dist/components/inputs/Selection/shared/select.context.js +67 -36
- package/dist/components/inputs/Selection/shared/select.types.d.ts +3 -2
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +10 -0
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +4 -0
- package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +5 -0
- package/dist/components/inputs/Selection/shared/selectInput.cva.js +5 -0
- package/dist/components/inputs/Selection/shared/selectItem.cva.d.ts +16 -6
- package/dist/components/inputs/Selection/shared/selectItem.cva.js +21 -18
- package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +23 -0
- package/dist/components/inputs/Selection/shared/staticSelect.utils.js +37 -0
- package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +1 -0
- package/dist/components/inputs/Selection/shared/useSelectItems.js +109 -49
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +82 -0
- package/dist/components/inputs/Skeleton/InputFrame.js +548 -0
- package/dist/components/inputs/Slider/Slider.d.ts +2 -1
- package/dist/components/inputs/Slider/Slider.js +265 -76
- package/dist/components/inputs/TextEditor/TextEditor.d.ts +1 -0
- package/dist/components/inputs/TextEditor/TextEditor.js +450 -101
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +37 -11
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +105 -33
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +194 -45
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +88 -28
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +48 -14
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +66 -19
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +49 -15
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +92 -32
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +126 -54
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +141 -38
- package/dist/components/inputs/Toggle/Toggle.d.ts +1 -0
- package/dist/components/inputs/Toggle/Toggle.js +217 -40
- package/dist/components/inputs/Toggle/toggle.cva.d.ts +15 -6
- package/dist/components/inputs/Toggle/toggle.cva.js +25 -21
- package/dist/components/inputs/shared/CheckContent.d.ts +2 -1
- package/dist/components/inputs/shared/CheckContent.js +23 -13
- package/dist/components/inputs/shared/InputClear.d.ts +2 -1
- package/dist/components/inputs/shared/InputClear.js +88 -12
- package/dist/components/inputs/shared/TooltipWrapper.js +50 -11
- package/dist/components/inputs/shared/input.cva.d.ts +137 -16
- package/dist/components/inputs/shared/input.cva.js +317 -273
- package/dist/components/inputs/shared/label.cva.d.ts +15 -6
- package/dist/components/inputs/shared/label.cva.js +28 -25
- package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +12 -0
- package/dist/components/inputs/shared/tooltipWrapper.cva.js +4 -0
- package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +14 -0
- package/dist/components/inputs/shared/useStaticInputHandoff.js +100 -0
- package/dist/components/navigation/Accordion/Accordion.js +71 -24
- package/dist/components/navigation/Accordion/AccordionItem.js +97 -52
- package/dist/components/navigation/Accordion/accordion.cva.d.ts +109 -44
- package/dist/components/navigation/Accordion/accordion.cva.js +114 -84
- package/dist/components/navigation/Stepper/Stepper.js +69 -24
- package/dist/components/navigation/Stepper/StepperItem.js +112 -39
- package/dist/components/navigation/Stepper/StepperSeparator.js +25 -7
- package/dist/components/navigation/Stepper/stepper.cva.d.ts +86 -30
- package/dist/components/navigation/Stepper/stepper.cva.js +104 -83
- package/dist/components/overlays/ActionModal/ActionModal.js +169 -35
- package/dist/components/overlays/BottomSheet/BottomSheet.js +96 -23
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +48 -8
- package/dist/components/overlays/Drawer/Drawer.js +62 -20
- package/dist/components/overlays/Modal/Modal.js +5 -5
- package/dist/components/overlays/Modal/modal.cva.d.ts +34 -9
- package/dist/components/overlays/Modal/modal.cva.js +38 -27
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +86 -30
- package/dist/components/overlays/Tooltip/Tooltip.js +143 -34
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +37 -12
- package/dist/components/overlays/Tooltip/tooltip.cva.d.ts +45 -17
- package/dist/components/overlays/Tooltip/tooltip.cva.js +38 -26
- package/dist/components/segment/Segment.js +221 -60
- package/dist/components/segment/SegmentItem.js +70 -13
- package/dist/components/segment/segment.cva.d.ts +18 -7
- package/dist/components/segment/segment.cva.js +24 -21
- package/dist/components/shared/pagination/Pagination.js +108 -22
- package/dist/components/shared/pagination/PaginationList.js +167 -64
- package/dist/components/shared/popover.cva.d.ts +7 -3
- package/dist/components/shared/popover.cva.js +3 -3
- package/dist/components/status/Alert/Alert.js +103 -36
- package/dist/components/status/Alert/alert.cva.d.ts +18 -6
- package/dist/components/status/Alert/alert.cva.js +60 -57
- package/dist/components/status/Loader/Loader.js +77 -22
- package/dist/components/status/Loader/loader.cva.d.ts +23 -4
- package/dist/components/status/Loader/loader.cva.js +22 -13
- package/dist/components/status/Toast/Toast.js +27 -20
- package/dist/components/status/Toast/toast.cva.d.ts +61 -10
- package/dist/components/status/Toast/toast.cva.js +129 -64
- package/dist/components/status/Toast/useToast.js +62 -57
- package/dist/components/status/shared/status.cva.d.ts +30 -8
- package/dist/components/status/shared/status.cva.js +56 -50
- package/dist/components/table/CellText.js +3 -3
- package/dist/components/table/ColumnConfig.js +158 -54
- package/dist/components/table/HeaderText.js +3 -3
- package/dist/components/table/InfiniteTable.js +67 -16
- package/dist/components/table/PaginatedTable.js +84 -18
- package/dist/components/table/Table.js +34 -33
- package/dist/components/table/table.cva.d.ts +52 -19
- package/dist/components/table/table.cva.js +44 -35
- package/dist/components/text/Link/Link.js +22 -10
- package/dist/components/text/Link/link.cva.d.ts +11 -5
- package/dist/components/text/Link/link.cva.js +8 -5
- package/dist/components/text/Tag/Tag.js +3 -3
- package/dist/components/text/Tag/tag.cva.d.ts +15 -5
- package/dist/components/text/Tag/tag.cva.js +51 -48
- package/dist/components/text/Typography/Typography.js +25 -10
- package/dist/components/text/Typography/typography.cva.d.ts +93 -7
- package/dist/components/text/Typography/typography.cva.js +126 -122
- package/dist/config/confirmation.context.js +1 -1
- package/dist/config/link.context.js +23 -9
- package/dist/config/router.context.js +42 -16
- package/dist/config/theme.context.js +98 -45
- package/dist/config/uiConfig.context.d.ts +20 -6
- package/dist/config/uiConfig.context.js +68 -14
- package/dist/config/uiOverrides.context.d.ts +192 -0
- package/dist/config/uiOverrides.context.js +113 -0
- package/dist/helpers/dynamicInputs.d.ts +5 -5
- package/dist/helpers/dynamicInputs.js +3 -0
- package/dist/hooks/useAutosave.d.ts +2 -1
- package/dist/hooks/useAutosave.js +12 -4
- package/dist/hooks/useAutosave.spec.d.ts +1 -0
- package/dist/hooks/useBreakpoint.js +16 -3
- package/dist/hooks/useDebounceCallback.js +51 -17
- package/dist/hooks/useFilters.js +125 -64
- package/dist/hooks/useForm.js +42 -8
- package/dist/hooks/useFormAutosave.d.ts +3 -1
- package/dist/hooks/useFormAutosave.js +122 -30
- package/dist/hooks/useFormAutosave.spec.d.ts +1 -0
- package/dist/hooks/useIntersectionObserver.d.ts +1 -1
- package/dist/hooks/useIntersectionObserver.js +91 -24
- package/dist/hooks/useKeyInteractions.d.ts +20 -0
- package/dist/hooks/useKeyInteractions.js +54 -0
- package/dist/hooks/useKeyInteractions.spec.d.ts +1 -0
- package/dist/hooks/useLocalStorage.js +43 -10
- package/dist/hooks/useLongPressRepeat.js +55 -20
- package/dist/hooks/usePagination.js +49 -19
- package/dist/hooks/useQueryAutocomplete.d.ts +14 -0
- package/dist/hooks/useQueryAutocomplete.js +57 -0
- package/dist/hooks/useScrollableListBox.js +37 -16
- package/dist/hooks/useSorting.js +69 -28
- package/dist/hooks/useStateAndRef.js +21 -7
- package/dist/hooks/useTableColumnConfig.js +124 -31
- package/dist/hooks/useTranslationMemo.js +25 -5
- package/dist/index.d.ts +37 -1
- package/dist/index.js +34 -3
- package/dist/tw-ui-plugin.js +6 -0
- package/dist/utils/date-time.utils.d.ts +38 -10
- package/dist/utils/date-time.utils.js +136 -22
- package/dist/utils/query.utils.d.ts +4 -0
- package/dist/utils/query.utils.js +8 -0
- package/dist/utils/style-merge.util.d.ts +43 -0
- package/dist/utils/style-merge.util.js +233 -0
- package/dist/utils/style-merge.util.spec.d.ts +1 -0
- package/package.json +1 -1
- package/dist/config/uiStyle.context.d.ts +0 -162
- package/dist/config/uiStyle.context.js +0 -30
|
@@ -1,29 +1,32 @@
|
|
|
1
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
1
2
|
import { compoundMapper } from "../../../utils/compoundMapper.js";
|
|
2
|
-
import { cva } from "class-variance-authority";
|
|
3
3
|
//#region src/components/inputs/shared/label.cva.ts
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
4
|
+
var labelDefinition = UIOverrides.defineConfig({
|
|
5
|
+
base: [""],
|
|
6
|
+
config: {
|
|
7
|
+
variants: { as: {
|
|
8
|
+
default: ["flex items-start gap-1 text-text-default-1 input-disabled:text-text-default-3"],
|
|
9
|
+
filter: ["text-text-default-1 input-disabled:text-text-default-3"],
|
|
10
|
+
inline: ["flex items-start gap-1 text-text-default-1"],
|
|
11
|
+
floating: [
|
|
12
|
+
"pointer-events-none",
|
|
13
|
+
"absolute transition-all duration-75",
|
|
14
|
+
"top-1/2 -translate-y-1/2",
|
|
15
|
+
"text-text-default-3",
|
|
16
|
+
"input-disabled:text-interactive-text-secondary-disabled!",
|
|
17
|
+
"input-filled:top-[calc(var(--spacing-floating-label-input-height-filled)+var(--spacing-floating-label-input-offset-top))]",
|
|
18
|
+
"input-filled:translate-y-0",
|
|
19
|
+
"input-filled:text-text-default-1",
|
|
20
|
+
"input-filled:font-semibold!",
|
|
21
|
+
"input-filled:text-label-3!",
|
|
22
|
+
"group-data-[text-area]/text-area:top-floating-label-input-height-empty group-data-[text-area]/text-area:translate-y-0",
|
|
23
|
+
"group-has-[textarea:not(:placeholder-shown)]/text-area:hidden",
|
|
24
|
+
"group-data-[text-editor]/text-editor:top-floating-label-input-height-empty group-data-[text-editor]/text-editor:left-input-side-default group-data-[text-editor]/text-editor:translate-y-0",
|
|
25
|
+
"group-data-[is-filled=true]/text-editor:hidden"
|
|
26
|
+
]
|
|
27
|
+
} },
|
|
28
|
+
defaultVariants: { as: "default" }
|
|
29
|
+
}
|
|
27
30
|
});
|
|
28
31
|
var labelTypography = compoundMapper({
|
|
29
32
|
compoundVariants: [
|
|
@@ -68,4 +71,4 @@ var labelTypography = compoundMapper({
|
|
|
68
71
|
defaultVariants: { as: "default" }
|
|
69
72
|
});
|
|
70
73
|
//#endregion
|
|
71
|
-
export {
|
|
74
|
+
export { labelDefinition, labelTypography };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UIOverrides } from '../../../config/uiOverrides.context';
|
|
2
|
+
export declare const tooltipWrapperTriggerDefinition: {
|
|
3
|
+
base: string[];
|
|
4
|
+
config?: import("../../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
|
|
5
|
+
};
|
|
6
|
+
export declare const tooltipWrapperTrigger: {
|
|
7
|
+
base: string[];
|
|
8
|
+
config?: import("../../../utils/style-merge.util").StyleMergeUtils.Config<Record<never, never>>;
|
|
9
|
+
};
|
|
10
|
+
export type TooltipWrapperTriggerConfig = NonNullable<typeof tooltipWrapperTriggerDefinition.config>;
|
|
11
|
+
export interface TooltipWrapperTriggerVariantProps extends UIOverrides.VariantProps<TooltipWrapperTriggerConfig> {
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Dispatch, RefObject, SetStateAction } from 'react';
|
|
2
|
+
interface StaticInputHandoffOptions<TElement extends HTMLElement> {
|
|
3
|
+
inputRef: RefObject<TElement | null>;
|
|
4
|
+
renderInput: boolean;
|
|
5
|
+
setRenderInput: Dispatch<SetStateAction<boolean>>;
|
|
6
|
+
getFocusTarget?: (element: TElement) => HTMLElement | null | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare const useStaticInputHandoff: <TElement extends HTMLElement = HTMLInputElement>({ inputRef, renderInput, setRenderInput, getFocusTarget, }: StaticInputHandoffOptions<TElement>) => {
|
|
9
|
+
shouldFocus: boolean;
|
|
10
|
+
renderRealInput: (focus: boolean) => void;
|
|
11
|
+
replayStaticInputChange: (value: string) => void;
|
|
12
|
+
replayStaticInputPress: () => void;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { c } from "react/compiler-runtime";
|
|
2
|
+
import { useLayoutEffect, useRef, useState } from "react";
|
|
3
|
+
//#region src/components/inputs/shared/useStaticInputHandoff.ts
|
|
4
|
+
var useStaticInputHandoff = (t0) => {
|
|
5
|
+
const $ = c(15);
|
|
6
|
+
const { inputRef, renderInput, setRenderInput, getFocusTarget } = t0;
|
|
7
|
+
const [shouldFocus, setShouldFocus] = useState(false);
|
|
8
|
+
const pendingStaticChangeRef = useRef(null);
|
|
9
|
+
const shouldReplayStaticPressRef = useRef(false);
|
|
10
|
+
let t1;
|
|
11
|
+
let t2;
|
|
12
|
+
if ($[0] !== getFocusTarget || $[1] !== inputRef || $[2] !== renderInput || $[3] !== shouldFocus) {
|
|
13
|
+
t1 = () => {
|
|
14
|
+
if (!renderInput || !shouldFocus) return;
|
|
15
|
+
const focusRealInput = (replayPendingInteraction) => {
|
|
16
|
+
const input = inputRef.current;
|
|
17
|
+
const pendingValue = pendingStaticChangeRef.current;
|
|
18
|
+
const focusTarget = input ? getFocusTarget?.(input) ?? input : null;
|
|
19
|
+
if (replayPendingInteraction && focusTarget instanceof HTMLInputElement && pendingValue != null) {
|
|
20
|
+
(Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set)?.call(focusTarget, pendingValue);
|
|
21
|
+
focusTarget.dispatchEvent(new Event("input", { bubbles: true }));
|
|
22
|
+
pendingStaticChangeRef.current = null;
|
|
23
|
+
}
|
|
24
|
+
focusTarget?.focus();
|
|
25
|
+
if (replayPendingInteraction && shouldReplayStaticPressRef.current) {
|
|
26
|
+
shouldReplayStaticPressRef.current = false;
|
|
27
|
+
focusTarget?.click();
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
focusRealInput(true);
|
|
31
|
+
const frame = requestAnimationFrame(() => {
|
|
32
|
+
focusRealInput(false);
|
|
33
|
+
setShouldFocus(false);
|
|
34
|
+
});
|
|
35
|
+
return () => {
|
|
36
|
+
cancelAnimationFrame(frame);
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
t2 = [
|
|
40
|
+
getFocusTarget,
|
|
41
|
+
inputRef,
|
|
42
|
+
renderInput,
|
|
43
|
+
shouldFocus
|
|
44
|
+
];
|
|
45
|
+
$[0] = getFocusTarget;
|
|
46
|
+
$[1] = inputRef;
|
|
47
|
+
$[2] = renderInput;
|
|
48
|
+
$[3] = shouldFocus;
|
|
49
|
+
$[4] = t1;
|
|
50
|
+
$[5] = t2;
|
|
51
|
+
} else {
|
|
52
|
+
t1 = $[4];
|
|
53
|
+
t2 = $[5];
|
|
54
|
+
}
|
|
55
|
+
useLayoutEffect(t1, t2);
|
|
56
|
+
let t3;
|
|
57
|
+
let t4;
|
|
58
|
+
let t5;
|
|
59
|
+
if ($[6] !== setRenderInput) {
|
|
60
|
+
t3 = (focus) => {
|
|
61
|
+
setShouldFocus(focus);
|
|
62
|
+
setRenderInput(true);
|
|
63
|
+
};
|
|
64
|
+
t4 = (value) => {
|
|
65
|
+
pendingStaticChangeRef.current = value;
|
|
66
|
+
setShouldFocus(true);
|
|
67
|
+
setRenderInput(true);
|
|
68
|
+
};
|
|
69
|
+
t5 = () => {
|
|
70
|
+
shouldReplayStaticPressRef.current = true;
|
|
71
|
+
setShouldFocus(true);
|
|
72
|
+
setRenderInput(true);
|
|
73
|
+
};
|
|
74
|
+
$[6] = setRenderInput;
|
|
75
|
+
$[7] = t3;
|
|
76
|
+
$[8] = t4;
|
|
77
|
+
$[9] = t5;
|
|
78
|
+
} else {
|
|
79
|
+
t3 = $[7];
|
|
80
|
+
t4 = $[8];
|
|
81
|
+
t5 = $[9];
|
|
82
|
+
}
|
|
83
|
+
let t6;
|
|
84
|
+
if ($[10] !== shouldFocus || $[11] !== t3 || $[12] !== t4 || $[13] !== t5) {
|
|
85
|
+
t6 = {
|
|
86
|
+
shouldFocus,
|
|
87
|
+
renderRealInput: t3,
|
|
88
|
+
replayStaticInputChange: t4,
|
|
89
|
+
replayStaticInputPress: t5
|
|
90
|
+
};
|
|
91
|
+
$[10] = shouldFocus;
|
|
92
|
+
$[11] = t3;
|
|
93
|
+
$[12] = t4;
|
|
94
|
+
$[13] = t5;
|
|
95
|
+
$[14] = t6;
|
|
96
|
+
} else t6 = $[14];
|
|
97
|
+
return t6;
|
|
98
|
+
};
|
|
99
|
+
//#endregion
|
|
100
|
+
export { useStaticInputHandoff };
|
|
@@ -1,34 +1,81 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
|
+
import { accordionDefinition } from "./accordion.cva.js";
|
|
3
3
|
import { AccordionItem } from "./AccordionItem.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
6
|
import { clsx } from "clsx";
|
|
6
7
|
import { DisclosureGroup } from "react-aria-components";
|
|
7
8
|
//#region src/components/navigation/Accordion/Accordion.tsx
|
|
8
|
-
var Accordion = (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
var 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 };
|
|
@@ -1,63 +1,108 @@
|
|
|
1
1
|
import { ChevronDownIcon } from "../../../assets/icons/ChevronDown.js";
|
|
2
|
-
import {
|
|
2
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
3
3
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
4
|
-
import {
|
|
4
|
+
import { accordionChevronDefinition, accordionHeadingDefinition, accordionHeadingSubtitleDefinition, accordionHeadingTitleDefinition, accordionIconDefinition, accordionItemDefinition, accordionPanelContentDefinition, accordionPanelDefinition, accordionTriggerDefinition } from "./accordion.cva.js";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
5
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
import { Button, Disclosure, DisclosurePanel, Heading } from "react-aria-components";
|
|
7
8
|
//#region src/components/navigation/Accordion/AccordionItem.tsx
|
|
8
|
-
var AccordionItem = (
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
var 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;
|
|
14
|
+
const itemCva = UIOverrides.useCva("accordion.itemCva", accordionItemDefinition);
|
|
15
|
+
const triggerCva = UIOverrides.useCva("accordion.triggerCva", accordionTriggerDefinition);
|
|
16
|
+
const headingCva = UIOverrides.useCva("accordion.headingCva", accordionHeadingDefinition);
|
|
17
|
+
const headingTitleCva = UIOverrides.useCva("accordion.headingTitleCva", accordionHeadingTitleDefinition);
|
|
18
|
+
const headingSubtitleCva = UIOverrides.useCva("accordion.headingSubtitleCva", accordionHeadingSubtitleDefinition);
|
|
19
|
+
const chevronCva = UIOverrides.useCva("accordion.chevronCva", accordionChevronDefinition);
|
|
20
|
+
const iconCva = UIOverrides.useCva("accordion.iconCva", accordionIconDefinition);
|
|
21
|
+
const panelCva = UIOverrides.useCva("accordion.panelCva", accordionPanelDefinition);
|
|
22
|
+
const panelContentCva = UIOverrides.useCva("accordion.panelContentCva", accordionPanelContentDefinition);
|
|
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(ChevronDownIcon, { 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,45 +1,110 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
import { UIOverrides } from '../../../config/uiOverrides.context';
|
|
2
|
+
export declare const accordionDefinition: {
|
|
3
|
+
base: string[];
|
|
4
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
5
|
+
readonly variant: {
|
|
6
|
+
readonly filled: "gap-1";
|
|
7
|
+
readonly outlined: "";
|
|
8
|
+
};
|
|
9
|
+
readonly singleItem: {
|
|
10
|
+
readonly true: "";
|
|
11
|
+
readonly false: "";
|
|
12
|
+
};
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
export type AccordionConfig = NonNullable<typeof accordionDefinition.config>;
|
|
16
|
+
export interface AccordionVariantProps extends UIOverrides.VariantProps<AccordionConfig> {
|
|
17
|
+
}
|
|
18
|
+
export declare const accordionItemDefinition: {
|
|
19
|
+
base: string[];
|
|
20
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
21
|
+
readonly variant: {
|
|
22
|
+
readonly filled: "rounded-accordion-rounding-filled bg-elevation-fill-default-2";
|
|
23
|
+
readonly outlined: "";
|
|
24
|
+
};
|
|
25
|
+
readonly singleItem: {
|
|
26
|
+
readonly true: "";
|
|
27
|
+
readonly false: "";
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
};
|
|
31
|
+
export type AccordionItemConfig = NonNullable<typeof accordionItemDefinition.config>;
|
|
32
|
+
export interface AccordionItemVariantProps extends UIOverrides.VariantProps<AccordionItemConfig> {
|
|
33
|
+
}
|
|
34
|
+
export declare const accordionTriggerDefinition: {
|
|
35
|
+
base: string[];
|
|
36
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
37
|
+
readonly variant: {
|
|
38
|
+
readonly outlined: "rounded-accordion-rounding-outlined hover:bg-elevation-fill-default-2";
|
|
39
|
+
readonly filled: "rounded-accordion-rounding-filled bg-elevation-fill-default-2 hover:bg-elevation-fill-default-3";
|
|
40
|
+
};
|
|
41
|
+
readonly actionPosition: {
|
|
42
|
+
readonly left: "flex-row-reverse";
|
|
43
|
+
readonly right: "flex-row";
|
|
44
|
+
};
|
|
45
|
+
readonly disabled: {
|
|
46
|
+
readonly true: "opacity-50";
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
49
|
+
};
|
|
50
|
+
export type AccordionTriggerConfig = NonNullable<typeof accordionTriggerDefinition.config>;
|
|
51
|
+
export interface AccordionTriggerVariantProps extends UIOverrides.VariantProps<AccordionTriggerConfig> {
|
|
52
|
+
}
|
|
53
|
+
export declare const accordionHeadingDefinition: {
|
|
54
|
+
base: string[];
|
|
55
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{}>;
|
|
56
|
+
};
|
|
57
|
+
export type AccordionHeadingConfig = NonNullable<typeof accordionHeadingDefinition.config>;
|
|
58
|
+
export interface AccordionHeadingVariantProps extends UIOverrides.VariantProps<AccordionHeadingConfig> {
|
|
59
|
+
}
|
|
60
|
+
export declare const accordionHeadingTitleDefinition: {
|
|
61
|
+
base: string[];
|
|
62
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{}>;
|
|
63
|
+
};
|
|
64
|
+
export type AccordionHeadingTitleConfig = NonNullable<typeof accordionHeadingTitleDefinition.config>;
|
|
65
|
+
export interface AccordionHeadingTitleVariantProps extends UIOverrides.VariantProps<AccordionHeadingTitleConfig> {
|
|
66
|
+
}
|
|
67
|
+
export declare const accordionHeadingSubtitleDefinition: {
|
|
68
|
+
base: string[];
|
|
69
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{}>;
|
|
70
|
+
};
|
|
71
|
+
export type AccordionHeadingSubtitleConfig = NonNullable<typeof accordionHeadingSubtitleDefinition.config>;
|
|
72
|
+
export interface AccordionHeadingSubtitleVariantProps extends UIOverrides.VariantProps<AccordionHeadingSubtitleConfig> {
|
|
73
|
+
}
|
|
74
|
+
export declare const accordionChevronDefinition: {
|
|
75
|
+
base: string[];
|
|
76
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
77
|
+
readonly isExpanded: {
|
|
78
|
+
readonly true: "rotate-180";
|
|
79
|
+
readonly false: "rotate-0";
|
|
80
|
+
};
|
|
81
|
+
}>;
|
|
82
|
+
};
|
|
83
|
+
export type AccordionChevronConfig = NonNullable<typeof accordionChevronDefinition.config>;
|
|
84
|
+
export interface AccordionChevronVariantProps extends UIOverrides.VariantProps<AccordionChevronConfig> {
|
|
85
|
+
}
|
|
86
|
+
export declare const accordionIconDefinition: {
|
|
87
|
+
base: string[];
|
|
88
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{}>;
|
|
89
|
+
};
|
|
90
|
+
export type AccordionIconConfig = NonNullable<typeof accordionIconDefinition.config>;
|
|
91
|
+
export interface AccordionIconVariantProps extends UIOverrides.VariantProps<AccordionIconConfig> {
|
|
92
|
+
}
|
|
93
|
+
export declare const accordionPanelDefinition: {
|
|
94
|
+
base: string[];
|
|
95
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
96
|
+
readonly isExpanded: {
|
|
97
|
+
readonly true: "px-accordion-side-accordion pt-0 pb-accordion-height-accordion";
|
|
98
|
+
};
|
|
99
|
+
}>;
|
|
100
|
+
};
|
|
101
|
+
export type AccordionPanelConfig = NonNullable<typeof accordionPanelDefinition.config>;
|
|
102
|
+
export interface AccordionPanelVariantProps extends UIOverrides.VariantProps<AccordionPanelConfig> {
|
|
103
|
+
}
|
|
104
|
+
export declare const accordionPanelContentDefinition: {
|
|
105
|
+
base: string[];
|
|
106
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{}>;
|
|
107
|
+
};
|
|
108
|
+
export type AccordionPanelContentConfig = NonNullable<typeof accordionPanelContentDefinition.config>;
|
|
109
|
+
export interface AccordionPanelContentVariantProps extends UIOverrides.VariantProps<AccordionPanelContentConfig> {
|
|
45
110
|
}
|