@povio/ui 2.1.14 → 2.1.15
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 +74 -0
- package/dist/AclGuard.js +12 -0
- package/dist/ActionModal.js +51 -0
- package/dist/Alert.js +46 -0
- package/dist/AlignCenter.js +13 -0
- package/dist/AlignLeft.js +13 -0
- package/dist/AlignLeftRight.js +13 -0
- package/dist/AlignRight.js +13 -0
- package/dist/ArrowDropDown.js +13 -0
- package/dist/ArrowDropUp.js +13 -0
- package/dist/ArrowLeft.js +13 -0
- package/dist/ArrowRight.js +13 -0
- package/dist/AuthGuard.js +22 -0
- package/dist/Autocomplete.js +28 -0
- package/dist/Bold.js +13 -0
- package/dist/BottomSheet.js +191 -0
- package/dist/BulletedList.js +13 -0
- package/dist/Button.js +54 -0
- package/dist/ButtonContent.js +28 -0
- package/dist/Calendar.js +15 -0
- package/dist/Calendar2.js +54 -0
- package/dist/CalendarCell.js +130 -0
- package/dist/CalendarGrid.js +50 -0
- package/dist/CalendarHeader.js +75 -0
- package/dist/CalendarSelectHeader.js +170 -0
- package/dist/Can.js +13 -0
- package/dist/CellText.js +13 -0
- package/dist/Check.js +15 -0
- package/dist/CheckCircle.js +13 -0
- package/dist/CheckContent.js +16 -0
- package/dist/Checkbox.js +61 -0
- package/dist/CheckboxCheckmark.js +16 -0
- package/dist/CheckboxCheckmark2.js +25 -0
- package/dist/CheckboxIndeterminate.js +16 -0
- package/dist/ChevronDown.js +15 -0
- package/dist/ChevronLeft.js +15 -0
- package/dist/ChevronRight.js +15 -0
- package/dist/ChevronUp.js +15 -0
- package/dist/ChevronsLeft.js +15 -0
- package/dist/ChevronsRight.js +15 -0
- package/dist/Clock.js +13 -0
- package/dist/Close.js +13 -0
- package/dist/ColorPicker.js +16 -0
- package/dist/ColorPickerDropdown.js +51 -0
- package/dist/ColumnConfig.js +81 -0
- package/dist/DateField.js +89 -0
- package/dist/DatePicker.js +191 -0
- package/dist/DatePickerInput.js +158 -0
- package/dist/DateRangePicker.js +601 -0
- package/dist/DateSegmentItem.js +29 -0
- package/dist/DateTime.js +18 -0
- package/dist/DateTimeDialog.js +49 -0
- package/dist/DateTimeDialogFooter.js +25 -0
- package/dist/DateTimePicker.js +200 -0
- package/dist/Drag.js +13 -0
- package/dist/Drawer.js +43 -0
- package/dist/File.js +15 -0
- package/dist/FileCard.js +50 -0
- package/dist/FileCardList.js +17 -0
- package/dist/FileUpload.js +189 -0
- package/dist/FileUploadContainer.js +12 -0
- package/dist/FileUploadContent.js +61 -0
- package/dist/FileUploadContentEmpty.js +54 -0
- package/dist/FileUploadContentError.js +109 -0
- package/dist/FileUploadContentFilled.js +112 -0
- package/dist/FileUploadContentLoading.js +76 -0
- package/dist/Form.js +42 -0
- package/dist/FormField.js +35 -0
- package/dist/FormFieldError.js +11 -0
- package/dist/FormFieldHeader.js +36 -0
- package/dist/FormFieldHeaderClose.js +15 -0
- package/dist/FormFieldLabel.js +32 -0
- package/dist/HeaderText.js +10 -0
- package/dist/Highlight.js +13 -0
- package/dist/HighlightOn.js +19 -0
- package/dist/HyperlinkAction.js +70 -0
- package/dist/IconButton.js +12 -0
- package/dist/InfiniteTable.js +31 -0
- package/dist/Info.js +18 -0
- package/dist/InlineIconButton.js +13 -0
- package/dist/InputClear.js +19 -0
- package/dist/InputContent.js +94 -0
- package/dist/InputItem.js +54 -0
- package/dist/InputUpload.js +111 -0
- package/dist/InputUploadContent.js +52 -0
- package/dist/InputUploadFilled.js +26 -0
- package/dist/Inputs.js +15 -0
- package/dist/Italic.js +13 -0
- package/dist/Link.js +13 -0
- package/dist/Link2.js +19 -0
- package/dist/Loader.js +32 -0
- package/dist/Menu.js +13 -0
- package/dist/Menu2.js +9 -0
- package/dist/MenuDesktop.js +53 -0
- package/dist/MenuItem.js +21 -0
- package/dist/MenuMobile.js +64 -0
- package/dist/MenuPopover.js +30 -0
- package/dist/Modal.js +49 -0
- package/dist/MonthPicker.js +56 -0
- package/dist/NumberInput.js +132 -0
- package/dist/NumberedList.js +13 -0
- package/dist/PaginatedTable.js +26 -0
- package/dist/Pagination.js +43 -0
- package/dist/PaginationList.js +105 -0
- package/dist/PasswordInput.js +21 -0
- package/dist/PillButton.js +37 -0
- package/dist/PointerHorizontal.js +13 -0
- package/dist/PointerVertical.js +13 -0
- package/dist/ProgressBar.js +25 -0
- package/dist/QueryAutocomplete.js +18 -0
- package/dist/RadioGroup.js +81 -0
- package/dist/RangeCalendar.js +96 -0
- package/dist/ResponsivePopover.js +41 -0
- package/dist/Segment.js +82 -0
- package/dist/SegmentItem.js +23 -0
- package/dist/Select.js +24 -0
- package/dist/SelectBase.js +28 -0
- package/dist/SelectDesktop.js +147 -0
- package/dist/SelectInput.js +159 -0
- package/dist/SelectInputTags.js +29 -0
- package/dist/SelectListBox.js +73 -0
- package/dist/SelectListBoxItem.js +48 -0
- package/dist/SelectListBoxItemSelectAll.js +31 -0
- package/dist/SelectListBoxLoadingItem.js +41 -0
- package/dist/SelectListBoxSelectionBar.js +25 -0
- package/dist/SelectMobile.js +111 -0
- package/dist/Send.js +15 -0
- package/dist/Slider.js +93 -0
- package/dist/SplitButton.js +36 -0
- package/dist/Strikethrough.js +13 -0
- package/dist/Table.js +248 -0
- package/dist/Tag.js +42 -0
- package/dist/TextAlignSelect.js +44 -0
- package/dist/TextArea.js +120 -0
- package/dist/TextButton.js +13 -0
- package/dist/TextColor.js +16 -0
- package/dist/TextColorSelect.js +22 -0
- package/dist/TextEditor.js +143 -0
- package/dist/TextEditorToolbar.js +30 -0
- package/dist/TextHighlightSelect.js +24 -0
- package/dist/TextInput.js +125 -0
- package/dist/TextListActions.js +42 -0
- package/dist/TextMarksActions.js +67 -0
- package/dist/TextStyleSelect.js +52 -0
- package/dist/TimeField.js +17 -0
- package/dist/TimePicker.js +158 -0
- package/dist/TimePickerForm.js +158 -0
- package/dist/TimePickerInput.js +92 -0
- package/dist/Toast.js +58 -0
- package/dist/Today.js +13 -0
- package/dist/Toggle.js +60 -0
- package/dist/ToggleButton.js +13 -0
- package/dist/Tooltip.js +49 -0
- package/dist/TooltipEllipsis.js +18 -0
- package/dist/TooltipWrapper.js +19 -0
- package/dist/Typography.js +14 -0
- package/dist/Underlined.js +15 -0
- package/dist/Upload.js +16 -0
- package/dist/View.js +13 -0
- package/dist/ViewOff.js +13 -0
- package/dist/WarningFilled.js +15 -0
- package/dist/YearPicker.js +64 -0
- package/dist/ability.context.js +35 -0
- package/dist/alert.cva.js +62 -0
- package/dist/array.utils.js +8 -0
- package/dist/auth.context.js +37 -0
- package/dist/auth.js +6 -12
- package/dist/button.cva.js +656 -0
- package/dist/buttonContent.cva.js +10 -0
- package/dist/checkbox.cva.js +47 -0
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.d.ts +2 -2
- package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +5 -0
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +3 -1
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +3 -1
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +3 -1
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/shared/DateField.d.ts +1 -0
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +8 -2
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +2 -1
- package/dist/components/inputs/File/fileUpload.types.d.ts +1 -0
- package/dist/components/inputs/FormField/FormField.d.ts +4 -1
- package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +4 -2
- package/dist/components/inputs/Input/TextArea/TextArea.d.ts +1 -0
- package/dist/components/inputs/Input/TextInput/TextInput.d.ts +2 -1
- package/dist/components/inputs/Input/shared/InputContent.d.ts +4 -3
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +3 -0
- package/dist/components/inputs/TextEditor/TextEditor.d.ts +1 -0
- package/dist/components/inputs/Toggle/Toggle.d.ts +2 -0
- package/dist/components/inputs/shared/CheckContent.d.ts +2 -1
- package/dist/compoundMapper.js +11 -0
- package/dist/config/uiStyle.context.d.ts +2 -1
- package/dist/confirmation.context.js +78 -0
- package/dist/date-time.utils.js +50 -0
- package/dist/date.utils.js +17 -0
- package/dist/dom.utils.js +17 -0
- package/dist/dynamicColumns.js +272 -0
- package/dist/dynamicInputs.js +186 -0
- package/dist/error-handling.js +87 -0
- package/dist/file.utils.js +43 -0
- package/dist/fileUpload.cva.js +49 -0
- package/dist/i18n.js +8 -0
- package/dist/index.js +136 -278
- package/dist/input.cva.js +210 -0
- package/dist/inputUploadButton.cva.js +27 -0
- package/dist/isEqual.js +57 -0
- package/dist/label.cva.js +104 -0
- package/dist/link.context.js +17 -0
- package/dist/link.cva.js +7 -0
- package/dist/loader.cva.js +16 -0
- package/dist/logger.js +17 -0
- package/dist/menu.cva.js +27 -0
- package/dist/minWidth.cva.js +9 -0
- package/dist/modal.cva.js +31 -0
- package/dist/object.utils.js +36 -0
- package/dist/outline.clsx.js +4 -0
- package/dist/pillButton.cva.js +254 -0
- package/dist/queries.utils.js +7 -0
- package/dist/radio.cva.js +42 -0
- package/dist/react.js +6 -0
- package/dist/rest-interceptor.js +22 -0
- package/dist/rest.utils.js +31 -0
- package/dist/rolldown_runtime.js +16 -0
- package/dist/router.context.js +37 -0
- package/dist/routing.utils.js +9 -0
- package/dist/segment.cva.js +25 -0
- package/dist/select.context.js +190 -0
- package/dist/status.cva.js +57 -0
- package/dist/string.utils.js +10 -0
- package/dist/table.cva.js +35 -0
- package/dist/tag.cva.js +50 -0
- package/dist/text-editor.js +2 -4
- package/dist/textEditor.types.js +38 -0
- package/dist/theme.context.js +65 -0
- package/dist/toast.cva.js +158 -0
- package/dist/toggle.cva.js +27 -0
- package/dist/tooltip.cva.js +30 -0
- package/dist/translation.js +147 -0
- package/dist/translation2.js +145 -0
- package/dist/typography.cva.js +124 -0
- package/dist/uiConfig.context.js +58 -0
- package/dist/uiStyle.context.js +16 -0
- package/dist/useAutosave.js +62 -0
- package/dist/useBreakpoint.js +28 -0
- package/dist/useDebounceCallback.js +23 -0
- package/dist/useDeepCompare.js +21 -0
- package/dist/useFilters.js +121 -0
- package/dist/useForm.js +12 -0
- package/dist/useFormAutosave.js +52 -0
- package/dist/useIntersectionObserver.js +23 -0
- package/dist/useLocalStorage.js +35 -0
- package/dist/useLongPressRepeat.js +27 -0
- package/dist/usePagination.js +26 -0
- package/dist/useScrollableListBox.js +24 -0
- package/dist/useSelectItems.js +82 -0
- package/dist/useSorting.js +34 -0
- package/dist/useStateAndRef.js +15 -0
- package/dist/useTableColumnConfig.js +38 -0
- package/dist/useTableNav.js +279 -0
- package/dist/useToast.js +63 -0
- package/dist/useTranslationMemo.js +10 -0
- package/dist/zod.utils.js +17 -0
- package/package.json +14 -14
- package/dist/assets/icons/AlignCenter.js +0 -21
- package/dist/assets/icons/AlignLeft.js +0 -21
- package/dist/assets/icons/AlignLeftRight.js +0 -21
- package/dist/assets/icons/AlignRight.js +0 -21
- package/dist/assets/icons/ArrowDropDown.js +0 -21
- package/dist/assets/icons/ArrowDropUp.js +0 -21
- package/dist/assets/icons/ArrowLeft.js +0 -21
- package/dist/assets/icons/ArrowRight.js +0 -21
- package/dist/assets/icons/Bold.js +0 -21
- package/dist/assets/icons/BulletedList.js +0 -21
- package/dist/assets/icons/Calendar.js +0 -23
- package/dist/assets/icons/Check.js +0 -23
- package/dist/assets/icons/CheckCircle.js +0 -21
- package/dist/assets/icons/CheckboxCheckmark.js +0 -24
- package/dist/assets/icons/CheckboxIndeterminate.js +0 -24
- package/dist/assets/icons/ChevronDown.js +0 -23
- package/dist/assets/icons/ChevronLeft.js +0 -23
- package/dist/assets/icons/ChevronRight.js +0 -23
- package/dist/assets/icons/ChevronUp.js +0 -23
- package/dist/assets/icons/ChevronsLeft.js +0 -23
- package/dist/assets/icons/ChevronsRight.js +0 -23
- package/dist/assets/icons/Clock.js +0 -21
- package/dist/assets/icons/Close.js +0 -21
- package/dist/assets/icons/DateTime.js +0 -32
- package/dist/assets/icons/Drag.js +0 -21
- package/dist/assets/icons/File.js +0 -23
- package/dist/assets/icons/Highlight.js +0 -21
- package/dist/assets/icons/HighlightOn.js +0 -30
- package/dist/assets/icons/Info.js +0 -32
- package/dist/assets/icons/Italic.js +0 -21
- package/dist/assets/icons/Link.js +0 -21
- package/dist/assets/icons/Menu.js +0 -21
- package/dist/assets/icons/NumberedList.js +0 -21
- package/dist/assets/icons/PointerHorizontal.js +0 -21
- package/dist/assets/icons/PointerVertical.js +0 -21
- package/dist/assets/icons/Send.js +0 -23
- package/dist/assets/icons/Strikethrough.js +0 -21
- package/dist/assets/icons/TextColor.js +0 -30
- package/dist/assets/icons/Today.js +0 -21
- package/dist/assets/icons/Underlined.js +0 -23
- package/dist/assets/icons/Upload.js +0 -30
- package/dist/assets/icons/View.js +0 -18
- package/dist/assets/icons/ViewOff.js +0 -18
- package/dist/assets/icons/WarningFilled.js +0 -23
- package/dist/assets/locales/en/translation.json.js +0 -14
- package/dist/assets/locales/sl/translation.json.js +0 -14
- package/dist/components/Menu/Menu.js +0 -14
- package/dist/components/Menu/MenuDesktop.js +0 -74
- package/dist/components/Menu/MenuItem.js +0 -27
- package/dist/components/Menu/MenuMobile.js +0 -83
- package/dist/components/Menu/MenuPopover.js +0 -43
- package/dist/components/Menu/menu.cva.js +0 -45
- package/dist/components/buttons/Button/Button.js +0 -73
- package/dist/components/buttons/Button/button.cva.js +0 -666
- package/dist/components/buttons/IconButton/IconButton.js +0 -17
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +0 -18
- package/dist/components/buttons/PillButton/PillButton.js +0 -44
- package/dist/components/buttons/PillButton/pillButton.cva.js +0 -268
- package/dist/components/buttons/SplitButton/SplitButton.js +0 -65
- package/dist/components/buttons/TextButton/TextButton.js +0 -18
- package/dist/components/buttons/ToggleButton/ToggleButton.js +0 -21
- package/dist/components/buttons/shared/ButtonContent.js +0 -53
- package/dist/components/buttons/shared/buttonContent.cva.js +0 -16
- package/dist/components/inputs/Checkbox/Checkbox.js +0 -81
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +0 -32
- package/dist/components/inputs/Checkbox/checkbox.cva.js +0 -51
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +0 -251
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +0 -689
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +0 -265
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +0 -217
- package/dist/components/inputs/DateTime/shared/Calendar.js +0 -85
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +0 -160
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +0 -67
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +0 -89
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +0 -203
- package/dist/components/inputs/DateTime/shared/DateField.js +0 -77
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +0 -206
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +0 -55
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +0 -76
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +0 -47
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +0 -82
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +0 -133
- package/dist/components/inputs/DateTime/shared/TimeField.js +0 -26
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +0 -186
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +0 -125
- package/dist/components/inputs/DateTime/shared/YearPicker.js +0 -89
- package/dist/components/inputs/File/FileUpload.js +0 -257
- package/dist/components/inputs/File/FileUploadContainer.js +0 -17
- package/dist/components/inputs/File/InputUpload.js +0 -174
- package/dist/components/inputs/File/shared/FileCard.js +0 -67
- package/dist/components/inputs/File/shared/FileCardList.js +0 -20
- package/dist/components/inputs/File/shared/FileUploadContent.js +0 -92
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +0 -92
- package/dist/components/inputs/File/shared/FileUploadContentError.js +0 -167
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +0 -173
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +0 -128
- package/dist/components/inputs/File/shared/InputUploadContent.js +0 -73
- package/dist/components/inputs/File/shared/InputUploadFilled.js +0 -45
- package/dist/components/inputs/File/shared/ProgressBar.js +0 -42
- package/dist/components/inputs/File/shared/fileUpload.cva.js +0 -58
- package/dist/components/inputs/File/shared/inputUploadButton.cva.js +0 -49
- package/dist/components/inputs/FormField/FormField.js +0 -54
- package/dist/components/inputs/FormField/FormFieldError.js +0 -16
- package/dist/components/inputs/FormField/FormFieldHeader.js +0 -57
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +0 -20
- package/dist/components/inputs/FormField/FormFieldLabel.js +0 -37
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +0 -166
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +0 -26
- package/dist/components/inputs/Input/TextArea/TextArea.js +0 -155
- package/dist/components/inputs/Input/TextInput/TextInput.js +0 -162
- package/dist/components/inputs/Input/shared/InputContent.js +0 -114
- package/dist/components/inputs/Inputs/Form.js +0 -68
- package/dist/components/inputs/Inputs/InputItem.js +0 -61
- package/dist/components/inputs/Inputs/Inputs.js +0 -32
- package/dist/components/inputs/RadioGroup/RadioGroup.js +0 -103
- package/dist/components/inputs/RadioGroup/radio.cva.js +0 -57
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +0 -39
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +0 -25
- package/dist/components/inputs/Selection/Select/Select.js +0 -32
- package/dist/components/inputs/Selection/shared/SelectBase.js +0 -27
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +0 -223
- package/dist/components/inputs/Selection/shared/SelectInput.js +0 -234
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +0 -49
- package/dist/components/inputs/Selection/shared/SelectListBox.js +0 -127
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +0 -78
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +0 -45
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +0 -47
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +0 -42
- package/dist/components/inputs/Selection/shared/SelectMobile.js +0 -165
- package/dist/components/inputs/Selection/shared/select.context.js +0 -244
- package/dist/components/inputs/Selection/shared/useSelectItems.js +0 -94
- package/dist/components/inputs/Slider/Slider.js +0 -137
- package/dist/components/inputs/TextEditor/TextEditor.js +0 -223
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +0 -34
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +0 -80
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +0 -92
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +0 -56
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +0 -33
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +0 -31
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +0 -37
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +0 -51
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +0 -73
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +0 -61
- package/dist/components/inputs/TextEditor/textEditor.types.js +0 -40
- package/dist/components/inputs/Toggle/Toggle.js +0 -65
- package/dist/components/inputs/Toggle/toggle.cva.js +0 -44
- package/dist/components/inputs/shared/CheckContent.js +0 -22
- package/dist/components/inputs/shared/InputClear.js +0 -27
- package/dist/components/inputs/shared/TooltipWrapper.js +0 -23
- package/dist/components/inputs/shared/input.cva.js +0 -174
- package/dist/components/inputs/shared/label.cva.js +0 -128
- package/dist/components/outline.clsx.js +0 -11
- package/dist/components/overlays/ActionModal/ActionModal.js +0 -80
- package/dist/components/overlays/BottomSheet/BottomSheet.js +0 -261
- package/dist/components/overlays/Drawer/Drawer.js +0 -84
- package/dist/components/overlays/Modal/Modal.js +0 -64
- package/dist/components/overlays/Modal/modal.cva.js +0 -53
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +0 -71
- package/dist/components/overlays/Tooltip/Tooltip.js +0 -92
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +0 -27
- package/dist/components/overlays/Tooltip/tooltip.cva.js +0 -60
- package/dist/components/segment/Segment.js +0 -118
- package/dist/components/segment/SegmentItem.js +0 -35
- package/dist/components/segment/segment.cva.js +0 -35
- package/dist/components/shared/pagination/Pagination.js +0 -75
- package/dist/components/shared/pagination/PaginationList.js +0 -145
- package/dist/components/shared/pagination/minWidth.cva.js +0 -15
- package/dist/components/status/Alert/Alert.js +0 -41
- package/dist/components/status/Alert/alert.cva.js +0 -64
- package/dist/components/status/Loader/Loader.js +0 -37
- package/dist/components/status/Loader/loader.cva.js +0 -27
- package/dist/components/status/Toast/Toast.js +0 -65
- package/dist/components/status/Toast/toast.cva.js +0 -150
- package/dist/components/status/Toast/useToast.js +0 -94
- package/dist/components/status/shared/status.cva.js +0 -62
- package/dist/components/table/CellText.js +0 -18
- package/dist/components/table/ColumnConfig.js +0 -124
- package/dist/components/table/HeaderText.js +0 -15
- package/dist/components/table/InfiniteTable.js +0 -40
- package/dist/components/table/PaginatedTable.js +0 -33
- package/dist/components/table/Table.js +0 -370
- package/dist/components/table/table.cva.js +0 -63
- package/dist/components/text/Link/Link.js +0 -24
- package/dist/components/text/Link/link.cva.js +0 -18
- package/dist/components/text/Tag/Tag.js +0 -49
- package/dist/components/text/Tag/tag.cva.js +0 -59
- package/dist/components/text/Typography/Typography.js +0 -22
- package/dist/components/text/Typography/typography.cva.js +0 -100
- package/dist/config/confirmation.context.js +0 -107
- package/dist/config/i18n.js +0 -15
- package/dist/config/link.context.js +0 -19
- package/dist/config/router.context.js +0 -39
- package/dist/config/theme.context.js +0 -73
- package/dist/config/uiConfig.context.js +0 -69
- package/dist/config/uiStyle.context.js +0 -16
- package/dist/helpers/dynamicColumns.js +0 -359
- package/dist/helpers/dynamicInputs.js +0 -212
- package/dist/hooks/useAutosave.js +0 -83
- package/dist/hooks/useBreakpoint.js +0 -33
- package/dist/hooks/useDebounceCallback.js +0 -29
- package/dist/hooks/useDeepCompare.js +0 -25
- package/dist/hooks/useFilters.js +0 -160
- package/dist/hooks/useForm.js +0 -22
- package/dist/hooks/useFormAutosave.js +0 -67
- package/dist/hooks/useIntersectionObserver.js +0 -27
- package/dist/hooks/useLocalStorage.js +0 -54
- package/dist/hooks/useLongPressRepeat.js +0 -33
- package/dist/hooks/usePagination.js +0 -35
- package/dist/hooks/useScrollableListBox.js +0 -30
- package/dist/hooks/useSorting.js +0 -32
- package/dist/hooks/useStateAndRef.js +0 -17
- package/dist/hooks/useTableColumnConfig.js +0 -63
- package/dist/hooks/useTableNav.js +0 -394
- package/dist/hooks/useTranslationMemo.js +0 -14
- package/dist/utils/array.utils.js +0 -12
- package/dist/utils/compoundMapper.js +0 -14
- package/dist/utils/date-time.utils.js +0 -77
- package/dist/utils/date.utils.js +0 -23
- package/dist/utils/dom.utils.js +0 -13
- package/dist/utils/file.utils.js +0 -63
- package/dist/utils/isEqual.js +0 -95
- package/dist/utils/logger.js +0 -19
- package/dist/utils/object.utils.js +0 -53
- package/dist/utils/queries.utils.js +0 -9
- package/dist/utils/rest.utils.js +0 -51
- package/dist/utils/routing.utils.js +0 -15
- package/dist/utils/string.utils.js +0 -12
- package/dist/utils/vendor/acl/AclGuard.js +0 -14
- package/dist/utils/vendor/acl/Can.js +0 -18
- package/dist/utils/vendor/acl/ability.context.js +0 -37
- package/dist/utils/vendor/auth/AuthGuard.js +0 -26
- package/dist/utils/vendor/auth/auth.context.js +0 -41
- package/dist/utils/vendor/error-handling.js +0 -119
- package/dist/utils/vendor/rest-interceptor.js +0 -21
- package/dist/utils/zod.utils.js +0 -21
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { clsx } from "clsx";
|
|
3
|
-
import { FileTrigger } from "react-aria-components";
|
|
4
|
-
import { useTranslation } from "react-i18next";
|
|
5
|
-
import { CheckCircleIcon } from "../../../../assets/icons/CheckCircle.js";
|
|
6
|
-
import { CloseIcon } from "../../../../assets/icons/Close.js";
|
|
7
|
-
import { Button } from "../../../buttons/Button/Button.js";
|
|
8
|
-
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
9
|
-
import { TextButton } from "../../../buttons/TextButton/TextButton.js";
|
|
10
|
-
import { Typography } from "../../../text/Typography/Typography.js";
|
|
11
|
-
import { ns } from "../../../../config/i18n.js";
|
|
12
|
-
import { FileUtils } from "../../../../utils/file.utils.js";
|
|
13
|
-
const FileUploadContentFilled = ({
|
|
14
|
-
variant,
|
|
15
|
-
as,
|
|
16
|
-
isDisabled,
|
|
17
|
-
state,
|
|
18
|
-
browseText,
|
|
19
|
-
fileTriggerProps,
|
|
20
|
-
removeWithIcon = false,
|
|
21
|
-
singleFile,
|
|
22
|
-
onRemove
|
|
23
|
-
}) => {
|
|
24
|
-
const { t } = useTranslation(ns);
|
|
25
|
-
return /* @__PURE__ */ jsx("div", { className: clsx("flex w-full flex-fill flex-col items-start"), children: /* @__PURE__ */ jsxs(
|
|
26
|
-
"div",
|
|
27
|
-
{
|
|
28
|
-
className: clsx("flex w-full items-center", {
|
|
29
|
-
"flex-row gap-file-upload-content-gap-left-to-right-content": variant === "horizontal",
|
|
30
|
-
"flex-col": variant === "vertical",
|
|
31
|
-
"gap-file-upload-content-gap-content-to-button": variant === "vertical" && as === "button",
|
|
32
|
-
"gap-file-upload-content-gap-text-to-text": variant === "vertical" && as === "link"
|
|
33
|
-
}),
|
|
34
|
-
children: [
|
|
35
|
-
/* @__PURE__ */ jsxs(
|
|
36
|
-
"div",
|
|
37
|
-
{
|
|
38
|
-
className: clsx("flex min-w-0 max-w-full grow items-center gap-file-upload-content-gap-icon-to-content", {
|
|
39
|
-
"flex-col": variant === "vertical",
|
|
40
|
-
"flex-row": variant === "horizontal",
|
|
41
|
-
"opacity-50": isDisabled
|
|
42
|
-
}),
|
|
43
|
-
children: [
|
|
44
|
-
/* @__PURE__ */ jsx(CheckCircleIcon, { className: "h-6 w-6 text-text-default-1" }),
|
|
45
|
-
/* @__PURE__ */ jsxs(
|
|
46
|
-
"div",
|
|
47
|
-
{
|
|
48
|
-
className: clsx("flex flex-col gap-file-upload-content-gap-text-to-text", {
|
|
49
|
-
"max-w-full items-center": variant === "vertical",
|
|
50
|
-
"max-w-[calc(100%-32px)]": variant === "horizontal"
|
|
51
|
-
}),
|
|
52
|
-
children: [
|
|
53
|
-
/* @__PURE__ */ jsx(
|
|
54
|
-
Typography,
|
|
55
|
-
{
|
|
56
|
-
variant: "prominent-1",
|
|
57
|
-
size: "label-1",
|
|
58
|
-
as: "span",
|
|
59
|
-
className: "self-stretch truncate text-center text-text-default-1",
|
|
60
|
-
children: state.file.name
|
|
61
|
-
}
|
|
62
|
-
),
|
|
63
|
-
/* @__PURE__ */ jsx(
|
|
64
|
-
Typography,
|
|
65
|
-
{
|
|
66
|
-
variant: "default",
|
|
67
|
-
size: singleFile ? "label-2" : "label-3",
|
|
68
|
-
as: "span",
|
|
69
|
-
className: "text-text-default-2",
|
|
70
|
-
children: FileUtils.getCalculatedFileSize(state.file)
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
)
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
),
|
|
79
|
-
/* @__PURE__ */ jsx(
|
|
80
|
-
"div",
|
|
81
|
-
{
|
|
82
|
-
className: clsx("flex flex-none items-center justify-end", {
|
|
83
|
-
"flex-col": variant === "vertical" && as === "button",
|
|
84
|
-
"gap-file-upload-content-gap-text-to-text": as === "link" && variant === "vertical",
|
|
85
|
-
"gap-file-upload-content-gap-content-to-button": as === "button" && variant === "vertical",
|
|
86
|
-
"gap-file-upload-content-gap-button-to-button": variant === "horizontal"
|
|
87
|
-
}),
|
|
88
|
-
children: as === "link" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
89
|
-
fileTriggerProps && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
90
|
-
/* @__PURE__ */ jsx(FileTrigger, { ...fileTriggerProps, children: /* @__PURE__ */ jsx(
|
|
91
|
-
TextButton,
|
|
92
|
-
{
|
|
93
|
-
className: clsx("text-interactive-text-primary-idle", {
|
|
94
|
-
"[&>span>span]:font-medium!": variant === "vertical"
|
|
95
|
-
}),
|
|
96
|
-
children: browseText ?? ""
|
|
97
|
-
}
|
|
98
|
-
) }),
|
|
99
|
-
variant === "vertical" && /* @__PURE__ */ jsx(
|
|
100
|
-
Typography,
|
|
101
|
-
{
|
|
102
|
-
variant: "default",
|
|
103
|
-
size: "label-2",
|
|
104
|
-
as: "span",
|
|
105
|
-
className: "text-text-default-2",
|
|
106
|
-
children: t(($) => $.ui.fileUpload.or)
|
|
107
|
-
}
|
|
108
|
-
)
|
|
109
|
-
] }),
|
|
110
|
-
removeWithIcon ? /* @__PURE__ */ jsx(
|
|
111
|
-
InlineIconButton,
|
|
112
|
-
{
|
|
113
|
-
label: "Cancel",
|
|
114
|
-
color: "secondary",
|
|
115
|
-
onPress: () => {
|
|
116
|
-
onRemove(state.id ?? "");
|
|
117
|
-
},
|
|
118
|
-
icon: CloseIcon
|
|
119
|
-
}
|
|
120
|
-
) : /* @__PURE__ */ jsx(
|
|
121
|
-
TextButton,
|
|
122
|
-
{
|
|
123
|
-
className: clsx(
|
|
124
|
-
variant === "vertical" && "text-interactive-text-primary-idle lowercase [&>span>span]:font-medium!"
|
|
125
|
-
),
|
|
126
|
-
color: variant === "horizontal" ? "secondary" : "primary",
|
|
127
|
-
onPress: () => {
|
|
128
|
-
onRemove(state.id ?? "");
|
|
129
|
-
},
|
|
130
|
-
children: t(($) => $.ui.fileUpload.removeFile)
|
|
131
|
-
}
|
|
132
|
-
)
|
|
133
|
-
] }) : /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-file-upload-content-gap-button-to-button self-stretch", children: [
|
|
134
|
-
fileTriggerProps && /* @__PURE__ */ jsx(FileTrigger, { ...fileTriggerProps, children: /* @__PURE__ */ jsx(
|
|
135
|
-
Button,
|
|
136
|
-
{
|
|
137
|
-
variant: "outlined",
|
|
138
|
-
size: "xs",
|
|
139
|
-
width: "hug",
|
|
140
|
-
isDisabled,
|
|
141
|
-
children: browseText ?? ""
|
|
142
|
-
}
|
|
143
|
-
) }),
|
|
144
|
-
removeWithIcon ? /* @__PURE__ */ jsx(
|
|
145
|
-
InlineIconButton,
|
|
146
|
-
{
|
|
147
|
-
label: "Cancel",
|
|
148
|
-
color: "secondary",
|
|
149
|
-
onPress: () => {
|
|
150
|
-
onRemove(state.id ?? "");
|
|
151
|
-
},
|
|
152
|
-
icon: CloseIcon
|
|
153
|
-
}
|
|
154
|
-
) : /* @__PURE__ */ jsx(
|
|
155
|
-
TextButton,
|
|
156
|
-
{
|
|
157
|
-
color: "secondary",
|
|
158
|
-
onPress: () => {
|
|
159
|
-
onRemove(state.id ?? "");
|
|
160
|
-
},
|
|
161
|
-
children: t(($) => $.ui.fileUpload.removeFile)
|
|
162
|
-
}
|
|
163
|
-
)
|
|
164
|
-
] })
|
|
165
|
-
}
|
|
166
|
-
)
|
|
167
|
-
]
|
|
168
|
-
}
|
|
169
|
-
) });
|
|
170
|
-
};
|
|
171
|
-
export {
|
|
172
|
-
FileUploadContentFilled
|
|
173
|
-
};
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { clsx } from "clsx";
|
|
3
|
-
import { useTranslation } from "react-i18next";
|
|
4
|
-
import { CloseIcon } from "../../../../assets/icons/Close.js";
|
|
5
|
-
import { FileIcon } from "../../../../assets/icons/File.js";
|
|
6
|
-
import { Button } from "../../../buttons/Button/Button.js";
|
|
7
|
-
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
8
|
-
import { Typography } from "../../../text/Typography/Typography.js";
|
|
9
|
-
import { ns } from "../../../../config/i18n.js";
|
|
10
|
-
import { FileUtils } from "../../../../utils/file.utils.js";
|
|
11
|
-
import { ProgressBar } from "./ProgressBar.js";
|
|
12
|
-
const FileUploadContentLoading = ({
|
|
13
|
-
index,
|
|
14
|
-
variant,
|
|
15
|
-
as,
|
|
16
|
-
state,
|
|
17
|
-
isDisabled,
|
|
18
|
-
singleFile,
|
|
19
|
-
onCancel
|
|
20
|
-
}) => {
|
|
21
|
-
const { t } = useTranslation(ns);
|
|
22
|
-
return /* @__PURE__ */ jsxs(
|
|
23
|
-
"div",
|
|
24
|
-
{
|
|
25
|
-
className: clsx("flex w-full flex-col items-center", {
|
|
26
|
-
"flex-col": variant === "vertical",
|
|
27
|
-
"flex-row": variant === "horizontal",
|
|
28
|
-
"gap-file-upload-content-gap-content-to-button": as === "button"
|
|
29
|
-
}),
|
|
30
|
-
children: [
|
|
31
|
-
/* @__PURE__ */ jsxs(
|
|
32
|
-
"div",
|
|
33
|
-
{
|
|
34
|
-
className: clsx("flex w-full items-center justify-between", {
|
|
35
|
-
"flex-col gap-file-upload-content-gap-text-to-progress": variant === "vertical",
|
|
36
|
-
"flex-row gap-file-upload-content-gap-left-to-right-content": variant === "horizontal",
|
|
37
|
-
"opacity-50": isDisabled
|
|
38
|
-
}),
|
|
39
|
-
children: [
|
|
40
|
-
/* @__PURE__ */ jsxs(
|
|
41
|
-
"div",
|
|
42
|
-
{
|
|
43
|
-
className: clsx("flex items-center gap-file-upload-content-gap-icon-to-content", {
|
|
44
|
-
"w-full flex-col": variant === "vertical",
|
|
45
|
-
"w-1/2": variant === "horizontal"
|
|
46
|
-
}),
|
|
47
|
-
children: [
|
|
48
|
-
/* @__PURE__ */ jsx(FileIcon, { className: "h-6 w-6 text-text-default-1" }),
|
|
49
|
-
/* @__PURE__ */ jsxs(
|
|
50
|
-
"div",
|
|
51
|
-
{
|
|
52
|
-
className: clsx("flex flex-col", {
|
|
53
|
-
"max-w-full gap-file-upload-content-gap-icon-to-content text-center": variant === "vertical",
|
|
54
|
-
"max-w-[calc(100%-32px)] gap-file-upload-content-gap-text-to-text": variant === "horizontal"
|
|
55
|
-
}),
|
|
56
|
-
children: [
|
|
57
|
-
/* @__PURE__ */ jsx(
|
|
58
|
-
Typography,
|
|
59
|
-
{
|
|
60
|
-
variant: "prominent-1",
|
|
61
|
-
size: "label-1",
|
|
62
|
-
as: "span",
|
|
63
|
-
className: "self-stretch truncate text-center text-text-default-1",
|
|
64
|
-
children: state.file.name
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
/* @__PURE__ */ jsx(
|
|
68
|
-
Typography,
|
|
69
|
-
{
|
|
70
|
-
variant: "default",
|
|
71
|
-
size: singleFile ? "label-2" : "label-3",
|
|
72
|
-
as: "span",
|
|
73
|
-
className: "text-text-default-2",
|
|
74
|
-
children: FileUtils.getCalculatedFileSize(state.file)
|
|
75
|
-
}
|
|
76
|
-
)
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
)
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
),
|
|
83
|
-
/* @__PURE__ */ jsxs(
|
|
84
|
-
"div",
|
|
85
|
-
{
|
|
86
|
-
className: clsx("flex items-center gap-1", {
|
|
87
|
-
"w-1/2": variant === "horizontal",
|
|
88
|
-
"w-full": variant === "vertical"
|
|
89
|
-
}),
|
|
90
|
-
children: [
|
|
91
|
-
/* @__PURE__ */ jsx(ProgressBar, { progress: state.progress }),
|
|
92
|
-
(as === "link" || variant === "horizontal") && /* @__PURE__ */ jsx(
|
|
93
|
-
InlineIconButton,
|
|
94
|
-
{
|
|
95
|
-
label: "Cancel",
|
|
96
|
-
color: "secondary",
|
|
97
|
-
onPress: () => {
|
|
98
|
-
onCancel(index);
|
|
99
|
-
},
|
|
100
|
-
icon: CloseIcon
|
|
101
|
-
}
|
|
102
|
-
)
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
)
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
),
|
|
109
|
-
as === "button" && variant === "vertical" && /* @__PURE__ */ jsx(
|
|
110
|
-
Button,
|
|
111
|
-
{
|
|
112
|
-
variant: "outlined",
|
|
113
|
-
size: "xs",
|
|
114
|
-
color: "secondary",
|
|
115
|
-
width: "hug",
|
|
116
|
-
onPress: () => {
|
|
117
|
-
onCancel(index);
|
|
118
|
-
},
|
|
119
|
-
children: t(($) => $.ui.fileUpload.cancel)
|
|
120
|
-
}
|
|
121
|
-
)
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
);
|
|
125
|
-
};
|
|
126
|
-
export {
|
|
127
|
-
FileUploadContentLoading
|
|
128
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { clsx } from "clsx";
|
|
3
|
-
import { FileTrigger, DropZone } from "react-aria-components";
|
|
4
|
-
import { useTranslation } from "react-i18next";
|
|
5
|
-
import { UploadIcon } from "../../../../assets/icons/Upload.js";
|
|
6
|
-
import { Button } from "../../../buttons/Button/Button.js";
|
|
7
|
-
import { TextButton } from "../../../buttons/TextButton/TextButton.js";
|
|
8
|
-
import { inputSize } from "../../shared/input.cva.js";
|
|
9
|
-
import { Typography } from "../../../text/Typography/Typography.js";
|
|
10
|
-
import { ns } from "../../../../config/i18n.js";
|
|
11
|
-
import { UIStyle } from "../../../../config/uiStyle.context.js";
|
|
12
|
-
import { inputUploadButton, inputUploadDropZone } from "./inputUploadButton.cva.js";
|
|
13
|
-
const InputUploadContent = (props) => {
|
|
14
|
-
const { variant, isDisabled, error, ...rest } = props;
|
|
15
|
-
const { t } = useTranslation(ns);
|
|
16
|
-
const uiStyle = UIStyle.useConfig();
|
|
17
|
-
const inputSizeCva = uiStyle?.input?.sizeCva ?? inputSize;
|
|
18
|
-
return /* @__PURE__ */ jsx(FileTrigger, { ...rest, children: /* @__PURE__ */ jsxs(
|
|
19
|
-
"div",
|
|
20
|
-
{
|
|
21
|
-
"data-rac": "",
|
|
22
|
-
"data-disabled": isDisabled || void 0,
|
|
23
|
-
"data-invalid": !!error || void 0,
|
|
24
|
-
className: inputUploadButton({
|
|
25
|
-
variant,
|
|
26
|
-
className: "group/input-upload"
|
|
27
|
-
}),
|
|
28
|
-
children: [
|
|
29
|
-
/* @__PURE__ */ jsxs(
|
|
30
|
-
DropZone,
|
|
31
|
-
{
|
|
32
|
-
...rest,
|
|
33
|
-
isDisabled,
|
|
34
|
-
className: clsx(inputUploadDropZone({ variant }), inputSizeCva({ size: "default" })),
|
|
35
|
-
children: [
|
|
36
|
-
/* @__PURE__ */ jsx(
|
|
37
|
-
Typography,
|
|
38
|
-
{
|
|
39
|
-
variant: "default",
|
|
40
|
-
size: "label-1",
|
|
41
|
-
as: "span",
|
|
42
|
-
className: "min-w-0 flex-fill select-none truncate text-text-default-3",
|
|
43
|
-
children: t(($) => $.ui.fileUpload.emptyText)
|
|
44
|
-
}
|
|
45
|
-
),
|
|
46
|
-
variant === "nested" && /* @__PURE__ */ jsx(
|
|
47
|
-
TextButton,
|
|
48
|
-
{
|
|
49
|
-
isDisabled,
|
|
50
|
-
icon: UploadIcon,
|
|
51
|
-
children: t(($) => $.ui.fileUpload.upload)
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
),
|
|
57
|
-
variant !== "nested" && /* @__PURE__ */ jsx(
|
|
58
|
-
Button,
|
|
59
|
-
{
|
|
60
|
-
size: "s",
|
|
61
|
-
width: "hug",
|
|
62
|
-
isDisabled,
|
|
63
|
-
className: "truncate",
|
|
64
|
-
children: t(($) => $.ui.fileUpload.uploadFile)
|
|
65
|
-
}
|
|
66
|
-
)
|
|
67
|
-
]
|
|
68
|
-
}
|
|
69
|
-
) });
|
|
70
|
-
};
|
|
71
|
-
export {
|
|
72
|
-
InputUploadContent
|
|
73
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { clsx } from "clsx";
|
|
3
|
-
import { CloseIcon } from "../../../../assets/icons/Close.js";
|
|
4
|
-
import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
|
|
5
|
-
import { inputSize } from "../../shared/input.cva.js";
|
|
6
|
-
import { Typography } from "../../../text/Typography/Typography.js";
|
|
7
|
-
import { UIStyle } from "../../../../config/uiStyle.context.js";
|
|
8
|
-
const InputUploadFilled = ({ files, onRemove, isDisabled }) => {
|
|
9
|
-
const uiStyle = UIStyle.useConfig();
|
|
10
|
-
const inputSizeCva = uiStyle?.input?.sizeCva ?? inputSize;
|
|
11
|
-
return /* @__PURE__ */ jsxs(
|
|
12
|
-
"div",
|
|
13
|
-
{
|
|
14
|
-
className: clsx(
|
|
15
|
-
"flex items-center rounded-input-rounding-default border border-input-outlined-outline-idle border-solid bg-input-outlined-idle",
|
|
16
|
-
inputSizeCva({ size: "default" })
|
|
17
|
-
),
|
|
18
|
-
children: [
|
|
19
|
-
/* @__PURE__ */ jsx(
|
|
20
|
-
Typography,
|
|
21
|
-
{
|
|
22
|
-
variant: "default",
|
|
23
|
-
size: "label-1",
|
|
24
|
-
as: "span",
|
|
25
|
-
className: "flex-fill select-none truncate text-ellipsis text-text-default-1",
|
|
26
|
-
children: files.map((file) => file.name).join(", ")
|
|
27
|
-
}
|
|
28
|
-
),
|
|
29
|
-
/* @__PURE__ */ jsx(
|
|
30
|
-
InlineIconButton,
|
|
31
|
-
{
|
|
32
|
-
label: "Remove files",
|
|
33
|
-
color: "secondary",
|
|
34
|
-
icon: CloseIcon,
|
|
35
|
-
isDisabled,
|
|
36
|
-
onPress: onRemove
|
|
37
|
-
}
|
|
38
|
-
)
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
};
|
|
43
|
-
export {
|
|
44
|
-
InputUploadFilled
|
|
45
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import { Typography } from "../../../text/Typography/Typography.js";
|
|
4
|
-
const ProgressBar = ({ progress = 0, valueLabel = "trailing" }) => {
|
|
5
|
-
return /* @__PURE__ */ jsxs(
|
|
6
|
-
"div",
|
|
7
|
-
{
|
|
8
|
-
className: clsx(
|
|
9
|
-
"flex w-full items-center justify-center gap-file-upload-content-gap-progress-actions",
|
|
10
|
-
valueLabel === "leading" && "flex-row-reverse"
|
|
11
|
-
),
|
|
12
|
-
children: [
|
|
13
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-fill flex-col items-start gap-2 py-progress-height-height", children: /* @__PURE__ */ jsxs("div", { className: "relative h-1 w-full", children: [
|
|
14
|
-
/* @__PURE__ */ jsx("div", { className: "h-1 w-full shrink-0 rounded-xs bg-input-filled-idle" }),
|
|
15
|
-
/* @__PURE__ */ jsx(
|
|
16
|
-
"div",
|
|
17
|
-
{
|
|
18
|
-
className: "absolute top-0 left-0 h-1 shrink-0 rounded-xs bg-interactive-contained-primary-idle transition-all duration-300",
|
|
19
|
-
style: { width: `${progress}%` }
|
|
20
|
-
}
|
|
21
|
-
)
|
|
22
|
-
] }) }),
|
|
23
|
-
valueLabel !== "none" && /* @__PURE__ */ jsxs(
|
|
24
|
-
Typography,
|
|
25
|
-
{
|
|
26
|
-
variant: "default",
|
|
27
|
-
size: "label-2",
|
|
28
|
-
as: "span",
|
|
29
|
-
className: "text-center text-text-default-3",
|
|
30
|
-
children: [
|
|
31
|
-
progress,
|
|
32
|
-
"%"
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
ProgressBar
|
|
42
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { cva } from "class-variance-authority";
|
|
2
|
-
import { clsx } from "clsx";
|
|
3
|
-
const fileUploadDropZoneBase = cva(["relative w-full rounded-input-rounding-default"], {
|
|
4
|
-
variants: {
|
|
5
|
-
variant: {
|
|
6
|
-
vertical: ["flex-col justify-center"],
|
|
7
|
-
horizontal: ["flex-row justify-between"]
|
|
8
|
-
},
|
|
9
|
-
isContainer: {
|
|
10
|
-
true: [
|
|
11
|
-
"data-[drop-target]:before:content-['']",
|
|
12
|
-
"data-[drop-target]:before:absolute",
|
|
13
|
-
"data-[drop-target]:before:z-40",
|
|
14
|
-
"data-[drop-target]:before:width-full",
|
|
15
|
-
"data-[drop-target]:before:height-full",
|
|
16
|
-
"data-[drop-target]:before:top-0",
|
|
17
|
-
"data-[drop-target]:before:left-0",
|
|
18
|
-
"data-[drop-target]:border data-[drop-target]:border-dashed",
|
|
19
|
-
"data-[drop-target]:border-elevation-outline-default-2",
|
|
20
|
-
"data-[drop-target]:before:pointer-events-none data-[drop-target]:before:inset-0",
|
|
21
|
-
"data-[drop-target]:before:bg-elevation-fill-default-2"
|
|
22
|
-
],
|
|
23
|
-
false: [
|
|
24
|
-
"flex items-center",
|
|
25
|
-
"py-file-upload-container-height-top-bottom",
|
|
26
|
-
"px-file-upload-container-side-default",
|
|
27
|
-
"gap-gap-file-upload-content-gap-icon-to-content",
|
|
28
|
-
"border border-input-outlined-outline-idle border-dashed bg-input-outlined-idle",
|
|
29
|
-
"hover:border-elevation-outline-default-2 hover:bg-elevation-fill-default-2",
|
|
30
|
-
"invalid:border invalid:border-input-outlined-outline-error",
|
|
31
|
-
"data-[drop-target]:border-elevation-outline-default-2 data-[drop-target]:bg-elevation-fill-default-2",
|
|
32
|
-
"data-[has-files]:border-solid"
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
defaultVariants: {
|
|
37
|
-
variant: "vertical"
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
const fileUploadDropZone = (props) => {
|
|
41
|
-
const { className, ...rest } = props;
|
|
42
|
-
return clsx(fileUploadDropZoneBase(rest), className);
|
|
43
|
-
};
|
|
44
|
-
cva(["flex gap-3"], {
|
|
45
|
-
variants: {
|
|
46
|
-
variant: {
|
|
47
|
-
vertical: ["flex-col"],
|
|
48
|
-
horizontal: ["flex-row flex-wrap"]
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
defaultVariants: {
|
|
52
|
-
variant: "vertical"
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
export {
|
|
56
|
-
fileUploadDropZone,
|
|
57
|
-
fileUploadDropZoneBase
|
|
58
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { cva } from "class-variance-authority";
|
|
2
|
-
import { clsx } from "clsx";
|
|
3
|
-
const inputUploadButtonBase = cva(
|
|
4
|
-
["flex w-full items-center justify-between gap-input-gap-input-to-button-gap"],
|
|
5
|
-
{
|
|
6
|
-
variants: {
|
|
7
|
-
variant: {
|
|
8
|
-
default: [],
|
|
9
|
-
nested: []
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
defaultVariants: {
|
|
13
|
-
variant: "default"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
const inputUploadButton = (props) => {
|
|
18
|
-
const { className, ...rest } = props;
|
|
19
|
-
return clsx(inputUploadButtonBase(rest), className);
|
|
20
|
-
};
|
|
21
|
-
const inputUploadDropZone = cva(
|
|
22
|
-
[
|
|
23
|
-
"min-w-0 flex-1",
|
|
24
|
-
"flex items-center",
|
|
25
|
-
"group-invalid/input-upload:border group-invalid/input-upload:border-input-outlined-outline-error",
|
|
26
|
-
"data-[drop-target]:border-input-outlined-outline-hover",
|
|
27
|
-
"hover:border-input-outlined-outline-hover"
|
|
28
|
-
],
|
|
29
|
-
{
|
|
30
|
-
variants: {
|
|
31
|
-
variant: {
|
|
32
|
-
default: [
|
|
33
|
-
"rounded-input-rounding-default border border-input-outlined-outline-idle border-solid bg-input-outlined-idle"
|
|
34
|
-
],
|
|
35
|
-
nested: [
|
|
36
|
-
"rounded-input-rounding-default border border-input-outlined-outline-idle border-solid bg-input-outlined-idle"
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
defaultVariants: {
|
|
41
|
-
variant: "default"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
export {
|
|
46
|
-
inputUploadButton,
|
|
47
|
-
inputUploadButtonBase,
|
|
48
|
-
inputUploadDropZone
|
|
49
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { FormFieldError } from "./FormFieldError.js";
|
|
3
|
-
import { FormFieldHeader } from "./FormFieldHeader.js";
|
|
4
|
-
const FormField = ({
|
|
5
|
-
ref,
|
|
6
|
-
as,
|
|
7
|
-
label,
|
|
8
|
-
tooltipText,
|
|
9
|
-
helperText,
|
|
10
|
-
isRequired,
|
|
11
|
-
rightContent,
|
|
12
|
-
isDisabled,
|
|
13
|
-
error,
|
|
14
|
-
hideLabel,
|
|
15
|
-
headerClassName,
|
|
16
|
-
errorClassName,
|
|
17
|
-
children,
|
|
18
|
-
className,
|
|
19
|
-
labelProps,
|
|
20
|
-
isHeaderHidden
|
|
21
|
-
}) => {
|
|
22
|
-
const headerProps = {
|
|
23
|
-
label,
|
|
24
|
-
tooltipText,
|
|
25
|
-
helperText,
|
|
26
|
-
isRequired,
|
|
27
|
-
rightContent,
|
|
28
|
-
isHeaderHidden: hideLabel || isHeaderHidden,
|
|
29
|
-
isDisabled,
|
|
30
|
-
className: headerClassName,
|
|
31
|
-
labelProps
|
|
32
|
-
};
|
|
33
|
-
const errorProps = {
|
|
34
|
-
error,
|
|
35
|
-
isDisabled,
|
|
36
|
-
isHidden: isHeaderHidden,
|
|
37
|
-
className: errorClassName
|
|
38
|
-
};
|
|
39
|
-
return /* @__PURE__ */ jsxs(
|
|
40
|
-
"div",
|
|
41
|
-
{
|
|
42
|
-
ref,
|
|
43
|
-
className,
|
|
44
|
-
children: [
|
|
45
|
-
!["filter", "floating"].includes(as ?? "") && /* @__PURE__ */ jsx(FormFieldHeader, { ...headerProps }),
|
|
46
|
-
children,
|
|
47
|
-
/* @__PURE__ */ jsx(FormFieldError, { ...errorProps })
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
};
|
|
52
|
-
export {
|
|
53
|
-
FormField
|
|
54
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { clsx } from "clsx";
|
|
3
|
-
import { Typography } from "../../text/Typography/Typography.js";
|
|
4
|
-
const FormFieldError = ({ error, isDisabled, isHidden, className }) => {
|
|
5
|
-
return /* @__PURE__ */ jsx(
|
|
6
|
-
Typography,
|
|
7
|
-
{
|
|
8
|
-
className: clsx("text-text-error-1", !error || isDisabled || isHidden ? "sr-only" : "mt-1-5", className),
|
|
9
|
-
size: "label-3",
|
|
10
|
-
children: error
|
|
11
|
-
}
|
|
12
|
-
);
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
FormFieldError
|
|
16
|
-
};
|