@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,292 +1,336 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { uiOutlineClass } from "../../outline.clsx.js";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
3
4
|
import { clsx } from "clsx";
|
|
4
|
-
import { cva } from "class-variance-authority";
|
|
5
5
|
//#region src/components/inputs/shared/input.cva.ts
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
var inputBaseDefinition = UIOverrides.defineConfig({
|
|
7
|
+
base: [uiOutlineClass, "flex w-full not-[textarea]:truncate"],
|
|
8
|
+
config: {
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
outlined: "",
|
|
12
|
+
filled: ""
|
|
13
|
+
},
|
|
14
|
+
as: {
|
|
15
|
+
default: "rounded-input-rounding-default",
|
|
16
|
+
floating: "rounded-input-rounding-default",
|
|
17
|
+
filter: "rounded-input-rounding-default",
|
|
18
|
+
inline: [
|
|
19
|
+
"h-full",
|
|
20
|
+
"border-transparent border-b-0 bg-transparent text-text-default-1",
|
|
21
|
+
"hover:border-input-outlined-outline-hover",
|
|
22
|
+
"focus-within:border-input-outlined-outline-active",
|
|
23
|
+
"invalid:border-input-outlined-outline-error",
|
|
24
|
+
"has-invalid:border-input-outlined-outline-error",
|
|
25
|
+
"disabled:hover:border-transparent",
|
|
26
|
+
"has-disabled:hover:border-transparent"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
11
29
|
},
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
30
|
+
compoundVariants: [
|
|
31
|
+
{
|
|
32
|
+
variant: "outlined",
|
|
33
|
+
as: "default",
|
|
34
|
+
className: [
|
|
35
|
+
"border border-input-outlined-outline-idle border-solid bg-input-outlined-idle text-text-default-1",
|
|
36
|
+
"hover:border-input-outlined-outline-hover hover:border-solid hover:bg-input-outlined-hover hover:text-text-default-1",
|
|
37
|
+
"focus-within:border-input-outlined-outline-active focus-within:border-solid focus-within:bg-input-outlined-active focus-within:text-text-default-1",
|
|
38
|
+
"invalid:border-input-outlined-outline-error invalid:border-solid invalid:bg-input-outlined-error invalid:text-text-default-1",
|
|
39
|
+
"has-invalid:border-input-outlined-outline-error has-invalid:border-solid has-invalid:bg-input-outlined-error has-invalid:text-text-default-1",
|
|
40
|
+
"disabled:border-input-outlined-outline-disabled disabled:border-solid disabled:bg-input-outlined-disabled disabled:text-text-default-3",
|
|
41
|
+
"has-disabled:border-input-outlined-outline-disabled has-disabled:border-solid has-disabled:bg-input-outlined-disabled has-disabled:text-text-default-3",
|
|
42
|
+
"placeholder:text-text-default-3",
|
|
43
|
+
"disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
44
|
+
"has-disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
45
|
+
"focus-visible:outline-interactive-contained-primary-focus",
|
|
46
|
+
"has-focus-visible:outline-interactive-contained-primary-focus"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
variant: "filled",
|
|
51
|
+
as: "default",
|
|
52
|
+
className: [
|
|
53
|
+
"border border-transparent border-solid bg-input-filled-idle text-text-default-1",
|
|
54
|
+
"hover:border-input-filled-outline-hover hover:border-solid hover:bg-input-filled-hover hover:text-text-default-1",
|
|
55
|
+
"focus-within:border-input-filled-outline-active focus-within:border-solid focus-within:bg-input-filled-active focus-within:text-text-default-1",
|
|
56
|
+
"invalid:border-input-filled-outline-error invalid:border-solid invalid:bg-input-filled-error invalid:text-text-default-1",
|
|
57
|
+
"has-invalid:border-input-filled-outline-error has-invalid:border-solid has-invalid:bg-input-filled-error has-invalid:text-text-default-1",
|
|
58
|
+
"disabled:bg-input-filled-disabled disabled:text-text-default-3",
|
|
59
|
+
"has-disabled:bg-input-filled-disabled has-disabled:text-text-default-3",
|
|
60
|
+
"placeholder:text-text-default-3",
|
|
61
|
+
"disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
62
|
+
"has-disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
63
|
+
"focus-visible:outline-interactive-contained-primary-focus",
|
|
64
|
+
"has-focus-visible:outline-interactive-contained-primary-focus"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
variant: "outlined",
|
|
69
|
+
as: "floating",
|
|
70
|
+
className: [
|
|
71
|
+
"border border-input-outlined-outline-idle border-solid bg-input-outlined-idle text-text-default-1",
|
|
72
|
+
"hover:border-input-outlined-outline-hover hover:border-solid hover:bg-input-outlined-hover hover:text-text-default-1",
|
|
73
|
+
"focus-within:border-input-outlined-outline-active focus-within:border-solid focus-within:bg-input-outlined-active focus-within:text-text-default-1",
|
|
74
|
+
"invalid:border-input-outlined-outline-error invalid:border-solid invalid:bg-input-outlined-error invalid:text-text-default-1",
|
|
75
|
+
"has-invalid:border-input-outlined-outline-error has-invalid:border-solid has-invalid:bg-input-outlined-error has-invalid:text-text-default-1",
|
|
76
|
+
"disabled:border-input-outlined-outline-disabled disabled:border-solid disabled:bg-input-outlined-disabled disabled:text-text-default-3",
|
|
77
|
+
"has-disabled:border-input-outlined-outline-disabled has-disabled:border-solid has-disabled:bg-input-outlined-disabled has-disabled:text-text-default-3",
|
|
78
|
+
"placeholder:text-text-default-3",
|
|
79
|
+
"disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
80
|
+
"has-disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
81
|
+
"focus-visible:outline-interactive-contained-primary-focus",
|
|
82
|
+
"has-focus-visible:outline-interactive-contained-primary-focus"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
variant: "filled",
|
|
87
|
+
as: "floating",
|
|
88
|
+
className: [
|
|
89
|
+
"border border-transparent border-solid bg-input-filled-idle text-text-default-1",
|
|
90
|
+
"hover:border-input-filled-outline-hover hover:border-solid hover:bg-input-filled-hover hover:text-text-default-1",
|
|
91
|
+
"focus-within:border-input-outlined-outline-active focus-within:border-solid focus-within:bg-input-outlined-idle focus-within:text-text-default-1",
|
|
92
|
+
"invalid:border-input-filled-outline-error invalid:border-solid invalid:bg-input-filled-error invalid:text-text-default-1",
|
|
93
|
+
"has-invalid:border-input-filled-outline-error has-invalid:border-solid has-invalid:bg-input-filled-error has-invalid:text-text-default-1",
|
|
94
|
+
"disabled:bg-input-filled-disabled disabled:text-text-default-3",
|
|
95
|
+
"has-disabled:bg-input-filled-disabled has-disabled:text-text-default-3",
|
|
96
|
+
"placeholder:text-text-default-3",
|
|
97
|
+
"disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
98
|
+
"has-disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
99
|
+
"focus-visible:outline-interactive-contained-primary-focus",
|
|
100
|
+
"has-focus-visible:outline-interactive-contained-primary-focus"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
variant: "outlined",
|
|
105
|
+
as: "filter",
|
|
106
|
+
className: [
|
|
107
|
+
"border border-input-outlined-outline-idle border-solid bg-input-outlined-idle text-text-default-1",
|
|
108
|
+
"hover:border-input-outlined-outline-hover hover:border-solid hover:bg-input-outlined-hover hover:text-text-default-1",
|
|
109
|
+
"focus-within:border-input-outlined-outline-active focus-within:border-solid focus-within:bg-input-outlined-active focus-within:text-text-default-1",
|
|
110
|
+
"invalid:border-input-outlined-outline-error invalid:border-solid invalid:bg-input-outlined-error invalid:text-text-default-1",
|
|
111
|
+
"has-invalid:border-input-outlined-outline-error has-invalid:border-solid has-invalid:bg-input-outlined-error has-invalid:text-text-default-1",
|
|
112
|
+
"disabled:border-input-outlined-outline-disabled disabled:border-solid disabled:bg-input-outlined-disabled disabled:text-text-default-3",
|
|
113
|
+
"has-disabled:border-input-outlined-outline-disabled has-disabled:border-solid has-disabled:bg-input-outlined-disabled has-disabled:text-text-default-3",
|
|
114
|
+
"placeholder:text-text-default-3",
|
|
115
|
+
"disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
116
|
+
"has-disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
117
|
+
"focus-visible:outline-interactive-contained-primary-focus",
|
|
118
|
+
"has-focus-visible:outline-interactive-contained-primary-focus"
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
variant: "filled",
|
|
123
|
+
as: "filter",
|
|
124
|
+
className: [
|
|
125
|
+
"border border-transparent border-solid bg-input-filled-idle text-text-default-1",
|
|
126
|
+
"hover:border-input-filled-outline-hover hover:border-solid hover:bg-input-filled-hover hover:text-text-default-1",
|
|
127
|
+
"focus-within:border-input-filled-outline-active focus-within:border-solid focus-within:bg-input-filled-active focus-within:text-text-default-1",
|
|
128
|
+
"has-invalid:border-input-filled-outline-error has-invalid:border-solid has-invalid:bg-input-filled-error has-invalid:text-text-default-1",
|
|
129
|
+
"invalid:border-input-filled-outline-error invalid:border-solid invalid:bg-input-filled-error invalid:text-text-default-1",
|
|
130
|
+
"disabled:bg-input-filled-disabled disabled:text-text-default-1",
|
|
131
|
+
"has-disabled:bg-input-filled-disabled has-disabled:text-text-default-1",
|
|
132
|
+
"placeholder:text-text-default-3",
|
|
133
|
+
"disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
134
|
+
"has-disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
135
|
+
"focus-visible:outline-interactive-contained-primary-focus",
|
|
136
|
+
"has-focus-visible:outline-interactive-contained-primary-focus"
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
defaultVariants: {
|
|
102
141
|
variant: "outlined",
|
|
103
|
-
as: "
|
|
104
|
-
className: [
|
|
105
|
-
"border border-input-outlined-outline-idle border-solid bg-input-outlined-idle text-text-default-1",
|
|
106
|
-
"hover:border-input-outlined-outline-hover hover:border-solid hover:bg-input-outlined-hover hover:text-text-default-1",
|
|
107
|
-
"focus-within:border-input-outlined-outline-active focus-within:border-solid focus-within:bg-input-outlined-active focus-within:text-text-default-1",
|
|
108
|
-
"invalid:border-input-outlined-outline-error invalid:border-solid invalid:bg-input-outlined-error invalid:text-text-default-1",
|
|
109
|
-
"has-invalid:border-input-outlined-outline-error has-invalid:border-solid has-invalid:bg-input-outlined-error has-invalid:text-text-default-1",
|
|
110
|
-
"disabled:border-input-outlined-outline-disabled disabled:border-solid disabled:bg-input-outlined-disabled disabled:text-text-default-3",
|
|
111
|
-
"has-disabled:border-input-outlined-outline-disabled has-disabled:border-solid has-disabled:bg-input-outlined-disabled has-disabled:text-text-default-3",
|
|
112
|
-
"placeholder:text-text-default-3",
|
|
113
|
-
"disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
114
|
-
"has-disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
115
|
-
"focus-visible:outline-interactive-contained-primary-focus",
|
|
116
|
-
"has-focus-visible:outline-interactive-contained-primary-focus"
|
|
117
|
-
]
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
variant: "filled",
|
|
121
|
-
as: "filter",
|
|
122
|
-
className: [
|
|
123
|
-
"border border-transparent border-solid bg-input-filled-idle text-text-default-1",
|
|
124
|
-
"hover:border-input-filled-outline-hover hover:border-solid hover:bg-input-filled-hover hover:text-text-default-1",
|
|
125
|
-
"focus-within:border-input-filled-outline-active focus-within:border-solid focus-within:bg-input-filled-active focus-within:text-text-default-1",
|
|
126
|
-
"has-invalid:border-input-filled-outline-error has-invalid:border-solid has-invalid:bg-input-filled-error has-invalid:text-text-default-1",
|
|
127
|
-
"invalid:border-input-filled-outline-error invalid:border-solid invalid:bg-input-filled-error invalid:text-text-default-1",
|
|
128
|
-
"disabled:bg-input-filled-disabled disabled:text-text-default-1",
|
|
129
|
-
"has-disabled:bg-input-filled-disabled has-disabled:text-text-default-1",
|
|
130
|
-
"placeholder:text-text-default-3",
|
|
131
|
-
"disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
132
|
-
"has-disabled:placeholder:text-interactive-text-secondary-disabled",
|
|
133
|
-
"focus-visible:outline-interactive-contained-primary-focus",
|
|
134
|
-
"has-focus-visible:outline-interactive-contained-primary-focus"
|
|
135
|
-
]
|
|
142
|
+
as: "default"
|
|
136
143
|
}
|
|
137
|
-
],
|
|
138
|
-
defaultVariants: {
|
|
139
|
-
variant: "outlined",
|
|
140
|
-
as: "default"
|
|
141
144
|
}
|
|
142
145
|
});
|
|
143
|
-
var
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
{
|
|
165
|
-
as: [
|
|
166
|
-
"default",
|
|
167
|
-
"filter",
|
|
168
|
-
"inline"
|
|
169
|
-
],
|
|
170
|
-
size: "extra-small",
|
|
171
|
-
className: "px-input-side-xs py-input-height-xs"
|
|
146
|
+
var inputSizeDefinition = UIOverrides.defineConfig({
|
|
147
|
+
base: [""],
|
|
148
|
+
config: {
|
|
149
|
+
variants: {
|
|
150
|
+
size: {
|
|
151
|
+
"extra-small": "text-label-1",
|
|
152
|
+
small: "text-label-1",
|
|
153
|
+
default: "text-label-1",
|
|
154
|
+
large: "text-label-1"
|
|
155
|
+
},
|
|
156
|
+
as: {
|
|
157
|
+
default: "",
|
|
158
|
+
floating: [
|
|
159
|
+
"px-input-side-m",
|
|
160
|
+
"py-floating-label-input-height-empty",
|
|
161
|
+
"input-filled:pb-[calc(var(--spacing-floating-label-input-height-filled)+var(--spacing-floating-label-input-offset-bottom))]",
|
|
162
|
+
"input-filled:pt-[calc(var(--spacing-floating-label-input-height-filled)+var(--spacing-floating-label-input-offset-top)+var(--text-label-3--line-height)*var(--text-label-3))]"
|
|
163
|
+
],
|
|
164
|
+
filter: "",
|
|
165
|
+
inline: ""
|
|
166
|
+
}
|
|
172
167
|
},
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
168
|
+
compoundVariants: [
|
|
169
|
+
{
|
|
170
|
+
as: [
|
|
171
|
+
"default",
|
|
172
|
+
"filter",
|
|
173
|
+
"inline"
|
|
174
|
+
],
|
|
175
|
+
size: "extra-small",
|
|
176
|
+
className: "px-input-side-xs py-input-height-xs"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
as: [
|
|
180
|
+
"default",
|
|
181
|
+
"filter",
|
|
182
|
+
"inline"
|
|
183
|
+
],
|
|
184
|
+
size: "small",
|
|
185
|
+
className: "px-input-side-s py-input-height-s"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
as: [
|
|
189
|
+
"default",
|
|
190
|
+
"filter",
|
|
191
|
+
"inline"
|
|
192
|
+
],
|
|
193
|
+
size: "default",
|
|
194
|
+
className: "px-input-side-m py-input-height-m"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
as: [
|
|
198
|
+
"default",
|
|
199
|
+
"filter",
|
|
200
|
+
"inline"
|
|
201
|
+
],
|
|
202
|
+
size: "large",
|
|
203
|
+
className: "px-input-side-l py-input-height-l"
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
defaultVariants: {
|
|
188
207
|
size: "default",
|
|
189
|
-
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
as: [
|
|
193
|
-
"default",
|
|
194
|
-
"filter",
|
|
195
|
-
"inline"
|
|
196
|
-
],
|
|
197
|
-
size: "large",
|
|
198
|
-
className: "px-input-side-l py-input-height-l"
|
|
208
|
+
as: "default"
|
|
199
209
|
}
|
|
200
|
-
],
|
|
201
|
-
defaultVariants: {
|
|
202
|
-
size: "default",
|
|
203
|
-
as: "default"
|
|
204
210
|
}
|
|
205
211
|
});
|
|
206
|
-
var
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
212
|
+
var inputBase = inputBaseDefinition;
|
|
213
|
+
var inputSize = inputSizeDefinition;
|
|
214
|
+
var inputContentWrapper = UIOverrides.defineConfig({
|
|
215
|
+
base: ["flex w-full"],
|
|
216
|
+
config: {
|
|
217
|
+
variants: { as: {
|
|
211
218
|
default: "",
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
{
|
|
247
|
-
type: "var",
|
|
248
|
-
size: "small",
|
|
249
|
-
className: "--spacing-input-side-s"
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
type: "left",
|
|
253
|
-
size: "default",
|
|
254
|
-
className: "left-input-side-m"
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
type: "right",
|
|
258
|
-
size: "default",
|
|
259
|
-
className: "right-input-side-m"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
type: "var",
|
|
263
|
-
size: "default",
|
|
264
|
-
className: "--spacing-input-side-m"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
type: "left",
|
|
268
|
-
size: "large",
|
|
269
|
-
className: "left-input-side-l"
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
type: "right",
|
|
273
|
-
size: "large",
|
|
274
|
-
className: "right-input-side-l"
|
|
219
|
+
floating: "flex-col",
|
|
220
|
+
filter: "gap-input-gap-input-text-to-elements",
|
|
221
|
+
inline: ""
|
|
222
|
+
} },
|
|
223
|
+
defaultVariants: { as: "default" }
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
var inputClearClass = UIOverrides.defineConfig({
|
|
227
|
+
base: [""],
|
|
228
|
+
config: {
|
|
229
|
+
variants: { as: {
|
|
230
|
+
default: "",
|
|
231
|
+
floating: "",
|
|
232
|
+
filter: "",
|
|
233
|
+
inline: ""
|
|
234
|
+
} },
|
|
235
|
+
defaultVariants: { as: "default" }
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
var inputSideDefinition = UIOverrides.defineConfig({
|
|
239
|
+
base: [""],
|
|
240
|
+
config: {
|
|
241
|
+
variants: {
|
|
242
|
+
size: {
|
|
243
|
+
"extra-small": "",
|
|
244
|
+
small: "",
|
|
245
|
+
default: "",
|
|
246
|
+
large: ""
|
|
247
|
+
},
|
|
248
|
+
type: {
|
|
249
|
+
left: "",
|
|
250
|
+
right: "",
|
|
251
|
+
var: ""
|
|
252
|
+
}
|
|
275
253
|
},
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
254
|
+
compoundVariants: [
|
|
255
|
+
{
|
|
256
|
+
type: "left",
|
|
257
|
+
size: "extra-small",
|
|
258
|
+
className: "left-input-side-xs"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
type: "right",
|
|
262
|
+
size: "extra-small",
|
|
263
|
+
className: "right-input-side-xs"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
type: "var",
|
|
267
|
+
size: "extra-small",
|
|
268
|
+
className: "--spacing-input-side-xs"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
type: "left",
|
|
272
|
+
size: "small",
|
|
273
|
+
className: "left-input-side-s"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
type: "right",
|
|
277
|
+
size: "small",
|
|
278
|
+
className: "right-input-side-s"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
type: "var",
|
|
282
|
+
size: "small",
|
|
283
|
+
className: "--spacing-input-side-s"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
type: "left",
|
|
287
|
+
size: "default",
|
|
288
|
+
className: "left-input-side-m"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
type: "right",
|
|
292
|
+
size: "default",
|
|
293
|
+
className: "right-input-side-m"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
type: "var",
|
|
297
|
+
size: "default",
|
|
298
|
+
className: "--spacing-input-side-m"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
type: "left",
|
|
302
|
+
size: "large",
|
|
303
|
+
className: "left-input-side-l"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
type: "right",
|
|
307
|
+
size: "large",
|
|
308
|
+
className: "right-input-side-l"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
type: "var",
|
|
312
|
+
size: "large",
|
|
313
|
+
className: "--spacing-input-side-l"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
defaultVariants: { size: "default" }
|
|
317
|
+
}
|
|
283
318
|
});
|
|
284
319
|
var useInputCva = () => {
|
|
285
|
-
const
|
|
286
|
-
const
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
320
|
+
const $ = c(3);
|
|
321
|
+
const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
|
|
322
|
+
const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
|
|
323
|
+
let t0;
|
|
324
|
+
if ($[0] !== inputBaseCva || $[1] !== inputSizeCva) {
|
|
325
|
+
t0 = (t1) => {
|
|
326
|
+
const { className, ...rest } = t1;
|
|
327
|
+
return clsx(inputBaseCva(rest), inputSizeCva(rest), className);
|
|
328
|
+
};
|
|
329
|
+
$[0] = inputBaseCva;
|
|
330
|
+
$[1] = inputSizeCva;
|
|
331
|
+
$[2] = t0;
|
|
332
|
+
} else t0 = $[2];
|
|
333
|
+
return t0;
|
|
290
334
|
};
|
|
291
335
|
//#endregion
|
|
292
|
-
export { inputBase,
|
|
336
|
+
export { inputBase, inputBaseDefinition, inputClearClass, inputContentWrapper, inputSideDefinition, inputSize, inputSizeDefinition, useInputCva };
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
1
|
import { TypographyVariantProps } from '../../text/Typography/typography.cva';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { UIOverrides } from '../../../config/uiOverrides.context';
|
|
3
|
+
export declare const labelDefinition: {
|
|
4
|
+
base: string[];
|
|
5
|
+
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
6
|
+
readonly as: {
|
|
7
|
+
readonly default: ["flex items-start gap-1 text-text-default-1 input-disabled:text-text-default-3"];
|
|
8
|
+
readonly filter: ["text-text-default-1 input-disabled:text-text-default-3"];
|
|
9
|
+
readonly inline: ["flex items-start gap-1 text-text-default-1"];
|
|
10
|
+
readonly floating: ["pointer-events-none", "absolute transition-all duration-75", "top-1/2 -translate-y-1/2", "text-text-default-3", "input-disabled:text-interactive-text-secondary-disabled!", "input-filled:top-[calc(var(--spacing-floating-label-input-height-filled)+var(--spacing-floating-label-input-offset-top))]", "input-filled:translate-y-0", "input-filled:text-text-default-1", "input-filled:font-semibold!", "input-filled:text-label-3!", "group-data-[text-area]/text-area:top-floating-label-input-height-empty group-data-[text-area]/text-area:translate-y-0", "group-has-[textarea:not(:placeholder-shown)]/text-area:hidden", "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", "group-data-[is-filled=true]/text-editor:hidden"];
|
|
11
|
+
};
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
14
|
+
export type LabelConfig = NonNullable<typeof labelDefinition.config>;
|
|
15
|
+
export interface LabelBaseProps extends UIOverrides.VariantProps<LabelConfig> {
|
|
7
16
|
}
|
|
8
17
|
export declare const labelTypography: (props: {
|
|
9
|
-
as?: "filter" | "default" | "
|
|
18
|
+
readonly as?: "filter" | "default" | "inline" | "floating" | null | undefined;
|
|
10
19
|
}) => TypographyVariantProps | undefined;
|