@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,64 +1,67 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
//#region src/components/status/Alert/alert.cva.ts
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
var alertDefinition = UIOverrides.defineConfig({
|
|
4
|
+
base: ["min-h-0 overflow-hidden rounded-alert-rounding-default p-0"],
|
|
5
|
+
config: {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
outlined: "border bg-elevation-fill-default-1 text-text-default-1",
|
|
9
|
+
contained: "text-text-inverted-1"
|
|
10
|
+
},
|
|
11
|
+
color: {
|
|
12
|
+
neutral: "",
|
|
13
|
+
success: "",
|
|
14
|
+
warning: "",
|
|
15
|
+
error: ""
|
|
16
|
+
}
|
|
8
17
|
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
compoundVariants: [
|
|
19
|
+
{
|
|
20
|
+
variant: "outlined",
|
|
21
|
+
color: "neutral",
|
|
22
|
+
className: "border-elevation-outline-default-1"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
variant: "outlined",
|
|
26
|
+
color: "success",
|
|
27
|
+
className: "border-elevation-outline-success-1"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
variant: "outlined",
|
|
31
|
+
color: "warning",
|
|
32
|
+
className: "border-elevation-outline-warning-1"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
variant: "outlined",
|
|
36
|
+
color: "error",
|
|
37
|
+
className: "border-elevation-outline-error-1"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
variant: "contained",
|
|
41
|
+
color: "neutral",
|
|
42
|
+
className: "bg-elevation-fill-inverted-1"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
variant: "contained",
|
|
46
|
+
color: "success",
|
|
47
|
+
className: "bg-elevation-fill-success-1"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
variant: "contained",
|
|
51
|
+
color: "warning",
|
|
52
|
+
className: "bg-elevation-fill-warning-1"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
variant: "contained",
|
|
56
|
+
color: "error",
|
|
57
|
+
className: "bg-elevation-fill-error-1"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
defaultVariants: {
|
|
23
61
|
variant: "outlined",
|
|
24
|
-
color: "
|
|
25
|
-
className: "border-elevation-outline-success-1"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
variant: "outlined",
|
|
29
|
-
color: "warning",
|
|
30
|
-
className: "border-elevation-outline-warning-1"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
variant: "outlined",
|
|
34
|
-
color: "error",
|
|
35
|
-
className: "border-elevation-outline-error-1"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
variant: "contained",
|
|
39
|
-
color: "neutral",
|
|
40
|
-
className: "bg-elevation-fill-inverted-1"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
variant: "contained",
|
|
44
|
-
color: "success",
|
|
45
|
-
className: "bg-elevation-fill-success-1"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
variant: "contained",
|
|
49
|
-
color: "warning",
|
|
50
|
-
className: "bg-elevation-fill-warning-1"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
variant: "contained",
|
|
54
|
-
color: "error",
|
|
55
|
-
className: "bg-elevation-fill-error-1"
|
|
62
|
+
color: "neutral"
|
|
56
63
|
}
|
|
57
|
-
],
|
|
58
|
-
defaultVariants: {
|
|
59
|
-
variant: "outlined",
|
|
60
|
-
color: "neutral"
|
|
61
64
|
}
|
|
62
65
|
});
|
|
63
66
|
//#endregion
|
|
64
|
-
export {
|
|
67
|
+
export { alertDefinition };
|
|
@@ -1,34 +1,89 @@
|
|
|
1
1
|
import { loader, loaderWrapper } from "./loader.cva.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
4
|
//#region src/components/status/Loader/Loader.tsx
|
|
4
|
-
var Loader = (
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
var Loader = (t0) => {
|
|
6
|
+
const $ = c(18);
|
|
7
|
+
let className;
|
|
8
|
+
let props;
|
|
9
|
+
let size;
|
|
10
|
+
if ($[0] !== t0) {
|
|
11
|
+
({size, className, ...props} = t0);
|
|
12
|
+
$[0] = t0;
|
|
13
|
+
$[1] = className;
|
|
14
|
+
$[2] = props;
|
|
15
|
+
$[3] = size;
|
|
16
|
+
} else {
|
|
17
|
+
className = $[1];
|
|
18
|
+
props = $[2];
|
|
19
|
+
size = $[3];
|
|
20
|
+
}
|
|
21
|
+
let t1;
|
|
22
|
+
if ($[4] !== className || $[5] !== size) {
|
|
23
|
+
t1 = loaderWrapper({
|
|
7
24
|
size,
|
|
8
25
|
className
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
26
|
+
});
|
|
27
|
+
$[4] = className;
|
|
28
|
+
$[5] = size;
|
|
29
|
+
$[6] = t1;
|
|
30
|
+
} else t1 = $[6];
|
|
31
|
+
let t2;
|
|
32
|
+
if ($[7] !== className || $[8] !== size) {
|
|
33
|
+
t2 = loader({
|
|
34
|
+
size,
|
|
35
|
+
className
|
|
36
|
+
});
|
|
37
|
+
$[7] = className;
|
|
38
|
+
$[8] = size;
|
|
39
|
+
$[9] = t2;
|
|
40
|
+
} else t2 = $[9];
|
|
41
|
+
let t3;
|
|
42
|
+
let t4;
|
|
43
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
44
|
+
t3 = /* @__PURE__ */ jsx("circle", {
|
|
45
|
+
className: "opacity-20",
|
|
46
|
+
cx: "12",
|
|
47
|
+
cy: "12",
|
|
48
|
+
r: "10",
|
|
49
|
+
stroke: "currentColor",
|
|
50
|
+
strokeWidth: "4"
|
|
51
|
+
});
|
|
52
|
+
t4 = /* @__PURE__ */ jsx("path", {
|
|
53
|
+
fill: "currentColor",
|
|
54
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
55
|
+
});
|
|
56
|
+
$[10] = t3;
|
|
57
|
+
$[11] = t4;
|
|
58
|
+
} else {
|
|
59
|
+
t3 = $[10];
|
|
60
|
+
t4 = $[11];
|
|
61
|
+
}
|
|
62
|
+
let t5;
|
|
63
|
+
if ($[12] !== props || $[13] !== t2) {
|
|
64
|
+
t5 = /* @__PURE__ */ jsxs("svg", {
|
|
65
|
+
className: t2,
|
|
15
66
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16
67
|
fill: "none",
|
|
17
68
|
viewBox: "0 0 24 24",
|
|
18
69
|
...props,
|
|
19
|
-
children: [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
})
|
|
31
|
-
|
|
70
|
+
children: [t3, t4]
|
|
71
|
+
});
|
|
72
|
+
$[12] = props;
|
|
73
|
+
$[13] = t2;
|
|
74
|
+
$[14] = t5;
|
|
75
|
+
} else t5 = $[14];
|
|
76
|
+
let t6;
|
|
77
|
+
if ($[15] !== t1 || $[16] !== t5) {
|
|
78
|
+
t6 = /* @__PURE__ */ jsx("div", {
|
|
79
|
+
className: t1,
|
|
80
|
+
children: t5
|
|
81
|
+
});
|
|
82
|
+
$[15] = t1;
|
|
83
|
+
$[16] = t5;
|
|
84
|
+
$[17] = t6;
|
|
85
|
+
} else t6 = $[17];
|
|
86
|
+
return t6;
|
|
32
87
|
};
|
|
33
88
|
//#endregion
|
|
34
89
|
export { Loader };
|
|
@@ -1,9 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIOverrides } from '../../../config/uiOverrides.context';
|
|
2
|
+
export declare const loaderWrapperDefinition: {
|
|
3
|
+
base: string[];
|
|
4
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
5
|
+
readonly size: {
|
|
6
|
+
readonly default: "size-6";
|
|
7
|
+
readonly l: "size-16";
|
|
8
|
+
};
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
2
11
|
export declare const loaderWrapper: (props?: ({
|
|
3
|
-
size?: "default" | "l" | null | undefined;
|
|
12
|
+
readonly size?: "default" | "l" | null | undefined;
|
|
4
13
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
|
+
export declare const loaderDefinition: {
|
|
15
|
+
base: string[];
|
|
16
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
17
|
+
readonly size: {
|
|
18
|
+
readonly default: "size-3-5";
|
|
19
|
+
readonly l: "size-8";
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
5
23
|
export declare const loader: (props?: ({
|
|
6
|
-
size?: "default" | "l" | null | undefined;
|
|
24
|
+
readonly size?: "default" | "l" | null | undefined;
|
|
7
25
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
export
|
|
26
|
+
export type LoaderConfig = NonNullable<typeof loaderDefinition.config>;
|
|
27
|
+
export interface LoaderVariantProps extends UIOverrides.VariantProps<LoaderConfig> {
|
|
9
28
|
}
|
|
@@ -1,18 +1,27 @@
|
|
|
1
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
1
2
|
import { cva } from "class-variance-authority";
|
|
2
3
|
//#region src/components/status/Loader/loader.cva.ts
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
var loaderWrapperDefinition = UIOverrides.defineConfig({
|
|
5
|
+
base: ["flex items-center justify-center"],
|
|
6
|
+
config: {
|
|
7
|
+
variants: { size: {
|
|
8
|
+
default: "size-6",
|
|
9
|
+
l: "size-16"
|
|
10
|
+
} },
|
|
11
|
+
defaultVariants: { size: "default" }
|
|
12
|
+
}
|
|
9
13
|
});
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
var loaderWrapper = cva(loaderWrapperDefinition.base, loaderWrapperDefinition.config);
|
|
15
|
+
var loaderDefinition = UIOverrides.defineConfig({
|
|
16
|
+
base: ["animate-loader-spin"],
|
|
17
|
+
config: {
|
|
18
|
+
variants: { size: {
|
|
19
|
+
default: "size-3-5",
|
|
20
|
+
l: "size-8"
|
|
21
|
+
} },
|
|
22
|
+
defaultVariants: { size: "default" }
|
|
23
|
+
}
|
|
16
24
|
});
|
|
25
|
+
var loader = cva(loaderDefinition.base, loaderDefinition.config);
|
|
17
26
|
//#endregion
|
|
18
|
-
export { loader, loaderWrapper };
|
|
27
|
+
export { loader, loaderDefinition, loaderWrapper, loaderWrapperDefinition };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { Typography } from "../../text/Typography/Typography.js";
|
|
3
3
|
import { Loader } from "../Loader/Loader.js";
|
|
4
4
|
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
5
5
|
import { Button } from "../../buttons/Button/Button.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { buttonColorVariant, statusIconDefinition, statusSeparatorDefinition, toastContainer, toastDefinition, toastWrapper } from "./toast.cva.js";
|
|
7
|
+
import { c } from "react/compiler-runtime";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { ToastContainer } from "react-toastify";
|
|
10
10
|
//#region src/components/status/Toast/Toast.tsx
|
|
11
11
|
var Toast = ({ text, isLoading = false, actions = [], icon: Icon, ...props }) => {
|
|
12
12
|
const uiConfig = UIConfig.useConfig();
|
|
13
13
|
const { variant = uiConfig.toast.variant, ...restProps } = props;
|
|
14
|
-
const toastCva =
|
|
15
|
-
const buttonColor =
|
|
16
|
-
const iconCva =
|
|
17
|
-
const separatorCva =
|
|
14
|
+
const toastCva = UIOverrides.useCva("toast.cva", toastDefinition);
|
|
15
|
+
const buttonColor = UIOverrides.useMapper("toast.buttonColor", buttonColorVariant);
|
|
16
|
+
const iconCva = UIOverrides.useCva("status.iconCva", statusIconDefinition);
|
|
17
|
+
const separatorCva = UIOverrides.useCva("status.separatorCva", statusSeparatorDefinition);
|
|
18
18
|
const variantProps = {
|
|
19
19
|
variant,
|
|
20
20
|
...restProps
|
|
@@ -48,19 +48,26 @@ var Toast = ({ text, isLoading = false, actions = [], icon: Icon, ...props }) =>
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var ToastContainer$1 = () => {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
51
|
+
const $ = c(1);
|
|
52
|
+
let t0;
|
|
53
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
54
|
+
t0 = /* @__PURE__ */ jsx(ToastContainer, {
|
|
55
|
+
className: _temp,
|
|
56
|
+
toastClassName: toastWrapper,
|
|
57
|
+
autoClose: 2500,
|
|
58
|
+
icon: false,
|
|
59
|
+
closeButton: false,
|
|
60
|
+
hideProgressBar: true
|
|
61
|
+
});
|
|
62
|
+
$[0] = t0;
|
|
63
|
+
} else t0 = $[0];
|
|
64
|
+
return t0;
|
|
64
65
|
};
|
|
66
|
+
function _temp(params) {
|
|
67
|
+
return toastContainer({
|
|
68
|
+
position: params?.position,
|
|
69
|
+
className: params?.defaultClassName
|
|
70
|
+
});
|
|
71
|
+
}
|
|
65
72
|
//#endregion
|
|
66
73
|
export { Toast, ToastContainer$1 as ToastContainer };
|
|
@@ -1,18 +1,69 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
1
|
import { ButtonVariantProps } from '../../buttons/Button/button.cva';
|
|
2
|
+
import { UIOverrides } from '../../../config/uiOverrides.context';
|
|
3
3
|
export declare const toastContainer: (props?: ({
|
|
4
4
|
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "bottom-center" | "top-center" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export declare const toastWrapper: string;
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
export declare const toastDefinition: {
|
|
8
|
+
base: string[];
|
|
9
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
10
|
+
readonly variant: {
|
|
11
|
+
readonly outlined: "border bg-elevation-fill-default-1 text-text-default-1";
|
|
12
|
+
readonly contained: "text-text-inverted-1";
|
|
13
|
+
};
|
|
14
|
+
readonly color: {
|
|
15
|
+
readonly neutral: "";
|
|
16
|
+
readonly success: "";
|
|
17
|
+
readonly warning: "";
|
|
18
|
+
readonly error: "";
|
|
19
|
+
};
|
|
20
|
+
readonly position: {
|
|
21
|
+
readonly "bottom-right": "";
|
|
22
|
+
readonly "bottom-left": "";
|
|
23
|
+
readonly "bottom-center": "";
|
|
24
|
+
readonly "top-right": "";
|
|
25
|
+
readonly "top-left": "";
|
|
26
|
+
readonly "top-center": "";
|
|
27
|
+
};
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
30
|
+
export type ToastConfig = NonNullable<typeof toastDefinition.config>;
|
|
31
|
+
export interface ToastVariantProps extends UIOverrides.VariantProps<ToastConfig> {
|
|
13
32
|
}
|
|
14
33
|
export declare const buttonColorVariant: (props: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "bottom-center" | "top-center" | null | undefined;
|
|
34
|
+
readonly variant?: "contained" | "outlined" | null | undefined;
|
|
35
|
+
readonly color?: "success" | "warning" | "error" | "neutral" | null | undefined;
|
|
36
|
+
readonly position?: "bottom-right" | "bottom-left" | "top-right" | "top-left" | "bottom-center" | "top-center" | null | undefined;
|
|
18
37
|
}) => Pick<ButtonVariantProps, "color" | "inverted"> | undefined;
|
|
38
|
+
export declare const statusIconDefinition: {
|
|
39
|
+
base: string[];
|
|
40
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
41
|
+
readonly variant: {
|
|
42
|
+
readonly outlined: "";
|
|
43
|
+
readonly contained: "text-text-inverted-1";
|
|
44
|
+
};
|
|
45
|
+
readonly color: {
|
|
46
|
+
readonly neutral: "";
|
|
47
|
+
readonly success: "";
|
|
48
|
+
readonly warning: "";
|
|
49
|
+
readonly error: "";
|
|
50
|
+
};
|
|
51
|
+
}>;
|
|
52
|
+
};
|
|
53
|
+
export type StatusIconConfig = NonNullable<typeof statusIconDefinition.config>;
|
|
54
|
+
export declare const statusSeparatorDefinition: {
|
|
55
|
+
base: string[];
|
|
56
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
57
|
+
readonly variant: {
|
|
58
|
+
readonly outlined: "";
|
|
59
|
+
readonly contained: "hidden";
|
|
60
|
+
};
|
|
61
|
+
readonly color: {
|
|
62
|
+
readonly neutral: "bg-elevation-outline-default-1";
|
|
63
|
+
readonly success: "bg-elevation-outline-success-1";
|
|
64
|
+
readonly warning: "bg-elevation-outline-warning-1";
|
|
65
|
+
readonly error: "bg-elevation-outline-error-1";
|
|
66
|
+
};
|
|
67
|
+
}>;
|
|
68
|
+
};
|
|
69
|
+
export type StatusSeparatorConfig = NonNullable<typeof statusSeparatorDefinition.config>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
1
2
|
import { compoundMapper } from "../../../utils/compoundMapper.js";
|
|
2
3
|
import { clsx } from "clsx";
|
|
3
4
|
import { cva } from "class-variance-authority";
|
|
@@ -11,72 +12,75 @@ var toastContainer = cva("m-toast-gap-margin-mobile w-auto gap-toast-gap-margin-
|
|
|
11
12
|
"top-center": "top-0"
|
|
12
13
|
} } });
|
|
13
14
|
var toastWrapper = clsx("m-0! min-h-0! w-auto! max-w-toast bg-transparent! p-0! shadow-none!");
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
{
|
|
37
|
-
variant: "outlined",
|
|
38
|
-
color: "neutral",
|
|
39
|
-
className: "border-elevation-outline-default-1"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
variant: "outlined",
|
|
43
|
-
color: "success",
|
|
44
|
-
className: "border-elevation-outline-success-1"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
variant: "outlined",
|
|
48
|
-
color: "warning",
|
|
49
|
-
className: "border-elevation-outline-warning-1"
|
|
15
|
+
var toastDefinition = UIOverrides.defineConfig({
|
|
16
|
+
base: ["m-0 inline-flex w-auto flex-col items-center overflow-hidden rounded-toast-rounding-default shadow-4 md:flex-row"],
|
|
17
|
+
config: {
|
|
18
|
+
variants: {
|
|
19
|
+
variant: {
|
|
20
|
+
outlined: "border bg-elevation-fill-default-1 text-text-default-1",
|
|
21
|
+
contained: "text-text-inverted-1"
|
|
22
|
+
},
|
|
23
|
+
color: {
|
|
24
|
+
neutral: "",
|
|
25
|
+
success: "",
|
|
26
|
+
warning: "",
|
|
27
|
+
error: ""
|
|
28
|
+
},
|
|
29
|
+
position: {
|
|
30
|
+
"bottom-right": "",
|
|
31
|
+
"bottom-left": "",
|
|
32
|
+
"bottom-center": "",
|
|
33
|
+
"top-right": "",
|
|
34
|
+
"top-left": "",
|
|
35
|
+
"top-center": ""
|
|
36
|
+
}
|
|
50
37
|
},
|
|
51
|
-
|
|
38
|
+
compoundVariants: [
|
|
39
|
+
{
|
|
40
|
+
variant: "outlined",
|
|
41
|
+
color: "neutral",
|
|
42
|
+
className: "border-elevation-outline-default-1"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
variant: "outlined",
|
|
46
|
+
color: "success",
|
|
47
|
+
className: "border-elevation-outline-success-1"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
variant: "outlined",
|
|
51
|
+
color: "warning",
|
|
52
|
+
className: "border-elevation-outline-warning-1"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
variant: "outlined",
|
|
56
|
+
color: "error",
|
|
57
|
+
className: "border-elevation-outline-error-1"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
variant: "contained",
|
|
61
|
+
color: "neutral",
|
|
62
|
+
className: "bg-elevation-fill-inverted-1"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
variant: "contained",
|
|
66
|
+
color: "success",
|
|
67
|
+
className: "bg-elevation-fill-success-1"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
variant: "contained",
|
|
71
|
+
color: "warning",
|
|
72
|
+
className: "bg-elevation-fill-warning-1"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
variant: "contained",
|
|
76
|
+
color: "error",
|
|
77
|
+
className: "bg-elevation-fill-error-1"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
defaultVariants: {
|
|
52
81
|
variant: "outlined",
|
|
53
|
-
color: "
|
|
54
|
-
className: "border-elevation-outline-error-1"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
variant: "contained",
|
|
58
|
-
color: "neutral",
|
|
59
|
-
className: "bg-elevation-fill-inverted-1"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
variant: "contained",
|
|
63
|
-
color: "success",
|
|
64
|
-
className: "bg-elevation-fill-success-1"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
variant: "contained",
|
|
68
|
-
color: "warning",
|
|
69
|
-
className: "bg-elevation-fill-warning-1"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
variant: "contained",
|
|
73
|
-
color: "error",
|
|
74
|
-
className: "bg-elevation-fill-error-1"
|
|
82
|
+
color: "neutral"
|
|
75
83
|
}
|
|
76
|
-
],
|
|
77
|
-
defaultVariants: {
|
|
78
|
-
variant: "outlined",
|
|
79
|
-
color: "neutral"
|
|
80
84
|
}
|
|
81
85
|
});
|
|
82
86
|
var buttonColorVariant = compoundMapper({
|
|
@@ -140,5 +144,66 @@ var buttonColorVariant = compoundMapper({
|
|
|
140
144
|
},
|
|
141
145
|
default: { color: "secondary" }
|
|
142
146
|
});
|
|
147
|
+
var statusIconDefinition = UIOverrides.defineConfig({
|
|
148
|
+
base: ["size-6 shrink-0"],
|
|
149
|
+
config: {
|
|
150
|
+
variants: {
|
|
151
|
+
variant: {
|
|
152
|
+
outlined: "",
|
|
153
|
+
contained: "text-text-inverted-1"
|
|
154
|
+
},
|
|
155
|
+
color: {
|
|
156
|
+
neutral: "",
|
|
157
|
+
success: "",
|
|
158
|
+
warning: "",
|
|
159
|
+
error: ""
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
compoundVariants: [
|
|
163
|
+
{
|
|
164
|
+
variant: "outlined",
|
|
165
|
+
color: "neutral",
|
|
166
|
+
className: "text-text-default-2"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
variant: "outlined",
|
|
170
|
+
color: "success",
|
|
171
|
+
className: "text-text-success-1"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
variant: "outlined",
|
|
175
|
+
color: "warning",
|
|
176
|
+
className: "text-text-warning-1"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
variant: "outlined",
|
|
180
|
+
color: "error",
|
|
181
|
+
className: "text-text-error-1"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
defaultVariants: {
|
|
185
|
+
variant: "outlined",
|
|
186
|
+
color: "neutral"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
var statusSeparatorDefinition = UIOverrides.defineConfig({
|
|
191
|
+
base: ["h-px shrink-0 self-stretch md:h-auto md:w-px"],
|
|
192
|
+
config: {
|
|
193
|
+
variants: {
|
|
194
|
+
variant: {
|
|
195
|
+
outlined: "",
|
|
196
|
+
contained: "hidden"
|
|
197
|
+
},
|
|
198
|
+
color: {
|
|
199
|
+
neutral: "bg-elevation-outline-default-1",
|
|
200
|
+
success: "bg-elevation-outline-success-1",
|
|
201
|
+
warning: "bg-elevation-outline-warning-1",
|
|
202
|
+
error: "bg-elevation-outline-error-1"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
defaultVariants: { color: "neutral" }
|
|
206
|
+
}
|
|
207
|
+
});
|
|
143
208
|
//#endregion
|
|
144
|
-
export { buttonColorVariant,
|
|
209
|
+
export { buttonColorVariant, statusIconDefinition, statusSeparatorDefinition, toastContainer, toastDefinition, toastWrapper };
|