@xerobi/ui 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/LICENSE +21 -0
- package/README.md +164 -2
- package/dist/blocks/data-table/grid/data-grid.d.ts +6 -0
- package/dist/blocks/data-table/grid/data-grid.js +147 -0
- package/dist/blocks/data-table/grid/index.d.ts +2 -0
- package/dist/blocks/data-table/grid/index.js +1 -0
- package/dist/blocks/data-table/grid/types.d.ts +47 -0
- package/dist/blocks/data-table/grid/types.js +1 -0
- package/dist/blocks/data-table/index.d.ts +3 -0
- package/dist/blocks/data-table/index.js +3 -0
- package/dist/blocks/data-table/table/index.d.ts +7 -0
- package/dist/blocks/data-table/table/index.js +7 -0
- package/dist/blocks/data-table/table/table-empty-rows.d.ts +5 -0
- package/dist/blocks/data-table/table/table-empty-rows.js +8 -0
- package/dist/blocks/data-table/table/table-head-custom.d.ts +18 -0
- package/dist/blocks/data-table/table/table-head-custom.js +13 -0
- package/dist/blocks/data-table/table/table-no-data.d.ts +7 -0
- package/dist/blocks/data-table/table/table-no-data.js +8 -0
- package/dist/blocks/data-table/table/table-pagination-custom.d.ts +16 -0
- package/dist/blocks/data-table/table/table-pagination-custom.js +13 -0
- package/dist/blocks/data-table/table/table-selected-action.d.ts +11 -0
- package/dist/blocks/data-table/table/table-selected-action.js +9 -0
- package/dist/blocks/data-table/table/table-skeleton.d.ts +5 -0
- package/dist/blocks/data-table/table/table-skeleton.js +7 -0
- package/dist/blocks/data-table/table/utils.d.ts +1 -0
- package/dist/blocks/data-table/table/utils.js +3 -0
- package/dist/blocks/data-table/tanstack.d.ts +2 -0
- package/dist/blocks/data-table/tanstack.js +1 -0
- package/dist/blocks/filters-result/filters-block.d.ts +7 -0
- package/dist/blocks/filters-result/filters-block.js +8 -0
- package/dist/blocks/filters-result/filters-result.d.ts +16 -0
- package/dist/blocks/filters-result/filters-result.js +10 -0
- package/dist/blocks/filters-result/index.d.ts +2 -0
- package/dist/blocks/filters-result/index.js +2 -0
- package/dist/blocks/form/field-autocomplete.d.ts +18 -0
- package/dist/blocks/form/field-autocomplete.js +27 -0
- package/dist/blocks/form/field-checkbox.d.ts +25 -0
- package/dist/blocks/form/field-checkbox.js +23 -0
- package/dist/blocks/form/field-code.d.ts +8 -0
- package/dist/blocks/form/field-code.js +8 -0
- package/dist/blocks/form/field-controller.d.ts +23 -0
- package/dist/blocks/form/field-controller.js +32 -0
- package/dist/blocks/form/field-country-select.d.ts +5 -0
- package/dist/blocks/form/field-country-select.js +9 -0
- package/dist/blocks/form/field-date-picker.d.ts +14 -0
- package/dist/blocks/form/field-date-picker.js +40 -0
- package/dist/blocks/form/field-editor.d.ts +5 -0
- package/dist/blocks/form/field-editor.js +7 -0
- package/dist/blocks/form/field-number-input.d.ts +5 -0
- package/dist/blocks/form/field-number-input.js +7 -0
- package/dist/blocks/form/field-phone.d.ts +5 -0
- package/dist/blocks/form/field-phone.js +7 -0
- package/dist/blocks/form/field-radio-group.d.ts +12 -0
- package/dist/blocks/form/field-radio-group.js +15 -0
- package/dist/blocks/form/field-rating.d.ts +6 -0
- package/dist/blocks/form/field-rating.js +8 -0
- package/dist/blocks/form/field-select.d.ts +21 -0
- package/dist/blocks/form/field-select.js +24 -0
- package/dist/blocks/form/field-slider.d.ts +6 -0
- package/dist/blocks/form/field-slider.js +8 -0
- package/dist/blocks/form/field-switch.d.ts +25 -0
- package/dist/blocks/form/field-switch.js +23 -0
- package/dist/blocks/form/field-text.d.ts +8 -0
- package/dist/blocks/form/field-text.js +28 -0
- package/dist/blocks/form/field-upload.d.ts +7 -0
- package/dist/blocks/form/field-upload.js +17 -0
- package/dist/blocks/form/fields.d.ts +38 -0
- package/dist/blocks/form/fields.js +39 -0
- package/dist/blocks/form/form-context.d.ts +13 -0
- package/dist/blocks/form/form-context.js +18 -0
- package/dist/blocks/form/form-provider.d.ts +6 -0
- package/dist/blocks/form/form-provider.js +10 -0
- package/dist/blocks/form/help-text.d.ts +6 -0
- package/dist/blocks/form/help-text.js +8 -0
- package/dist/blocks/form/index.d.ts +23 -0
- package/dist/blocks/form/index.js +22 -0
- package/dist/blocks/form/schema-helper.d.ts +38 -0
- package/dist/blocks/form/schema-helper.js +80 -0
- package/dist/blocks/index.d.ts +9 -0
- package/dist/blocks/index.js +9 -0
- package/dist/blocks/mega-menu/classes.d.ts +31 -0
- package/dist/blocks/mega-menu/classes.js +12 -0
- package/dist/blocks/mega-menu/components.d.ts +37 -0
- package/dist/blocks/mega-menu/components.js +78 -0
- package/dist/blocks/mega-menu/horizontal.d.ts +2 -0
- package/dist/blocks/mega-menu/horizontal.js +9 -0
- package/dist/blocks/mega-menu/index.d.ts +5 -0
- package/dist/blocks/mega-menu/index.js +4 -0
- package/dist/blocks/mega-menu/mega-nav-list.d.ts +7 -0
- package/dist/blocks/mega-menu/mega-nav-list.js +25 -0
- package/dist/blocks/mega-menu/mobile.d.ts +16 -0
- package/dist/blocks/mega-menu/mobile.js +27 -0
- package/dist/blocks/mega-menu/types.d.ts +65 -0
- package/dist/blocks/mega-menu/types.js +1 -0
- package/dist/blocks/mega-menu/vertical.d.ts +2 -0
- package/dist/blocks/mega-menu/vertical.js +9 -0
- package/dist/blocks/nav-basic/classes.d.ts +26 -0
- package/dist/blocks/nav-basic/classes.js +7 -0
- package/dist/blocks/nav-basic/desktop.d.ts +2 -0
- package/dist/blocks/nav-basic/desktop.js +26 -0
- package/dist/blocks/nav-basic/index.d.ts +4 -0
- package/dist/blocks/nav-basic/index.js +3 -0
- package/dist/blocks/nav-basic/mobile.d.ts +2 -0
- package/dist/blocks/nav-basic/mobile.js +20 -0
- package/dist/blocks/nav-basic/types.d.ts +14 -0
- package/dist/blocks/nav-basic/types.js +1 -0
- package/dist/blocks/nav-core/elements.d.ts +32 -0
- package/dist/blocks/nav-core/elements.js +37 -0
- package/dist/blocks/nav-core/index.d.ts +6 -0
- package/dist/blocks/nav-core/index.js +6 -0
- package/dist/blocks/nav-core/link.d.ts +12 -0
- package/dist/blocks/nav-core/link.js +16 -0
- package/dist/blocks/nav-core/nav-dropdown.d.ts +19 -0
- package/dist/blocks/nav-core/nav-dropdown.js +9 -0
- package/dist/blocks/nav-core/nav-item.d.ts +13 -0
- package/dist/blocks/nav-core/nav-item.js +36 -0
- package/dist/blocks/nav-core/types.d.ts +38 -0
- package/dist/blocks/nav-core/types.js +1 -0
- package/dist/blocks/nav-core/utils.d.ts +4 -0
- package/dist/blocks/nav-core/utils.js +17 -0
- package/dist/blocks/nav-section/classes.d.ts +27 -0
- package/dist/blocks/nav-section/classes.js +8 -0
- package/dist/blocks/nav-section/horizontal.d.ts +2 -0
- package/dist/blocks/nav-section/horizontal.js +12 -0
- package/dist/blocks/nav-section/hover-list.d.ts +13 -0
- package/dist/blocks/nav-section/hover-list.js +27 -0
- package/dist/blocks/nav-section/index.d.ts +5 -0
- package/dist/blocks/nav-section/index.js +4 -0
- package/dist/blocks/nav-section/mini.d.ts +2 -0
- package/dist/blocks/nav-section/mini.js +12 -0
- package/dist/blocks/nav-section/types.d.ts +20 -0
- package/dist/blocks/nav-section/types.js +1 -0
- package/dist/blocks/nav-section/vertical.d.ts +2 -0
- package/dist/blocks/nav-section/vertical.js +28 -0
- package/dist/blocks/settings/index.d.ts +5 -0
- package/dist/blocks/settings/index.js +4 -0
- package/dist/blocks/settings/settings-button.d.ts +1 -0
- package/dist/blocks/settings/settings-button.js +9 -0
- package/dist/blocks/settings/settings-config.d.ts +5 -0
- package/dist/blocks/settings/settings-config.js +14 -0
- package/dist/blocks/settings/settings-context.d.ts +7 -0
- package/dist/blocks/settings/settings-context.js +51 -0
- package/dist/blocks/settings/settings-drawer.d.ts +2 -0
- package/dist/blocks/settings/settings-drawer.js +61 -0
- package/dist/blocks/settings/types.d.ts +34 -0
- package/dist/blocks/settings/types.js +1 -0
- package/dist/blocks/sidebar/index.d.ts +1 -0
- package/dist/blocks/sidebar/index.js +1 -0
- package/dist/blocks/sidebar/sidebar.d.ts +63 -0
- package/dist/blocks/sidebar/sidebar.js +256 -0
- package/dist/components/accordion/accordion.d.ts +6 -0
- package/dist/components/accordion/accordion.js +18 -0
- package/dist/components/accordion/index.d.ts +1 -0
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/alert/alert.d.ts +10 -0
- package/dist/components/alert/alert.js +33 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/alert/index.js +1 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts +18 -0
- package/dist/components/alert-dialog/alert-dialog.js +42 -0
- package/dist/components/alert-dialog/index.d.ts +1 -0
- package/dist/components/alert-dialog/index.js +1 -0
- package/dist/components/animate/animate-border.d.ts +31 -0
- package/dist/components/animate/animate-border.js +77 -0
- package/dist/components/animate/animate-count-up.d.ts +12 -0
- package/dist/components/animate/animate-count-up.js +33 -0
- package/dist/components/animate/animate-logo.d.ts +10 -0
- package/dist/components/animate/animate-logo.js +20 -0
- package/dist/components/animate/animate-text.d.ts +19 -0
- package/dist/components/animate/animate-text.js +44 -0
- package/dist/components/animate/features.d.ts +2 -0
- package/dist/components/animate/features.js +2 -0
- package/dist/components/animate/index.d.ts +9 -0
- package/dist/components/animate/index.js +9 -0
- package/dist/components/animate/motion-container.d.ts +8 -0
- package/dist/components/animate/motion-container.js +7 -0
- package/dist/components/animate/motion-lazy.d.ts +4 -0
- package/dist/components/animate/motion-lazy.js +7 -0
- package/dist/components/animate/motion-viewport.d.ts +7 -0
- package/dist/components/animate/motion-viewport.js +24 -0
- package/dist/components/animate/scroll-progress/index.d.ts +2 -0
- package/dist/components/animate/scroll-progress/index.js +2 -0
- package/dist/components/animate/scroll-progress/scroll-progress.d.ts +22 -0
- package/dist/components/animate/scroll-progress/scroll-progress.js +37 -0
- package/dist/components/animate/scroll-progress/use-scroll-progress.d.ts +10 -0
- package/dist/components/animate/scroll-progress/use-scroll-progress.js +9 -0
- package/dist/components/animate/variants/actions.d.ts +9 -0
- package/dist/components/animate/variants/actions.js +17 -0
- package/dist/components/animate/variants/background.d.ts +6 -0
- package/dist/components/animate/variants/background.js +110 -0
- package/dist/components/animate/variants/bounce.d.ts +8 -0
- package/dist/components/animate/variants/bounce.js +92 -0
- package/dist/components/animate/variants/container.d.ts +7 -0
- package/dist/components/animate/variants/container.js +16 -0
- package/dist/components/animate/variants/fade.d.ts +9 -0
- package/dist/components/animate/variants/fade.js +77 -0
- package/dist/components/animate/variants/flip.d.ts +9 -0
- package/dist/components/animate/variants/flip.js +28 -0
- package/dist/components/animate/variants/index.d.ts +12 -0
- package/dist/components/animate/variants/index.js +12 -0
- package/dist/components/animate/variants/path.d.ts +2 -0
- package/dist/components/animate/variants/path.js +12 -0
- package/dist/components/animate/variants/rotate.d.ts +9 -0
- package/dist/components/animate/variants/rotate.js +20 -0
- package/dist/components/animate/variants/scale.d.ts +8 -0
- package/dist/components/animate/variants/scale.js +37 -0
- package/dist/components/animate/variants/slide.d.ts +9 -0
- package/dist/components/animate/variants/slide.js +51 -0
- package/dist/components/animate/variants/transition.d.ts +3 -0
- package/dist/components/animate/variants/transition.js +10 -0
- package/dist/components/animate/variants/zoom.d.ts +9 -0
- package/dist/components/animate/variants/zoom.js +120 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +4 -0
- package/dist/components/aspect-ratio/aspect-ratio.js +9 -0
- package/dist/components/aspect-ratio/index.d.ts +1 -0
- package/dist/components/aspect-ratio/index.js +1 -0
- package/dist/components/avatar/avatar.d.ts +11 -0
- package/dist/components/avatar/avatar.js +23 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/badge/badge.d.ts +15 -0
- package/dist/components/badge/badge.js +79 -0
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +10 -0
- package/dist/components/breadcrumb/breadcrumb.js +37 -0
- package/dist/components/breadcrumb/index.d.ts +1 -0
- package/dist/components/breadcrumb/index.js +1 -0
- package/dist/components/button/button.d.ts +20 -0
- package/dist/components/button/button.js +120 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/button-group/button-group.d.ts +10 -0
- package/dist/components/button-group/button-group.js +37 -0
- package/dist/components/button-group/index.d.ts +1 -0
- package/dist/components/button-group/index.js +1 -0
- package/dist/components/calendar/calendar.d.ts +10 -0
- package/dist/components/calendar/calendar.js +76 -0
- package/dist/components/calendar/index.d.ts +1 -0
- package/dist/components/calendar/index.js +1 -0
- package/dist/components/card/card.d.ts +11 -0
- package/dist/components/card/card.js +25 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/carousel/breakpoints.d.ts +7 -0
- package/dist/components/carousel/breakpoints.js +7 -0
- package/dist/components/carousel/carousel.d.ts +2 -0
- package/dist/components/carousel/carousel.js +13 -0
- package/dist/components/carousel/classes.d.ts +31 -0
- package/dist/components/carousel/classes.js +32 -0
- package/dist/components/carousel/components/arrow-button.d.ts +2 -0
- package/dist/components/carousel/components/arrow-button.js +10 -0
- package/dist/components/carousel/components/carousel-arrow-buttons.d.ts +4 -0
- package/dist/components/carousel/components/carousel-arrow-buttons.js +15 -0
- package/dist/components/carousel/components/carousel-dot-buttons.d.ts +2 -0
- package/dist/components/carousel/components/carousel-dot-buttons.js +19 -0
- package/dist/components/carousel/components/carousel-progress-bar.d.ts +2 -0
- package/dist/components/carousel/components/carousel-progress-bar.js +9 -0
- package/dist/components/carousel/components/carousel-slide.d.ts +2 -0
- package/dist/components/carousel/components/carousel-slide.js +16 -0
- package/dist/components/carousel/components/carousel-thumb.d.ts +2 -0
- package/dist/components/carousel/components/carousel-thumb.js +7 -0
- package/dist/components/carousel/components/carousel-thumbs.d.ts +2 -0
- package/dist/components/carousel/components/carousel-thumbs.js +15 -0
- package/dist/components/carousel/components/index.d.ts +7 -0
- package/dist/components/carousel/components/index.js +7 -0
- package/dist/components/carousel/hooks/index.d.ts +7 -0
- package/dist/components/carousel/hooks/index.js +7 -0
- package/dist/components/carousel/hooks/use-carousel-arrows.d.ts +3 -0
- package/dist/components/carousel/hooks/use-carousel-arrows.js +33 -0
- package/dist/components/carousel/hooks/use-carousel-auto-play.d.ts +3 -0
- package/dist/components/carousel/hooks/use-carousel-auto-play.js +31 -0
- package/dist/components/carousel/hooks/use-carousel-auto-scroll.d.ts +3 -0
- package/dist/components/carousel/hooks/use-carousel-auto-scroll.js +31 -0
- package/dist/components/carousel/hooks/use-carousel-dots.d.ts +3 -0
- package/dist/components/carousel/hooks/use-carousel-dots.js +34 -0
- package/dist/components/carousel/hooks/use-carousel-parallax.d.ts +3 -0
- package/dist/components/carousel/hooks/use-carousel-parallax.js +62 -0
- package/dist/components/carousel/hooks/use-carousel-progress.d.ts +3 -0
- package/dist/components/carousel/hooks/use-carousel-progress.js +17 -0
- package/dist/components/carousel/hooks/use-carousel.d.ts +3 -0
- package/dist/components/carousel/hooks/use-carousel.js +56 -0
- package/dist/components/carousel/hooks/use-thumbs.d.ts +3 -0
- package/dist/components/carousel/hooks/use-thumbs.js +35 -0
- package/dist/components/carousel/hooks/use-viewport-width.d.ts +1 -0
- package/dist/components/carousel/hooks/use-viewport-width.js +9 -0
- package/dist/components/carousel/index.d.ts +6 -0
- package/dist/components/carousel/index.js +5 -0
- package/dist/components/carousel/types.d.ts +104 -0
- package/dist/components/carousel/types.js +1 -0
- package/dist/components/carousel/utils.d.ts +5 -0
- package/dist/components/carousel/utils.js +30 -0
- package/dist/components/chart/chart.d.ts +2 -0
- package/dist/components/chart/chart.js +14 -0
- package/dist/components/chart/classes.d.ts +15 -0
- package/dist/components/chart/classes.js +16 -0
- package/dist/components/chart/components/chart-legends.d.ts +16 -0
- package/dist/components/chart/components/chart-legends.js +7 -0
- package/dist/components/chart/components/chart-loading.d.ts +3 -0
- package/dist/components/chart/components/chart-loading.js +9 -0
- package/dist/components/chart/components/chart-select.d.ts +6 -0
- package/dist/components/chart/components/chart-select.js +14 -0
- package/dist/components/chart/components/index.d.ts +3 -0
- package/dist/components/chart/components/index.js +3 -0
- package/dist/components/chart/index.d.ts +5 -0
- package/dist/components/chart/index.js +4 -0
- package/dist/components/chart/types.d.ts +7 -0
- package/dist/components/chart/types.js +1 -0
- package/dist/components/chart/use-chart.d.ts +6 -0
- package/dist/components/chart/use-chart.js +129 -0
- package/dist/components/checkbox/checkbox.d.ts +7 -0
- package/dist/components/checkbox/checkbox.js +18 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/chip/chip.d.ts +23 -0
- package/dist/components/chip/chip.js +74 -0
- package/dist/components/chip/index.d.ts +1 -0
- package/dist/components/chip/index.js +1 -0
- package/dist/components/clipboard-text/clipboard-text.d.ts +15 -0
- package/dist/components/clipboard-text/clipboard-text.js +58 -0
- package/dist/components/clipboard-text/index.d.ts +1 -0
- package/dist/components/clipboard-text/index.js +1 -0
- package/dist/components/collapsible/collapsible.d.ts +5 -0
- package/dist/components/collapsible/collapsible.js +13 -0
- package/dist/components/collapsible/index.d.ts +1 -0
- package/dist/components/collapsible/index.js +1 -0
- package/dist/components/color-utils/classes.d.ts +13 -0
- package/dist/components/color-utils/classes.js +14 -0
- package/dist/components/color-utils/color-picker.d.ts +16 -0
- package/dist/components/color-utils/color-picker.js +40 -0
- package/dist/components/color-utils/color-preview.d.ts +12 -0
- package/dist/components/color-utils/color-preview.js +15 -0
- package/dist/components/color-utils/index.d.ts +3 -0
- package/dist/components/color-utils/index.js +3 -0
- package/dist/components/combobox/combobox.d.ts +24 -0
- package/dist/components/combobox/combobox.js +58 -0
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/command/command.d.ts +19 -0
- package/dist/components/command/command.js +35 -0
- package/dist/components/command/index.d.ts +1 -0
- package/dist/components/command/index.js +1 -0
- package/dist/components/context-menu/context-menu.d.ts +29 -0
- package/dist/components/context-menu/context-menu.js +51 -0
- package/dist/components/context-menu/index.d.ts +1 -0
- package/dist/components/context-menu/index.js +1 -0
- package/dist/components/country-select/countries.d.ts +6 -0
- package/dist/components/country-select/countries.js +250 -0
- package/dist/components/country-select/country-select.d.ts +16 -0
- package/dist/components/country-select/country-select.js +37 -0
- package/dist/components/country-select/index.d.ts +3 -0
- package/dist/components/country-select/index.js +2 -0
- package/dist/components/custom-breadcrumbs/back-link.d.ts +7 -0
- package/dist/components/custom-breadcrumbs/back-link.js +12 -0
- package/dist/components/custom-breadcrumbs/breadcrumb-link.d.ts +11 -0
- package/dist/components/custom-breadcrumbs/breadcrumb-link.js +10 -0
- package/dist/components/custom-breadcrumbs/custom-breadcrumbs.d.ts +25 -0
- package/dist/components/custom-breadcrumbs/custom-breadcrumbs.js +13 -0
- package/dist/components/custom-breadcrumbs/index.d.ts +5 -0
- package/dist/components/custom-breadcrumbs/index.js +4 -0
- package/dist/components/custom-breadcrumbs/link.d.ts +4 -0
- package/dist/components/custom-breadcrumbs/link.js +6 -0
- package/dist/components/custom-breadcrumbs/more-links.d.ts +5 -0
- package/dist/components/custom-breadcrumbs/more-links.js +6 -0
- package/dist/components/custom-date-range-picker/custom-date-range-picker.d.ts +16 -0
- package/dist/components/custom-date-range-picker/custom-date-range-picker.js +31 -0
- package/dist/components/custom-date-range-picker/index.d.ts +2 -0
- package/dist/components/custom-date-range-picker/index.js +2 -0
- package/dist/components/custom-date-range-picker/use-date-range-picker.d.ts +18 -0
- package/dist/components/custom-date-range-picker/use-date-range-picker.js +33 -0
- package/dist/components/custom-dialog/confirm-dialog.d.ts +11 -0
- package/dist/components/custom-dialog/confirm-dialog.js +7 -0
- package/dist/components/custom-dialog/index.d.ts +1 -0
- package/dist/components/custom-dialog/index.js +1 -0
- package/dist/components/custom-popover/arrow.d.ts +10 -0
- package/dist/components/custom-popover/arrow.js +52 -0
- package/dist/components/custom-popover/custom-popover.d.ts +10 -0
- package/dist/components/custom-popover/custom-popover.js +25 -0
- package/dist/components/custom-popover/index.d.ts +2 -0
- package/dist/components/custom-popover/index.js +1 -0
- package/dist/components/custom-popover/placement.d.ts +8 -0
- package/dist/components/custom-popover/placement.js +11 -0
- package/dist/components/custom-popover/types.d.ts +20 -0
- package/dist/components/custom-popover/types.js +2 -0
- package/dist/components/custom-tabs/custom-tabs.d.ts +8 -0
- package/dist/components/custom-tabs/custom-tabs.js +11 -0
- package/dist/components/custom-tabs/index.d.ts +1 -0
- package/dist/components/custom-tabs/index.js +1 -0
- package/dist/components/dialog/dialog.d.ts +18 -0
- package/dist/components/dialog/dialog.js +40 -0
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/direction/direction.d.ts +1 -0
- package/dist/components/direction/direction.js +2 -0
- package/dist/components/direction/index.d.ts +1 -0
- package/dist/components/direction/index.js +1 -0
- package/dist/components/drawer/drawer.d.ts +16 -0
- package/dist/components/drawer/drawer.js +75 -0
- package/dist/components/drawer/index.d.ts +1 -0
- package/dist/components/drawer/index.js +1 -0
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +29 -0
- package/dist/components/dropdown-menu/dropdown-menu.js +51 -0
- package/dist/components/dropdown-menu/index.d.ts +1 -0
- package/dist/components/dropdown-menu/index.js +1 -0
- package/dist/components/editor/classes.d.ts +43 -0
- package/dist/components/editor/classes.js +44 -0
- package/dist/components/editor/components/code-highlight-block.d.ts +2 -0
- package/dist/components/editor/components/code-highlight-block.js +7 -0
- package/dist/components/editor/components/heading-block.d.ts +3 -0
- package/dist/components/editor/components/heading-block.js +22 -0
- package/dist/components/editor/components/image-block.d.ts +2 -0
- package/dist/components/editor/components/image-block.js +13 -0
- package/dist/components/editor/components/link-block.d.ts +2 -0
- package/dist/components/editor/components/link-block.js +16 -0
- package/dist/components/editor/components/toolbar-item.d.ts +6 -0
- package/dist/components/editor/components/toolbar-item.js +10 -0
- package/dist/components/editor/components/url-popover.d.ts +7 -0
- package/dist/components/editor/components/url-popover.js +19 -0
- package/dist/components/editor/editor.d.ts +13 -0
- package/dist/components/editor/editor.js +90 -0
- package/dist/components/editor/icons.d.ts +27 -0
- package/dist/components/editor/icons.js +26 -0
- package/dist/components/editor/index.d.ts +3 -0
- package/dist/components/editor/index.js +2 -0
- package/dist/components/editor/toolbar.d.ts +2 -0
- package/dist/components/editor/toolbar.js +20 -0
- package/dist/components/editor/types.d.ts +26 -0
- package/dist/components/editor/types.js +1 -0
- package/dist/components/empty-content/default-image.d.ts +2 -0
- package/dist/components/empty-content/default-image.js +2 -0
- package/dist/components/empty-content/empty-content.d.ts +15 -0
- package/dist/components/empty-content/empty-content.js +7 -0
- package/dist/components/empty-content/index.d.ts +2 -0
- package/dist/components/empty-content/index.js +2 -0
- package/dist/components/file-thumbnail/action-buttons.d.ts +2 -0
- package/dist/components/file-thumbnail/action-buttons.js +10 -0
- package/dist/components/file-thumbnail/classes.d.ts +7 -0
- package/dist/components/file-thumbnail/classes.js +8 -0
- package/dist/components/file-thumbnail/file-thumbnail.d.ts +2 -0
- package/dist/components/file-thumbnail/file-thumbnail.js +22 -0
- package/dist/components/file-thumbnail/icons.d.ts +2 -0
- package/dist/components/file-thumbnail/icons.js +39 -0
- package/dist/components/file-thumbnail/index.d.ts +6 -0
- package/dist/components/file-thumbnail/index.js +5 -0
- package/dist/components/file-thumbnail/types.d.ts +18 -0
- package/dist/components/file-thumbnail/types.js +1 -0
- package/dist/components/file-thumbnail/utils.d.ts +21 -0
- package/dist/components/file-thumbnail/utils.js +50 -0
- package/dist/components/flag-icon/classes.d.ts +4 -0
- package/dist/components/flag-icon/classes.js +5 -0
- package/dist/components/flag-icon/flag-icon.d.ts +8 -0
- package/dist/components/flag-icon/flag-icon.js +12 -0
- package/dist/components/flag-icon/index.d.ts +2 -0
- package/dist/components/flag-icon/index.js +2 -0
- package/dist/components/form-label/form-label.d.ts +3 -0
- package/dist/components/form-label/form-label.js +7 -0
- package/dist/components/form-label/index.d.ts +1 -0
- package/dist/components/form-label/index.js +1 -0
- package/dist/components/hover-card/hover-card.d.ts +5 -0
- package/dist/components/hover-card/hover-card.js +14 -0
- package/dist/components/hover-card/index.d.ts +1 -0
- package/dist/components/hover-card/index.js +1 -0
- package/dist/components/image/classes.d.ts +9 -0
- package/dist/components/image/classes.js +8 -0
- package/dist/components/image/image.d.ts +28 -0
- package/dist/components/image/image.js +58 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/image/index.js +2 -0
- package/dist/components/image/placeholder.d.ts +1 -0
- package/dist/components/image/placeholder.js +1 -0
- package/dist/components/index.d.ts +90 -0
- package/dist/components/index.js +90 -0
- package/dist/components/inline-copy-text/index.d.ts +1 -0
- package/dist/components/inline-copy-text/index.js +1 -0
- package/dist/components/inline-copy-text/inline-copy-text.d.ts +35 -0
- package/dist/components/inline-copy-text/inline-copy-text.js +66 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input/index.js +1 -0
- package/dist/components/input/input.d.ts +3 -0
- package/dist/components/input/input.js +8 -0
- package/dist/components/input-group/index.d.ts +1 -0
- package/dist/components/input-group/index.js +1 -0
- package/dist/components/input-group/input-group.d.ts +18 -0
- package/dist/components/input-group/input-group.js +57 -0
- package/dist/components/input-otp/index.d.ts +1 -0
- package/dist/components/input-otp/index.js +1 -0
- package/dist/components/input-otp/input-otp.d.ts +11 -0
- package/dist/components/input-otp/input-otp.js +21 -0
- package/dist/components/item/index.d.ts +1 -0
- package/dist/components/item/index.js +1 -0
- package/dist/components/item/item.d.ts +22 -0
- package/dist/components/item/item.js +79 -0
- package/dist/components/kbd/index.d.ts +1 -0
- package/dist/components/kbd/index.js +1 -0
- package/dist/components/kbd/kbd.d.ts +3 -0
- package/dist/components/kbd/kbd.js +10 -0
- package/dist/components/label/classes.d.ts +4 -0
- package/dist/components/label/classes.js +5 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/index.js +2 -0
- package/dist/components/label/label.d.ts +13 -0
- package/dist/components/label/label.js +10 -0
- package/dist/components/lightbox/classes.d.ts +3 -0
- package/dist/components/lightbox/classes.js +4 -0
- package/dist/components/lightbox/index.d.ts +4 -0
- package/dist/components/lightbox/index.js +3 -0
- package/dist/components/lightbox/lightbox.d.ts +2 -0
- package/dist/components/lightbox/lightbox.js +40 -0
- package/dist/components/lightbox/types.d.ts +11 -0
- package/dist/components/lightbox/types.js +1 -0
- package/dist/components/lightbox/use-light-box.d.ts +9 -0
- package/dist/components/lightbox/use-light-box.js +21 -0
- package/dist/components/lightbox/utils.d.ts +3 -0
- package/dist/components/lightbox/utils.js +22 -0
- package/dist/components/loading-screen/index.d.ts +2 -0
- package/dist/components/loading-screen/index.js +2 -0
- package/dist/components/loading-screen/loading-screen.d.ts +6 -0
- package/dist/components/loading-screen/loading-screen.js +8 -0
- package/dist/components/loading-screen/splash-screen.d.ts +7 -0
- package/dist/components/loading-screen/splash-screen.js +9 -0
- package/dist/components/logo/classes.d.ts +3 -0
- package/dist/components/logo/classes.js +4 -0
- package/dist/components/logo/index.d.ts +2 -0
- package/dist/components/logo/index.js +2 -0
- package/dist/components/logo/logo.d.ts +14 -0
- package/dist/components/logo/logo.js +22 -0
- package/dist/components/map/index.d.ts +4 -0
- package/dist/components/map/index.js +4 -0
- package/dist/components/map/map-controls.d.ts +14 -0
- package/dist/components/map/map-controls.js +6 -0
- package/dist/components/map/map-marker.d.ts +2 -0
- package/dist/components/map/map-marker.js +10 -0
- package/dist/components/map/map-popup.d.ts +3 -0
- package/dist/components/map/map-popup.js +6 -0
- package/dist/components/map/map.d.ts +5 -0
- package/dist/components/map/map.js +13 -0
- package/dist/components/markdown/classes.d.ts +10 -0
- package/dist/components/markdown/classes.js +11 -0
- package/dist/components/markdown/html-tags.d.ts +4 -0
- package/dist/components/markdown/html-tags.js +171 -0
- package/dist/components/markdown/html-to-markdown.d.ts +2 -0
- package/dist/components/markdown/html-to-markdown.js +28 -0
- package/dist/components/markdown/index.d.ts +4 -0
- package/dist/components/markdown/index.js +3 -0
- package/dist/components/markdown/markdown.d.ts +2 -0
- package/dist/components/markdown/markdown.js +35 -0
- package/dist/components/markdown/types.d.ts +8 -0
- package/dist/components/markdown/types.js +1 -0
- package/dist/components/menubar/index.d.ts +1 -0
- package/dist/components/menubar/index.js +1 -0
- package/dist/components/menubar/menubar.d.ts +29 -0
- package/dist/components/menubar/menubar.js +56 -0
- package/dist/components/native-select/index.d.ts +1 -0
- package/dist/components/native-select/index.js +1 -0
- package/dist/components/native-select/native-select.d.ts +8 -0
- package/dist/components/native-select/native-select.js +14 -0
- package/dist/components/navigation-menu/index.d.ts +1 -0
- package/dist/components/navigation-menu/index.js +1 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +11 -0
- package/dist/components/navigation-menu/navigation-menu.js +32 -0
- package/dist/components/navigation-progress/index.d.ts +1 -0
- package/dist/components/navigation-progress/index.js +1 -0
- package/dist/components/navigation-progress/navigation-progress.d.ts +10 -0
- package/dist/components/navigation-progress/navigation-progress.js +59 -0
- package/dist/components/number-input/index.d.ts +1 -0
- package/dist/components/number-input/index.js +1 -0
- package/dist/components/number-input/number-input.d.ts +29 -0
- package/dist/components/number-input/number-input.js +34 -0
- package/dist/components/organizational-chart/index.d.ts +2 -0
- package/dist/components/organizational-chart/index.js +1 -0
- package/dist/components/organizational-chart/organizational-chart.d.ts +2 -0
- package/dist/components/organizational-chart/organizational-chart.js +21 -0
- package/dist/components/organizational-chart/types.d.ts +15 -0
- package/dist/components/organizational-chart/types.js +1 -0
- package/dist/components/pagination/index.d.ts +1 -0
- package/dist/components/pagination/index.js +1 -0
- package/dist/components/pagination/pagination.d.ts +17 -0
- package/dist/components/pagination/pagination.js +27 -0
- package/dist/components/phone-input/index.d.ts +2 -0
- package/dist/components/phone-input/index.js +1 -0
- package/dist/components/phone-input/list-popover.d.ts +2 -0
- package/dist/components/phone-input/list-popover.js +33 -0
- package/dist/components/phone-input/phone-input.d.ts +2 -0
- package/dist/components/phone-input/phone-input.js +34 -0
- package/dist/components/phone-input/types.d.ts +28 -0
- package/dist/components/phone-input/types.js +1 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/popover/index.js +1 -0
- package/dist/components/popover/popover.d.ts +9 -0
- package/dist/components/popover/popover.js +23 -0
- package/dist/components/progress/index.d.ts +1 -0
- package/dist/components/progress/index.js +1 -0
- package/dist/components/progress/progress.d.ts +7 -0
- package/dist/components/progress/progress.js +20 -0
- package/dist/components/progress-bar/index.d.ts +1 -0
- package/dist/components/progress-bar/index.js +1 -0
- package/dist/components/progress-bar/progress-bar.d.ts +20 -0
- package/dist/components/progress-bar/progress-bar.js +51 -0
- package/dist/components/radio-group/index.d.ts +1 -0
- package/dist/components/radio-group/index.js +1 -0
- package/dist/components/radio-group/radio-group.d.ts +5 -0
- package/dist/components/radio-group/radio-group.js +12 -0
- package/dist/components/rating/index.d.ts +1 -0
- package/dist/components/rating/index.js +1 -0
- package/dist/components/rating/rating.d.ts +13 -0
- package/dist/components/rating/rating.js +25 -0
- package/dist/components/resizable/index.d.ts +1 -0
- package/dist/components/resizable/index.js +1 -0
- package/dist/components/resizable/resizable.d.ts +7 -0
- package/dist/components/resizable/resizable.js +14 -0
- package/dist/components/ripple/index.d.ts +1 -0
- package/dist/components/ripple/index.js +1 -0
- package/dist/components/ripple/ripple.d.ts +13 -0
- package/dist/components/ripple/ripple.js +113 -0
- package/dist/components/scroll-area/index.d.ts +1 -0
- package/dist/components/scroll-area/index.js +1 -0
- package/dist/components/scroll-area/scroll-area.d.ts +5 -0
- package/dist/components/scroll-area/scroll-area.js +11 -0
- package/dist/components/scrollbar/classes.d.ts +3 -0
- package/dist/components/scrollbar/classes.js +4 -0
- package/dist/components/scrollbar/index.d.ts +2 -0
- package/dist/components/scrollbar/index.js +2 -0
- package/dist/components/scrollbar/scrollbar.d.ts +12 -0
- package/dist/components/scrollbar/scrollbar.js +9 -0
- package/dist/components/search-not-found/index.d.ts +1 -0
- package/dist/components/search-not-found/index.js +1 -0
- package/dist/components/search-not-found/search-not-found.d.ts +16 -0
- package/dist/components/search-not-found/search-not-found.js +16 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/select/select.d.ts +15 -0
- package/dist/components/select/select.js +34 -0
- package/dist/components/sensitive-input/index.d.ts +1 -0
- package/dist/components/sensitive-input/index.js +1 -0
- package/dist/components/sensitive-input/sensitive-input.d.ts +14 -0
- package/dist/components/sensitive-input/sensitive-input.js +175 -0
- package/dist/components/separator/index.d.ts +1 -0
- package/dist/components/separator/index.js +1 -0
- package/dist/components/separator/separator.d.ts +3 -0
- package/dist/components/separator/separator.js +8 -0
- package/dist/components/sheet/index.d.ts +1 -0
- package/dist/components/sheet/index.js +1 -0
- package/dist/components/sheet/sheet.d.ts +14 -0
- package/dist/components/sheet/sheet.js +37 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/skeleton/index.js +1 -0
- package/dist/components/skeleton/skeleton.d.ts +2 -0
- package/dist/components/skeleton/skeleton.js +7 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/slider/index.js +1 -0
- package/dist/components/slider/slider.d.ts +3 -0
- package/dist/components/slider/slider.js +13 -0
- package/dist/components/spinner/index.d.ts +1 -0
- package/dist/components/spinner/index.js +1 -0
- package/dist/components/spinner/spinner.d.ts +2 -0
- package/dist/components/spinner/spinner.js +8 -0
- package/dist/components/svg-color/classes.d.ts +3 -0
- package/dist/components/svg-color/classes.js +4 -0
- package/dist/components/svg-color/index.d.ts +2 -0
- package/dist/components/svg-color/index.js +2 -0
- package/dist/components/svg-color/svg-color.d.ts +7 -0
- package/dist/components/svg-color/svg-color.js +12 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/switch/index.js +1 -0
- package/dist/components/switch/switch.d.ts +59 -0
- package/dist/components/switch/switch.js +61 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/table/table.d.ts +10 -0
- package/dist/components/table/table.js +28 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/tabs.d.ts +10 -0
- package/dist/components/tabs/tabs.js +31 -0
- package/dist/components/textarea/index.d.ts +1 -0
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/textarea/textarea.d.ts +3 -0
- package/dist/components/textarea/textarea.js +7 -0
- package/dist/components/theme-provider/index.d.ts +1 -0
- package/dist/components/theme-provider/index.js +1 -0
- package/dist/components/theme-provider/theme-provider.d.ts +31 -0
- package/dist/components/theme-provider/theme-provider.js +92 -0
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/toast/index.js +1 -0
- package/dist/components/toast/toast.d.ts +90 -0
- package/dist/components/toast/toast.js +137 -0
- package/dist/components/toggle/index.d.ts +1 -0
- package/dist/components/toggle/index.js +1 -0
- package/dist/components/toggle/toggle.d.ts +8 -0
- package/dist/components/toggle/toggle.js +27 -0
- package/dist/components/toggle-group/index.d.ts +1 -0
- package/dist/components/toggle-group/index.js +1 -0
- package/dist/components/toggle-group/toggle-group.d.ts +11 -0
- package/dist/components/toggle-group/toggle-group.js +24 -0
- package/dist/components/toolbar/index.d.ts +1 -0
- package/dist/components/toolbar/index.js +1 -0
- package/dist/components/toolbar/toolbar.d.ts +18 -0
- package/dist/components/toolbar/toolbar.js +53 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/tooltip/tooltip.d.ts +53 -0
- package/dist/components/tooltip/tooltip.js +49 -0
- package/dist/components/upload/classes.d.ts +8 -0
- package/dist/components/upload/classes.js +9 -0
- package/dist/components/upload/components/placeholder.d.ts +9 -0
- package/dist/components/upload/components/placeholder.js +21 -0
- package/dist/components/upload/components/preview-multi-file.d.ts +2 -0
- package/dist/components/upload/components/preview-multi-file.js +19 -0
- package/dist/components/upload/components/preview-single-file.d.ts +3 -0
- package/dist/components/upload/components/preview-single-file.js +19 -0
- package/dist/components/upload/components/rejection-files.d.ts +6 -0
- package/dist/components/upload/components/rejection-files.js +12 -0
- package/dist/components/upload/components/upload-illustration.d.ts +3 -0
- package/dist/components/upload/components/upload-illustration.js +5 -0
- package/dist/components/upload/index.d.ts +9 -0
- package/dist/components/upload/index.js +8 -0
- package/dist/components/upload/types.d.ts +35 -0
- package/dist/components/upload/types.js +1 -0
- package/dist/components/upload/upload-avatar.d.ts +2 -0
- package/dist/components/upload/upload-avatar.js +32 -0
- package/dist/components/upload/upload-box.d.ts +2 -0
- package/dist/components/upload/upload-box.js +14 -0
- package/dist/components/upload/upload.d.ts +2 -0
- package/dist/components/upload/upload.js +23 -0
- package/dist/components/walktour/index.d.ts +4 -0
- package/dist/components/walktour/index.js +3 -0
- package/dist/components/walktour/types.d.ts +27 -0
- package/dist/components/walktour/types.js +1 -0
- package/dist/components/walktour/use-walktour.d.ts +2 -0
- package/dist/components/walktour/use-walktour.js +11 -0
- package/dist/components/walktour/walktour-tooltip.d.ts +2 -0
- package/dist/components/walktour/walktour-tooltip.js +15 -0
- package/dist/components/walktour/walktour.d.ts +2 -0
- package/dist/components/walktour/walktour.js +30 -0
- package/dist/components/xerobi-logo/index.d.ts +1 -0
- package/dist/components/xerobi-logo/index.js +1 -0
- package/dist/components/xerobi-logo/xerobi-logo.d.ts +60 -0
- package/dist/components/xerobi-logo/xerobi-logo.js +88 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.js +7 -0
- package/dist/hooks/use-boolean.d.ts +9 -0
- package/dist/hooks/use-boolean.js +9 -0
- package/dist/hooks/use-client-rect.d.ts +6 -0
- package/dist/hooks/use-client-rect.js +18 -0
- package/dist/hooks/use-is-client.d.ts +2 -0
- package/dist/hooks/use-is-client.js +7 -0
- package/dist/hooks/use-local-storage.d.ts +10 -0
- package/dist/hooks/use-local-storage.js +39 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +16 -0
- package/dist/hooks/use-popover-hover.d.ts +25 -0
- package/dist/hooks/use-popover-hover.js +33 -0
- package/dist/hooks/use-popover.d.ts +10 -0
- package/dist/hooks/use-popover.js +9 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +11 -0
- package/dist/lib/brand.d.ts +14 -0
- package/dist/lib/brand.js +31 -0
- package/dist/lib/create-classes.d.ts +1 -0
- package/dist/lib/create-classes.js +4 -0
- package/dist/lib/date.d.ts +10 -0
- package/dist/lib/date.js +32 -0
- package/dist/lib/format.d.ts +2 -0
- package/dist/lib/format.js +10 -0
- package/dist/lib/link.d.ts +5 -0
- package/dist/lib/link.js +5 -0
- package/dist/lib/path.d.ts +6 -0
- package/dist/lib/path.js +24 -0
- package/dist/lib/theme-script.d.ts +11 -0
- package/dist/lib/theme-script.js +8 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/lib/utils.js +1 -0
- package/dist/styles/chart.css +56 -0
- package/dist/styles/components.css +30 -0
- package/dist/styles/editor.css +199 -0
- package/dist/styles/globals.css +219 -0
- package/dist/styles/lightbox.css +42 -0
- package/dist/styles/map.css +62 -0
- package/dist/styles/markdown.css +177 -0
- package/dist/styles/nav.css +513 -0
- package/dist/styles/org-chart.css +82 -0
- package/dist/styles/scrollbar.css +9 -0
- package/dist/styles/settings.css +7 -0
- package/dist/styles/theme.css +52 -0
- package/dist/styles/variants.css +84 -0
- package/docs/compliance-report.md +104 -0
- package/docs/frameworks.md +63 -0
- package/docs/publishing.md +23 -0
- package/docs/theming.md +40 -0
- package/package.json +542 -4
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
4
|
+
import { cn } from "cn";
|
|
5
|
+
import { ChevronRightIcon, CheckIcon } from "lucide-react";
|
|
6
|
+
function DropdownMenu({ ...props }) {
|
|
7
|
+
return _jsx(MenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
8
|
+
}
|
|
9
|
+
function DropdownMenuPortal({ ...props }) {
|
|
10
|
+
return _jsx(MenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
|
|
11
|
+
}
|
|
12
|
+
function DropdownMenuTrigger({ ...props }) {
|
|
13
|
+
return _jsx(MenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
14
|
+
}
|
|
15
|
+
function DropdownMenuContent({ align = "start", alignOffset = 0, side = "bottom", sideOffset = 4, className, ...props }) {
|
|
16
|
+
return (_jsx(MenuPrimitive.Portal, { children: _jsx(MenuPrimitive.Positioner, { className: "isolate z-modal outline-none", align: align, alignOffset: alignOffset, side: side, sideOffset: sideOffset, children: _jsx(MenuPrimitive.Popup, { "data-slot": "dropdown-menu-content", className: cn("z-modal max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto xui-paper xui-paper-dropdown text-popover-foreground duration-150 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95", className), ...props }) }) }));
|
|
17
|
+
}
|
|
18
|
+
function DropdownMenuGroup({ ...props }) {
|
|
19
|
+
return _jsx(MenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
20
|
+
}
|
|
21
|
+
function DropdownMenuLabel({ className, inset, ...props }) {
|
|
22
|
+
return (_jsx(MenuPrimitive.GroupLabel, { "data-slot": "dropdown-menu-label", "data-inset": inset, className: cn("px-2 py-1.5 text-caption font-semibold text-text-secondary data-inset:pl-8", className), ...props }));
|
|
23
|
+
}
|
|
24
|
+
function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
|
|
25
|
+
return (_jsx(MenuPrimitive.Item, { "data-slot": "dropdown-menu-item", "data-inset": inset, "data-variant": variant, className: cn("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-sm px-2 py-1.5 text-body2 not-last:mb-1 outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive", className), ...props }));
|
|
26
|
+
}
|
|
27
|
+
function DropdownMenuSub({ ...props }) {
|
|
28
|
+
return _jsx(MenuPrimitive.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...props });
|
|
29
|
+
}
|
|
30
|
+
function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
|
|
31
|
+
return (_jsxs(MenuPrimitive.SubmenuTrigger, { "data-slot": "dropdown-menu-sub-trigger", "data-inset": inset, className: cn("flex cursor-default items-center gap-1.5 rounded-sm px-2 py-1.5 text-body2 not-last:mb-1 outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-popup-open:bg-accent data-popup-open:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), ...props, children: [children, _jsx(ChevronRightIcon, { className: "ml-auto" })] }));
|
|
32
|
+
}
|
|
33
|
+
function DropdownMenuSubContent({ align = "start", alignOffset = -3, side = "right", sideOffset = 0, className, ...props }) {
|
|
34
|
+
return (_jsx(DropdownMenuContent, { "data-slot": "dropdown-menu-sub-content", className: cn("w-auto min-w-[96px] xui-paper xui-paper-dropdown text-popover-foreground duration-150 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className), align: align, alignOffset: alignOffset, side: side, sideOffset: sideOffset, ...props }));
|
|
35
|
+
}
|
|
36
|
+
function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }) {
|
|
37
|
+
return (_jsxs(MenuPrimitive.CheckboxItem, { "data-slot": "dropdown-menu-checkbox-item", "data-inset": inset, className: cn("relative flex cursor-default items-center gap-1.5 rounded-sm py-1.5 pr-8 pl-2 text-body2 not-last:mb-1 outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), checked: checked, ...props, children: [_jsx("span", { className: "pointer-events-none absolute right-2 flex items-center justify-center", "data-slot": "dropdown-menu-checkbox-item-indicator", children: _jsx(MenuPrimitive.CheckboxItemIndicator, { children: _jsx(CheckIcon, {}) }) }), children] }));
|
|
38
|
+
}
|
|
39
|
+
function DropdownMenuRadioGroup({ ...props }) {
|
|
40
|
+
return (_jsx(MenuPrimitive.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...props }));
|
|
41
|
+
}
|
|
42
|
+
function DropdownMenuRadioItem({ className, children, inset, ...props }) {
|
|
43
|
+
return (_jsxs(MenuPrimitive.RadioItem, { "data-slot": "dropdown-menu-radio-item", "data-inset": inset, className: cn("relative flex cursor-default items-center gap-1.5 rounded-sm py-1.5 pr-8 pl-2 text-body2 not-last:mb-1 outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), ...props, children: [_jsx("span", { className: "pointer-events-none absolute right-2 flex items-center justify-center", "data-slot": "dropdown-menu-radio-item-indicator", children: _jsx(MenuPrimitive.RadioItemIndicator, { children: _jsx(CheckIcon, {}) }) }), children] }));
|
|
44
|
+
}
|
|
45
|
+
function DropdownMenuSeparator({ className, ...props }) {
|
|
46
|
+
return (_jsx(MenuPrimitive.Separator, { "data-slot": "dropdown-menu-separator", className: cn("-mx-1 my-1 h-px bg-divider", className), ...props }));
|
|
47
|
+
}
|
|
48
|
+
function DropdownMenuShortcut({ className, ...props }) {
|
|
49
|
+
return (_jsx("span", { "data-slot": "dropdown-menu-shortcut", className: cn("ml-auto text-caption tracking-widest text-text-secondary group-focus/dropdown-menu-item:text-accent-foreground", className), ...props }));
|
|
50
|
+
}
|
|
51
|
+
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./dropdown-menu.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./dropdown-menu.js";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const editorClasses: {
|
|
2
|
+
root: string;
|
|
3
|
+
toolbar: {
|
|
4
|
+
hr: string;
|
|
5
|
+
root: string;
|
|
6
|
+
bold: string;
|
|
7
|
+
code: string;
|
|
8
|
+
undo: string;
|
|
9
|
+
redo: string;
|
|
10
|
+
link: string;
|
|
11
|
+
clear: string;
|
|
12
|
+
image: string;
|
|
13
|
+
italic: string;
|
|
14
|
+
strike: string;
|
|
15
|
+
underline: string;
|
|
16
|
+
hardbreak: string;
|
|
17
|
+
unsetlink: string;
|
|
18
|
+
codeBlock: string;
|
|
19
|
+
alignLeft: string;
|
|
20
|
+
fullscreen: string;
|
|
21
|
+
blockquote: string;
|
|
22
|
+
bulletList: string;
|
|
23
|
+
alignRight: string;
|
|
24
|
+
orderedList: string;
|
|
25
|
+
alignCenter: string;
|
|
26
|
+
alignJustify: string;
|
|
27
|
+
};
|
|
28
|
+
content: {
|
|
29
|
+
hr: string;
|
|
30
|
+
root: string;
|
|
31
|
+
link: string;
|
|
32
|
+
image: string;
|
|
33
|
+
codeInline: string;
|
|
34
|
+
heading: string;
|
|
35
|
+
listItem: string;
|
|
36
|
+
codeBlock: string;
|
|
37
|
+
blockquote: string;
|
|
38
|
+
langSelect: string;
|
|
39
|
+
placeholder: string;
|
|
40
|
+
bulletList: string;
|
|
41
|
+
orderedList: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createClasses } from "../../lib/create-classes.js";
|
|
2
|
+
export const editorClasses = {
|
|
3
|
+
root: /* @__PURE__ */ createClasses("editor__root"),
|
|
4
|
+
toolbar: {
|
|
5
|
+
hr: /* @__PURE__ */ createClasses("editor__toolbar__hr"),
|
|
6
|
+
root: /* @__PURE__ */ createClasses("editor__toolbar__root"),
|
|
7
|
+
bold: /* @__PURE__ */ createClasses("editor__toolbar__bold"),
|
|
8
|
+
code: /* @__PURE__ */ createClasses("editor__toolbar__code"),
|
|
9
|
+
undo: /* @__PURE__ */ createClasses("editor__toolbar__undo"),
|
|
10
|
+
redo: /* @__PURE__ */ createClasses("editor__toolbar__redo"),
|
|
11
|
+
link: /* @__PURE__ */ createClasses("editor__toolbar__link"),
|
|
12
|
+
clear: /* @__PURE__ */ createClasses("editor__toolbar__clear"),
|
|
13
|
+
image: /* @__PURE__ */ createClasses("editor__toolbar__image"),
|
|
14
|
+
italic: /* @__PURE__ */ createClasses("editor__toolbar__italic"),
|
|
15
|
+
strike: /* @__PURE__ */ createClasses("editor__toolbar__strike"),
|
|
16
|
+
underline: /* @__PURE__ */ createClasses("editor__toolbar__underline"),
|
|
17
|
+
hardbreak: /* @__PURE__ */ createClasses("editor__toolbar__hardbreak"),
|
|
18
|
+
unsetlink: /* @__PURE__ */ createClasses("editor__toolbar__unsetlink"),
|
|
19
|
+
codeBlock: /* @__PURE__ */ createClasses("editor__toolbar__code__block"),
|
|
20
|
+
alignLeft: /* @__PURE__ */ createClasses("editor__toolbar__align__left"),
|
|
21
|
+
fullscreen: /* @__PURE__ */ createClasses("editor__toolbar__fullscreen"),
|
|
22
|
+
blockquote: /* @__PURE__ */ createClasses("editor__toolbar__blockquote"),
|
|
23
|
+
bulletList: /* @__PURE__ */ createClasses("editor__toolbar__bullet__list"),
|
|
24
|
+
alignRight: /* @__PURE__ */ createClasses("editor__toolbar__align__right"),
|
|
25
|
+
orderedList: /* @__PURE__ */ createClasses("editor__toolbar__ordered__list"),
|
|
26
|
+
alignCenter: /* @__PURE__ */ createClasses("editor__toolbar__align__center"),
|
|
27
|
+
alignJustify: /* @__PURE__ */ createClasses("editor__toolbar__align__justify"),
|
|
28
|
+
},
|
|
29
|
+
content: {
|
|
30
|
+
hr: /* @__PURE__ */ createClasses("editor__content__hr"),
|
|
31
|
+
root: /* @__PURE__ */ createClasses("editor__content__root"),
|
|
32
|
+
link: /* @__PURE__ */ createClasses("editor__content__link"),
|
|
33
|
+
image: /* @__PURE__ */ createClasses("editor__content__image"),
|
|
34
|
+
codeInline: /* @__PURE__ */ createClasses("editor__content__code"),
|
|
35
|
+
heading: /* @__PURE__ */ createClasses("editor__content__heading"),
|
|
36
|
+
listItem: /* @__PURE__ */ createClasses("editor__content__listItem"),
|
|
37
|
+
codeBlock: /* @__PURE__ */ createClasses("editor__content__code__block"),
|
|
38
|
+
blockquote: /* @__PURE__ */ createClasses("editor__content__blockquote"),
|
|
39
|
+
langSelect: /* @__PURE__ */ createClasses("editor__content__lang__select"),
|
|
40
|
+
placeholder: /* @__PURE__ */ createClasses("editor__content__placeholder"),
|
|
41
|
+
bulletList: /* @__PURE__ */ createClasses("editor__content__bullet__list"),
|
|
42
|
+
orderedList: /* @__PURE__ */ createClasses("editor__content__ordered__list"),
|
|
43
|
+
},
|
|
44
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { NodeViewContent, NodeViewWrapper } from "@tiptap/react";
|
|
4
|
+
import { editorClasses } from "../classes.js";
|
|
5
|
+
export function CodeHighlightBlock({ node: { attrs: { language: defaultLanguage }, }, extension, updateAttributes, }) {
|
|
6
|
+
return (_jsxs(NodeViewWrapper, { className: editorClasses.content.codeBlock, children: [_jsxs("select", { name: "language", "aria-label": "Code language", contentEditable: false, defaultValue: defaultLanguage, onChange: (event) => updateAttributes({ language: event.target.value }), className: editorClasses.content.langSelect, children: [_jsx("option", { value: "null", children: "auto" }), _jsx("option", { disabled: true, children: "\u2014" }), extension.options.lowlight.listLanguages().map((lang) => (_jsx("option", { value: lang, children: lang }, lang)))] }), _jsx("pre", { children: _jsx(NodeViewContent, { as: "code" }) })] }));
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { ChevronDown, ChevronUp } from "lucide-react";
|
|
4
|
+
import { useState } from "react";
|
|
5
|
+
import { cn } from "cn";
|
|
6
|
+
import { Popover, PopoverContent, PopoverTrigger } from "../../popover/index.js";
|
|
7
|
+
import { ToolbarItem } from "./toolbar-item.js";
|
|
8
|
+
const LEVELS = [1, 2, 3, 4, 5, 6];
|
|
9
|
+
export function HeadingBlock({ editor }) {
|
|
10
|
+
const [open, setOpen] = useState(false);
|
|
11
|
+
if (!editor)
|
|
12
|
+
return null;
|
|
13
|
+
const activeLevel = LEVELS.find((level) => editor.isActive("heading", { level }));
|
|
14
|
+
const Chevron = open ? ChevronUp : ChevronDown;
|
|
15
|
+
return (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsxs(PopoverTrigger, { "aria-label": "Heading menu button", className: "text-body2 flex h-8 w-30 cursor-pointer items-center justify-between rounded-md border border-grey-500/20 px-2 outline-none focus-visible:ring-2 focus-visible:ring-ring/50", children: [activeLevel ? `Heading ${activeLevel}` : "Paragraph", _jsx(Chevron, { className: "size-4" })] }), _jsxs(PopoverContent, { align: "start", className: "w-30 gap-1 p-1", children: [_jsx(ToolbarItem, { label: "Paragraph", active: editor.isActive("paragraph"), className: "h-8.5 w-full justify-start px-2", onClick: () => {
|
|
16
|
+
setOpen(false);
|
|
17
|
+
editor.chain().focus().setParagraph().run();
|
|
18
|
+
} }), LEVELS.map((level) => (_jsx(ToolbarItem, { "aria-label": `Heading ${level}`, label: `Heading ${level}`, active: editor.isActive("heading", { level }), className: cn("h-8.5 w-full justify-start px-2 font-bold"), style: { fontSize: 19 - level }, onClick: () => {
|
|
19
|
+
setOpen(false);
|
|
20
|
+
editor.chain().focus().toggleHeading({ level }).run();
|
|
21
|
+
} }, level)))] })] }));
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { editorClasses } from "../classes.js";
|
|
4
|
+
import { EditorIcon, ToolbarItem } from "./toolbar-item.js";
|
|
5
|
+
import { UrlPopover } from "./url-popover.js";
|
|
6
|
+
export function ImageBlock({ editor }) {
|
|
7
|
+
if (!editor)
|
|
8
|
+
return null;
|
|
9
|
+
return (_jsx(UrlPopover, { onApply: (url) => {
|
|
10
|
+
if (url)
|
|
11
|
+
editor.chain().focus().setImage({ src: url }).run();
|
|
12
|
+
}, trigger: _jsx(ToolbarItem, { "aria-label": "Image", className: editorClasses.toolbar.image, icon: _jsx(EditorIcon, { name: "image" }) }) }));
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { editorClasses } from "../classes.js";
|
|
4
|
+
import { EditorIcon, ToolbarItem } from "./toolbar-item.js";
|
|
5
|
+
import { UrlPopover } from "./url-popover.js";
|
|
6
|
+
export function LinkBlock({ editor }) {
|
|
7
|
+
if (!editor)
|
|
8
|
+
return null;
|
|
9
|
+
return (_jsxs(_Fragment, { children: [_jsx(UrlPopover, { initialUrl: () => editor.getAttributes("link").href ?? "", onApply: (url) => {
|
|
10
|
+
const chain = editor.chain().focus().extendMarkRange("link");
|
|
11
|
+
if (url)
|
|
12
|
+
chain.setLink({ href: url }).run();
|
|
13
|
+
else
|
|
14
|
+
chain.unsetLink().run();
|
|
15
|
+
}, trigger: _jsx(ToolbarItem, { "aria-label": "Link", active: editor.isActive("link"), className: editorClasses.toolbar.link, icon: _jsx(EditorIcon, { name: "link" }) }) }), _jsx(ToolbarItem, { "aria-label": "Unset link", disabled: !editor.isActive("link"), className: editorClasses.toolbar.unsetlink, onClick: () => editor.chain().focus().unsetLink().run(), icon: _jsx(EditorIcon, { name: "unlink" }) })] }));
|
|
16
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EditorToolbarItemProps } from "../types.js";
|
|
2
|
+
import { type EditorIconName } from "../icons.js";
|
|
3
|
+
export declare function EditorIcon({ name }: {
|
|
4
|
+
name: EditorIconName;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
export declare function ToolbarItem({ icon, label, active, disabled, className, ...other }: EditorToolbarItemProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
import { editorIcons } from "../icons.js";
|
|
5
|
+
export function EditorIcon({ name }) {
|
|
6
|
+
return (_jsx("svg", { viewBox: "0 0 24 24", "aria-hidden": true, className: "size-[18px] shrink-0 fill-current", children: _jsx("path", { d: editorIcons[name] }) }));
|
|
7
|
+
}
|
|
8
|
+
export function ToolbarItem({ icon, label, active, disabled, className, ...other }) {
|
|
9
|
+
return (_jsxs("button", { type: "button", disabled: disabled, "data-active": active || undefined, className: cn("text-body2 inline-flex h-7 min-w-7 cursor-pointer items-center justify-center rounded-md border border-transparent px-1.5 outline-none transition-colors", "hover:bg-action-hover focus-visible:ring-2 focus-visible:ring-ring/50", "data-active:border-action-hover data-active:bg-action-selected", "disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50", className), ...other, children: [icon, label] }));
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { Button } from "../../button/index.js";
|
|
5
|
+
import { Input } from "../../input/index.js";
|
|
6
|
+
import { Popover, PopoverContent, PopoverTrigger } from "../../popover/index.js";
|
|
7
|
+
export function UrlPopover({ trigger, initialUrl, onApply }) {
|
|
8
|
+
const [open, setOpen] = useState(false);
|
|
9
|
+
const [url, setUrl] = useState("");
|
|
10
|
+
return (_jsxs(Popover, { open: open, onOpenChange: (next) => {
|
|
11
|
+
if (next)
|
|
12
|
+
setUrl(initialUrl?.() ?? "");
|
|
13
|
+
setOpen(next);
|
|
14
|
+
}, children: [_jsx(PopoverTrigger, { render: trigger }), _jsxs(PopoverContent, { align: "start", className: "w-auto gap-2 p-5", children: [_jsx("span", { className: "text-subtitle2", children: "URL" }), _jsxs("form", { className: "flex items-center gap-2", onSubmit: (event) => {
|
|
15
|
+
event.preventDefault();
|
|
16
|
+
setOpen(false);
|
|
17
|
+
onApply(url);
|
|
18
|
+
}, children: [_jsx(Input, { value: url, onChange: (event) => setUrl(event.target.value), placeholder: "Enter URL here...", className: "w-60", autoFocus: true }), _jsx(Button, { type: "submit", children: "Apply" })] })] })] }));
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const Editor: import("react").ForwardRefExoticComponent<Partial<Omit<import("@tiptap/core").EditorOptions, "content" | "onUpdate">> & {
|
|
2
|
+
value?: string;
|
|
3
|
+
error?: boolean;
|
|
4
|
+
fullItem?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
resetValue?: boolean;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
helperText?: React.ReactNode;
|
|
9
|
+
onChange?: (value: string) => void;
|
|
10
|
+
slotProps?: {
|
|
11
|
+
wrapper?: React.ComponentProps<"div">;
|
|
12
|
+
};
|
|
13
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
import { common, createLowlight } from "lowlight";
|
|
5
|
+
import { forwardRef, useCallback, useEffect, useMemo, useState } from "react";
|
|
6
|
+
import { createPortal } from "react-dom";
|
|
7
|
+
import { EditorContent, ReactNodeViewRenderer, useEditor } from "@tiptap/react";
|
|
8
|
+
import ImageExtension from "@tiptap/extension-image";
|
|
9
|
+
import LinkExtension from "@tiptap/extension-link";
|
|
10
|
+
import PlaceholderExtension from "@tiptap/extension-placeholder";
|
|
11
|
+
import TextAlignExtension from "@tiptap/extension-text-align";
|
|
12
|
+
import Underline from "@tiptap/extension-underline";
|
|
13
|
+
import CodeBlockLowlightExtension from "@tiptap/extension-code-block-lowlight";
|
|
14
|
+
import StarterKitExtension from "@tiptap/starter-kit";
|
|
15
|
+
import { editorClasses } from "./classes.js";
|
|
16
|
+
import { CodeHighlightBlock } from "./components/code-highlight-block.js";
|
|
17
|
+
import { Toolbar } from "./toolbar.js";
|
|
18
|
+
const lowlight = createLowlight(common);
|
|
19
|
+
export const Editor = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
20
|
+
const { error, onChange, slotProps, helperText, resetValue, className, editable = true, fullItem = false, value: content = "", placeholder = "Write something...", ...other } = props;
|
|
21
|
+
const [fullScreen, setFullScreen] = useState(false);
|
|
22
|
+
const handleToggleFullScreen = useCallback(() => setFullScreen((prev) => !prev), []);
|
|
23
|
+
const extensions = useMemo(() => [
|
|
24
|
+
Underline,
|
|
25
|
+
StarterKitExtension.configure({
|
|
26
|
+
codeBlock: false,
|
|
27
|
+
code: { HTMLAttributes: { class: editorClasses.content.codeInline } },
|
|
28
|
+
heading: { HTMLAttributes: { class: editorClasses.content.heading } },
|
|
29
|
+
horizontalRule: { HTMLAttributes: { class: editorClasses.content.hr } },
|
|
30
|
+
listItem: { HTMLAttributes: { class: editorClasses.content.listItem } },
|
|
31
|
+
blockquote: { HTMLAttributes: { class: editorClasses.content.blockquote } },
|
|
32
|
+
bulletList: { HTMLAttributes: { class: editorClasses.content.bulletList } },
|
|
33
|
+
orderedList: { HTMLAttributes: { class: editorClasses.content.orderedList } },
|
|
34
|
+
link: false,
|
|
35
|
+
underline: false,
|
|
36
|
+
}),
|
|
37
|
+
PlaceholderExtension.configure({
|
|
38
|
+
placeholder,
|
|
39
|
+
emptyEditorClass: editorClasses.content.placeholder,
|
|
40
|
+
}),
|
|
41
|
+
ImageExtension.configure({ HTMLAttributes: { class: editorClasses.content.image } }),
|
|
42
|
+
TextAlignExtension.configure({ types: ["heading", "paragraph"] }),
|
|
43
|
+
LinkExtension.configure({
|
|
44
|
+
autolink: true,
|
|
45
|
+
openOnClick: false,
|
|
46
|
+
HTMLAttributes: { class: editorClasses.content.link },
|
|
47
|
+
}),
|
|
48
|
+
CodeBlockLowlightExtension.extend({
|
|
49
|
+
addNodeView() {
|
|
50
|
+
return ReactNodeViewRenderer(CodeHighlightBlock);
|
|
51
|
+
},
|
|
52
|
+
}).configure({ lowlight, HTMLAttributes: { class: editorClasses.content.codeBlock } }),
|
|
53
|
+
], [placeholder]);
|
|
54
|
+
const editor = useEditor({
|
|
55
|
+
content,
|
|
56
|
+
editable,
|
|
57
|
+
extensions,
|
|
58
|
+
immediatelyRender: false,
|
|
59
|
+
shouldRerenderOnTransaction: true,
|
|
60
|
+
onUpdate({ editor: current }) {
|
|
61
|
+
onChange?.(current.getHTML());
|
|
62
|
+
},
|
|
63
|
+
...other,
|
|
64
|
+
});
|
|
65
|
+
useEffect(() => {
|
|
66
|
+
if (!editor || editor.isFocused)
|
|
67
|
+
return;
|
|
68
|
+
if (content !== editor.getHTML() && !(content === "" && editor.isEmpty)) {
|
|
69
|
+
editor.commands.setContent(content, { emitUpdate: false });
|
|
70
|
+
}
|
|
71
|
+
}, [content, editor]);
|
|
72
|
+
useEffect(() => {
|
|
73
|
+
if (resetValue && !content)
|
|
74
|
+
editor?.commands.clearContent();
|
|
75
|
+
}, [content, editor, resetValue]);
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
if (!fullScreen)
|
|
78
|
+
return;
|
|
79
|
+
const previous = document.body.style.overflow;
|
|
80
|
+
document.body.style.overflow = "hidden";
|
|
81
|
+
return () => {
|
|
82
|
+
document.body.style.overflow = previous;
|
|
83
|
+
};
|
|
84
|
+
}, [fullScreen]);
|
|
85
|
+
const body = (_jsxs("div", { ...slotProps?.wrapper, className: cn("flex flex-col", !editable && "cursor-not-allowed", slotProps?.wrapper?.className), children: [_jsxs("div", { "data-error": error || undefined, "data-disabled": !editable || undefined, "data-fullscreen": fullScreen || undefined, className: cn("xui-editor", editorClasses.root, className), children: [_jsx(Toolbar, { editor: editor, fullItem: fullItem, fullScreen: fullScreen, onToggleFullScreen: handleToggleFullScreen }), _jsx(EditorContent, { ref: ref, spellCheck: "false", autoComplete: "off", autoCapitalize: "off", editor: editor, className: editorClasses.content.root })] }), helperText && (_jsx("p", { className: cn("text-caption mt-2 px-4", error ? "text-error" : "text-text-secondary"), children: helperText }))] }));
|
|
86
|
+
if (!fullScreen)
|
|
87
|
+
return body;
|
|
88
|
+
return createPortal(_jsxs(_Fragment, { children: [_jsx("div", { "aria-hidden": true, className: "fixed inset-0 z-fullscreen bg-black/50" }), body] }), document.body);
|
|
89
|
+
});
|
|
90
|
+
Editor.displayName = "Editor";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** Remix Icon paths (24x24 viewBox), https://remixicon.com */
|
|
2
|
+
export declare const editorIcons: {
|
|
3
|
+
readonly bold: "M8 11H12.5C13.8807 11 15 9.88071 15 8.5C15 7.11929 13.8807 6 12.5 6H8V11ZM18 15.5C18 17.9853 15.9853 20 13.5 20H6V4H12.5C14.9853 4 17 6.01472 17 8.5C17 9.70431 16.5269 10.7981 15.7564 11.6058C17.0979 12.3847 18 13.837 18 15.5ZM8 13V18H13.5C14.8807 18 16 16.8807 16 15.5C16 14.1193 14.8807 13 13.5 13H8Z";
|
|
4
|
+
readonly italic: "M15 20H7V18H9.92661L12.0425 6H9V4H17V6H14.0734L11.9575 18H15V20Z";
|
|
5
|
+
readonly underline: "M8 3V12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12V3H18V12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12V3H8ZM4 20H20V22H4V20Z";
|
|
6
|
+
readonly strike: "M17.1538 14C17.3846 14.5161 17.5 15.0893 17.5 15.7196C17.5 17.0625 16.9762 18.1116 15.9286 18.867C14.8809 19.6223 13.4335 20 11.5862 20C9.94674 20 8.32335 19.6185 6.71592 18.8555V16.6009C8.23538 17.4783 9.7908 17.917 11.3822 17.917C13.9333 17.917 15.2128 17.1846 15.2208 15.7196C15.2208 15.0939 15.0049 14.5598 14.5731 14.1173C14.5339 14.0772 14.4939 14.0381 14.4531 14H3V12H21V14H17.1538ZM13.076 11H7.62908C7.4566 10.8433 7.29616 10.6692 7.14776 10.4778C6.71592 9.92084 6.5 9.24559 6.5 8.45207C6.5 7.21602 6.96583 6.165 7.89749 5.299C8.82916 4.43299 10.2706 4 12.2219 4C13.6934 4 15.1009 4.32808 16.4444 4.98426V7.13591C15.2448 6.44921 13.9293 6.10587 12.4978 6.10587C10.0187 6.10587 8.77917 6.88793 8.77917 8.45207C8.77917 8.87172 8.99709 9.23796 9.43293 9.55079C9.86878 9.86362 10.4066 10.1135 11.0463 10.3004C11.6665 10.4816 12.3431 10.7148 13.076 11H13.076Z";
|
|
7
|
+
readonly bulletList: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z";
|
|
8
|
+
readonly orderedList: "M8 4H21V6H8V4ZM5 3V6H6V7H3V6H4V4H3V3H5ZM3 14V11.5H5V11H3V10H6V12.5H4V13H6V14H3ZM5 19.5H3V18.5H5V18H3V17H6V21H3V20H5V19.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z";
|
|
9
|
+
readonly alignLeft: "M3 4H21V6H3V4ZM3 19H17V21H3V19ZM3 14H21V16H3V14ZM3 9H17V11H3V9Z";
|
|
10
|
+
readonly alignCenter: "M3 4H21V6H3V4ZM5 19H19V21H5V19ZM3 14H21V16H3V14ZM5 9H19V11H5V9Z";
|
|
11
|
+
readonly alignRight: "M3 4H21V6H3V4ZM7 19H21V21H7V19ZM3 14H21V16H3V14ZM7 9H21V11H7V9Z";
|
|
12
|
+
readonly alignJustify: "M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z";
|
|
13
|
+
readonly code: "M16.95 8.46448L18.3642 7.05026L23.3139 12L18.3642 16.9498L16.95 15.5355L20.4855 12L16.95 8.46448ZM7.05048 8.46448L3.51495 12L7.05048 15.5355L5.63627 16.9498L0.686523 12L5.63627 7.05026L7.05048 8.46448Z";
|
|
14
|
+
readonly codeBlock: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM4 5V19H20V5H4ZM20 12L16.4645 15.5355L15.0503 14.1213L17.1716 12L15.0503 9.87868L16.4645 8.46447L20 12ZM6.82843 12L8.94975 14.1213L7.53553 15.5355L4 12L7.53553 8.46447L8.94975 9.87868L6.82843 12ZM11.2443 17H9.11597L12.7557 7H14.884L11.2443 17Z";
|
|
15
|
+
readonly blockquote: "M4.58341 17.3211C3.55316 16.2274 3 15 3 13.0103C3 9.51086 5.45651 6.37366 9.03059 4.82318L9.92328 6.20079C6.58804 8.00539 5.93618 10.346 5.67564 11.822C6.21263 11.5443 6.91558 11.4466 7.60471 11.5105C9.40908 11.6778 10.8312 13.159 10.8312 15C10.8312 16.933 9.26416 18.5 7.33116 18.5C6.2581 18.5 5.23196 18.0095 4.58341 17.3211ZM14.5834 17.3211C13.5532 16.2274 13 15 13 13.0103C13 9.51086 15.4565 6.37366 19.0306 4.82318L19.9233 6.20079C16.588 8.00539 15.9362 10.346 15.6756 11.822C16.2126 11.5443 16.9156 11.4466 17.6047 11.5105C19.4091 11.6778 20.8312 13.159 20.8312 15C20.8312 16.933 19.2642 18.5 17.3312 18.5C16.2581 18.5 15.232 18.0095 14.5834 17.3211Z";
|
|
16
|
+
readonly hr: "M2 11H4V13H2V11ZM6 11H18V13H6V11ZM20 11H22V13H20V11Z";
|
|
17
|
+
readonly hardBreak: "M15 18H16.5C17.8807 18 19 16.8807 19 15.5C19 14.1193 17.8807 13 16.5 13H3V11H16.5C18.9853 11 21 13.0147 21 15.5C21 17.9853 18.9853 20 16.5 20H15V22L11 19L15 16V18ZM3 4H21V6H3V4ZM9 18V20H3V18H9Z";
|
|
18
|
+
readonly clear: "M12.6512 14.0654L11.6047 20H9.57389L10.9247 12.339L3.51465 4.92892L4.92886 3.51471L20.4852 19.0711L19.071 20.4853L12.6512 14.0654ZM11.7727 7.53009L12.0425 5.99999H10.2426L8.24257 3.99999H19.9999V5.99999H14.0733L13.4991 9.25652L11.7727 7.53009Z";
|
|
19
|
+
readonly undo: "M8 7V11L2 6L8 1V5H13C17.4183 5 21 8.58172 21 13C21 17.4183 17.4183 21 13 21H4V19H13C16.3137 19 19 16.3137 19 13C19 9.68629 16.3137 7 13 7H8Z";
|
|
20
|
+
readonly redo: "M16 7H11C7.68629 7 5 9.68629 5 13C5 16.3137 7.68629 19 11 19H20V21H11C6.58172 21 3 17.4183 3 13C3 8.58172 6.58172 5 11 5H16V1L22 6L16 11V7Z";
|
|
21
|
+
readonly fullscreenExit: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z";
|
|
22
|
+
readonly fullscreenEnter: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z";
|
|
23
|
+
readonly link: "M17.6567 14.8284L16.2425 13.4142L17.6567 12C19.2188 10.4379 19.2188 7.90524 17.6567 6.34314C16.0946 4.78105 13.5619 4.78105 11.9998 6.34314L10.5856 7.75736L9.17139 6.34314L10.5856 4.92893C12.9287 2.58578 16.7277 2.58578 19.0709 4.92893C21.414 7.27208 21.414 11.0711 19.0709 13.4142L17.6567 14.8284ZM14.8282 17.6569L13.414 19.0711C11.0709 21.4142 7.27189 21.4142 4.92875 19.0711C2.5856 16.7279 2.5856 12.9289 4.92875 10.5858L6.34296 9.17157L7.75717 10.5858L6.34296 12C4.78086 13.5621 4.78086 16.0948 6.34296 17.6569C7.90506 19.2189 10.4377 19.2189 11.9998 17.6569L13.414 16.2426L14.8282 17.6569ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z";
|
|
24
|
+
readonly unlink: "M17.657 14.8284L16.2428 13.4142L17.657 12C19.2191 10.4379 19.2191 7.90526 17.657 6.34316C16.0949 4.78106 13.5622 4.78106 12.0001 6.34316L10.5859 7.75737L9.17171 6.34316L10.5859 4.92895C12.9291 2.5858 16.7281 2.5858 19.0712 4.92895C21.4143 7.27209 21.4143 11.0711 19.0712 13.4142L17.657 14.8284ZM14.8286 17.6569L13.4143 19.0711C11.0712 21.4142 7.27221 21.4142 4.92907 19.0711C2.58592 16.7279 2.58592 12.9289 4.92907 10.5858L6.34328 9.17159L7.75749 10.5858L6.34328 12C4.78118 13.5621 4.78118 16.0948 6.34328 17.6569C7.90538 19.219 10.438 19.219 12.0001 17.6569L13.4143 16.2427L14.8286 17.6569ZM14.8286 7.75737L16.2428 9.17159L9.17171 16.2427L7.75749 14.8284L14.8286 7.75737ZM5.77539 2.29291L7.70724 1.77527L8.74252 5.63897L6.81067 6.15661L5.77539 2.29291ZM15.2578 18.3611L17.1896 17.8434L18.2249 21.7071L16.293 22.2248L15.2578 18.3611ZM2.29303 5.77527L6.15673 6.81054L5.63909 8.7424L1.77539 7.70712L2.29303 5.77527ZM18.3612 15.2576L22.2249 16.2929L21.7072 18.2248L17.8435 17.1895L18.3612 15.2576Z";
|
|
25
|
+
readonly image: "M20 5H4V19L13.2923 9.70649C13.6828 9.31595 14.3159 9.31591 14.7065 9.70641L20 15.0104V5ZM2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z";
|
|
26
|
+
};
|
|
27
|
+
export type EditorIconName = keyof typeof editorIcons;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** Remix Icon paths (24x24 viewBox), https://remixicon.com */
|
|
2
|
+
export const editorIcons = {
|
|
3
|
+
bold: "M8 11H12.5C13.8807 11 15 9.88071 15 8.5C15 7.11929 13.8807 6 12.5 6H8V11ZM18 15.5C18 17.9853 15.9853 20 13.5 20H6V4H12.5C14.9853 4 17 6.01472 17 8.5C17 9.70431 16.5269 10.7981 15.7564 11.6058C17.0979 12.3847 18 13.837 18 15.5ZM8 13V18H13.5C14.8807 18 16 16.8807 16 15.5C16 14.1193 14.8807 13 13.5 13H8Z",
|
|
4
|
+
italic: "M15 20H7V18H9.92661L12.0425 6H9V4H17V6H14.0734L11.9575 18H15V20Z",
|
|
5
|
+
underline: "M8 3V12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12V3H18V12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12V3H8ZM4 20H20V22H4V20Z",
|
|
6
|
+
strike: "M17.1538 14C17.3846 14.5161 17.5 15.0893 17.5 15.7196C17.5 17.0625 16.9762 18.1116 15.9286 18.867C14.8809 19.6223 13.4335 20 11.5862 20C9.94674 20 8.32335 19.6185 6.71592 18.8555V16.6009C8.23538 17.4783 9.7908 17.917 11.3822 17.917C13.9333 17.917 15.2128 17.1846 15.2208 15.7196C15.2208 15.0939 15.0049 14.5598 14.5731 14.1173C14.5339 14.0772 14.4939 14.0381 14.4531 14H3V12H21V14H17.1538ZM13.076 11H7.62908C7.4566 10.8433 7.29616 10.6692 7.14776 10.4778C6.71592 9.92084 6.5 9.24559 6.5 8.45207C6.5 7.21602 6.96583 6.165 7.89749 5.299C8.82916 4.43299 10.2706 4 12.2219 4C13.6934 4 15.1009 4.32808 16.4444 4.98426V7.13591C15.2448 6.44921 13.9293 6.10587 12.4978 6.10587C10.0187 6.10587 8.77917 6.88793 8.77917 8.45207C8.77917 8.87172 8.99709 9.23796 9.43293 9.55079C9.86878 9.86362 10.4066 10.1135 11.0463 10.3004C11.6665 10.4816 12.3431 10.7148 13.076 11H13.076Z",
|
|
7
|
+
bulletList: "M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z",
|
|
8
|
+
orderedList: "M8 4H21V6H8V4ZM5 3V6H6V7H3V6H4V4H3V3H5ZM3 14V11.5H5V11H3V10H6V12.5H4V13H6V14H3ZM5 19.5H3V18.5H5V18H3V17H6V21H3V20H5V19.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z",
|
|
9
|
+
alignLeft: "M3 4H21V6H3V4ZM3 19H17V21H3V19ZM3 14H21V16H3V14ZM3 9H17V11H3V9Z",
|
|
10
|
+
alignCenter: "M3 4H21V6H3V4ZM5 19H19V21H5V19ZM3 14H21V16H3V14ZM5 9H19V11H5V9Z",
|
|
11
|
+
alignRight: "M3 4H21V6H3V4ZM7 19H21V21H7V19ZM3 14H21V16H3V14ZM7 9H21V11H7V9Z",
|
|
12
|
+
alignJustify: "M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z",
|
|
13
|
+
code: "M16.95 8.46448L18.3642 7.05026L23.3139 12L18.3642 16.9498L16.95 15.5355L20.4855 12L16.95 8.46448ZM7.05048 8.46448L3.51495 12L7.05048 15.5355L5.63627 16.9498L0.686523 12L5.63627 7.05026L7.05048 8.46448Z",
|
|
14
|
+
codeBlock: "M3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM4 5V19H20V5H4ZM20 12L16.4645 15.5355L15.0503 14.1213L17.1716 12L15.0503 9.87868L16.4645 8.46447L20 12ZM6.82843 12L8.94975 14.1213L7.53553 15.5355L4 12L7.53553 8.46447L8.94975 9.87868L6.82843 12ZM11.2443 17H9.11597L12.7557 7H14.884L11.2443 17Z",
|
|
15
|
+
blockquote: "M4.58341 17.3211C3.55316 16.2274 3 15 3 13.0103C3 9.51086 5.45651 6.37366 9.03059 4.82318L9.92328 6.20079C6.58804 8.00539 5.93618 10.346 5.67564 11.822C6.21263 11.5443 6.91558 11.4466 7.60471 11.5105C9.40908 11.6778 10.8312 13.159 10.8312 15C10.8312 16.933 9.26416 18.5 7.33116 18.5C6.2581 18.5 5.23196 18.0095 4.58341 17.3211ZM14.5834 17.3211C13.5532 16.2274 13 15 13 13.0103C13 9.51086 15.4565 6.37366 19.0306 4.82318L19.9233 6.20079C16.588 8.00539 15.9362 10.346 15.6756 11.822C16.2126 11.5443 16.9156 11.4466 17.6047 11.5105C19.4091 11.6778 20.8312 13.159 20.8312 15C20.8312 16.933 19.2642 18.5 17.3312 18.5C16.2581 18.5 15.232 18.0095 14.5834 17.3211Z",
|
|
16
|
+
hr: "M2 11H4V13H2V11ZM6 11H18V13H6V11ZM20 11H22V13H20V11Z",
|
|
17
|
+
hardBreak: "M15 18H16.5C17.8807 18 19 16.8807 19 15.5C19 14.1193 17.8807 13 16.5 13H3V11H16.5C18.9853 11 21 13.0147 21 15.5C21 17.9853 18.9853 20 16.5 20H15V22L11 19L15 16V18ZM3 4H21V6H3V4ZM9 18V20H3V18H9Z",
|
|
18
|
+
clear: "M12.6512 14.0654L11.6047 20H9.57389L10.9247 12.339L3.51465 4.92892L4.92886 3.51471L20.4852 19.0711L19.071 20.4853L12.6512 14.0654ZM11.7727 7.53009L12.0425 5.99999H10.2426L8.24257 3.99999H19.9999V5.99999H14.0733L13.4991 9.25652L11.7727 7.53009Z",
|
|
19
|
+
undo: "M8 7V11L2 6L8 1V5H13C17.4183 5 21 8.58172 21 13C21 17.4183 17.4183 21 13 21H4V19H13C16.3137 19 19 16.3137 19 13C19 9.68629 16.3137 7 13 7H8Z",
|
|
20
|
+
redo: "M16 7H11C7.68629 7 5 9.68629 5 13C5 16.3137 7.68629 19 11 19H20V21H11C6.58172 21 3 17.4183 3 13C3 8.58172 6.58172 5 11 5H16V1L22 6L16 11V7Z",
|
|
21
|
+
fullscreenExit: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z",
|
|
22
|
+
fullscreenEnter: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z",
|
|
23
|
+
link: "M17.6567 14.8284L16.2425 13.4142L17.6567 12C19.2188 10.4379 19.2188 7.90524 17.6567 6.34314C16.0946 4.78105 13.5619 4.78105 11.9998 6.34314L10.5856 7.75736L9.17139 6.34314L10.5856 4.92893C12.9287 2.58578 16.7277 2.58578 19.0709 4.92893C21.414 7.27208 21.414 11.0711 19.0709 13.4142L17.6567 14.8284ZM14.8282 17.6569L13.414 19.0711C11.0709 21.4142 7.27189 21.4142 4.92875 19.0711C2.5856 16.7279 2.5856 12.9289 4.92875 10.5858L6.34296 9.17157L7.75717 10.5858L6.34296 12C4.78086 13.5621 4.78086 16.0948 6.34296 17.6569C7.90506 19.2189 10.4377 19.2189 11.9998 17.6569L13.414 16.2426L14.8282 17.6569ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z",
|
|
24
|
+
unlink: "M17.657 14.8284L16.2428 13.4142L17.657 12C19.2191 10.4379 19.2191 7.90526 17.657 6.34316C16.0949 4.78106 13.5622 4.78106 12.0001 6.34316L10.5859 7.75737L9.17171 6.34316L10.5859 4.92895C12.9291 2.5858 16.7281 2.5858 19.0712 4.92895C21.4143 7.27209 21.4143 11.0711 19.0712 13.4142L17.657 14.8284ZM14.8286 17.6569L13.4143 19.0711C11.0712 21.4142 7.27221 21.4142 4.92907 19.0711C2.58592 16.7279 2.58592 12.9289 4.92907 10.5858L6.34328 9.17159L7.75749 10.5858L6.34328 12C4.78118 13.5621 4.78118 16.0948 6.34328 17.6569C7.90538 19.219 10.438 19.219 12.0001 17.6569L13.4143 16.2427L14.8286 17.6569ZM14.8286 7.75737L16.2428 9.17159L9.17171 16.2427L7.75749 14.8284L14.8286 7.75737ZM5.77539 2.29291L7.70724 1.77527L8.74252 5.63897L6.81067 6.15661L5.77539 2.29291ZM15.2578 18.3611L17.1896 17.8434L18.2249 21.7071L16.293 22.2248L15.2578 18.3611ZM2.29303 5.77527L6.15673 6.81054L5.63909 8.7424L1.77539 7.70712L2.29303 5.77527ZM18.3612 15.2576L22.2249 16.2929L21.7072 18.2248L17.8435 17.1895L18.3612 15.2576Z",
|
|
25
|
+
image: "M20 5H4V19L13.2923 9.70649C13.6828 9.31595 14.3159 9.31591 14.7065 9.70641L20 15.0104V5ZM2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z",
|
|
26
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
import { editorClasses } from "./classes.js";
|
|
5
|
+
import { HeadingBlock } from "./components/heading-block.js";
|
|
6
|
+
import { ImageBlock } from "./components/image-block.js";
|
|
7
|
+
import { LinkBlock } from "./components/link-block.js";
|
|
8
|
+
import { EditorIcon, ToolbarItem } from "./components/toolbar-item.js";
|
|
9
|
+
function Group({ children }) {
|
|
10
|
+
return _jsx("div", { className: "flex gap-1", children: children });
|
|
11
|
+
}
|
|
12
|
+
function Divider() {
|
|
13
|
+
return _jsx("span", { "aria-hidden": true, className: "h-4 w-px self-center bg-divider" });
|
|
14
|
+
}
|
|
15
|
+
export function Toolbar({ editor, fullItem, fullScreen, onToggleFullScreen, className, ...other }) {
|
|
16
|
+
if (!editor)
|
|
17
|
+
return null;
|
|
18
|
+
const chain = () => editor.chain().focus();
|
|
19
|
+
return (_jsxs("div", { className: cn(editorClasses.toolbar.root, "flex flex-wrap items-center gap-2 rounded-t-[inherit] border-b border-grey-500/20 bg-card p-2.5", className), ...other, children: [_jsx(HeadingBlock, { editor: editor }), _jsx(Divider, {}), _jsxs(Group, { children: [_jsx(ToolbarItem, { "aria-label": "Bold", active: editor.isActive("bold"), className: editorClasses.toolbar.bold, onClick: () => chain().toggleBold().run(), icon: _jsx(EditorIcon, { name: "bold" }) }), _jsx(ToolbarItem, { "aria-label": "Italic", active: editor.isActive("italic"), className: editorClasses.toolbar.italic, onClick: () => chain().toggleItalic().run(), icon: _jsx(EditorIcon, { name: "italic" }) }), _jsx(ToolbarItem, { "aria-label": "Underline", active: editor.isActive("underline"), className: editorClasses.toolbar.underline, onClick: () => chain().toggleUnderline().run(), icon: _jsx(EditorIcon, { name: "underline" }) }), _jsx(ToolbarItem, { "aria-label": "Strike", active: editor.isActive("strike"), className: editorClasses.toolbar.strike, onClick: () => chain().toggleStrike().run(), icon: _jsx(EditorIcon, { name: "strike" }) })] }), _jsx(Divider, {}), _jsxs(Group, { children: [_jsx(ToolbarItem, { "aria-label": "Bullet list", active: editor.isActive("bulletList"), className: editorClasses.toolbar.bulletList, onClick: () => chain().toggleBulletList().run(), icon: _jsx(EditorIcon, { name: "bulletList" }) }), _jsx(ToolbarItem, { "aria-label": "Ordered list", active: editor.isActive("orderedList"), className: editorClasses.toolbar.orderedList, onClick: () => chain().toggleOrderedList().run(), icon: _jsx(EditorIcon, { name: "orderedList" }) })] }), _jsx(Divider, {}), _jsxs(Group, { children: [_jsx(ToolbarItem, { "aria-label": "Align left", active: editor.isActive({ textAlign: "left" }), className: editorClasses.toolbar.alignLeft, onClick: () => chain().setTextAlign("left").run(), icon: _jsx(EditorIcon, { name: "alignLeft" }) }), _jsx(ToolbarItem, { "aria-label": "Align center", active: editor.isActive({ textAlign: "center" }), className: editorClasses.toolbar.alignCenter, onClick: () => chain().setTextAlign("center").run(), icon: _jsx(EditorIcon, { name: "alignCenter" }) }), _jsx(ToolbarItem, { "aria-label": "Align right", active: editor.isActive({ textAlign: "right" }), className: editorClasses.toolbar.alignRight, onClick: () => chain().setTextAlign("right").run(), icon: _jsx(EditorIcon, { name: "alignRight" }) }), _jsx(ToolbarItem, { "aria-label": "Align justify", active: editor.isActive({ textAlign: "justify" }), className: editorClasses.toolbar.alignJustify, onClick: () => chain().setTextAlign("justify").run(), icon: _jsx(EditorIcon, { name: "alignJustify" }) })] }), fullItem && (_jsxs(_Fragment, { children: [_jsx(Divider, {}), _jsxs(Group, { children: [_jsx(ToolbarItem, { "aria-label": "Inline code", active: editor.isActive("code"), className: editorClasses.toolbar.code, onClick: () => chain().toggleCode().run(), icon: _jsx(EditorIcon, { name: "code" }) }), _jsx(ToolbarItem, { "aria-label": "Code block", active: editor.isActive("codeBlock"), className: editorClasses.toolbar.codeBlock, onClick: () => chain().toggleCodeBlock().run(), icon: _jsx(EditorIcon, { name: "codeBlock" }) })] }), _jsx(Divider, {}), _jsxs(Group, { children: [_jsx(ToolbarItem, { "aria-label": "Blockquote", active: editor.isActive("blockquote"), className: editorClasses.toolbar.blockquote, onClick: () => chain().toggleBlockquote().run(), icon: _jsx(EditorIcon, { name: "blockquote" }) }), _jsx(ToolbarItem, { "aria-label": "Horizontal rule", className: editorClasses.toolbar.hr, onClick: () => chain().setHorizontalRule().run(), icon: _jsx(EditorIcon, { name: "hr" }) })] })] })), _jsx(Divider, {}), _jsxs(Group, { children: [_jsx(LinkBlock, { editor: editor }), _jsx(ImageBlock, { editor: editor })] }), _jsx(Divider, {}), _jsxs(Group, { children: [_jsx(ToolbarItem, { "aria-label": "Hard break", className: editorClasses.toolbar.hardbreak, onClick: () => chain().setHardBreak().run(), icon: _jsx(EditorIcon, { name: "hardBreak" }) }), _jsx(ToolbarItem, { "aria-label": "Clear formatting", className: editorClasses.toolbar.clear, onClick: () => chain().clearNodes().unsetAllMarks().run(), icon: _jsx(EditorIcon, { name: "clear" }) })] }), fullItem && (_jsxs(_Fragment, { children: [_jsx(Divider, {}), _jsxs(Group, { children: [_jsx(ToolbarItem, { "aria-label": "Undo", className: editorClasses.toolbar.undo, disabled: !editor.can().chain().focus().undo().run(), onClick: () => chain().undo().run(), icon: _jsx(EditorIcon, { name: "undo" }) }), _jsx(ToolbarItem, { "aria-label": "Redo", className: editorClasses.toolbar.redo, disabled: !editor.can().chain().focus().redo().run(), onClick: () => chain().redo().run(), icon: _jsx(EditorIcon, { name: "redo" }) })] })] })), _jsx(Divider, {}), _jsx(Group, { children: _jsx(ToolbarItem, { "aria-label": fullScreen ? "Exit fullscreen" : "Fullscreen", active: fullScreen, className: editorClasses.toolbar.fullscreen, onClick: onToggleFullScreen, icon: _jsx(EditorIcon, { name: fullScreen ? "fullscreenExit" : "fullscreenEnter" }) }) })] }));
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Editor, EditorOptions } from "@tiptap/react";
|
|
2
|
+
export type EditorProps = Partial<Omit<EditorOptions, "content" | "onUpdate">> & {
|
|
3
|
+
/** HTML content. */
|
|
4
|
+
value?: string;
|
|
5
|
+
error?: boolean;
|
|
6
|
+
fullItem?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
resetValue?: boolean;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
helperText?: React.ReactNode;
|
|
11
|
+
onChange?: (value: string) => void;
|
|
12
|
+
slotProps?: {
|
|
13
|
+
wrapper?: React.ComponentProps<"div">;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type EditorToolbarProps = {
|
|
17
|
+
fullScreen: boolean;
|
|
18
|
+
editor: Editor | null;
|
|
19
|
+
onToggleFullScreen: () => void;
|
|
20
|
+
fullItem?: EditorProps["fullItem"];
|
|
21
|
+
};
|
|
22
|
+
export type EditorToolbarItemProps = Omit<React.ComponentProps<"button">, "children"> & {
|
|
23
|
+
label?: string;
|
|
24
|
+
active?: boolean;
|
|
25
|
+
icon?: React.ReactNode;
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/** Default illustration, inlined so the component needs no asset hosting. */
|
|
2
|
+
export declare const emptyContentImage = "data:image/svg+xml;charset=utf-8,%3Csvg width=%22120%22 height=%22120%22 viewBox=%220 0 120 120%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%0A%3Cg opacity=%220.48%22%3E%0A%3Cpath opacity=%220.48%22 fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M21.1902 86.066L22.6459 87.5218L24.1062 86.062L24.7302 86.6858L23.2696 88.1454L24.7262 89.6011L24.1005 90.2266L22.6438 88.7711L21.1845 90.2306L20.5605 89.6068L22.0201 88.1475L20.5645 86.6915L21.1902 86.066Z%22 fill=%22%23919EAB%22/%3E%0A%3Cpath opacity=%220.48%22 fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M87.2381 12.7676L88.6937 14.2234L90.1541 12.7635L90.7781 13.3874L89.3175 14.8469L90.7741 16.3026L90.1483 16.9282L88.6916 15.4726L87.2323 16.9322L86.6083 16.3084L88.0679 14.8491L86.6124 13.3931L87.2381 12.7676Z%22 fill=%22%23919EAB%22/%3E%0A%3Cpath fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M96.6978 39.0406L95.6585 40.0797L95.6571 40.081C95.6368 40.1012 95.6207 40.1252 95.6097 40.1517C95.5987 40.1781 95.593 40.2064 95.593 40.235C95.593 40.2637 95.5987 40.292 95.6097 40.3184C95.6207 40.3449 95.6368 40.3689 95.6571 40.3891L95.6585 40.3904L96.6978 41.4295C96.739 41.4704 96.7948 41.4936 96.8529 41.4936C96.911 41.4936 96.9667 41.4706 97.0078 41.4297L98.0487 40.3891C98.069 40.3689 98.0851 40.3449 98.0961 40.3184C98.1072 40.2919 98.1128 40.2636 98.1128 40.235C98.1128 40.2065 98.1072 40.1782 98.0961 40.1517C98.0851 40.1252 98.069 40.1012 98.0487 40.081L98.0473 40.0797L97.008 39.0406C96.9669 38.9997 96.911 38.9765 96.8529 38.9765C96.7948 38.9765 96.739 38.9997 96.6978 39.0406ZM94.7813 39.2011L95.8211 38.1616C96.095 37.8885 96.466 37.735 96.8529 37.735C97.2397 37.735 97.6108 37.8885 97.8847 38.1616L98.9237 39.2004L98.9244 39.2011C99.0606 39.3365 99.1686 39.4975 99.2423 39.6747C99.3162 39.8522 99.3543 40.0426 99.3543 40.235C99.3543 40.4274 99.3162 40.6179 99.2423 40.7954C99.1686 40.9726 99.0606 41.1335 98.9245 41.269L98.9237 41.2697L97.8847 42.3085C97.6108 42.5816 97.2397 42.735 96.8529 42.735C96.466 42.735 96.095 42.5816 95.8211 42.3085L94.7821 41.2697L94.7813 41.2689C94.6452 41.1335 94.5372 40.9726 94.4635 40.7954C94.3896 40.6178 94.3516 40.4273 94.3516 40.235C94.3516 40.0427 94.3896 39.8523 94.4635 39.6747C94.5372 39.4975 94.6452 39.3366 94.7813 39.2011Z%22 fill=%22%23919EAB%22/%3E%0A%3Cpath opacity=%220.8%22 fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M62.355 105.714L61.3157 106.753L61.3143 106.755C61.294 106.775 61.2779 106.799 61.2669 106.825C61.2559 106.852 61.2503 106.88 61.2503 106.909C61.2503 106.937 61.2559 106.966 61.2669 106.992C61.2779 107.019 61.294 107.043 61.3143 107.063L61.3157 107.064L62.355 108.103C62.3962 108.144 62.4521 108.167 62.5101 108.167C62.5682 108.167 62.6239 108.144 62.665 108.103L63.7059 107.063C63.7262 107.043 63.7423 107.019 63.7534 106.992C63.7644 106.966 63.77 106.937 63.77 106.909C63.77 106.88 63.7644 106.852 63.7534 106.825C63.7423 106.799 63.7262 106.775 63.7059 106.755L63.7046 106.753L62.6653 105.714C62.6241 105.673 62.5682 105.65 62.5101 105.65C62.4521 105.65 62.3962 105.673 62.355 105.714ZM60.4385 105.875L61.4784 104.835C61.7522 104.562 62.1233 104.409 62.5101 104.409C62.897 104.409 63.268 104.562 63.5419 104.835L64.581 105.874L64.5817 105.875C64.7178 106.01 64.8258 106.171 64.8995 106.348C64.9734 106.526 65.0115 106.716 65.0115 106.909C65.0115 107.101 64.9734 107.291 64.8995 107.469C64.8258 107.646 64.7178 107.807 64.5817 107.943L64.581 107.943L63.5419 108.982C63.268 109.255 62.897 109.409 62.5101 109.409C62.1233 109.409 61.7522 109.255 61.4784 108.982L60.4393 107.943L60.4385 107.943C60.3024 107.807 60.1944 107.646 60.1207 107.469C60.0468 107.291 60.0088 107.101 60.0088 106.909C60.0088 106.716 60.0468 106.526 60.1207 106.348C60.1945 106.171 60.3024 106.01 60.4385 105.875Z%22 fill=%22%23919EAB%22/%3E%0A%3Cpath opacity=%220.24%22 fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M104.552 66.3174C104.701 66.2789 104.858 66.278 105.008 66.3153C105.173 66.3561 105.322 66.4409 105.442 66.5601C105.561 66.6797 105.646 66.8295 105.687 66.9935C105.724 67.1437 105.723 67.3005 105.685 67.4497L105.109 70.5411C105.062 70.7839 104.909 71.1334 104.522 71.2523C104.135 71.3714 103.812 71.1678 103.638 70.9932L101.009 68.3653C100.831 68.1888 100.628 67.8651 100.748 67.4773C100.868 67.0899 101.219 66.9375 101.464 66.8922C101.465 66.8921 101.465 66.8921 101.465 66.892L104.552 66.3174ZM104.448 67.5539L102.291 67.9554L104.046 69.7099L104.448 67.5539Z%22 fill=%22%23919EAB%22/%3E%0A%3Cpath opacity=%220.8%22 fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M102.46 94.266C102.609 94.2275 102.766 94.2266 102.916 94.2639C103.08 94.3047 103.23 94.3895 103.349 94.5088C103.469 94.6283 103.554 94.7781 103.594 94.9421C103.632 95.0923 103.631 95.2491 103.592 95.3983L103.016 98.4897C102.97 98.7325 102.817 99.082 102.43 99.201C102.042 99.32 101.72 99.1164 101.545 98.9419L98.9167 96.3139C98.7386 96.1374 98.5356 95.8137 98.6558 95.426C98.776 95.0385 99.1263 94.8861 99.3721 94.8408C99.3724 94.8408 99.3727 94.8407 99.373 94.8407L102.46 94.266ZM102.356 95.5026L100.199 95.904L101.954 97.6586L102.356 95.5026Z%22 fill=%22%23919EAB%22/%3E%0A%3Cpath opacity=%220.48%22 fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M12.5004 72.4729C12.3186 72.4729 12.1408 72.5269 11.9896 72.6279C11.8383 72.729 11.7205 72.8724 11.651 73.0402C11.5814 73.2081 11.5632 73.393 11.5987 73.5712C11.6341 73.7494 11.7217 73.9132 11.8502 74.0417C11.9787 74.1702 12.1425 74.2577 12.321 74.2932C12.4996 74.3287 12.6845 74.3105 12.8523 74.241C13.0203 74.1715 13.1639 74.0536 13.265 73.9024C13.366 73.7513 13.4199 73.5736 13.4199 73.3919C13.4199 73.1482 13.323 72.9145 13.1506 72.7421C12.9783 72.5698 12.7444 72.4729 12.5004 72.4729ZM11.1113 71.3132C11.5225 71.0386 12.0059 70.8919 12.5004 70.8919C13.1635 70.8919 13.7995 71.1552 14.2684 71.624C14.7374 72.0929 15.0009 72.7288 15.0009 73.3919C15.0009 73.8864 14.8542 74.3698 14.5794 74.7809C14.3047 75.1919 13.9142 75.5125 13.4572 75.7017C13.0002 75.891 12.4975 75.9403 12.0127 75.8438C11.5278 75.7474 11.0822 75.5095 10.7324 75.1598C10.3827 74.8102 10.1446 74.3647 10.0481 73.8797C9.95156 73.3947 10.0011 72.8919 10.1904 72.4351C10.3797 71.9782 10.7002 71.5878 11.1113 71.3132Z%22 fill=%22%23919EAB%22/%3E%0A%3Cpath opacity=%220.8%22 fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M54.5424 18.4018C54.3606 18.4018 54.1828 18.4557 54.0316 18.5567C53.8803 18.6578 53.7625 18.8013 53.693 18.9691C53.6234 19.137 53.6052 19.3218 53.6407 19.5C53.6761 19.6783 53.7637 19.842 53.8922 19.9705C54.0207 20.099 54.1845 20.1865 54.363 20.222C54.5416 20.2575 54.7265 20.2393 54.8943 20.1698C55.0623 20.1003 55.2059 19.9824 55.307 19.8312C55.408 19.6801 55.4619 19.5025 55.4619 19.3207C55.4619 19.0771 55.365 18.8433 55.1926 18.671C55.0203 18.4986 54.7864 18.4018 54.5424 18.4018ZM53.1533 17.2421C53.5645 16.9674 54.0479 16.8207 54.5424 16.8207C55.2055 16.8207 55.8415 17.084 56.3104 17.5529C56.7794 18.0217 57.0429 18.6577 57.0429 19.3207C57.0429 19.8152 56.8962 20.2986 56.6214 20.7097C56.3467 21.1208 55.9562 21.4413 55.4992 21.6306C55.0422 21.8198 54.5395 21.8691 54.0547 21.7727C53.5698 21.6763 53.1242 21.4383 52.7744 21.0886C52.4247 20.739 52.1865 20.2935 52.09 19.8086C51.9936 19.3236 52.0431 18.8208 52.2324 18.3639C52.4217 17.907 52.7422 17.5167 53.1533 17.2421Z%22 fill=%22%23919EAB%22/%3E%0A%3C/g%3E%0A%3Cg opacity=%220.48%22%3E%0A%3Cg filter=%22url%28%23filter0_di_2575_2852044%29%22%3E%0A%3Cpath d=%22M28 49.2381H91.9998V79.3214C91.9998 83.6937 88.5887 87.2381 84.3808 87.2381H35.619C31.4112 87.2381 28 83.6937 28 79.3214V49.2381Z%22 fill=%22%23DFE3E8%22/%3E%0A%3C/g%3E%0A%3Cpath fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M37.9048 39.3333C36.6247 39.3333 35.6191 40.3389 35.6191 41.6191C35.6191 42.8989 36.6247 43.9048 37.9048 43.9048C39.185 43.9048 40.1906 42.8989 40.1906 41.6191C40.1906 40.3389 39.185 39.3333 37.9048 39.3333Z%22 fill=%22%23DFE3E8%22/%3E%0A%3Cpath fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M45.1429 39.3333C43.8628 39.3333 42.8572 40.3389 42.8572 41.6191C42.8572 42.8989 43.8628 43.9048 45.1429 43.9048C46.4231 43.9048 47.4286 42.8989 47.4286 41.6191C47.4286 40.3389 46.4231 39.3333 45.1429 39.3333Z%22 fill=%22%23DFE3E8%22/%3E%0A%3Cpath fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M52.381 39.3333C51.1009 39.3333 50.0953 40.3389 50.0953 41.6191C50.0953 42.8989 51.1009 43.9048 52.381 43.9048C53.6612 43.9048 54.6667 42.8989 54.6667 41.6191C54.6667 40.3389 53.6612 39.3333 52.381 39.3333Z%22 fill=%22%23DFE3E8%22/%3E%0A%3Cg filter=%22url%28%23filter1_di_2575_2852044%29%22%3E%0A%3Cpath fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M91.9998 40.0954V49.2381H28L28 40.0959C28 36.7294 30.7292 34 34.0957 34H85.9046C89.2709 34 91.9998 36.7291 91.9998 40.0954ZM37.9047 39.3333C36.6246 39.3333 35.619 40.3389 35.619 41.619C35.619 42.8989 36.6246 43.9047 37.9047 43.9047C39.1849 43.9047 40.1904 42.8989 40.1904 41.619C40.1904 40.3389 39.1849 39.3333 37.9047 39.3333ZM45.1428 39.3333C43.8627 39.3333 42.8571 40.3389 42.8571 41.619C42.8571 42.8989 43.8627 43.9047 45.1428 43.9047C46.423 43.9047 47.4285 42.8989 47.4285 41.619C47.4285 40.3389 46.423 39.3333 45.1428 39.3333ZM50.0952 41.619C50.0952 40.3389 51.1007 39.3333 52.3809 39.3333C53.661 39.3333 54.6666 40.3389 54.6666 41.619C54.6666 42.8989 53.661 43.9047 52.3809 43.9047C51.1007 43.9047 50.0952 42.8989 50.0952 41.619Z%22 fill=%22%23919EAB%22/%3E%0A%3C/g%3E%0A%3Cpath opacity=%220.4%22 fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M82.3328 54.2363H65.6662C64.745 54.2363 63.9995 55.067 63.9995 56.0937V78.3825C63.9995 79.4091 64.745 80.2399 65.6662 80.2399H82.3328C83.2541 80.2399 83.9995 79.4091 83.9995 78.3825V56.0937C83.9995 55.067 83.2541 54.2363 82.3328 54.2363Z%22 fill=%22%23919EAB%22/%3E%0A%3Cpath opacity=%220.48%22 fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M37.6667 61.6659H44.3333C45.2546 61.6659 46 60.8351 46 59.8085C46 58.7818 45.2546 57.9511 44.3333 57.9511H37.6667C36.7454 57.9511 36 58.7818 36 59.8085C36 60.8351 36.7454 61.6659 37.6667 61.6659ZM36 67.2381C36 66.2114 36.7454 65.3807 37.6667 65.3807H54.3333C55.2546 65.3807 56 66.2114 56 67.2381C56 68.2647 55.2546 69.0955 54.3333 69.0955H37.6667C36.7454 69.0955 36 68.2647 36 67.2381ZM37.6667 72.8103C36.7454 72.8103 36 73.641 36 74.6677C36 75.6943 36.7454 76.5251 37.6667 76.5251H54.3333C55.2546 76.5251 56 75.6943 56 74.6677C56 73.641 55.2546 72.8103 54.3333 72.8103H37.6667Z%22 fill=%22%23919EAB%22/%3E%0A%3C/g%3E%0A%3Cdefs%3E%0A%3Cfilter id=%22filter0_di_2575_2852044%22 x=%2220%22 y=%2241.2381%22 width=%2296%22 height=%2270%22 filterUnits=%22userSpaceOnUse%22 color-interpolation-filters=%22sRGB%22%3E%0A%3CfeFlood flood-opacity=%220%22 result=%22BackgroundImageFix%22/%3E%0A%3CfeColorMatrix in=%22SourceAlpha%22 type=%22matrix%22 values=%220 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0%22 result=%22hardAlpha%22/%3E%0A%3CfeOffset dx=%228%22 dy=%228%22/%3E%0A%3CfeGaussianBlur stdDeviation=%228%22/%3E%0A%3CfeColorMatrix type=%22matrix%22 values=%220 0 0 0 0.388235 0 0 0 0 0.45098 0 0 0 0 0.505882 0 0 0 0.16 0%22/%3E%0A%3CfeBlend mode=%22normal%22 in2=%22BackgroundImageFix%22 result=%22effect1_dropShadow_2575_2852044%22/%3E%0A%3CfeBlend mode=%22normal%22 in=%22SourceGraphic%22 in2=%22effect1_dropShadow_2575_2852044%22 result=%22shape%22/%3E%0A%3CfeColorMatrix in=%22SourceAlpha%22 type=%22matrix%22 values=%220 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0%22 result=%22hardAlpha%22/%3E%0A%3CfeOffset dx=%22-2%22 dy=%22-2%22/%3E%0A%3CfeGaussianBlur stdDeviation=%222%22/%3E%0A%3CfeComposite in2=%22hardAlpha%22 operator=%22arithmetic%22 k2=%22-1%22 k3=%221%22/%3E%0A%3CfeColorMatrix type=%22matrix%22 values=%220 0 0 0 0.388235 0 0 0 0 0.45098 0 0 0 0 0.505882 0 0 0 0.48 0%22/%3E%0A%3CfeBlend mode=%22normal%22 in2=%22shape%22 result=%22effect2_innerShadow_2575_2852044%22/%3E%0A%3C/filter%3E%0A%3Cfilter id=%22filter1_di_2575_2852044%22 x=%2220%22 y=%2226%22 width=%2296%22 height=%2247.2381%22 filterUnits=%22userSpaceOnUse%22 color-interpolation-filters=%22sRGB%22%3E%0A%3CfeFlood flood-opacity=%220%22 result=%22BackgroundImageFix%22/%3E%0A%3CfeColorMatrix in=%22SourceAlpha%22 type=%22matrix%22 values=%220 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0%22 result=%22hardAlpha%22/%3E%0A%3CfeOffset dx=%228%22 dy=%228%22/%3E%0A%3CfeGaussianBlur stdDeviation=%228%22/%3E%0A%3CfeColorMatrix type=%22matrix%22 values=%220 0 0 0 0.388235 0 0 0 0 0.45098 0 0 0 0 0.505882 0 0 0 0.16 0%22/%3E%0A%3CfeBlend mode=%22normal%22 in2=%22BackgroundImageFix%22 result=%22effect1_dropShadow_2575_2852044%22/%3E%0A%3CfeBlend mode=%22normal%22 in=%22SourceGraphic%22 in2=%22effect1_dropShadow_2575_2852044%22 result=%22shape%22/%3E%0A%3CfeColorMatrix in=%22SourceAlpha%22 type=%22matrix%22 values=%220 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0%22 result=%22hardAlpha%22/%3E%0A%3CfeOffset dx=%22-2%22 dy=%22-2%22/%3E%0A%3CfeGaussianBlur stdDeviation=%222%22/%3E%0A%3CfeComposite in2=%22hardAlpha%22 operator=%22arithmetic%22 k2=%22-1%22 k3=%221%22/%3E%0A%3CfeColorMatrix type=%22matrix%22 values=%220 0 0 0 0.388235 0 0 0 0 0.45098 0 0 0 0 0.505882 0 0 0 0.48 0%22/%3E%0A%3CfeBlend mode=%22normal%22 in2=%22shape%22 result=%22effect2_innerShadow_2575_2852044%22/%3E%0A%3C/filter%3E%0A%3C/defs%3E%0A%3C/svg%3E";
|