@povio/ui 2.3.3 → 3.0.0-rc.2
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/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 +373 -75
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +12 -5
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +492 -186
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +13 -5
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +273 -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 +358 -133
- 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 +107 -8
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +37 -0
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +14 -0
- package/dist/components/inputs/Selection/Select/QuerySelect.js +178 -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 +14 -0
- package/dist/components/inputs/Selection/shared/querySelect.utils.js +43 -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 +72 -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,99 +1,129 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
//#region src/components/navigation/Accordion/accordion.cva.ts
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
var accordionDefinition = UIOverrides.defineConfig({
|
|
4
|
+
base: ["flex w-full flex-col"],
|
|
5
|
+
config: {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
filled: "gap-1",
|
|
9
|
+
outlined: ""
|
|
10
|
+
},
|
|
11
|
+
singleItem: {
|
|
12
|
+
true: "",
|
|
13
|
+
false: ""
|
|
14
|
+
}
|
|
8
15
|
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
defaultVariants: {
|
|
15
|
-
variant: "filled",
|
|
16
|
-
singleItem: false
|
|
17
|
-
},
|
|
18
|
-
compoundVariants: [{
|
|
19
|
-
variant: "outlined",
|
|
20
|
-
singleItem: false,
|
|
21
|
-
className: "rounded-global-rounding-s border border-elevation-outline-default-1"
|
|
22
|
-
}]
|
|
23
|
-
});
|
|
24
|
-
var accordionItemCva = cva("flex w-full flex-col", {
|
|
25
|
-
variants: {
|
|
26
|
-
variant: {
|
|
27
|
-
filled: "rounded-accordion-rounding-filled bg-elevation-fill-default-2",
|
|
28
|
-
outlined: ""
|
|
16
|
+
defaultVariants: {
|
|
17
|
+
variant: "filled",
|
|
18
|
+
singleItem: false
|
|
29
19
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
variant: "filled",
|
|
37
|
-
singleItem: false
|
|
38
|
-
},
|
|
39
|
-
compoundVariants: [{
|
|
40
|
-
singleItem: true,
|
|
41
|
-
variant: "outlined",
|
|
42
|
-
className: "border-elevation-outline-default-1 border-b"
|
|
43
|
-
}, {
|
|
44
|
-
singleItem: false,
|
|
45
|
-
variant: "outlined",
|
|
46
|
-
className: "not-last:border-elevation-outline-default-1 not-last:border-b"
|
|
47
|
-
}]
|
|
20
|
+
compoundVariants: [{
|
|
21
|
+
variant: "outlined",
|
|
22
|
+
singleItem: false,
|
|
23
|
+
className: "rounded-global-rounding-s border border-elevation-outline-default-1"
|
|
24
|
+
}]
|
|
25
|
+
}
|
|
48
26
|
});
|
|
49
|
-
var
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
27
|
+
var accordionItemDefinition = UIOverrides.defineConfig({
|
|
28
|
+
base: ["flex w-full flex-col"],
|
|
29
|
+
config: {
|
|
30
|
+
variants: {
|
|
31
|
+
variant: {
|
|
32
|
+
filled: "rounded-accordion-rounding-filled bg-elevation-fill-default-2",
|
|
33
|
+
outlined: ""
|
|
34
|
+
},
|
|
35
|
+
singleItem: {
|
|
36
|
+
true: "",
|
|
37
|
+
false: ""
|
|
38
|
+
}
|
|
58
39
|
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
40
|
+
defaultVariants: {
|
|
41
|
+
variant: "filled",
|
|
42
|
+
singleItem: false
|
|
62
43
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
44
|
+
compoundVariants: [{
|
|
45
|
+
singleItem: true,
|
|
46
|
+
variant: "outlined",
|
|
47
|
+
className: "border-elevation-outline-default-1 border-b"
|
|
48
|
+
}, {
|
|
49
|
+
singleItem: false,
|
|
50
|
+
variant: "outlined",
|
|
51
|
+
className: "not-last:border-elevation-outline-default-1 not-last:border-b"
|
|
52
|
+
}]
|
|
68
53
|
}
|
|
69
54
|
});
|
|
70
|
-
var
|
|
71
|
-
|
|
72
|
-
|
|
55
|
+
var accordionTriggerDefinition = UIOverrides.defineConfig({
|
|
56
|
+
base: [
|
|
57
|
+
"group flex w-full items-center gap-accordion-gap-content-to-arrow",
|
|
58
|
+
"px-accordion-side-accordion py-accordion-height-accordion",
|
|
59
|
+
"outline-none focus-visible:ring-2 focus-visible:ring-interactive-contained-primary-focus"
|
|
60
|
+
],
|
|
61
|
+
config: {
|
|
62
|
+
variants: {
|
|
63
|
+
variant: {
|
|
64
|
+
outlined: "rounded-accordion-rounding-outlined hover:bg-elevation-fill-default-2",
|
|
65
|
+
filled: "rounded-accordion-rounding-filled bg-elevation-fill-default-2 hover:bg-elevation-fill-default-3"
|
|
66
|
+
},
|
|
67
|
+
actionPosition: {
|
|
68
|
+
left: "flex-row-reverse",
|
|
69
|
+
right: "flex-row"
|
|
70
|
+
},
|
|
71
|
+
disabled: { true: "opacity-50" }
|
|
72
|
+
},
|
|
73
|
+
defaultVariants: {
|
|
74
|
+
variant: "filled",
|
|
75
|
+
actionPosition: "right"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
73
78
|
});
|
|
74
|
-
var
|
|
75
|
-
|
|
76
|
-
|
|
79
|
+
var accordionHeadingDefinition = UIOverrides.defineConfig({
|
|
80
|
+
base: ["flex flex-1 items-center justify-between gap-accordion-gap-content-to-arrow"],
|
|
81
|
+
config: {
|
|
82
|
+
variants: {},
|
|
83
|
+
defaultVariants: {}
|
|
84
|
+
}
|
|
77
85
|
});
|
|
78
|
-
var
|
|
79
|
-
|
|
80
|
-
|
|
86
|
+
var accordionHeadingTitleDefinition = UIOverrides.defineConfig({
|
|
87
|
+
base: ["flex-1 text-left text-text-default-1"],
|
|
88
|
+
config: {
|
|
89
|
+
variants: {},
|
|
90
|
+
defaultVariants: {}
|
|
91
|
+
}
|
|
81
92
|
});
|
|
82
|
-
var
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
93
|
+
var accordionHeadingSubtitleDefinition = UIOverrides.defineConfig({
|
|
94
|
+
base: ["flex-1 text-left text-text-default-2"],
|
|
95
|
+
config: {
|
|
96
|
+
variants: {},
|
|
97
|
+
defaultVariants: {}
|
|
98
|
+
}
|
|
88
99
|
});
|
|
89
|
-
var
|
|
90
|
-
|
|
91
|
-
|
|
100
|
+
var accordionChevronDefinition = UIOverrides.defineConfig({
|
|
101
|
+
base: ["size-6 shrink-0 text-interactive-text-secondary-idle transition-transform duration-200"],
|
|
102
|
+
config: {
|
|
103
|
+
variants: { isExpanded: {
|
|
104
|
+
true: "rotate-180",
|
|
105
|
+
false: "rotate-0"
|
|
106
|
+
} },
|
|
107
|
+
defaultVariants: { isExpanded: false }
|
|
108
|
+
}
|
|
92
109
|
});
|
|
93
|
-
var
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
110
|
+
var accordionIconDefinition = UIOverrides.defineConfig({
|
|
111
|
+
base: ["size-6 shrink-0 text-text-default-3"],
|
|
112
|
+
config: {
|
|
113
|
+
variants: {},
|
|
114
|
+
defaultVariants: {}
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
var accordionPanelDefinition = UIOverrides.defineConfig({
|
|
118
|
+
base: [""],
|
|
119
|
+
config: { variants: { isExpanded: { true: "px-accordion-side-accordion pt-0 pb-accordion-height-accordion" } } }
|
|
120
|
+
});
|
|
121
|
+
var accordionPanelContentDefinition = UIOverrides.defineConfig({
|
|
122
|
+
base: ["py-accordion-height-content"],
|
|
123
|
+
config: {
|
|
124
|
+
variants: {},
|
|
125
|
+
defaultVariants: {}
|
|
126
|
+
}
|
|
97
127
|
});
|
|
98
128
|
//#endregion
|
|
99
|
-
export {
|
|
129
|
+
export { accordionChevronDefinition, accordionDefinition, accordionHeadingDefinition, accordionHeadingSubtitleDefinition, accordionHeadingTitleDefinition, accordionIconDefinition, accordionItemDefinition, accordionPanelContentDefinition, accordionPanelDefinition, accordionTriggerDefinition };
|
|
@@ -1,34 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
|
+
import { stepperDefinition } from "./stepper.cva.js";
|
|
3
3
|
import { StepperItem } from "./StepperItem.js";
|
|
4
4
|
import { StepperSeparator } from "./StepperSeparator.js";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
import { Fragment as Fragment$1 } from "react";
|
|
7
8
|
//#region src/components/navigation/Stepper/Stepper.tsx
|
|
8
|
-
var Stepper = (
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
var Stepper = (t0) => {
|
|
10
|
+
const $ = c(23);
|
|
11
|
+
const { steps, currentStep, orientation: t1, contentOrientation: t2, iconsOnly, titlesOnly, onStepClick, className } = t0;
|
|
12
|
+
const orientation = t1 === void 0 ? "horizontal" : t1;
|
|
13
|
+
const contentOrientation = t2 === void 0 ? "horizontal" : t2;
|
|
14
|
+
const stepperCva = UIOverrides.useCva("stepper.cva", stepperDefinition);
|
|
15
|
+
let t3;
|
|
16
|
+
if ($[0] !== className || $[1] !== orientation || $[2] !== stepperCva) {
|
|
17
|
+
t3 = stepperCva({
|
|
11
18
|
orientation,
|
|
12
19
|
className
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
});
|
|
21
|
+
$[0] = className;
|
|
22
|
+
$[1] = orientation;
|
|
23
|
+
$[2] = stepperCva;
|
|
24
|
+
$[3] = t3;
|
|
25
|
+
} else t3 = $[3];
|
|
26
|
+
let t4;
|
|
27
|
+
if ($[4] !== contentOrientation || $[5] !== currentStep || $[6] !== iconsOnly || $[7] !== onStepClick || $[8] !== orientation || $[9] !== steps || $[10] !== titlesOnly) {
|
|
28
|
+
let t5;
|
|
29
|
+
if ($[12] !== contentOrientation || $[13] !== currentStep || $[14] !== iconsOnly || $[15] !== onStepClick || $[16] !== orientation || $[17] !== steps.length || $[18] !== titlesOnly) {
|
|
30
|
+
t5 = (step, index) => {
|
|
31
|
+
const status = index < currentStep ? "completed" : index === currentStep ? "active" : "todo";
|
|
32
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(StepperItem, {
|
|
33
|
+
step,
|
|
34
|
+
stepNumber: index + 1,
|
|
35
|
+
status,
|
|
36
|
+
contentOrientation,
|
|
37
|
+
iconsOnly,
|
|
38
|
+
titlesOnly,
|
|
39
|
+
onPress: onStepClick && status === "completed" ? () => onStepClick(index) : void 0
|
|
40
|
+
}), index < steps.length - 1 && /* @__PURE__ */ jsx(StepperSeparator, {
|
|
41
|
+
orientation,
|
|
42
|
+
contentOrientation
|
|
43
|
+
})] }, step.id);
|
|
44
|
+
};
|
|
45
|
+
$[12] = contentOrientation;
|
|
46
|
+
$[13] = currentStep;
|
|
47
|
+
$[14] = iconsOnly;
|
|
48
|
+
$[15] = onStepClick;
|
|
49
|
+
$[16] = orientation;
|
|
50
|
+
$[17] = steps.length;
|
|
51
|
+
$[18] = titlesOnly;
|
|
52
|
+
$[19] = t5;
|
|
53
|
+
} else t5 = $[19];
|
|
54
|
+
t4 = steps.map(t5);
|
|
55
|
+
$[4] = contentOrientation;
|
|
56
|
+
$[5] = currentStep;
|
|
57
|
+
$[6] = iconsOnly;
|
|
58
|
+
$[7] = onStepClick;
|
|
59
|
+
$[8] = orientation;
|
|
60
|
+
$[9] = steps;
|
|
61
|
+
$[10] = titlesOnly;
|
|
62
|
+
$[11] = t4;
|
|
63
|
+
} else t4 = $[11];
|
|
64
|
+
let t5;
|
|
65
|
+
if ($[20] !== t3 || $[21] !== t4) {
|
|
66
|
+
t5 = /* @__PURE__ */ jsx("div", {
|
|
67
|
+
className: t3,
|
|
68
|
+
role: "group",
|
|
69
|
+
"aria-label": "Progress",
|
|
70
|
+
children: t4
|
|
71
|
+
});
|
|
72
|
+
$[20] = t3;
|
|
73
|
+
$[21] = t4;
|
|
74
|
+
$[22] = t5;
|
|
75
|
+
} else t5 = $[22];
|
|
76
|
+
return t5;
|
|
32
77
|
};
|
|
33
78
|
//#endregion
|
|
34
79
|
export { Stepper };
|
|
@@ -1,53 +1,126 @@
|
|
|
1
1
|
import { CheckIcon } from "../../../assets/icons/Check.js";
|
|
2
|
-
import {
|
|
2
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
3
3
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
4
|
-
import {
|
|
4
|
+
import { stepperIconDefinition, stepperItemDefinition, stepperNumberDefinition, stepperSubtextDefinition, stepperTitleDefinition } from "./stepper.cva.js";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
5
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
7
|
import { clsx } from "clsx";
|
|
7
8
|
import { Button } from "react-aria-components";
|
|
8
9
|
//#region src/components/navigation/Stepper/StepperItem.tsx
|
|
9
|
-
var StepperItem = (
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
10
|
+
var StepperItem = (t0) => {
|
|
11
|
+
const $ = c(31);
|
|
12
|
+
const { step, stepNumber, status, contentOrientation, iconsOnly, titlesOnly, onPress } = t0;
|
|
13
|
+
const stepperItemCva = UIOverrides.useCva("stepper.itemCva", stepperItemDefinition);
|
|
14
|
+
const stepperIconCva = UIOverrides.useCva("stepper.iconCva", stepperIconDefinition);
|
|
15
|
+
const stepperNumberCva = UIOverrides.useCva("stepper.numberCva", stepperNumberDefinition);
|
|
16
|
+
const stepperTitleCva = UIOverrides.useCva("stepper.titleCva", stepperTitleDefinition);
|
|
17
|
+
const stepperSubtextCva = UIOverrides.useCva("stepper.subtextCva", stepperSubtextDefinition);
|
|
15
18
|
const showTitle = !iconsOnly;
|
|
16
19
|
const showSubtext = !iconsOnly && !titlesOnly && !!step.subtext;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
let t1;
|
|
21
|
+
if ($[0] !== status || $[1] !== stepperIconCva) {
|
|
22
|
+
t1 = stepperIconCva({ status });
|
|
23
|
+
$[0] = status;
|
|
24
|
+
$[1] = stepperIconCva;
|
|
25
|
+
$[2] = t1;
|
|
26
|
+
} else t1 = $[2];
|
|
27
|
+
let t2;
|
|
28
|
+
if ($[3] !== status || $[4] !== stepNumber || $[5] !== stepperNumberCva) {
|
|
29
|
+
t2 = status === "completed" ? /* @__PURE__ */ jsx(CheckIcon, { className: "size-5 text-interactive-contained-primary-on-idle" }) : /* @__PURE__ */ jsx(Typography, {
|
|
30
|
+
className: stepperNumberCva({ status }),
|
|
21
31
|
variant: "prominent-1",
|
|
22
32
|
size: "label-3",
|
|
23
33
|
children: stepNumber
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
className:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
34
|
+
});
|
|
35
|
+
$[3] = status;
|
|
36
|
+
$[4] = stepNumber;
|
|
37
|
+
$[5] = stepperNumberCva;
|
|
38
|
+
$[6] = t2;
|
|
39
|
+
} else t2 = $[6];
|
|
40
|
+
let t3;
|
|
41
|
+
if ($[7] !== t1 || $[8] !== t2) {
|
|
42
|
+
t3 = /* @__PURE__ */ jsx("div", {
|
|
43
|
+
className: t1,
|
|
44
|
+
children: t2
|
|
45
|
+
});
|
|
46
|
+
$[7] = t1;
|
|
47
|
+
$[8] = t2;
|
|
48
|
+
$[9] = t3;
|
|
49
|
+
} else t3 = $[9];
|
|
50
|
+
let t4;
|
|
51
|
+
if ($[10] !== showSubtext || $[11] !== showTitle || $[12] !== status || $[13] !== step || $[14] !== stepperSubtextCva || $[15] !== stepperTitleCva) {
|
|
52
|
+
t4 = showTitle && /* @__PURE__ */ jsxs("div", {
|
|
53
|
+
className: "flex flex-col gap-stepper-gap-text-to-subtext",
|
|
54
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
55
|
+
className: stepperTitleCva({ status }),
|
|
56
|
+
size: "label-2",
|
|
57
|
+
variant: "default",
|
|
58
|
+
children: step.title
|
|
59
|
+
}), showSubtext && /* @__PURE__ */ jsx(Typography, {
|
|
60
|
+
className: stepperSubtextCva({ status }),
|
|
61
|
+
size: "label-3",
|
|
62
|
+
variant: "default",
|
|
63
|
+
children: step.subtext
|
|
64
|
+
})]
|
|
65
|
+
});
|
|
66
|
+
$[10] = showSubtext;
|
|
67
|
+
$[11] = showTitle;
|
|
68
|
+
$[12] = status;
|
|
69
|
+
$[13] = step;
|
|
70
|
+
$[14] = stepperSubtextCva;
|
|
71
|
+
$[15] = stepperTitleCva;
|
|
72
|
+
$[16] = t4;
|
|
73
|
+
} else t4 = $[16];
|
|
74
|
+
let t5;
|
|
75
|
+
if ($[17] !== t3 || $[18] !== t4) {
|
|
76
|
+
t5 = /* @__PURE__ */ jsxs(Fragment, { children: [t3, t4] });
|
|
77
|
+
$[17] = t3;
|
|
78
|
+
$[18] = t4;
|
|
79
|
+
$[19] = t5;
|
|
80
|
+
} else t5 = $[19];
|
|
81
|
+
const content = t5;
|
|
82
|
+
let className;
|
|
83
|
+
let t6;
|
|
84
|
+
if ($[20] !== content || $[21] !== contentOrientation || $[22] !== onPress || $[23] !== status || $[24] !== stepperItemCva) {
|
|
85
|
+
t6 = Symbol.for("react.early_return_sentinel");
|
|
86
|
+
bb0: {
|
|
87
|
+
className = stepperItemCva({ contentOrientation });
|
|
88
|
+
if (onPress) {
|
|
89
|
+
t6 = /* @__PURE__ */ jsx(Button, {
|
|
90
|
+
onPress,
|
|
91
|
+
className: clsx("group cursor-pointer", className),
|
|
92
|
+
"aria-current": status === "active" ? "step" : void 0,
|
|
93
|
+
children: content
|
|
94
|
+
});
|
|
95
|
+
break bb0;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
$[20] = content;
|
|
99
|
+
$[21] = contentOrientation;
|
|
100
|
+
$[22] = onPress;
|
|
101
|
+
$[23] = status;
|
|
102
|
+
$[24] = stepperItemCva;
|
|
103
|
+
$[25] = className;
|
|
104
|
+
$[26] = t6;
|
|
105
|
+
} else {
|
|
106
|
+
className = $[25];
|
|
107
|
+
t6 = $[26];
|
|
108
|
+
}
|
|
109
|
+
if (t6 !== Symbol.for("react.early_return_sentinel")) return t6;
|
|
110
|
+
const t7 = status === "active" ? "step" : void 0;
|
|
111
|
+
let t8;
|
|
112
|
+
if ($[27] !== className || $[28] !== content || $[29] !== t7) {
|
|
113
|
+
t8 = /* @__PURE__ */ jsx("div", {
|
|
114
|
+
className,
|
|
115
|
+
"aria-current": t7,
|
|
116
|
+
children: content
|
|
117
|
+
});
|
|
118
|
+
$[27] = className;
|
|
119
|
+
$[28] = content;
|
|
120
|
+
$[29] = t7;
|
|
121
|
+
$[30] = t8;
|
|
122
|
+
} else t8 = $[30];
|
|
123
|
+
return t8;
|
|
51
124
|
};
|
|
52
125
|
//#endregion
|
|
53
126
|
export { StepperItem };
|
|
@@ -1,12 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
|
+
import { stepperSeparatorDefinition } from "./stepper.cva.js";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
5
|
//#region src/components/navigation/Stepper/StepperSeparator.tsx
|
|
5
|
-
var StepperSeparator = (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
var StepperSeparator = (t0) => {
|
|
7
|
+
const $ = c(6);
|
|
8
|
+
const { orientation, contentOrientation } = t0;
|
|
9
|
+
const stepperSeparatorCva = UIOverrides.useCva("stepper.separatorCva", stepperSeparatorDefinition);
|
|
10
|
+
let t1;
|
|
11
|
+
if ($[0] !== contentOrientation || $[1] !== orientation || $[2] !== stepperSeparatorCva) {
|
|
12
|
+
t1 = stepperSeparatorCva({
|
|
13
|
+
orientation,
|
|
14
|
+
contentOrientation
|
|
15
|
+
});
|
|
16
|
+
$[0] = contentOrientation;
|
|
17
|
+
$[1] = orientation;
|
|
18
|
+
$[2] = stepperSeparatorCva;
|
|
19
|
+
$[3] = t1;
|
|
20
|
+
} else t1 = $[3];
|
|
21
|
+
let t2;
|
|
22
|
+
if ($[4] !== t1) {
|
|
23
|
+
t2 = /* @__PURE__ */ jsx("div", { className: t1 });
|
|
24
|
+
$[4] = t1;
|
|
25
|
+
$[5] = t2;
|
|
26
|
+
} else t2 = $[5];
|
|
27
|
+
return t2;
|
|
10
28
|
};
|
|
11
29
|
//#endregion
|
|
12
30
|
export { StepperSeparator };
|
|
@@ -1,37 +1,93 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { UIOverrides } from '../../../config/uiOverrides.context';
|
|
2
|
+
export declare const stepperDefinition: {
|
|
3
|
+
base: string[];
|
|
4
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
5
|
+
readonly orientation: {
|
|
6
|
+
readonly horizontal: "flex flex-row items-center gap-stepper-gap-step-to-line-horizontal";
|
|
7
|
+
readonly vertical: "inline-flex flex-col gap-stepper-gap-step-to-line-vertical";
|
|
8
|
+
};
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
export type StepperConfig = NonNullable<typeof stepperDefinition.config>;
|
|
12
|
+
export interface StepperVariantProps extends UIOverrides.VariantProps<StepperConfig> {
|
|
6
13
|
}
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
14
|
+
export declare const stepperItemDefinition: {
|
|
15
|
+
base: string[];
|
|
16
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
17
|
+
readonly contentOrientation: {
|
|
18
|
+
readonly horizontal: "flex-row items-center gap-stepper-gap-icon-to-text-horizontal text-left";
|
|
19
|
+
readonly vertical: "flex-col items-center gap-stepper-gap-icon-to-text-vertical text-center";
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
23
|
+
export type StepperItemConfig = NonNullable<typeof stepperItemDefinition.config>;
|
|
24
|
+
export interface StepperItemVariantProps extends UIOverrides.VariantProps<StepperItemConfig> {
|
|
11
25
|
}
|
|
12
|
-
export declare const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
26
|
+
export declare const stepperIconDefinition: {
|
|
27
|
+
base: string[];
|
|
28
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
29
|
+
readonly status: {
|
|
30
|
+
readonly completed: ["border border-interactive-outlined-primary-outline-idle border-solid bg-interactive-contained-primary-idle", "group-hover:border-interactive-outlined-primary-outline-hover group-hover:bg-interactive-contained-primary-hover", "group-pressed:border-interactive-outlined-primary-outline-pressed group-pressed:bg-interactive-contained-primary-pressed"];
|
|
31
|
+
readonly active: "border border-interactive-outlined-primary-on-idle border-solid bg-interactive-outlined-primary-idle";
|
|
32
|
+
readonly todo: "border border-interactive-outlined-primary-outline-disabled border-solid bg-interactive-outlined-primary-disabled";
|
|
33
|
+
};
|
|
34
|
+
}>;
|
|
35
|
+
};
|
|
36
|
+
export type StepperIconConfig = NonNullable<typeof stepperIconDefinition.config>;
|
|
37
|
+
export interface StepperIconVariantProps extends UIOverrides.VariantProps<StepperIconConfig> {
|
|
16
38
|
}
|
|
17
|
-
export declare const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
39
|
+
export declare const stepperNumberDefinition: {
|
|
40
|
+
base: string[];
|
|
41
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
42
|
+
readonly status: {
|
|
43
|
+
readonly completed: "";
|
|
44
|
+
readonly active: "text-interactive-outlined-primary-on-idle";
|
|
45
|
+
readonly todo: "text-interactive-outlined-primary-on-disabled";
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
49
|
+
export type StepperNumberConfig = NonNullable<typeof stepperNumberDefinition.config>;
|
|
50
|
+
export interface StepperNumberVariantProps extends UIOverrides.VariantProps<StepperNumberConfig> {
|
|
21
51
|
}
|
|
22
|
-
export declare const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
52
|
+
export declare const stepperTitleDefinition: {
|
|
53
|
+
base: string[];
|
|
54
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
55
|
+
readonly status: {
|
|
56
|
+
readonly completed: ["text-interactive-text-secondary-idle", "group-hover:text-interactive-text-secondary-hover", "group-pressed:text-interactive-text-secondary-pressed"];
|
|
57
|
+
readonly active: "text-interactive-text-primary-idle";
|
|
58
|
+
readonly todo: "text-interactive-text-secondary-disabled";
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
};
|
|
62
|
+
export type StepperTitleConfig = NonNullable<typeof stepperTitleDefinition.config>;
|
|
63
|
+
export interface StepperTitleVariantProps extends UIOverrides.VariantProps<StepperTitleConfig> {
|
|
26
64
|
}
|
|
27
|
-
export declare const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
65
|
+
export declare const stepperSubtextDefinition: {
|
|
66
|
+
base: string[];
|
|
67
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
68
|
+
readonly status: {
|
|
69
|
+
readonly completed: ["text-interactive-text-secondary-idle", "group-hover:text-interactive-text-secondary-hover", "group-pressed:text-interactive-text-secondary-pressed"];
|
|
70
|
+
readonly active: "text-interactive-text-secondary-idle";
|
|
71
|
+
readonly todo: "text-interactive-text-secondary-disabled";
|
|
72
|
+
};
|
|
73
|
+
}>;
|
|
74
|
+
};
|
|
75
|
+
export type StepperSubtextConfig = NonNullable<typeof stepperSubtextDefinition.config>;
|
|
76
|
+
export interface StepperSubtextVariantProps extends UIOverrides.VariantProps<StepperSubtextConfig> {
|
|
31
77
|
}
|
|
32
|
-
export declare const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
78
|
+
export declare const stepperSeparatorDefinition: {
|
|
79
|
+
base: string[];
|
|
80
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
81
|
+
readonly orientation: {
|
|
82
|
+
readonly horizontal: "h-px min-w-4 flex-1";
|
|
83
|
+
readonly vertical: "min-h-16 w-px";
|
|
84
|
+
};
|
|
85
|
+
readonly contentOrientation: {
|
|
86
|
+
readonly horizontal: "";
|
|
87
|
+
readonly vertical: "";
|
|
88
|
+
};
|
|
89
|
+
}>;
|
|
90
|
+
};
|
|
91
|
+
export type StepperSeparatorConfig = NonNullable<typeof stepperSeparatorDefinition.config>;
|
|
92
|
+
export interface StepperSeparatorVariantProps extends UIOverrides.VariantProps<StepperSeparatorConfig> {
|
|
37
93
|
}
|