@povio/ui 2.1.22 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{rolldown_runtime.js → _virtual/rolldown:runtime.js} +17 -2
- package/dist/assets/icons/{ViewOff.d.ts → Account.d.ts} +1 -1
- package/dist/{ArrowDropDown.js → assets/icons/ArrowDropDown.js} +1 -1
- package/dist/{ArrowDropUp.js → assets/icons/ArrowDropUp.js} +1 -1
- package/dist/{ArrowLeft.js → assets/icons/ArrowLeft.js} +1 -1
- package/dist/{ArrowRight.js → assets/icons/ArrowRight.js} +1 -1
- package/dist/assets/icons/Board.d.ts +2 -0
- package/dist/assets/icons/Calendar.js +15 -0
- package/dist/{Check.js → assets/icons/Check.js} +1 -1
- package/dist/assets/icons/CheckCircle.js +13 -0
- package/dist/{ChevronDown.js → assets/icons/ChevronDown.js} +1 -1
- package/dist/{ChevronUp.js → assets/icons/ChevronUp.js} +1 -1
- package/dist/assets/icons/Clock.js +13 -0
- package/dist/assets/icons/DateTime.js +16 -0
- package/dist/assets/icons/DragIndicator.d.ts +2 -0
- package/dist/{Drag.js → assets/icons/DragIndicator.js} +2 -2
- package/dist/assets/icons/{Drag.d.ts → Edit.d.ts} +1 -1
- package/dist/assets/icons/Emoji.d.ts +2 -0
- package/dist/assets/icons/File.js +15 -0
- package/dist/assets/icons/{View.d.ts → Grid.d.ts} +1 -1
- package/dist/{HighlightOn.js → assets/icons/HighlightOn.js} +1 -1
- package/dist/assets/icons/Home.d.ts +2 -0
- package/dist/assets/icons/Home.js +13 -0
- package/dist/assets/icons/Image.d.ts +2 -0
- package/dist/assets/icons/ImageError.d.ts +2 -0
- package/dist/{Info.js → assets/icons/Info.js} +2 -2
- package/dist/assets/icons/Loader.d.ts +2 -0
- package/dist/assets/icons/MapPin.d.ts +2 -0
- package/dist/assets/icons/Menu.js +13 -0
- package/dist/assets/icons/Minus.d.ts +2 -0
- package/dist/assets/icons/MoreHoriz.d.ts +2 -0
- package/dist/assets/icons/Pause.d.ts +2 -0
- package/dist/assets/icons/Plus.d.ts +2 -0
- package/dist/assets/icons/Retry.d.ts +2 -0
- package/dist/assets/icons/Search.d.ts +2 -0
- package/dist/assets/icons/Share.d.ts +2 -0
- package/dist/assets/icons/Slash.d.ts +2 -0
- package/dist/{TextColor.js → assets/icons/TextColor.js} +1 -1
- package/dist/assets/icons/Trash.d.ts +2 -0
- package/dist/assets/icons/User.d.ts +2 -0
- package/dist/assets/icons/Visibility.d.ts +2 -0
- package/dist/assets/icons/Visibility.js +13 -0
- package/dist/assets/icons/VisibilityOff.d.ts +2 -0
- package/dist/assets/icons/VisibilityOff.js +13 -0
- package/dist/assets/icons/WarningOutlined.d.ts +2 -0
- package/dist/{translation.js → assets/locales/en/translation.json.js} +0 -8
- package/dist/{translation2.js → assets/locales/sl/translation.json.js} +0 -7
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +15 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +111 -0
- package/dist/components/Breadcrumbs/breadcrumbs.cva.d.ts +19 -0
- package/dist/components/Breadcrumbs/breadcrumbs.cva.js +22 -0
- package/dist/components/Menu/Menu.d.ts +2 -3
- package/dist/{Menu2.js → components/Menu/Menu.js} +1 -1
- package/dist/components/Menu/MenuDesktop.d.ts +1 -1
- package/dist/components/Menu/MenuDesktop.js +12 -0
- package/dist/{MenuItem.js → components/Menu/MenuItem.js} +3 -3
- package/dist/{MenuMobile.js → components/Menu/MenuMobile.js} +5 -5
- package/dist/{MenuPopover.js → components/Menu/MenuPopover.js} +3 -3
- package/dist/{menu.cva.js → components/Menu/menu.cva.js} +2 -3
- package/dist/components/buttons/Button/Button.d.ts +3 -3
- package/dist/components/buttons/Button/Button.js +48 -0
- package/dist/{button.cva.js → components/buttons/Button/button.cva.js} +3 -12
- package/dist/components/buttons/IconButton/IconButton.d.ts +1 -1
- package/dist/components/buttons/IconButton/IconButton.js +17 -0
- package/dist/{InlineIconButton.js → components/buttons/InlineIconButton/InlineIconButton.js} +2 -2
- package/dist/components/buttons/PillButton/PillButton.d.ts +3 -2
- package/dist/components/buttons/PillButton/PillButton.js +33 -0
- package/dist/{pillButton.cva.js → components/buttons/PillButton/pillButton.cva.js} +5 -5
- package/dist/{SplitButton.js → components/buttons/SplitButton/SplitButton.js} +5 -5
- package/dist/components/buttons/TextButton/TextButton.d.ts +0 -1
- package/dist/{TextButton.js → components/buttons/TextButton/TextButton.js} +2 -3
- package/dist/components/buttons/ToggleButton/ToggleButton.d.ts +0 -1
- package/dist/{ToggleButton.js → components/buttons/ToggleButton/ToggleButton.js} +2 -3
- package/dist/components/buttons/shared/ButtonContent.d.ts +3 -5
- package/dist/components/buttons/shared/ButtonContent.js +35 -0
- package/dist/components/buttons/shared/buttonContent.cva.d.ts +4 -0
- package/dist/components/buttons/shared/buttonContent.cva.js +36 -0
- package/dist/{Checkbox.js → components/inputs/Checkbox/Checkbox.js} +7 -7
- package/dist/{CheckboxCheckmark2.js → components/inputs/Checkbox/CheckboxCheckmark.js} +4 -4
- package/dist/{checkbox.cva.js → components/inputs/Checkbox/checkbox.cva.js} +2 -2
- package/dist/{DatePicker.js → components/inputs/DateTime/DatePicker/DatePicker.js} +11 -11
- package/dist/{DateRangePicker.js → components/inputs/DateTime/DateRangePicker/DateRangePicker.js} +15 -15
- package/dist/{DateTimePicker.js → components/inputs/DateTime/DateTimePicker/DateTimePicker.js} +11 -11
- package/dist/{TimePicker.js → components/inputs/DateTime/TimePicker/TimePicker.js} +10 -10
- package/dist/{Calendar2.js → components/inputs/DateTime/shared/Calendar.js} +1 -1
- package/dist/{CalendarCell.js → components/inputs/DateTime/shared/CalendarCell.js} +2 -2
- package/dist/{CalendarGrid.js → components/inputs/DateTime/shared/CalendarGrid.js} +2 -2
- package/dist/{CalendarHeader.js → components/inputs/DateTime/shared/CalendarHeader.js} +5 -5
- package/dist/{CalendarSelectHeader.js → components/inputs/DateTime/shared/CalendarSelectHeader.js} +9 -9
- package/dist/{DateField.js → components/inputs/DateTime/shared/DateField.js} +1 -1
- package/dist/{DatePickerInput.js → components/inputs/DateTime/shared/DatePickerInput.js} +12 -12
- package/dist/{DateTimeDialog.js → components/inputs/DateTime/shared/DateTimeDialog.js} +4 -4
- package/dist/{DateTimeDialogFooter.js → components/inputs/DateTime/shared/DateTimeDialogFooter.js} +2 -2
- package/dist/{MonthPicker.js → components/inputs/DateTime/shared/MonthPicker.js} +1 -1
- package/dist/{TimePickerForm.js → components/inputs/DateTime/shared/TimePickerForm.js} +6 -6
- package/dist/{TimePickerInput.js → components/inputs/DateTime/shared/TimePickerInput.js} +9 -9
- package/dist/{YearPicker.js → components/inputs/DateTime/shared/YearPicker.js} +3 -3
- package/dist/{FileUpload.js → components/inputs/File/FileUpload.js} +11 -11
- package/dist/{InputUpload.js → components/inputs/File/InputUpload.js} +7 -7
- package/dist/components/inputs/File/fileUpload.types.d.ts +1 -1
- package/dist/{FileUploadContent.js → components/inputs/File/shared/FileUploadContent.js} +1 -1
- package/dist/{FileUploadContentEmpty.js → components/inputs/File/shared/FileUploadContentEmpty.js} +4 -4
- package/dist/{FileUploadContentError.js → components/inputs/File/shared/FileUploadContentError.js} +7 -7
- package/dist/{FileUploadContentFilled.js → components/inputs/File/shared/FileUploadContentFilled.js} +8 -8
- package/dist/{FileUploadContentLoading.js → components/inputs/File/shared/FileUploadContentLoading.js} +7 -7
- package/dist/{InputUploadContent.js → components/inputs/File/shared/InputUploadContent.js} +9 -9
- package/dist/{InputUploadFilled.js → components/inputs/File/shared/InputUploadFilled.js} +5 -5
- package/dist/{ProgressBar.js → components/inputs/File/shared/ProgressBar.js} +1 -1
- package/dist/{fileUpload.cva.js → components/inputs/File/shared/fileUpload.cva.js} +1 -1
- package/dist/{inputUploadButton.cva.js → components/inputs/File/shared/inputUploadButton.cva.js} +1 -1
- package/dist/{FormFieldError.js → components/inputs/FormField/FormFieldError.js} +1 -1
- package/dist/{FormFieldHeader.js → components/inputs/FormField/FormFieldHeader.js} +3 -3
- package/dist/{FormFieldHeaderClose.js → components/inputs/FormField/FormFieldHeaderClose.js} +2 -2
- package/dist/{FormFieldLabel.js → components/inputs/FormField/FormFieldLabel.js} +4 -4
- package/dist/{NumberInput.js → components/inputs/Input/NumberInput/NumberInput.js} +8 -8
- package/dist/{PasswordInput.js → components/inputs/Input/PasswordInput/PasswordInput.js} +5 -5
- package/dist/{TextArea.js → components/inputs/Input/TextArea/TextArea.js} +10 -10
- package/dist/{TextInput.js → components/inputs/Input/TextInput/TextInput.js} +8 -8
- package/dist/{InputContent.js → components/inputs/Input/shared/InputContent.js} +7 -7
- package/dist/{Form.js → components/inputs/Inputs/Form.js} +4 -4
- package/dist/components/inputs/Inputs/InputItem.d.ts +1 -1
- package/dist/{InputItem.js → components/inputs/Inputs/InputItem.js} +15 -15
- package/dist/{RadioGroup.js → components/inputs/RadioGroup/RadioGroup.js} +6 -6
- package/dist/{radio.cva.js → components/inputs/RadioGroup/radio.cva.js} +2 -12
- package/dist/{Autocomplete.js → components/inputs/Selection/Autocomplete/Autocomplete.js} +2 -2
- package/dist/{QueryAutocomplete.js → components/inputs/Selection/Autocomplete/QueryAutocomplete.js} +1 -1
- package/dist/{Select.js → components/inputs/Selection/Select/Select.js} +2 -2
- package/dist/{SelectBase.js → components/inputs/Selection/shared/SelectBase.js} +2 -2
- package/dist/{SelectDesktop.js → components/inputs/Selection/shared/SelectDesktop.js} +4 -4
- package/dist/{SelectInput.js → components/inputs/Selection/shared/SelectInput.js} +9 -9
- package/dist/{SelectInputTags.js → components/inputs/Selection/shared/SelectInputTags.js} +1 -1
- package/dist/{SelectListBox.js → components/inputs/Selection/shared/SelectListBox.js} +1 -1
- package/dist/{SelectListBoxItem.js → components/inputs/Selection/shared/SelectListBoxItem.js} +4 -4
- package/dist/{SelectListBoxItemSelectAll.js → components/inputs/Selection/shared/SelectListBoxItemSelectAll.js} +3 -3
- package/dist/{SelectListBoxLoadingItem.js → components/inputs/Selection/shared/SelectListBoxLoadingItem.js} +4 -4
- package/dist/{SelectListBoxSelectionBar.js → components/inputs/Selection/shared/SelectListBoxSelectionBar.js} +2 -2
- package/dist/{SelectMobile.js → components/inputs/Selection/shared/SelectMobile.js} +7 -7
- package/dist/{select.context.js → components/inputs/Selection/shared/select.context.js} +2 -2
- package/dist/{Slider.js → components/inputs/Slider/Slider.js} +6 -6
- package/dist/{TextEditor.js → components/inputs/TextEditor/TextEditor.js} +6 -6
- package/dist/{ColorPickerDropdown.js → components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js} +4 -4
- package/dist/{HyperlinkAction.js → components/inputs/TextEditor/Toolbar/HyperlinkAction.js} +6 -6
- package/dist/{TextAlignSelect.js → components/inputs/TextEditor/Toolbar/TextAlignSelect.js} +6 -6
- package/dist/{TextColorSelect.js → components/inputs/TextEditor/Toolbar/TextColorSelect.js} +2 -2
- package/dist/{TextHighlightSelect.js → components/inputs/TextEditor/Toolbar/TextHighlightSelect.js} +3 -3
- package/dist/{TextListActions.js → components/inputs/TextEditor/Toolbar/TextListActions.js} +4 -4
- package/dist/{TextMarksActions.js → components/inputs/TextEditor/Toolbar/TextMarksActions.js} +6 -6
- package/dist/{TextStyleSelect.js → components/inputs/TextEditor/Toolbar/TextStyleSelect.js} +3 -3
- package/dist/{Toggle.js → components/inputs/Toggle/Toggle.js} +6 -6
- package/dist/{toggle.cva.js → components/inputs/Toggle/toggle.cva.js} +2 -2
- package/dist/{CheckContent.js → components/inputs/shared/CheckContent.js} +3 -3
- package/dist/{InputClear.js → components/inputs/shared/InputClear.js} +3 -3
- package/dist/{TooltipWrapper.js → components/inputs/shared/TooltipWrapper.js} +1 -1
- package/dist/components/inputs/shared/input.cva.d.ts +4 -4
- package/dist/{input.cva.js → components/inputs/shared/input.cva.js} +33 -33
- package/dist/components/inputs/shared/label.cva.d.ts +2 -2
- package/dist/{label.cva.js → components/inputs/shared/label.cva.js} +2 -2
- package/dist/components/navigation/Accordion/Accordion.d.ts +3 -0
- package/dist/components/navigation/Accordion/Accordion.js +32 -0
- package/dist/components/navigation/Accordion/AccordionItem.d.ts +2 -0
- package/dist/components/navigation/Accordion/AccordionItem.js +62 -0
- package/dist/components/navigation/Accordion/accordion.cva.d.ts +45 -0
- package/dist/components/navigation/Accordion/accordion.cva.js +97 -0
- package/dist/components/navigation/Accordion/accordion.types.d.ts +52 -0
- package/dist/components/navigation/Stepper/Stepper.d.ts +2 -0
- package/dist/components/navigation/Stepper/Stepper.js +32 -0
- package/dist/components/navigation/Stepper/StepperItem.d.ts +2 -0
- package/dist/components/navigation/Stepper/StepperItem.js +52 -0
- package/dist/components/navigation/Stepper/StepperSeparator.d.ts +5 -0
- package/dist/components/navigation/Stepper/StepperSeparator.js +10 -0
- package/dist/components/navigation/Stepper/stepper.cva.d.ts +37 -0
- package/dist/components/navigation/Stepper/stepper.cva.js +93 -0
- package/dist/components/navigation/Stepper/stepper.types.d.ts +41 -0
- package/dist/{ActionModal.js → components/overlays/ActionModal/ActionModal.js} +4 -4
- package/dist/{BottomSheet.js → components/overlays/BottomSheet/BottomSheet.js} +8 -8
- package/dist/{Drawer.js → components/overlays/Drawer/Drawer.js} +1 -1
- package/dist/{Modal.js → components/overlays/Modal/Modal.js} +4 -4
- package/dist/{ResponsivePopover.js → components/overlays/ResponsivePopover/ResponsivePopover.js} +4 -4
- package/dist/{Tooltip.js → components/overlays/Tooltip/Tooltip.js} +8 -7
- package/dist/components/overlays/Tooltip/TooltipEllipsis.d.ts +3 -2
- package/dist/{TooltipEllipsis.js → components/overlays/Tooltip/TooltipEllipsis.js} +2 -1
- package/dist/{tooltip.cva.js → components/overlays/Tooltip/tooltip.cva.js} +1 -1
- package/dist/{Segment.js → components/segment/Segment.js} +5 -5
- package/dist/{SegmentItem.js → components/segment/SegmentItem.js} +3 -3
- package/dist/{Pagination.js → components/shared/pagination/Pagination.js} +3 -3
- package/dist/{PaginationList.js → components/shared/pagination/PaginationList.js} +6 -6
- package/dist/{Alert.js → components/status/Alert/Alert.js} +4 -4
- package/dist/{Loader.js → components/status/Loader/Loader.js} +1 -1
- package/dist/{Toast.js → components/status/Toast/Toast.js} +6 -6
- package/dist/{toast.cva.js → components/status/Toast/toast.cva.js} +1 -1
- package/dist/{CellText.js → components/table/CellText.js} +1 -1
- package/dist/{ColumnConfig.js → components/table/ColumnConfig.js} +5 -5
- package/dist/{HeaderText.js → components/table/HeaderText.js} +1 -1
- package/dist/{InfiniteTable.js → components/table/InfiniteTable.js} +3 -3
- package/dist/{PaginatedTable.js → components/table/PaginatedTable.js} +2 -2
- package/dist/{Table.js → components/table/Table.js} +10 -10
- package/dist/{table.cva.js → components/table/table.cva.js} +1 -1
- package/dist/{Link2.js → components/text/Link/Link.js} +3 -3
- package/dist/{link.cva.js → components/text/Link/link.cva.js} +1 -1
- package/dist/components/text/Tag/Tag.d.ts +3 -1
- package/dist/components/text/Tag/Tag.js +38 -0
- package/dist/{tag.cva.js → components/text/Tag/tag.cva.js} +2 -2
- package/dist/{Typography.js → components/text/Typography/Typography.js} +2 -2
- package/dist/{confirmation.context.js → config/confirmation.context.js} +1 -1
- package/dist/config/i18n.d.ts +0 -15
- package/dist/config/i18n.js +8 -0
- package/dist/{theme.context.js → config/theme.context.js} +1 -1
- package/dist/{uiConfig.context.js → config/uiConfig.context.js} +2 -2
- package/dist/config/uiStyle.context.d.ts +31 -0
- package/dist/{dynamicColumns.js → helpers/dynamicColumns.js} +3 -3
- package/dist/{dynamicInputs.js → helpers/dynamicInputs.js} +2 -2
- package/dist/{useAutosave.js → hooks/useAutosave.js} +2 -2
- package/dist/{useDeepCompare.js → hooks/useDeepCompare.js} +1 -1
- package/dist/{useFilters.js → hooks/useFilters.js} +1 -1
- package/dist/{useForm.js → hooks/useForm.js} +1 -1
- package/dist/{useFormAutosave.js → hooks/useFormAutosave.js} +2 -2
- package/dist/{usePagination.js → hooks/usePagination.js} +1 -1
- package/dist/{useSorting.js → hooks/useSorting.js} +1 -1
- package/dist/{useStateAndRef.js → hooks/useStateAndRef.js} +1 -1
- package/dist/{useTableNav.js → hooks/useTableNav.js} +1 -1
- package/dist/index.d.ts +13 -7
- package/dist/index.js +138 -136
- package/dist/node_modules/.pnpm/motion@12.23.28_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/motion/dist/es/react.js +10 -0
- package/dist/text-editor.js +1 -1
- package/dist/types/error-handling.d.ts +6 -0
- package/dist/types/react-query.d.ts +1 -1
- package/package.json +2 -3
- package/dist/AclGuard.js +0 -12
- package/dist/AuthGuard.js +0 -22
- package/dist/Button.js +0 -54
- package/dist/ButtonContent.js +0 -28
- package/dist/Calendar.js +0 -15
- package/dist/Can.js +0 -13
- package/dist/CheckCircle.js +0 -13
- package/dist/Clock.js +0 -13
- package/dist/DateTime.js +0 -18
- package/dist/File.js +0 -15
- package/dist/IconButton.js +0 -12
- package/dist/Menu.js +0 -13
- package/dist/MenuDesktop.js +0 -54
- package/dist/PillButton.js +0 -37
- package/dist/Tag.js +0 -42
- package/dist/View.js +0 -13
- package/dist/ViewOff.js +0 -13
- package/dist/ability.context.js +0 -35
- package/dist/auth.context.js +0 -37
- package/dist/auth.d.ts +0 -6
- package/dist/auth.js +0 -6
- package/dist/buttonContent.cva.js +0 -10
- package/dist/error-handling.js +0 -99
- package/dist/i18n.js +0 -8
- package/dist/react.js +0 -6
- package/dist/rest-interceptor.js +0 -22
- package/dist/utils/vendor/acl/AclGuard.d.ts +0 -8
- package/dist/utils/vendor/acl/Can.d.ts +0 -9
- package/dist/utils/vendor/acl/ability.context.d.ts +0 -15
- package/dist/utils/vendor/acl/appAbility.types.d.ts +0 -3
- package/dist/utils/vendor/auth/AuthGuard.d.ts +0 -6
- package/dist/utils/vendor/auth/auth.context.d.ts +0 -22
- package/dist/utils/vendor/error-handling.d.ts +0 -21
- package/dist/utils/vendor/rest-client.types.d.ts +0 -23
- package/dist/utils/vendor/rest-interceptor.d.ts +0 -8
- package/dist/{AlignCenter.js → assets/icons/AlignCenter.js} +0 -0
- package/dist/{AlignLeft.js → assets/icons/AlignLeft.js} +0 -0
- package/dist/{AlignLeftRight.js → assets/icons/AlignLeftRight.js} +0 -0
- package/dist/{AlignRight.js → assets/icons/AlignRight.js} +0 -0
- package/dist/{Bold.js → assets/icons/Bold.js} +0 -0
- package/dist/{BulletedList.js → assets/icons/BulletedList.js} +0 -0
- package/dist/{CheckboxCheckmark.js → assets/icons/CheckboxCheckmark.js} +0 -0
- package/dist/{CheckboxIndeterminate.js → assets/icons/CheckboxIndeterminate.js} +0 -0
- package/dist/{ChevronLeft.js → assets/icons/ChevronLeft.js} +0 -0
- package/dist/{ChevronRight.js → assets/icons/ChevronRight.js} +0 -0
- package/dist/{ChevronsLeft.js → assets/icons/ChevronsLeft.js} +0 -0
- package/dist/{ChevronsRight.js → assets/icons/ChevronsRight.js} +0 -0
- package/dist/{Close.js → assets/icons/Close.js} +0 -0
- package/dist/{Highlight.js → assets/icons/Highlight.js} +0 -0
- package/dist/{Italic.js → assets/icons/Italic.js} +0 -0
- package/dist/{Link.js → assets/icons/Link.js} +0 -0
- package/dist/{NumberedList.js → assets/icons/NumberedList.js} +0 -0
- package/dist/{PointerHorizontal.js → assets/icons/PointerHorizontal.js} +0 -0
- package/dist/{PointerVertical.js → assets/icons/PointerVertical.js} +0 -0
- package/dist/{Send.js → assets/icons/Send.js} +0 -0
- package/dist/{Strikethrough.js → assets/icons/Strikethrough.js} +0 -0
- package/dist/{Today.js → assets/icons/Today.js} +0 -0
- package/dist/{Underlined.js → assets/icons/Underlined.js} +0 -0
- package/dist/{Upload.js → assets/icons/Upload.js} +0 -0
- package/dist/{WarningFilled.js → assets/icons/WarningFilled.js} +0 -0
- package/dist/{DateSegmentItem.js → components/inputs/DateTime/shared/DateSegmentItem.js} +0 -0
- package/dist/{RangeCalendar.js → components/inputs/DateTime/shared/RangeCalendar.js} +0 -0
- package/dist/{TimeField.js → components/inputs/DateTime/shared/TimeField.js} +0 -0
- package/dist/{FileUploadContainer.js → components/inputs/File/FileUploadContainer.js} +0 -0
- package/dist/{FileCard.js → components/inputs/File/shared/FileCard.js} +0 -0
- package/dist/{FileCardList.js → components/inputs/File/shared/FileCardList.js} +0 -0
- package/dist/{FormField.js → components/inputs/FormField/FormField.js} +0 -0
- package/dist/{Inputs.js → components/inputs/Inputs/Inputs.js} +0 -0
- package/dist/{useSelectItems.js → components/inputs/Selection/shared/useSelectItems.js} +1 -1
- /package/dist/{ColorPicker.js → components/inputs/TextEditor/Toolbar/ColorPicker.js} +0 -0
- /package/dist/{TextEditorToolbar.js → components/inputs/TextEditor/Toolbar/TextEditorToolbar.js} +0 -0
- /package/dist/{textEditor.types.js → components/inputs/TextEditor/textEditor.types.js} +0 -0
- /package/dist/{outline.clsx.js → components/outline.clsx.js} +0 -0
- /package/dist/{modal.cva.js → components/overlays/Modal/modal.cva.js} +0 -0
- /package/dist/{segment.cva.js → components/segment/segment.cva.js} +0 -0
- /package/dist/{minWidth.cva.js → components/shared/pagination/minWidth.cva.js} +0 -0
- /package/dist/{alert.cva.js → components/status/Alert/alert.cva.js} +0 -0
- /package/dist/{loader.cva.js → components/status/Loader/loader.cva.js} +0 -0
- /package/dist/{useToast.js → components/status/Toast/useToast.js} +0 -0
- /package/dist/{status.cva.js → components/status/shared/status.cva.js} +0 -0
- /package/dist/{typography.cva.js → components/text/Typography/typography.cva.js} +0 -0
- /package/dist/{link.context.js → config/link.context.js} +0 -0
- /package/dist/{router.context.js → config/router.context.js} +0 -0
- /package/dist/{uiStyle.context.js → config/uiStyle.context.js} +0 -0
- /package/dist/{useBreakpoint.js → hooks/useBreakpoint.js} +0 -0
- /package/dist/{useDebounceCallback.js → hooks/useDebounceCallback.js} +0 -0
- /package/dist/{useIntersectionObserver.js → hooks/useIntersectionObserver.js} +0 -0
- /package/dist/{useLocalStorage.js → hooks/useLocalStorage.js} +0 -0
- /package/dist/{useLongPressRepeat.js → hooks/useLongPressRepeat.js} +0 -0
- /package/dist/{useScrollableListBox.js → hooks/useScrollableListBox.js} +0 -0
- /package/dist/{useTableColumnConfig.js → hooks/useTableColumnConfig.js} +0 -0
- /package/dist/{useTranslationMemo.js → hooks/useTranslationMemo.js} +0 -0
- /package/dist/{array.utils.js → utils/array.utils.js} +0 -0
- /package/dist/{compoundMapper.js → utils/compoundMapper.js} +0 -0
- /package/dist/{date-time.utils.js → utils/date-time.utils.js} +0 -0
- /package/dist/{date.utils.js → utils/date.utils.js} +0 -0
- /package/dist/{dom.utils.js → utils/dom.utils.js} +0 -0
- /package/dist/{file.utils.js → utils/file.utils.js} +0 -0
- /package/dist/{isEqual.js → utils/isEqual.js} +0 -0
- /package/dist/{logger.js → utils/logger.js} +0 -0
- /package/dist/{object.utils.js → utils/object.utils.js} +0 -0
- /package/dist/{queries.utils.js → utils/queries.utils.js} +0 -0
- /package/dist/{rest.utils.js → utils/rest.utils.js} +0 -0
- /package/dist/{routing.utils.js → utils/routing.utils.js} +0 -0
- /package/dist/{string.utils.js → utils/string.utils.js} +0 -0
- /package/dist/{zod.utils.js → utils/zod.utils.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Typography } from "
|
|
2
|
-
import { ns } from "
|
|
3
|
-
import { NumberInput } from "
|
|
1
|
+
import { Typography } from "../../text/Typography/Typography.js";
|
|
2
|
+
import { ns } from "../../../config/i18n.js";
|
|
3
|
+
import { NumberInput } from "../../inputs/Input/NumberInput/NumberInput.js";
|
|
4
4
|
import { PaginationList } from "./PaginationList.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { clsx } from "clsx";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChevronLeftIcon } from "
|
|
2
|
-
import { ChevronRightIcon } from "
|
|
3
|
-
import { ChevronsLeftIcon } from "
|
|
4
|
-
import { ChevronsRightIcon } from "
|
|
5
|
-
import { Button } from "
|
|
6
|
-
import { ns } from "
|
|
1
|
+
import { ChevronLeftIcon } from "../../../assets/icons/ChevronLeft.js";
|
|
2
|
+
import { ChevronRightIcon } from "../../../assets/icons/ChevronRight.js";
|
|
3
|
+
import { ChevronsLeftIcon } from "../../../assets/icons/ChevronsLeft.js";
|
|
4
|
+
import { ChevronsRightIcon } from "../../../assets/icons/ChevronsRight.js";
|
|
5
|
+
import { Button } from "../../buttons/Button/Button.js";
|
|
6
|
+
import { ns } from "../../../config/i18n.js";
|
|
7
7
|
import { minWidth } from "./minWidth.cva.js";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { clsx } from "clsx";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
2
|
+
import { Typography } from "../../text/Typography/Typography.js";
|
|
3
|
+
import { Loader } from "../Loader/Loader.js";
|
|
4
4
|
import { alert } from "./alert.cva.js";
|
|
5
|
-
import { statusIcon, statusSeparator } from "
|
|
5
|
+
import { statusIcon, statusSeparator } from "../shared/status.cva.js";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
const Alert = ({ variant, color, text, isLoading = false, rightContent, hasSeparator, icon: Icon, className }) => {
|
|
8
8
|
const uiStyle = UIStyle.useConfig();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { loader, loaderWrapper } from "./loader.cva.js";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
const Loader = ({ size, className
|
|
3
|
+
const Loader = ({ size, className, ...props }) => {
|
|
4
4
|
return /* @__PURE__ */ jsx("div", {
|
|
5
5
|
className: loaderWrapper({
|
|
6
6
|
size,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Button } from "
|
|
5
|
-
import { statusIcon, statusSeparator } from "
|
|
1
|
+
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
2
|
+
import { Typography } from "../../text/Typography/Typography.js";
|
|
3
|
+
import { Loader } from "../Loader/Loader.js";
|
|
4
|
+
import { Button } from "../../buttons/Button/Button.js";
|
|
5
|
+
import { statusIcon, statusSeparator } from "../shared/status.cva.js";
|
|
6
6
|
import { buttonColorVariant, toast as toast$1, toastContainer, toastWrapper } from "./toast.cva.js";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { ToastContainer } from "react-toastify";
|
|
9
|
-
const Toast = ({ text, isLoading = false, actions = [], icon: Icon
|
|
9
|
+
const Toast = ({ text, isLoading = false, actions = [], icon: Icon, ...props }) => {
|
|
10
10
|
const uiStyle = UIStyle.useConfig();
|
|
11
11
|
const toastCva = uiStyle?.toast?.cva ?? toast$1;
|
|
12
12
|
const buttonColor = uiStyle?.toast?.buttonColor ?? buttonColorVariant;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { compoundMapper } from "
|
|
1
|
+
import { compoundMapper } from "../../../utils/compoundMapper.js";
|
|
2
2
|
import { clsx } from "clsx";
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
const toastContainer = cva("m-toast-gap-margin-mobile w-auto p-0 md:m-toast-gap-margin-desktop", { variants: { position: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Typography } from "
|
|
1
|
+
import { Typography } from "../text/Typography/Typography.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
const CellText = ({ children, style, className }) => /* @__PURE__ */ jsx(Typography, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Typography } from "
|
|
2
|
-
import { Checkbox } from "
|
|
3
|
-
import { ns } from "
|
|
4
|
-
import { Modal } from "
|
|
1
|
+
import { Typography } from "../text/Typography/Typography.js";
|
|
2
|
+
import { Checkbox } from "../inputs/Checkbox/Checkbox.js";
|
|
3
|
+
import { ns } from "../../config/i18n.js";
|
|
4
|
+
import { Modal } from "../overlays/Modal/Modal.js";
|
|
5
5
|
import { Table } from "./Table.js";
|
|
6
|
-
import { useTranslationMemo } from "
|
|
6
|
+
import { useTranslationMemo } from "../../hooks/useTranslationMemo.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useCallback, useEffect, useState } from "react";
|
|
9
9
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Loader } from "
|
|
2
|
-
import { useIntersectionObserver } from "
|
|
1
|
+
import { Loader } from "../status/Loader/Loader.js";
|
|
2
|
+
import { useIntersectionObserver } from "../../hooks/useIntersectionObserver.js";
|
|
3
3
|
import { Table } from "./Table.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { useCallback } from "react";
|
|
6
|
-
const InfiniteTable = ({ hasNextPage, isFetchingNextPage = false, fetchNextPage
|
|
6
|
+
const InfiniteTable = ({ hasNextPage, isFetchingNextPage = false, fetchNextPage, ...rest }) => {
|
|
7
7
|
const { ref } = useIntersectionObserver({
|
|
8
8
|
onIntersection: useCallback(() => {
|
|
9
9
|
if (!isFetchingNextPage && hasNextPage) fetchNextPage();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Pagination } from "
|
|
1
|
+
import { Pagination } from "../shared/pagination/Pagination.js";
|
|
2
2
|
import { Table } from "./Table.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
const PaginatedTable = ({ pagination, setPagination, items, totalItems
|
|
4
|
+
const PaginatedTable = ({ pagination, setPagination, items, totalItems, ...rest }) => {
|
|
5
5
|
return /* @__PURE__ */ jsxs("div", {
|
|
6
6
|
className: "flex flex-col gap-4",
|
|
7
7
|
children: [/* @__PURE__ */ jsx(Table, {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ChevronDownIcon } from "
|
|
2
|
-
import { ChevronUpIcon } from "
|
|
3
|
-
import { UIStyle } from "
|
|
4
|
-
import { InlineIconButton } from "
|
|
5
|
-
import { useIntersectionObserver } from "
|
|
1
|
+
import { ChevronDownIcon } from "../../assets/icons/ChevronDown.js";
|
|
2
|
+
import { ChevronUpIcon } from "../../assets/icons/ChevronUp.js";
|
|
3
|
+
import { UIStyle } from "../../config/uiStyle.context.js";
|
|
4
|
+
import { InlineIconButton } from "../buttons/InlineIconButton/InlineIconButton.js";
|
|
5
|
+
import { useIntersectionObserver } from "../../hooks/useIntersectionObserver.js";
|
|
6
6
|
import { CellText } from "./CellText.js";
|
|
7
|
-
import {
|
|
7
|
+
import { DragIndicatorIcon } from "../../assets/icons/DragIndicator.js";
|
|
8
8
|
import { HeaderText } from "./HeaderText.js";
|
|
9
|
-
import { useTableNav } from "
|
|
9
|
+
import { useTableNav } from "../../hooks/useTableNav.js";
|
|
10
10
|
import { tableData, tableHeadData, tableHeadRow, tableRow } from "./table.cva.js";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { clsx } from "clsx";
|
|
@@ -36,11 +36,11 @@ const RowDragHandleCell = ({ rowId }) => {
|
|
|
36
36
|
...listeners,
|
|
37
37
|
className: "cursor-move p-1",
|
|
38
38
|
label: "Drag handle",
|
|
39
|
-
icon:
|
|
39
|
+
icon: DragIndicatorIcon
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
42
|
var AutoDragHandleCell = ({ row }) => /* @__PURE__ */ jsx(RowDragHandleCell, { rowId: row.id });
|
|
43
|
-
var DraggableRow = ({ row, showCellBorder, onRowClick, onDoubleClick, tableRowCva, tableDataCva, hasOnClick
|
|
43
|
+
var DraggableRow = ({ row, showCellBorder, onRowClick, onDoubleClick, tableRowCva, tableDataCva, hasOnClick, ...props }) => {
|
|
44
44
|
const { transform, transition, setNodeRef, isDragging } = useSortable({ id: row.id });
|
|
45
45
|
return /* @__PURE__ */ jsx("tr", {
|
|
46
46
|
ref: setNodeRef,
|
|
@@ -69,7 +69,7 @@ var DraggableRow = ({ row, showCellBorder, onRowClick, onDoubleClick, tableRowCv
|
|
|
69
69
|
})
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
|
-
const Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, className, sorting, setSorting, columnOrder, setColumnOrder, columnVisibility, setColumnVisibility, bulkSelectionActions: ActionHeader, enableDragDrop = false, onDragEnd, onReorder, getRowId, enableRowSelection, enableMultiRowSelection = false, defaultSelectedRows, onRowSelectionChange
|
|
72
|
+
const Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, className, sorting, setSorting, columnOrder, setColumnOrder, columnVisibility, setColumnVisibility, bulkSelectionActions: ActionHeader, enableDragDrop = false, onDragEnd, onReorder, getRowId, enableRowSelection, enableMultiRowSelection = false, defaultSelectedRows, onRowSelectionChange, ...props }) => {
|
|
73
73
|
const uiStyle = UIStyle.useConfig();
|
|
74
74
|
const tableRowCva = uiStyle?.table?.rowCva ?? tableRow;
|
|
75
75
|
const tableHeadRowCva = uiStyle?.table?.headRowCva ?? tableHeadRow;
|
|
@@ -12,7 +12,7 @@ const tableRow = cva([
|
|
|
12
12
|
odd: "odd:bg-elevation-fill-inverted-4/5"
|
|
13
13
|
} } });
|
|
14
14
|
const tableHeadRow = cva(["h-8 w-full"]);
|
|
15
|
-
const tableHeadData = cva(["border-b border-b-elevation-outline-default-1 border-solid
|
|
15
|
+
const tableHeadData = cva(["border-b border-b-elevation-outline-default-1 border-solid px-table-header-cell-container-side-default py-table-header-cell-container-height-default text-left", "group-data-[is-sticky=true]/table-head:bg-elevation-fill-default-1"], {
|
|
16
16
|
variants: { hasRightBorder: {
|
|
17
17
|
true: "border-l border-l-elevation-outline-default-1 border-solid",
|
|
18
18
|
false: ""
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { UIStyle } from "
|
|
2
|
-
import { LinkContext } from "
|
|
1
|
+
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
2
|
+
import { LinkContext } from "../../../config/link.context.js";
|
|
3
3
|
import { link } from "./link.cva.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Link } from "react-aria-components";
|
|
6
|
-
const Link$1 = ({ variant
|
|
6
|
+
const Link$1 = ({ variant, ...props }) => {
|
|
7
7
|
const linkContext = LinkContext.useLinkContext();
|
|
8
8
|
const linkCva = UIStyle.useConfig()?.link?.cva ?? link;
|
|
9
9
|
const LinkComponent = linkContext?.LinkComponent ?? Link;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { uiOutlineClass } from "
|
|
1
|
+
import { uiOutlineClass } from "../../outline.clsx.js";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
const link = cva(["underline", uiOutlineClass], {
|
|
4
4
|
variants: { variant: { default: ["text-interactive-text-primary-idle focus-visible:outline-interactive-text-primary-focus", "hover:text-interactive-text-primary-hover focus-visible:text-interactive-text-primary-focus active:text-interactive-text-primary-pressed"] } },
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
1
2
|
import { ButtonProps as AriaButtonProps } from 'react-aria-components';
|
|
2
3
|
import { TagVariantProps } from './tag.cva';
|
|
3
4
|
export interface TagProps extends TagVariantProps, AriaButtonProps {
|
|
@@ -5,6 +6,7 @@ export interface TagProps extends TagVariantProps, AriaButtonProps {
|
|
|
5
6
|
children: string;
|
|
6
7
|
dismissable?: boolean;
|
|
7
8
|
isDisabled?: boolean;
|
|
9
|
+
contentRef?: Ref<HTMLElement>;
|
|
8
10
|
onDismiss?: () => void;
|
|
9
11
|
}
|
|
10
|
-
export declare const Tag: ({ className, children, dismissable, isDisabled, onDismiss, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const Tag: ({ className, children, dismissable, isDisabled, onDismiss, contentRef, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CloseIcon } from "../../../assets/icons/Close.js";
|
|
2
|
+
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
3
|
+
import { Typography } from "../Typography/Typography.js";
|
|
4
|
+
import { ns } from "../../../config/i18n.js";
|
|
5
|
+
import { tag } from "./tag.cva.js";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { clsx } from "clsx";
|
|
8
|
+
import { Button } from "react-aria-components";
|
|
9
|
+
import { useTranslation } from "react-i18next";
|
|
10
|
+
const Tag = ({ className, children, dismissable, isDisabled, onDismiss, contentRef, ...props }) => {
|
|
11
|
+
const tagCva = UIStyle.useConfig()?.tag?.cva ?? tag;
|
|
12
|
+
const { t } = useTranslation("ui");
|
|
13
|
+
const buttonProps = {
|
|
14
|
+
isDisabled,
|
|
15
|
+
onPress: onDismiss,
|
|
16
|
+
label: t(($) => $.ui.tag.dismiss),
|
|
17
|
+
...props
|
|
18
|
+
};
|
|
19
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
20
|
+
className: tagCva({
|
|
21
|
+
...props,
|
|
22
|
+
className: clsx("pointer-events-none", className)
|
|
23
|
+
}),
|
|
24
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
25
|
+
ref: contentRef,
|
|
26
|
+
variant: "default",
|
|
27
|
+
size: "label-2",
|
|
28
|
+
as: "span",
|
|
29
|
+
className: "truncate",
|
|
30
|
+
children
|
|
31
|
+
}), dismissable && /* @__PURE__ */ jsx(Button, {
|
|
32
|
+
...buttonProps,
|
|
33
|
+
className: "pointer-events-auto shrink-0",
|
|
34
|
+
children: /* @__PURE__ */ jsx(CloseIcon, { className: "size-4" })
|
|
35
|
+
})]
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
export { Tag };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { uiOutlineClass } from "
|
|
1
|
+
import { uiOutlineClass } from "../../outline.clsx.js";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
const tag = cva([
|
|
4
4
|
uiOutlineClass,
|
|
5
5
|
"inline-flex items-center gap-list-gap-icon-to-label",
|
|
6
|
-
"p-pill-height-
|
|
6
|
+
"p-pill-height-s px-1-5",
|
|
7
7
|
"rounded-pill-rounding-default",
|
|
8
8
|
"overflow-hidden",
|
|
9
9
|
"disabled:cursor-default"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { UIStyle } from "../../../config/uiStyle.context.js";
|
|
1
2
|
import { typography } from "./typography.cva.js";
|
|
2
|
-
import { UIStyle } from "./uiStyle.context.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
const Typography = ({ as = "p", className
|
|
4
|
+
const Typography = ({ as = "p", className, ...props }) => {
|
|
5
5
|
return /* @__PURE__ */ jsx(as, {
|
|
6
6
|
className: (UIStyle.useConfig()?.typography?.cva ?? typography)({
|
|
7
7
|
...props,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ns } from "./i18n.js";
|
|
2
|
-
import { ActionModal } from "
|
|
2
|
+
import { ActionModal } from "../components/overlays/ActionModal/ActionModal.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { createContext, use, useCallback, useMemo, useState } from "react";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
package/dist/config/i18n.d.ts
CHANGED
|
@@ -155,14 +155,6 @@ export declare const resources: {
|
|
|
155
155
|
smallerThan: string;
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
|
-
sharedErrors: {
|
|
159
|
-
dataValidation: string;
|
|
160
|
-
internalError: string;
|
|
161
|
-
networkError: string;
|
|
162
|
-
canceledError: string;
|
|
163
|
-
unknownError: string;
|
|
164
|
-
unknownErrorWithCode: string;
|
|
165
|
-
};
|
|
166
158
|
};
|
|
167
159
|
};
|
|
168
160
|
readonly sl: {
|
|
@@ -316,13 +308,6 @@ export declare const resources: {
|
|
|
316
308
|
smallerThan: string;
|
|
317
309
|
};
|
|
318
310
|
};
|
|
319
|
-
sharedErrors: {
|
|
320
|
-
dataValidation: string;
|
|
321
|
-
internalError: string;
|
|
322
|
-
networkError: string;
|
|
323
|
-
canceledError: string;
|
|
324
|
-
unknownError: string;
|
|
325
|
-
};
|
|
326
311
|
};
|
|
327
312
|
};
|
|
328
313
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import translation_default from "../assets/locales/en/translation.json.js";
|
|
2
|
+
import translation_default$1 from "../assets/locales/sl/translation.json.js";
|
|
3
|
+
const ns = "ui";
|
|
4
|
+
const resources = {
|
|
5
|
+
en: { ["ui"]: translation_default },
|
|
6
|
+
sl: { ["ui"]: translation_default$1 }
|
|
7
|
+
};
|
|
8
|
+
export { ns, resources };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useLocalStorage } from "
|
|
1
|
+
import { useLocalStorage } from "../hooks/useLocalStorage.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { createContext, use, useCallback, useEffect, useMemo, useState } from "react";
|
|
4
4
|
import { z } from "zod";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ObjectUtils } from "
|
|
2
|
-
import { useDeepCompareMemo } from "
|
|
1
|
+
import { ObjectUtils } from "../utils/object.utils.js";
|
|
2
|
+
import { useDeepCompareMemo } from "../hooks/useDeepCompare.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { createContext, use } from "react";
|
|
5
5
|
let UIConfig;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ClassProp } from 'class-variance-authority/types';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
|
+
import { BreadcrumbChevronVariantProps, BreadcrumbIconVariantProps, BreadcrumbItemVariantProps, BreadcrumbSegmentVariantProps, BreadcrumbsVariantProps } from '../components/Breadcrumbs/breadcrumbs.cva';
|
|
3
4
|
import { ButtonVariantProps } from '../components/buttons/Button/button.cva';
|
|
4
5
|
import { PillButtonVariants } from '../components/buttons/PillButton/pillButton.cva';
|
|
5
6
|
import { CheckboxIconVariantProps, CheckboxVariantProps } from '../components/inputs/Checkbox/checkbox.cva';
|
|
@@ -8,6 +9,8 @@ import { InputBaseProps, InputSideProps, InputSizeProps } from '../components/in
|
|
|
8
9
|
import { LabelBaseProps } from '../components/inputs/shared/label.cva';
|
|
9
10
|
import { ToggleVariantProps } from '../components/inputs/Toggle/toggle.cva';
|
|
10
11
|
import { MenuCvaVariantProps, MenuItemVariantProps, MenuPopoverVariantProps, MenuPopoverWrapperVariantProps } from '../components/Menu/menu.cva';
|
|
12
|
+
import { AccordionChevronVariantProps, AccordionHeadingSubtitleVariantProps, AccordionHeadingTitleVariantProps, AccordionHeadingVariantProps, AccordionIconVariantProps, AccordionItemVariantProps, AccordionPanelContentVariantProps, AccordionPanelVariantProps, AccordionTriggerVariantProps, AccordionVariantProps } from '../components/navigation/Accordion/accordion.cva';
|
|
13
|
+
import { StepperIconVariantProps, StepperItemVariantProps, StepperNumberVariantProps, StepperSeparatorVariantProps, StepperSubtextVariantProps, StepperTitleVariantProps, StepperVariantProps } from '../components/navigation/Stepper/stepper.cva';
|
|
11
14
|
import { ModalVariantProps } from '../components/overlays/Modal/modal.cva';
|
|
12
15
|
import { TooltipPointerHorizontalVariantProps, TooltipPointerVerticalVariantProps, TooltipTextVariantProps, TooltipVariantProps } from '../components/overlays/Tooltip/tooltip.cva';
|
|
13
16
|
import { SegmentItemVariantProps, SegmentVariantProps } from '../components/segment/segment.cva';
|
|
@@ -101,6 +104,34 @@ export declare namespace UIStyle {
|
|
|
101
104
|
cva?: Cva<SegmentVariantProps>;
|
|
102
105
|
itemCva?: Cva<SegmentItemVariantProps>;
|
|
103
106
|
};
|
|
107
|
+
stepper: {
|
|
108
|
+
cva?: Cva<StepperVariantProps>;
|
|
109
|
+
itemCva?: Cva<StepperItemVariantProps>;
|
|
110
|
+
iconCva?: Cva<StepperIconVariantProps>;
|
|
111
|
+
numberCva?: Cva<StepperNumberVariantProps>;
|
|
112
|
+
titleCva?: Cva<StepperTitleVariantProps>;
|
|
113
|
+
subtextCva?: Cva<StepperSubtextVariantProps>;
|
|
114
|
+
separatorCva?: Cva<StepperSeparatorVariantProps>;
|
|
115
|
+
};
|
|
116
|
+
accordion: {
|
|
117
|
+
cva?: Cva<AccordionVariantProps>;
|
|
118
|
+
itemCva?: Cva<AccordionItemVariantProps>;
|
|
119
|
+
triggerCva?: Cva<AccordionTriggerVariantProps>;
|
|
120
|
+
headingCva?: Cva<AccordionHeadingVariantProps>;
|
|
121
|
+
headingTitleCva?: Cva<AccordionHeadingTitleVariantProps>;
|
|
122
|
+
headingSubtitleCva?: Cva<AccordionHeadingSubtitleVariantProps>;
|
|
123
|
+
chevronCva?: Cva<AccordionChevronVariantProps>;
|
|
124
|
+
iconCva?: Cva<AccordionIconVariantProps>;
|
|
125
|
+
panelCva?: Cva<AccordionPanelVariantProps>;
|
|
126
|
+
panelContentCva?: Cva<AccordionPanelContentVariantProps>;
|
|
127
|
+
};
|
|
128
|
+
breadcrumbs: {
|
|
129
|
+
cva?: Cva<BreadcrumbsVariantProps>;
|
|
130
|
+
itemCva?: Cva<BreadcrumbItemVariantProps>;
|
|
131
|
+
segmentCva?: Cva<BreadcrumbSegmentVariantProps>;
|
|
132
|
+
chevronCva?: Cva<BreadcrumbChevronVariantProps>;
|
|
133
|
+
iconCva?: Cva<BreadcrumbIconVariantProps>;
|
|
134
|
+
};
|
|
104
135
|
}
|
|
105
136
|
interface ProviderProps {
|
|
106
137
|
config?: Partial<Options>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { StringUtils } from "
|
|
2
|
-
import { ZodUtils } from "
|
|
3
|
-
import { DateUtils } from "
|
|
1
|
+
import { StringUtils } from "../utils/string.utils.js";
|
|
2
|
+
import { ZodUtils } from "../utils/zod.utils.js";
|
|
3
|
+
import { DateUtils } from "../utils/date.utils.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import i18next from "i18next";
|
|
6
6
|
var DEFAULT_NAMESPACE = "dynamicColumns";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StringUtils } from "
|
|
2
|
-
import { ZodUtils } from "
|
|
1
|
+
import { StringUtils } from "../utils/string.utils.js";
|
|
2
|
+
import { ZodUtils } from "../utils/zod.utils.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import i18next from "i18next";
|
|
5
5
|
var defaultComponentTypes = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ObjectUtils } from "
|
|
2
|
-
import { isEqual } from "
|
|
1
|
+
import { ObjectUtils } from "../utils/object.utils.js";
|
|
2
|
+
import { isEqual } from "../utils/isEqual.js";
|
|
3
3
|
import { useEffect, useRef } from "react";
|
|
4
4
|
import { useFormState, useWatch } from "react-hook-form";
|
|
5
5
|
function isNilOrEqual(left, right) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isEqual } from "
|
|
1
|
+
import { isEqual } from "../utils/isEqual.js";
|
|
2
2
|
import { useEffect, useLayoutEffect, useMemo, useRef } from "react";
|
|
3
3
|
const useDeepCompareEffect = (callback, dependencies) => {
|
|
4
4
|
return useEffect(callback, useDeepCompareDeps(dependencies));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
2
|
import { useForm } from "react-hook-form";
|
|
3
3
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
4
|
-
function useForm$1({ resolver, zodSchema, defaultValues
|
|
4
|
+
function useForm$1({ resolver, zodSchema, defaultValues, ...props }) {
|
|
5
5
|
const formResolver = useMemo(() => resolver ?? (zodSchema ? zodResolver(zodSchema) : void 0), [resolver, zodSchema]);
|
|
6
6
|
return useForm({
|
|
7
7
|
...props,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ObjectUtils } from "
|
|
1
|
+
import { ObjectUtils } from "../utils/object.utils.js";
|
|
2
2
|
import { useAutosave } from "./useAutosave.js";
|
|
3
3
|
import { useForm } from "./useForm.js";
|
|
4
4
|
import { useEffect, useRef } from "react";
|
|
@@ -14,7 +14,7 @@ Solutions:
|
|
|
14
14
|
1. Ensure reset dependencies include all relevant state variables
|
|
15
15
|
2. Confirm your submission handler updates state properly (check query invalidation)
|
|
16
16
|
3. For slower operations, consider increasing the timeout threshold`;
|
|
17
|
-
function useFormAutosave({ autosaveDelay, enableAutosave, onAutosave, getResetValues, resetDeps, resetTimeout = 5e3
|
|
17
|
+
function useFormAutosave({ autosaveDelay, enableAutosave, onAutosave, getResetValues, resetDeps, resetTimeout = 5e3, ...props }) {
|
|
18
18
|
const form = useForm({
|
|
19
19
|
...props,
|
|
20
20
|
defaultValues: getResetValues()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UIRouter } from "
|
|
1
|
+
import { UIRouter } from "../config/router.context.js";
|
|
2
2
|
import { useEffect, useMemo, useState } from "react";
|
|
3
3
|
function useSorting(defaultSorting, prefix = "") {
|
|
4
4
|
const { pathname, replace, searchParams } = UIRouter.useUIRouter();
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { CloseIcon } from './assets/icons/Close';
|
|
|
23
23
|
export { DateTimeIcon } from './assets/icons/DateTime';
|
|
24
24
|
export { HighlightIcon } from './assets/icons/Highlight';
|
|
25
25
|
export { HighlightOnIcon } from './assets/icons/HighlightOn';
|
|
26
|
+
export { HomeIcon } from './assets/icons/Home';
|
|
26
27
|
export { InfoIcon } from './assets/icons/Info';
|
|
27
28
|
export { ItalicIcon } from './assets/icons/Italic';
|
|
28
29
|
export { LinkIcon } from './assets/icons/Link';
|
|
@@ -34,8 +35,11 @@ export { SendIcon } from './assets/icons/Send';
|
|
|
34
35
|
export { StrikethroughIcon } from './assets/icons/Strikethrough';
|
|
35
36
|
export { TextColorIcon } from './assets/icons/TextColor';
|
|
36
37
|
export { UnderlinedIcon } from './assets/icons/Underlined';
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
38
|
+
export { VisibilityIcon } from './assets/icons/Visibility';
|
|
39
|
+
export { VisibilityOffIcon } from './assets/icons/VisibilityOff';
|
|
40
|
+
export type { BreadcrumbItem, BreadcrumbsProps } from './components/Breadcrumbs/Breadcrumbs';
|
|
41
|
+
export { Breadcrumbs } from './components/Breadcrumbs/Breadcrumbs';
|
|
42
|
+
export type { BreadcrumbChevronVariantProps, BreadcrumbIconVariantProps, BreadcrumbItemVariantProps, BreadcrumbSegmentVariantProps, BreadcrumbsVariantProps, } from './components/Breadcrumbs/breadcrumbs.cva';
|
|
39
43
|
export type { ButtonProps } from './components/buttons/Button/Button';
|
|
40
44
|
export { Button } from './components/buttons/Button/Button';
|
|
41
45
|
export type { ButtonVariantProps } from './components/buttons/Button/button.cva';
|
|
@@ -103,6 +107,13 @@ export { MenuItem, type MenuListItemProps } from './components/Menu/MenuItem';
|
|
|
103
107
|
export type { MenuPopoverProps } from './components/Menu/MenuPopover';
|
|
104
108
|
export { MenuPopover } from './components/Menu/MenuPopover';
|
|
105
109
|
export type { MenuCvaVariantProps, MenuItemVariantProps, MenuPopoverVariantProps, MenuPopoverWrapperVariantProps, } from './components/Menu/menu.cva';
|
|
110
|
+
export type { AccordionItemProps, AccordionProps } from './components/navigation/Accordion/Accordion';
|
|
111
|
+
export { Accordion } from './components/navigation/Accordion/Accordion';
|
|
112
|
+
export type { AccordionVariantProps } from './components/navigation/Accordion/accordion.cva';
|
|
113
|
+
export type { AccordionItem } from './components/navigation/Accordion/accordion.types';
|
|
114
|
+
export { Stepper } from './components/navigation/Stepper/Stepper';
|
|
115
|
+
export type { StepperVariantProps } from './components/navigation/Stepper/stepper.cva';
|
|
116
|
+
export type { StepItem, StepperProps } from './components/navigation/Stepper/stepper.types';
|
|
106
117
|
export { uiOutlineClass } from './components/outline.clsx';
|
|
107
118
|
export type { ActionModalProps } from './components/overlays/ActionModal/ActionModal';
|
|
108
119
|
export { ActionModal } from './components/overlays/ActionModal/ActionModal';
|
|
@@ -186,7 +197,6 @@ export { useTableColumnConfig } from './hooks/useTableColumnConfig';
|
|
|
186
197
|
export { useTableNav } from './hooks/useTableNav';
|
|
187
198
|
export { useTranslationMemo } from './hooks/useTranslationMemo';
|
|
188
199
|
export type { Function, HasRequiredProperty, IfAny, IsAny, IsRequiredChildrenProperty, IsUnknown, OmitDiscriminatedUnion, } from './types/common';
|
|
189
|
-
export type { AppInfiniteQueryOptions, AppMutationOptions, AppQueryOptions } from './types/react-query';
|
|
190
200
|
export { ArrayUtils } from './utils/array.utils';
|
|
191
201
|
export { type CompoundMapper, compoundMapper } from './utils/compoundMapper';
|
|
192
202
|
export { DateUtils } from './utils/date.utils';
|
|
@@ -200,7 +210,3 @@ export { QueriesUtils } from './utils/queries.utils';
|
|
|
200
210
|
export { RestUtils } from './utils/rest.utils';
|
|
201
211
|
export { RoutingUtils } from './utils/routing.utils';
|
|
202
212
|
export { StringUtils } from './utils/string.utils';
|
|
203
|
-
export type { GeneralErrorCodes } from './utils/vendor/error-handling';
|
|
204
|
-
export { ApplicationException, ErrorHandler, SharedErrorHandler } from './utils/vendor/error-handling';
|
|
205
|
-
export type { RequestConfig, RequestInfo, Response, RestClient as IRestClient, } from './utils/vendor/rest-client.types';
|
|
206
|
-
export { RestInterceptor } from './utils/vendor/rest-interceptor';
|