@nxgt/material 1.0.0
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 +107 -0
- package/dist/components.js +2 -0
- package/dist/dist-B_rdiwEZ.js +16576 -0
- package/dist/dnd.js +2 -0
- package/dist/hooks-BPv0i6YN.js +581 -0
- package/dist/hooks.js +3 -0
- package/dist/i18n-1Eg35q8-.js +4617 -0
- package/dist/i18n.js +2 -0
- package/dist/lib/components/index.d.ts +136 -0
- package/dist/lib/components/ui/accordion-card.d.ts +13 -0
- package/dist/lib/components/ui/accordion.d.ts +7 -0
- package/dist/lib/components/ui/accordion.stories.d.ts +15 -0
- package/dist/lib/components/ui/action-card.d.ts +11 -0
- package/dist/lib/components/ui/action-card.stories.d.ts +20 -0
- package/dist/lib/components/ui/activity.d.ts +5 -0
- package/dist/lib/components/ui/app-bar/bottom-app-bar.d.ts +3 -0
- package/dist/lib/components/ui/app-bar/bottom-app-bar.stories.d.ts +15 -0
- package/dist/lib/components/ui/app-bar/index.d.ts +2 -0
- package/dist/lib/components/ui/app-bar/top-app-bar.d.ts +3 -0
- package/dist/lib/components/ui/app-shell/activity-content.d.ts +18 -0
- package/dist/lib/components/ui/app-shell/activity-layout.d.ts +22 -0
- package/dist/lib/components/ui/app-shell/app-breadcrumb.d.ts +19 -0
- package/dist/lib/components/ui/app-shell/app-header.d.ts +21 -0
- package/dist/lib/components/ui/app-shell/app-shell.stories.d.ts +17 -0
- package/dist/lib/components/ui/app-shell/app-shell.utils.d.ts +44 -0
- package/dist/lib/components/ui/app-shell/app-shell.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/app-shell/app-sidebar.d.ts +17 -0
- package/dist/lib/components/ui/app-shell/index.d.ts +7 -0
- package/dist/lib/components/ui/app-shell/types.d.ts +24 -0
- package/dist/lib/components/ui/attributes/attribute-dialog.d.ts +10 -0
- package/dist/lib/components/ui/attributes/attribute-form/attribute-form.d.ts +10 -0
- package/dist/lib/components/ui/attributes/attribute-form/attribute-value-form-field.d.ts +12 -0
- package/dist/lib/components/ui/attributes/attribute-form/consts.d.ts +45 -0
- package/dist/lib/components/ui/attributes/attribute-form/index.d.ts +2 -0
- package/dist/lib/components/ui/attributes/attribute-form/types.d.ts +3 -0
- package/dist/lib/components/ui/attributes/attribute-values-form/attribute-values-form.d.ts +15 -0
- package/dist/lib/components/ui/attributes/attribute-values-form/index.d.ts +1 -0
- package/dist/lib/components/ui/attributes/attribute-values-form-field-set/attribute-values-form-field-set.d.ts +12 -0
- package/dist/lib/components/ui/attributes/attribute-values-form-field-set/index.d.ts +1 -0
- package/dist/lib/components/ui/attributes/attributes-field/attributes-field.d.ts +9 -0
- package/dist/lib/components/ui/attributes/attributes-field/index.d.ts +1 -0
- package/dist/lib/components/ui/attributes/attributes-field/state.d.ts +14 -0
- package/dist/lib/components/ui/attributes/attributes-form-field/attributes-form-field.d.ts +11 -0
- package/dist/lib/components/ui/attributes/attributes-form-field/index.d.ts +1 -0
- package/dist/lib/components/ui/attributes/attributes-list/attributes-list.d.ts +11 -0
- package/dist/lib/components/ui/attributes/attributes-list/index.d.ts +1 -0
- package/dist/lib/components/ui/attributes/attributes.stories.d.ts +17 -0
- package/dist/lib/components/ui/attributes/consts.d.ts +2 -0
- package/dist/lib/components/ui/attributes/index.d.ts +9 -0
- package/dist/lib/components/ui/attributes/models/attribute.d.ts +27 -0
- package/dist/lib/components/ui/attributes/models/index.d.ts +1 -0
- package/dist/lib/components/ui/attributes/utils.d.ts +4 -0
- package/dist/lib/components/ui/autocomplete.d.ts +40 -0
- package/dist/lib/components/ui/autocomplete.stories.d.ts +18 -0
- package/dist/lib/components/ui/avatar-group/avatar-group.d.ts +8 -0
- package/dist/lib/components/ui/avatar-group/avatar-group.stories.d.ts +16 -0
- package/dist/lib/components/ui/avatar-group/avatar-group.utils.d.ts +5 -0
- package/dist/lib/components/ui/avatar-group/avatar-group.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/avatar-group/index.d.ts +4 -0
- package/dist/lib/components/ui/avatar.d.ts +15 -0
- package/dist/lib/components/ui/avatar.stories.d.ts +16 -0
- package/dist/lib/components/ui/background.d.ts +2 -0
- package/dist/lib/components/ui/badge.d.ts +9 -0
- package/dist/lib/components/ui/badge.stories.d.ts +16 -0
- package/dist/lib/components/ui/banner/banner.d.ts +12 -0
- package/dist/lib/components/ui/banner/banner.stories.d.ts +18 -0
- package/dist/lib/components/ui/banner/index.d.ts +2 -0
- package/dist/lib/components/ui/barecode.d.ts +4 -0
- package/dist/lib/components/ui/barecode.stories.d.ts +42 -0
- package/dist/lib/components/ui/breadcrumb.d.ts +11 -0
- package/dist/lib/components/ui/breadcrumb.stories.d.ts +14 -0
- package/dist/lib/components/ui/buttons/button-group.d.ts +3 -0
- package/dist/lib/components/ui/buttons/button-group.stories.d.ts +18 -0
- package/dist/lib/components/ui/buttons/button.d.ts +16 -0
- package/dist/lib/components/ui/buttons/button.stories.d.ts +39 -0
- package/dist/lib/components/ui/buttons/icon-button.d.ts +13 -0
- package/dist/lib/components/ui/buttons/icon-button.stories.d.ts +23 -0
- package/dist/lib/components/ui/buttons/index.d.ts +6 -0
- package/dist/lib/components/ui/buttons/link.d.ts +7 -0
- package/dist/lib/components/ui/buttons/link.stories.d.ts +333 -0
- package/dist/lib/components/ui/buttons/responsive-button.d.ts +7 -0
- package/dist/lib/components/ui/buttons/responsive-button.stories.d.ts +22 -0
- package/dist/lib/components/ui/buttons/split-button.d.ts +8 -0
- package/dist/lib/components/ui/buttons/split-button.stories.d.ts +17 -0
- package/dist/lib/components/ui/calendar-year-view.d.ts +8 -0
- package/dist/lib/components/ui/calendar.d.ts +12 -0
- package/dist/lib/components/ui/calendar.stories.d.ts +19 -0
- package/dist/lib/components/ui/calendar.utils.d.ts +26 -0
- package/dist/lib/components/ui/calendar.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/camera/__storries__/camera.stories.d.ts +15 -0
- package/dist/lib/components/ui/camera/camera-content.d.ts +3 -0
- package/dist/lib/components/ui/camera/camera.d.ts +3 -0
- package/dist/lib/components/ui/camera/camera.provider.d.ts +6 -0
- package/dist/lib/components/ui/camera/consts.d.ts +2 -0
- package/dist/lib/components/ui/camera/index.d.ts +1 -0
- package/dist/lib/components/ui/camera/state/camera.reducers.d.ts +7 -0
- package/dist/lib/components/ui/camera/state/camera.reducers.test.d.ts +1 -0
- package/dist/lib/components/ui/camera/state/camera.slice.d.ts +148 -0
- package/dist/lib/components/ui/camera/state/camera.slice.test.d.ts +1 -0
- package/dist/lib/components/ui/camera/state/camera.store.d.ts +145 -0
- package/dist/lib/components/ui/camera/state/camera.thunks.d.ts +97 -0
- package/dist/lib/components/ui/camera/state/camera.thunks.test.d.ts +1 -0
- package/dist/lib/components/ui/camera/state/index.d.ts +2 -0
- package/dist/lib/components/ui/camera/types.d.ts +38 -0
- package/dist/lib/components/ui/camera/use-camera.d.ts +11 -0
- package/dist/lib/components/ui/camera/utils/camera.utils.d.ts +14 -0
- package/dist/lib/components/ui/camera/utils/camera.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/camera/utils/index.d.ts +1 -0
- package/dist/lib/components/ui/card.d.ts +9 -0
- package/dist/lib/components/ui/card.stories.d.ts +14 -0
- package/dist/lib/components/ui/carousel.d.ts +19 -0
- package/dist/lib/components/ui/carousel.stories.d.ts +14 -0
- package/dist/lib/components/ui/charts/area-chart.d.ts +5 -0
- package/dist/lib/components/ui/charts/area-chart.stories.d.ts +17 -0
- package/dist/lib/components/ui/charts/bar-chart.d.ts +7 -0
- package/dist/lib/components/ui/charts/bar-chart.stories.d.ts +17 -0
- package/dist/lib/components/ui/charts/chart-container.d.ts +10 -0
- package/dist/lib/components/ui/charts/funnel-chart.d.ts +7 -0
- package/dist/lib/components/ui/charts/funnel-chart.stories.d.ts +17 -0
- package/dist/lib/components/ui/charts/heatmap-chart.d.ts +13 -0
- package/dist/lib/components/ui/charts/heatmap-chart.stories.d.ts +17 -0
- package/dist/lib/components/ui/charts/index.d.ts +10 -0
- package/dist/lib/components/ui/charts/line-chart.d.ts +8 -0
- package/dist/lib/components/ui/charts/line-chart.stories.d.ts +17 -0
- package/dist/lib/components/ui/charts/pie-chart.d.ts +8 -0
- package/dist/lib/components/ui/charts/pie-chart.stories.d.ts +17 -0
- package/dist/lib/components/ui/charts/radar-chart.d.ts +7 -0
- package/dist/lib/components/ui/charts/radar-chart.stories.d.ts +17 -0
- package/dist/lib/components/ui/charts/scatter-chart.d.ts +7 -0
- package/dist/lib/components/ui/charts/scatter-chart.stories.d.ts +17 -0
- package/dist/lib/components/ui/charts/use-chart-theme.d.ts +11 -0
- package/dist/lib/components/ui/chat/chat-advanced.stories.d.ts +12 -0
- package/dist/lib/components/ui/chat/chat-composer-attachment-chip.d.ts +6 -0
- package/dist/lib/components/ui/chat/chat-composer-attachments.d.ts +18 -0
- package/dist/lib/components/ui/chat/chat-composer.d.ts +20 -0
- package/dist/lib/components/ui/chat/chat-conversation-item.d.ts +12 -0
- package/dist/lib/components/ui/chat/chat-copy-text.d.ts +2 -0
- package/dist/lib/components/ui/chat/chat-copy-text.test.d.ts +1 -0
- package/dist/lib/components/ui/chat/chat-markdown-inline.d.ts +3 -0
- package/dist/lib/components/ui/chat/chat-markdown.d.ts +6 -0
- package/dist/lib/components/ui/chat/chat-markdown.test.d.ts +1 -0
- package/dist/lib/components/ui/chat/chat-message-list.d.ts +11 -0
- package/dist/lib/components/ui/chat/chat-message-meta.d.ts +7 -0
- package/dist/lib/components/ui/chat/chat-message-separator.d.ts +7 -0
- package/dist/lib/components/ui/chat/chat-message.d.ts +20 -0
- package/dist/lib/components/ui/chat/chat-reaction-group.d.ts +14 -0
- package/dist/lib/components/ui/chat/chat-thread.d.ts +11 -0
- package/dist/lib/components/ui/chat/chat-typing-indicator.d.ts +5 -0
- package/dist/lib/components/ui/chat/chat-unseen.d.ts +1 -0
- package/dist/lib/components/ui/chat/chat-unseen.test.d.ts +1 -0
- package/dist/lib/components/ui/chat/chat.stories.d.ts +19 -0
- package/dist/lib/components/ui/chat/index.d.ts +12 -0
- package/dist/lib/components/ui/chat/use-chat-composer-attachments.d.ts +25 -0
- package/dist/lib/components/ui/chat/use-chat-composer-attachments.test.d.ts +1 -0
- package/dist/lib/components/ui/check-card-field.d.ts +13 -0
- package/dist/lib/components/ui/checkbox-group.d.ts +15 -0
- package/dist/lib/components/ui/checkbox-group.stories.d.ts +21 -0
- package/dist/lib/components/ui/checkbox.d.ts +7 -0
- package/dist/lib/components/ui/checkbox.stories.d.ts +15 -0
- package/dist/lib/components/ui/chip.d.ts +11 -0
- package/dist/lib/components/ui/chip.stories.d.ts +26 -0
- package/dist/lib/components/ui/code/code-block.d.ts +12 -0
- package/dist/lib/components/ui/code/code-block.stories.d.ts +19 -0
- package/dist/lib/components/ui/code/code-diff.d.ts +11 -0
- package/dist/lib/components/ui/code/code-diff.stories.d.ts +13 -0
- package/dist/lib/components/ui/code/code-editor-chrome.d.ts +10 -0
- package/dist/lib/components/ui/code/highlight.d.ts +2 -0
- package/dist/lib/components/ui/code/highlight.test.d.ts +1 -0
- package/dist/lib/components/ui/code/index.d.ts +13 -0
- package/dist/lib/components/ui/code/json-node.d.ts +7 -0
- package/dist/lib/components/ui/code/json-viewer.d.ts +10 -0
- package/dist/lib/components/ui/code/json-viewer.stories.d.ts +16 -0
- package/dist/lib/components/ui/code/languages.d.ts +7 -0
- package/dist/lib/components/ui/code/languages.test.d.ts +1 -0
- package/dist/lib/components/ui/code/moonlight-monaco.d.ts +3 -0
- package/dist/lib/components/ui/code/moonlight-monaco.test.d.ts +1 -0
- package/dist/lib/components/ui/code/moonlight-tokens.d.ts +33 -0
- package/dist/lib/components/ui/code/moonlight-tokens.test.d.ts +1 -0
- package/dist/lib/components/ui/code/parse-json.d.ts +11 -0
- package/dist/lib/components/ui/code/parse-json.test.d.ts +1 -0
- package/dist/lib/components/ui/code-editor.d.ts +23 -0
- package/dist/lib/components/ui/code-editor.stories.d.ts +19 -0
- package/dist/lib/components/ui/collapsible.d.ts +6 -0
- package/dist/lib/components/ui/color-field/color-field.d.ts +8 -0
- package/dist/lib/components/ui/color-field/color-field.stories.d.ts +17 -0
- package/dist/lib/components/ui/color-field/index.d.ts +3 -0
- package/dist/lib/components/ui/color-field/normalize-hex.d.ts +1 -0
- package/dist/lib/components/ui/color-field/normalize-hex.test.d.ts +1 -0
- package/dist/lib/components/ui/combobox-field/combobox-field.d.ts +20 -0
- package/dist/lib/components/ui/combobox-field/combobox-field.stories.d.ts +15 -0
- package/dist/lib/components/ui/combobox-field/index.d.ts +2 -0
- package/dist/lib/components/ui/combobox.d.ts +27 -0
- package/dist/lib/components/ui/combobox.stories.d.ts +21 -0
- package/dist/lib/components/ui/command.d.ts +16 -0
- package/dist/lib/components/ui/contacts/contact-dialog.d.ts +10 -0
- package/dist/lib/components/ui/contacts/contact-item.d.ts +11 -0
- package/dist/lib/components/ui/contacts/contacts-form-field.d.ts +8 -0
- package/dist/lib/components/ui/contacts/contacts.d.ts +11 -0
- package/dist/lib/components/ui/contacts/contacts.stories.d.ts +16 -0
- package/dist/lib/components/ui/contacts/index.d.ts +6 -0
- package/dist/lib/components/ui/contacts/models.d.ts +25 -0
- package/dist/lib/components/ui/contacts/utils.d.ts +11 -0
- package/dist/lib/components/ui/context-menu.d.ts +25 -0
- package/dist/lib/components/ui/context-menu.stories.d.ts +14 -0
- package/dist/lib/components/ui/copy-button/copy-button.d.ts +7 -0
- package/dist/lib/components/ui/copy-button/copy-button.stories.d.ts +16 -0
- package/dist/lib/components/ui/copy-button/copy-to-clipboard.d.ts +1 -0
- package/dist/lib/components/ui/copy-button/copy-to-clipboard.test.d.ts +1 -0
- package/dist/lib/components/ui/copy-button/copy-value.d.ts +7 -0
- package/dist/lib/components/ui/copy-button/index.d.ts +5 -0
- package/dist/lib/components/ui/count-badge.d.ts +10 -0
- package/dist/lib/components/ui/count-badge.stories.d.ts +16 -0
- package/dist/lib/components/ui/country-field/country-field.d.ts +20 -0
- package/dist/lib/components/ui/country-field/country-field.stories.d.ts +15 -0
- package/dist/lib/components/ui/country-field/index.d.ts +2 -0
- package/dist/lib/components/ui/currency-field/currency-field.d.ts +8 -0
- package/dist/lib/components/ui/currency-field/currency-field.stories.d.ts +17 -0
- package/dist/lib/components/ui/currency-field/index.d.ts +3 -0
- package/dist/lib/components/ui/currency-field/parse-currency.d.ts +1 -0
- package/dist/lib/components/ui/currency-field/parse-currency.test.d.ts +1 -0
- package/dist/lib/components/ui/data-table/data-table-column-header.d.ts +9 -0
- package/dist/lib/components/ui/data-table/data-table-pagination.d.ts +10 -0
- package/dist/lib/components/ui/data-table/data-table-view-options.d.ts +5 -0
- package/dist/lib/components/ui/data-table/data-table.d.ts +21 -0
- package/dist/lib/components/ui/data-table/data-table.stories.d.ts +27 -0
- package/dist/lib/components/ui/data-table/features.d.ts +13 -0
- package/dist/lib/components/ui/data-table/hooks.d.ts +62 -0
- package/dist/lib/components/ui/data-table/index.d.ts +12 -0
- package/dist/lib/components/ui/date-field.d.ts +21 -0
- package/dist/lib/components/ui/date-field.stories.d.ts +15 -0
- package/dist/lib/components/ui/date-range-field.d.ts +17 -0
- package/dist/lib/components/ui/date-range-field.stories.d.ts +15 -0
- package/dist/lib/components/ui/description.d.ts +12 -0
- package/dist/lib/components/ui/dialog.d.ts +14 -0
- package/dist/lib/components/ui/dnd/compose-refs.d.ts +2 -0
- package/dist/lib/components/ui/dnd/dnd-item-context.d.ts +9 -0
- package/dist/lib/components/ui/dnd/dnd-overlay.d.ts +7 -0
- package/dist/lib/components/ui/dnd/dnd-provider.d.ts +7 -0
- package/dist/lib/components/ui/dnd/dnd.stories.d.ts +11 -0
- package/dist/lib/components/ui/dnd/drag-handle.d.ts +6 -0
- package/dist/lib/components/ui/dnd/draggable-droppable.d.ts +9 -0
- package/dist/lib/components/ui/dnd/draggable.d.ts +9 -0
- package/dist/lib/components/ui/dnd/droppable.d.ts +9 -0
- package/dist/lib/components/ui/dnd/index.d.ts +24 -0
- package/dist/lib/components/ui/dnd/insert-ids.d.ts +1 -0
- package/dist/lib/components/ui/dnd/insert-ids.test.d.ts +1 -0
- package/dist/lib/components/ui/dnd/sortable-provider.d.ts +9 -0
- package/dist/lib/components/ui/dnd/sortable.d.ts +10 -0
- package/dist/lib/components/ui/dnd/use-dnd-active-id.d.ts +2 -0
- package/dist/lib/components/ui/drawer.d.ts +14 -0
- package/dist/lib/components/ui/dropdown-menu.d.ts +26 -0
- package/dist/lib/components/ui/dropdown-menu.stories.d.ts +14 -0
- package/dist/lib/components/ui/duration-field/duration-field.d.ts +15 -0
- package/dist/lib/components/ui/duration-field/duration-field.stories.d.ts +15 -0
- package/dist/lib/components/ui/duration-field/index.d.ts +3 -0
- package/dist/lib/components/ui/duration-field/parse-duration.d.ts +5 -0
- package/dist/lib/components/ui/duration-field/parse-duration.test.d.ts +1 -0
- package/dist/lib/components/ui/education/index.d.ts +2 -0
- package/dist/lib/components/ui/education/questions/index.d.ts +3 -0
- package/dist/lib/components/ui/education/questions/question-boolean.d.ts +2 -0
- package/dist/lib/components/ui/education/questions/question-choice.d.ts +2 -0
- package/dist/lib/components/ui/education/questions/question-multi.d.ts +2 -0
- package/dist/lib/components/ui/education/questions/question-options.d.ts +9 -0
- package/dist/lib/components/ui/education/questions/question-text.d.ts +2 -0
- package/dist/lib/components/ui/education/questions/question.d.ts +2 -0
- package/dist/lib/components/ui/education/questions/question.stories.d.ts +16 -0
- package/dist/lib/components/ui/education/questions/question.utils.d.ts +6 -0
- package/dist/lib/components/ui/education/questions/question.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/education/questions/types.d.ts +26 -0
- package/dist/lib/components/ui/education/quizzes/index.d.ts +3 -0
- package/dist/lib/components/ui/education/quizzes/partials/quiz-body.d.ts +1 -0
- package/dist/lib/components/ui/education/quizzes/partials/quiz-nav.d.ts +1 -0
- package/dist/lib/components/ui/education/quizzes/partials/quiz-progress.d.ts +1 -0
- package/dist/lib/components/ui/education/quizzes/partials/quiz-results.d.ts +1 -0
- package/dist/lib/components/ui/education/quizzes/quiz-provider.d.ts +7 -0
- package/dist/lib/components/ui/education/quizzes/quiz.d.ts +3 -0
- package/dist/lib/components/ui/education/quizzes/quiz.slice.d.ts +95 -0
- package/dist/lib/components/ui/education/quizzes/quiz.slice.test.d.ts +1 -0
- package/dist/lib/components/ui/education/quizzes/quiz.stories.d.ts +13 -0
- package/dist/lib/components/ui/education/quizzes/quiz.utils.d.ts +12 -0
- package/dist/lib/components/ui/education/quizzes/quiz.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/education/quizzes/types.d.ts +19 -0
- package/dist/lib/components/ui/education/quizzes/use-quiz.d.ts +21 -0
- package/dist/lib/components/ui/education/quizzes/use-skip-first.d.ts +1 -0
- package/dist/lib/components/ui/email-field/email-field.d.ts +3 -0
- package/dist/lib/components/ui/email-field/email-field.stories.d.ts +16 -0
- package/dist/lib/components/ui/email-field/index.d.ts +3 -0
- package/dist/lib/components/ui/email-field/is-email.d.ts +1 -0
- package/dist/lib/components/ui/email-field/is-email.test.d.ts +1 -0
- package/dist/lib/components/ui/entity-header.d.ts +12 -0
- package/dist/lib/components/ui/entity-header.stories.d.ts +17 -0
- package/dist/lib/components/ui/event-calendar/event-calendar-context.d.ts +15 -0
- package/dist/lib/components/ui/event-calendar/event-calendar-events.utils.d.ts +14 -0
- package/dist/lib/components/ui/event-calendar/event-calendar-events.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/event-calendar/event-calendar.container.d.ts +9 -0
- package/dist/lib/components/ui/event-calendar/event-calendar.container.test.d.ts +1 -0
- package/dist/lib/components/ui/event-calendar/event-calendar.d.ts +26 -0
- package/dist/lib/components/ui/event-calendar/event-calendar.ids.d.ts +11 -0
- package/dist/lib/components/ui/event-calendar/event-calendar.keyboard.d.ts +22 -0
- package/dist/lib/components/ui/event-calendar/event-calendar.keyboard.test.d.ts +1 -0
- package/dist/lib/components/ui/event-calendar/event-calendar.preview.d.ts +4 -0
- package/dist/lib/components/ui/event-calendar/event-calendar.preview.test.d.ts +1 -0
- package/dist/lib/components/ui/event-calendar/event-calendar.slice.d.ts +22 -0
- package/dist/lib/components/ui/event-calendar/event-calendar.spans.d.ts +13 -0
- package/dist/lib/components/ui/event-calendar/event-calendar.spans.test.d.ts +1 -0
- package/dist/lib/components/ui/event-calendar/event-calendar.stories.d.ts +19 -0
- package/dist/lib/components/ui/event-calendar/event-calendar.utils.d.ts +22 -0
- package/dist/lib/components/ui/event-calendar/event-calendar.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/event-calendar/index.d.ts +5 -0
- package/dist/lib/components/ui/event-calendar/partials/agenda-view.d.ts +1 -0
- package/dist/lib/components/ui/event-calendar/partials/all-day-lane.d.ts +3 -0
- package/dist/lib/components/ui/event-calendar/partials/calendar-board.d.ts +1 -0
- package/dist/lib/components/ui/event-calendar/partials/calendar-date-picker.d.ts +1 -0
- package/dist/lib/components/ui/event-calendar/partials/calendar-event-chip.d.ts +8 -0
- package/dist/lib/components/ui/event-calendar/partials/calendar-now-line.d.ts +1 -0
- package/dist/lib/components/ui/event-calendar/partials/calendar-toolbar.d.ts +1 -0
- package/dist/lib/components/ui/event-calendar/partials/day-view.d.ts +1 -0
- package/dist/lib/components/ui/event-calendar/partials/event-color-swatches.d.ts +5 -0
- package/dist/lib/components/ui/event-calendar/partials/event-preview.d.ts +4 -0
- package/dist/lib/components/ui/event-calendar/partials/event-resize-handle.d.ts +5 -0
- package/dist/lib/components/ui/event-calendar/partials/month-day-cell.d.ts +10 -0
- package/dist/lib/components/ui/event-calendar/partials/month-day-dialog.d.ts +7 -0
- package/dist/lib/components/ui/event-calendar/partials/month-more.d.ts +5 -0
- package/dist/lib/components/ui/event-calendar/partials/month-view.d.ts +1 -0
- package/dist/lib/components/ui/event-calendar/partials/month-week-row.d.ts +10 -0
- package/dist/lib/components/ui/event-calendar/partials/span-event.d.ts +4 -0
- package/dist/lib/components/ui/event-calendar/partials/time-column.d.ts +3 -0
- package/dist/lib/components/ui/event-calendar/partials/time-grid-event.d.ts +5 -0
- package/dist/lib/components/ui/event-calendar/partials/time-grid.d.ts +3 -0
- package/dist/lib/components/ui/event-calendar/partials/week-view.d.ts +3 -0
- package/dist/lib/components/ui/event-calendar/types.d.ts +34 -0
- package/dist/lib/components/ui/event-calendar/use-event-calendar.d.ts +41 -0
- package/dist/lib/components/ui/event-calendar/use-month-create.d.ts +15 -0
- package/dist/lib/components/ui/event-calendar/use-slot-create.d.ts +19 -0
- package/dist/lib/components/ui/event-chip/event-chip.d.ts +16 -0
- package/dist/lib/components/ui/event-chip/event-chip.stories.d.ts +16 -0
- package/dist/lib/components/ui/event-chip/index.d.ts +2 -0
- package/dist/lib/components/ui/extended-label.d.ts +7 -0
- package/dist/lib/components/ui/feedback/alert-dialog.d.ts +15 -0
- package/dist/lib/components/ui/feedback/alert-dialog.stories.d.ts +14 -0
- package/dist/lib/components/ui/feedback/alert.d.ts +12 -0
- package/dist/lib/components/ui/feedback/alert.stories.d.ts +20 -0
- package/dist/lib/components/ui/feedback/circular-progress.d.ts +20 -0
- package/dist/lib/components/ui/feedback/circular-progress.stories.d.ts +33 -0
- package/dist/lib/components/ui/feedback/confirm-dialog.d.ts +12 -0
- package/dist/lib/components/ui/feedback/confirm-dialog.stories.d.ts +16 -0
- package/dist/lib/components/ui/feedback/confirmation-dialog.d.ts +17 -0
- package/dist/lib/components/ui/feedback/confirmation-dialog.stories.d.ts +17 -0
- package/dist/lib/components/ui/feedback/custom-alert-dialog.d.ts +10 -0
- package/dist/lib/components/ui/feedback/custom-alert-dialog.stories.d.ts +14 -0
- package/dist/lib/components/ui/feedback/custom-dialog.d.ts +10 -0
- package/dist/lib/components/ui/feedback/custom-dialog.stories.d.ts +17 -0
- package/dist/lib/components/ui/feedback/empty-state.d.ts +10 -0
- package/dist/lib/components/ui/feedback/empty-state.stories.d.ts +11 -0
- package/dist/lib/components/ui/feedback/index.d.ts +13 -0
- package/dist/lib/components/ui/feedback/progress-field.d.ts +9 -0
- package/dist/lib/components/ui/feedback/progress.d.ts +6 -0
- package/dist/lib/components/ui/feedback/progress.stories.d.ts +16 -0
- package/dist/lib/components/ui/feedback/spinner.d.ts +9 -0
- package/dist/lib/components/ui/feedback/spinner.stories.d.ts +24 -0
- package/dist/lib/components/ui/feedback/toast.d.ts +19 -0
- package/dist/lib/components/ui/feedback/toast.stories.d.ts +16 -0
- package/dist/lib/components/ui/feedback/toasts.d.ts +41 -0
- package/dist/lib/components/ui/feedback/toasts.test.d.ts +1 -0
- package/dist/lib/components/ui/field/field.d.ts +9 -0
- package/dist/lib/components/ui/field/index.d.ts +3 -0
- package/dist/lib/components/ui/field/renderers.d.ts +2 -0
- package/dist/lib/components/ui/field/types.d.ts +67 -0
- package/dist/lib/components/ui/file-list/file-list-field-row.d.ts +10 -0
- package/dist/lib/components/ui/file-list/file-list-field.d.ts +12 -0
- package/dist/lib/components/ui/file-list/file-list-field.stories.d.ts +15 -0
- package/dist/lib/components/ui/file-list/file-list-s3-field.d.ts +6 -0
- package/dist/lib/components/ui/file-list/file-list.d.ts +3 -0
- package/dist/lib/components/ui/file-list/file-list.stories.d.ts +17 -0
- package/dist/lib/components/ui/file-list/format-file-size.d.ts +1 -0
- package/dist/lib/components/ui/file-list/format-file-size.test.d.ts +1 -0
- package/dist/lib/components/ui/file-list/index.d.ts +8 -0
- package/dist/lib/components/ui/file-list/types.d.ts +17 -0
- package/dist/lib/components/ui/filter/__stories__/filter.stories.d.ts +26 -0
- package/dist/lib/components/ui/filter/consts.d.ts +51 -0
- package/dist/lib/components/ui/filter/filter-actions.d.ts +11 -0
- package/dist/lib/components/ui/filter/filter-chips.d.ts +5 -0
- package/dist/lib/components/ui/filter/filter-content.d.ts +9 -0
- package/dist/lib/components/ui/filter/filter-context.d.ts +52 -0
- package/dist/lib/components/ui/filter/filter-dialog.d.ts +15 -0
- package/dist/lib/components/ui/filter/filter-drawer.d.ts +16 -0
- package/dist/lib/components/ui/filter/filter-field.d.ts +14 -0
- package/dist/lib/components/ui/filter/filter-groups.d.ts +15 -0
- package/dist/lib/components/ui/filter/filter-inline.d.ts +13 -0
- package/dist/lib/components/ui/filter/filter-persistence-main.utils.d.ts +13 -0
- package/dist/lib/components/ui/filter/filter-persistence-main.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/filter/filter-persistence-presets.utils.d.ts +13 -0
- package/dist/lib/components/ui/filter/filter-persistence-presets.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/filter/filter-persistence-storage.utils.d.ts +13 -0
- package/dist/lib/components/ui/filter/filter-persistence-storage.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/filter/filter-persistence-url.utils.d.ts +17 -0
- package/dist/lib/components/ui/filter/filter-persistence-url.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/filter/filter-persistence.utils.d.ts +4 -0
- package/dist/lib/components/ui/filter/filter-persistence.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/filter/filter-popover.d.ts +17 -0
- package/dist/lib/components/ui/filter/filter-preset.utils.d.ts +11 -0
- package/dist/lib/components/ui/filter/filter-preset.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/filter/filter-presets.d.ts +5 -0
- package/dist/lib/components/ui/filter/filter-schema.utils.d.ts +34 -0
- package/dist/lib/components/ui/filter/filter-schema.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/filter/filter-sheet.d.ts +16 -0
- package/dist/lib/components/ui/filter/filter-trigger.d.ts +6 -0
- package/dist/lib/components/ui/filter/filter-validation.utils.d.ts +48 -0
- package/dist/lib/components/ui/filter/filter-validation.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/filter/filter-value.utils.d.ts +29 -0
- package/dist/lib/components/ui/filter/filter-value.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/filter/filter.d.ts +59 -0
- package/dist/lib/components/ui/filter/filter.utils.d.ts +3 -0
- package/dist/lib/components/ui/filter/filter.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/filter/forms/filter-form-field.d.ts +52 -0
- package/dist/lib/components/ui/filter/index.d.ts +21 -0
- package/dist/lib/components/ui/filter/types.d.ts +293 -0
- package/dist/lib/components/ui/filter/use-filter-modal.d.ts +6 -0
- package/dist/lib/components/ui/filter/use-filter-selector.d.ts +11 -0
- package/dist/lib/components/ui/filter/use-filter.d.ts +42 -0
- package/dist/lib/components/ui/format-count.d.ts +1 -0
- package/dist/lib/components/ui/format-count.test.d.ts +1 -0
- package/dist/lib/components/ui/forms/autocomplete-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/check-card-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/checkbox-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/checkbox-group-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/code-editor-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/color-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/combobox-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/country-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/currency-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/date-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/date-range-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/duration-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/email-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/file-list-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/file-list-s3-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/files-form-field.d.ts +9 -0
- package/dist/lib/components/ui/forms/form-field.d.ts +6 -0
- package/dist/lib/components/ui/forms/image-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/image-s3-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/index.d.ts +44 -0
- package/dist/lib/components/ui/forms/inline-edit-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/input-group-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/network-upload-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/number-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/otp-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/password-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/percent-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/phone-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/radio-group-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/rating-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/rich-text-editor-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/s3-upload-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/search-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/select-card-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/select-chip-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/select-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/slider-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/sortable-list-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/switch-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/text-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/textarea-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/time-form-field.d.ts +5 -0
- package/dist/lib/components/ui/forms/timezone-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/transfer-list-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/upload-form-field.d.ts +3 -0
- package/dist/lib/components/ui/forms/url-form-field.d.ts +3 -0
- package/dist/lib/components/ui/galleries/gallery-download.d.ts +12 -0
- package/dist/lib/components/ui/galleries/gallery-download.test.d.ts +1 -0
- package/dist/lib/components/ui/galleries/gallery-keyboard.d.ts +14 -0
- package/dist/lib/components/ui/galleries/gallery-keyboard.test.d.ts +1 -0
- package/dist/lib/components/ui/galleries/gallery-provider.d.ts +7 -0
- package/dist/lib/components/ui/galleries/gallery.d.ts +3 -0
- package/dist/lib/components/ui/galleries/gallery.presets.d.ts +4 -0
- package/dist/lib/components/ui/galleries/gallery.presets.test.d.ts +1 -0
- package/dist/lib/components/ui/galleries/gallery.slice.d.ts +149 -0
- package/dist/lib/components/ui/galleries/gallery.slice.test.d.ts +1 -0
- package/dist/lib/components/ui/galleries/gallery.stories.d.ts +23 -0
- package/dist/lib/components/ui/galleries/gallery.utils.d.ts +14 -0
- package/dist/lib/components/ui/galleries/gallery.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/galleries/index.d.ts +6 -0
- package/dist/lib/components/ui/galleries/lightbox-gallery.d.ts +6 -0
- package/dist/lib/components/ui/galleries/lightbox-gallery.stories.d.ts +12 -0
- package/dist/lib/components/ui/galleries/mini-gallery.d.ts +4 -0
- package/dist/lib/components/ui/galleries/mini-gallery.stories.d.ts +12 -0
- package/dist/lib/components/ui/galleries/partials/gallery-carousel.d.ts +3 -0
- package/dist/lib/components/ui/galleries/partials/gallery-chrome.d.ts +1 -0
- package/dist/lib/components/ui/galleries/partials/gallery-empty.d.ts +1 -0
- package/dist/lib/components/ui/galleries/partials/gallery-featured.d.ts +3 -0
- package/dist/lib/components/ui/galleries/partials/gallery-grid.d.ts +3 -0
- package/dist/lib/components/ui/galleries/partials/gallery-justified.d.ts +3 -0
- package/dist/lib/components/ui/galleries/partials/gallery-lightbox.d.ts +1 -0
- package/dist/lib/components/ui/galleries/partials/gallery-masonry.d.ts +3 -0
- package/dist/lib/components/ui/galleries/partials/gallery-media.d.ts +6 -0
- package/dist/lib/components/ui/galleries/partials/gallery-selection-bar.d.ts +1 -0
- package/dist/lib/components/ui/galleries/partials/gallery-stage.d.ts +8 -0
- package/dist/lib/components/ui/galleries/partials/gallery-strip.d.ts +3 -0
- package/dist/lib/components/ui/galleries/partials/gallery-tile.d.ts +8 -0
- package/dist/lib/components/ui/galleries/partials/gallery-trigger.d.ts +5 -0
- package/dist/lib/components/ui/galleries/types.d.ts +57 -0
- package/dist/lib/components/ui/galleries/use-gallery.d.ts +31 -0
- package/dist/lib/components/ui/galleries/use-skip-first.d.ts +1 -0
- package/dist/lib/components/ui/helper-text.d.ts +5 -0
- package/dist/lib/components/ui/hidrate-loading.d.ts +6 -0
- package/dist/lib/components/ui/hover-card.d.ts +6 -0
- package/dist/lib/components/ui/icon.d.ts +9 -0
- package/dist/lib/components/ui/icon.stories.d.ts +15 -0
- package/dist/lib/components/ui/icon.test.d.ts +1 -0
- package/dist/lib/components/ui/image-cropper/crop-image.d.ts +13 -0
- package/dist/lib/components/ui/image-cropper/crop-image.test.d.ts +1 -0
- package/dist/lib/components/ui/image-cropper/crop-resize-handles.d.ts +12 -0
- package/dist/lib/components/ui/image-cropper/crop-resize-handles.test.d.ts +1 -0
- package/dist/lib/components/ui/image-cropper/image-cropper-dialog.d.ts +9 -0
- package/dist/lib/components/ui/image-cropper/image-cropper.d.ts +11 -0
- package/dist/lib/components/ui/image-cropper/image-cropper.stories.d.ts +17 -0
- package/dist/lib/components/ui/image-cropper/index.d.ts +7 -0
- package/dist/lib/components/ui/image-cropper/types.d.ts +24 -0
- package/dist/lib/components/ui/image-field/image-field.d.ts +14 -0
- package/dist/lib/components/ui/image-field/image-field.stories.d.ts +15 -0
- package/dist/lib/components/ui/image-field/image-s3-field.d.ts +6 -0
- package/dist/lib/components/ui/image-field/index.d.ts +4 -0
- package/dist/lib/components/ui/inline-edit/index.d.ts +2 -0
- package/dist/lib/components/ui/inline-edit/inline-edit.d.ts +11 -0
- package/dist/lib/components/ui/inline-edit/inline-edit.stories.d.ts +17 -0
- package/dist/lib/components/ui/input-group-field.d.ts +12 -0
- package/dist/lib/components/ui/input-group-field.stories.d.ts +35 -0
- package/dist/lib/components/ui/input-group.d.ts +13 -0
- package/dist/lib/components/ui/input-group.stories.d.ts +25 -0
- package/dist/lib/components/ui/input-otp.d.ts +11 -0
- package/dist/lib/components/ui/input.d.ts +4 -0
- package/dist/lib/components/ui/kanban/index.d.ts +5 -0
- package/dist/lib/components/ui/kanban/kanban-context.d.ts +16 -0
- package/dist/lib/components/ui/kanban/kanban.d.ts +20 -0
- package/dist/lib/components/ui/kanban/kanban.keyboard.d.ts +25 -0
- package/dist/lib/components/ui/kanban/kanban.slice.d.ts +106 -0
- package/dist/lib/components/ui/kanban/kanban.stories.d.ts +17 -0
- package/dist/lib/components/ui/kanban/kanban.utils.d.ts +24 -0
- package/dist/lib/components/ui/kanban/kanban.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/kanban/partials/kanban-board.d.ts +1 -0
- package/dist/lib/components/ui/kanban/partials/kanban-card-preview.d.ts +4 -0
- package/dist/lib/components/ui/kanban/partials/kanban-card.d.ts +7 -0
- package/dist/lib/components/ui/kanban/partials/kanban-column-header.d.ts +7 -0
- package/dist/lib/components/ui/kanban/partials/kanban-column.d.ts +4 -0
- package/dist/lib/components/ui/kanban/partials/kanban-composer.d.ts +5 -0
- package/dist/lib/components/ui/kanban/partials/kanban-group.d.ts +6 -0
- package/dist/lib/components/ui/kanban/types.d.ts +47 -0
- package/dist/lib/components/ui/kanban/use-kanban.d.ts +31 -0
- package/dist/lib/components/ui/kbd-shortcut.d.ts +6 -0
- package/dist/lib/components/ui/kbd.d.ts +3 -0
- package/dist/lib/components/ui/kbd.stories.d.ts +16 -0
- package/dist/lib/components/ui/label.d.ts +6 -0
- package/dist/lib/components/ui/language-switcher.d.ts +6 -0
- package/dist/lib/components/ui/language-switcher.stories.d.ts +14 -0
- package/dist/lib/components/ui/layout/index.d.ts +3 -0
- package/dist/lib/components/ui/layout/list-details-layout.d.ts +47 -0
- package/dist/lib/components/ui/layout/list-details-layout.stories.d.ts +13 -0
- package/dist/lib/components/ui/layout/pane-layout.d.ts +48 -0
- package/dist/lib/components/ui/layout/pane-layout.stories.d.ts +13 -0
- package/dist/lib/components/ui/layout/thread-layout.d.ts +18 -0
- package/dist/lib/components/ui/layout/thread-layout.stories.d.ts +15 -0
- package/dist/lib/components/ui/list-tile.d.ts +12 -0
- package/dist/lib/components/ui/list-tile.stories.d.ts +18 -0
- package/dist/lib/components/ui/load-more-button.d.ts +25 -0
- package/dist/lib/components/ui/load-more-button.stories.d.ts +17 -0
- package/dist/lib/components/ui/menubar.d.ts +26 -0
- package/dist/lib/components/ui/navigation-rail/index.d.ts +1 -0
- package/dist/lib/components/ui/navigation-rail/navigation-rail.d.ts +1 -0
- package/dist/lib/components/ui/notifications/index.d.ts +2 -0
- package/dist/lib/components/ui/notifications/notifications-provider.d.ts +7 -0
- package/dist/lib/components/ui/notifications/notifications.d.ts +3 -0
- package/dist/lib/components/ui/notifications/notifications.slice.d.ts +67 -0
- package/dist/lib/components/ui/notifications/notifications.slice.test.d.ts +1 -0
- package/dist/lib/components/ui/notifications/notifications.stories.d.ts +16 -0
- package/dist/lib/components/ui/notifications/notifications.utils.d.ts +8 -0
- package/dist/lib/components/ui/notifications/notifications.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/notifications/partials/notifications-bell.d.ts +1 -0
- package/dist/lib/components/ui/notifications/partials/notifications-categories.d.ts +1 -0
- package/dist/lib/components/ui/notifications/partials/notifications-empty.d.ts +1 -0
- package/dist/lib/components/ui/notifications/partials/notifications-inbox.d.ts +3 -0
- package/dist/lib/components/ui/notifications/partials/notifications-item.d.ts +4 -0
- package/dist/lib/components/ui/notifications/partials/notifications-list.d.ts +1 -0
- package/dist/lib/components/ui/notifications/partials/notifications-toolbar.d.ts +1 -0
- package/dist/lib/components/ui/notifications/types.d.ts +40 -0
- package/dist/lib/components/ui/notifications/use-notifications.d.ts +20 -0
- package/dist/lib/components/ui/notifications/use-skip-first.d.ts +1 -0
- package/dist/lib/components/ui/number-field/index.d.ts +3 -0
- package/dist/lib/components/ui/number-field/number-field.d.ts +22 -0
- package/dist/lib/components/ui/number-field/number-field.stories.d.ts +18 -0
- package/dist/lib/components/ui/number-field/parse-number.d.ts +3 -0
- package/dist/lib/components/ui/number-field/parse-number.test.d.ts +1 -0
- package/dist/lib/components/ui/opening-hours/consts.d.ts +18 -0
- package/dist/lib/components/ui/opening-hours/index.d.ts +6 -0
- package/dist/lib/components/ui/opening-hours/models.d.ts +7 -0
- package/dist/lib/components/ui/opening-hours/opening-hours-dialog.d.ts +10 -0
- package/dist/lib/components/ui/opening-hours/opening-hours-form-field.d.ts +9 -0
- package/dist/lib/components/ui/opening-hours/opening-hours-item.d.ts +11 -0
- package/dist/lib/components/ui/opening-hours/opening-hours.d.ts +12 -0
- package/dist/lib/components/ui/opening-hours/opening-hours.stories.d.ts +15 -0
- package/dist/lib/components/ui/otp-field.d.ts +9 -0
- package/dist/lib/components/ui/otp-field.stories.d.ts +30 -0
- package/dist/lib/components/ui/pagination/index.d.ts +5 -0
- package/dist/lib/components/ui/pagination/pagination-bar.d.ts +9 -0
- package/dist/lib/components/ui/pagination/pagination-items.d.ts +2 -0
- package/dist/lib/components/ui/pagination/pagination-items.test.d.ts +1 -0
- package/dist/lib/components/ui/pagination/pagination.d.ts +18 -0
- package/dist/lib/components/ui/pagination/pagination.stories.d.ts +21 -0
- package/dist/lib/components/ui/password-field.d.ts +8 -0
- package/dist/lib/components/ui/password-field.stories.d.ts +19 -0
- package/dist/lib/components/ui/password-strength-meter.d.ts +3 -0
- package/dist/lib/components/ui/password-strength.d.ts +2 -0
- package/dist/lib/components/ui/password-strength.test.d.ts +1 -0
- package/dist/lib/components/ui/pdf-viewer/index.d.ts +14 -0
- package/dist/lib/components/ui/pdf-viewer/index.test.d.ts +1 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-download.d.ts +3 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-download.test.d.ts +1 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-escape.d.ts +6 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-escape.test.d.ts +1 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-outline-sidebar.d.ts +7 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-page-list.d.ts +11 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-reader-body.d.ts +26 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-reader-keyboard.d.ts +16 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-reader-keyboard.test.d.ts +1 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-reader-states.d.ts +12 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-reader.d.ts +20 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-reader.reducer.d.ts +47 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-reader.stories.d.ts +12 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-search.d.ts +7 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-search.test.d.ts +1 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-sidebar.d.ts +14 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-thumbnail-sidebar.d.ts +10 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-toolbar-actions.d.ts +14 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-toolbar-nav.d.ts +7 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-toolbar-search.d.ts +8 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-toolbar-zoom.d.ts +9 -0
- package/dist/lib/components/ui/pdf-viewer/pdf-toolbar.d.ts +26 -0
- package/dist/lib/components/ui/pdf-viewer/react-pdf.lazy.d.ts +34 -0
- package/dist/lib/components/ui/pdf-viewer/types.d.ts +34 -0
- package/dist/lib/components/ui/pdf-viewer/use-pdf-reader.d.ts +32 -0
- package/dist/lib/components/ui/pdf-viewer/use-pdf-search-hits.d.ts +11 -0
- package/dist/lib/components/ui/percent-field/index.d.ts +2 -0
- package/dist/lib/components/ui/percent-field/percent-field.d.ts +3 -0
- package/dist/lib/components/ui/percent-field/percent-field.stories.d.ts +16 -0
- package/dist/lib/components/ui/phone-field/countries.d.ts +8 -0
- package/dist/lib/components/ui/phone-field/index.d.ts +6 -0
- package/dist/lib/components/ui/phone-field/parse-phone.d.ts +15 -0
- package/dist/lib/components/ui/phone-field/parse-phone.test.d.ts +1 -0
- package/dist/lib/components/ui/phone-field/phone-country-menu.d.ts +6 -0
- package/dist/lib/components/ui/phone-field/phone-field.d.ts +18 -0
- package/dist/lib/components/ui/phone-field/phone-field.stories.d.ts +17 -0
- package/dist/lib/components/ui/popover.d.ts +7 -0
- package/dist/lib/components/ui/postal-address/index.d.ts +5 -0
- package/dist/lib/components/ui/postal-address/models.d.ts +11 -0
- package/dist/lib/components/ui/postal-address/postal-address-dialog.d.ts +10 -0
- package/dist/lib/components/ui/postal-address/postal-address-form-field.d.ts +8 -0
- package/dist/lib/components/ui/postal-address/postal-address.d.ts +10 -0
- package/dist/lib/components/ui/postal-address/postal-address.stories.d.ts +16 -0
- package/dist/lib/components/ui/postal-address/utils.d.ts +4 -0
- package/dist/lib/components/ui/print/components/print-badge.d.ts +7 -0
- package/dist/lib/components/ui/print/components/print-card.d.ts +11 -0
- package/dist/lib/components/ui/print/components/print-header.d.ts +8 -0
- package/dist/lib/components/ui/print/components/print-section.d.ts +12 -0
- package/dist/lib/components/ui/print/components/print-table.d.ts +14 -0
- package/dist/lib/components/ui/print/components/print-totals.d.ts +10 -0
- package/dist/lib/components/ui/print/index.d.ts +9 -0
- package/dist/lib/components/ui/print/styles.d.ts +34 -0
- package/dist/lib/components/ui/print/styles.test.d.ts +1 -0
- package/dist/lib/components/ui/print/tailwind.d.ts +5 -0
- package/dist/lib/components/ui/print/tailwind.test.d.ts +1 -0
- package/dist/lib/components/ui/print/utils.d.ts +5 -0
- package/dist/lib/components/ui/print/utils.test.d.ts +1 -0
- package/dist/lib/components/ui/qrcode.d.ts +7 -0
- package/dist/lib/components/ui/qrcode.stories.d.ts +38 -0
- package/dist/lib/components/ui/radio-group.d.ts +16 -0
- package/dist/lib/components/ui/radio-group.stories.d.ts +21 -0
- package/dist/lib/components/ui/rating-field/clamp-rating.d.ts +1 -0
- package/dist/lib/components/ui/rating-field/clamp-rating.test.d.ts +1 -0
- package/dist/lib/components/ui/rating-field/index.d.ts +3 -0
- package/dist/lib/components/ui/rating-field/rating-field.d.ts +23 -0
- package/dist/lib/components/ui/rating-field/rating-field.stories.d.ts +24 -0
- package/dist/lib/components/ui/resizable.d.ts +7 -0
- package/dist/lib/components/ui/resizable.stories.d.ts +14 -0
- package/dist/lib/components/ui/responsive-grid.d.ts +2 -0
- package/dist/lib/components/ui/responsive-grid.stories.d.ts +15 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/bubble-menu/buble-menu.d.ts +6 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/bubble-menu/index.d.ts +1 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/code/editor-code-block.d.ts +18 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/code/index.d.ts +1 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/color/color-picker-popover.d.ts +10 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/color/editor-color-wrapper.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/color/index.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/accordion/accordion-component.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/accordion/accordion-item-edit-dialog.d.ts +8 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/accordion/accordion-item-edit-form.d.ts +7 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/accordion/const.d.ts +7 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/accordion/editor-accordion-wrapper.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/accordion/extension.d.ts +13 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/accordion/index.d.ts +6 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/action-card/action-card-component.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/action-card/action-card-item-edit-dialog.d.ts +10 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/action-card/action-card-item-edit-form.d.ts +9 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/action-card/action-card-settings-dialog.d.ts +9 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/action-card/action-card-settings-form.d.ts +10 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/action-card/const.d.ts +15 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/action-card/editor-action-card-wrapper.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/action-card/extension.d.ts +14 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/action-card/index.d.ts +8 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/callout/callout-component.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/callout/callout-edit-dialog.d.ts +10 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/callout/callout-edit-form.d.ts +9 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/callout/callout-insert-menu.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/callout/const.d.ts +9 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/callout/extension.d.ts +15 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/callout/index.d.ts +6 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/checkbox-group/checkbox-group-edit-dialog.d.ts +14 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/checkbox-group/checkbox-group-edit-form.d.ts +15 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/checkbox-group/checkbox-group-node-component.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/checkbox-group/const.d.ts +8 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/checkbox-group/editor-checkbox-group-wrapper.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/checkbox-group/extension.d.ts +16 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/checkbox-group/index.d.ts +6 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/gallery/const.d.ts +7 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/gallery/editor-gallery-wrapper.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/gallery/extension.d.ts +13 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/gallery/gallery-component.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/gallery/gallery-edit-dialog.d.ts +8 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/gallery/gallery-edit-form.d.ts +7 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/gallery/index.d.ts +6 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/index.d.ts +8 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/radio-group/const.d.ts +8 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/radio-group/editor-radio-group-wrapper.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/radio-group/extension.d.ts +16 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/radio-group/index.d.ts +6 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/radio-group/radio-group-edit-dialog.d.ts +14 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/radio-group/radio-group-edit-form.d.ts +15 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/radio-group/radio-group-node-component.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/select-card/const.d.ts +13 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/select-card/editor-select-card-wrapper.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/select-card/extension.d.ts +16 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/select-card/index.d.ts +8 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/select-card/select-card-item-edit-dialog.d.ts +9 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/select-card/select-card-item-edit-form.d.ts +8 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/select-card/select-card-node-component.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/select-card/select-card-settings-dialog.d.ts +11 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/select-card/select-card-settings-form.d.ts +12 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/select-chip/const.d.ts +7 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/select-chip/editor-select-chip-wrapper.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/select-chip/extension.d.ts +16 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/select-chip/index.d.ts +6 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/select-chip/select-chip-edit-dialog.d.ts +14 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/select-chip/select-chip-edit-form.d.ts +15 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/select-chip/select-chip-node-component.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/shared/icon-options.d.ts +6 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/shared/index.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/custom/shared/repeating-field-list.d.ts +16 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/emoji/consts.d.ts +30 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/emoji/emoji-list.d.ts +7 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/emoji/emoji-picker.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/emoji/index.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/font-family/editor-font-family-wrapper.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/font-family/index.d.ts +1 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/heading/heading-wrapper.d.ts +5 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/heading/index.d.ts +1 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/highlight/editor-highlight-wrapper.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/highlight/index.d.ts +1 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/image/editor-image-wrapper.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/image/editor-image.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/image/index.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/index.d.ts +12 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/link/editor-link-wrapper.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/link/editor-link.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/link/index.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/marks/editor-mark-buttons.d.ts +6 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/marks/index.d.ts +1 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/mention/index.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/mention/mention-list.d.ts +1 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/mention/suggestions.d.ts +9 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/slash-command/extension.d.ts +7 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/slash-command/index.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/slash-command/slash-command-basic.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/slash-command/slash-command-insert.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/slash-command/slash-command-items.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/slash-command/slash-command-items.test.d.ts +1 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/slash-command/slash-command-list.d.ts +13 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/slash-command/slash-command-types.d.ts +19 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/table/editor-table-menu.d.ts +5 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/table/editor-table-wrapper.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/table/index.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/table/table-cell.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/table/table-properties-form.d.ts +12 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/table/table.d.ts +15 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/text-align/editor-text-align-wrapper.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/text-align/index.d.ts +1 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/youtube/editor-youtube-wrapper.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/youtube/editor-youtube.d.ts +4 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/youtube/index.d.ts +2 -0
- package/dist/lib/components/ui/rich-text-editor/index.d.ts +1 -0
- package/dist/lib/components/ui/rich-text-editor/rich-text-editor-toolbar.d.ts +8 -0
- package/dist/lib/components/ui/rich-text-editor/rich-text-editor-wrapper.d.ts +13 -0
- package/dist/lib/components/ui/rich-text-editor/rich-text-editor.d.ts +14 -0
- package/dist/lib/components/ui/rich-text-editor/rich-text-editor.stories.d.ts +25 -0
- package/dist/lib/components/ui/rich-text-editor/rich-text-editor.story-data.d.ts +3 -0
- package/dist/lib/components/ui/rich-text-editor/types.d.ts +29 -0
- package/dist/lib/components/ui/scroll-area.d.ts +5 -0
- package/dist/lib/components/ui/scroll-to-top.d.ts +20 -0
- package/dist/lib/components/ui/scroll-to-top.stories.d.ts +346 -0
- package/dist/lib/components/ui/search-field/debounce.d.ts +5 -0
- package/dist/lib/components/ui/search-field/debounce.test.d.ts +1 -0
- package/dist/lib/components/ui/search-field/index.d.ts +4 -0
- package/dist/lib/components/ui/search-field/search-field.d.ts +11 -0
- package/dist/lib/components/ui/search-field/search-field.stories.d.ts +18 -0
- package/dist/lib/components/ui/select-card-field.d.ts +20 -0
- package/dist/lib/components/ui/select-card-field.stories.d.ts +16 -0
- package/dist/lib/components/ui/select-chip-field.d.ts +17 -0
- package/dist/lib/components/ui/select-chip-field.stories.d.ts +16 -0
- package/dist/lib/components/ui/select-field.d.ts +20 -0
- package/dist/lib/components/ui/select-field.stories.d.ts +21 -0
- package/dist/lib/components/ui/select.d.ts +15 -0
- package/dist/lib/components/ui/separator.d.ts +4 -0
- package/dist/lib/components/ui/separator.stories.d.ts +14 -0
- package/dist/lib/components/ui/sheet.d.ts +15 -0
- package/dist/lib/components/ui/shortcut-glyph.d.ts +2 -0
- package/dist/lib/components/ui/shortcut-glyph.test.d.ts +1 -0
- package/dist/lib/components/ui/sidebar.d.ts +18 -0
- package/dist/lib/components/ui/sidebar.stories.d.ts +14 -0
- package/dist/lib/components/ui/skeleton/index.d.ts +5 -0
- package/dist/lib/components/ui/skeleton/skeleton-avatar.d.ts +12 -0
- package/dist/lib/components/ui/skeleton/skeleton-card.d.ts +4 -0
- package/dist/lib/components/ui/skeleton/skeleton-table.d.ts +6 -0
- package/dist/lib/components/ui/skeleton/skeleton-text.d.ts +6 -0
- package/dist/lib/components/ui/skeleton/skeleton.d.ts +3 -0
- package/dist/lib/components/ui/skeleton/skeleton.stories.d.ts +19 -0
- package/dist/lib/components/ui/slider-control.d.ts +6 -0
- package/dist/lib/components/ui/slider-readout.d.ts +9 -0
- package/dist/lib/components/ui/slider-ticks.d.ts +1 -0
- package/dist/lib/components/ui/slider-ticks.test.d.ts +1 -0
- package/dist/lib/components/ui/slider.d.ts +13 -0
- package/dist/lib/components/ui/slider.stories.d.ts +16 -0
- package/dist/lib/components/ui/sortable-list/index.d.ts +4 -0
- package/dist/lib/components/ui/sortable-list/partials/sortable-list-dnd.d.ts +8 -0
- package/dist/lib/components/ui/sortable-list/partials/sortable-list-empty.d.ts +3 -0
- package/dist/lib/components/ui/sortable-list/partials/sortable-list-item.d.ts +18 -0
- package/dist/lib/components/ui/sortable-list/sortable-list.d.ts +21 -0
- package/dist/lib/components/ui/sortable-list/sortable-list.keyboard.d.ts +19 -0
- package/dist/lib/components/ui/sortable-list/sortable-list.keyboard.test.d.ts +1 -0
- package/dist/lib/components/ui/sortable-list/sortable-list.stories.d.ts +21 -0
- package/dist/lib/components/ui/sortable-list/types.d.ts +11 -0
- package/dist/lib/components/ui/sortable-list/use-sortable-list.d.ts +18 -0
- package/dist/lib/components/ui/stat-card/format-stat-delta.d.ts +5 -0
- package/dist/lib/components/ui/stat-card/format-stat-delta.test.d.ts +1 -0
- package/dist/lib/components/ui/stat-card/index.d.ts +4 -0
- package/dist/lib/components/ui/stat-card/stat-card.d.ts +13 -0
- package/dist/lib/components/ui/stat-card/stat-card.stories.d.ts +17 -0
- package/dist/lib/components/ui/status-indicator.d.ts +10 -0
- package/dist/lib/components/ui/status-indicator.stories.d.ts +16 -0
- package/dist/lib/components/ui/stepper/index.d.ts +5 -0
- package/dist/lib/components/ui/stepper/step-state.d.ts +3 -0
- package/dist/lib/components/ui/stepper/step-state.test.d.ts +1 -0
- package/dist/lib/components/ui/stepper/stepper-icon.d.ts +7 -0
- package/dist/lib/components/ui/stepper/stepper-indicator.d.ts +4 -0
- package/dist/lib/components/ui/stepper/stepper.d.ts +19 -0
- package/dist/lib/components/ui/stepper/stepper.stories.d.ts +16 -0
- package/dist/lib/components/ui/stories-consts.d.ts +10 -0
- package/dist/lib/components/ui/stories-dark-theme.d.ts +2 -0
- package/dist/lib/components/ui/stx-player/consts.d.ts +7 -0
- package/dist/lib/components/ui/stx-player/format-time.d.ts +2 -0
- package/dist/lib/components/ui/stx-player/format-time.test.d.ts +1 -0
- package/dist/lib/components/ui/stx-player/index.d.ts +16 -0
- package/dist/lib/components/ui/stx-player/stx-player-controls.d.ts +7 -0
- package/dist/lib/components/ui/stx-player/stx-player-extras.d.ts +7 -0
- package/dist/lib/components/ui/stx-player/stx-player-keyboard.d.ts +17 -0
- package/dist/lib/components/ui/stx-player/stx-player-keyboard.test.d.ts +1 -0
- package/dist/lib/components/ui/stx-player/stx-player-mini.d.ts +4 -0
- package/dist/lib/components/ui/stx-player/stx-player-provider.d.ts +3 -0
- package/dist/lib/components/ui/stx-player/stx-player-queue.d.ts +4 -0
- package/dist/lib/components/ui/stx-player/stx-player-viewport.d.ts +6 -0
- package/dist/lib/components/ui/stx-player/stx-player.d.ts +2 -0
- package/dist/lib/components/ui/stx-player/stx-player.slice.d.ts +226 -0
- package/dist/lib/components/ui/stx-player/stx-player.slice.test.d.ts +1 -0
- package/dist/lib/components/ui/stx-player/stx-player.stories.d.ts +24 -0
- package/dist/lib/components/ui/stx-player/types.d.ts +82 -0
- package/dist/lib/components/ui/stx-player/use-media-bindings.d.ts +20 -0
- package/dist/lib/components/ui/stx-player/use-media-events.d.ts +11 -0
- package/dist/lib/components/ui/stx-player/use-player-shell.d.ts +20 -0
- package/dist/lib/components/ui/stx-player/use-stx-player.d.ts +4 -0
- package/dist/lib/components/ui/summary-data.d.ts +10 -0
- package/dist/lib/components/ui/summary-data.stories.d.ts +14 -0
- package/dist/lib/components/ui/switch.d.ts +9 -0
- package/dist/lib/components/ui/switch.stories.d.ts +16 -0
- package/dist/lib/components/ui/switcher.d.ts +15 -0
- package/dist/lib/components/ui/switcher.stories.d.ts +15 -0
- package/dist/lib/components/ui/table.d.ts +10 -0
- package/dist/lib/components/ui/table.stories.d.ts +14 -0
- package/dist/lib/components/ui/tabs.d.ts +9 -0
- package/dist/lib/components/ui/tabs.stories.d.ts +14 -0
- package/dist/lib/components/ui/text-field.d.ts +10 -0
- package/dist/lib/components/ui/text-field.stories.d.ts +22 -0
- package/dist/lib/components/ui/textarea-field.d.ts +10 -0
- package/dist/lib/components/ui/textarea-field.stories.d.ts +25 -0
- package/dist/lib/components/ui/textarea.d.ts +3 -0
- package/dist/lib/components/ui/textarea.stories.d.ts +26 -0
- package/dist/lib/components/ui/theme-toggle.d.ts +6 -0
- package/dist/lib/components/ui/theme-toggle.stories.d.ts +14 -0
- package/dist/lib/components/ui/time-field.d.ts +17 -0
- package/dist/lib/components/ui/time-field.stories.d.ts +15 -0
- package/dist/lib/components/ui/time-picker/index.d.ts +1 -0
- package/dist/lib/components/ui/time-picker/time-picker-utils.d.ts +3 -0
- package/dist/lib/components/ui/time-picker/time-picker-utils.test.d.ts +1 -0
- package/dist/lib/components/ui/time-picker/time-picker.d.ts +9 -0
- package/dist/lib/components/ui/time-picker/time-picker.stories.d.ts +15 -0
- package/dist/lib/components/ui/timeline/format-relative-time.d.ts +8 -0
- package/dist/lib/components/ui/timeline/format-relative-time.test.d.ts +1 -0
- package/dist/lib/components/ui/timeline/index.d.ts +8 -0
- package/dist/lib/components/ui/timeline/relative-time.d.ts +7 -0
- package/dist/lib/components/ui/timeline/timeline-item.d.ts +7 -0
- package/dist/lib/components/ui/timeline/timeline.d.ts +10 -0
- package/dist/lib/components/ui/timeline/timeline.stories.d.ts +19 -0
- package/dist/lib/components/ui/timeline/types.d.ts +14 -0
- package/dist/lib/components/ui/timezone-field/index.d.ts +4 -0
- package/dist/lib/components/ui/timezone-field/timezone-field.d.ts +5 -0
- package/dist/lib/components/ui/timezone-field/timezone-field.stories.d.ts +14 -0
- package/dist/lib/components/ui/timezone-field/timezones.d.ts +4 -0
- package/dist/lib/components/ui/timezone-field/timezones.test.d.ts +1 -0
- package/dist/lib/components/ui/toggle-group.d.ts +9 -0
- package/dist/lib/components/ui/toggle-group.stories.d.ts +25 -0
- package/dist/lib/components/ui/toggle.d.ts +9 -0
- package/dist/lib/components/ui/toggle.stories.d.ts +16 -0
- package/dist/lib/components/ui/tooltip.d.ts +10 -0
- package/dist/lib/components/ui/tooltip.stories.d.ts +15 -0
- package/dist/lib/components/ui/transfer-list/index.d.ts +3 -0
- package/dist/lib/components/ui/transfer-list/partials/transfer-list-actions.d.ts +18 -0
- package/dist/lib/components/ui/transfer-list/partials/transfer-list-board.d.ts +33 -0
- package/dist/lib/components/ui/transfer-list/partials/transfer-list-dnd.d.ts +13 -0
- package/dist/lib/components/ui/transfer-list/partials/transfer-list-droppable.d.ts +12 -0
- package/dist/lib/components/ui/transfer-list/partials/transfer-list-empty.d.ts +3 -0
- package/dist/lib/components/ui/transfer-list/partials/transfer-list-item-row.d.ts +4 -0
- package/dist/lib/components/ui/transfer-list/partials/transfer-list-item.d.ts +22 -0
- package/dist/lib/components/ui/transfer-list/partials/transfer-list-pane-body.d.ts +21 -0
- package/dist/lib/components/ui/transfer-list/partials/transfer-list-pane-header.d.ts +12 -0
- package/dist/lib/components/ui/transfer-list/partials/transfer-list-pane.d.ts +35 -0
- package/dist/lib/components/ui/transfer-list/transfer-list.d.ts +25 -0
- package/dist/lib/components/ui/transfer-list/transfer-list.dnd.d.ts +10 -0
- package/dist/lib/components/ui/transfer-list/transfer-list.dnd.test.d.ts +1 -0
- package/dist/lib/components/ui/transfer-list/transfer-list.keyboard.d.ts +46 -0
- package/dist/lib/components/ui/transfer-list/transfer-list.keyboard.test.d.ts +1 -0
- package/dist/lib/components/ui/transfer-list/transfer-list.slice.d.ts +110 -0
- package/dist/lib/components/ui/transfer-list/transfer-list.stories.d.ts +27 -0
- package/dist/lib/components/ui/transfer-list/transfer-list.stories.data.d.ts +3 -0
- package/dist/lib/components/ui/transfer-list/transfer-list.utils.d.ts +20 -0
- package/dist/lib/components/ui/transfer-list/transfer-list.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/transfer-list/types.d.ts +29 -0
- package/dist/lib/components/ui/transfer-list/use-transfer-list.d.ts +52 -0
- package/dist/lib/components/ui/tree/index.d.ts +6 -0
- package/dist/lib/components/ui/tree/tree-item.d.ts +11 -0
- package/dist/lib/components/ui/tree/tree.d.ts +3 -0
- package/dist/lib/components/ui/tree/tree.stories.d.ts +16 -0
- package/dist/lib/components/ui/tree/tree.utils.d.ts +4 -0
- package/dist/lib/components/ui/tree/tree.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/tree/types.d.ts +31 -0
- package/dist/lib/components/ui/tree/use-tree.d.ts +22 -0
- package/dist/lib/components/ui/typography.d.ts +7 -0
- package/dist/lib/components/ui/upload/index.d.ts +2 -0
- package/dist/lib/components/ui/upload/network-upload-field/index.d.ts +1 -0
- package/dist/lib/components/ui/upload/network-upload-field/network-upload-field.d.ts +33 -0
- package/dist/lib/components/ui/upload/network-upload-field/network-upload-field.slice.d.ts +249 -0
- package/dist/lib/components/ui/upload/network-upload-field/network-upload-field.stories.d.ts +31 -0
- package/dist/lib/components/ui/upload/network-upload-field/network-upload-field.utils.d.ts +40 -0
- package/dist/lib/components/ui/upload/network-upload-field/network-upload-field.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/upload/network-upload-field/network-upload-item.d.ts +22 -0
- package/dist/lib/components/ui/upload/network-upload-field/use-file-drag-drop.d.ts +14 -0
- package/dist/lib/components/ui/upload/network-upload-field/use-network-upload-field.d.ts +19 -0
- package/dist/lib/components/ui/upload/network-upload-field/use-upload-items.d.ts +14 -0
- package/dist/lib/components/ui/upload/s3-upload-field/index.d.ts +1 -0
- package/dist/lib/components/ui/upload/s3-upload-field/s3-upload-field.d.ts +12 -0
- package/dist/lib/components/ui/upload/s3-upload-field/s3-upload-field.stories.d.ts +15 -0
- package/dist/lib/components/ui/upload/s3-upload-field/s3-upload-field.utils.d.ts +5 -0
- package/dist/lib/components/ui/upload-field.d.ts +14 -0
- package/dist/lib/components/ui/upload-field.stories.d.ts +22 -0
- package/dist/lib/components/ui/url-field/index.d.ts +3 -0
- package/dist/lib/components/ui/url-field/parse-url.d.ts +2 -0
- package/dist/lib/components/ui/url-field/parse-url.test.d.ts +1 -0
- package/dist/lib/components/ui/url-field/url-field.d.ts +3 -0
- package/dist/lib/components/ui/url-field/url-field.stories.d.ts +16 -0
- package/dist/lib/components/ui/video-player/index.d.ts +2 -0
- package/dist/lib/dnd/index.d.ts +1 -0
- package/dist/lib/hooks/index.d.ts +10 -0
- package/dist/lib/hooks/resolve-theme.d.ts +7 -0
- package/dist/lib/hooks/resolve-theme.test.d.ts +1 -0
- package/dist/lib/hooks/use-allowed-transitions.d.ts +31 -0
- package/dist/lib/hooks/use-is-client.d.ts +2 -0
- package/dist/lib/hooks/use-localized-date.d.ts +21 -0
- package/dist/lib/hooks/use-mobile.d.ts +1 -0
- package/dist/lib/hooks/use-navigation.d.ts +6 -0
- package/dist/lib/hooks/use-number-formatter.d.ts +12 -0
- package/dist/lib/hooks/use-options.d.ts +29 -0
- package/dist/lib/hooks/use-search-param.d.ts +10 -0
- package/dist/lib/hooks/use-theme.d.ts +7 -0
- package/dist/lib/i18n/consts.d.ts +7 -0
- package/dist/lib/i18n/i18n-provider.d.ts +61 -0
- package/dist/lib/i18n/i18n-provider.stories.d.ts +29 -0
- package/dist/lib/i18n/index.d.ts +8 -0
- package/dist/lib/i18n/material-components.stories.d.ts +30 -0
- package/dist/lib/i18n/merge-resources.d.ts +40 -0
- package/dist/lib/i18n/merge-resources.test.d.ts +1 -0
- package/dist/lib/i18n/resources/en/index.d.ts +761 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +753 -0
- package/dist/lib/i18n/resources/fr/index.d.ts +761 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +753 -0
- package/dist/lib/i18n/resources/index.d.ts +1512 -0
- package/dist/lib/i18n/translator.d.ts +28 -0
- package/dist/lib/i18n/translator.test.d.ts +1 -0
- package/dist/lib/i18n/types.d.ts +43 -0
- package/dist/lib/i18n/use-material-translation.d.ts +21 -0
- package/dist/lib/i18n/use-typed-translation.d.ts +27 -0
- package/dist/lib/lib/array.utils.d.ts +13 -0
- package/dist/lib/lib/array.utils.test.d.ts +1 -0
- package/dist/lib/lib/build-field-options.d.ts +8 -0
- package/dist/lib/lib/build-field-options.test.d.ts +1 -0
- package/dist/lib/lib/client-only.utils.d.ts +22 -0
- package/dist/lib/lib/date.utils.d.ts +28 -0
- package/dist/lib/lib/date.utils.test.d.ts +1 -0
- package/dist/lib/lib/format.utils.d.ts +4 -0
- package/dist/lib/lib/format.utils.test.d.ts +1 -0
- package/dist/lib/lib/index.d.ts +17 -0
- package/dist/lib/lib/number.utils.d.ts +17 -0
- package/dist/lib/lib/number.utils.spec.d.ts +1 -0
- package/dist/lib/lib/object.utils.d.ts +11 -0
- package/dist/lib/lib/object.utils.test.d.ts +1 -0
- package/dist/lib/lib/promise.utils.d.ts +1 -0
- package/dist/lib/lib/promise.utils.test.d.ts +1 -0
- package/dist/lib/lib/redux/async-slice.d.ts +6 -0
- package/dist/lib/lib/redux/filter-slice.d.ts +23 -0
- package/dist/lib/lib/redux/filter-slice.test.d.ts +1 -0
- package/dist/lib/lib/redux/index.d.ts +7 -0
- package/dist/lib/lib/redux/status-slice.d.ts +50 -0
- package/dist/lib/lib/redux/status-slice.test.d.ts +1 -0
- package/dist/lib/lib/redux/step-form-slice.d.ts +48 -0
- package/dist/lib/lib/redux/step-form-slice.test.d.ts +1 -0
- package/dist/lib/lib/redux/use-actions.d.ts +2 -0
- package/dist/lib/lib/redux/use-slice-reducer.d.ts +3 -0
- package/dist/lib/lib/redux/use-slice-reducer.test.d.ts +1 -0
- package/dist/lib/lib/redux/use-slice-selector.d.ts +5 -0
- package/dist/lib/lib/storage.utils.d.ts +8 -0
- package/dist/lib/lib/storage.utils.test.d.ts +1 -0
- package/dist/lib/lib/string.utils.d.ts +6 -0
- package/dist/lib/lib/string.utils.test.d.ts +1 -0
- package/dist/lib/lib/styles.utils.d.ts +3 -0
- package/dist/lib/lib/styles.utils.test.d.ts +1 -0
- package/dist/lib/lib/ui.utils.d.ts +7 -0
- package/dist/lib/lib/upload.utils.d.ts +1 -0
- package/dist/lib/lib/upload.utils.test.d.ts +1 -0
- package/dist/lib/lib/url.utils.d.ts +2 -0
- package/dist/lib/lib/url.utils.test.d.ts +1 -0
- package/dist/lib/lib/utils.d.ts +2 -0
- package/dist/lib/lib/utils.test.d.ts +1 -0
- package/dist/lib/lib/zod-error-map.d.ts +26 -0
- package/dist/lib/lib/zod-error-map.test.d.ts +1 -0
- package/dist/lib/main.d.ts +6 -0
- package/dist/lib/models/index.d.ts +1 -0
- package/dist/lib/models/status.d.ts +5 -0
- package/dist/lib/types/functions.d.ts +36 -0
- package/dist/lib/types/index.d.ts +1 -0
- package/dist/lib-CaKARQ-7.js +2363 -0
- package/dist/lib.js +3 -0
- package/dist/main-BXsIMfbM.js +159901 -0
- package/dist/main.js +6 -0
- package/dist/material.css +3 -0
- package/dist/models.js +0 -0
- package/dist/number.utils-BR3XO6me.js +2681 -0
- package/dist/pdf.worker.min-DRpqlnXj.js +4 -0
- package/dist/styles.css +455 -0
- package/dist/types.js +0 -0
- package/package.json +188 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { NetworkUploadField } from '../../..';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof NetworkUploadField;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
export declare const Multiple: Story;
|
|
15
|
+
export declare const WithValidation: Story;
|
|
16
|
+
export declare const AlwaysFails: Story;
|
|
17
|
+
export declare const IndeterminateProgress: Story;
|
|
18
|
+
export declare const WithRemovableFiles: Story;
|
|
19
|
+
/**
|
|
20
|
+
* A value saved in an earlier session previews from its own URL — nothing to
|
|
21
|
+
* wire up, the extension is enough.
|
|
22
|
+
*/
|
|
23
|
+
export declare const SavedImage: Story;
|
|
24
|
+
/**
|
|
25
|
+
* When the stored value is a storage key rather than a URL, `resolveUrl` is
|
|
26
|
+
* what turns it into something an `<img>` can load. Without it the row falls
|
|
27
|
+
* back to the file icon, because `avatars/…/x.png` in an `<img src>` would
|
|
28
|
+
* resolve against the current page.
|
|
29
|
+
*/
|
|
30
|
+
export declare const SavedKeyWithResolver: Story;
|
|
31
|
+
export declare const Dark: Story;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export type FileValidationError = 'accept' | 'max-size' | 'max-files';
|
|
2
|
+
export type ValidateFileOptions = {
|
|
3
|
+
accept?: string;
|
|
4
|
+
maxSize?: number;
|
|
5
|
+
maxFiles?: number;
|
|
6
|
+
currentCount?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function matchesAccept(file: File, accept: string): boolean;
|
|
9
|
+
export declare function validateFile(file: File, options: ValidateFileOptions): FileValidationError | null;
|
|
10
|
+
export declare function formatFileSize(bytes: number): string;
|
|
11
|
+
export declare function getValidationMessage(error: FileValidationError, options: ValidateFileOptions): string;
|
|
12
|
+
export declare function createFileId(): string;
|
|
13
|
+
export declare function filenameFromValue(value: string): string;
|
|
14
|
+
export declare function getUploadErrorMessage(error: unknown): string;
|
|
15
|
+
/**
|
|
16
|
+
* Whether a stored value looks like an image, judged by extension.
|
|
17
|
+
*
|
|
18
|
+
* A committed value is a bare string — a URL, a storage key or an id — so
|
|
19
|
+
* there is no `File` to read a MIME type from. The name is all there is, and
|
|
20
|
+
* `filenameFromValue` already strips a URL down to its last path segment, so a
|
|
21
|
+
* presigned URL with a long query string still ends in `.png`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function isImageValue(value: string): boolean;
|
|
24
|
+
/** Whether a value can go straight into an `<img src>` as it stands. */
|
|
25
|
+
export declare function isDisplayableSrc(value: string): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The `src` to preview a committed value with, or `undefined` for the file
|
|
28
|
+
* icon.
|
|
29
|
+
*
|
|
30
|
+
* Two kinds of value reach this. A URL is displayable as it stands. A storage
|
|
31
|
+
* key or an id is not — `avatars/<user>/<uuid>.png` in an `<img src>` resolves
|
|
32
|
+
* against the current page — so those need `resolveUrl` from the host, which
|
|
33
|
+
* is the only side that knows how to sign or address them.
|
|
34
|
+
*
|
|
35
|
+
* Either side may carry the extension: an id resolves to a URL that ends in
|
|
36
|
+
* `.png` while carrying nothing itself, and a key ends in `.png` while
|
|
37
|
+
* resolving to a signed URL whose path does too. Whichever one looks like an
|
|
38
|
+
* image is enough.
|
|
39
|
+
*/
|
|
40
|
+
export declare function resolvePreviewUrl(value: string, resolveUrl?: (value: string) => string | null | undefined): string | undefined;
|
package/dist/lib/components/ui/upload/network-upload-field/network-upload-field.utils.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type NetworkUploadItemStatus = 'uploading' | 'success' | 'error';
|
|
3
|
+
export type NetworkUploadDisplayItem = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
size?: number;
|
|
7
|
+
status: NetworkUploadItemStatus;
|
|
8
|
+
progress?: number;
|
|
9
|
+
file?: File;
|
|
10
|
+
/** Thumbnail source for a committed value, when one could be worked out. */
|
|
11
|
+
previewUrl?: string;
|
|
12
|
+
errorMessage?: string;
|
|
13
|
+
};
|
|
14
|
+
export type NetworkUploadItemProps = ComponentProps<'div'> & {
|
|
15
|
+
item: NetworkUploadDisplayItem;
|
|
16
|
+
accept?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
onReplace: (item: NetworkUploadDisplayItem, file: File) => void;
|
|
19
|
+
onRetry: (item: NetworkUploadDisplayItem) => void;
|
|
20
|
+
onRemove: (item: NetworkUploadDisplayItem) => void;
|
|
21
|
+
};
|
|
22
|
+
export declare function NetworkUploadItem({ item, accept, disabled, onReplace, onRetry, onRemove, className, ...rest }: NetworkUploadItemProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DragEvent } from 'react';
|
|
2
|
+
export type UseFileDragDropOptions = {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
onDropFiles: (files: File[]) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare function useFileDragDrop({ disabled, onDropFiles, }: UseFileDragDropOptions): {
|
|
7
|
+
isDragActive: boolean;
|
|
8
|
+
dragHandlers: {
|
|
9
|
+
onDragEnter: (event: DragEvent) => void;
|
|
10
|
+
onDragOver: (event: DragEvent) => void;
|
|
11
|
+
onDragLeave: (event: DragEvent) => void;
|
|
12
|
+
onDrop: (event: DragEvent) => void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NetworkUploadFieldProps } from './network-upload-field';
|
|
2
|
+
import { NetworkUploadDisplayItem } from './network-upload-item';
|
|
3
|
+
export declare function useNetworkUploadField(props: NetworkUploadFieldProps): {
|
|
4
|
+
displayItems: NetworkUploadDisplayItem[];
|
|
5
|
+
showEmptyZone: boolean;
|
|
6
|
+
atCapacity: boolean;
|
|
7
|
+
zoneDisabled: boolean;
|
|
8
|
+
isDragActive: boolean;
|
|
9
|
+
dragHandlers: {
|
|
10
|
+
onDragEnter: (event: import('react').DragEvent) => void;
|
|
11
|
+
onDragOver: (event: import('react').DragEvent) => void;
|
|
12
|
+
onDragLeave: (event: import('react').DragEvent) => void;
|
|
13
|
+
onDrop: (event: import('react').DragEvent) => void;
|
|
14
|
+
};
|
|
15
|
+
handleFilesSelected: (files: File[]) => void;
|
|
16
|
+
handleItemReplace: (item: NetworkUploadDisplayItem, file: File) => void;
|
|
17
|
+
handleItemRetry: (item: NetworkUploadDisplayItem) => void;
|
|
18
|
+
handleItemRemove: (item: NetworkUploadDisplayItem) => void;
|
|
19
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NetworkUploadFieldProps } from './network-upload-field';
|
|
2
|
+
import { NetworkUploadDisplayItem } from './network-upload-item';
|
|
3
|
+
export declare function useUploadItems(props: NetworkUploadFieldProps): {
|
|
4
|
+
localItems: import('./network-upload-field.slice').LocalFileItem[];
|
|
5
|
+
fileForValue: (value: string) => File | undefined;
|
|
6
|
+
addLocalItem: (file: File, options?: {
|
|
7
|
+
replacesValue?: string;
|
|
8
|
+
maxFiles?: number;
|
|
9
|
+
currentCount?: number;
|
|
10
|
+
}) => void;
|
|
11
|
+
handleItemReplace: (item: NetworkUploadDisplayItem, file: File) => void;
|
|
12
|
+
handleItemRetry: (item: NetworkUploadDisplayItem) => void;
|
|
13
|
+
handleItemRemove: (item: NetworkUploadDisplayItem) => void;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './s3-upload-field';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NetworkUploadFieldProps } from '../network-upload-field';
|
|
2
|
+
type DistributiveOmit<T, K extends PropertyKey> = T extends any ? Omit<T, K> : never;
|
|
3
|
+
export type PresignedUploadTarget = {
|
|
4
|
+
uploadUrl: string;
|
|
5
|
+
publicUrl: string;
|
|
6
|
+
headers?: Record<string, string>;
|
|
7
|
+
};
|
|
8
|
+
export type S3UploadFieldProps = DistributiveOmit<NetworkUploadFieldProps, 'onUpload'> & {
|
|
9
|
+
getPresignedUrl: (file: File) => Promise<PresignedUploadTarget>;
|
|
10
|
+
};
|
|
11
|
+
export declare function S3UploadField({ getPresignedUrl, ...props }: S3UploadFieldProps): import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { S3UploadField } from '../../..';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof S3UploadField;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
export declare const Multiple: Story;
|
|
15
|
+
export declare const Dark: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { InputProps } from './input';
|
|
3
|
+
export type UploadFieldProps = {
|
|
4
|
+
label?: ReactNode;
|
|
5
|
+
helperText?: ReactNode;
|
|
6
|
+
error?: boolean;
|
|
7
|
+
} & UploadInputProps;
|
|
8
|
+
export declare function UploadField({ error, helperText, label, ...props }: UploadFieldProps): import("react").JSX.Element;
|
|
9
|
+
type UploadInputProps = {
|
|
10
|
+
error?: boolean;
|
|
11
|
+
leading?: ReactNode;
|
|
12
|
+
trailing?: ReactNode;
|
|
13
|
+
} & Omit<InputProps, 'type'>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { UploadField } from '..';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof UploadField;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
error: {
|
|
12
|
+
control: "boolean";
|
|
13
|
+
};
|
|
14
|
+
disabled: {
|
|
15
|
+
control: "boolean";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
export declare const Default: Story;
|
|
22
|
+
export declare const Dark: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TextFieldProps } from '../text-field';
|
|
2
|
+
export type UrlFieldProps = Omit<TextFieldProps, 'type' | 'leading' | 'trailing'>;
|
|
3
|
+
export declare function UrlField({ value, defaultValue, onChange, onBlur, error, helperText, autoComplete, disabled, ...props }: UrlFieldProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { UrlField } from '../..';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof UrlField;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
export declare const Valid: Story;
|
|
15
|
+
export declare const ErrorState: Story;
|
|
16
|
+
export declare const Dark: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/ui/dnd';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './resolve-theme';
|
|
2
|
+
export * from './use-allowed-transitions';
|
|
3
|
+
export * from './use-is-client';
|
|
4
|
+
export * from './use-localized-date';
|
|
5
|
+
export * from './use-mobile';
|
|
6
|
+
export * from './use-navigation';
|
|
7
|
+
export * from './use-number-formatter';
|
|
8
|
+
export * from './use-options';
|
|
9
|
+
export * from './use-search-param';
|
|
10
|
+
export * from './use-theme';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type ThemePreference = 'light' | 'dark' | 'system';
|
|
2
|
+
export type ResolvedTheme = 'light' | 'dark';
|
|
3
|
+
export declare function resolveTheme(stored: string | undefined | null, prefersDark: boolean): {
|
|
4
|
+
theme: ResolvedTheme;
|
|
5
|
+
preference: ThemePreference;
|
|
6
|
+
};
|
|
7
|
+
export declare function applyResolvedTheme(theme: ResolvedTheme): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ResponsiveButtonProps } from '../components/ui/buttons/responsive-button';
|
|
2
|
+
import { IconName } from '../components/ui/icon';
|
|
3
|
+
import { TranslationContext } from '../i18n';
|
|
4
|
+
/**
|
|
5
|
+
* Locale key type is generic here (`TLocaleKey`) rather than tied to this
|
|
6
|
+
* package's own `MaterialLocaleKey`: consuming apps call this hook with
|
|
7
|
+
* their own merged `LocaleKey` union (base `material.*` keys + their own),
|
|
8
|
+
* so the hook must not hardcode a specific app's i18n type.
|
|
9
|
+
*/
|
|
10
|
+
export type TranslationConfig<TLocaleKey extends string = string> = TLocaleKey | {
|
|
11
|
+
key: TLocaleKey;
|
|
12
|
+
context: TranslationContext;
|
|
13
|
+
};
|
|
14
|
+
export type ActionMetadata<TStatus extends string, TLocaleKey extends string = string> = {
|
|
15
|
+
targetStatus: TStatus;
|
|
16
|
+
icon: IconName;
|
|
17
|
+
color: ResponsiveButtonProps['color'];
|
|
18
|
+
label: TLocaleKey;
|
|
19
|
+
dialogTitle: TLocaleKey;
|
|
20
|
+
dialogMessage: TranslationConfig<TLocaleKey>;
|
|
21
|
+
};
|
|
22
|
+
export type ActionConfig<TStatus extends string, TLocaleKey extends string = string> = Omit<ActionMetadata<TStatus, TLocaleKey>, 'targetStatus'>;
|
|
23
|
+
/**
|
|
24
|
+
* Computes the allowed transitions from the current status based on a transition map and UI configurations.
|
|
25
|
+
*
|
|
26
|
+
* @param currentStatus The current status of the entity.
|
|
27
|
+
* @param allowedTransitions Map of status to list of allowed target statuses.
|
|
28
|
+
* @param configs UI configurations (icons, colors, labels) for each target status.
|
|
29
|
+
* @returns An array of metadata for the allowed actions.
|
|
30
|
+
*/
|
|
31
|
+
export declare function useAllowedTransitions<TStatus extends string, TLocaleKey extends string = string>(currentStatus: TStatus, allowedTransitions: Record<TStatus, TStatus[]>, configs: Partial<Record<TStatus, ActionConfig<TStatus, TLocaleKey>>>): ActionMetadata<TStatus, TLocaleKey>[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Locale } from 'date-fns';
|
|
2
|
+
/**
|
|
3
|
+
* useLocalizedDate - Date formatting bound to the current language.
|
|
4
|
+
*
|
|
5
|
+
* Resolves the date-fns locale from the mounted `I18nProvider` and pre-binds it,
|
|
6
|
+
* so callers do not have to thread a locale through every `DATE_UTILS.format`
|
|
7
|
+
* call. Falls back to `en`/`enUS` when no provider is mounted, which keeps the
|
|
8
|
+
* historical (English) output in apps that have not adopted i18n yet.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* const { format } = useLocalizedDate();
|
|
13
|
+
* <span>{format(invoice.issuedAt)}</span> // 'Oct 1, 2023' / '1 oct. 2023'
|
|
14
|
+
* <span>{format(invoice.issuedAt, 'PPPP')}</span>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function useLocalizedDate(): {
|
|
18
|
+
language: "fr" | "en";
|
|
19
|
+
locale: Locale;
|
|
20
|
+
format: (value?: string | null, formatStr?: string) => string;
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useIsMobile(): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NavigateOptions } from 'react-router';
|
|
2
|
+
export declare function useNavigationHandler(to: string, options?: NavigateOptions): () => void;
|
|
3
|
+
export declare function useNavigationHandlers(routes: {
|
|
4
|
+
to: string;
|
|
5
|
+
options?: NavigateOptions;
|
|
6
|
+
}[]): (() => void)[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useNumberFormatter - Number/currency formatting bound to the current
|
|
3
|
+
* language.
|
|
4
|
+
*
|
|
5
|
+
* Sources the language from the mounted `I18nProvider` (falling back to
|
|
6
|
+
* `formatNumber`'s own `'en-US'` default when no provider is mounted), so
|
|
7
|
+
* callers don't have to thread a locale through every call.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useNumberFormatter(): {
|
|
10
|
+
formatCurrency: (value: number, options?: Omit<Intl.NumberFormatOptions, "language" | "style">) => string;
|
|
11
|
+
formatNumber: (value: number, options?: Omit<Intl.NumberFormatOptions, "language">) => string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type UseOptionsConfig<T extends object> = {
|
|
2
|
+
filter?: (item: T) => boolean;
|
|
3
|
+
value: keyof T | ((item: T) => string);
|
|
4
|
+
label: keyof T | (keyof T)[] | ((item: T) => string);
|
|
5
|
+
expanded?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type InferOptions<T extends object, Expanded extends boolean = false> = Expanded extends true ? (T & {
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
})[] : {
|
|
11
|
+
value: string;
|
|
12
|
+
label: string;
|
|
13
|
+
}[];
|
|
14
|
+
export declare function buildOptions<T extends object, Expanded extends boolean = false>(items: T[], { filter, value, label, expanded }: UseOptionsConfig<T>): InferOptions<T, Expanded>;
|
|
15
|
+
export declare function useOptions<T extends object, Expanded extends boolean = false>(items: T[], config: UseOptionsConfig<T>): InferOptions<T, Expanded>;
|
|
16
|
+
/**
|
|
17
|
+
* extractNode - Unwraps a GraphQL-edges shaped connection (`{ edges: { node
|
|
18
|
+
* }[] }`) into a plain array of nodes, for feeding into {@link useOptions} /
|
|
19
|
+
* {@link buildOptions} (which only operate over plain arrays).
|
|
20
|
+
*/
|
|
21
|
+
export declare function extractNode<T, E extends {
|
|
22
|
+
node: T;
|
|
23
|
+
} = {
|
|
24
|
+
node: T;
|
|
25
|
+
}, C extends {
|
|
26
|
+
edges: E[];
|
|
27
|
+
} = {
|
|
28
|
+
edges: E[];
|
|
29
|
+
}>(container?: C): T[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A hook to access and manipulate the URL search parameters.
|
|
3
|
+
*
|
|
4
|
+
* This hook wraps the `useSearchParams` hook from `react-router` to provide
|
|
5
|
+
* return the query parameter string or a typed object representation of the search parameters.
|
|
6
|
+
*
|
|
7
|
+
* @template T - The type of the search parameters object.
|
|
8
|
+
* @returns A tuple containing the search parameters as a typed object and a function to update them.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useSearchParam(paramName: string): string | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ThemePreference } from './resolve-theme';
|
|
2
|
+
export declare function useTheme(): {
|
|
3
|
+
theme: import('./resolve-theme').ResolvedTheme;
|
|
4
|
+
preference: ThemePreference;
|
|
5
|
+
updateTheme: (next: ThemePreference) => void;
|
|
6
|
+
};
|
|
7
|
+
export type { ResolvedTheme, ThemePreference } from './resolve-theme';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Language } from './types';
|
|
2
|
+
/** `localStorage` key holding the user's selected language. */
|
|
3
|
+
export declare const LANGUAGE_KEY = "language";
|
|
4
|
+
/** Language used when nothing is stored, or the stored value is unsupported. */
|
|
5
|
+
export declare const FALLBACK_LANGUAGE: Language;
|
|
6
|
+
/** Languages the base bundle ships translations for. */
|
|
7
|
+
export declare const SUPPORTED_LANGUAGES: Language[];
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { I18nContextValue, Language } from './types';
|
|
3
|
+
export type I18nProviderProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** Language used when nothing valid is stored. Defaults to `'en'`. */
|
|
6
|
+
defaultLanguage?: Language;
|
|
7
|
+
/** `localStorage` key holding the selected language. Defaults to `'language'`. */
|
|
8
|
+
storageKey?: string;
|
|
9
|
+
/** Languages the app accepts. Defaults to the base bundle's languages. */
|
|
10
|
+
supportedLanguages?: Language[];
|
|
11
|
+
/** Notified after a successful language change (analytics, server sync...). */
|
|
12
|
+
onLanguageChange?: (language: Language) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Language resolved by the host before first render — e.g. from a
|
|
15
|
+
* request's `Accept-Language` header or a locale cookie during SSR. When
|
|
16
|
+
* provided and supported, this is used as-is for the initial render and
|
|
17
|
+
* `localStorage` is not read, so server and first client render always
|
|
18
|
+
* agree and no hydration guard is needed downstream.
|
|
19
|
+
*/
|
|
20
|
+
initialLanguage?: Language;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* I18nProvider - Shares the current language across the whole React tree.
|
|
24
|
+
*
|
|
25
|
+
* This is the piece that makes a language switch re-render every consumer:
|
|
26
|
+
* `language` lives in a single `useState` here rather than in a per-call-site
|
|
27
|
+
* `useState`/`useLocalStorage`, so no `window.location.reload()` is needed
|
|
28
|
+
* after `changeLanguage`.
|
|
29
|
+
*
|
|
30
|
+
* Only language state is shared — resource bundles stay static module imports
|
|
31
|
+
* inside each app, and are passed to `createTranslator` once.
|
|
32
|
+
*
|
|
33
|
+
* In a pure SPA (no `initialLanguage`), the initial language is read from
|
|
34
|
+
* `localStorage` lazily inside `useState`. In SSR, pass `initialLanguage`
|
|
35
|
+
* resolved by the host (e.g. from the request) so the server and first
|
|
36
|
+
* client render agree — `localStorage` is skipped entirely in that case.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```tsx
|
|
40
|
+
* <I18nProvider defaultLanguage="en">
|
|
41
|
+
* <App />
|
|
42
|
+
* </I18nProvider>
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare function I18nProvider({ children, defaultLanguage, storageKey, supportedLanguages, onLanguageChange, initialLanguage, }: I18nProviderProps): import("react").JSX.Element;
|
|
46
|
+
/**
|
|
47
|
+
* useI18nContext - Access the shared language state.
|
|
48
|
+
*
|
|
49
|
+
* Must be used within an {@link I18nProvider}.
|
|
50
|
+
*
|
|
51
|
+
* @throws Error if used outside of I18nProvider
|
|
52
|
+
*/
|
|
53
|
+
export declare function useI18nContext(): I18nContextValue;
|
|
54
|
+
/**
|
|
55
|
+
* useOptionalI18nContext - Same as {@link useI18nContext}, but returns `null`
|
|
56
|
+
* instead of throwing when no provider is mounted.
|
|
57
|
+
*
|
|
58
|
+
* Components shipped by `@nxgt/material` use this so they keep rendering their
|
|
59
|
+
* built-in English defaults in apps that have not adopted `I18nProvider` yet.
|
|
60
|
+
*/
|
|
61
|
+
export declare function useOptionalI18nContext(): I18nContextValue | null;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { I18nProvider } from '.';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof I18nProvider;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
docs: {
|
|
9
|
+
description: {
|
|
10
|
+
component: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
tags: string[];
|
|
15
|
+
argTypes: {
|
|
16
|
+
defaultLanguage: {
|
|
17
|
+
control: "inline-radio";
|
|
18
|
+
options: string[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
args: {
|
|
22
|
+
children: null;
|
|
23
|
+
defaultLanguage: "en";
|
|
24
|
+
storageKey: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default meta;
|
|
28
|
+
type Story = StoryObj<typeof meta>;
|
|
29
|
+
export declare const SharedLanguageState: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './consts';
|
|
2
|
+
export * from './i18n-provider';
|
|
3
|
+
export * from './merge-resources';
|
|
4
|
+
export * from './resources';
|
|
5
|
+
export * from './translator';
|
|
6
|
+
export * from './types';
|
|
7
|
+
export * from './use-material-translation';
|
|
8
|
+
export * from './use-typed-translation';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { I18nProvider } from '.';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof I18nProvider;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
docs: {
|
|
9
|
+
description: {
|
|
10
|
+
component: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
tags: string[];
|
|
15
|
+
args: {
|
|
16
|
+
children: null;
|
|
17
|
+
defaultLanguage: "en";
|
|
18
|
+
storageKey: string;
|
|
19
|
+
};
|
|
20
|
+
argTypes: {
|
|
21
|
+
defaultLanguage: {
|
|
22
|
+
control: "inline-radio";
|
|
23
|
+
options: string[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default meta;
|
|
28
|
+
type Story = StoryObj<typeof meta>;
|
|
29
|
+
export declare const WithProvider: Story;
|
|
30
|
+
export declare const WithoutProvider: Story;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/** A resource bundle: language code -> top-level namespaces. */
|
|
2
|
+
export type ResourceBundle = Record<string, Record<string, unknown>>;
|
|
3
|
+
/**
|
|
4
|
+
* Per-language intersection of a base bundle and an app bundle, so callers keep
|
|
5
|
+
* full key inference over the merged shape:
|
|
6
|
+
*
|
|
7
|
+
* ```ts
|
|
8
|
+
* const resources = mergeResources(materialResources, appResources);
|
|
9
|
+
* type LocaleKey = keyof FlatObject<typeof resources.en, string>;
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export type MergedResources<TBase extends ResourceBundle, TApp extends ResourceBundle> = {
|
|
13
|
+
[L in keyof TBase | keyof TApp]: (L extends keyof TBase ? TBase[L] : unknown) & (L extends keyof TApp ? TApp[L] : unknown);
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Deep-merges the base bundle shipped by `@nxgt/material` with an app's own
|
|
17
|
+
* resources, per language.
|
|
18
|
+
*
|
|
19
|
+
* For each language present in either bundle, the two language objects are
|
|
20
|
+
* merged recursively (`lodash.merge`), so namespaces are combined at every
|
|
21
|
+
* depth: keys unique to either side are kept, and where both sides define the
|
|
22
|
+
* same leaf key the app's value wins.
|
|
23
|
+
*
|
|
24
|
+
* `@nxgt/material` ships everything under a single top-level namespace per
|
|
25
|
+
* language — **`material`** (`resources.en.material.table.*`,
|
|
26
|
+
* `resources.en.material['empty-state'].*`, ...). Apps can override individual
|
|
27
|
+
* strings within it (e.g. just `material.command.title`) without losing the
|
|
28
|
+
* rest of the namespace. In development, any leaf-level override is reported
|
|
29
|
+
* through `console.warn` so it stays visible rather than silent.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* import { mergeResources, resources as materialResources } from '@nxgt/material/i18n';
|
|
34
|
+
* import { resources as appResources } from './resources';
|
|
35
|
+
*
|
|
36
|
+
* export const resources = mergeResources(materialResources, appResources);
|
|
37
|
+
* export type LocaleKey = keyof FlatObject<typeof resources.en, string>;
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare function mergeResources<TBase extends ResourceBundle, TApp extends ResourceBundle>(base: TBase, app: TApp): MergedResources<TBase, TApp>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|