@povio/ui 3.0.0-rc.3 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/dist/assets/icons/AlignCenter.js +11 -26
- package/dist/assets/icons/AlignLeft.js +11 -26
- package/dist/assets/icons/AlignLeftRight.js +11 -26
- package/dist/assets/icons/AlignRight.js +11 -26
- package/dist/assets/icons/ArrowDropDown.js +11 -26
- package/dist/assets/icons/ArrowDropUp.js +11 -26
- package/dist/assets/icons/ArrowLeft.js +11 -26
- package/dist/assets/icons/ArrowRight.js +11 -26
- package/dist/assets/icons/Bold.js +11 -26
- package/dist/assets/icons/BulletedList.js +11 -26
- package/dist/assets/icons/Calendar.js +13 -28
- package/dist/assets/icons/Check.js +13 -28
- package/dist/assets/icons/CheckCircle.js +11 -26
- package/dist/assets/icons/CheckboxCheckmark.js +14 -29
- package/dist/assets/icons/CheckboxIndeterminate.js +14 -29
- package/dist/assets/icons/ChevronDown.js +13 -28
- package/dist/assets/icons/ChevronLeft.js +13 -28
- package/dist/assets/icons/ChevronRight.js +13 -28
- package/dist/assets/icons/ChevronUp.js +13 -28
- package/dist/assets/icons/ChevronsLeft.js +13 -28
- package/dist/assets/icons/ChevronsRight.js +13 -28
- package/dist/assets/icons/Clock.js +11 -26
- package/dist/assets/icons/Close.js +11 -26
- package/dist/assets/icons/DateTime.js +14 -35
- package/dist/assets/icons/DragIndicator.js +11 -26
- package/dist/assets/icons/File.js +13 -28
- package/dist/assets/icons/Highlight.js +11 -26
- package/dist/assets/icons/HighlightOn.js +15 -49
- package/dist/assets/icons/Home.js +11 -26
- package/dist/assets/icons/Info.js +16 -37
- package/dist/assets/icons/Italic.js +11 -26
- package/dist/assets/icons/Link.js +11 -26
- package/dist/assets/icons/Menu.js +11 -26
- package/dist/assets/icons/NumberedList.js +11 -26
- package/dist/assets/icons/PointerHorizontal.js +11 -26
- package/dist/assets/icons/PointerVertical.js +11 -26
- package/dist/assets/icons/Search.js +11 -26
- package/dist/assets/icons/Send.js +13 -28
- package/dist/assets/icons/Strikethrough.js +11 -26
- package/dist/assets/icons/TextColor.js +14 -48
- package/dist/assets/icons/Today.js +11 -26
- package/dist/assets/icons/Underlined.js +13 -28
- package/dist/assets/icons/Upload.js +14 -35
- package/dist/assets/icons/Visibility.js +11 -26
- package/dist/assets/icons/VisibilityOff.js +11 -26
- package/dist/assets/icons/WarningFilled.js +13 -28
- package/dist/components/Breadcrumbs/Breadcrumbs.js +56 -207
- package/dist/components/Menu/Menu.d.ts +4 -0
- package/dist/components/Menu/Menu.js +2 -18
- package/dist/components/Menu/MenuDesktop.js +7 -41
- package/dist/components/Menu/MenuItem.js +9 -32
- package/dist/components/Menu/MenuMobile.d.ts +1 -1
- package/dist/components/Menu/MenuMobile.js +39 -97
- package/dist/components/Menu/MenuPopover.js +29 -105
- package/dist/components/buttons/IconButton/IconButton.js +8 -40
- package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +1 -2
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +9 -34
- package/dist/components/buttons/PillButton/PillButton.js +17 -55
- package/dist/components/buttons/SplitButton/SplitButton.js +18 -103
- package/dist/components/buttons/TextButton/TextButton.js +8 -30
- package/dist/components/buttons/ToggleButton/ToggleButton.js +8 -28
- package/dist/components/buttons/shared/ButtonContent.js +22 -80
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/inputs/Checkbox/Checkbox.js +35 -201
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +10 -24
- package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +0 -3
- package/dist/components/inputs/Checkbox/checkbox.cva.js +1 -2
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +5 -12
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +75 -373
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +5 -12
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +186 -492
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +5 -14
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +47 -273
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +3 -7
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +121 -611
- package/dist/components/inputs/DateTime/shared/Calendar.d.ts +3 -5
- package/dist/components/inputs/DateTime/shared/Calendar.js +120 -338
- package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +2 -4
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +103 -310
- package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +2 -4
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +33 -150
- package/dist/components/inputs/DateTime/shared/CalendarHeader.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +98 -249
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +137 -318
- package/dist/components/inputs/DateTime/shared/DateField.js +112 -286
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +3 -14
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +129 -356
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +0 -15
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +11 -96
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.d.ts +4 -1
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +28 -81
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +10 -59
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +58 -103
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +82 -193
- package/dist/components/inputs/DateTime/shared/TimeField.js +8 -27
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +110 -279
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +1 -4
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +65 -210
- package/dist/components/inputs/DateTime/shared/YearPicker.js +68 -119
- package/dist/components/inputs/File/FileUpload.js +45 -88
- package/dist/components/inputs/File/FileUploadContainer.js +7 -15
- package/dist/components/inputs/File/InputUpload.js +79 -317
- package/dist/components/inputs/File/shared/FileCard.js +41 -104
- package/dist/components/inputs/File/shared/FileCardList.js +12 -47
- package/dist/components/inputs/File/shared/FileUploadContent.js +44 -175
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +46 -149
- package/dist/components/inputs/File/shared/FileUploadContentError.js +93 -234
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +97 -230
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +55 -199
- package/dist/components/inputs/File/shared/InputUploadContent.js +34 -148
- package/dist/components/inputs/File/shared/InputUploadFilled.js +8 -49
- package/dist/components/inputs/File/shared/ProgressBar.d.ts +2 -2
- package/dist/components/inputs/File/shared/ProgressBar.js +20 -53
- package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +1 -1
- package/dist/components/inputs/File/shared/fileUpload.cva.js +1 -1
- package/dist/components/inputs/File/shared/progressBar.cva.d.ts +38 -0
- package/dist/components/inputs/File/shared/progressBar.cva.js +28 -0
- package/dist/components/inputs/FormField/FormField.d.ts +3 -3
- package/dist/components/inputs/FormField/FormField.js +37 -119
- package/dist/components/inputs/FormField/FormFieldError.js +5 -25
- package/dist/components/inputs/FormField/FormFieldHeader.d.ts +2 -2
- package/dist/components/inputs/FormField/FormFieldHeader.js +22 -81
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +7 -31
- package/dist/components/inputs/FormField/FormFieldHelper.js +6 -26
- package/dist/components/inputs/FormField/FormFieldLabel.d.ts +2 -2
- package/dist/components/inputs/FormField/FormFieldLabel.js +9 -40
- package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +2 -5
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +97 -447
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +9 -48
- package/dist/components/inputs/Input/TextArea/TextArea.js +90 -305
- package/dist/components/inputs/Input/TextInput/TextInput.d.ts +1 -3
- package/dist/components/inputs/Input/TextInput/TextInput.js +90 -419
- package/dist/components/inputs/Input/shared/InputContent.js +59 -192
- package/dist/components/inputs/Inputs/Form.js +11 -40
- package/dist/components/inputs/Inputs/InputItem.d.ts +21 -15
- package/dist/components/inputs/Inputs/InputItem.js +14 -69
- package/dist/components/inputs/Inputs/Inputs.js +11 -37
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +1 -3
- package/dist/components/inputs/RadioGroup/RadioGroup.js +61 -353
- package/dist/components/inputs/RadioGroup/radio.cva.d.ts +0 -45
- package/dist/components/inputs/RadioGroup/radio.cva.js +1 -48
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +2 -6
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +22 -217
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +18 -3
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +8 -107
- package/dist/components/inputs/Selection/Select/Select.d.ts +3 -7
- package/dist/components/inputs/Selection/Select/Select.js +18 -227
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +3 -8
- package/dist/components/inputs/Selection/shared/SelectBase.js +18 -69
- package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +138 -393
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +116 -397
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +25 -99
- package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectListBox.js +52 -164
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +35 -85
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +16 -69
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +21 -70
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +9 -58
- package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectMobile.js +6 -11
- package/dist/components/inputs/Selection/shared/select.context.d.ts +2 -3
- package/dist/components/inputs/Selection/shared/select.context.js +36 -67
- package/dist/components/inputs/Selection/shared/select.types.d.ts +2 -3
- package/dist/components/inputs/Selection/shared/useSelectItems.js +49 -109
- package/dist/components/inputs/Slider/Slider.d.ts +1 -2
- package/dist/components/inputs/Slider/Slider.js +76 -265
- package/dist/components/inputs/TextEditor/TextEditor.d.ts +0 -1
- package/dist/components/inputs/TextEditor/TextEditor.js +98 -447
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +11 -37
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +30 -102
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +45 -194
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +28 -88
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +14 -48
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +19 -66
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +15 -49
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +32 -92
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +54 -126
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +38 -141
- package/dist/components/inputs/Toggle/Toggle.d.ts +0 -1
- package/dist/components/inputs/Toggle/Toggle.js +37 -214
- package/dist/components/inputs/Toggle/toggle.cva.d.ts +0 -3
- package/dist/components/inputs/Toggle/toggle.cva.js +1 -2
- package/dist/components/inputs/shared/CheckContent.d.ts +1 -2
- package/dist/components/inputs/shared/CheckContent.js +11 -21
- package/dist/components/inputs/shared/InputClear.d.ts +1 -2
- package/dist/components/inputs/shared/InputClear.js +12 -88
- package/dist/components/inputs/shared/TooltipWrapper.js +11 -50
- package/dist/components/inputs/shared/input.cva.d.ts +0 -28
- package/dist/components/inputs/shared/input.cva.js +4 -38
- package/dist/components/navigation/Accordion/Accordion.js +22 -69
- package/dist/components/navigation/Accordion/AccordionItem.js +41 -86
- package/dist/components/navigation/Stepper/Stepper.js +22 -67
- package/dist/components/navigation/Stepper/StepperItem.js +31 -104
- package/dist/components/navigation/Stepper/StepperSeparator.js +5 -23
- package/dist/components/overlays/ActionModal/ActionModal.js +35 -169
- package/dist/components/overlays/BottomSheet/BottomSheet.js +25 -98
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +8 -48
- package/dist/components/overlays/Drawer/Drawer.js +22 -64
- package/dist/components/overlays/Modal/modal.cva.js +1 -1
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.d.ts +5 -1
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +28 -83
- package/dist/components/overlays/Tooltip/Tooltip.js +28 -137
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +12 -37
- package/dist/components/segment/Segment.js +57 -218
- package/dist/components/segment/SegmentItem.js +10 -67
- package/dist/components/shared/pagination/Pagination.js +22 -108
- package/dist/components/shared/pagination/PaginationList.js +64 -167
- package/dist/components/status/Alert/Alert.js +30 -97
- package/dist/components/status/Loader/Loader.js +22 -77
- package/dist/components/status/Toast/Toast.js +17 -22
- package/dist/components/status/Toast/toast.cva.d.ts +14 -3
- package/dist/components/status/Toast/toast.cva.js +12 -10
- package/dist/components/status/Toast/useToast.js +57 -62
- package/dist/components/table/ColumnConfig.js +54 -158
- package/dist/components/table/InfiniteTable.js +16 -67
- package/dist/components/table/PaginatedTable.js +18 -84
- package/dist/components/table/Table.js +30 -30
- package/dist/components/table/table.cva.d.ts +7 -0
- package/dist/components/table/table.cva.js +2 -1
- package/dist/components/text/Link/Link.js +7 -19
- package/dist/components/text/Pill/Pill.d.ts +15 -0
- package/dist/components/text/Pill/Pill.js +44 -0
- package/dist/components/text/Typography/Typography.js +8 -23
- package/dist/config/confirmation.context.js +1 -1
- package/dist/config/link.context.js +9 -23
- package/dist/config/router.context.js +16 -42
- package/dist/config/theme.context.js +45 -98
- package/dist/config/uiConfig.context.d.ts +10 -21
- package/dist/config/uiConfig.context.js +18 -69
- package/dist/config/uiOverrides.context.d.ts +10 -20
- package/dist/config/uiOverrides.context.js +14 -54
- package/dist/helpers/dynamicInputs.d.ts +5 -5
- package/dist/helpers/dynamicInputs.js +0 -3
- package/dist/hooks/useAutosave.d.ts +1 -2
- package/dist/hooks/useAutosave.js +4 -12
- package/dist/hooks/useBreakpoint.js +3 -16
- package/dist/hooks/useDebounceCallback.js +17 -51
- package/dist/hooks/useFilters.js +64 -125
- package/dist/hooks/useForm.js +8 -42
- package/dist/hooks/useFormAutosave.d.ts +1 -3
- package/dist/hooks/useFormAutosave.js +30 -122
- package/dist/hooks/useIntersectionObserver.d.ts +1 -1
- package/dist/hooks/useIntersectionObserver.js +24 -91
- package/dist/hooks/useLocalStorage.js +10 -43
- package/dist/hooks/useLongPressRepeat.js +20 -55
- package/dist/hooks/usePagination.js +19 -49
- package/dist/hooks/useScrollableListBox.js +16 -37
- package/dist/hooks/useSorting.js +28 -69
- package/dist/hooks/useStateAndRef.js +7 -21
- package/dist/hooks/useTableColumnConfig.js +31 -124
- package/dist/hooks/useTranslationMemo.js +5 -25
- package/dist/index.d.ts +7 -16
- package/dist/index.js +6 -13
- package/dist/tw-ui-plugin.js +0 -6
- package/dist/utils/date-time.utils.d.ts +10 -38
- package/dist/utils/date-time.utils.js +22 -136
- package/package.json +1 -1
- package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +0 -5
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +0 -16
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +0 -16
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +0 -15
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +0 -32
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +0 -2
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +0 -1
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +0 -40
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +0 -85
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +0 -1
- package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +0 -13
- package/dist/components/inputs/FormField/formFieldHeader.cva.js +0 -14
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +0 -45
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +0 -571
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +0 -35
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +0 -575
- package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +0 -8
- package/dist/components/inputs/Input/TextArea/TextArea.cva.js +0 -5
- package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +0 -1
- package/dist/components/inputs/Input/shared/numberStatic.utils.js +0 -7
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +0 -37
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +0 -14
- package/dist/components/inputs/Selection/Select/QuerySelect.js +0 -178
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +0 -9
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +0 -47
- package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +0 -14
- package/dist/components/inputs/Selection/shared/querySelect.utils.js +0 -43
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +0 -6
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +0 -5
- package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +0 -12
- package/dist/components/inputs/Selection/shared/selectInput.cva.js +0 -8
- package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +0 -23
- package/dist/components/inputs/Selection/shared/staticSelect.utils.js +0 -54
- package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +0 -1
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +0 -82
- package/dist/components/inputs/Skeleton/InputFrame.js +0 -548
- package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +0 -8
- package/dist/components/inputs/shared/tooltipWrapper.cva.js +0 -5
- package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +0 -14
- package/dist/components/inputs/shared/useStaticInputHandoff.js +0 -100
- package/dist/hooks/useAutosave.spec.d.ts +0 -1
- package/dist/hooks/useFormAutosave.spec.d.ts +0 -1
- package/dist/hooks/useKeyInteractions.d.ts +0 -20
- package/dist/hooks/useKeyInteractions.js +0 -54
- package/dist/hooks/useKeyInteractions.spec.d.ts +0 -1
- package/dist/hooks/useQueryAutocomplete.d.ts +0 -14
- package/dist/hooks/useQueryAutocomplete.js +0 -72
- package/dist/utils/query.utils.d.ts +0 -4
- package/dist/utils/query.utils.js +0 -8
package/dist/index.js
CHANGED
|
@@ -77,23 +77,17 @@ import { Checkbox } from "./components/inputs/Checkbox/Checkbox.js";
|
|
|
77
77
|
import { useLongPressRepeat } from "./hooks/useLongPressRepeat.js";
|
|
78
78
|
import { useScrollableListBox } from "./hooks/useScrollableListBox.js";
|
|
79
79
|
import { DateTimeUtils } from "./utils/date-time.utils.js";
|
|
80
|
-
import { datePickerInputContentRowDefinition } from "./components/inputs/DateTime/shared/datePickerInput.cva.js";
|
|
81
80
|
import { labelDefinition } from "./components/inputs/shared/label.cva.js";
|
|
82
|
-
import { inputBaseDefinition,
|
|
81
|
+
import { inputBaseDefinition, inputSideDefinition, inputSizeDefinition } from "./components/inputs/shared/input.cva.js";
|
|
83
82
|
import { popoverDefinition } from "./components/shared/popover.cva.js";
|
|
84
|
-
import { formFieldHeaderDefinition } from "./components/inputs/FormField/formFieldHeader.cva.js";
|
|
85
83
|
import { formFieldHelperDefinition } from "./components/inputs/FormField/formFieldHelper.cva.js";
|
|
86
84
|
import { FormField } from "./components/inputs/FormField/FormField.js";
|
|
87
|
-
import { tooltipWrapperTriggerDefinition } from "./components/inputs/shared/tooltipWrapper.cva.js";
|
|
88
|
-
import { useDebounceCallback } from "./hooks/useDebounceCallback.js";
|
|
89
85
|
import { DatePicker } from "./components/inputs/DateTime/DatePicker/DatePicker.js";
|
|
90
86
|
import { tagDefinition } from "./components/text/Tag/tag.cva.js";
|
|
91
87
|
import { Tag } from "./components/text/Tag/Tag.js";
|
|
92
|
-
import {
|
|
93
|
-
import { createKeyInteractionsHandler, getKeyInteractionAction, useKeyInteractions } from "./hooks/useKeyInteractions.js";
|
|
88
|
+
import { useDebounceCallback } from "./hooks/useDebounceCallback.js";
|
|
94
89
|
import { selectListBoxItemDefinition } from "./components/inputs/Selection/shared/selectItem.cva.js";
|
|
95
90
|
import { useIntersectionObserver } from "./hooks/useIntersectionObserver.js";
|
|
96
|
-
import { selectPopoverDefinition } from "./components/inputs/Selection/shared/selectDesktop.cva.js";
|
|
97
91
|
import { TextInput } from "./components/inputs/Input/TextInput/TextInput.js";
|
|
98
92
|
import { Select } from "./components/inputs/Selection/Select/Select.js";
|
|
99
93
|
import { DateRangePicker } from "./components/inputs/DateTime/DateRangePicker/DateRangePicker.js";
|
|
@@ -101,6 +95,7 @@ import { DateTimePicker } from "./components/inputs/DateTime/DateTimePicker/Date
|
|
|
101
95
|
import { TimePicker } from "./components/inputs/DateTime/TimePicker/TimePicker.js";
|
|
102
96
|
import { RestUtils } from "./utils/rest.utils.js";
|
|
103
97
|
import { FileUtils } from "./utils/file.utils.js";
|
|
98
|
+
import { progressBarDefinition, progressBarFillDefinition, progressBarTrackDefinition, progressBarTrackWrapperDefinition, progressBarValueDefinition } from "./components/inputs/File/shared/progressBar.cva.js";
|
|
104
99
|
import { ProgressBar } from "./components/inputs/File/shared/ProgressBar.js";
|
|
105
100
|
import { fileCardListDefinition, fileUploadDropZoneDefinition } from "./components/inputs/File/shared/fileUpload.cva.js";
|
|
106
101
|
import { FileUpload } from "./components/inputs/File/FileUpload.js";
|
|
@@ -108,9 +103,7 @@ import { FileUploadContainer } from "./components/inputs/File/FileUploadContaine
|
|
|
108
103
|
import { inputUploadButtonDefinition, inputUploadDropZoneDefinition } from "./components/inputs/File/shared/inputUploadButton.cva.js";
|
|
109
104
|
import { InputUpload } from "./components/inputs/File/InputUpload.js";
|
|
110
105
|
import { NumberInput } from "./components/inputs/Input/NumberInput/NumberInput.js";
|
|
111
|
-
import { NumberRangeInput } from "./components/inputs/Input/NumberRangeInput/NumberRangeInput.js";
|
|
112
106
|
import { PasswordInput } from "./components/inputs/Input/PasswordInput/PasswordInput.js";
|
|
113
|
-
import { textAreaWrapperDefinition } from "./components/inputs/Input/TextArea/TextArea.cva.js";
|
|
114
107
|
import { TextArea } from "./components/inputs/Input/TextArea/TextArea.js";
|
|
115
108
|
import { Autocomplete } from "./components/inputs/Selection/Autocomplete/Autocomplete.js";
|
|
116
109
|
import { QueryAutocomplete } from "./components/inputs/Selection/Autocomplete/QueryAutocomplete.js";
|
|
@@ -119,12 +112,11 @@ import { toggleDefinition } from "./components/inputs/Toggle/toggle.cva.js";
|
|
|
119
112
|
import { Toggle } from "./components/inputs/Toggle/Toggle.js";
|
|
120
113
|
import { segmentDefinition, segmentItemDefinition } from "./components/segment/segment.cva.js";
|
|
121
114
|
import { Segment } from "./components/segment/Segment.js";
|
|
122
|
-
import { QuerySelect } from "./components/inputs/Selection/Select/QuerySelect.js";
|
|
123
115
|
import { StringUtils } from "./utils/string.utils.js";
|
|
124
116
|
import { dynamicInputs } from "./helpers/dynamicInputs.js";
|
|
125
117
|
import { Form } from "./components/inputs/Inputs/Form.js";
|
|
126
118
|
import { Inputs } from "./components/inputs/Inputs/Inputs.js";
|
|
127
|
-
import {
|
|
119
|
+
import { radioDefinition } from "./components/inputs/RadioGroup/radio.cva.js";
|
|
128
120
|
import { RadioGroup } from "./components/inputs/RadioGroup/RadioGroup.js";
|
|
129
121
|
import { accordionChevronDefinition, accordionDefinition, accordionHeadingDefinition, accordionHeadingSubtitleDefinition, accordionHeadingTitleDefinition, accordionIconDefinition, accordionItemDefinition, accordionPanelContentDefinition, accordionPanelDefinition, accordionTriggerDefinition } from "./components/navigation/Accordion/accordion.cva.js";
|
|
130
122
|
import { Accordion } from "./components/navigation/Accordion/Accordion.js";
|
|
@@ -156,6 +148,7 @@ import { InfiniteTable } from "./components/table/InfiniteTable.js";
|
|
|
156
148
|
import { PaginatedTable } from "./components/table/PaginatedTable.js";
|
|
157
149
|
import { linkDefinition } from "./components/text/Link/link.cva.js";
|
|
158
150
|
import { Link } from "./components/text/Link/Link.js";
|
|
151
|
+
import { Pill } from "./components/text/Pill/Pill.js";
|
|
159
152
|
import { Confirmation } from "./config/confirmation.context.js";
|
|
160
153
|
import { UIRouter } from "./config/router.context.js";
|
|
161
154
|
import { useLocalStorage } from "./hooks/useLocalStorage.js";
|
|
@@ -172,4 +165,4 @@ import { useSorting } from "./hooks/useSorting.js";
|
|
|
172
165
|
import { useTableColumnConfig } from "./hooks/useTableColumnConfig.js";
|
|
173
166
|
import { ArrayUtils } from "./utils/array.utils.js";
|
|
174
167
|
import { QueriesUtils } from "./utils/queries.utils.js";
|
|
175
|
-
export { Accordion, ActionModal, Alert, AlignCenterIcon, AlignLeftIcon, AlignLeftRightIcon, AlignRightIcon, ArrayUtils, ArrowDropDownIcon, ArrowDropUpIcon, ArrowLeftIcon, ArrowRightIcon, Autocomplete, BoldIcon, BottomSheet, Breadcrumbs, BulletedListIcon, Button, CalendarIcon, CellText, CheckIcon, Checkbox, CheckboxCheckmarkIcon, CheckboxIndeterminateIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ClockIcon, CloseIcon, ColumnConfigModal, Confirmation, DatePicker, DateRangePicker, DateTimeIcon, DateTimePicker, DateTimeUtils, DateUtils, DomUtils, Drawer, FileUpload, FileUploadContainer, FileUtils, Form, FormField, HeaderText, HighlightIcon, HighlightOnIcon, HomeIcon, IconButton, InfiniteTable, InfoIcon, InlineIconButton, InputUpload, Inputs, ItalicIcon, Link, LinkContext, LinkIcon, Loader, Menu, MenuIcon, MenuItem, MenuPopover, Modal, NumberInput,
|
|
168
|
+
export { Accordion, ActionModal, Alert, AlignCenterIcon, AlignLeftIcon, AlignLeftRightIcon, AlignRightIcon, ArrayUtils, ArrowDropDownIcon, ArrowDropUpIcon, ArrowLeftIcon, ArrowRightIcon, Autocomplete, BoldIcon, BottomSheet, Breadcrumbs, BulletedListIcon, Button, CalendarIcon, CellText, CheckIcon, Checkbox, CheckboxCheckmarkIcon, CheckboxIndeterminateIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ClockIcon, CloseIcon, ColumnConfigModal, Confirmation, DatePicker, DateRangePicker, DateTimeIcon, DateTimePicker, DateTimeUtils, DateUtils, DomUtils, Drawer, FileUpload, FileUploadContainer, FileUtils, Form, FormField, HeaderText, HighlightIcon, HighlightOnIcon, HomeIcon, IconButton, InfiniteTable, InfoIcon, InlineIconButton, InputUpload, Inputs, ItalicIcon, Link, LinkContext, LinkIcon, Loader, Menu, MenuIcon, MenuItem, MenuPopover, Modal, NumberInput, NumberedListIcon, ObjectUtils, PaginatedTable, Pagination, PaginationList, PasswordInput, Pill, PillButton, PointerHorizontalIcon, PointerVerticalIcon, ProgressBar, QueriesUtils, QueryAutocomplete, RadioGroup, ResponsivePopover, RestUtils, RoutingUtils, Segment, Select, SendIcon, Slider, SplitButton, Stepper, StrikethroughIcon, StringUtils, Table, Tag, TextArea, TextButton, TextColorIcon, TextInput, ThemeContext, TimePicker, Toast, ToastContainer, Toggle, ToggleButton, Tooltip, TooltipEllipsis, Typography, UIConfig, UIOverrides, UIRouter, UnderlinedIcon, VisibilityIcon, VisibilityOffIcon, accordionChevronDefinition, accordionDefinition, accordionHeadingDefinition, accordionHeadingSubtitleDefinition, accordionHeadingTitleDefinition, accordionIconDefinition, accordionItemDefinition, accordionPanelContentDefinition, accordionPanelDefinition, accordionTriggerDefinition, alertDefinition, breadcrumbChevronDefinition, breadcrumbIconDefinition, breadcrumbItemDefinition, breadcrumbSegmentDefinition, breadcrumbsDefinition, buttonContentDefinition, buttonDefinition, buttonIconSizeDefinition, buttonSizeDefinition, checkboxDefinition, checkboxIconDefinition, compoundMapper, dynamicColumns, dynamicInputs, fileCardListDefinition, fileUploadDropZoneDefinition, formFieldErrorDefinition, formFieldHelperDefinition, inputBaseDefinition, inputSideDefinition, inputSizeDefinition, inputUploadButtonDefinition, inputUploadDropZoneDefinition, isEqual, labelDefinition, linkDefinition, loaderDefinition, loaderWrapperDefinition, logger, menuDefinition, menuItemDefinition, menuPopoverDefinition, menuPopoverWrapperDefinition, modalContentDefinition, modalMainDefinition, modalOverlayDefinition, ns, pillButtonContentDefinition, pillButtonDefinition, popoverDefinition, progressBarDefinition, progressBarFillDefinition, progressBarTrackDefinition, progressBarTrackWrapperDefinition, progressBarValueDefinition, radioDefinition, resources, segmentDefinition, segmentItemDefinition, selectListBoxItemDefinition, statusIconDefinition, statusSeparatorDefinition, stepperDefinition, stepperIconDefinition, stepperItemDefinition, stepperNumberDefinition, stepperSeparatorDefinition, stepperSubtextDefinition, stepperTitleDefinition, tableCellTextDefinition, tableDataDefinition, tableHeadDataDefinition, tableHeadRowDefinition, tableHeaderTextDefinition, tableRowDefinition, tagDefinition, toastDefinition, statusIconDefinition$1 as toastStatusIconDefinition, statusSeparatorDefinition$1 as toastStatusSeparatorDefinition, toggleDefinition, tooltipDefinition, tooltipPointerHorizontalDefinition, tooltipPointerVerticalDefinition, tooltipTextDefinition, typographyDefinition, uiOutlineClass, useAutosave, useBreakpoint, useDebounceCallback, useDeepCompareEffect, useDeepCompareLayoutEffect, useDeepCompareMemo, useFilters, useForm, useFormAutosave, useIntersectionObserver, useLocalStorage, useLongPressRepeat, usePagination, useScrollableListBox, useSorting, useStateAndRef, useTableColumnConfig, useTableNav, useToast, useTranslationMemo };
|
package/dist/tw-ui-plugin.js
CHANGED
|
@@ -4,14 +4,9 @@ var uiPlugin = plugin(({ addVariant }) => {
|
|
|
4
4
|
addVariant("input-filled", [
|
|
5
5
|
"&:has(input:not(:placeholder-shown))",
|
|
6
6
|
"&:is(:where(.group\\/input-content):has(:is(input:not(:placeholder-shown))) *)",
|
|
7
|
-
"&:is(:where(.group\\/input-content)[data-is-filled])",
|
|
8
|
-
"&:is(:where(.group\\/input-content)[data-is-filled] *)",
|
|
9
|
-
"&:is(:where(.group\\/input-content)[data-has-selection])",
|
|
10
|
-
"&:is(:where(.group\\/input-content)[data-has-selection] *)",
|
|
11
7
|
"&:is(:where(.group\\/select-content)[data-has-selection] *)",
|
|
12
8
|
"&:is(:where(.group\\/select-content)[data-has-search] *)",
|
|
13
9
|
"&:is(:where(.group\\/select-content)[data-searchable-focus-within] *)",
|
|
14
|
-
"&:is(:where(.group\\/radio-group-content)[data-radio-group-content] *)",
|
|
15
10
|
"&:is(:where(.group\\/date-picker-content)[data-has-selection] *)",
|
|
16
11
|
"&:is(:where(.group\\/date-picker-content)[data-focus-within] *)"
|
|
17
12
|
].join(", "));
|
|
@@ -21,7 +16,6 @@ var uiPlugin = plugin(({ addVariant }) => {
|
|
|
21
16
|
"&:is(:where(.group\\/select-content)[data-disabled] *)",
|
|
22
17
|
"&:is(:where(.group\\/select-content):has(*:is(input:disabled)) *)",
|
|
23
18
|
"&:is(:where(.group):has([data-disabled]) *)",
|
|
24
|
-
"&:is(:where(.group\\/radio-group-content)[data-disabled] *)",
|
|
25
19
|
"&:is(:where(.group\\/text-area):has(*:is(textarea:disabled)) *)",
|
|
26
20
|
"&:is(:where(.group):has(*:is(textarea:disabled)) *)",
|
|
27
21
|
"&:is(:where(.group\\/text-editor):where([data-rac])[data-disabled] *)",
|
|
@@ -1,43 +1,15 @@
|
|
|
1
1
|
import { CalendarDate, CalendarDateTime, DateValue, ZonedDateTime } from '@internationalized/date';
|
|
2
2
|
export declare namespace DateTimeUtils {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
placeholder: string;
|
|
10
|
-
isPlaceholder: boolean;
|
|
11
|
-
}
|
|
12
|
-
export function getDatePlaceholder(locale?: string, options?: LocalizedDateFormatOptions): string;
|
|
13
|
-
export function getTimePlaceholder(locale?: string): string;
|
|
14
|
-
export function getDateTimePlaceholder(locale?: string, options?: LocalizedDateFormatOptions): string;
|
|
15
|
-
export function getDateRangePlaceholder(locale?: string, options?: LocalizedDateFormatOptions): string;
|
|
16
|
-
export function formatCalendarDateLocalized(calendarDate: CalendarDate, locale?: string, options?: LocalizedDateFormatOptions): string;
|
|
17
|
-
export function formatCalendarDatePartsLocalized(calendarDate?: CalendarDate | null, locale?: string, options?: LocalizedDateFormatOptions): LocalizedDatePart[];
|
|
18
|
-
export function formatCalendarDateTimePartsLocalized(calendarDateTime?: Pick<CalendarDateTime, "day" | "month" | "year" | "hour" | "minute"> | null, locale?: string, options?: LocalizedDateFormatOptions): LocalizedDatePart[];
|
|
19
|
-
export function formatTimeLocalized(timeValue: {
|
|
20
|
-
hour: number;
|
|
21
|
-
minute: number;
|
|
22
|
-
}, locale?: string, options?: LocalizedDateFormatOptions): string;
|
|
23
|
-
export function formatTimePartsLocalized(timeValue?: {
|
|
24
|
-
hour: number;
|
|
25
|
-
minute: number;
|
|
26
|
-
} | null, locale?: string, options?: LocalizedDateFormatOptions): LocalizedDatePart[];
|
|
27
|
-
export function formatCalendarDateTimeLocalized(calendarDateTime: Pick<CalendarDateTime, "day" | "month" | "year" | "hour" | "minute">, locale?: string, options?: LocalizedDateFormatOptions): string;
|
|
28
|
-
export function fromISOtoZonedDateTime(isoString: string, timeZone?: string): ZonedDateTime;
|
|
29
|
-
export function fromDateValueToISO(dateValue: DateValue, timeZone?: string): string;
|
|
30
|
-
export function fromDateValueFieldsToUTCISO(dateValue: DateValue): string;
|
|
31
|
-
export function getCurrentWallClockCalendarDateTime(): CalendarDateTime;
|
|
32
|
-
export function fromDateValueToOffsetISO(dateValue: DateValue, timeZone?: string): string;
|
|
33
|
-
export function fromLocalToZonedDateTime(date: Date, timeZone?: string): ZonedDateTime;
|
|
34
|
-
export function fromDateValueToLocal(dateValue: DateValue, timeZone?: string): Date;
|
|
35
|
-
export function fromCalendarDateToUTCISO(calendarDate: CalendarDate, options?: {
|
|
3
|
+
function fromISOtoZonedDateTime(isoString: string, timeZone?: string): ZonedDateTime;
|
|
4
|
+
function fromDateValueToISO(dateValue: DateValue, timeZone?: string): string;
|
|
5
|
+
function fromDateValueToOffsetISO(dateValue: DateValue, timeZone?: string): string;
|
|
6
|
+
function fromLocalToZonedDateTime(date: Date, timeZone?: string): ZonedDateTime;
|
|
7
|
+
function fromDateValueToLocal(dateValue: DateValue, timeZone?: string): Date;
|
|
8
|
+
function fromCalendarDateToUTCISO(calendarDate: CalendarDate, options?: {
|
|
36
9
|
endOfDay?: boolean;
|
|
37
10
|
}): string;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
export {};
|
|
11
|
+
function fromUTCISOToCalendarDate(isoString: string): CalendarDate;
|
|
12
|
+
function fromCalendarDateTimeToUTCISO(calendarDateTime: CalendarDateTime): string;
|
|
13
|
+
function fromUTCISOToCalendarDateTime(isoString: string, timeZone?: string): CalendarDateTime;
|
|
14
|
+
function formatTextDateToCalendarDateTime(textDate: string | null, timeZone?: string, locale?: string): CalendarDateTime | null;
|
|
43
15
|
}
|
|
@@ -1,137 +1,33 @@
|
|
|
1
|
-
import { CalendarDate, CalendarDateTime,
|
|
1
|
+
import { CalendarDate, CalendarDateTime, fromDate, getLocalTimeZone, parseAbsolute } from "@internationalized/date";
|
|
2
2
|
import { DateTime } from "luxon";
|
|
3
3
|
//#region src/utils/date-time.utils.ts
|
|
4
4
|
var DateTimeUtils;
|
|
5
5
|
(function(_DateTimeUtils) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const getDayMonthFormat = (shouldForceLeadingZeros = false) => shouldForceLeadingZeros ? "2-digit" : "numeric";
|
|
9
|
-
const getTimeHourFormat = (shouldForceLeadingZeros = false) => shouldForceLeadingZeros ? "2-digit" : "numeric";
|
|
10
|
-
const getDatePlaceholderFormatter = (locale, options) => new Intl.DateTimeFormat(locale, {
|
|
11
|
-
day: getDayMonthFormat(options?.shouldForceLeadingZeros),
|
|
12
|
-
month: getDayMonthFormat(options?.shouldForceLeadingZeros),
|
|
13
|
-
year: "numeric"
|
|
14
|
-
});
|
|
15
|
-
const getTimePlaceholderFormatter = (locale) => new Intl.DateTimeFormat(locale, {
|
|
16
|
-
hour: "2-digit",
|
|
17
|
-
minute: "2-digit"
|
|
18
|
-
});
|
|
19
|
-
const getResolvedLocale = (locale) => {
|
|
20
|
-
if (locale) return locale;
|
|
21
|
-
return new Intl.DateTimeFormat().resolvedOptions().locale;
|
|
22
|
-
};
|
|
23
|
-
const getDateFormatter = (locale, options) => new Intl.DateTimeFormat(getResolvedLocale(locale), {
|
|
24
|
-
day: getDayMonthFormat(options?.shouldForceLeadingZeros),
|
|
25
|
-
month: getDayMonthFormat(options?.shouldForceLeadingZeros),
|
|
26
|
-
year: "numeric",
|
|
27
|
-
timeZone: "UTC"
|
|
28
|
-
});
|
|
29
|
-
const getTimeFormatter = (locale, options) => new DateFormatter(getResolvedLocale(locale), {
|
|
30
|
-
hour: getTimeHourFormat(options?.shouldForceLeadingZeros),
|
|
31
|
-
minute: "2-digit",
|
|
32
|
-
timeZone: "UTC"
|
|
33
|
-
});
|
|
34
|
-
const getDateTimeFormatter = (locale, options) => new Intl.DateTimeFormat(getResolvedLocale(locale), {
|
|
35
|
-
day: getDayMonthFormat(options?.shouldForceLeadingZeros),
|
|
36
|
-
month: getDayMonthFormat(options?.shouldForceLeadingZeros),
|
|
37
|
-
year: "numeric",
|
|
38
|
-
hour: getTimeHourFormat(options?.shouldForceLeadingZeros),
|
|
39
|
-
minute: "2-digit",
|
|
40
|
-
timeZone: "UTC"
|
|
41
|
-
});
|
|
42
|
-
const getLocaleDateFormat = (locale) => {
|
|
43
|
-
const sampleDate = new Date(Date.UTC(2e3, 10, 22));
|
|
44
|
-
return new Intl.DateTimeFormat(locale, {
|
|
6
|
+
function getLocaleDateFormat(locale) {
|
|
7
|
+
const parts = new Intl.DateTimeFormat(locale, {
|
|
45
8
|
day: "2-digit",
|
|
46
9
|
month: "2-digit",
|
|
47
|
-
year: "numeric"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
if (part.type === "
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
case "month": return repeatLocalizedFieldLabel(type, 2, locale);
|
|
65
|
-
case "year": return repeatLocalizedFieldLabel(type, 4, locale);
|
|
66
|
-
case "hour": return "hh";
|
|
67
|
-
case "minute": return "mm";
|
|
68
|
-
default: return null;
|
|
10
|
+
year: "numeric"
|
|
11
|
+
}).formatToParts(new Date(2001, 10, 23));
|
|
12
|
+
let format = "";
|
|
13
|
+
for (const part of parts) {
|
|
14
|
+
if (part.type === "day") {
|
|
15
|
+
format += "dd";
|
|
16
|
+
continue;
|
|
17
|
+
}
|
|
18
|
+
if (part.type === "month") {
|
|
19
|
+
format += "MM";
|
|
20
|
+
continue;
|
|
21
|
+
}
|
|
22
|
+
if (part.type === "year") {
|
|
23
|
+
format += "yyyy";
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
if (part.type === "literal") format += part.value;
|
|
69
27
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
return formatter.formatToParts(sampleDate).map((part) => mapTypeToPlaceholder(part.type, formatter.resolvedOptions().locale) ?? part.value).join("");
|
|
73
|
-
};
|
|
74
|
-
const removeDateSeparatorSpacing = (value) => value.replace(/([./-])\s+(?=[\p{Letter}\p{Number}])/gu, "$1");
|
|
75
|
-
const formatLocalizedDateParts = (formatter, date) => {
|
|
76
|
-
return removeDateSeparatorSpacing(formatter.format(date));
|
|
77
|
-
};
|
|
78
|
-
const formatLocalizedDatePartList = (formatter, date, isPlaceholder) => {
|
|
79
|
-
const locale = formatter.resolvedOptions().locale;
|
|
80
|
-
return formatter.formatToParts(date).map((part) => {
|
|
81
|
-
const value = part.type === "literal" ? part.value.replace(/([./-])\s+/gu, "$1") : part.value.replace(/\s+/gu, "");
|
|
82
|
-
return {
|
|
83
|
-
type: part.type,
|
|
84
|
-
value,
|
|
85
|
-
placeholder: mapTypeToPlaceholder(part.type, locale) ?? value,
|
|
86
|
-
isPlaceholder
|
|
87
|
-
};
|
|
88
|
-
});
|
|
89
|
-
};
|
|
90
|
-
function getDatePlaceholder(locale, options) {
|
|
91
|
-
return removeDateSeparatorSpacing(formatPlaceholder(getDatePlaceholderFormatter(locale, options), DATE_SAMPLE_DATE_UTC));
|
|
28
|
+
if (!format.includes("dd") || !format.includes("MM") || !format.includes("yyyy")) return "dd/MM/yyyy";
|
|
29
|
+
return format;
|
|
92
30
|
}
|
|
93
|
-
_DateTimeUtils.getDatePlaceholder = getDatePlaceholder;
|
|
94
|
-
function getTimePlaceholder(locale) {
|
|
95
|
-
return formatPlaceholder(getTimePlaceholderFormatter(locale), TIME_SAMPLE_DATE_UTC);
|
|
96
|
-
}
|
|
97
|
-
_DateTimeUtils.getTimePlaceholder = getTimePlaceholder;
|
|
98
|
-
function getDateTimePlaceholder(locale, options) {
|
|
99
|
-
return `${getDatePlaceholder(locale, options)}, ${getTimePlaceholder(locale)}`;
|
|
100
|
-
}
|
|
101
|
-
_DateTimeUtils.getDateTimePlaceholder = getDateTimePlaceholder;
|
|
102
|
-
function getDateRangePlaceholder(locale, options) {
|
|
103
|
-
const datePlaceholder = getDatePlaceholder(locale, options);
|
|
104
|
-
return `${datePlaceholder} – ${datePlaceholder}`;
|
|
105
|
-
}
|
|
106
|
-
_DateTimeUtils.getDateRangePlaceholder = getDateRangePlaceholder;
|
|
107
|
-
function formatCalendarDateLocalized(calendarDate, locale, options) {
|
|
108
|
-
return formatLocalizedDateParts(getDateFormatter(locale, options), calendarDate.toDate("UTC"));
|
|
109
|
-
}
|
|
110
|
-
_DateTimeUtils.formatCalendarDateLocalized = formatCalendarDateLocalized;
|
|
111
|
-
function formatCalendarDatePartsLocalized(calendarDate, locale, options) {
|
|
112
|
-
return formatLocalizedDatePartList(getDateFormatter(locale, options), calendarDate?.toDate("UTC") ?? DATE_SAMPLE_DATE_UTC, !calendarDate);
|
|
113
|
-
}
|
|
114
|
-
_DateTimeUtils.formatCalendarDatePartsLocalized = formatCalendarDatePartsLocalized;
|
|
115
|
-
function formatCalendarDateTimePartsLocalized(calendarDateTime, locale, options) {
|
|
116
|
-
const normalizedValue = calendarDateTime ? new CalendarDateTime(calendarDateTime.year, calendarDateTime.month, calendarDateTime.day, calendarDateTime.hour, calendarDateTime.minute) : null;
|
|
117
|
-
return formatLocalizedDatePartList(getDateTimeFormatter(locale, options), normalizedValue?.toDate("UTC") ?? TIME_SAMPLE_DATE_UTC, !calendarDateTime);
|
|
118
|
-
}
|
|
119
|
-
_DateTimeUtils.formatCalendarDateTimePartsLocalized = formatCalendarDateTimePartsLocalized;
|
|
120
|
-
function formatTimeLocalized(timeValue, locale, options) {
|
|
121
|
-
const dateTime = new CalendarDateTime(2e3, 11, 22, timeValue.hour, timeValue.minute);
|
|
122
|
-
return getTimeFormatter(locale, options).format(dateTime.toDate("UTC"));
|
|
123
|
-
}
|
|
124
|
-
_DateTimeUtils.formatTimeLocalized = formatTimeLocalized;
|
|
125
|
-
function formatTimePartsLocalized(timeValue, locale, options) {
|
|
126
|
-
const normalizedValue = new CalendarDateTime(2e3, 11, 22, timeValue?.hour ?? 6, timeValue?.minute ?? 45);
|
|
127
|
-
return formatLocalizedDatePartList(getTimeFormatter(locale, options), normalizedValue.toDate("UTC"), !timeValue);
|
|
128
|
-
}
|
|
129
|
-
_DateTimeUtils.formatTimePartsLocalized = formatTimePartsLocalized;
|
|
130
|
-
function formatCalendarDateTimeLocalized(calendarDateTime, locale, options) {
|
|
131
|
-
const normalizedValue = new CalendarDateTime(calendarDateTime.year, calendarDateTime.month, calendarDateTime.day, calendarDateTime.hour, calendarDateTime.minute);
|
|
132
|
-
return formatLocalizedDateParts(getDateTimeFormatter(locale, options), normalizedValue.toDate("UTC"));
|
|
133
|
-
}
|
|
134
|
-
_DateTimeUtils.formatCalendarDateTimeLocalized = formatCalendarDateTimeLocalized;
|
|
135
31
|
function resolveTimeZone(timeZone) {
|
|
136
32
|
if (timeZone) return timeZone;
|
|
137
33
|
return getLocalTimeZone();
|
|
@@ -145,16 +41,6 @@ var DateTimeUtils;
|
|
|
145
41
|
return dateValue.toDate(resolvedTimeZone).toISOString();
|
|
146
42
|
}
|
|
147
43
|
_DateTimeUtils.fromDateValueToISO = fromDateValueToISO;
|
|
148
|
-
function fromDateValueFieldsToUTCISO(dateValue) {
|
|
149
|
-
const dateTimeFields = dateValue;
|
|
150
|
-
return new CalendarDateTime(dateValue.year, dateValue.month, dateValue.day, dateTimeFields.hour ?? 0, dateTimeFields.minute ?? 0, dateTimeFields.second ?? 0, dateTimeFields.millisecond ?? 0).toDate("UTC").toISOString();
|
|
151
|
-
}
|
|
152
|
-
_DateTimeUtils.fromDateValueFieldsToUTCISO = fromDateValueFieldsToUTCISO;
|
|
153
|
-
function getCurrentWallClockCalendarDateTime() {
|
|
154
|
-
const date = /* @__PURE__ */ new Date();
|
|
155
|
-
return new CalendarDateTime(date.getFullYear(), date.getMonth() + 1, date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
|
|
156
|
-
}
|
|
157
|
-
_DateTimeUtils.getCurrentWallClockCalendarDateTime = getCurrentWallClockCalendarDateTime;
|
|
158
44
|
function fromDateValueToOffsetISO(dateValue, timeZone) {
|
|
159
45
|
const resolvedTimeZone = resolveTimeZone(timeZone);
|
|
160
46
|
const date = dateValue.toDate(resolvedTimeZone);
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IconButtonProps } from '../../../buttons/IconButton/IconButton';
|
|
2
|
-
export type DatePickerTodayIcon = boolean | IconButtonProps["icon"];
|
|
3
|
-
export type DatePickerTodayIconButtonSize = IconButtonProps["size"];
|
|
4
|
-
export type DatePickerTodayIconButtonComponent = "iconButton" | "inlineIconButton";
|
|
5
|
-
export type DatePickerTodayIconPlacement = "content" | "fieldLabel";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { InputSizeProps } from '../../shared/input.cva';
|
|
2
|
-
import { UIOverrides } from '../../../../config/uiOverrides.context';
|
|
3
|
-
export declare const datePickerInputContentRowDefinition: {
|
|
4
|
-
base: string[];
|
|
5
|
-
config: import("../../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
6
|
-
readonly size: {
|
|
7
|
-
readonly "extra-small": "";
|
|
8
|
-
readonly small: "";
|
|
9
|
-
readonly default: "";
|
|
10
|
-
readonly large: "";
|
|
11
|
-
};
|
|
12
|
-
}>;
|
|
13
|
-
};
|
|
14
|
-
export type DatePickerInputContentRowConfig = NonNullable<typeof datePickerInputContentRowDefinition.config>;
|
|
15
|
-
export interface DatePickerInputContentRowProps extends UIOverrides.VariantProps<DatePickerInputContentRowConfig>, InputSizeProps {
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { UIOverrides } from "../../../../config/uiOverrides.context.js";
|
|
2
|
-
//#region src/components/inputs/DateTime/shared/datePickerInput.cva.ts
|
|
3
|
-
var datePickerInputContentRowDefinition = UIOverrides.defineConfig({
|
|
4
|
-
base: ["flex items-center gap-input-gap-input-text-to-elements"],
|
|
5
|
-
config: {
|
|
6
|
-
variants: { size: {
|
|
7
|
-
"extra-small": "",
|
|
8
|
-
small: "",
|
|
9
|
-
default: "",
|
|
10
|
-
large: ""
|
|
11
|
-
} },
|
|
12
|
-
defaultVariants: { size: "default" }
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
//#endregion
|
|
16
|
-
export { datePickerInputContentRowDefinition };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FC, ReactElement, SVGProps } from 'react';
|
|
2
|
-
import { PressEvent } from 'react-aria-components';
|
|
3
|
-
import { DatePickerTodayIcon, DatePickerTodayIconButtonComponent, DatePickerTodayIconButtonSize } from './datePicker.types';
|
|
4
|
-
type TodayIconComponent = FC<SVGProps<SVGSVGElement>> | ReactElement;
|
|
5
|
-
type DatePickerTodayIconOptions = {
|
|
6
|
-
className?: string;
|
|
7
|
-
isDisabled?: boolean;
|
|
8
|
-
onPress?: (event: PressEvent) => void;
|
|
9
|
-
renderStatic?: boolean;
|
|
10
|
-
size?: DatePickerTodayIconButtonSize;
|
|
11
|
-
todayIconButtonComponent?: DatePickerTodayIconButtonComponent;
|
|
12
|
-
};
|
|
13
|
-
export declare const getDatePickerTodayIcon: (todayIcon: DatePickerTodayIcon | undefined) => TodayIconComponent | null;
|
|
14
|
-
export declare const renderDatePickerTodayIcon: (todayIcon: DatePickerTodayIcon | undefined, options?: DatePickerTodayIconOptions) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
15
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { IconButton } from "../../../buttons/IconButton/IconButton.js";
|
|
2
|
-
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
3
|
-
import { TodayIcon } from "../../../../assets/icons/Today.js";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/inputs/DateTime/shared/datePickerTodayIcon.tsx
|
|
6
|
-
var getDatePickerTodayIcon = (todayIcon) => {
|
|
7
|
-
if (!todayIcon) return null;
|
|
8
|
-
return todayIcon === true ? TodayIcon : todayIcon;
|
|
9
|
-
};
|
|
10
|
-
var renderDatePickerTodayIcon = (todayIcon, options) => {
|
|
11
|
-
const icon = getDatePickerTodayIcon(todayIcon);
|
|
12
|
-
if (!icon) return;
|
|
13
|
-
const { className, isDisabled, onPress, renderStatic, size = "none", todayIconButtonComponent = "iconButton" } = options ?? {};
|
|
14
|
-
const buttonProps = {
|
|
15
|
-
label: "",
|
|
16
|
-
icon,
|
|
17
|
-
size,
|
|
18
|
-
isDisabled,
|
|
19
|
-
onPress
|
|
20
|
-
};
|
|
21
|
-
if (todayIconButtonComponent === "inlineIconButton") return /* @__PURE__ */ jsx(InlineIconButton, {
|
|
22
|
-
...buttonProps,
|
|
23
|
-
staticRender: renderStatic,
|
|
24
|
-
className: className ?? "relative z-1 !border-none"
|
|
25
|
-
});
|
|
26
|
-
return /* @__PURE__ */ jsx(IconButton, {
|
|
27
|
-
...buttonProps,
|
|
28
|
-
className: className ?? "relative z-1"
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
export { renderDatePickerTodayIcon };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { CalendarDate } from '@internationalized/date';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { DateValue, TimeValue } from 'react-aria';
|
|
4
|
-
interface StaticSegmentProps {
|
|
5
|
-
isDisabled?: boolean;
|
|
6
|
-
hidePlaceholder?: boolean;
|
|
7
|
-
}
|
|
8
|
-
interface StaticManualEntryPlaceholderProps {
|
|
9
|
-
disableManualEntry?: boolean;
|
|
10
|
-
placeholder?: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
type StaticDateGranularity = "day" | "month" | "year";
|
|
13
|
-
interface StaticCalendarDateSegmentsProps extends StaticSegmentProps, StaticManualEntryPlaceholderProps {
|
|
14
|
-
value?: CalendarDate | null;
|
|
15
|
-
locale: string;
|
|
16
|
-
shouldForceLeadingZeros?: boolean;
|
|
17
|
-
dateGranularity?: StaticDateGranularity;
|
|
18
|
-
}
|
|
19
|
-
interface StaticCalendarDateTimeSegmentsProps extends StaticSegmentProps, StaticManualEntryPlaceholderProps {
|
|
20
|
-
value?: DateValue | null;
|
|
21
|
-
locale: string;
|
|
22
|
-
shouldForceLeadingZeros?: boolean;
|
|
23
|
-
}
|
|
24
|
-
interface StaticDateRangeSegmentsProps extends StaticSegmentProps, StaticManualEntryPlaceholderProps {
|
|
25
|
-
start?: CalendarDate | null;
|
|
26
|
-
end?: CalendarDate | null;
|
|
27
|
-
locale: string;
|
|
28
|
-
shouldForceLeadingZeros?: boolean;
|
|
29
|
-
}
|
|
30
|
-
interface StaticTimeSegmentsProps extends StaticSegmentProps, StaticManualEntryPlaceholderProps {
|
|
31
|
-
value?: TimeValue | null;
|
|
32
|
-
locale: string;
|
|
33
|
-
shouldForceLeadingZeros?: boolean;
|
|
34
|
-
}
|
|
35
|
-
export declare const getStaticCalendarDateSegments: ({ value, locale, shouldForceLeadingZeros, isDisabled, hidePlaceholder, disableManualEntry, placeholder, dateGranularity, }: StaticCalendarDateSegmentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
export declare const getStaticCalendarDateTimeSegments: ({ value, locale, shouldForceLeadingZeros, isDisabled, hidePlaceholder, disableManualEntry, placeholder, }: StaticCalendarDateTimeSegmentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
export declare const getStaticDateRangeSegments: ({ start, end, locale, shouldForceLeadingZeros, isDisabled, hidePlaceholder, disableManualEntry, placeholder, }: StaticDateRangeSegmentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
export declare const getStaticTimeSegments: ({ value, locale, shouldForceLeadingZeros, isDisabled, hidePlaceholder, disableManualEntry, placeholder, }: StaticTimeSegmentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
-
export declare const getStaticDateTimePlaceholder: (placeholder: ReactNode) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
-
export {};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { Typography } from "../../../text/Typography/Typography.js";
|
|
2
|
-
import { DateSegmentItemView } from "./DateSegmentItem.js";
|
|
3
|
-
import { DateTimeUtils } from "../../../../utils/date-time.utils.js";
|
|
4
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/inputs/DateTime/shared/staticDateTimeSegments.tsx
|
|
6
|
-
var getStaticCalendarDateSegments = ({ value, locale, shouldForceLeadingZeros, isDisabled, hidePlaceholder, disableManualEntry, placeholder, dateGranularity = "day" }) => {
|
|
7
|
-
if (disableManualEntry && placeholder && !value) return getStaticDateTimePlaceholder(placeholder);
|
|
8
|
-
return renderStaticDateTimeParts(DateTimeUtils.formatCalendarDatePartsLocalized(value, locale, { shouldForceLeadingZeros }), {
|
|
9
|
-
isDisabled,
|
|
10
|
-
hidePlaceholder,
|
|
11
|
-
dateGranularity
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
var getStaticCalendarDateTimeSegments = ({ value, locale, shouldForceLeadingZeros, isDisabled, hidePlaceholder, disableManualEntry, placeholder }) => {
|
|
15
|
-
const hasValue = !!(value && "hour" in value);
|
|
16
|
-
if (disableManualEntry && placeholder && !hasValue) return getStaticDateTimePlaceholder(placeholder);
|
|
17
|
-
return renderStaticDateTimeParts(DateTimeUtils.formatCalendarDateTimePartsLocalized(hasValue ? value : null, locale, { shouldForceLeadingZeros }), {
|
|
18
|
-
isDisabled,
|
|
19
|
-
hidePlaceholder,
|
|
20
|
-
segmentRole: "spinbutton"
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
var getStaticDateRangeSegments = ({ start, end, locale, shouldForceLeadingZeros, isDisabled, hidePlaceholder, disableManualEntry, placeholder }) => {
|
|
24
|
-
if (disableManualEntry && placeholder && !start && !end) return getStaticDateTimePlaceholder(placeholder);
|
|
25
|
-
const showSeparator = !hidePlaceholder;
|
|
26
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27
|
-
renderStaticDateTimeParts(DateTimeUtils.formatCalendarDatePartsLocalized(start, locale, { shouldForceLeadingZeros }), {
|
|
28
|
-
isDisabled,
|
|
29
|
-
hidePlaceholder: hidePlaceholder && !start
|
|
30
|
-
}),
|
|
31
|
-
showSeparator && /* @__PURE__ */ jsx("span", {
|
|
32
|
-
className: isDisabled ? "pointer-events-none select-none text-interactive-text-secondary-disabled" : "pointer-events-none select-none",
|
|
33
|
-
children: "–"
|
|
34
|
-
}),
|
|
35
|
-
renderStaticDateTimeParts(DateTimeUtils.formatCalendarDatePartsLocalized(end, locale, { shouldForceLeadingZeros }), {
|
|
36
|
-
isDisabled,
|
|
37
|
-
hidePlaceholder: hidePlaceholder && !end
|
|
38
|
-
})
|
|
39
|
-
] });
|
|
40
|
-
};
|
|
41
|
-
var getStaticTimeSegments = ({ value, locale, shouldForceLeadingZeros, isDisabled, hidePlaceholder, disableManualEntry, placeholder }) => {
|
|
42
|
-
if (disableManualEntry && placeholder && !value) return getStaticDateTimePlaceholder(placeholder);
|
|
43
|
-
return renderStaticDateTimeParts(DateTimeUtils.formatTimePartsLocalized(value, locale, { shouldForceLeadingZeros }), {
|
|
44
|
-
isDisabled,
|
|
45
|
-
hidePlaceholder,
|
|
46
|
-
timePickerOnly: true
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
var getStaticDateTimePlaceholder = (placeholder) => /* @__PURE__ */ jsx(Typography, {
|
|
50
|
-
size: "label-1",
|
|
51
|
-
className: "text-text-default-3",
|
|
52
|
-
children: placeholder
|
|
53
|
-
});
|
|
54
|
-
var renderStaticDateTimeParts = (parts, options) => {
|
|
55
|
-
return /* @__PURE__ */ jsx("div", {
|
|
56
|
-
className: "flex",
|
|
57
|
-
children: getStaticDateTimePartsToRender(parts, options.dateGranularity).map((part, index) => /* @__PURE__ */ jsx(DateSegmentItemView, {
|
|
58
|
-
type: part.type,
|
|
59
|
-
text: part.value,
|
|
60
|
-
placeholder: part.placeholder,
|
|
61
|
-
isPlaceholder: part.isPlaceholder && part.type !== "literal",
|
|
62
|
-
isInputEmpty: parts.some((item) => item.type !== "literal" && item.isPlaceholder),
|
|
63
|
-
isDisabled: options.isDisabled,
|
|
64
|
-
timePickerOnly: options.timePickerOnly,
|
|
65
|
-
hidePlaceholder: options.hidePlaceholder,
|
|
66
|
-
role: part.type === "literal" ? void 0 : options.segmentRole
|
|
67
|
-
}, index))
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
var getStaticDateTimePartsToRender = (parts, dateGranularity = "day") => {
|
|
71
|
-
const segments = [];
|
|
72
|
-
for (const part of parts) if (part.type !== "literal") {
|
|
73
|
-
if (isStaticDatePartVisible(part.type, dateGranularity)) segments.push(part);
|
|
74
|
-
} else if (segments.length > 0 && segments.at(-1)?.type !== "literal") segments.push(part);
|
|
75
|
-
if (segments.at(-1)?.type === "literal") segments.pop();
|
|
76
|
-
return segments;
|
|
77
|
-
};
|
|
78
|
-
var isStaticDatePartVisible = (type, dateGranularity) => {
|
|
79
|
-
if (dateGranularity === "day") return true;
|
|
80
|
-
if (dateGranularity === "month") return type !== "day";
|
|
81
|
-
if (dateGranularity === "year") return type === "year";
|
|
82
|
-
return true;
|
|
83
|
-
};
|
|
84
|
-
//#endregion
|
|
85
|
-
export { getStaticCalendarDateSegments, getStaticCalendarDateTimeSegments, getStaticDateRangeSegments, getStaticTimeSegments };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { UIOverrides } from '../../../config/uiOverrides.context';
|
|
2
|
-
export declare const formFieldHeaderDefinition: {
|
|
3
|
-
base: string[];
|
|
4
|
-
config: import("../../../utils/style-merge.util").StyleMergeUtils.Config<{
|
|
5
|
-
readonly visible: {
|
|
6
|
-
readonly true: "mb-1";
|
|
7
|
-
readonly false: "sr-only";
|
|
8
|
-
};
|
|
9
|
-
}>;
|
|
10
|
-
};
|
|
11
|
-
export type FormFieldHeaderConfig = NonNullable<typeof formFieldHeaderDefinition.config>;
|
|
12
|
-
export interface FormFieldHeaderVariantProps extends UIOverrides.VariantProps<FormFieldHeaderConfig> {
|
|
13
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
|
-
//#region src/components/inputs/FormField/formFieldHeader.cva.ts
|
|
3
|
-
var formFieldHeaderDefinition = UIOverrides.defineConfig({
|
|
4
|
-
base: [""],
|
|
5
|
-
config: {
|
|
6
|
-
variants: { visible: {
|
|
7
|
-
true: "mb-1",
|
|
8
|
-
false: "sr-only"
|
|
9
|
-
} },
|
|
10
|
-
defaultVariants: { visible: true }
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
//#endregion
|
|
14
|
-
export { formFieldHeaderDefinition };
|