@povio/ui 2.3.3 → 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/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 +482 -186
- 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
|
@@ -0,0 +1,40 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,85 @@
|
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,6 +6,7 @@ import { FileCardList } from "./shared/FileCardList.js";
|
|
|
6
6
|
import { FileUploadContentEmpty } from "./shared/FileUploadContentEmpty.js";
|
|
7
7
|
import { FileUploadContent } from "./shared/FileUploadContent.js";
|
|
8
8
|
import { fileUploadDropZone } from "./shared/fileUpload.cva.js";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
9
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
11
|
import { clsx } from "clsx";
|
|
11
12
|
import { useCallback, useState } from "react";
|
|
@@ -16,7 +17,7 @@ import { Controller } from "react-hook-form";
|
|
|
16
17
|
//#region src/components/inputs/File/FileUpload.tsx
|
|
17
18
|
var FileUploadBase = (props) => {
|
|
18
19
|
const { t } = useTranslation("ui");
|
|
19
|
-
const { ref: _ref, label, tooltipText, variant = "vertical", as = "button", helperText, isRequired, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, className, allowsMultiple = false, hideLabel, acceptedFileTypes, clearOnSuccess, emptyText = t(($) => $.ui.fileUpload.emptyText), uploadText = t(($) =>
|
|
20
|
+
const { ref: _ref, label, tooltipText, variant = "vertical", as = "button", helperText, isRequired, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, className, allowsMultiple = false, hideLabel, acceptedFileTypes, clearOnSuccess, emptyText = t(($) => $.ui.fileUpload.emptyText), uploadText = t(($_0) => $_0.ui.fileUpload.uploadText), browseText = t(($_1) => $_1.ui.fileUpload.browse), fileUpload, fileRemove, children, listRenderer, onInvalidFileType, defaultState, ...rest } = props;
|
|
20
21
|
const ui = UIConfig.useConfig();
|
|
21
22
|
const getInitialState = () => {
|
|
22
23
|
if (props.value != null && props.value.length > 0) return props.value;
|
|
@@ -46,76 +47,76 @@ var FileUploadBase = (props) => {
|
|
|
46
47
|
const labelProps = useLabels({ "aria-label": label });
|
|
47
48
|
const handleUpload = async (inputFiles) => {
|
|
48
49
|
const acceptedFiles = inputFiles.filter((file) => FileUtils.isFileTypeAccepted(file, acceptedFileTypes));
|
|
49
|
-
const invalidFiles = inputFiles.filter((
|
|
50
|
-
if (invalidFiles.length > 0) if (allowsMultiple) onInvalidFileType?.(invalidFiles.map((
|
|
50
|
+
const invalidFiles = inputFiles.filter((file_0) => !FileUtils.isFileTypeAccepted(file_0, acceptedFileTypes));
|
|
51
|
+
if (invalidFiles.length > 0) if (allowsMultiple) onInvalidFileType?.(invalidFiles.map((file_1) => file_1.name));
|
|
51
52
|
else onInvalidFileType?.(invalidFiles[0].name);
|
|
52
53
|
if (acceptedFiles.length === 0 || !fileUpload) return;
|
|
53
54
|
if (!allowsMultiple) setUploadState([]);
|
|
54
55
|
const newUploadState = [];
|
|
55
|
-
acceptedFiles.forEach((
|
|
56
|
+
acceptedFiles.forEach((file_2) => {
|
|
56
57
|
newUploadState.push({
|
|
57
58
|
state: "uploading",
|
|
58
59
|
progress: 0,
|
|
59
|
-
file,
|
|
60
|
+
file: file_2,
|
|
60
61
|
abortController: new AbortController()
|
|
61
62
|
});
|
|
62
63
|
});
|
|
63
64
|
const startIndex = allowsMultiple ? uploadState.length : 0;
|
|
64
65
|
setUploadState((prev) => [...prev, ...newUploadState]);
|
|
65
66
|
const promises = [];
|
|
66
|
-
acceptedFiles.forEach(async (
|
|
67
|
+
acceptedFiles.forEach(async (file_3, index_0) => {
|
|
67
68
|
promises.push(fileUpload({ data: {
|
|
68
|
-
resourceName:
|
|
69
|
-
fileName:
|
|
70
|
-
fileSize:
|
|
69
|
+
resourceName: file_3.name,
|
|
70
|
+
fileName: file_3.name,
|
|
71
|
+
fileSize: file_3.size,
|
|
71
72
|
method: "put"
|
|
72
|
-
} },
|
|
73
|
+
} }, file_3, {
|
|
73
74
|
onUploadProgress: ({ loaded, total }) => {
|
|
74
75
|
if (total == null) return;
|
|
75
76
|
const progress = Math.round(loaded / total * 100);
|
|
76
|
-
setUploadState((
|
|
77
|
+
setUploadState((prev_0) => prev_0.map((state, i) => i === startIndex + index_0 ? {
|
|
77
78
|
...state,
|
|
78
79
|
progress
|
|
79
80
|
} : state));
|
|
80
81
|
},
|
|
81
|
-
abortController: newUploadState[
|
|
82
|
+
abortController: newUploadState[index_0]?.abortController
|
|
82
83
|
}));
|
|
83
84
|
});
|
|
84
85
|
try {
|
|
85
|
-
(await Promise.all(promises)).forEach((res,
|
|
86
|
-
setUploadState((
|
|
87
|
-
...
|
|
86
|
+
(await Promise.all(promises)).forEach((res, index_1) => {
|
|
87
|
+
setUploadState((prev_2) => prev_2.map((state_0, i_1) => i_1 === startIndex + index_1 ? {
|
|
88
|
+
...state_0,
|
|
88
89
|
state: "uploaded",
|
|
89
90
|
id: res.id
|
|
90
|
-
} :
|
|
91
|
+
} : state_0));
|
|
91
92
|
});
|
|
92
93
|
if (clearOnSuccess) setUploadState([]);
|
|
93
|
-
} catch (
|
|
94
|
-
setUploadState((
|
|
95
|
-
throw
|
|
94
|
+
} catch (error_0) {
|
|
95
|
+
setUploadState((prev_1) => prev_1.filter((_, i_0) => i_0 < startIndex));
|
|
96
|
+
throw error_0;
|
|
96
97
|
}
|
|
97
98
|
};
|
|
98
|
-
const handleSelect = (
|
|
99
|
-
if (!
|
|
100
|
-
handleUpload(Array.from(
|
|
99
|
+
const handleSelect = (inputFiles_0) => {
|
|
100
|
+
if (!inputFiles_0) return;
|
|
101
|
+
handleUpload(Array.from(inputFiles_0));
|
|
101
102
|
};
|
|
102
103
|
const handleDrop = async (e) => {
|
|
103
104
|
if (!e.items) return;
|
|
104
|
-
const
|
|
105
|
-
e.items.forEach((
|
|
106
|
-
if (
|
|
105
|
+
const promises_0 = [];
|
|
106
|
+
e.items.forEach((item_0) => {
|
|
107
|
+
if (item_0.kind === "file") promises_0.push(item_0.getFile());
|
|
107
108
|
});
|
|
108
|
-
handleUpload(await Promise.all(
|
|
109
|
+
handleUpload(await Promise.all(promises_0));
|
|
109
110
|
};
|
|
110
111
|
const handleRemove = useCallback((id) => {
|
|
111
112
|
fileRemove?.({ id });
|
|
112
|
-
setUploadState((
|
|
113
|
+
setUploadState((prev_3) => prev_3.filter((state_1) => state_1.id !== id));
|
|
113
114
|
}, [fileRemove]);
|
|
114
|
-
const handleCancelUpload = useCallback((
|
|
115
|
-
const findState = uploadState[
|
|
115
|
+
const handleCancelUpload = useCallback((index_2) => {
|
|
116
|
+
const findState = uploadState[index_2];
|
|
116
117
|
if (findState) {
|
|
117
118
|
findState.abortController?.abort("canceled by user");
|
|
118
|
-
setUploadState((
|
|
119
|
+
setUploadState((prev_4) => prev_4.filter((__0, i_2) => i_2 !== index_2));
|
|
119
120
|
}
|
|
120
121
|
}, [uploadState]);
|
|
121
122
|
return /* @__PURE__ */ jsxs(FormField, {
|
|
@@ -128,6 +129,7 @@ var FileUploadBase = (props) => {
|
|
|
128
129
|
...rest,
|
|
129
130
|
"data-rac": "",
|
|
130
131
|
"data-disabled": isDisabled || void 0,
|
|
132
|
+
"data-is-disabled": isDisabled || void 0,
|
|
131
133
|
"data-invalid": !!error || void 0,
|
|
132
134
|
"data-multiple": allowsMultiple || void 0,
|
|
133
135
|
"data-has-files": uploadState.length > 0 || void 0,
|
|
@@ -182,22 +184,63 @@ var FileUploadBase = (props) => {
|
|
|
182
184
|
});
|
|
183
185
|
};
|
|
184
186
|
var FileUpload = (props) => {
|
|
187
|
+
const $ = c(15);
|
|
185
188
|
if ("formControl" in props && props.formControl) {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
189
|
+
let formControl;
|
|
190
|
+
let innerProps;
|
|
191
|
+
let ref;
|
|
192
|
+
if ($[0] !== props) {
|
|
193
|
+
({formControl, ref, ...innerProps} = props);
|
|
194
|
+
$[0] = props;
|
|
195
|
+
$[1] = formControl;
|
|
196
|
+
$[2] = innerProps;
|
|
197
|
+
$[3] = ref;
|
|
198
|
+
} else {
|
|
199
|
+
formControl = $[1];
|
|
200
|
+
innerProps = $[2];
|
|
201
|
+
ref = $[3];
|
|
202
|
+
}
|
|
203
|
+
let t0;
|
|
204
|
+
if ($[4] !== innerProps || $[5] !== props.error || $[6] !== props.isDisabled || $[7] !== ref) {
|
|
205
|
+
t0 = (t1) => {
|
|
206
|
+
const { field, fieldState: t2 } = t1;
|
|
207
|
+
const { error } = t2;
|
|
208
|
+
return /* @__PURE__ */ jsx(FileUploadBase, {
|
|
209
|
+
...innerProps,
|
|
210
|
+
ref: mergeRefs(ref, field.ref),
|
|
211
|
+
value: field.value,
|
|
212
|
+
onChange: field.onChange,
|
|
213
|
+
isDisabled: field.disabled || props.isDisabled,
|
|
214
|
+
error: props.error ?? error?.message
|
|
215
|
+
});
|
|
216
|
+
};
|
|
217
|
+
$[4] = innerProps;
|
|
218
|
+
$[5] = props.error;
|
|
219
|
+
$[6] = props.isDisabled;
|
|
220
|
+
$[7] = ref;
|
|
221
|
+
$[8] = t0;
|
|
222
|
+
} else t0 = $[8];
|
|
223
|
+
let t1;
|
|
224
|
+
if ($[9] !== formControl.control || $[10] !== formControl.name || $[11] !== t0) {
|
|
225
|
+
t1 = /* @__PURE__ */ jsx(Controller, {
|
|
226
|
+
control: formControl.control,
|
|
227
|
+
name: formControl.name,
|
|
228
|
+
render: t0
|
|
229
|
+
});
|
|
230
|
+
$[9] = formControl.control;
|
|
231
|
+
$[10] = formControl.name;
|
|
232
|
+
$[11] = t0;
|
|
233
|
+
$[12] = t1;
|
|
234
|
+
} else t1 = $[12];
|
|
235
|
+
return t1;
|
|
199
236
|
}
|
|
200
|
-
|
|
237
|
+
let t0;
|
|
238
|
+
if ($[13] !== props) {
|
|
239
|
+
t0 = /* @__PURE__ */ jsx(FileUploadBase, { ...props });
|
|
240
|
+
$[13] = props;
|
|
241
|
+
$[14] = t0;
|
|
242
|
+
} else t0 = $[14];
|
|
243
|
+
return t0;
|
|
201
244
|
};
|
|
202
245
|
//#endregion
|
|
203
246
|
export { FileUpload };
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import { FileUpload } from "./FileUpload.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
//#region src/components/inputs/File/FileUploadContainer.tsx
|
|
4
5
|
var FileUploadContainer = (props) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
const $ = c(2);
|
|
7
|
+
let t0;
|
|
8
|
+
if ($[0] !== props) {
|
|
9
|
+
t0 = /* @__PURE__ */ jsx(FileUpload, {
|
|
10
|
+
label: "",
|
|
11
|
+
hideLabel: true,
|
|
12
|
+
variant: "vertical",
|
|
13
|
+
as: "button",
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
$[0] = props;
|
|
17
|
+
$[1] = t0;
|
|
18
|
+
} else t0 = $[1];
|
|
19
|
+
return t0;
|
|
12
20
|
};
|
|
13
21
|
//#endregion
|
|
14
22
|
export { FileUploadContainer };
|