@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,30 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
const TextColorIcon = ({ textColor, ...props }) => /* @__PURE__ */ jsxs(
|
|
3
|
-
"svg",
|
|
4
|
-
{
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
-
fill: "none",
|
|
7
|
-
viewBox: "0 0 25 24",
|
|
8
|
-
className: "fill-current",
|
|
9
|
-
...props,
|
|
10
|
-
children: [
|
|
11
|
-
/* @__PURE__ */ jsx(
|
|
12
|
-
"path",
|
|
13
|
-
{
|
|
14
|
-
d: "M7.40305 17C7.11588 17 6.8903 16.8807 6.7263 16.6423C6.56213 16.4039 6.53072 16.1495 6.63205 15.879L11.282 4.01925C11.3397 3.86292 11.4365 3.73725 11.5723 3.64225C11.7083 3.54742 11.8577 3.5 12.0205 3.5H12.651C12.8242 3.5 12.9762 3.54742 13.107 3.64225C13.2377 3.73725 13.3319 3.86292 13.3896 4.01925L18.0453 15.8655C18.1466 16.1423 18.1136 16.4007 17.9463 16.6405C17.779 16.8802 17.5517 17 17.2646 17C17.0891 17 16.9269 16.951 16.778 16.853C16.6294 16.7548 16.523 16.6179 16.4588 16.4423L15.3205 13.3808H9.34355L8.1743 16.4672C8.11013 16.6366 8.00947 16.7677 7.8723 16.8605C7.73513 16.9535 7.57872 17 7.40305 17ZM9.8703 11.9H14.7628L12.3858 5.6H12.2666L9.8703 11.9Z",
|
|
15
|
-
fill: "currentColor"
|
|
16
|
-
}
|
|
17
|
-
),
|
|
18
|
-
/* @__PURE__ */ jsx(
|
|
19
|
-
"path",
|
|
20
|
-
{
|
|
21
|
-
d: "M3.09457 23.741C3.2669 23.9135 3.48198 23.9998 3.73982 23.9998H20.9318C21.1896 23.9998 21.4047 23.9135 21.5771 23.741C21.7496 23.5687 21.8358 23.3537 21.8358 23.096V21.1728C21.8358 20.9151 21.7496 20.7001 21.5771 20.5278C21.4047 20.3553 21.1896 20.269 20.9318 20.269H3.73982C3.48198 20.269 3.2669 20.3553 3.09457 20.5278C2.92207 20.7001 2.83582 20.9151 2.83582 21.1728V23.096C2.83582 23.3537 2.92207 23.5687 3.09457 23.741Z",
|
|
22
|
-
fill: textColor || "black"
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
export {
|
|
29
|
-
TextColorIcon
|
|
30
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
const TodayIcon = (props) => /* @__PURE__ */ jsx(
|
|
3
|
-
"svg",
|
|
4
|
-
{
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
-
fill: "none",
|
|
7
|
-
viewBox: "0 0 24 24",
|
|
8
|
-
className: "fill-current",
|
|
9
|
-
...props,
|
|
10
|
-
children: /* @__PURE__ */ jsx(
|
|
11
|
-
"path",
|
|
12
|
-
{
|
|
13
|
-
fill: "currentColor",
|
|
14
|
-
d: "M9.184 9.672v-.945h5.628v.945h-2.27V16H11.45V9.672z"
|
|
15
|
-
}
|
|
16
|
-
)
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
export {
|
|
20
|
-
TodayIcon
|
|
21
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
const UnderlinedIcon = (props) => /* @__PURE__ */ jsx(
|
|
3
|
-
"svg",
|
|
4
|
-
{
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
-
fill: "none",
|
|
7
|
-
viewBox: "0 0 25 24",
|
|
8
|
-
className: "fill-current",
|
|
9
|
-
...props,
|
|
10
|
-
children: /* @__PURE__ */ jsx(
|
|
11
|
-
"path",
|
|
12
|
-
{
|
|
13
|
-
fill: "currentColor",
|
|
14
|
-
stroke: "currentColor",
|
|
15
|
-
strokeWidth: 0.2,
|
|
16
|
-
d: "M6.872 18.89q.212.21.518.21h9.892q.306 0 .518-.21.21-.212.21-.518a.7.7 0 0 0-.21-.518.7.7 0 0 0-.518-.21H7.39a.7.7 0 0 0-.518.209.7.7 0 0 0-.21.518q0 .308.21.519ZM8.353 5.155a.83.83 0 0 0-.264.615v5.851c0 1.348.371 2.434 1.123 3.248.754.815 1.8 1.218 3.124 1.218s2.37-.403 3.124-1.218c.752-.814 1.123-1.9 1.123-3.248v-5.85a.84.84 0 0 0-.255-.615.84.84 0 0 0-.613-.256.87.87 0 0 0-.62.255.83.83 0 0 0-.265.615V11.7c0 .828-.22 1.48-.65 1.968-.427.484-1.037.732-1.844.732s-1.417-.248-1.844-.732c-.43-.487-.65-1.14-.65-1.968V5.77a.84.84 0 0 0-.255-.614.84.84 0 0 0-.613-.256.87.87 0 0 0-.62.255Z"
|
|
17
|
-
}
|
|
18
|
-
)
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
export {
|
|
22
|
-
UnderlinedIcon
|
|
23
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
const UploadIcon = (props) => /* @__PURE__ */ jsxs(
|
|
3
|
-
"svg",
|
|
4
|
-
{
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
-
fill: "none",
|
|
7
|
-
viewBox: "0 0 24 24",
|
|
8
|
-
className: "fill-current",
|
|
9
|
-
...props,
|
|
10
|
-
children: [
|
|
11
|
-
/* @__PURE__ */ jsx(
|
|
12
|
-
"path",
|
|
13
|
-
{
|
|
14
|
-
fill: "currentColor",
|
|
15
|
-
d: "M19.5 13.6a.9.9 0 0 1 .9.9v3.333a2.57 2.57 0 0 1-2.567 2.567H6.167a2.57 2.57 0 0 1-2.555-2.313l-.012-.254V14.5a.9.9 0 0 1 1.796-.092l.004.092v3.333l.015.15a.766.766 0 0 0 .752.617h11.666a.766.766 0 0 0 .767-.767V14.5a.9.9 0 0 1 .9-.9"
|
|
16
|
-
}
|
|
17
|
-
),
|
|
18
|
-
/* @__PURE__ */ jsx(
|
|
19
|
-
"path",
|
|
20
|
-
{
|
|
21
|
-
fill: "currentColor",
|
|
22
|
-
d: "M12.04 3.602h.007q.078.003.151.02.006 0 .011.003c.168.04.319.127.436.247l4.158 4.158.061.069A.9.9 0 0 1 15.6 9.365l-.069-.062-2.63-2.63V14.5a.9.9 0 0 1-1.8 0V6.672l-2.63 2.63-.069.063A.901.901 0 0 1 7.196 8.03l4.167-4.167.069-.061a.9.9 0 0 1 .432-.192l.027-.004A1 1 0 0 1 12 3.6z"
|
|
23
|
-
}
|
|
24
|
-
)
|
|
25
|
-
]
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
export {
|
|
29
|
-
UploadIcon
|
|
30
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
const ViewIcon = (props) => /* @__PURE__ */ jsx(
|
|
3
|
-
"svg",
|
|
4
|
-
{
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
-
fill: "none",
|
|
7
|
-
viewBox: "0 0 24 24",
|
|
8
|
-
className: "fill-current",
|
|
9
|
-
...props,
|
|
10
|
-
children: /* @__PURE__ */ jsxs("g", { fill: "currentColor", children: [
|
|
11
|
-
/* @__PURE__ */ jsx("path", { d: "M21.338 11.788A10.43 10.43 0 0 0 12 5.124a10.43 10.43 0 0 0-9.337 6.663.63.63 0 0 0 0 .425A10.43 10.43 0 0 0 12 18.875a10.43 10.43 0 0 0 9.337-6.662.62.62 0 0 0 0-.425M12 17.624c-3.312 0-6.812-2.456-8.081-5.625C5.188 8.831 8.688 6.375 12 6.375c3.313 0 6.813 2.456 8.081 5.625-1.268 3.169-4.768 5.625-8.081 5.625" }),
|
|
12
|
-
/* @__PURE__ */ jsx("path", { d: "M12 8.25a3.75 3.75 0 1 0 0 7.5 3.75 3.75 0 0 0 0-7.5m0 6.25a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5" })
|
|
13
|
-
] })
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
export {
|
|
17
|
-
ViewIcon
|
|
18
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
const ViewOffIcon = (props) => /* @__PURE__ */ jsx(
|
|
3
|
-
"svg",
|
|
4
|
-
{
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
-
fill: "none",
|
|
7
|
-
viewBox: "0 0 24 24",
|
|
8
|
-
className: "fill-current",
|
|
9
|
-
...props,
|
|
10
|
-
children: /* @__PURE__ */ jsxs("g", { fill: "currentColor", children: [
|
|
11
|
-
/* @__PURE__ */ jsx("path", { d: "m5.275 16.069.894-.888A8.8 8.8 0 0 1 3.919 12C5.188 8.831 8.688 6.375 12 6.375a7.7 7.7 0 0 1 2.5.45l.969-.975A9.2 9.2 0 0 0 12 5.125a10.43 10.43 0 0 0-9.337 6.663.63.63 0 0 0 0 .425 10 10 0 0 0 2.612 3.856" }),
|
|
12
|
-
/* @__PURE__ */ jsx("path", { d: "M9.5 11.831a2.5 2.5 0 0 1 2.313-2.312l1.13-1.138a3.75 3.75 0 0 0-4.58 4.582zM21.338 11.788a10.25 10.25 0 0 0-3.588-4.65l3-3.007-.881-.881L3.25 19.869l.881.881 3.188-3.187A9.56 9.56 0 0 0 12 18.875a10.43 10.43 0 0 0 9.337-6.662.62.62 0 0 0 0-.425M14.5 12a2.5 2.5 0 0 1-3.75 2.15l3.4-3.4A2.5 2.5 0 0 1 14.5 12M12 17.625a8.16 8.16 0 0 1-3.75-.988l1.588-1.587a3.75 3.75 0 0 0 5.218-5.219l1.794-1.793A9.1 9.1 0 0 1 20.081 12c-1.268 3.169-4.768 5.625-8.081 5.625" })
|
|
13
|
-
] })
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
export {
|
|
17
|
-
ViewOffIcon
|
|
18
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
const WarningFilledIcon = (props) => /* @__PURE__ */ jsx(
|
|
3
|
-
"svg",
|
|
4
|
-
{
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
-
fill: "none",
|
|
7
|
-
viewBox: "0 0 24 24",
|
|
8
|
-
className: "fill-current",
|
|
9
|
-
...props,
|
|
10
|
-
children: /* @__PURE__ */ jsx(
|
|
11
|
-
"path",
|
|
12
|
-
{
|
|
13
|
-
fill: "currentColor",
|
|
14
|
-
fillRule: "evenodd",
|
|
15
|
-
d: "M12.165 3.52a2.57 2.57 0 0 1 1.94 1.091l.09.139.001.004 7.059 11.783.008.013.079.147a2.568 2.568 0 0 1-2.274 3.702H4.932a2.568 2.568 0 0 1-2.195-3.85l.007-.012L9.803 4.754l.002-.004.09-.139A2.57 2.57 0 0 1 12 3.514zM12 15.267a.9.9 0 0 0 0 1.8h.008l.092-.005a.9.9 0 0 0 0-1.79l-.092-.005zM12 8.6a.9.9 0 0 0-.9.9v3.333l.005.093a.9.9 0 0 0 1.79 0l.005-.093V9.5l-.005-.092A.9.9 0 0 0 12 8.6",
|
|
16
|
-
clipRule: "evenodd"
|
|
17
|
-
}
|
|
18
|
-
)
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
export {
|
|
22
|
-
WarningFilledIcon
|
|
23
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const ui = { "openAlt": "Open", "closeAlt": "Close", "clearAlt": "Clear", "loadingState": { "text": "Loading..." }, "select": { "closeAlt": "Close the menu", "selectAll": "Select all", "clearSelection": "Clear", "allOption": "All", "search": "Search", "clearSearch": "Clear search" }, "datePicker": { "today": "Today", "clear": "Clear", "save": "Save", "presets": { "thisWeek": "This week", "lastWeek": "Last week", "thisAndLastWeek": "This & Last week", "thisMonth": "This month", "thisAndLastMonth": "This & Last month", "thisYear": "This year", "lastYear": "Last year", "thisAndLastYear": "This & Last year", "soFar": "So far" }, "errors": { "endDateBeforeStart": "End date cannot be before start date" } }, "modal": { "closeBtn": "Close" }, "autocomplete": { "createNewBtn": "Create" }, "password": { "reveal": "Reveal password", "hide": "Hide password" }, "textEditor": { "textStyle": { "label": "Text style", "normal": "Normal text", "heading1": "Heading 1", "heading2": "Heading 2", "heading3": "Heading 3", "heading4": "Heading 4", "heading5": "Heading 5", "heading6": "Heading 6" }, "marks": { "bold": "Bold", "italic": "Italic", "underline": "Underline", "strikethrough": "Strikethrough" }, "textAlign": { "label": "Text align", "left": "Left", "center": "Center", "right": "Right", "justify": "Justify" }, "link": { "label": "Hyperlink", "apply": "Apply", "remove": "Remove", "urlLabel": "URL", "urlPlaceholder": "Enter the URL" } }, "tag": { "dismiss": "Dismiss" }, "clearInput": "Clear input", "pagination": { "nextBtn": "Next", "backBtn": "Previous", "firstBtn": "First", "lastBtn": "Last", "resultsPerPage": "Results per page" }, "confirmation": { "cancel": "Cancel", "confirm": "Confirm" }, "fileUpload": { "emptyText": "Upload file", "uploadText": "Drag & drop files here or", "browse": "Browse", "noFileUploaded": "No file uploaded", "upload": "Upload", "uploadFile": "Upload file", "or": "or", "removeFile": "Remove file", "cancel": "Cancel" }, "table": { "column": "Column", "show": "Show", "configureColumns": "Configure columns" } };
|
|
2
|
-
const zodErrors = { "required": "Required", "invalid": "Invalid", "string": { "includes": 'Must include "{{text}}"', "startsWith": 'Must start with "{{text}}"', "endsWith": 'Must end with "{{text}}"', "constraint": "Invalid {{text}}", "contains": "Must contain exactly {{count}} character(s)", "containsAtLeast": "Must contain at least {{count}} character(s)", "containsOver": "Must contain over {{count}} character(s)", "containsAtMost": "Must contain at most {{count}} character(s)", "containsUnder": "Must contain under {{count}} character(s)" }, "array": { "contains": "Array must contain exactly {{count}} element(s)", "containsAtLeast": "Array must contain at least {{count}} element(s)", "containsMoreThan": "Array must contain more than {{count}} element(s)", "containsAtMost": "Array must contain at most {{count}} element(s)", "containsLessThan": "Array must contain less than {{count}} element(s)" }, "number": { "exact": "Number must be exactly equal to {{number}}", "greaterThanOrEqual": "Number must be greater than or equal to {{number}}", "greaterThan": "Number must be greater than {{number}}", "over": "Number must be over {{number}}", "lessThanOrEqual": "Number must be less than or equal to {{number}}", "lessThan": "Number must be less than {{number}}", "multipleOf": "Number must be a multiple of {{multipleOf}}" }, "date": { "invalid": "Invalid date", "exact": "Date must be exactly equal to {{date}}", "greaterThanOrEqual": "Date must be greater than or equal to {{date}}", "greaterThan": "Date must be greater than {{date}}", "smallerThanOrEqual": "Date must be smaller than or equal to {{date}}", "smallerThan": "Date must be smaller than {{date}}" } };
|
|
3
|
-
const sharedErrors = { "dataValidation": "An error occurred while validating the data", "internalError": "An internal error occurred. This is most likely a bug on our end. Please try again later.", "networkError": "A network error occurred. Are you connected to the internet?", "canceledError": "The request was canceled.", "unknownError": "An unknown error occurred. Please try again later." };
|
|
4
|
-
const translationEN = {
|
|
5
|
-
ui,
|
|
6
|
-
zodErrors,
|
|
7
|
-
sharedErrors
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
translationEN as default,
|
|
11
|
-
sharedErrors,
|
|
12
|
-
ui,
|
|
13
|
-
zodErrors
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const ui = { "openAlt": "Odpri", "closeAlt": "Zapri", "clearAlt": "Sprazni", "loadingState": { "text": "Nalaganje..." }, "select": { "closeAlt": "Zapri meni", "selectAll": "Izberi vse", "clearSelection": "Sprazni", "allOption": "Vse", "search": "Išči", "clearSearch": "Sprazni iskanje" }, "datePicker": { "today": "Danes", "clear": "Sprazni", "save": "Shrani", "presets": { "thisWeek": "Ta teden", "lastWeek": "Prejšnji teden", "thisAndLastWeek": "Ta in prejšnji teden", "thisMonth": "Ta mesec", "thisAndLastMonth": "Ta in prejšnji mesec", "thisYear": "Ta leto", "lastYear": "Prejšnje leto", "thisAndLastYear": "Ta in prejšnje leto", "soFar": "Od začetka" }, "errors": { "endDateBeforeStart": "Datum konca ne more biti pred datumom začetka" } }, "modal": { "closeBtn": "Zapri" }, "autocomplete": { "createNewBtn": "Ustvari" }, "password": { "reveal": "Prikaži geslo", "hide": "Skrij geslo" }, "textEditor": { "textStyle": { "label": "Vrsta besedila", "normal": "Normalni tekst", "heading1": "Naslov 1", "heading2": "Naslov 2", "heading3": "Naslov 3", "heading4": "Naslov 4", "heading5": "Naslov 5", "heading6": "Naslov 6" }, "marks": { "bold": "Krepko", "italic": "Poševno", "underline": "Podčrtano", "strikethrough": "Prečrtano" }, "textAlign": { "label": "Poravnava besedila", "left": "Levo", "center": "Sredina", "right": "Desno", "justify": "Obojestransko" }, "link": { "label": "Povezava", "apply": "Ustvari", "remove": "Odstrani", "urlLabel": "URL", "urlPlaceholder": "Vnesite URL" } }, "pagination": { "nextBtn": "Naprej", "backBtn": "Nazaj", "firstBtn": "Prva", "lastBtn": "Zadnja", "resultsPerPage": "Rezultatov na stran" }, "confirmation": { "cancel": "Prekliči", "confirm": "Potrdi" }, "fileUpload": { "emptyText": "Naloži datoteko", "uploadText": "Povlecite datoteke sem ali", "browse": "Izberi", "noFileUploaded": "Ni datotek", "upload": "Naloži", "uploadFile": "Naloži datoteko", "or": "ali", "removeFile": "Odstrani datoteko", "cancel": "Prekliči" }, "table": { "column": "Stolpec", "show": "Prikaži", "configureColumns": "Nastavi stolpce" } };
|
|
2
|
-
const zodErrors = { "required": "Obvezno", "invalid": "Neveljavno", "string": { "includes": 'Mora vključevati "{{text}}"', "startsWith": 'Se mora začeti z "{{text}}"', "endsWith": 'Se mora končati z "{{text}}"', "constraint": "Neveljaven {{text}}", "contains": "Mora vsebovati natančno {{count}} znak(ov)", "containsAtLeast": "Mora vsebovati vsaj {{count}} znak(ov)", "containsOver": "Mora vsebovati več kot {{count}} znak(ov)", "containsAtMost": "Mora vsebovati največ {{count}} znak(ov)", "containsUnder": "Mora vsebovati manj kot {{count}} znak(ov)" }, "array": { "contains": "Polje mora vsebovati natančno {{count}} element(ov)", "containsAtLeast": "Polje mora vsebovati vsaj {{count}} element(ov)", "containsMoreThan": "Polje mora vsebovati več kot {{count}} element(ov)", "containsAtMost": "Polje mora vsebovati največ {{count}} element(ov)", "containsLessThan": "Polje mora vsebovati manj kot {{count}} element(ov)" }, "number": { "exact": "Število mora biti natančno enako {{number}}", "greaterThanOrEqual": "Število mora biti večje ali enako {{number}}", "greaterThan": "Število mora biti večje od {{number}}", "over": "Število mora biti nad {{number}}", "lessThanOrEqual": "Število mora biti manjše ali enako {{number}}", "lessThan": "Število mora biti manjše od {{number}}", "multipleOf": "Število mora biti večkratnik števila {{multipleOf}}" }, "date": { "invalid": "Neveljaven datum", "exact": "Datum mora biti natančno enak {{date}}", "greaterThanOrEqual": "Datum mora biti večji ali enak {{date}}", "greaterThan": "Datum mora biti večji od {{date}}", "smallerThanOrEqual": "Datum mora biti manjši ali enak {{date}}", "smallerThan": "Datum mora biti manjši od {{date}}" } };
|
|
3
|
-
const sharedErrors = { "dataValidation": "Pri preverjanju podatkov je prišlo do napake", "internalError": "Prišlo je do notranje napake. ", "networkError": "Prišlo je do napake v omrežju. ", "canceledError": "Zahteva je bila preklicana.", "unknownError": "Prišlo je do neznane napake. " };
|
|
4
|
-
const translationSL = {
|
|
5
|
-
ui,
|
|
6
|
-
zodErrors,
|
|
7
|
-
sharedErrors
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
translationSL as default,
|
|
11
|
-
sharedErrors,
|
|
12
|
-
ui,
|
|
13
|
-
zodErrors
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { MenuDesktop } from "./MenuDesktop.js";
|
|
3
|
-
import { MenuMobile } from "./MenuMobile.js";
|
|
4
|
-
import { useBreakpoint } from "../../hooks/useBreakpoint.js";
|
|
5
|
-
const Menu = (props) => {
|
|
6
|
-
const isDesktop = useBreakpoint("md");
|
|
7
|
-
if (isDesktop) {
|
|
8
|
-
return /* @__PURE__ */ jsx(MenuDesktop, { ...props });
|
|
9
|
-
}
|
|
10
|
-
return /* @__PURE__ */ jsx(MenuMobile, { ...props });
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
Menu
|
|
14
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import React, { useState, useRef } from "react";
|
|
3
|
-
import { useHover } from "react-aria";
|
|
4
|
-
import { MenuTrigger } from "react-aria-components";
|
|
5
|
-
import { MenuPopover } from "./MenuPopover.js";
|
|
6
|
-
const CLOSE_DELAY = 100;
|
|
7
|
-
const MenuDesktop = ({
|
|
8
|
-
trigger,
|
|
9
|
-
items,
|
|
10
|
-
closeDelay = CLOSE_DELAY,
|
|
11
|
-
triggerOnHover = false,
|
|
12
|
-
...props
|
|
13
|
-
}) => {
|
|
14
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
15
|
-
const timeoutRef = useRef(null);
|
|
16
|
-
const isHoveringTrigger = useRef(false);
|
|
17
|
-
const openMenu = () => {
|
|
18
|
-
if (timeoutRef.current) {
|
|
19
|
-
clearTimeout(timeoutRef.current);
|
|
20
|
-
timeoutRef.current = null;
|
|
21
|
-
}
|
|
22
|
-
setIsOpen(true);
|
|
23
|
-
};
|
|
24
|
-
const closeMenu = () => {
|
|
25
|
-
if (isHoveringTrigger.current) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
timeoutRef.current = setTimeout(() => {
|
|
29
|
-
setIsOpen(false);
|
|
30
|
-
timeoutRef.current = null;
|
|
31
|
-
}, closeDelay);
|
|
32
|
-
};
|
|
33
|
-
const { hoverProps } = useHover({
|
|
34
|
-
isDisabled: !triggerOnHover,
|
|
35
|
-
onHoverChange: (isHovering) => {
|
|
36
|
-
if (isHovering) {
|
|
37
|
-
isHoveringTrigger.current = true;
|
|
38
|
-
openMenu();
|
|
39
|
-
} else {
|
|
40
|
-
isHoveringTrigger.current = false;
|
|
41
|
-
closeMenu();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
let triggerComponent = trigger;
|
|
46
|
-
if (triggerOnHover) {
|
|
47
|
-
triggerComponent = React.cloneElement(trigger, hoverProps);
|
|
48
|
-
}
|
|
49
|
-
return /* @__PURE__ */ jsxs(
|
|
50
|
-
MenuTrigger,
|
|
51
|
-
{
|
|
52
|
-
isOpen: triggerOnHover ? isOpen : void 0,
|
|
53
|
-
onOpenChange: setIsOpen,
|
|
54
|
-
children: [
|
|
55
|
-
triggerComponent,
|
|
56
|
-
/* @__PURE__ */ jsx(
|
|
57
|
-
MenuPopover,
|
|
58
|
-
{
|
|
59
|
-
...props,
|
|
60
|
-
offset: 0,
|
|
61
|
-
items,
|
|
62
|
-
isOpen: triggerOnHover ? isOpen : void 0,
|
|
63
|
-
isNonModal: triggerOnHover,
|
|
64
|
-
onMouseEnter: triggerOnHover ? openMenu : void 0,
|
|
65
|
-
onMouseLeave: triggerOnHover ? closeMenu : void 0
|
|
66
|
-
}
|
|
67
|
-
)
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
};
|
|
72
|
-
export {
|
|
73
|
-
MenuDesktop
|
|
74
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { clsx } from "clsx";
|
|
3
|
-
import { MenuItem as MenuItem$1 } from "react-aria-components";
|
|
4
|
-
import { ArrowRightIcon } from "../../assets/icons/ArrowRight.js";
|
|
5
|
-
import { menuItemCva } from "./menu.cva.js";
|
|
6
|
-
import { UIStyle } from "../../config/uiStyle.context.js";
|
|
7
|
-
const MenuItem = ({ label, content, children, className, ...item }) => {
|
|
8
|
-
const hasSubmenu = !!children && children?.length > 0;
|
|
9
|
-
const uiStyle = UIStyle.useConfig();
|
|
10
|
-
const menuItemCva$1 = uiStyle?.menu?.itemCva ?? menuItemCva;
|
|
11
|
-
return /* @__PURE__ */ jsxs(
|
|
12
|
-
MenuItem$1,
|
|
13
|
-
{
|
|
14
|
-
...item,
|
|
15
|
-
textValue: label,
|
|
16
|
-
"aria-label": label,
|
|
17
|
-
className: clsx(menuItemCva$1({ ...item, isMobile: false }), className),
|
|
18
|
-
children: [
|
|
19
|
-
content ?? label,
|
|
20
|
-
hasSubmenu && /* @__PURE__ */ jsx(ArrowRightIcon, { className: "size-6" })
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
};
|
|
25
|
-
export {
|
|
26
|
-
MenuItem
|
|
27
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { clsx } from "clsx";
|
|
3
|
-
import { useRef, useState } from "react";
|
|
4
|
-
import { Button, Menu } from "react-aria-components";
|
|
5
|
-
import { ArrowLeftIcon } from "../../assets/icons/ArrowLeft.js";
|
|
6
|
-
import { MenuItem } from "./MenuItem.js";
|
|
7
|
-
import { menuItemCva, menuCva } from "./menu.cva.js";
|
|
8
|
-
import { BottomSheet } from "../overlays/BottomSheet/BottomSheet.js";
|
|
9
|
-
import { UIStyle } from "../../config/uiStyle.context.js";
|
|
10
|
-
const MenuMobile = ({ trigger, items, ...props }) => {
|
|
11
|
-
const uiStyle = UIStyle.useConfig();
|
|
12
|
-
const menuItemCva$1 = uiStyle?.menu?.itemCva ?? menuItemCva;
|
|
13
|
-
const menuCva$1 = uiStyle?.menu?.cva ?? menuCva;
|
|
14
|
-
const activeItemRef = useRef(null);
|
|
15
|
-
const activeItemParentsRef = useRef([]);
|
|
16
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
17
|
-
const [activeItem, setActiveItem] = useState(null);
|
|
18
|
-
const onAction = (item) => {
|
|
19
|
-
if (!item.children) {
|
|
20
|
-
activeItemRef.current = null;
|
|
21
|
-
activeItemParentsRef.current = [];
|
|
22
|
-
setActiveItem(null);
|
|
23
|
-
setIsOpen(false);
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
if (activeItemRef.current) {
|
|
27
|
-
activeItemParentsRef.current.push(activeItemRef.current);
|
|
28
|
-
}
|
|
29
|
-
activeItemRef.current = item;
|
|
30
|
-
setActiveItem(activeItemRef.current);
|
|
31
|
-
};
|
|
32
|
-
const onClose = () => {
|
|
33
|
-
if (activeItemRef.current) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
setIsOpen(false);
|
|
37
|
-
};
|
|
38
|
-
const onBack = () => {
|
|
39
|
-
activeItemRef.current = activeItemParentsRef.current.pop() ?? null;
|
|
40
|
-
setActiveItem(activeItemRef.current);
|
|
41
|
-
};
|
|
42
|
-
return /* @__PURE__ */ jsx(
|
|
43
|
-
BottomSheet,
|
|
44
|
-
{
|
|
45
|
-
isOpen,
|
|
46
|
-
onOpenChange: setIsOpen,
|
|
47
|
-
trigger,
|
|
48
|
-
isDismissable: true,
|
|
49
|
-
children: () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
50
|
-
activeItem && /* @__PURE__ */ jsxs(
|
|
51
|
-
Button,
|
|
52
|
-
{
|
|
53
|
-
className: clsx(menuItemCva$1({ ...props, isMobile: true })),
|
|
54
|
-
onPress: onBack,
|
|
55
|
-
children: [
|
|
56
|
-
/* @__PURE__ */ jsx(ArrowLeftIcon, { className: "size-6" }),
|
|
57
|
-
activeItem.label
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
),
|
|
61
|
-
/* @__PURE__ */ jsx(
|
|
62
|
-
Menu,
|
|
63
|
-
{
|
|
64
|
-
autoFocus: true,
|
|
65
|
-
onClose,
|
|
66
|
-
className: menuCva$1({ ...props, isMobile: true }),
|
|
67
|
-
children: (activeItem?.children ?? items).map((item, index) => /* @__PURE__ */ jsx(
|
|
68
|
-
MenuItem,
|
|
69
|
-
{
|
|
70
|
-
...item,
|
|
71
|
-
onAction: () => onAction(item)
|
|
72
|
-
},
|
|
73
|
-
index
|
|
74
|
-
))
|
|
75
|
-
}
|
|
76
|
-
)
|
|
77
|
-
] })
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
};
|
|
81
|
-
export {
|
|
82
|
-
MenuMobile
|
|
83
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { clsx } from "clsx";
|
|
3
|
-
import { Popover, Menu, SubmenuTrigger } from "react-aria-components";
|
|
4
|
-
import { MenuItem } from "./MenuItem.js";
|
|
5
|
-
import { menuPopoverCva, menuPopoverWrapperCva, menuCva } from "./menu.cva.js";
|
|
6
|
-
import { UIStyle } from "../../config/uiStyle.context.js";
|
|
7
|
-
const MenuPopover = ({ items, className, ...props }) => {
|
|
8
|
-
const uiStyle = UIStyle.useConfig();
|
|
9
|
-
const menuPopoverCva$1 = uiStyle?.menu?.popoverCva ?? menuPopoverCva;
|
|
10
|
-
const menuPopoverWrapperCva$1 = uiStyle?.menu?.popoverWrapperCva ?? menuPopoverWrapperCva;
|
|
11
|
-
const menuCva$1 = uiStyle?.menu?.cva ?? menuCva;
|
|
12
|
-
return /* @__PURE__ */ jsx(
|
|
13
|
-
Popover,
|
|
14
|
-
{
|
|
15
|
-
...props,
|
|
16
|
-
className: clsx(menuPopoverCva$1({ ...props }), className),
|
|
17
|
-
children: /* @__PURE__ */ jsx("div", { className: menuPopoverWrapperCva$1({ ...props }), children: /* @__PURE__ */ jsx(Menu, { className: menuCva$1({ ...props, isMobile: false }), children: items.map(
|
|
18
|
-
(item, index) => !item.children || item.children.length === 0 ? /* @__PURE__ */ jsx(
|
|
19
|
-
MenuItem,
|
|
20
|
-
{
|
|
21
|
-
...item
|
|
22
|
-
},
|
|
23
|
-
index
|
|
24
|
-
) : (
|
|
25
|
-
// oxlint-disable-next-line react/no-array-index-key
|
|
26
|
-
/* @__PURE__ */ jsxs(SubmenuTrigger, { children: [
|
|
27
|
-
/* @__PURE__ */ jsx(MenuItem, { ...item }),
|
|
28
|
-
/* @__PURE__ */ jsx(
|
|
29
|
-
MenuPopover,
|
|
30
|
-
{
|
|
31
|
-
offset: 0,
|
|
32
|
-
items: item.children
|
|
33
|
-
}
|
|
34
|
-
)
|
|
35
|
-
] }, index)
|
|
36
|
-
)
|
|
37
|
-
) }) })
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
MenuPopover
|
|
43
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { cva } from "class-variance-authority";
|
|
2
|
-
const menuCva = cva(["outline-none"], {
|
|
3
|
-
variants: {
|
|
4
|
-
isMobile: {
|
|
5
|
-
true: [],
|
|
6
|
-
false: []
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
defaultVariants: {
|
|
10
|
-
isMobile: false
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
const menuItemCva = cva(
|
|
14
|
-
[
|
|
15
|
-
"flex cursor-pointer items-center justify-between gap-list-gap-checkbox-to-label px-list-side-item py-list-height-item",
|
|
16
|
-
"border-b border-b-elevation-outline-default-1 outline-none last:border-b-0",
|
|
17
|
-
"bg-elevation-fill-default-1 text-interactive-text-secondary-idle",
|
|
18
|
-
"disabled:cursor-default disabled:text-interactive-text-secondary-disabled",
|
|
19
|
-
"hover:bg-elevation-fill-default-2 hover:text-interactive-text-secondary-hover",
|
|
20
|
-
"open:bg-interactive-contained-primary-idle open:text-interactive-contained-primary-on-idle",
|
|
21
|
-
"open:hover:bg-interactive-contained-primary-hover open:hover:text-interactive-contained-primary-on-hover",
|
|
22
|
-
"focus-visible:bg-elevation-fill-default-2 focus-visible:text-interactive-text-secondary-hover"
|
|
23
|
-
],
|
|
24
|
-
{
|
|
25
|
-
variants: {
|
|
26
|
-
isMobile: {
|
|
27
|
-
true: ["justify-start! w-full font-labels-default"],
|
|
28
|
-
false: []
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
defaultVariants: {
|
|
32
|
-
isMobile: false
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
const menuPopoverCva = cva(["pt-2 outline-none"]);
|
|
37
|
-
const menuPopoverWrapperCva = cva([
|
|
38
|
-
"overflow-hidden rounded-list-rounding-dropdown border border-elevation-outline-default-1 shadow-5 outline-none"
|
|
39
|
-
]);
|
|
40
|
-
export {
|
|
41
|
-
menuCva,
|
|
42
|
-
menuItemCva,
|
|
43
|
-
menuPopoverCva,
|
|
44
|
-
menuPopoverWrapperCva
|
|
45
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { clsx } from "clsx";
|
|
3
|
-
import { Link, ToggleButton, Button as Button$1 } from "react-aria-components";
|
|
4
|
-
import { ButtonContent } from "../shared/ButtonContent.js";
|
|
5
|
-
import { TooltipEllipsis } from "../../overlays/Tooltip/TooltipEllipsis.js";
|
|
6
|
-
import { LinkContext } from "../../../config/link.context.js";
|
|
7
|
-
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
8
|
-
import { button, buttonSize, buttonContent, buttonIconSize, buttonTypography } from "./button.cva.js";
|
|
9
|
-
const Button = ({
|
|
10
|
-
icon: Icon,
|
|
11
|
-
iconPosition,
|
|
12
|
-
children,
|
|
13
|
-
isLoading,
|
|
14
|
-
className,
|
|
15
|
-
link,
|
|
16
|
-
iconClassName,
|
|
17
|
-
noDisableWhenLoading,
|
|
18
|
-
disableTooltip,
|
|
19
|
-
...props
|
|
20
|
-
}) => {
|
|
21
|
-
const linkContext = LinkContext.useLinkContext();
|
|
22
|
-
const uiStyle = UIStyle.useConfig();
|
|
23
|
-
const buttonCva = uiStyle?.button?.cva ?? button;
|
|
24
|
-
const buttonSizeCva = uiStyle?.button?.sizeCva ?? buttonSize;
|
|
25
|
-
const buttonContentCva = uiStyle?.button?.contentCva ?? buttonContent;
|
|
26
|
-
const buttonIconSizeCva = uiStyle?.button?.iconSize ?? buttonIconSize;
|
|
27
|
-
const typographyMap = uiStyle?.button?.typography ?? buttonTypography;
|
|
28
|
-
const Component = (() => {
|
|
29
|
-
if (link) {
|
|
30
|
-
return linkContext?.LinkComponent ?? Link;
|
|
31
|
-
}
|
|
32
|
-
if (props.toggle != null) {
|
|
33
|
-
return ToggleButton;
|
|
34
|
-
}
|
|
35
|
-
return Button$1;
|
|
36
|
-
})();
|
|
37
|
-
if (link && !link.to && link.href) {
|
|
38
|
-
link.to = link.href;
|
|
39
|
-
}
|
|
40
|
-
return /* @__PURE__ */ jsx(
|
|
41
|
-
TooltipEllipsis,
|
|
42
|
-
{
|
|
43
|
-
text: children,
|
|
44
|
-
isDisabled: disableTooltip,
|
|
45
|
-
children: (onContentRef) => /* @__PURE__ */ jsx(
|
|
46
|
-
Component,
|
|
47
|
-
{
|
|
48
|
-
...props,
|
|
49
|
-
...link,
|
|
50
|
-
isDisabled: props.isDisabled || isLoading && !noDisableWhenLoading,
|
|
51
|
-
className: clsx(buttonCva({ ...props, className }), buttonSizeCva({ ...props })),
|
|
52
|
-
children: /* @__PURE__ */ jsx(
|
|
53
|
-
ButtonContent,
|
|
54
|
-
{
|
|
55
|
-
isLoading,
|
|
56
|
-
icon: Icon,
|
|
57
|
-
text: children,
|
|
58
|
-
ref: onContentRef,
|
|
59
|
-
hideText: props.iconOnly,
|
|
60
|
-
iconPosition,
|
|
61
|
-
iconClassName: buttonIconSizeCva({ ...props, className: iconClassName }),
|
|
62
|
-
className: buttonContentCva({ ...props, iconPosition: !Icon ? "none" : iconPosition }),
|
|
63
|
-
typography: typographyMap({ ...props })
|
|
64
|
-
}
|
|
65
|
-
)
|
|
66
|
-
}
|
|
67
|
-
)
|
|
68
|
-
}
|
|
69
|
-
);
|
|
70
|
-
};
|
|
71
|
-
export {
|
|
72
|
-
Button
|
|
73
|
-
};
|