@povio/ui 2.1.14 → 2.1.16
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 +80 -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 +197 -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 +209 -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
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { compoundMapper } from "./compoundMapper.js";
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
const toastContainer = cva("m-toast-gap-margin-mobile w-auto p-0 md:m-toast-gap-margin-desktop", { variants: { position: {
|
|
5
|
+
"bottom-right": "right-0 bottom-0",
|
|
6
|
+
"bottom-left": "bottom-0 left-0",
|
|
7
|
+
"top-right": "top-0 right-0",
|
|
8
|
+
"top-left": "top-0 left-0",
|
|
9
|
+
"bottom-center": "bottom-0",
|
|
10
|
+
"top-center": "top-0"
|
|
11
|
+
} } });
|
|
12
|
+
const toastWrapper = clsx("m-0! min-h-0 w-auto! max-w-toast bg-transparent! p-0! shadow-none!");
|
|
13
|
+
const toast = cva("inline-flex w-auto flex-col items-center overflow-hidden rounded-toast-rounding-default shadow-4 md:flex-row", {
|
|
14
|
+
variants: {
|
|
15
|
+
variant: {
|
|
16
|
+
outlined: "border bg-elevation-fill-default-1 text-text-default-1",
|
|
17
|
+
contained: "text-text-inverted-1"
|
|
18
|
+
},
|
|
19
|
+
color: {
|
|
20
|
+
neutral: "",
|
|
21
|
+
success: "",
|
|
22
|
+
warning: "",
|
|
23
|
+
error: ""
|
|
24
|
+
},
|
|
25
|
+
position: {
|
|
26
|
+
"bottom-right": "",
|
|
27
|
+
"bottom-left": "",
|
|
28
|
+
"bottom-center": "",
|
|
29
|
+
"top-right": "",
|
|
30
|
+
"top-left": "",
|
|
31
|
+
"top-center": ""
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
compoundVariants: [
|
|
35
|
+
{
|
|
36
|
+
position: [
|
|
37
|
+
"bottom-right",
|
|
38
|
+
"bottom-left",
|
|
39
|
+
"bottom-center"
|
|
40
|
+
],
|
|
41
|
+
className: "mt-toast-gap-margin-mobile md:mt-toast-gap-margin-desktop"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
position: [
|
|
45
|
+
"top-right",
|
|
46
|
+
"top-left",
|
|
47
|
+
"top-center"
|
|
48
|
+
],
|
|
49
|
+
className: "mb-toast-gap-margin-mobile md:mb-toast-gap-margin-desktop"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
variant: "outlined",
|
|
53
|
+
color: "neutral",
|
|
54
|
+
className: "border-elevation-outline-default-1"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
variant: "outlined",
|
|
58
|
+
color: "success",
|
|
59
|
+
className: "border-elevation-outline-success-1"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
variant: "outlined",
|
|
63
|
+
color: "warning",
|
|
64
|
+
className: "border-elevation-outline-warning-1"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
variant: "outlined",
|
|
68
|
+
color: "error",
|
|
69
|
+
className: "border-elevation-outline-error-1"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
variant: "contained",
|
|
73
|
+
color: "neutral",
|
|
74
|
+
className: "bg-elevation-fill-inverted-1"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
variant: "contained",
|
|
78
|
+
color: "success",
|
|
79
|
+
className: "bg-elevation-fill-success-1"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
variant: "contained",
|
|
83
|
+
color: "warning",
|
|
84
|
+
className: "bg-elevation-fill-warning-1"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
variant: "contained",
|
|
88
|
+
color: "error",
|
|
89
|
+
className: "bg-elevation-fill-error-1"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
defaultVariants: {
|
|
93
|
+
variant: "outlined",
|
|
94
|
+
color: "neutral"
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
const buttonColorVariant = compoundMapper({
|
|
98
|
+
compoundVariants: [
|
|
99
|
+
{
|
|
100
|
+
variant: "outlined",
|
|
101
|
+
color: "neutral",
|
|
102
|
+
value: { color: "secondary" }
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
variant: "outlined",
|
|
106
|
+
color: "success",
|
|
107
|
+
value: { color: "success" }
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
variant: "outlined",
|
|
111
|
+
color: "warning",
|
|
112
|
+
value: { color: "warning" }
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
variant: "outlined",
|
|
116
|
+
color: "error",
|
|
117
|
+
value: { color: "error" }
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
variant: "contained",
|
|
121
|
+
color: "neutral",
|
|
122
|
+
value: {
|
|
123
|
+
color: "primary",
|
|
124
|
+
inverted: true
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
variant: "contained",
|
|
129
|
+
color: "success",
|
|
130
|
+
value: {
|
|
131
|
+
color: "success",
|
|
132
|
+
inverted: true
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
variant: "contained",
|
|
137
|
+
color: "warning",
|
|
138
|
+
value: {
|
|
139
|
+
color: "warning",
|
|
140
|
+
inverted: true
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
variant: "contained",
|
|
145
|
+
color: "error",
|
|
146
|
+
value: {
|
|
147
|
+
color: "error",
|
|
148
|
+
inverted: true
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
defaultVariants: {
|
|
153
|
+
variant: "outlined",
|
|
154
|
+
color: "neutral"
|
|
155
|
+
},
|
|
156
|
+
default: { color: "secondary" }
|
|
157
|
+
});
|
|
158
|
+
export { buttonColorVariant, toast, toastContainer, toastWrapper };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { uiGroupOutlineClass } from "./outline.clsx.js";
|
|
2
|
+
import { compoundMapper } from "./compoundMapper.js";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
const toggle = cva(["h-6 w-10 rounded-full before:m-0-5 before:block before:aspect-square before:h-5 before:rounded-full before:transition-transform before:content-[''] group-selected:before:translate-x-4", uiGroupOutlineClass], {
|
|
5
|
+
variants: { variant: { default: [
|
|
6
|
+
"bg-interactive-contained-secondary-idle",
|
|
7
|
+
"group-disabled:bg-interactive-contained-secondary-disabled",
|
|
8
|
+
"group-hover:bg-interactive-contained-secondary-hover",
|
|
9
|
+
"group-pressed:bg-interactive-contained-secondary-pressed",
|
|
10
|
+
"group-selected:bg-interactive-contained-primary-idle",
|
|
11
|
+
"group-selected:group-hover:bg-interactive-contained-primary-hover",
|
|
12
|
+
"group-selected:group-pressed:bg-interactive-contained-primary-pressed",
|
|
13
|
+
"group-focus-visible:outline-interactive-text-secondary-focus",
|
|
14
|
+
"before:bg-interactive-contained-secondary-on-idle",
|
|
15
|
+
"group-hover:before:bg-interactive-contained-secondary-on-hover",
|
|
16
|
+
"group-disabled:before:bg-interactive-contained-secondary-on-disabled",
|
|
17
|
+
"group-selected:before:bg-interactive-contained-primary-on-idle",
|
|
18
|
+
"group-selected:group-hover:before:bg-interactive-contained-primary-on-hover",
|
|
19
|
+
"group-selected:group-pressed:before:bg-interactive-contained-primary-on-pressed"
|
|
20
|
+
] } },
|
|
21
|
+
defaultVariants: { variant: "default" }
|
|
22
|
+
});
|
|
23
|
+
const toggleTypography = compoundMapper({ default: {
|
|
24
|
+
size: "label-1",
|
|
25
|
+
variant: "default"
|
|
26
|
+
} });
|
|
27
|
+
export { toggle, toggleTypography };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
const tooltipCva = cva(["group max-w-64 rounded-tooltip-rounding-default px-tooltip-side-default py-tooltip-height-default shadow-2"], {
|
|
3
|
+
variants: { color: {
|
|
4
|
+
default: ["bg-interactive-contained-secondary-idle"],
|
|
5
|
+
error: ["w-max bg-elevation-fill-error-1"]
|
|
6
|
+
} },
|
|
7
|
+
defaultVariants: { color: "default" }
|
|
8
|
+
});
|
|
9
|
+
const tooltipPointerHorizontalCva = cva(["h-2-5 w-5 group-placement-left:hidden group-placement-right:hidden group-placement-top:rotate-180"], {
|
|
10
|
+
variants: { color: {
|
|
11
|
+
default: ["text-interactive-contained-secondary-idle"],
|
|
12
|
+
error: ["text-elevation-fill-error-1"]
|
|
13
|
+
} },
|
|
14
|
+
defaultVariants: { color: "default" }
|
|
15
|
+
});
|
|
16
|
+
const tooltipPointerVerticalCva = cva(["h-5 w-2-5 group-placement-bottom:hidden group-placement-top:hidden group-placement-left:rotate-180"], {
|
|
17
|
+
variants: { color: {
|
|
18
|
+
default: ["text-interactive-contained-secondary-idle"],
|
|
19
|
+
error: ["text-elevation-fill-error-1"]
|
|
20
|
+
} },
|
|
21
|
+
defaultVariants: { color: "default" }
|
|
22
|
+
});
|
|
23
|
+
const tooltipTextCva = cva([], {
|
|
24
|
+
variants: { color: {
|
|
25
|
+
default: ["text-text-inverted-3"],
|
|
26
|
+
error: ["text-text-error-inverted-1"]
|
|
27
|
+
} },
|
|
28
|
+
defaultVariants: { color: "default" }
|
|
29
|
+
});
|
|
30
|
+
export { tooltipCva, tooltipPointerHorizontalCva, tooltipPointerVerticalCva, tooltipTextCva };
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
var translation_default = {
|
|
2
|
+
ui: {
|
|
3
|
+
"openAlt": "Open",
|
|
4
|
+
"closeAlt": "Close",
|
|
5
|
+
"clearAlt": "Clear",
|
|
6
|
+
"loadingState": { "text": "Loading..." },
|
|
7
|
+
"select": {
|
|
8
|
+
"closeAlt": "Close the menu",
|
|
9
|
+
"selectAll": "Select all",
|
|
10
|
+
"clearSelection": "Clear",
|
|
11
|
+
"allOption": "All",
|
|
12
|
+
"search": "Search",
|
|
13
|
+
"clearSearch": "Clear search"
|
|
14
|
+
},
|
|
15
|
+
"datePicker": {
|
|
16
|
+
"today": "Today",
|
|
17
|
+
"clear": "Clear",
|
|
18
|
+
"save": "Save",
|
|
19
|
+
"presets": {
|
|
20
|
+
"thisWeek": "This week",
|
|
21
|
+
"lastWeek": "Last week",
|
|
22
|
+
"thisAndLastWeek": "This & Last week",
|
|
23
|
+
"thisMonth": "This month",
|
|
24
|
+
"thisAndLastMonth": "This & Last month",
|
|
25
|
+
"thisYear": "This year",
|
|
26
|
+
"lastYear": "Last year",
|
|
27
|
+
"thisAndLastYear": "This & Last year",
|
|
28
|
+
"soFar": "So far"
|
|
29
|
+
},
|
|
30
|
+
"errors": { "endDateBeforeStart": "End date cannot be before start date" }
|
|
31
|
+
},
|
|
32
|
+
"modal": { "closeBtn": "Close" },
|
|
33
|
+
"autocomplete": { "createNewBtn": "Create" },
|
|
34
|
+
"password": {
|
|
35
|
+
"reveal": "Reveal password",
|
|
36
|
+
"hide": "Hide password"
|
|
37
|
+
},
|
|
38
|
+
"textEditor": {
|
|
39
|
+
"textStyle": {
|
|
40
|
+
"label": "Text style",
|
|
41
|
+
"normal": "Normal text",
|
|
42
|
+
"heading1": "Heading 1",
|
|
43
|
+
"heading2": "Heading 2",
|
|
44
|
+
"heading3": "Heading 3",
|
|
45
|
+
"heading4": "Heading 4",
|
|
46
|
+
"heading5": "Heading 5",
|
|
47
|
+
"heading6": "Heading 6"
|
|
48
|
+
},
|
|
49
|
+
"marks": {
|
|
50
|
+
"bold": "Bold",
|
|
51
|
+
"italic": "Italic",
|
|
52
|
+
"underline": "Underline",
|
|
53
|
+
"strikethrough": "Strikethrough"
|
|
54
|
+
},
|
|
55
|
+
"textAlign": {
|
|
56
|
+
"label": "Text align",
|
|
57
|
+
"left": "Left",
|
|
58
|
+
"center": "Center",
|
|
59
|
+
"right": "Right",
|
|
60
|
+
"justify": "Justify"
|
|
61
|
+
},
|
|
62
|
+
"link": {
|
|
63
|
+
"label": "Hyperlink",
|
|
64
|
+
"apply": "Apply",
|
|
65
|
+
"remove": "Remove",
|
|
66
|
+
"urlLabel": "URL",
|
|
67
|
+
"urlPlaceholder": "Enter the URL"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"tag": { "dismiss": "Dismiss" },
|
|
71
|
+
"clearInput": "Clear input",
|
|
72
|
+
"pagination": {
|
|
73
|
+
"nextBtn": "Next",
|
|
74
|
+
"backBtn": "Previous",
|
|
75
|
+
"firstBtn": "First",
|
|
76
|
+
"lastBtn": "Last",
|
|
77
|
+
"resultsPerPage": "Results per page"
|
|
78
|
+
},
|
|
79
|
+
"confirmation": {
|
|
80
|
+
"cancel": "Cancel",
|
|
81
|
+
"confirm": "Confirm"
|
|
82
|
+
},
|
|
83
|
+
"fileUpload": {
|
|
84
|
+
"emptyText": "Upload file",
|
|
85
|
+
"uploadText": "Drag & drop files here or",
|
|
86
|
+
"browse": "Browse",
|
|
87
|
+
"noFileUploaded": "No file uploaded",
|
|
88
|
+
"upload": "Upload",
|
|
89
|
+
"uploadFile": "Upload file",
|
|
90
|
+
"or": "or",
|
|
91
|
+
"removeFile": "Remove file",
|
|
92
|
+
"cancel": "Cancel"
|
|
93
|
+
},
|
|
94
|
+
"table": {
|
|
95
|
+
"column": "Column",
|
|
96
|
+
"show": "Show",
|
|
97
|
+
"configureColumns": "Configure columns"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
zodErrors: {
|
|
101
|
+
"required": "Required",
|
|
102
|
+
"invalid": "Invalid",
|
|
103
|
+
"string": {
|
|
104
|
+
"includes": "Must include \"{{text}}\"",
|
|
105
|
+
"startsWith": "Must start with \"{{text}}\"",
|
|
106
|
+
"endsWith": "Must end with \"{{text}}\"",
|
|
107
|
+
"constraint": "Invalid {{text}}",
|
|
108
|
+
"contains": "Must contain exactly {{count}} character(s)",
|
|
109
|
+
"containsAtLeast": "Must contain at least {{count}} character(s)",
|
|
110
|
+
"containsOver": "Must contain over {{count}} character(s)",
|
|
111
|
+
"containsAtMost": "Must contain at most {{count}} character(s)",
|
|
112
|
+
"containsUnder": "Must contain under {{count}} character(s)"
|
|
113
|
+
},
|
|
114
|
+
"array": {
|
|
115
|
+
"contains": "Array must contain exactly {{count}} element(s)",
|
|
116
|
+
"containsAtLeast": "Array must contain at least {{count}} element(s)",
|
|
117
|
+
"containsMoreThan": "Array must contain more than {{count}} element(s)",
|
|
118
|
+
"containsAtMost": "Array must contain at most {{count}} element(s)",
|
|
119
|
+
"containsLessThan": "Array must contain less than {{count}} element(s)"
|
|
120
|
+
},
|
|
121
|
+
"number": {
|
|
122
|
+
"exact": "Number must be exactly equal to {{number}}",
|
|
123
|
+
"greaterThanOrEqual": "Number must be greater than or equal to {{number}}",
|
|
124
|
+
"greaterThan": "Number must be greater than {{number}}",
|
|
125
|
+
"over": "Number must be over {{number}}",
|
|
126
|
+
"lessThanOrEqual": "Number must be less than or equal to {{number}}",
|
|
127
|
+
"lessThan": "Number must be less than {{number}}",
|
|
128
|
+
"multipleOf": "Number must be a multiple of {{multipleOf}}"
|
|
129
|
+
},
|
|
130
|
+
"date": {
|
|
131
|
+
"invalid": "Invalid date",
|
|
132
|
+
"exact": "Date must be exactly equal to {{date}}",
|
|
133
|
+
"greaterThanOrEqual": "Date must be greater than or equal to {{date}}",
|
|
134
|
+
"greaterThan": "Date must be greater than {{date}}",
|
|
135
|
+
"smallerThanOrEqual": "Date must be smaller than or equal to {{date}}",
|
|
136
|
+
"smallerThan": "Date must be smaller than {{date}}"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
sharedErrors: {
|
|
140
|
+
"dataValidation": "An error occurred while validating the data",
|
|
141
|
+
"internalError": "An internal error occurred. This is most likely a bug on our end. Please try again later.",
|
|
142
|
+
"networkError": "A network error occurred. Are you connected to the internet?",
|
|
143
|
+
"canceledError": "The request was canceled.",
|
|
144
|
+
"unknownError": "An unknown error occurred. Please try again later."
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
export { translation_default as default };
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
var translation_default = {
|
|
2
|
+
ui: {
|
|
3
|
+
"openAlt": "Odpri",
|
|
4
|
+
"closeAlt": "Zapri",
|
|
5
|
+
"clearAlt": "Sprazni",
|
|
6
|
+
"loadingState": { "text": "Nalaganje..." },
|
|
7
|
+
"select": {
|
|
8
|
+
"closeAlt": "Zapri meni",
|
|
9
|
+
"selectAll": "Izberi vse",
|
|
10
|
+
"clearSelection": "Sprazni",
|
|
11
|
+
"allOption": "Vse",
|
|
12
|
+
"search": "Išči",
|
|
13
|
+
"clearSearch": "Sprazni iskanje"
|
|
14
|
+
},
|
|
15
|
+
"datePicker": {
|
|
16
|
+
"today": "Danes",
|
|
17
|
+
"clear": "Sprazni",
|
|
18
|
+
"save": "Shrani",
|
|
19
|
+
"presets": {
|
|
20
|
+
"thisWeek": "Ta teden",
|
|
21
|
+
"lastWeek": "Prejšnji teden",
|
|
22
|
+
"thisAndLastWeek": "Ta in prejšnji teden",
|
|
23
|
+
"thisMonth": "Ta mesec",
|
|
24
|
+
"thisAndLastMonth": "Ta in prejšnji mesec",
|
|
25
|
+
"thisYear": "Ta leto",
|
|
26
|
+
"lastYear": "Prejšnje leto",
|
|
27
|
+
"thisAndLastYear": "Ta in prejšnje leto",
|
|
28
|
+
"soFar": "Od začetka"
|
|
29
|
+
},
|
|
30
|
+
"errors": { "endDateBeforeStart": "Datum konca ne more biti pred datumom začetka" }
|
|
31
|
+
},
|
|
32
|
+
"modal": { "closeBtn": "Zapri" },
|
|
33
|
+
"autocomplete": { "createNewBtn": "Ustvari" },
|
|
34
|
+
"password": {
|
|
35
|
+
"reveal": "Prikaži geslo",
|
|
36
|
+
"hide": "Skrij geslo"
|
|
37
|
+
},
|
|
38
|
+
"textEditor": {
|
|
39
|
+
"textStyle": {
|
|
40
|
+
"label": "Vrsta besedila",
|
|
41
|
+
"normal": "Normalni tekst",
|
|
42
|
+
"heading1": "Naslov 1",
|
|
43
|
+
"heading2": "Naslov 2",
|
|
44
|
+
"heading3": "Naslov 3",
|
|
45
|
+
"heading4": "Naslov 4",
|
|
46
|
+
"heading5": "Naslov 5",
|
|
47
|
+
"heading6": "Naslov 6"
|
|
48
|
+
},
|
|
49
|
+
"marks": {
|
|
50
|
+
"bold": "Krepko",
|
|
51
|
+
"italic": "Poševno",
|
|
52
|
+
"underline": "Podčrtano",
|
|
53
|
+
"strikethrough": "Prečrtano"
|
|
54
|
+
},
|
|
55
|
+
"textAlign": {
|
|
56
|
+
"label": "Poravnava besedila",
|
|
57
|
+
"left": "Levo",
|
|
58
|
+
"center": "Sredina",
|
|
59
|
+
"right": "Desno",
|
|
60
|
+
"justify": "Obojestransko"
|
|
61
|
+
},
|
|
62
|
+
"link": {
|
|
63
|
+
"label": "Povezava",
|
|
64
|
+
"apply": "Ustvari",
|
|
65
|
+
"remove": "Odstrani",
|
|
66
|
+
"urlLabel": "URL",
|
|
67
|
+
"urlPlaceholder": "Vnesite URL"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"pagination": {
|
|
71
|
+
"nextBtn": "Naprej",
|
|
72
|
+
"backBtn": "Nazaj",
|
|
73
|
+
"firstBtn": "Prva",
|
|
74
|
+
"lastBtn": "Zadnja",
|
|
75
|
+
"resultsPerPage": "Rezultatov na stran"
|
|
76
|
+
},
|
|
77
|
+
"confirmation": {
|
|
78
|
+
"cancel": "Prekliči",
|
|
79
|
+
"confirm": "Potrdi"
|
|
80
|
+
},
|
|
81
|
+
"fileUpload": {
|
|
82
|
+
"emptyText": "Naloži datoteko",
|
|
83
|
+
"uploadText": "Povlecite datoteke sem ali",
|
|
84
|
+
"browse": "Izberi",
|
|
85
|
+
"noFileUploaded": "Ni datotek",
|
|
86
|
+
"upload": "Naloži",
|
|
87
|
+
"uploadFile": "Naloži datoteko",
|
|
88
|
+
"or": "ali",
|
|
89
|
+
"removeFile": "Odstrani datoteko",
|
|
90
|
+
"cancel": "Prekliči"
|
|
91
|
+
},
|
|
92
|
+
"table": {
|
|
93
|
+
"column": "Stolpec",
|
|
94
|
+
"show": "Prikaži",
|
|
95
|
+
"configureColumns": "Nastavi stolpce"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
zodErrors: {
|
|
99
|
+
"required": "Obvezno",
|
|
100
|
+
"invalid": "Neveljavno",
|
|
101
|
+
"string": {
|
|
102
|
+
"includes": "Mora vključevati \"{{text}}\"",
|
|
103
|
+
"startsWith": "Se mora začeti z \"{{text}}\"",
|
|
104
|
+
"endsWith": "Se mora končati z \"{{text}}\"",
|
|
105
|
+
"constraint": "Neveljaven {{text}}",
|
|
106
|
+
"contains": "Mora vsebovati natančno {{count}} znak(ov)",
|
|
107
|
+
"containsAtLeast": "Mora vsebovati vsaj {{count}} znak(ov)",
|
|
108
|
+
"containsOver": "Mora vsebovati več kot {{count}} znak(ov)",
|
|
109
|
+
"containsAtMost": "Mora vsebovati največ {{count}} znak(ov)",
|
|
110
|
+
"containsUnder": "Mora vsebovati manj kot {{count}} znak(ov)"
|
|
111
|
+
},
|
|
112
|
+
"array": {
|
|
113
|
+
"contains": "Polje mora vsebovati natančno {{count}} element(ov)",
|
|
114
|
+
"containsAtLeast": "Polje mora vsebovati vsaj {{count}} element(ov)",
|
|
115
|
+
"containsMoreThan": "Polje mora vsebovati več kot {{count}} element(ov)",
|
|
116
|
+
"containsAtMost": "Polje mora vsebovati največ {{count}} element(ov)",
|
|
117
|
+
"containsLessThan": "Polje mora vsebovati manj kot {{count}} element(ov)"
|
|
118
|
+
},
|
|
119
|
+
"number": {
|
|
120
|
+
"exact": "Število mora biti natančno enako {{number}}",
|
|
121
|
+
"greaterThanOrEqual": "Število mora biti večje ali enako {{number}}",
|
|
122
|
+
"greaterThan": "Število mora biti večje od {{number}}",
|
|
123
|
+
"over": "Število mora biti nad {{number}}",
|
|
124
|
+
"lessThanOrEqual": "Število mora biti manjše ali enako {{number}}",
|
|
125
|
+
"lessThan": "Število mora biti manjše od {{number}}",
|
|
126
|
+
"multipleOf": "Število mora biti večkratnik števila {{multipleOf}}"
|
|
127
|
+
},
|
|
128
|
+
"date": {
|
|
129
|
+
"invalid": "Neveljaven datum",
|
|
130
|
+
"exact": "Datum mora biti natančno enak {{date}}",
|
|
131
|
+
"greaterThanOrEqual": "Datum mora biti večji ali enak {{date}}",
|
|
132
|
+
"greaterThan": "Datum mora biti večji od {{date}}",
|
|
133
|
+
"smallerThanOrEqual": "Datum mora biti manjši ali enak {{date}}",
|
|
134
|
+
"smallerThan": "Datum mora biti manjši od {{date}}"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
sharedErrors: {
|
|
138
|
+
"dataValidation": "Pri preverjanju podatkov je prišlo do napake",
|
|
139
|
+
"internalError": "Prišlo je do notranje napake. ",
|
|
140
|
+
"networkError": "Prišlo je do napake v omrežju. ",
|
|
141
|
+
"canceledError": "Zahteva je bila preklicana.",
|
|
142
|
+
"unknownError": "Prišlo je do neznane napake. "
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
export { translation_default as default };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
const typography = cva("", {
|
|
3
|
+
variants: {
|
|
4
|
+
size: {
|
|
5
|
+
"headline-1": "md:text-desktop-headline-1",
|
|
6
|
+
"title-1": "md:text-desktop-title-1",
|
|
7
|
+
"title-2": "md:text-desktop-title-2",
|
|
8
|
+
"title-3": "md:text-desktop-title-3",
|
|
9
|
+
"title-4": "md:text-desktop-title-4",
|
|
10
|
+
"title-5": "md:text-desktop-title-5",
|
|
11
|
+
"title-6": "md:text-desktop-title-6",
|
|
12
|
+
"body-1": "md:text-desktop-body-1",
|
|
13
|
+
"body-2": "md:text-desktop-body-2",
|
|
14
|
+
"body-3": "md:text-desktop-body-3",
|
|
15
|
+
"body-4": "md:text-desktop-body-4",
|
|
16
|
+
"label-1": "md:text-label-1",
|
|
17
|
+
"label-2": "md:text-label-2",
|
|
18
|
+
"label-3": "md:text-label-3"
|
|
19
|
+
},
|
|
20
|
+
sizeMobile: {
|
|
21
|
+
"headline-1": "text-mobile-headline-1",
|
|
22
|
+
"title-1": "text-mobile-title-1",
|
|
23
|
+
"title-2": "text-mobile-title-2",
|
|
24
|
+
"title-3": "text-mobile-title-3",
|
|
25
|
+
"title-4": "text-mobile-title-4",
|
|
26
|
+
"title-5": "text-mobile-title-5",
|
|
27
|
+
"title-6": "text-mobile-title-6",
|
|
28
|
+
"body-1": "text-mobile-body-1",
|
|
29
|
+
"body-2": "text-mobile-body-2",
|
|
30
|
+
"body-3": "text-mobile-body-3",
|
|
31
|
+
"body-4": "text-mobile-body-4",
|
|
32
|
+
"label-1": "text-label-1",
|
|
33
|
+
"label-2": "text-label-2",
|
|
34
|
+
"label-3": "text-label-3"
|
|
35
|
+
},
|
|
36
|
+
variant: {
|
|
37
|
+
default: "",
|
|
38
|
+
"prominent-1": "",
|
|
39
|
+
"default-italic": "italic",
|
|
40
|
+
"prominent-1-italic": "italic",
|
|
41
|
+
"prominent-2": "",
|
|
42
|
+
"prominent-2-italic": "italic"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
compoundVariants: [
|
|
46
|
+
{
|
|
47
|
+
size: [
|
|
48
|
+
"headline-1",
|
|
49
|
+
"title-1",
|
|
50
|
+
"title-2",
|
|
51
|
+
"title-3",
|
|
52
|
+
"title-4",
|
|
53
|
+
"title-5",
|
|
54
|
+
"title-6"
|
|
55
|
+
],
|
|
56
|
+
className: "font-geist"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
size: [
|
|
60
|
+
"body-1",
|
|
61
|
+
"body-2",
|
|
62
|
+
"body-3",
|
|
63
|
+
"body-4",
|
|
64
|
+
"label-1",
|
|
65
|
+
"label-2",
|
|
66
|
+
"label-3"
|
|
67
|
+
],
|
|
68
|
+
className: "font-inter"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
size: [
|
|
72
|
+
"headline-1",
|
|
73
|
+
"title-1",
|
|
74
|
+
"title-2",
|
|
75
|
+
"title-3",
|
|
76
|
+
"title-4",
|
|
77
|
+
"title-5",
|
|
78
|
+
"title-6",
|
|
79
|
+
"label-1",
|
|
80
|
+
"label-2",
|
|
81
|
+
"label-3"
|
|
82
|
+
],
|
|
83
|
+
variant: ["default", "default-italic"],
|
|
84
|
+
className: "font-medium"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
size: [
|
|
88
|
+
"headline-1",
|
|
89
|
+
"title-1",
|
|
90
|
+
"title-2",
|
|
91
|
+
"title-3",
|
|
92
|
+
"title-4",
|
|
93
|
+
"title-5",
|
|
94
|
+
"title-6",
|
|
95
|
+
"label-1",
|
|
96
|
+
"label-2",
|
|
97
|
+
"label-3"
|
|
98
|
+
],
|
|
99
|
+
variant: ["prominent-1", "prominent-1-italic"],
|
|
100
|
+
className: "font-semibold"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
size: [
|
|
104
|
+
"body-1",
|
|
105
|
+
"body-2",
|
|
106
|
+
"body-3",
|
|
107
|
+
"body-4"
|
|
108
|
+
],
|
|
109
|
+
variant: ["prominent-1", "prominent-1-italic"],
|
|
110
|
+
className: "font-medium"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
size: [
|
|
114
|
+
"body-1",
|
|
115
|
+
"body-2",
|
|
116
|
+
"body-3",
|
|
117
|
+
"body-4"
|
|
118
|
+
],
|
|
119
|
+
variant: ["prominent-2", "prominent-2-italic"],
|
|
120
|
+
className: "font-semibold"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
});
|
|
124
|
+
export { typography };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ObjectUtils } from "./object.utils.js";
|
|
2
|
+
import { useDeepCompareMemo } from "./useDeepCompare.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { createContext, use } from "react";
|
|
5
|
+
let UIConfig;
|
|
6
|
+
(function(_UIConfig) {
|
|
7
|
+
const DEFAULT_CONFIG = {
|
|
8
|
+
input: {
|
|
9
|
+
variant: "outlined",
|
|
10
|
+
as: "default",
|
|
11
|
+
size: "default",
|
|
12
|
+
isClearable: false,
|
|
13
|
+
hideLabel: false
|
|
14
|
+
},
|
|
15
|
+
numberInput: { formatOptions: {
|
|
16
|
+
minimumFractionDigits: 0,
|
|
17
|
+
maximumFractionDigits: 3
|
|
18
|
+
} },
|
|
19
|
+
radioGroup: {
|
|
20
|
+
variant: "default",
|
|
21
|
+
hideLabel: false
|
|
22
|
+
},
|
|
23
|
+
checkbox: { variant: "default" },
|
|
24
|
+
select: {
|
|
25
|
+
selectionMode: "single",
|
|
26
|
+
isSearchable: false,
|
|
27
|
+
selectedTagsType: "list",
|
|
28
|
+
collapseAfter: 3
|
|
29
|
+
},
|
|
30
|
+
toggle: { variant: "default" },
|
|
31
|
+
slider: {
|
|
32
|
+
minValue: 0,
|
|
33
|
+
maxValue: 100
|
|
34
|
+
},
|
|
35
|
+
dateInput: {
|
|
36
|
+
todayIcon: false,
|
|
37
|
+
shouldForceLeadingZeros: false,
|
|
38
|
+
disableManualEntry: false
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const Context = createContext(DEFAULT_CONFIG);
|
|
42
|
+
_UIConfig.Provider = ({ config = {}, children }) => {
|
|
43
|
+
const parentConfig = use(Context) || DEFAULT_CONFIG;
|
|
44
|
+
const value = useDeepCompareMemo(() => {
|
|
45
|
+
return ObjectUtils.deepConditionalMerge(parentConfig, config, (val) => val !== null && val !== void 0);
|
|
46
|
+
}, [config, parentConfig]);
|
|
47
|
+
return /* @__PURE__ */ jsx(Context.Provider, {
|
|
48
|
+
value,
|
|
49
|
+
children
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
_UIConfig.useConfig = () => {
|
|
53
|
+
const context = use(Context);
|
|
54
|
+
if (!context) throw new Error("UIConfig.useConfig must be used within a UIConfig.Provider");
|
|
55
|
+
return context;
|
|
56
|
+
};
|
|
57
|
+
})(UIConfig || (UIConfig = {}));
|
|
58
|
+
export { UIConfig };
|