@povio/ui 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icons/AlignCenter.js +21 -0
- package/dist/assets/icons/AlignLeft.js +21 -0
- package/dist/assets/icons/AlignLeftRight.js +21 -0
- package/dist/assets/icons/AlignRight.js +21 -0
- package/dist/assets/icons/ArrowDropDown.js +21 -0
- package/dist/assets/icons/ArrowDropUp.js +21 -0
- package/dist/assets/icons/ArrowLeft.js +21 -0
- package/dist/assets/icons/ArrowRight.js +21 -0
- package/dist/assets/icons/Bold.js +21 -0
- package/dist/assets/icons/BulletedList.js +21 -0
- package/dist/assets/icons/Calendar.js +23 -0
- package/dist/assets/icons/Check.js +23 -0
- package/dist/assets/icons/CheckCircle.js +21 -0
- package/dist/assets/icons/CheckboxCheckmark.js +24 -0
- package/dist/assets/icons/CheckboxIndeterminate.js +24 -0
- package/dist/assets/icons/ChevronDown.js +23 -0
- package/dist/assets/icons/ChevronLeft.js +23 -0
- package/dist/assets/icons/ChevronRight.js +23 -0
- package/dist/assets/icons/ChevronUp.js +23 -0
- package/dist/assets/icons/ChevronsLeft.js +23 -0
- package/dist/assets/icons/ChevronsRight.js +23 -0
- package/dist/assets/icons/Clock.js +21 -0
- package/dist/assets/icons/Close.js +21 -0
- package/dist/assets/icons/DateTime.js +32 -0
- package/dist/assets/icons/Drag.js +21 -0
- package/dist/assets/icons/File.js +23 -0
- package/dist/assets/icons/Highlight.js +21 -0
- package/dist/assets/icons/HighlightOn.js +30 -0
- package/dist/assets/icons/Info.js +32 -0
- package/dist/assets/icons/Italic.js +21 -0
- package/dist/assets/icons/Link.js +21 -0
- package/dist/assets/icons/Menu.js +21 -0
- package/dist/assets/icons/NumberedList.js +21 -0
- package/dist/assets/icons/PointerHorizontal.js +21 -0
- package/dist/assets/icons/PointerVertical.js +21 -0
- package/dist/assets/icons/Send.js +23 -0
- package/dist/assets/icons/Strikethrough.js +21 -0
- package/dist/assets/icons/TextColor.js +30 -0
- package/dist/assets/icons/Today.js +21 -0
- package/dist/assets/icons/Underlined.js +23 -0
- package/dist/assets/icons/Upload.js +30 -0
- package/dist/assets/icons/View.js +18 -0
- package/dist/assets/icons/ViewOff.js +18 -0
- package/dist/assets/icons/WarningFilled.js +23 -0
- package/dist/assets/locales/en/translation.json.js +14 -0
- package/dist/assets/locales/sl/translation.json.js +14 -0
- package/dist/components/Menu/Menu.js +14 -0
- package/{src → dist}/components/Menu/MenuDesktop.d.ts +1 -1
- package/dist/components/Menu/MenuDesktop.js +68 -0
- package/{src → dist}/components/Menu/MenuItem.d.ts +1 -1
- package/dist/components/Menu/MenuItem.js +33 -0
- package/{src → dist}/components/Menu/MenuMobile.d.ts +1 -1
- package/dist/components/Menu/MenuMobile.js +78 -0
- package/{src → dist}/components/Menu/MenuPopover.d.ts +1 -1
- package/dist/components/Menu/MenuPopover.js +38 -0
- package/{src → dist}/components/buttons/Button/Button.d.ts +1 -1
- package/dist/components/buttons/Button/Button.js +68 -0
- package/{src → dist}/components/buttons/Button/button.cva.d.ts +1 -1
- package/dist/components/buttons/Button/button.cva.js +672 -0
- package/{src → dist}/components/buttons/IconButton/IconButton.d.ts +1 -1
- package/dist/components/buttons/IconButton/IconButton.js +17 -0
- package/{src → dist}/components/buttons/InlineIconButton/InlineIconButton.d.ts +1 -1
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +18 -0
- package/{src → dist}/components/buttons/PillButton/PillButton.d.ts +2 -2
- package/dist/components/buttons/PillButton/PillButton.js +44 -0
- package/{src → dist}/components/buttons/PillButton/pillButton.cva.d.ts +1 -1
- package/dist/components/buttons/PillButton/pillButton.cva.js +86 -0
- package/{src → dist}/components/buttons/SplitButton/SplitButton.d.ts +2 -2
- package/dist/components/buttons/SplitButton/SplitButton.js +62 -0
- package/{src → dist}/components/buttons/TextButton/TextButton.d.ts +3 -3
- package/dist/components/buttons/TextButton/TextButton.js +18 -0
- package/{src → dist}/components/buttons/ToggleButton/ToggleButton.d.ts +3 -3
- package/dist/components/buttons/ToggleButton/ToggleButton.js +21 -0
- package/{src → dist}/components/buttons/shared/ButtonContent.d.ts +3 -3
- package/dist/components/buttons/shared/ButtonContent.js +53 -0
- package/dist/components/buttons/shared/buttonContent.cva.js +16 -0
- package/{src → dist}/components/inputs/Checkbox/Checkbox.d.ts +3 -3
- package/dist/components/inputs/Checkbox/Checkbox.js +81 -0
- package/{src → dist}/components/inputs/Checkbox/CheckboxCheckmark.d.ts +1 -1
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +49 -0
- package/{src → dist}/components/inputs/Checkbox/checkbox.cva.d.ts +1 -1
- package/dist/components/inputs/Checkbox/checkbox.cva.js +47 -0
- package/{src → dist}/components/inputs/DateTime/DatePicker/DatePicker.d.ts +3 -3
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +237 -0
- package/{src → dist}/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +674 -0
- package/{src → dist}/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +3 -3
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +251 -0
- package/{src → dist}/components/inputs/DateTime/TimePicker/TimePicker.d.ts +3 -3
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +224 -0
- package/dist/components/inputs/DateTime/shared/Calendar.js +85 -0
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +160 -0
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +67 -0
- package/{src → dist}/components/inputs/DateTime/shared/CalendarHeader.d.ts +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +89 -0
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +203 -0
- package/dist/components/inputs/DateTime/shared/DateField.js +62 -0
- package/{src → dist}/components/inputs/DateTime/shared/DatePickerInput.d.ts +2 -2
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +174 -0
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +55 -0
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +76 -0
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +41 -0
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +82 -0
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +131 -0
- package/dist/components/inputs/DateTime/shared/TimeField.js +26 -0
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +186 -0
- package/{src → dist}/components/inputs/DateTime/shared/TimePickerInput.d.ts +2 -2
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +114 -0
- package/dist/components/inputs/DateTime/shared/YearPicker.js +89 -0
- package/dist/components/inputs/File/FileUpload.js +254 -0
- package/dist/components/inputs/File/FileUploadContainer.js +17 -0
- package/dist/components/inputs/File/InputUpload.js +176 -0
- package/{src → dist}/components/inputs/File/fileUpload.types.d.ts +3 -3
- package/{src → dist}/components/inputs/File/inputUpload.types.d.ts +2 -2
- package/{src → dist}/components/inputs/File/shared/FileCard.d.ts +1 -1
- package/dist/components/inputs/File/shared/FileCard.js +67 -0
- package/{src → dist}/components/inputs/File/shared/FileCardList.d.ts +1 -1
- package/dist/components/inputs/File/shared/FileCardList.js +20 -0
- package/dist/components/inputs/File/shared/FileProgressBar.js +32 -0
- package/{src → dist}/components/inputs/File/shared/FileUploadContent.d.ts +1 -1
- package/dist/components/inputs/File/shared/FileUploadContent.js +92 -0
- package/{src → dist}/components/inputs/File/shared/FileUploadContentEmpty.d.ts +1 -1
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +92 -0
- package/{src → dist}/components/inputs/File/shared/FileUploadContentError.d.ts +1 -1
- package/dist/components/inputs/File/shared/FileUploadContentError.js +167 -0
- package/{src → dist}/components/inputs/File/shared/FileUploadContentFilled.d.ts +1 -1
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +176 -0
- package/{src → dist}/components/inputs/File/shared/FileUploadContentLoading.d.ts +1 -1
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +128 -0
- package/{src → dist}/components/inputs/File/shared/InputUploadContent.d.ts +1 -1
- package/dist/components/inputs/File/shared/InputUploadContent.js +74 -0
- package/dist/components/inputs/File/shared/InputUploadFilled.js +45 -0
- package/dist/components/inputs/File/shared/fileUpload.cva.js +58 -0
- package/dist/components/inputs/File/shared/inputUploadButton.cva.js +49 -0
- package/{src → dist}/components/inputs/FormField/FormField.d.ts +3 -3
- package/dist/components/inputs/FormField/FormField.js +54 -0
- package/dist/components/inputs/FormField/FormFieldError.js +16 -0
- package/dist/components/inputs/FormField/FormFieldHeader.js +57 -0
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +20 -0
- package/{src → dist}/components/inputs/FormField/FormFieldLabel.d.ts +2 -2
- package/dist/components/inputs/FormField/FormFieldLabel.js +37 -0
- package/{src → dist}/components/inputs/Input/NumberInput/NumberInput.d.ts +4 -4
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +157 -0
- package/{src → dist}/components/inputs/Input/PasswordInput/PasswordInput.d.ts +2 -2
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +26 -0
- package/{src → dist}/components/inputs/Input/TextArea/TextArea.d.ts +3 -3
- package/dist/components/inputs/Input/TextArea/TextArea.js +146 -0
- package/{src → dist}/components/inputs/Input/TextInput/TextInput.d.ts +4 -4
- package/dist/components/inputs/Input/TextInput/TextInput.js +170 -0
- package/{src → dist}/components/inputs/Input/shared/InputContent.d.ts +3 -3
- package/dist/components/inputs/Input/shared/InputContent.js +114 -0
- package/{src → dist}/components/inputs/Inputs/Form.d.ts +2 -2
- package/dist/components/inputs/Inputs/Form.js +68 -0
- package/{src → dist}/components/inputs/Inputs/InputItem.d.ts +16 -16
- package/dist/components/inputs/Inputs/InputItem.js +63 -0
- package/dist/components/inputs/Inputs/Inputs.js +32 -0
- package/{src → dist}/components/inputs/RadioGroup/RadioGroup.d.ts +3 -3
- package/dist/components/inputs/RadioGroup/RadioGroup.js +113 -0
- package/{src → dist}/components/inputs/RadioGroup/radio.cva.d.ts +1 -1
- package/dist/components/inputs/RadioGroup/radio.cva.js +47 -0
- package/{src → dist}/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +3 -3
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +39 -0
- package/{src → dist}/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +3 -3
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +25 -0
- package/{src → dist}/components/inputs/Selection/Select/Select.d.ts +3 -3
- package/dist/components/inputs/Selection/Select/Select.js +32 -0
- package/{src → dist}/components/inputs/Selection/shared/SelectBase.d.ts +3 -3
- package/dist/components/inputs/Selection/shared/SelectBase.js +25 -0
- package/{src → dist}/components/inputs/Selection/shared/SelectDesktop.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +211 -0
- package/{src → dist}/components/inputs/Selection/shared/SelectInput.d.ts +4 -4
- package/dist/components/inputs/Selection/shared/SelectInput.js +231 -0
- package/{src → dist}/components/inputs/Selection/shared/SelectInputTags.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +22 -0
- package/{src → dist}/components/inputs/Selection/shared/SelectListBox.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectListBox.js +108 -0
- package/{src → dist}/components/inputs/Selection/shared/SelectListBoxItem.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +78 -0
- package/{src → dist}/components/inputs/Selection/shared/SelectListBoxItemSelectAll.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +45 -0
- package/{src → dist}/components/inputs/Selection/shared/SelectListBoxLoadingItem.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +47 -0
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +42 -0
- package/{src → dist}/components/inputs/Selection/shared/SelectMobile.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectMobile.js +161 -0
- package/{src → dist}/components/inputs/Selection/shared/select.context.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/select.context.js +244 -0
- package/{src → dist}/components/inputs/Selection/shared/select.types.d.ts +1 -1
- package/{src → dist}/components/inputs/Selection/shared/useSelectItems.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/useSelectItems.js +94 -0
- package/{src → dist}/components/inputs/Slider/Slider.d.ts +2 -2
- package/dist/components/inputs/Slider/Slider.js +137 -0
- package/{src → dist}/components/inputs/TextEditor/TextEditor.d.ts +2 -2
- package/dist/components/inputs/TextEditor/TextEditor.js +223 -0
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +34 -0
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +80 -0
- package/{src → dist}/components/inputs/TextEditor/Toolbar/HyperlinkAction.d.ts +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +92 -0
- package/{src → dist}/components/inputs/TextEditor/Toolbar/TextAlignSelect.d.ts +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +56 -0
- package/{src → dist}/components/inputs/TextEditor/Toolbar/TextColorSelect.d.ts +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +33 -0
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +31 -0
- package/{src → dist}/components/inputs/TextEditor/Toolbar/TextHighlightSelect.d.ts +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +37 -0
- package/{src → dist}/components/inputs/TextEditor/Toolbar/TextListActions.d.ts +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +51 -0
- package/{src → dist}/components/inputs/TextEditor/Toolbar/TextMarksActions.d.ts +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +73 -0
- package/{src → dist}/components/inputs/TextEditor/Toolbar/TextStyleSelect.d.ts +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +61 -0
- package/dist/components/inputs/TextEditor/textEditor.types.js +40 -0
- package/{src → dist}/components/inputs/Toggle/Toggle.d.ts +3 -3
- package/dist/components/inputs/Toggle/Toggle.js +65 -0
- package/{src → dist}/components/inputs/Toggle/toggle.cva.d.ts +1 -1
- package/dist/components/inputs/Toggle/toggle.cva.js +44 -0
- package/{src → dist}/components/inputs/shared/CheckContent.d.ts +1 -1
- package/dist/components/inputs/shared/CheckContent.js +22 -0
- package/dist/components/inputs/shared/InputClear.js +27 -0
- package/dist/components/inputs/shared/input.cva.js +168 -0
- package/{src → dist}/components/inputs/shared/label.cva.d.ts +1 -1
- package/dist/components/inputs/shared/label.cva.js +133 -0
- package/dist/components/outline.clsx.js +11 -0
- package/{src → dist}/components/overlays/ActionModal/ActionModal.d.ts +2 -2
- package/dist/components/overlays/ActionModal/ActionModal.js +80 -0
- package/dist/components/overlays/BottomSheet/BottomSheet.js +261 -0
- package/dist/components/overlays/Drawer/Drawer.js +84 -0
- package/{src → dist}/components/overlays/Modal/Modal.d.ts +1 -1
- package/dist/components/overlays/Modal/Modal.js +53 -0
- package/dist/components/overlays/Modal/modal.cva.js +53 -0
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +71 -0
- package/{src → dist}/components/overlays/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +70 -0
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +27 -0
- package/dist/components/overlays/Tooltip/tooltip.cva.js +60 -0
- package/dist/components/segment/Segment.js +119 -0
- package/dist/components/segment/SegmentItem.js +43 -0
- package/{src → dist}/components/segment/segment.types.d.ts +1 -1
- package/dist/components/shared/pagination/Pagination.js +75 -0
- package/{src → dist}/components/shared/pagination/PaginationList.d.ts +1 -1
- package/dist/components/shared/pagination/PaginationList.js +145 -0
- package/dist/components/shared/pagination/minWidth.cva.js +15 -0
- package/{src → dist}/components/status/Alert/Alert.d.ts +1 -1
- package/dist/components/status/Alert/Alert.js +41 -0
- package/dist/components/status/Alert/alert.cva.js +64 -0
- package/{src → dist}/components/status/Loader/Loader.d.ts +1 -1
- package/dist/components/status/Loader/Loader.js +37 -0
- package/dist/components/status/Loader/loader.cva.js +27 -0
- package/{src → dist}/components/status/Toast/Toast.d.ts +1 -1
- package/dist/components/status/Toast/Toast.js +64 -0
- package/{src → dist}/components/status/Toast/toast.cva.d.ts +1 -1
- package/dist/components/status/Toast/toast.cva.js +150 -0
- package/dist/components/status/Toast/useToast.js +83 -0
- package/dist/components/status/shared/status.cva.js +62 -0
- package/dist/components/table/CellText.js +18 -0
- package/dist/components/table/ColumnConfig.js +124 -0
- package/dist/components/table/HeaderText.js +15 -0
- package/dist/components/table/InfiniteTable.js +40 -0
- package/dist/components/table/PaginatedTable.js +33 -0
- package/dist/components/table/Table.js +370 -0
- package/dist/components/table/table.cva.js +63 -0
- package/{src → dist}/components/text/Link/Link.d.ts +1 -1
- package/dist/components/text/Link/Link.js +18 -0
- package/dist/components/text/Link/link.cva.js +18 -0
- package/{src → dist}/components/text/Tag/Tag.d.ts +1 -1
- package/dist/components/text/Tag/Tag.js +49 -0
- package/dist/components/text/Tag/tag.cva.js +59 -0
- package/{src → dist}/components/text/Typography/Typography.d.ts +1 -1
- package/dist/components/text/Typography/Typography.js +22 -0
- package/dist/components/text/Typography/typography.cva.js +100 -0
- package/{src → dist}/config/confirmation.context.d.ts +1 -1
- package/dist/config/confirmation.context.js +107 -0
- package/dist/config/i18n.js +15 -0
- package/dist/config/router.context.js +43 -0
- package/{src → dist}/config/uiConfig.context.d.ts +8 -8
- package/dist/config/uiConfig.context.js +67 -0
- package/{src → dist}/config/uiStyle.context.d.ts +14 -14
- package/dist/config/uiStyle.context.js +16 -0
- package/dist/helpers/dynamicColumns.js +359 -0
- package/{src → dist}/helpers/dynamicInputs.d.ts +2 -2
- package/dist/helpers/dynamicInputs.js +216 -0
- package/dist/hooks/useAutosave.js +83 -0
- package/dist/hooks/useBreakpoint.js +20 -0
- package/dist/hooks/useDebounceCallback.js +29 -0
- package/dist/hooks/useDeepCompare.js +25 -0
- package/dist/hooks/useFilters.js +120 -0
- package/dist/hooks/useForm.js +22 -0
- package/{src → dist}/hooks/useFormAutosave.d.ts +2 -2
- package/dist/hooks/useFormAutosave.js +67 -0
- package/dist/hooks/useIntersectionObserver.js +27 -0
- package/dist/hooks/useLocalStorage.js +63 -0
- package/dist/hooks/useLongPressRepeat.js +33 -0
- package/dist/hooks/usePagination.js +35 -0
- package/dist/hooks/useScrollableListBox.js +30 -0
- package/dist/hooks/useSorting.js +30 -0
- package/dist/hooks/useStateAndRef.js +17 -0
- package/dist/hooks/useTableColumnConfig.js +63 -0
- package/dist/hooks/useTableNav.js +409 -0
- package/dist/hooks/useTranslationMemo.js +14 -0
- package/dist/index.js +284 -0
- package/{src → dist}/types/react-query.d.ts +1 -1
- package/dist/utils/array.utils.js +12 -0
- package/dist/utils/compoundMapper.js +14 -0
- package/dist/utils/date-time.utils.js +77 -0
- package/dist/utils/date.utils.js +12 -0
- package/dist/utils/dom.utils.js +13 -0
- package/dist/utils/file.utils.js +63 -0
- package/dist/utils/isEqual.js +95 -0
- package/dist/utils/logger.js +19 -0
- package/dist/utils/object.utils.js +53 -0
- package/dist/utils/queries.utils.js +9 -0
- package/dist/utils/rest.utils.js +51 -0
- package/dist/utils/routing.utils.js +15 -0
- package/dist/utils/string.utils.js +12 -0
- package/{src → dist}/utils/vendor/acl/AclGuard.d.ts +1 -1
- package/dist/utils/vendor/acl/AclGuard.js +15 -0
- package/dist/utils/vendor/acl/Can.js +18 -0
- package/dist/utils/vendor/acl/ability.context.js +37 -0
- package/dist/utils/vendor/auth/AuthGuard.js +26 -0
- package/dist/utils/vendor/auth/auth.context.js +36 -0
- package/{src → dist}/utils/vendor/auth/withPrivateAuthGuard.d.ts +1 -1
- package/dist/utils/vendor/auth/withPrivateAuthGuard.js +17 -0
- package/dist/utils/vendor/error-handling.js +119 -0
- package/dist/utils/vendor/rest-interceptor.js +21 -0
- package/dist/utils/zod.utils.js +25 -0
- package/package.json +57 -5
- package/index.js +0 -62585
- package/povio-ui-0.0.8.tgz +0 -0
- package/vite.config.d.ts +0 -2
- /package/{src → dist}/assets/icons/AlignCenter.d.ts +0 -0
- /package/{src → dist}/assets/icons/AlignLeft.d.ts +0 -0
- /package/{src → dist}/assets/icons/AlignLeftRight.d.ts +0 -0
- /package/{src → dist}/assets/icons/AlignRight.d.ts +0 -0
- /package/{src → dist}/assets/icons/ArrowDropDown.d.ts +0 -0
- /package/{src → dist}/assets/icons/ArrowDropUp.d.ts +0 -0
- /package/{src → dist}/assets/icons/ArrowLeft.d.ts +0 -0
- /package/{src → dist}/assets/icons/ArrowRight.d.ts +0 -0
- /package/{src → dist}/assets/icons/Bold.d.ts +0 -0
- /package/{src → dist}/assets/icons/BulletedList.d.ts +0 -0
- /package/{src → dist}/assets/icons/Calendar.d.ts +0 -0
- /package/{src → dist}/assets/icons/Check.d.ts +0 -0
- /package/{src → dist}/assets/icons/CheckCircle.d.ts +0 -0
- /package/{src → dist}/assets/icons/CheckboxCheckmark.d.ts +0 -0
- /package/{src → dist}/assets/icons/CheckboxIndeterminate.d.ts +0 -0
- /package/{src → dist}/assets/icons/ChevronDown.d.ts +0 -0
- /package/{src → dist}/assets/icons/ChevronLeft.d.ts +0 -0
- /package/{src → dist}/assets/icons/ChevronRight.d.ts +0 -0
- /package/{src → dist}/assets/icons/ChevronUp.d.ts +0 -0
- /package/{src → dist}/assets/icons/ChevronsLeft.d.ts +0 -0
- /package/{src → dist}/assets/icons/ChevronsRight.d.ts +0 -0
- /package/{src → dist}/assets/icons/Clock.d.ts +0 -0
- /package/{src → dist}/assets/icons/Close.d.ts +0 -0
- /package/{src → dist}/assets/icons/DateTime.d.ts +0 -0
- /package/{src → dist}/assets/icons/Drag.d.ts +0 -0
- /package/{src → dist}/assets/icons/File.d.ts +0 -0
- /package/{src → dist}/assets/icons/Highlight.d.ts +0 -0
- /package/{src → dist}/assets/icons/HighlightOn.d.ts +0 -0
- /package/{src → dist}/assets/icons/Info.d.ts +0 -0
- /package/{src → dist}/assets/icons/Italic.d.ts +0 -0
- /package/{src → dist}/assets/icons/Link.d.ts +0 -0
- /package/{src → dist}/assets/icons/Menu.d.ts +0 -0
- /package/{src → dist}/assets/icons/NumberedList.d.ts +0 -0
- /package/{src → dist}/assets/icons/PointerHorizontal.d.ts +0 -0
- /package/{src → dist}/assets/icons/PointerVertical.d.ts +0 -0
- /package/{src → dist}/assets/icons/Send.d.ts +0 -0
- /package/{src → dist}/assets/icons/Strikethrough.d.ts +0 -0
- /package/{src → dist}/assets/icons/TextColor.d.ts +0 -0
- /package/{src → dist}/assets/icons/Today.d.ts +0 -0
- /package/{src → dist}/assets/icons/Underlined.d.ts +0 -0
- /package/{src → dist}/assets/icons/Upload.d.ts +0 -0
- /package/{src → dist}/assets/icons/View.d.ts +0 -0
- /package/{src → dist}/assets/icons/ViewOff.d.ts +0 -0
- /package/{src → dist}/assets/icons/WarningFilled.d.ts +0 -0
- /package/{src → dist}/components/Menu/Menu.d.ts +0 -0
- /package/{src → dist}/components/buttons/shared/buttonContent.cva.d.ts +0 -0
- /package/{src → dist}/components/inputs/DateTime/shared/Calendar.d.ts +0 -0
- /package/{src → dist}/components/inputs/DateTime/shared/CalendarCell.d.ts +0 -0
- /package/{src → dist}/components/inputs/DateTime/shared/CalendarGrid.d.ts +0 -0
- /package/{src → dist}/components/inputs/DateTime/shared/CalendarSelectHeader.d.ts +0 -0
- /package/{src → dist}/components/inputs/DateTime/shared/DateField.d.ts +0 -0
- /package/{src → dist}/components/inputs/DateTime/shared/DateSegmentItem.d.ts +0 -0
- /package/{src → dist}/components/inputs/DateTime/shared/DateTimeDialog.d.ts +0 -0
- /package/{src → dist}/components/inputs/DateTime/shared/DateTimeDialogFooter.d.ts +0 -0
- /package/{src → dist}/components/inputs/DateTime/shared/MonthPicker.d.ts +0 -0
- /package/{src → dist}/components/inputs/DateTime/shared/RangeCalendar.d.ts +0 -0
- /package/{src → dist}/components/inputs/DateTime/shared/TimeField.d.ts +0 -0
- /package/{src → dist}/components/inputs/DateTime/shared/TimePickerForm.d.ts +0 -0
- /package/{src → dist}/components/inputs/DateTime/shared/YearPicker.d.ts +0 -0
- /package/{src → dist}/components/inputs/File/FileUpload.d.ts +0 -0
- /package/{src → dist}/components/inputs/File/FileUploadContainer.d.ts +0 -0
- /package/{src → dist}/components/inputs/File/InputUpload.d.ts +0 -0
- /package/{src → dist}/components/inputs/File/index.d.ts +0 -0
- /package/{src → dist}/components/inputs/File/shared/FileProgressBar.d.ts +0 -0
- /package/{src → dist}/components/inputs/File/shared/InputUploadFilled.d.ts +0 -0
- /package/{src → dist}/components/inputs/File/shared/fileUpload.cva.d.ts +0 -0
- /package/{src → dist}/components/inputs/File/shared/inputUploadButton.cva.d.ts +0 -0
- /package/{src → dist}/components/inputs/FormField/FormFieldError.d.ts +0 -0
- /package/{src → dist}/components/inputs/FormField/FormFieldHeader.d.ts +0 -0
- /package/{src → dist}/components/inputs/FormField/FormFieldHeaderClose.d.ts +0 -0
- /package/{src → dist}/components/inputs/Inputs/Inputs.d.ts +0 -0
- /package/{src → dist}/components/inputs/Selection/shared/SelectListBoxSelectionBar.d.ts +0 -0
- /package/{src → dist}/components/inputs/TextEditor/Toolbar/ColorPicker.d.ts +0 -0
- /package/{src → dist}/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.d.ts +0 -0
- /package/{src → dist}/components/inputs/TextEditor/Toolbar/TextEditorToolbar.d.ts +0 -0
- /package/{src → dist}/components/inputs/TextEditor/textEditor.types.d.ts +0 -0
- /package/{src → dist}/components/inputs/shared/InputClear.d.ts +0 -0
- /package/{src → dist}/components/inputs/shared/form.types.d.ts +0 -0
- /package/{src → dist}/components/inputs/shared/input.cva.d.ts +0 -0
- /package/{src → dist}/components/outline.clsx.d.ts +0 -0
- /package/{src → dist}/components/overlays/BottomSheet/BottomSheet.d.ts +0 -0
- /package/{src → dist}/components/overlays/Drawer/Drawer.d.ts +0 -0
- /package/{src → dist}/components/overlays/Modal/modal.cva.d.ts +0 -0
- /package/{src → dist}/components/overlays/ResponsivePopover/ResponsivePopover.d.ts +0 -0
- /package/{src → dist}/components/overlays/Tooltip/TooltipEllipsis.d.ts +0 -0
- /package/{src → dist}/components/overlays/Tooltip/tooltip.cva.d.ts +0 -0
- /package/{src → dist}/components/segment/Segment.d.ts +0 -0
- /package/{src → dist}/components/segment/SegmentItem.d.ts +0 -0
- /package/{src → dist}/components/shared/pagination/Pagination.d.ts +0 -0
- /package/{src → dist}/components/shared/pagination/minWidth.cva.d.ts +0 -0
- /package/{src → dist}/components/status/Alert/alert.cva.d.ts +0 -0
- /package/{src → dist}/components/status/Loader/loader.cva.d.ts +0 -0
- /package/{src → dist}/components/status/Toast/useToast.d.ts +0 -0
- /package/{src → dist}/components/status/shared/status.cva.d.ts +0 -0
- /package/{src → dist}/components/table/CellText.d.ts +0 -0
- /package/{src → dist}/components/table/ColumnConfig.d.ts +0 -0
- /package/{src → dist}/components/table/HeaderText.d.ts +0 -0
- /package/{src → dist}/components/table/InfiniteTable.d.ts +0 -0
- /package/{src → dist}/components/table/PaginatedTable.d.ts +0 -0
- /package/{src → dist}/components/table/Table.d.ts +0 -0
- /package/{src → dist}/components/table/table.cva.d.ts +0 -0
- /package/{src → dist}/components/text/Link/link.cva.d.ts +0 -0
- /package/{src → dist}/components/text/Tag/tag.cva.d.ts +0 -0
- /package/{src → dist}/components/text/Typography/typography.cva.d.ts +0 -0
- /package/{src → dist}/config/i18n.d.ts +0 -0
- /package/{src → dist}/config/router.context.d.ts +0 -0
- /package/{src → dist}/helpers/dynamicColumns.d.ts +0 -0
- /package/{src → dist}/hooks/useAutosave.d.ts +0 -0
- /package/{src → dist}/hooks/useBreakpoint.d.ts +0 -0
- /package/{src → dist}/hooks/useDebounceCallback.d.ts +0 -0
- /package/{src → dist}/hooks/useDeepCompare.d.ts +0 -0
- /package/{src → dist}/hooks/useFilters.d.ts +0 -0
- /package/{src → dist}/hooks/useForm.d.ts +0 -0
- /package/{src → dist}/hooks/useIntersectionObserver.d.ts +0 -0
- /package/{src → dist}/hooks/useLocalStorage.d.ts +0 -0
- /package/{src → dist}/hooks/useLongPressRepeat.d.ts +0 -0
- /package/{src → dist}/hooks/usePagination.d.ts +0 -0
- /package/{src → dist}/hooks/useScrollableListBox.d.ts +0 -0
- /package/{src → dist}/hooks/useSorting.d.ts +0 -0
- /package/{src → dist}/hooks/useStateAndRef.d.ts +0 -0
- /package/{src → dist}/hooks/useTableColumnConfig.d.ts +0 -0
- /package/{src → dist}/hooks/useTableNav.d.ts +0 -0
- /package/{src → dist}/hooks/useTranslationMemo.d.ts +0 -0
- /package/{src → dist}/index.d.ts +0 -0
- /package/{styles → dist/styles}/editor.css +0 -0
- /package/{styles → dist/styles}/index.css +0 -0
- /package/{src → dist}/types/common.d.ts +0 -0
- /package/{src → dist}/utils/array.utils.d.ts +0 -0
- /package/{src → dist}/utils/array.utils.spec.d.ts +0 -0
- /package/{src → dist}/utils/compoundMapper.d.ts +0 -0
- /package/{src → dist}/utils/compoundMapper.spec.d.ts +0 -0
- /package/{src → dist}/utils/date-time.utils.d.ts +0 -0
- /package/{src → dist}/utils/date-time.utils.spec.d.ts +0 -0
- /package/{src → dist}/utils/date.utils.d.ts +0 -0
- /package/{src → dist}/utils/date.utils.spec.d.ts +0 -0
- /package/{src → dist}/utils/dom.utils.d.ts +0 -0
- /package/{src → dist}/utils/file.utils.d.ts +0 -0
- /package/{src → dist}/utils/isEqual.d.ts +0 -0
- /package/{src → dist}/utils/logger.d.ts +0 -0
- /package/{src → dist}/utils/object.utils.d.ts +0 -0
- /package/{src → dist}/utils/queries.utils.d.ts +0 -0
- /package/{src → dist}/utils/rest.utils.d.ts +0 -0
- /package/{src → dist}/utils/routing.utils.d.ts +0 -0
- /package/{src → dist}/utils/string.utils.d.ts +0 -0
- /package/{src → dist}/utils/vendor/acl/Can.d.ts +0 -0
- /package/{src → dist}/utils/vendor/acl/ability.context.d.ts +0 -0
- /package/{src → dist}/utils/vendor/acl/appAbility.types.d.ts +0 -0
- /package/{src → dist}/utils/vendor/auth/AuthGuard.d.ts +0 -0
- /package/{src → dist}/utils/vendor/auth/auth.context.d.ts +0 -0
- /package/{src → dist}/utils/vendor/error-handling.d.ts +0 -0
- /package/{src → dist}/utils/vendor/rest-client.types.d.ts +0 -0
- /package/{src → dist}/utils/vendor/rest-interceptor.d.ts +0 -0
- /package/{src → dist}/utils/zod.utils.d.ts +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
const HighlightOnIcon = ({ highlightColor, ...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(
|
|
12
|
+
"path",
|
|
13
|
+
{
|
|
14
|
+
d: "M14.3021 12.1445L11.7021 9.54447L7.75955 13.4867C7.70188 13.5444 7.67305 13.6149 7.67305 13.6982C7.67305 13.7816 7.70188 13.8521 7.75955 13.91L9.92105 16.0867C9.97888 16.1444 10.0495 16.1732 10.1328 16.1732C10.2161 16.1732 10.2866 16.1444 10.3443 16.0867L14.3021 12.1445ZM12.7711 8.49072L15.3558 11.0752L19.6251 6.82147C19.6827 6.76381 19.7116 6.69006 19.7116 6.60022C19.7116 6.51039 19.6827 6.43664 19.6251 6.37897L17.4673 4.22147C17.4096 4.16381 17.336 4.13497 17.2463 4.13497C17.1565 4.13497 17.0827 4.16381 17.0251 4.22147L12.7711 8.49072ZM11.1903 7.94847L15.8981 12.656L11.4136 17.156C11.0519 17.5175 10.6275 17.6982 10.1403 17.6982C9.65313 17.6982 9.2288 17.5175 8.8673 17.156L8.77105 17.0597L8.3673 17.4482C8.20313 17.5919 8.01755 17.7054 7.81055 17.7887C7.60355 17.8721 7.3898 17.9137 7.1693 17.9137H5.0713C4.86363 17.9137 4.72038 17.8217 4.64155 17.6377C4.56255 17.4537 4.5968 17.2881 4.7443 17.1407L6.81355 15.0867L6.73655 15.01C6.37505 14.6483 6.18913 14.2188 6.1788 13.7215C6.16863 13.224 6.3443 12.7945 6.7058 12.433L11.1903 7.94847ZM11.1903 7.94847L15.9808 3.15797C16.3423 2.79647 16.7666 2.61572 17.2538 2.61572C17.741 2.61572 18.1654 2.79647 18.5271 3.15797L20.7038 5.31947C21.0653 5.68097 21.2461 6.10531 21.2461 6.59247C21.2461 7.07964 21.0653 7.50397 20.7038 7.86547L15.8981 12.656L11.1903 7.94847Z",
|
|
15
|
+
fill: "currentColor"
|
|
16
|
+
}
|
|
17
|
+
),
|
|
18
|
+
/* @__PURE__ */ jsx(
|
|
19
|
+
"path",
|
|
20
|
+
{
|
|
21
|
+
d: "M2.84872 23.741C3.02105 23.9135 3.23613 23.9998 3.49397 23.9998H20.686C20.9438 23.9998 21.1589 23.9135 21.3312 23.741C21.5037 23.5687 21.59 23.3537 21.59 23.096V21.1728C21.59 20.9151 21.5037 20.7001 21.3312 20.5278C21.1589 20.3553 20.9438 20.269 20.686 20.269H3.49397C3.23613 20.269 3.02105 20.3553 2.84872 20.5278C2.67622 20.7001 2.58997 20.9151 2.58997 21.1728V23.096C2.58997 23.3537 2.67622 23.5687 2.84872 23.741Z",
|
|
22
|
+
fill: highlightColor || "black"
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
] })
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
export {
|
|
29
|
+
HighlightOnIcon
|
|
30
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const InfoIcon = (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: "M12 7.8a1 1 0 0 1 1 1V12a1 1 0 1 1-2 0V8.8a1 1 0 0 1 1-1M12 14.2a1 1 0 1 0 0 2h.008a1 1 0 1 0 0-2z"
|
|
16
|
+
}
|
|
17
|
+
),
|
|
18
|
+
/* @__PURE__ */ jsx(
|
|
19
|
+
"path",
|
|
20
|
+
{
|
|
21
|
+
fill: "currentColor",
|
|
22
|
+
fillRule: "evenodd",
|
|
23
|
+
d: "M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0m9-7a7 7 0 1 0 0 14 7 7 0 0 0 0-14",
|
|
24
|
+
clipRule: "evenodd"
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
export {
|
|
31
|
+
InfoIcon
|
|
32
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const ItalicIcon = (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
|
+
d: "M6.743 19a.92.92 0 0 1-.678-.277.92.92 0 0 1-.277-.679q0-.401.277-.678a.92.92 0 0 1 .678-.276H9.82l3.424-10.18h-3.078a.92.92 0 0 1-.678-.277.92.92 0 0 1-.277-.679.92.92 0 0 1 .277-.678.92.92 0 0 1 .678-.276h7.762q.4 0 .678.277a.92.92 0 0 1 .277.679.92.92 0 0 1-.277.678.92.92 0 0 1-.678.276h-2.754l-3.423 10.18h2.753q.4 0 .678.277.277.277.277.679a.92.92 0 0 1-.277.678.92.92 0 0 1-.678.276z"
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
ItalicIcon
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const LinkIcon = (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: "M7.039 16.538q-1.884 0-3.211-1.327Q2.5 13.883 2.5 12q0-1.883 1.328-3.212 1.328-1.328 3.21-1.328h3.02q.318 0 .534.216a.73.73 0 0 1 .216.535q0 .318-.216.534a.73.73 0 0 1-.534.215h-3.02q-1.26 0-2.149.89A2.93 2.93 0 0 0 4 12q0 1.26.89 2.149.888.89 2.147.89h3.02q.32 0 .535.215a.73.73 0 0 1 .216.535q0 .318-.216.534a.73.73 0 0 1-.534.215zM9 12.75a.73.73 0 0 1-.534-.216A.73.73 0 0 1 8.25 12q0-.32.216-.535A.73.73 0 0 1 9 11.25h6q.319 0 .534.216a.73.73 0 0 1 .216.534q0 .319-.216.534a.73.73 0 0 1-.534.216zm4.942 3.788a.73.73 0 0 1-.534-.215.73.73 0 0 1-.216-.535q0-.319.216-.534a.73.73 0 0 1 .534-.216h3.02q1.26 0 2.148-.89Q20 13.26 20 12t-.89-2.15a2.93 2.93 0 0 0-2.147-.889h-3.02a.73.73 0 0 1-.535-.215.73.73 0 0 1-.216-.535q0-.318.216-.534a.73.73 0 0 1 .534-.216h3.02q1.883 0 3.21 1.328 1.328 1.328 1.328 3.21 0 1.884-1.328 3.211-1.327 1.328-3.21 1.328z"
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
LinkIcon
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const MenuIcon = (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: "M2 6a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1M2 12a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1M3 17a1 1 0 1 0 0 2h18a1 1 0 1 0 0-2z"
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
MenuIcon
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const NumberedListIcon = (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
|
+
d: "M4.432 21.5a.58.58 0 0 1-.596-.596.58.58 0 0 1 .596-.596h1.904V19.25h-.904a.58.58 0 0 1-.596-.596.58.58 0 0 1 .596-.596h.904V17H4.432a.58.58 0 0 1-.596-.596.58.58 0 0 1 .596-.596h2.25q.36 0 .603.243a.82.82 0 0 1 .243.603v1.192q0 .36-.243.603a.82.82 0 0 1-.603.243q.36 0 .603.244a.82.82 0 0 1 .243.602v1.116q0 .36-.243.603a.82.82 0 0 1-.603.243zm.087-6.654a.66.66 0 0 1-.485-.198.66.66 0 0 1-.198-.484V12.25q0-.36.243-.603a.82.82 0 0 1 .603-.243h1.654v-1.058H4.432a.58.58 0 0 1-.596-.595.58.58 0 0 1 .596-.597h2.25q.36 0 .603.243a.82.82 0 0 1 .243.603v1.75a.82.82 0 0 1-.243.603.82.82 0 0 1-.603.243H5.028v1.058h1.904a.58.58 0 0 1 .596.595.58.58 0 0 1-.596.597zm1.414-6.654a.58.58 0 0 1-.597-.596V3.692h-.904a.58.58 0 0 1-.596-.595.58.58 0 0 1 .596-.597h1.423q.286 0 .48.193a.65.65 0 0 1 .193.48v4.423a.58.58 0 0 1-.595.596m4.46 10.558a.73.73 0 0 1-.534-.216.73.73 0 0 1-.215-.534q0-.32.215-.535a.73.73 0 0 1 .535-.215h9.692q.318 0 .534.216a.73.73 0 0 1 .216.534q0 .32-.216.535a.73.73 0 0 1-.534.215zm0-6a.73.73 0 0 1-.534-.216.73.73 0 0 1-.215-.534q0-.32.215-.534a.73.73 0 0 1 .535-.216h9.692q.318 0 .534.216a.73.73 0 0 1 .216.534q0 .32-.216.534a.73.73 0 0 1-.534.216zm0-6a.73.73 0 0 1-.534-.216A.73.73 0 0 1 9.644 6q0-.32.215-.535a.73.73 0 0 1 .535-.215h9.692q.318 0 .534.216a.73.73 0 0 1 .216.534q0 .32-.216.535a.73.73 0 0 1-.534.215z"
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
NumberedListIcon
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const PointerHorizontalIcon = (props) => /* @__PURE__ */ jsx(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 20 10",
|
|
8
|
+
className: "fill-current",
|
|
9
|
+
...props,
|
|
10
|
+
children: /* @__PURE__ */ jsx(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
fill: "currentColor",
|
|
14
|
+
d: "M8.586 1.414a2 2 0 0 1 2.828 0L20 10H0z"
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
PointerHorizontalIcon
|
|
21
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const PointerVerticalIcon = (props) => /* @__PURE__ */ jsx(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
fill: "none",
|
|
7
|
+
viewBox: "0 0 10 20",
|
|
8
|
+
className: "fill-current",
|
|
9
|
+
...props,
|
|
10
|
+
children: /* @__PURE__ */ jsx(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
fill: "currentColor",
|
|
14
|
+
d: "M1.414 11.414a2 2 0 0 1 0-2.828L10 0v20z"
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
PointerVerticalIcon
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const SendIcon = (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: "M5.105 7.59c-1.092-1.712.764-3.774 2.58-2.866l10.973 5.487c1.474.737 1.474 2.84 0 3.578L7.685 19.275c-1.816.908-3.672-1.154-2.58-2.865L7.92 12zM17.764 12 6.79 6.513l2.815 4.41a2 2 0 0 1 0 2.153l-2.815 4.41z",
|
|
16
|
+
clipRule: "evenodd"
|
|
17
|
+
}
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
SendIcon
|
|
23
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const StrikethroughIcon = (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: "M3.833 13.624a.68.68 0 0 1-.498-.2.68.68 0 0 1-.202-.5q0-.297.202-.499.201-.2.498-.2h16.334q.297 0 .498.2.202.202.202.5a.68.68 0 0 1-.202.498q-.201.201-.498.201zm7.18-3.248V6.983H6.929a.95.95 0 0 1-.699-.288.95.95 0 0 1-.288-.7q0-.412.288-.703A.95.95 0 0 1 6.93 5h10.15q.411 0 .699.288a.95.95 0 0 1 .288.7q0 .413-.288.704a.95.95 0 0 1-.7.291h-4.083v3.393zm0 5.097h1.983v2.54a.95.95 0 0 1-.288.7.95.95 0 0 1-.7.287.96.96 0 0 1-.703-.29.96.96 0 0 1-.292-.706z"
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
StrikethroughIcon
|
|
21
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
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,2 +1,2 @@
|
|
|
1
|
-
import { MenuProps } from '
|
|
1
|
+
import { MenuProps } from './Menu';
|
|
2
2
|
export declare const MenuDesktop: ({ trigger, items, closeDelay, triggerOnHover }: MenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,68 @@
|
|
|
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 = ({ trigger, items, closeDelay = CLOSE_DELAY, triggerOnHover = false }) => {
|
|
8
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
9
|
+
const timeoutRef = useRef(null);
|
|
10
|
+
const isHoveringTrigger = useRef(false);
|
|
11
|
+
const openMenu = () => {
|
|
12
|
+
if (timeoutRef.current) {
|
|
13
|
+
clearTimeout(timeoutRef.current);
|
|
14
|
+
timeoutRef.current = null;
|
|
15
|
+
}
|
|
16
|
+
setIsOpen(true);
|
|
17
|
+
};
|
|
18
|
+
const closeMenu = () => {
|
|
19
|
+
if (isHoveringTrigger.current) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
timeoutRef.current = setTimeout(() => {
|
|
23
|
+
setIsOpen(false);
|
|
24
|
+
timeoutRef.current = null;
|
|
25
|
+
}, closeDelay);
|
|
26
|
+
};
|
|
27
|
+
const { hoverProps } = useHover({
|
|
28
|
+
isDisabled: !triggerOnHover,
|
|
29
|
+
onHoverChange: (isHovering) => {
|
|
30
|
+
if (isHovering) {
|
|
31
|
+
isHoveringTrigger.current = true;
|
|
32
|
+
openMenu();
|
|
33
|
+
} else {
|
|
34
|
+
isHoveringTrigger.current = false;
|
|
35
|
+
closeMenu();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
let triggerComponent = trigger;
|
|
40
|
+
if (triggerOnHover) {
|
|
41
|
+
triggerComponent = React.cloneElement(trigger, hoverProps);
|
|
42
|
+
}
|
|
43
|
+
return /* @__PURE__ */ jsxs(
|
|
44
|
+
MenuTrigger,
|
|
45
|
+
{
|
|
46
|
+
isOpen: triggerOnHover ? isOpen : void 0,
|
|
47
|
+
onOpenChange: setIsOpen,
|
|
48
|
+
children: [
|
|
49
|
+
triggerComponent,
|
|
50
|
+
/* @__PURE__ */ jsx(
|
|
51
|
+
MenuPopover,
|
|
52
|
+
{
|
|
53
|
+
offset: 0,
|
|
54
|
+
className: "pt-2",
|
|
55
|
+
items,
|
|
56
|
+
isOpen: triggerOnHover ? isOpen : void 0,
|
|
57
|
+
isNonModal: triggerOnHover,
|
|
58
|
+
onMouseEnter: triggerOnHover ? openMenu : void 0,
|
|
59
|
+
onMouseLeave: triggerOnHover ? closeMenu : void 0
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
MenuDesktop
|
|
68
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MenuItem as MenuItemType } from '
|
|
1
|
+
import { MenuItem as MenuItemType } from './Menu';
|
|
2
2
|
type MenuListItemProps = MenuItemType;
|
|
3
3
|
export declare const MenuItem: ({ label, content, children, ...item }: MenuListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const menuItemClass: string;
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
const MenuItem = ({ label, content, children, ...item }) => {
|
|
6
|
+
const hasSubmenu = !!children && children?.length > 0;
|
|
7
|
+
return /* @__PURE__ */ jsxs(
|
|
8
|
+
MenuItem$1,
|
|
9
|
+
{
|
|
10
|
+
...item,
|
|
11
|
+
textValue: label,
|
|
12
|
+
"aria-label": label,
|
|
13
|
+
className: clsx(menuItemClass, item.className),
|
|
14
|
+
children: [
|
|
15
|
+
content ?? label,
|
|
16
|
+
hasSubmenu && /* @__PURE__ */ jsx(ArrowRightIcon, { className: "size-6" })
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
const menuItemClass = clsx(
|
|
22
|
+
"flex cursor-pointer items-center justify-between gap-list-gap-checkbox-to-label px-list-side-item py-list-height-item",
|
|
23
|
+
"border-b border-b-elevation-outline-default-1 outline-none last:border-b-0",
|
|
24
|
+
"bg-elevation-fill-default-1 text-interactive-text-secondary-idle",
|
|
25
|
+
"disabled:cursor-default disabled:text-interactive-text-secondary-disabled",
|
|
26
|
+
"hover:bg-elevation-fill-default-1 hover:text-interactive-text-secondary-hover",
|
|
27
|
+
"open:bg-interactive-contained-primary-idle open:text-interactive-text-secondary-idle-inverted",
|
|
28
|
+
"focus-visible:bg-elevation-fill-default-1 focus-visible:text-interactive-text-secondary-hover"
|
|
29
|
+
);
|
|
30
|
+
export {
|
|
31
|
+
MenuItem,
|
|
32
|
+
menuItemClass
|
|
33
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MenuProps } from '
|
|
1
|
+
import { MenuProps } from './Menu';
|
|
2
2
|
export declare const MenuMobile: ({ trigger, items }: MenuProps) => import("react/jsx-runtime").JSX.Element;
|