@caspeco/casper-ui-library 9.12.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/compiler-runtime.js +5 -0
- package/dist/_virtual/compiler-runtime2.js +4 -0
- package/dist/_virtual/react-compiler-runtime.development.js +4 -0
- package/dist/_virtual/react-compiler-runtime.production.js +4 -0
- package/dist/components/accordion/accordion-item.d.ts +3 -2
- package/dist/components/accordion/accordion-item.d.ts.map +1 -1
- package/dist/components/accordion/accordion-item.js +36 -19
- package/dist/components/accordion/accordion-panel.d.ts +1 -1
- package/dist/components/accordion/accordion-panel.d.ts.map +1 -1
- package/dist/components/accordion/accordion-panel.js +13 -5
- package/dist/components/accordion/accordion.composition.d.ts +3 -3
- package/dist/components/accordion/accordion.composition.d.ts.map +1 -1
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/accordion/accordion.js +18 -6
- package/dist/components/alert/alert.composition.d.ts +5 -5
- package/dist/components/alert/alert.composition.d.ts.map +1 -1
- package/dist/components/alert/alert.d.ts +1 -1
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/alert.js +58 -74
- package/dist/components/alert/helper.d.ts +1 -1
- package/dist/components/alert/helper.d.ts.map +1 -1
- package/dist/components/alert/helper.js +10 -15
- package/dist/components/badge/badge-recipe.js +13 -19
- package/dist/components/badge/badge.composition.d.ts +3 -3
- package/dist/components/badge/badge.composition.d.ts.map +1 -1
- package/dist/components/badge/badge.js +70 -31
- package/dist/components/box/box.composition.d.ts +6 -6
- package/dist/components/box/box.composition.d.ts.map +1 -1
- package/dist/components/box/box.js +10 -5
- package/dist/components/breadcrumbs/breadcrumb-item.d.ts +1 -1
- package/dist/components/breadcrumbs/breadcrumb-item.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumb-item.js +16 -5
- package/dist/components/breadcrumbs/breadcrumb-link.js +19 -17
- package/dist/components/breadcrumbs/breadcrumbs.composition.d.ts +2 -2
- package/dist/components/breadcrumbs/breadcrumbs.composition.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.js +82 -80
- package/dist/components/button/button-recipe.js +6 -2
- package/dist/components/button/button.composition.d.ts +5 -5
- package/dist/components/button/button.composition.d.ts.map +1 -1
- package/dist/components/button/button.js +38 -42
- package/dist/components/checkbox/checkbox-icon.d.ts +2 -1
- package/dist/components/checkbox/checkbox-icon.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.composition.d.ts +3 -3
- package/dist/components/checkbox/checkbox.composition.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.js +34 -53
- package/dist/components/checkbox/icons/check.js +1 -6
- package/dist/components/checkbox/icons/minus.js +1 -6
- package/dist/components/checkbox/icons/plus.js +1 -6
- package/dist/components/checkbox-group/checkbox-group.composition.d.ts +2 -2
- package/dist/components/checkbox-group/checkbox-group.composition.d.ts.map +1 -1
- package/dist/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox-group/checkbox-group.d.ts.map +1 -1
- package/dist/components/checkbox-group/checkbox-group.js +13 -4
- package/dist/components/collapsible/collapsible.composition.d.ts +3 -3
- package/dist/components/collapsible/collapsible.composition.d.ts.map +1 -1
- package/dist/components/collapsible/collapsible.d.ts +1 -1
- package/dist/components/collapsible/collapsible.d.ts.map +1 -1
- package/dist/components/collapsible/collapsible.js +93 -108
- package/dist/components/combobox/combobox-button.d.ts +1 -1
- package/dist/components/combobox/combobox-button.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.js +131 -174
- package/dist/components/combobox/combobox-item.d.ts +1 -1
- package/dist/components/combobox/combobox-item.d.ts.map +1 -1
- package/dist/components/combobox/combobox-item.js +18 -11
- package/dist/components/combobox/combobox-menu.d.ts +2 -2
- package/dist/components/combobox/combobox-menu.d.ts.map +1 -1
- package/dist/components/combobox/combobox-menu.js +171 -270
- package/dist/components/combobox/combobox.composition.d.ts +9 -9
- package/dist/components/combobox/combobox.composition.d.ts.map +1 -1
- package/dist/components/combobox/combobox.d.ts +1 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/combobox.js +286 -209
- package/dist/components/combobox/types.d.ts +7 -7
- package/dist/components/combobox/types.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.d.ts +2 -1
- package/dist/components/date-picker/base-date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.js +242 -240
- package/dist/components/date-picker/date-multi-picker.d.ts +8 -0
- package/dist/components/date-picker/date-multi-picker.d.ts.map +1 -0
- package/dist/components/date-picker/date-multi-picker.js +30 -0
- package/dist/components/date-picker/date-picker-date-cell.d.ts +1 -1
- package/dist/components/date-picker/date-picker-date-cell.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker-date-cell.js +111 -117
- package/dist/components/date-picker/date-picker-header.d.ts +1 -1
- package/dist/components/date-picker/date-picker-header.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker-header.js +153 -120
- package/dist/components/date-picker/date-picker-week-cell.d.ts +1 -1
- package/dist/components/date-picker/date-picker-week-cell.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker-week-cell.js +41 -36
- package/dist/components/date-picker/date-picker.composition.d.ts +7 -4
- package/dist/components/date-picker/date-picker.composition.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.js +24 -45
- package/dist/components/date-picker/date-range-picker.d.ts +1 -1
- package/dist/components/date-picker/date-range-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-range-picker.js +23 -41
- package/dist/components/date-picker/date-week-picker.d.ts +1 -1
- package/dist/components/date-picker/date-week-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-week-picker.js +18 -36
- package/dist/components/date-picker/helper.js +1 -1
- package/dist/components/date-picker/index.d.ts +2 -1
- package/dist/components/date-picker/index.d.ts.map +1 -1
- package/dist/components/date-picker/types.d.ts +16 -0
- package/dist/components/date-picker/types.d.ts.map +1 -1
- package/dist/components/divider/divider.composition.d.ts +2 -2
- package/dist/components/divider/divider.composition.d.ts.map +1 -1
- package/dist/components/divider/divider.d.ts +1 -1
- package/dist/components/divider/divider.d.ts.map +1 -1
- package/dist/components/divider/divider.js +16 -19
- package/dist/components/drawer/drawer-recipe.js +25 -5
- package/dist/components/drawer/drawer.composition.d.ts +5 -5
- package/dist/components/drawer/drawer.composition.d.ts.map +1 -1
- package/dist/components/drawer/drawer.d.ts +1 -1
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/components/drawer/drawer.js +38 -36
- package/dist/components/drawer/inline-drawer.d.ts +1 -1
- package/dist/components/drawer/inline-drawer.d.ts.map +1 -1
- package/dist/components/drawer/inline-drawer.js +62 -57
- package/dist/components/drawer/use-drawer-key-down.js +15 -8
- package/dist/components/fieldset/fieldset-error-text.d.ts +1 -1
- package/dist/components/fieldset/fieldset-error-text.d.ts.map +1 -1
- package/dist/components/fieldset/fieldset-error-text.js +13 -5
- package/dist/components/fieldset/fieldset-helper-text.d.ts +1 -1
- package/dist/components/fieldset/fieldset-helper-text.d.ts.map +1 -1
- package/dist/components/fieldset/fieldset-helper-text.js +13 -5
- package/dist/components/fieldset/fieldset-legend.d.ts +1 -1
- package/dist/components/fieldset/fieldset-legend.d.ts.map +1 -1
- package/dist/components/fieldset/fieldset-legend.js +13 -5
- package/dist/components/fieldset/fieldset.d.ts +1 -1
- package/dist/components/fieldset/fieldset.d.ts.map +1 -1
- package/dist/components/fieldset/fieldset.js +15 -5
- package/dist/components/flex/flex.composition.d.ts +2 -2
- package/dist/components/flex/flex.composition.d.ts.map +1 -1
- package/dist/components/flex/flex.d.ts +1 -1
- package/dist/components/flex/flex.d.ts.map +1 -1
- package/dist/components/flex/flex.js +13 -5
- package/dist/components/form-control/form-control.composition.d.ts +6 -6
- package/dist/components/form-control/form-control.composition.d.ts.map +1 -1
- package/dist/components/form-control/form-control.d.ts +1 -1
- package/dist/components/form-control/form-control.d.ts.map +1 -1
- package/dist/components/form-control/form-control.js +17 -22
- package/dist/components/form-control/form-error-message.d.ts +1 -1
- package/dist/components/form-control/form-error-message.d.ts.map +1 -1
- package/dist/components/form-control/form-error-message.js +13 -5
- package/dist/components/form-control/form-helper-text.d.ts +1 -1
- package/dist/components/form-control/form-helper-text.d.ts.map +1 -1
- package/dist/components/form-control/form-helper-text.js +13 -5
- package/dist/components/form-control/form-label.d.ts +1 -1
- package/dist/components/form-control/form-label.d.ts.map +1 -1
- package/dist/components/form-control/form-label.js +24 -11
- package/dist/components/grid/grid-item.d.ts +1 -1
- package/dist/components/grid/grid-item.d.ts.map +1 -1
- package/dist/components/grid/grid-item.js +12 -4
- package/dist/components/grid/grid.composition.d.ts +2 -2
- package/dist/components/grid/grid.composition.d.ts.map +1 -1
- package/dist/components/grid/grid.d.ts +1 -1
- package/dist/components/grid/grid.d.ts.map +1 -1
- package/dist/components/grid/grid.js +13 -5
- package/dist/components/heading/heading.composition.d.ts +3 -3
- package/dist/components/heading/heading.composition.d.ts.map +1 -1
- package/dist/components/heading/heading.d.ts +1 -1
- package/dist/components/heading/heading.d.ts.map +1 -1
- package/dist/components/heading/heading.js +21 -29
- package/dist/components/highlight/highlight.composition.d.ts +2 -2
- package/dist/components/highlight/highlight.composition.d.ts.map +1 -1
- package/dist/components/highlight/highlight.d.ts +1 -1
- package/dist/components/highlight/highlight.d.ts.map +1 -1
- package/dist/components/highlight/highlight.js +19 -15
- package/dist/components/icon/create-icon.js +24 -15
- package/dist/components/icon/icon.composition.d.ts +1 -1
- package/dist/components/icon/icon.composition.d.ts.map +1 -1
- package/dist/components/icon/icons/absence-icon.js +1 -4
- package/dist/components/icon/icons/accessibility-icon.js +1 -4
- package/dist/components/icon/icons/add-absence-icon.js +1 -4
- package/dist/components/icon/icons/add-emoji-icon.js +1 -4
- package/dist/components/icon/icons/add-icon.js +1 -4
- package/dist/components/icon/icons/apple-icon.js +1 -4
- package/dist/components/icon/icons/apps-icon.js +1 -4
- package/dist/components/icon/icons/archive-icon.js +4 -5
- package/dist/components/icon/icons/area-icon.js +1 -4
- package/dist/components/icon/icons/at-icon.js +1 -4
- package/dist/components/icon/icons/attachment-icon.js +1 -4
- package/dist/components/icon/icons/baby-icon.js +1 -4
- package/dist/components/icon/icons/back-icon.js +1 -4
- package/dist/components/icon/icons/backspace-icon.js +1 -4
- package/dist/components/icon/icons/bank-icon.js +1 -4
- package/dist/components/icon/icons/bank-id-icon.js +1 -4
- package/dist/components/icon/icons/barcode-icon.js +1 -4
- package/dist/components/icon/icons/bell-icon.js +1 -4
- package/dist/components/icon/icons/bolt-icon.js +4 -5
- package/dist/components/icon/icons/calendar-icon.js +1 -4
- package/dist/components/icon/icons/camera-icon.js +1 -4
- package/dist/components/icon/icons/cancel-icon.js +1 -4
- package/dist/components/icon/icons/card-icon.js +1 -4
- package/dist/components/icon/icons/cart-icon.js +1 -4
- package/dist/components/icon/icons/caspeco-icon.js +4 -5
- package/dist/components/icon/icons/channels-icon.js +1 -4
- package/dist/components/icon/icons/chart-icon.js +1 -4
- package/dist/components/icon/icons/chart-line-icon.js +1 -4
- package/dist/components/icon/icons/chart-mixed-icon.js +1 -4
- package/dist/components/icon/icons/chart-pie-icon.js +1 -4
- package/dist/components/icon/icons/chart-scatter-icon.js +1 -4
- package/dist/components/icon/icons/check-icon.js +1 -4
- package/dist/components/icon/icons/checkbox-icon.js +1 -4
- package/dist/components/icon/icons/chevron-left-icon.js +1 -4
- package/dist/components/icon/icons/chevron-right-icon.js +1 -4
- package/dist/components/icon/icons/child-icon.js +1 -4
- package/dist/components/icon/icons/circle-info-icon.js +1 -4
- package/dist/components/icon/icons/circle-parking-icon.js +1 -4
- package/dist/components/icon/icons/circle-question-icon.js +1 -4
- package/dist/components/icon/icons/circle-select-icon.js +1 -4
- package/dist/components/icon/icons/circle-success-icon.js +1 -4
- package/dist/components/icon/icons/circle-user-icon.js +1 -4
- package/dist/components/icon/icons/clear-icon.js +1 -4
- package/dist/components/icon/icons/close-icon.js +1 -4
- package/dist/components/icon/icons/closed-icon.js +1 -4
- package/dist/components/icon/icons/collapse-icon.js +1 -4
- package/dist/components/icon/icons/color-icon.js +1 -4
- package/dist/components/icon/icons/columns-icon.js +1 -4
- package/dist/components/icon/icons/comment-add-icon.js +1 -4
- package/dist/components/icon/icons/comment-icon.js +1 -4
- package/dist/components/icon/icons/cookies-icon.js +1 -4
- package/dist/components/icon/icons/copy-icon.js +1 -4
- package/dist/components/icon/icons/date-icon.js +1 -4
- package/dist/components/icon/icons/decrease-icon.js +1 -4
- package/dist/components/icon/icons/delete-icon.js +1 -4
- package/dist/components/icon/icons/deliverect-icon.js +1 -4
- package/dist/components/icon/icons/delivery-icon.js +1 -4
- package/dist/components/icon/icons/description-icon.js +1 -4
- package/dist/components/icon/icons/discount-icon.js +1 -4
- package/dist/components/icon/icons/distribute-evenly-icon.js +1 -4
- package/dist/components/icon/icons/door-closed-icon.js +1 -4
- package/dist/components/icon/icons/door-open-icon.js +1 -4
- package/dist/components/icon/icons/down-icon.js +1 -4
- package/dist/components/icon/icons/eat-in-icon.js +1 -4
- package/dist/components/icon/icons/edit-icon.js +1 -4
- package/dist/components/icon/icons/email-icon.js +1 -4
- package/dist/components/icon/icons/error-icon.js +1 -4
- package/dist/components/icon/icons/expand-icon.js +1 -4
- package/dist/components/icon/icons/export-icon.js +1 -4
- package/dist/components/icon/icons/extract-icon.js +1 -4
- package/dist/components/icon/icons/facebook-icon.js +1 -4
- package/dist/components/icon/icons/failed-print-icon.js +1 -4
- package/dist/components/icon/icons/file-icon.js +1 -4
- package/dist/components/icon/icons/filter-icon.js +1 -4
- package/dist/components/icon/icons/folder-icon.js +1 -4
- package/dist/components/icon/icons/foodora-icon.js +1 -4
- package/dist/components/icon/icons/forward-icon.js +1 -4
- package/dist/components/icon/icons/glovo-icon.js +4 -5
- package/dist/components/icon/icons/goal-icon.js +1 -4
- package/dist/components/icon/icons/google-icon.js +1 -4
- package/dist/components/icon/icons/grip-more-icon.js +1 -4
- package/dist/components/icon/icons/hash-icon.js +1 -4
- package/dist/components/icon/icons/hexagon-error-icon.js +1 -4
- package/dist/components/icon/icons/hide-icon.js +1 -4
- package/dist/components/icon/icons/history-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-anchor-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-asterisk-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-beer-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-bicycle-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-binoculars-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-bomb-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-car-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-cocktail-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-gem-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-heart-full-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-heart-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-magnet-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-money-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-moon-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-music-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-star-full-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-star-half-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-star-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-tint-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-tree-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-utensils-icon.js +1 -4
- package/dist/components/icon/icons/icon-picker-wheelchair-icon.js +1 -4
- package/dist/components/icon/icons/image-icon.js +1 -4
- package/dist/components/icon/icons/import-icon.js +1 -4
- package/dist/components/icon/icons/inbox-icon.js +1 -4
- package/dist/components/icon/icons/increase-icon.js +1 -4
- package/dist/components/icon/icons/indeterminate-icon.js +1 -4
- package/dist/components/icon/icons/info-icon.js +1 -4
- package/dist/components/icon/icons/inheritance-icon.js +1 -4
- package/dist/components/icon/icons/just-eat-icon.js +1 -4
- package/dist/components/icon/icons/karma-icon.js +1 -4
- package/dist/components/icon/icons/key-command-icon.js +1 -4
- package/dist/components/icon/icons/key-enter-icon.js +1 -4
- package/dist/components/icon/icons/key-icon.js +1 -4
- package/dist/components/icon/icons/key-option-icon.js +1 -4
- package/dist/components/icon/icons/language-icon.js +1 -4
- package/dist/components/icon/icons/link-broken-icon.js +1 -4
- package/dist/components/icon/icons/link-external-icon.js +1 -4
- package/dist/components/icon/icons/link-icon.js +1 -4
- package/dist/components/icon/icons/list-ol-icon.js +1 -4
- package/dist/components/icon/icons/list-ul-icon.js +1 -4
- package/dist/components/icon/icons/loading-icon.js +1 -4
- package/dist/components/icon/icons/location-icon.js +1 -4
- package/dist/components/icon/icons/lock-icon.js +1 -4
- package/dist/components/icon/icons/log-in-icon.js +1 -4
- package/dist/components/icon/icons/log-out-icon.js +1 -4
- package/dist/components/icon/icons/map-icon.js +1 -4
- package/dist/components/icon/icons/maximize-icon.js +1 -4
- package/dist/components/icon/icons/members-icon.js +1 -4
- package/dist/components/icon/icons/menu-hide-icon.js +1 -4
- package/dist/components/icon/icons/menu-icon.js +1 -4
- package/dist/components/icon/icons/menu-show-icon.js +1 -4
- package/dist/components/icon/icons/message-add-icon.js +1 -4
- package/dist/components/icon/icons/message-icon.js +1 -4
- package/dist/components/icon/icons/message-lines-icon.js +1 -4
- package/dist/components/icon/icons/minimize-icon.js +1 -4
- package/dist/components/icon/icons/minimize-window-icon.js +1 -4
- package/dist/components/icon/icons/mobile-rotate-icon.js +1 -4
- package/dist/components/icon/icons/module-accounting-icon.js +1 -4
- package/dist/components/icon/icons/module-ai-forecast-icon.js +1 -4
- package/dist/components/icon/icons/module-app-icon.js +1 -4
- package/dist/components/icon/icons/module-articles-icon.js +1 -4
- package/dist/components/icon/icons/module-benchmark-icon.js +1 -4
- package/dist/components/icon/icons/module-booking-icon.js +1 -4
- package/dist/components/icon/icons/module-cai-icon.js +1 -4
- package/dist/components/icon/icons/module-campaigns-icon.js +1 -4
- package/dist/components/icon/icons/module-cashier-icon.js +1 -4
- package/dist/components/icon/icons/module-communication-icon.js +1 -4
- package/dist/components/icon/icons/module-copilot-icon.js +1 -4
- package/dist/components/icon/icons/module-dashboard-icon.js +1 -4
- package/dist/components/icon/icons/module-document-icon.js +1 -4
- package/dist/components/icon/icons/module-employees-icon.js +1 -4
- package/dist/components/icon/icons/module-feed-icon.js +1 -4
- package/dist/components/icon/icons/module-history-icon.js +1 -4
- package/dist/components/icon/icons/module-home-icon.js +1 -4
- package/dist/components/icon/icons/module-insights-icon.js +1 -4
- package/dist/components/icon/icons/module-kds-icon.js +1 -4
- package/dist/components/icon/icons/module-members-icon.js +1 -4
- package/dist/components/icon/icons/module-menus-icon.js +1 -4
- package/dist/components/icon/icons/module-my-city-icon.js +1 -4
- package/dist/components/icon/icons/module-notification-center-icon.js +1 -4
- package/dist/components/icon/icons/module-online-order-icon.js +1 -4
- package/dist/components/icon/icons/module-organisation-icon.js +1 -4
- package/dist/components/icon/icons/module-pos-icon.js +1 -4
- package/dist/components/icon/icons/module-pulse-icon.js +1 -4
- package/dist/components/icon/icons/module-result-icon.js +1 -4
- package/dist/components/icon/icons/module-salary-icon.js +1 -4
- package/dist/components/icon/icons/module-schedule-icon.js +1 -4
- package/dist/components/icon/icons/module-settings-alt-icon.js +1 -4
- package/dist/components/icon/icons/module-settings-icon.js +1 -4
- package/dist/components/icon/icons/module-support-icon.js +1 -4
- package/dist/components/icon/icons/module-survey-icon.js +1 -4
- package/dist/components/icon/icons/module-table-map-icon.js +4 -5
- package/dist/components/icon/icons/module-tablet-icon.js +1 -4
- package/dist/components/icon/icons/module-time-icon.js +1 -4
- package/dist/components/icon/icons/module-timeline-icon.js +1 -4
- package/dist/components/icon/icons/module-tip-icon.js +1 -4
- package/dist/components/icon/icons/module-to-do-icon.js +1 -4
- package/dist/components/icon/icons/module-tools-icon.js +1 -4
- package/dist/components/icon/icons/module-top-list-icon.js +1 -4
- package/dist/components/icon/icons/module-web-charts-icon.js +1 -4
- package/dist/components/icon/icons/module-web-icon.js +1 -4
- package/dist/components/icon/icons/more-horizontal-icon.js +1 -4
- package/dist/components/icon/icons/more-vertical-icon.js +1 -4
- package/dist/components/icon/icons/nfc-icon.js +1 -4
- package/dist/components/icon/icons/no-cart-icon.js +1 -4
- package/dist/components/icon/icons/note-icon.js +1 -4
- package/dist/components/icon/icons/number-icon.js +4 -5
- package/dist/components/icon/icons/open-modal-icon.js +1 -4
- package/dist/components/icon/icons/parking-icon.js +1 -4
- package/dist/components/icon/icons/party-horn-icon.js +1 -4
- package/dist/components/icon/icons/pause-icon.js +1 -4
- package/dist/components/icon/icons/payment-card-icon.js +1 -4
- package/dist/components/icon/icons/payment-cash-icon.js +1 -4
- package/dist/components/icon/icons/payment-generic-icon.js +1 -4
- package/dist/components/icon/icons/payment-giftcard-icon.js +1 -4
- package/dist/components/icon/icons/payment-hotel-icon.js +1 -4
- package/dist/components/icon/icons/payment-invoice-icon.js +1 -4
- package/dist/components/icon/icons/percentage-icon.js +1 -4
- package/dist/components/icon/icons/phone-icon.js +1 -4
- package/dist/components/icon/icons/pin-icon.js +1 -4
- package/dist/components/icon/icons/pin-map-icon.js +1 -4
- package/dist/components/icon/icons/play-icon.js +1 -4
- package/dist/components/icon/icons/preview-icon.js +1 -4
- package/dist/components/icon/icons/print-icon.js +1 -4
- package/dist/components/icon/icons/privacy-icon.js +1 -4
- package/dist/components/icon/icons/product-admin-icon.js +1 -4
- package/dist/components/icon/icons/product-analytics-icon.js +1 -4
- package/dist/components/icon/icons/product-booking-icon.js +1 -4
- package/dist/components/icon/icons/product-checkout-icon.js +1 -4
- package/dist/components/icon/icons/product-my-pages-icon.js +1 -4
- package/dist/components/icon/icons/product-staff-icon.js +1 -4
- package/dist/components/icon/icons/puck-icon.js +1 -4
- package/dist/components/icon/icons/qr-code-icon.js +1 -4
- package/dist/components/icon/icons/question-icon.js +1 -4
- package/dist/components/icon/icons/radio-icon.js +1 -4
- package/dist/components/icon/icons/receipt-icon.js +1 -4
- package/dist/components/icon/icons/redo-icon.js +1 -4
- package/dist/components/icon/icons/refund-icon.js +1 -4
- package/dist/components/icon/icons/remove-icon.js +1 -4
- package/dist/components/icon/icons/replace-icon.js +1 -4
- package/dist/components/icon/icons/schedule-icon.js +1 -4
- package/dist/components/icon/icons/search-icon.js +1 -4
- package/dist/components/icon/icons/select-icon.js +1 -4
- package/dist/components/icon/icons/send-icon.js +1 -4
- package/dist/components/icon/icons/share-icon.js +1 -4
- package/dist/components/icon/icons/show-icon.js +1 -4
- package/dist/components/icon/icons/shuffle-icon.js +1 -4
- package/dist/components/icon/icons/sidebar-hide-icon.js +1 -4
- package/dist/components/icon/icons/sidebar-left-icon.js +1 -4
- package/dist/components/icon/icons/sidebar-right-icon.js +1 -4
- package/dist/components/icon/icons/sidebar-show-icon.js +1 -4
- package/dist/components/icon/icons/sliders-icon.js +1 -4
- package/dist/components/icon/icons/slightly-sad-icon.js +1 -4
- package/dist/components/icon/icons/smile-icon.js +1 -4
- package/dist/components/icon/icons/sort-asc-icon.js +1 -4
- package/dist/components/icon/icons/sort-desc-icon.js +1 -4
- package/dist/components/icon/icons/split-icon.js +1 -4
- package/dist/components/icon/icons/status-icon.js +1 -4
- package/dist/components/icon/icons/stop-icon.js +1 -4
- package/dist/components/icon/icons/submenu-icon.js +1 -4
- package/dist/components/icon/icons/success-icon.js +1 -4
- package/dist/components/icon/icons/swap-icon.js +1 -4
- package/dist/components/icon/icons/swatch-icon.js +1 -4
- package/dist/components/icon/icons/sweat-icon.js +1 -4
- package/dist/components/icon/icons/table-icon.js +1 -4
- package/dist/components/icon/icons/table-map-icon.js +1 -4
- package/dist/components/icon/icons/take-away-dot-com-icon.js +1 -4
- package/dist/components/icon/icons/take-away-icon.js +1 -4
- package/dist/components/icon/icons/talk-icon.js +1 -4
- package/dist/components/icon/icons/thumbtack-icon.js +1 -4
- package/dist/components/icon/icons/time-icon.js +1 -4
- package/dist/components/icon/icons/timeline-icon.js +1 -4
- package/dist/components/icon/icons/tip-icon.js +1 -4
- package/dist/components/icon/icons/title-icon.js +1 -4
- package/dist/components/icon/icons/translate-icon.js +1 -4
- package/dist/components/icon/icons/tree-view-collapse-icon.js +1 -4
- package/dist/components/icon/icons/tree-view-expand-icon.js +1 -4
- package/dist/components/icon/icons/tree-view-last-icon.js +1 -4
- package/dist/components/icon/icons/trend-down-icon.js +1 -4
- package/dist/components/icon/icons/trend-up-icon.js +1 -4
- package/dist/components/icon/icons/triangle-warning-icon.js +1 -4
- package/dist/components/icon/icons/trivec-icon.js +4 -5
- package/dist/components/icon/icons/uber-eats-icon.js +1 -4
- package/dist/components/icon/icons/undo-icon.js +1 -4
- package/dist/components/icon/icons/unlock-icon.js +1 -4
- package/dist/components/icon/icons/unwrap-content-icon.js +1 -4
- package/dist/components/icon/icons/up-icon.js +1 -4
- package/dist/components/icon/icons/user-group-icon.js +1 -4
- package/dist/components/icon/icons/user-icon.js +1 -4
- package/dist/components/icon/icons/user-permissions-icon.js +1 -4
- package/dist/components/icon/icons/user-wait-icon.js +1 -4
- package/dist/components/icon/icons/users-icon.js +1 -4
- package/dist/components/icon/icons/version-control-icon.js +1 -4
- package/dist/components/icon/icons/volume-high-icon.js +1 -4
- package/dist/components/icon/icons/volume-icon.js +1 -4
- package/dist/components/icon/icons/volume-low-icon.js +1 -4
- package/dist/components/icon/icons/volume-off-icon.js +1 -4
- package/dist/components/icon/icons/warning-icon.js +1 -4
- package/dist/components/icon/icons/waste-icon.js +1 -4
- package/dist/components/icon/icons/wifi-icon.js +1 -4
- package/dist/components/icon/icons/wifi-off-icon.js +1 -4
- package/dist/components/icon/icons/wolt-icon.js +1 -4
- package/dist/components/icon/icons/wrap-content-icon.js +1 -4
- package/dist/components/icon-button/icon-button.composition.d.ts +4 -4
- package/dist/components/icon-button/icon-button.composition.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.js +38 -32
- package/dist/components/image/image.composition.d.ts +1 -1
- package/dist/components/image/image.composition.d.ts.map +1 -1
- package/dist/components/image/image.d.ts +1 -1
- package/dist/components/image/image.d.ts.map +1 -1
- package/dist/components/image/image.js +12 -5
- package/dist/components/image-upload/image-cropper.d.ts +2 -1
- package/dist/components/image-upload/image-cropper.d.ts.map +1 -1
- package/dist/components/image-upload/image-cropper.helper.d.ts +1 -1
- package/dist/components/image-upload/image-cropper.helper.d.ts.map +1 -1
- package/dist/components/image-upload/image-cropper.helper.js +38 -40
- package/dist/components/image-upload/image-cropper.js +63 -73
- package/dist/components/image-upload/image-upload-dropzone.d.ts +2 -1
- package/dist/components/image-upload/image-upload-dropzone.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-dropzone.js +102 -72
- package/dist/components/image-upload/image-upload-icons.d.ts +5 -5
- package/dist/components/image-upload/image-upload-icons.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-icons.js +19 -26
- package/dist/components/image-upload/image-upload-modal.d.ts +1 -1
- package/dist/components/image-upload/image-upload-modal.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-modal.js +54 -95
- package/dist/components/image-upload/image-upload.composition.d.ts +3 -3
- package/dist/components/image-upload/image-upload.composition.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload.d.ts +1 -1
- package/dist/components/image-upload/image-upload.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload.js +69 -78
- package/dist/components/input/input.composition.d.ts +9 -9
- package/dist/components/input/input.composition.d.ts.map +1 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.js +54 -58
- package/dist/components/input/types.d.ts +5 -4
- package/dist/components/input/types.d.ts.map +1 -1
- package/dist/components/link/link.composition.d.ts +2 -2
- package/dist/components/link/link.composition.d.ts.map +1 -1
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/link/link.js +11 -3
- package/dist/components/list/list-item.d.ts +1 -1
- package/dist/components/list/list-item.d.ts.map +1 -1
- package/dist/components/list/list-item.js +13 -5
- package/dist/components/list/list.composition.d.ts +1 -1
- package/dist/components/list/list.composition.d.ts.map +1 -1
- package/dist/components/list/list.d.ts +1 -1
- package/dist/components/list/list.d.ts.map +1 -1
- package/dist/components/list/list.js +17 -11
- package/dist/components/menu/menu-box-button.js +16 -8
- package/dist/components/menu/menu-button.d.ts +1 -1
- package/dist/components/menu/menu-button.d.ts.map +1 -1
- package/dist/components/menu/menu-button.js +15 -5
- package/dist/components/menu/menu-divider.d.ts +2 -1
- package/dist/components/menu/menu-divider.d.ts.map +1 -1
- package/dist/components/menu/menu-divider.js +21 -12
- package/dist/components/menu/menu-group.d.ts +3 -2
- package/dist/components/menu/menu-group.d.ts.map +1 -1
- package/dist/components/menu/menu-group.js +131 -129
- package/dist/components/menu/menu-icon-button.d.ts +1 -1
- package/dist/components/menu/menu-icon-button.d.ts.map +1 -1
- package/dist/components/menu/menu-icon-button.js +10 -5
- package/dist/components/menu/menu-item.d.ts +1 -1
- package/dist/components/menu/menu-item.d.ts.map +1 -1
- package/dist/components/menu/menu-item.js +43 -32
- package/dist/components/menu/menu-list.d.ts +1 -1
- package/dist/components/menu/menu-list.d.ts.map +1 -1
- package/dist/components/menu/menu-list.js +14 -4
- package/dist/components/menu/menu-recipe.js +6 -2
- package/dist/components/menu/menu.composition.d.ts +10 -10
- package/dist/components/menu/menu.composition.d.ts.map +1 -1
- package/dist/components/menu/menu.js +36 -19
- package/dist/components/message/message.composition.d.ts +1 -1
- package/dist/components/message/message.composition.d.ts.map +1 -1
- package/dist/components/message/message.d.ts +1 -1
- package/dist/components/message/message.d.ts.map +1 -1
- package/dist/components/message/message.js +36 -58
- package/dist/components/modal/modal-body.d.ts +1 -1
- package/dist/components/modal/modal-body.d.ts.map +1 -1
- package/dist/components/modal/modal-body.js +15 -7
- package/dist/components/modal/modal-close-button.d.ts +1 -1
- package/dist/components/modal/modal-close-button.d.ts.map +1 -1
- package/dist/components/modal/modal-close-button.js +16 -16
- package/dist/components/modal/modal-footer.d.ts +1 -1
- package/dist/components/modal/modal-footer.d.ts.map +1 -1
- package/dist/components/modal/modal-footer.js +29 -18
- package/dist/components/modal/modal-header.d.ts +1 -1
- package/dist/components/modal/modal-header.d.ts.map +1 -1
- package/dist/components/modal/modal-header.js +15 -5
- package/dist/components/modal/modal.composition.d.ts +11 -11
- package/dist/components/modal/modal.composition.d.ts.map +1 -1
- package/dist/components/modal/modal.d.ts +1 -1
- package/dist/components/modal/modal.d.ts.map +1 -1
- package/dist/components/modal/modal.js +53 -43
- package/dist/components/navigation-list/navigation-list-item.d.ts +2 -2
- package/dist/components/navigation-list/navigation-list-item.d.ts.map +1 -1
- package/dist/components/navigation-list/navigation-list-item.js +54 -67
- package/dist/components/navigation-list/navigation-list.composition.d.ts +6 -5
- package/dist/components/navigation-list/navigation-list.composition.d.ts.map +1 -1
- package/dist/components/navigation-list/navigation-list.d.ts +1 -1
- package/dist/components/navigation-list/navigation-list.d.ts.map +1 -1
- package/dist/components/navigation-list/navigation-list.js +15 -5
- package/dist/components/paginator/paginator.composition.d.ts +2 -2
- package/dist/components/paginator/paginator.composition.d.ts.map +1 -1
- package/dist/components/paginator/paginator.d.ts +1 -1
- package/dist/components/paginator/paginator.d.ts.map +1 -1
- package/dist/components/paginator/paginator.js +67 -51
- package/dist/components/quantity-button/minus-button.d.ts +1 -1
- package/dist/components/quantity-button/minus-button.d.ts.map +1 -1
- package/dist/components/quantity-button/minus-button.js +14 -16
- package/dist/components/quantity-button/plus-button.d.ts +1 -1
- package/dist/components/quantity-button/plus-button.d.ts.map +1 -1
- package/dist/components/quantity-button/plus-button.js +14 -16
- package/dist/components/quantity-button/quantity-button.composition.d.ts +3 -3
- package/dist/components/quantity-button/quantity-button.composition.d.ts.map +1 -1
- package/dist/components/quantity-button/quantity-button.d.ts +1 -1
- package/dist/components/quantity-button/quantity-button.d.ts.map +1 -1
- package/dist/components/quantity-button/quantity-button.js +38 -74
- package/dist/components/radio/check-icon.js +1 -6
- package/dist/components/radio/radio-group-context.js +2 -2
- package/dist/components/radio/radio-group.composition.d.ts +5 -5
- package/dist/components/radio/radio-group.composition.d.ts.map +1 -1
- package/dist/components/radio/radio-group.d.ts +1 -1
- package/dist/components/radio/radio-group.d.ts.map +1 -1
- package/dist/components/radio/radio-group.js +26 -33
- package/dist/components/radio/radio.composition.d.ts +2 -2
- package/dist/components/radio/radio.composition.d.ts.map +1 -1
- package/dist/components/radio/radio.js +53 -49
- package/dist/components/radio-card/radio-card-group.d.ts +1 -1
- package/dist/components/radio-card/radio-card-group.d.ts.map +1 -1
- package/dist/components/radio-card/radio-card-group.js +23 -31
- package/dist/components/radio-card/radio-card.composition.d.ts +4 -4
- package/dist/components/radio-card/radio-card.composition.d.ts.map +1 -1
- package/dist/components/radio-card/radio-card.js +64 -81
- package/dist/components/rich-text-editor/boolean-control.d.ts +1 -1
- package/dist/components/rich-text-editor/boolean-control.d.ts.map +1 -1
- package/dist/components/rich-text-editor/boolean-control.js +50 -30
- package/dist/components/rich-text-editor/extensions.js +15 -17
- package/dist/components/rich-text-editor/rich-text-editor-control.d.ts +10 -10
- package/dist/components/rich-text-editor/rich-text-editor-control.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-control.js +273 -166
- package/dist/components/rich-text-editor/rich-text-editor-recipe.js +36 -10
- package/dist/components/rich-text-editor/rich-text-editor.composition.d.ts +4 -4
- package/dist/components/rich-text-editor/rich-text-editor.composition.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +4 -4
- package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.js +68 -54
- package/dist/components/rich-text-editor/rich-text-renderer.d.ts +1 -1
- package/dist/components/rich-text-editor/rich-text-renderer.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-renderer.js +30 -17
- package/dist/components/rich-text-editor/use-rich-text-editor.js +27 -14
- package/dist/components/segmented-control/segmented-control-item.d.ts +1 -1
- package/dist/components/segmented-control/segmented-control-item.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control-item.js +23 -25
- package/dist/components/segmented-control/segmented-control.composition.d.ts +5 -5
- package/dist/components/segmented-control/segmented-control.composition.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.d.ts +1 -1
- package/dist/components/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +38 -38
- package/dist/components/segmented-control/types.d.ts +2 -1
- package/dist/components/segmented-control/types.d.ts.map +1 -1
- package/dist/components/select/select.composition.d.ts +3 -3
- package/dist/components/select/select.composition.d.ts.map +1 -1
- package/dist/components/select/select.js +27 -12
- package/dist/components/skeleton/skeleton-text.d.ts +1 -1
- package/dist/components/skeleton/skeleton-text.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton-text.js +17 -12
- package/dist/components/skeleton/skeleton.composition.d.ts +2 -2
- package/dist/components/skeleton/skeleton.composition.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/components/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.js +18 -13
- package/dist/components/spinner/spinner.composition.d.ts +2 -2
- package/dist/components/spinner/spinner.composition.d.ts.map +1 -1
- package/dist/components/spinner/spinner.d.ts +1 -1
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/spinner/spinner.js +26 -49
- package/dist/components/stack/stack.composition.d.ts +3 -3
- package/dist/components/stack/stack.composition.d.ts.map +1 -1
- package/dist/components/stack/stack.js +17 -7
- package/dist/components/stepper/check-icon.js +1 -6
- package/dist/components/stepper/step-context.d.ts +2 -1
- package/dist/components/stepper/step-context.d.ts.map +1 -1
- package/dist/components/stepper/step.d.ts +1 -1
- package/dist/components/stepper/step.d.ts.map +1 -1
- package/dist/components/stepper/step.js +89 -69
- package/dist/components/stepper/stepper.composition.d.ts +6 -6
- package/dist/components/stepper/stepper.composition.d.ts.map +1 -1
- package/dist/components/stepper/stepper.d.ts +1 -1
- package/dist/components/stepper/stepper.d.ts.map +1 -1
- package/dist/components/stepper/stepper.js +41 -21
- package/dist/components/stepper/times-icon.js +1 -6
- package/dist/components/stepper/types.d.ts +2 -1
- package/dist/components/stepper/types.d.ts.map +1 -1
- package/dist/components/switch/switch.composition.d.ts +2 -2
- package/dist/components/switch/switch.composition.d.ts.map +1 -1
- package/dist/components/switch/switch.js +29 -33
- package/dist/components/table/table-cell.d.ts +1 -1
- package/dist/components/table/table-cell.d.ts.map +1 -1
- package/dist/components/table/table-cell.js +67 -92
- package/dist/components/table/table-content.d.ts +1 -1
- package/dist/components/table/table-content.d.ts.map +1 -1
- package/dist/components/table/table-content.js +26 -76
- package/dist/components/table/table-context-provider.d.ts +1 -1
- package/dist/components/table/table-context-provider.d.ts.map +1 -1
- package/dist/components/table/table-context-provider.js +28 -49
- package/dist/components/table/table-context.d.ts.map +1 -1
- package/dist/components/table/table-filter.d.ts +1 -1
- package/dist/components/table/table-filter.d.ts.map +1 -1
- package/dist/components/table/table-filter.js +68 -96
- package/dist/components/table/table-header-dropdown.d.ts +1 -1
- package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
- package/dist/components/table/table-header-dropdown.js +65 -113
- package/dist/components/table/table-header-row.d.ts +1 -1
- package/dist/components/table/table-header-row.d.ts.map +1 -1
- package/dist/components/table/table-header-row.js +53 -106
- package/dist/components/table/table-recipe.js +6 -2
- package/dist/components/table/table-row-expand-toggle-button.d.ts +1 -1
- package/dist/components/table/table-row-expand-toggle-button.d.ts.map +1 -1
- package/dist/components/table/table-row-expand-toggle-button.js +26 -23
- package/dist/components/table/table-row.d.ts +1 -1
- package/dist/components/table/table-row.d.ts.map +1 -1
- package/dist/components/table/table-row.js +8 -26
- package/dist/components/table/table-toolbar-actions.d.ts +1 -1
- package/dist/components/table/table-toolbar-actions.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-actions.js +4 -10
- package/dist/components/table/table-toolbar-add-button.d.ts +1 -1
- package/dist/components/table/table-toolbar-add-button.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-search.d.ts +1 -1
- package/dist/components/table/table-toolbar-search.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-search.js +6 -11
- package/dist/components/table/table-toolbar-settings.d.ts +1 -1
- package/dist/components/table/table-toolbar-settings.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-settings.js +75 -144
- package/dist/components/table/table-toolbar.d.ts +1 -1
- package/dist/components/table/table-toolbar.d.ts.map +1 -1
- package/dist/components/table/table-toolbar.js +28 -34
- package/dist/components/table/table.composition.d.ts +5 -4
- package/dist/components/table/table.composition.d.ts.map +1 -1
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +1 -34
- package/dist/components/tabs/tab-list.d.ts +1 -1
- package/dist/components/tabs/tab-list.d.ts.map +1 -1
- package/dist/components/tabs/tab-list.js +15 -5
- package/dist/components/tabs/tab-panel.d.ts +1 -1
- package/dist/components/tabs/tab-panel.d.ts.map +1 -1
- package/dist/components/tabs/tab-panel.js +13 -5
- package/dist/components/tabs/tab-panels.d.ts +1 -1
- package/dist/components/tabs/tab-panels.d.ts.map +1 -1
- package/dist/components/tabs/tab-panels.js +12 -4
- package/dist/components/tabs/tab-with-image.d.ts +1 -1
- package/dist/components/tabs/tab-with-image.d.ts.map +1 -1
- package/dist/components/tabs/tab-with-image.js +51 -32
- package/dist/components/tabs/tab.d.ts +1 -1
- package/dist/components/tabs/tab.d.ts.map +1 -1
- package/dist/components/tabs/tab.js +21 -16
- package/dist/components/tabs/tabs-recipe.js +3 -1
- package/dist/components/tabs/tabs.composition.d.ts +6 -6
- package/dist/components/tabs/tabs.composition.d.ts.map +1 -1
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.d.ts.map +1 -1
- package/dist/components/tabs/tabs.js +22 -16
- package/dist/components/tag/tag-recipe.js +6 -1
- package/dist/components/tag/tag.composition.d.ts +4 -4
- package/dist/components/tag/tag.composition.d.ts.map +1 -1
- package/dist/components/tag/tag.d.ts +20 -20
- package/dist/components/tag/tag.d.ts.map +1 -1
- package/dist/components/tag/tag.js +41 -35
- package/dist/components/tag/types.d.ts +3 -2
- package/dist/components/tag/types.d.ts.map +1 -1
- package/dist/components/text/text.composition.d.ts +4 -4
- package/dist/components/text/text.composition.d.ts.map +1 -1
- package/dist/components/text/text.d.ts +1 -1
- package/dist/components/text/text.d.ts.map +1 -1
- package/dist/components/text/text.js +25 -35
- package/dist/components/textarea/textarea.composition.d.ts +3 -3
- package/dist/components/textarea/textarea.composition.d.ts.map +1 -1
- package/dist/components/textarea/textarea.js +16 -16
- package/dist/components/toaster/toast-store.d.ts +2 -1
- package/dist/components/toaster/toast-store.d.ts.map +1 -1
- package/dist/components/toaster/toast-store.js +19 -12
- package/dist/components/toaster/toaster.composition.d.ts +6 -6
- package/dist/components/toaster/toaster.composition.d.ts.map +1 -1
- package/dist/components/toaster/toaster.d.ts +1 -1
- package/dist/components/toaster/toaster.d.ts.map +1 -1
- package/dist/components/toaster/toaster.js +33 -18
- package/dist/components/toggle-button/toggle-button.composition.d.ts +2 -2
- package/dist/components/toggle-button/toggle-button.composition.d.ts.map +1 -1
- package/dist/components/toggle-button/toggle-button.d.ts +1 -1
- package/dist/components/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/toggle-button/toggle-button.js +23 -17
- package/dist/components/toggle-button/use-button-children.js +33 -24
- package/dist/components/tooltip/tooltip.composition.d.ts +4 -4
- package/dist/components/tooltip/tooltip.composition.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.js +44 -32
- package/dist/hooks/use-color-mode.js +20 -11
- package/dist/hooks/use-disclosure.js +8 -2
- package/dist/hooks/use-remove-attributes.js +20 -12
- package/dist/index.js +664 -662
- package/dist/node_modules/@tiptap/core/dist/index.js +541 -525
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +1464 -27
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +26 -9
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +314 -250
- package/dist/node_modules/@tiptap/extensions/dist/index.js +205 -182
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +14 -0
- package/dist/node_modules/react/compiler-runtime.js +10 -0
- package/dist/theme/theme-provider-context.composition.d.ts +9 -9
- package/dist/theme/theme-provider-context.composition.d.ts.map +1 -1
- package/dist/theme/theme-provider.d.ts +1 -1
- package/dist/theme/theme-provider.d.ts.map +1 -1
- package/dist/theme/theme-provider.js +32 -28
- package/dist/theme/theme.js +6 -2
- package/package.json +15 -14
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Extension as
|
|
2
|
-
import { PluginKey as
|
|
3
|
-
import { dropCursor as
|
|
4
|
-
import { DecorationSet as
|
|
5
|
-
import { gapCursor as
|
|
6
|
-
import { history as
|
|
7
|
-
|
|
1
|
+
import { Extension as h, callOrReturn as x, getExtensionField as O, createStyleTag as _, isNodeSelection as D, isNodeEmpty as E } from "../../core/dist/index.js";
|
|
2
|
+
import { PluginKey as y, Plugin as P } from "../../../prosemirror-state/dist/index.js";
|
|
3
|
+
import { dropCursor as L } from "../../../prosemirror-dropcursor/dist/index.js";
|
|
4
|
+
import { DecorationSet as v, Decoration as b } from "../../../prosemirror-view/dist/index.js";
|
|
5
|
+
import { gapCursor as k } from "../../../prosemirror-gapcursor/dist/index.js";
|
|
6
|
+
import { history as B, redo as F, undo as I } from "../../../prosemirror-history/dist/index.js";
|
|
7
|
+
h.create({
|
|
8
8
|
name: "characterCount",
|
|
9
9
|
addOptions() {
|
|
10
10
|
return {
|
|
11
11
|
limit: null,
|
|
12
12
|
autoTrim: !0,
|
|
13
13
|
mode: "textSize",
|
|
14
|
-
textCounter: (
|
|
15
|
-
wordCounter: (
|
|
14
|
+
textCounter: (t) => t.length,
|
|
15
|
+
wordCounter: (t) => t.split(" ").filter((e) => e !== "").length
|
|
16
16
|
};
|
|
17
17
|
},
|
|
18
18
|
addStorage() {
|
|
@@ -22,59 +22,59 @@ p.create({
|
|
|
22
22
|
};
|
|
23
23
|
},
|
|
24
24
|
onBeforeCreate() {
|
|
25
|
-
this.storage.characters = (
|
|
26
|
-
const
|
|
27
|
-
if ((
|
|
28
|
-
const o =
|
|
25
|
+
this.storage.characters = (t) => {
|
|
26
|
+
const e = t?.node || this.editor.state.doc;
|
|
27
|
+
if ((t?.mode || this.options.mode) === "textSize") {
|
|
28
|
+
const o = e.textBetween(0, e.content.size, void 0, " ");
|
|
29
29
|
return this.options.textCounter(o);
|
|
30
30
|
}
|
|
31
|
-
return
|
|
32
|
-
}, this.storage.words = (
|
|
33
|
-
const
|
|
31
|
+
return e.nodeSize;
|
|
32
|
+
}, this.storage.words = (t) => {
|
|
33
|
+
const e = t?.node || this.editor.state.doc, n = e.textBetween(0, e.content.size, " ", " ");
|
|
34
34
|
return this.options.wordCounter(n);
|
|
35
35
|
};
|
|
36
36
|
},
|
|
37
37
|
addProseMirrorPlugins() {
|
|
38
|
-
let
|
|
38
|
+
let t = !1;
|
|
39
39
|
return [
|
|
40
|
-
new
|
|
41
|
-
key: new
|
|
42
|
-
appendTransaction: (
|
|
43
|
-
if (
|
|
40
|
+
new P({
|
|
41
|
+
key: new y("characterCount"),
|
|
42
|
+
appendTransaction: (e, n, o) => {
|
|
43
|
+
if (t)
|
|
44
44
|
return;
|
|
45
45
|
const r = this.options.limit, i = this.options.autoTrim;
|
|
46
46
|
if (r == null || r === 0 || i === !1) {
|
|
47
|
-
|
|
47
|
+
t = !0;
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
50
|
const a = this.storage.characters({ node: o.doc });
|
|
51
51
|
if (a > r) {
|
|
52
|
-
const
|
|
52
|
+
const d = a - r, s = 0, c = d;
|
|
53
53
|
console.warn(
|
|
54
54
|
`[CharacterCount] Initial content exceeded limit of ${r} characters. Content was automatically trimmed.`
|
|
55
55
|
);
|
|
56
|
-
const
|
|
57
|
-
return
|
|
56
|
+
const l = o.tr.deleteRange(s, c);
|
|
57
|
+
return t = !0, l;
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
t = !0;
|
|
60
60
|
},
|
|
61
|
-
filterTransaction: (
|
|
61
|
+
filterTransaction: (e, n) => {
|
|
62
62
|
const o = this.options.limit;
|
|
63
|
-
if (!
|
|
63
|
+
if (!e.docChanged || o === 0 || o === null || o === void 0)
|
|
64
64
|
return !0;
|
|
65
|
-
const r = this.storage.characters({ node: n.doc }), i = this.storage.characters({ node:
|
|
65
|
+
const r = this.storage.characters({ node: n.doc }), i = this.storage.characters({ node: e.doc });
|
|
66
66
|
if (i <= o || r > o && i > o && i <= r)
|
|
67
67
|
return !0;
|
|
68
|
-
if (r > o && i > o && i > r || !
|
|
68
|
+
if (r > o && i > o && i > r || !e.getMeta("paste"))
|
|
69
69
|
return !1;
|
|
70
|
-
const
|
|
71
|
-
return
|
|
70
|
+
const d = e.selection.$head.pos, s = i - o, c = d - s, l = d;
|
|
71
|
+
return e.deleteRange(c, l), !(this.storage.characters({ node: e.doc }) > o);
|
|
72
72
|
}
|
|
73
73
|
})
|
|
74
74
|
];
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
-
var
|
|
77
|
+
var nt = h.create({
|
|
78
78
|
name: "dropCursor",
|
|
79
79
|
addOptions() {
|
|
80
80
|
return {
|
|
@@ -84,10 +84,10 @@ var et = p.create({
|
|
|
84
84
|
};
|
|
85
85
|
},
|
|
86
86
|
addProseMirrorPlugins() {
|
|
87
|
-
return [
|
|
87
|
+
return [L(this.options)];
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
-
|
|
90
|
+
h.create({
|
|
91
91
|
name: "focus",
|
|
92
92
|
addOptions() {
|
|
93
93
|
return {
|
|
@@ -97,168 +97,184 @@ p.create({
|
|
|
97
97
|
},
|
|
98
98
|
addProseMirrorPlugins() {
|
|
99
99
|
return [
|
|
100
|
-
new
|
|
101
|
-
key: new
|
|
100
|
+
new P({
|
|
101
|
+
key: new y("focus"),
|
|
102
102
|
props: {
|
|
103
|
-
decorations: ({ doc:
|
|
104
|
-
const { isEditable: n, isFocused: o } = this.editor, { anchor: r } =
|
|
103
|
+
decorations: ({ doc: t, selection: e }) => {
|
|
104
|
+
const { isEditable: n, isFocused: o } = this.editor, { anchor: r } = e, i = [];
|
|
105
105
|
if (!n || !o)
|
|
106
|
-
return
|
|
106
|
+
return v.create(t, []);
|
|
107
107
|
let a = 0;
|
|
108
|
-
this.options.mode === "deepest" &&
|
|
108
|
+
this.options.mode === "deepest" && t.descendants((s, c) => {
|
|
109
109
|
if (s.isText)
|
|
110
110
|
return;
|
|
111
|
-
if (!(r >=
|
|
111
|
+
if (!(r >= c && r <= c + s.nodeSize - 1))
|
|
112
112
|
return !1;
|
|
113
113
|
a += 1;
|
|
114
114
|
});
|
|
115
|
-
let
|
|
116
|
-
return
|
|
117
|
-
if (s.isText || !(r >=
|
|
115
|
+
let d = 0;
|
|
116
|
+
return t.descendants((s, c) => {
|
|
117
|
+
if (s.isText || !(r >= c && r <= c + s.nodeSize - 1))
|
|
118
118
|
return !1;
|
|
119
|
-
if (
|
|
119
|
+
if (d += 1, this.options.mode === "deepest" && a - d > 0 || this.options.mode === "shallowest" && d > 1)
|
|
120
120
|
return this.options.mode === "deepest";
|
|
121
121
|
i.push(
|
|
122
|
-
b.node(
|
|
122
|
+
b.node(c, c + s.nodeSize, {
|
|
123
123
|
class: this.options.className
|
|
124
124
|
})
|
|
125
125
|
);
|
|
126
|
-
}),
|
|
126
|
+
}), v.create(t, i);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
})
|
|
130
130
|
];
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
|
-
var
|
|
133
|
+
var rt = h.create({
|
|
134
134
|
name: "gapCursor",
|
|
135
135
|
addProseMirrorPlugins() {
|
|
136
|
-
return [
|
|
136
|
+
return [k()];
|
|
137
137
|
},
|
|
138
|
-
extendNodeSchema(
|
|
139
|
-
var
|
|
138
|
+
extendNodeSchema(t) {
|
|
139
|
+
var e;
|
|
140
140
|
const n = {
|
|
141
|
-
name:
|
|
142
|
-
options:
|
|
143
|
-
storage:
|
|
141
|
+
name: t.name,
|
|
142
|
+
options: t.options,
|
|
143
|
+
storage: t.storage
|
|
144
144
|
};
|
|
145
145
|
return {
|
|
146
|
-
allowGapCursor: (
|
|
146
|
+
allowGapCursor: (e = x(O(t, "allowGapCursor", n))) != null ? e : null
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
}),
|
|
150
|
-
function N(
|
|
149
|
+
}), A = "placeholder", g = new y("tiptap__placeholder"), M = 200;
|
|
150
|
+
function N(t) {
|
|
151
151
|
const {
|
|
152
|
-
editor:
|
|
152
|
+
editor: e,
|
|
153
153
|
placeholder: n,
|
|
154
154
|
dataAttribute: o,
|
|
155
155
|
pos: r,
|
|
156
156
|
node: i,
|
|
157
157
|
isEmptyDoc: a,
|
|
158
|
-
hasAnchor:
|
|
159
|
-
classes: { emptyNode: s, emptyEditor:
|
|
160
|
-
} =
|
|
161
|
-
return a &&
|
|
162
|
-
class:
|
|
158
|
+
hasAnchor: d,
|
|
159
|
+
classes: { emptyNode: s, emptyEditor: c }
|
|
160
|
+
} = t, l = [s];
|
|
161
|
+
return a && l.push(c), b.node(r, r + i.nodeSize, {
|
|
162
|
+
class: l.join(" "),
|
|
163
163
|
[o]: typeof n == "function" ? n({
|
|
164
|
-
editor:
|
|
164
|
+
editor: e,
|
|
165
165
|
node: i,
|
|
166
166
|
pos: r,
|
|
167
|
-
hasAnchor:
|
|
167
|
+
hasAnchor: d
|
|
168
168
|
}) : n
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
function T(t, e) {
|
|
172
|
+
return typeof t == "function" ? t(e) : t;
|
|
173
|
+
}
|
|
174
|
+
function $({
|
|
175
|
+
editor: t,
|
|
176
|
+
options: e,
|
|
174
177
|
dataAttribute: n,
|
|
175
178
|
doc: o,
|
|
176
179
|
selection: r
|
|
177
180
|
}) {
|
|
178
181
|
var i, a;
|
|
179
|
-
if (!(
|
|
182
|
+
if (!(t.isEditable || !e.showOnlyWhenEditable))
|
|
180
183
|
return null;
|
|
181
|
-
const { anchor: s } = r,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
if (m && m.type.isTextblock && T(m)) {
|
|
188
|
-
const h = s >= g && s <= g + m.nodeSize;
|
|
189
|
-
d.push(
|
|
184
|
+
const { anchor: s } = r, c = [], l = t.isEmpty;
|
|
185
|
+
if (e.showOnlyCurrent && !e.includeChildren) {
|
|
186
|
+
const u = o.resolve(s), p = u.depth > 0 ? u.node(1) : u.nodeAfter, f = u.depth > 0 ? u.before(1) : s;
|
|
187
|
+
if (p && p.type.isTextblock && E(p)) {
|
|
188
|
+
const m = s >= f && s <= f + p.nodeSize;
|
|
189
|
+
c.push(
|
|
190
190
|
N({
|
|
191
|
-
editor:
|
|
192
|
-
isEmptyDoc:
|
|
191
|
+
editor: t,
|
|
192
|
+
isEmptyDoc: l,
|
|
193
193
|
dataAttribute: n,
|
|
194
|
-
hasAnchor:
|
|
195
|
-
placeholder:
|
|
196
|
-
classes:
|
|
197
|
-
|
|
198
|
-
|
|
194
|
+
hasAnchor: m,
|
|
195
|
+
placeholder: e.placeholder,
|
|
196
|
+
classes: {
|
|
197
|
+
emptyEditor: e.emptyEditorClass,
|
|
198
|
+
emptyNode: T(e.emptyNodeClass, {
|
|
199
|
+
editor: t,
|
|
200
|
+
node: p,
|
|
201
|
+
pos: f,
|
|
202
|
+
hasAnchor: m
|
|
203
|
+
})
|
|
204
|
+
},
|
|
205
|
+
node: p,
|
|
206
|
+
pos: f
|
|
199
207
|
})
|
|
200
208
|
);
|
|
201
209
|
}
|
|
202
210
|
} else {
|
|
203
|
-
const u =
|
|
204
|
-
o.nodesBetween(
|
|
205
|
-
const
|
|
206
|
-
return
|
|
211
|
+
const u = g.getState(t.state), p = (i = u?.topPos) != null ? i : 0, f = (a = u?.bottomPos) != null ? a : o.content.size;
|
|
212
|
+
o.nodesBetween(p, f, (m, w) => {
|
|
213
|
+
const S = s >= w && s <= w + m.nodeSize, R = !m.isLeaf && E(m);
|
|
214
|
+
return m.type.isTextblock && (S || !e.showOnlyCurrent) && R && c.push(
|
|
207
215
|
N({
|
|
208
|
-
editor:
|
|
209
|
-
isEmptyDoc:
|
|
216
|
+
editor: t,
|
|
217
|
+
isEmptyDoc: l,
|
|
210
218
|
dataAttribute: n,
|
|
211
|
-
hasAnchor:
|
|
212
|
-
placeholder:
|
|
213
|
-
classes:
|
|
214
|
-
|
|
215
|
-
|
|
219
|
+
hasAnchor: S,
|
|
220
|
+
placeholder: e.placeholder,
|
|
221
|
+
classes: {
|
|
222
|
+
emptyEditor: e.emptyEditorClass,
|
|
223
|
+
emptyNode: T(e.emptyNodeClass, {
|
|
224
|
+
editor: t,
|
|
225
|
+
node: m,
|
|
226
|
+
pos: w,
|
|
227
|
+
hasAnchor: S
|
|
228
|
+
})
|
|
229
|
+
},
|
|
230
|
+
node: m,
|
|
231
|
+
pos: w
|
|
216
232
|
})
|
|
217
|
-
),
|
|
233
|
+
), e.includeChildren;
|
|
218
234
|
});
|
|
219
235
|
}
|
|
220
|
-
return
|
|
236
|
+
return v.create(o, c);
|
|
221
237
|
}
|
|
222
|
-
function
|
|
223
|
-
return
|
|
238
|
+
function V(t) {
|
|
239
|
+
return t.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
|
|
224
240
|
}
|
|
225
|
-
function
|
|
226
|
-
const
|
|
241
|
+
function G(t) {
|
|
242
|
+
const e = getComputedStyle(t), n = `${e.overflow} ${e.overflowY} ${e.overflowX}`;
|
|
227
243
|
return /auto|scroll|overlay/.test(n);
|
|
228
244
|
}
|
|
229
|
-
function
|
|
230
|
-
let
|
|
231
|
-
for (;
|
|
232
|
-
if (
|
|
233
|
-
return
|
|
234
|
-
const n =
|
|
245
|
+
function j(t) {
|
|
246
|
+
let e = t;
|
|
247
|
+
for (; e; ) {
|
|
248
|
+
if (G(e))
|
|
249
|
+
return e;
|
|
250
|
+
const n = e.parentElement;
|
|
235
251
|
if (!n) {
|
|
236
|
-
const o =
|
|
252
|
+
const o = e.getRootNode();
|
|
237
253
|
if (o instanceof ShadowRoot) {
|
|
238
|
-
|
|
254
|
+
e = o.host;
|
|
239
255
|
continue;
|
|
240
256
|
}
|
|
241
257
|
return window;
|
|
242
258
|
}
|
|
243
|
-
|
|
259
|
+
e = n;
|
|
244
260
|
}
|
|
245
261
|
return window;
|
|
246
262
|
}
|
|
247
|
-
function U(
|
|
248
|
-
return
|
|
263
|
+
function U(t) {
|
|
264
|
+
return t === window ? { top: 0, bottom: window.innerHeight } : t.getBoundingClientRect();
|
|
249
265
|
}
|
|
250
266
|
function W({
|
|
251
|
-
doc:
|
|
252
|
-
view:
|
|
267
|
+
doc: t,
|
|
268
|
+
view: e,
|
|
253
269
|
scrollContainer: n
|
|
254
270
|
}) {
|
|
255
|
-
const o =
|
|
271
|
+
const o = e.dom.getBoundingClientRect(), r = n ? U(n) : { top: 0, bottom: window.innerHeight }, i = Math.max(o.top, r.top) - M, a = Math.min(o.bottom, r.bottom) + M;
|
|
256
272
|
if (i >= a)
|
|
257
|
-
return { top: 0, bottom:
|
|
258
|
-
const s = getComputedStyle(
|
|
273
|
+
return { top: 0, bottom: t.content.size };
|
|
274
|
+
const s = getComputedStyle(e.dom).direction === "rtl" ? Math.max(o.right - 2, o.left + 2) : o.left + 2, c = e.posAtCoords({ left: s, top: i + 2 }), l = e.posAtCoords({ left: s, top: a - 2 });
|
|
259
275
|
return {
|
|
260
|
-
top:
|
|
261
|
-
bottom:
|
|
276
|
+
top: c ? c.pos : 0,
|
|
277
|
+
bottom: l ? l.pos : t.content.size
|
|
262
278
|
};
|
|
263
279
|
}
|
|
264
280
|
var q = {
|
|
@@ -275,61 +291,61 @@ var q = {
|
|
|
275
291
|
* @param prev - The previous viewport state.
|
|
276
292
|
* @returns The next viewport state.
|
|
277
293
|
*/
|
|
278
|
-
apply(
|
|
279
|
-
const n =
|
|
280
|
-
return n?.positions ? { topPos: n.positions.top, bottomPos: n.positions.bottom } :
|
|
281
|
-
topPos:
|
|
282
|
-
bottomPos:
|
|
283
|
-
} :
|
|
294
|
+
apply(t, e) {
|
|
295
|
+
const n = t.getMeta(g);
|
|
296
|
+
return n?.positions ? { topPos: n.positions.top, bottomPos: n.positions.bottom } : t.docChanged ? {
|
|
297
|
+
topPos: e.topPos !== null ? t.mapping.map(e.topPos) : null,
|
|
298
|
+
bottomPos: e.bottomPos !== null ? t.mapping.map(e.bottomPos) : null
|
|
299
|
+
} : e;
|
|
284
300
|
}
|
|
285
301
|
};
|
|
286
|
-
function K(
|
|
287
|
-
const
|
|
288
|
-
const
|
|
289
|
-
view:
|
|
290
|
-
doc:
|
|
291
|
-
scrollContainer:
|
|
292
|
-
}), s =
|
|
293
|
-
if (s?.topPos ===
|
|
302
|
+
function K(t) {
|
|
303
|
+
const e = j(t.dom), n = () => {
|
|
304
|
+
const d = W({
|
|
305
|
+
view: t,
|
|
306
|
+
doc: t.state.doc,
|
|
307
|
+
scrollContainer: e
|
|
308
|
+
}), s = g.getState(t.state);
|
|
309
|
+
if (s?.topPos === d.top && s?.bottomPos === d.bottom)
|
|
294
310
|
return;
|
|
295
|
-
const
|
|
296
|
-
|
|
311
|
+
const c = t.state.tr.setMeta(g, { positions: d });
|
|
312
|
+
t.dispatch(c);
|
|
297
313
|
};
|
|
298
314
|
let o = null, r = 0;
|
|
299
315
|
const i = 150, a = () => {
|
|
300
316
|
o === null && (o = requestAnimationFrame(() => {
|
|
301
317
|
o = null;
|
|
302
|
-
const
|
|
303
|
-
|
|
318
|
+
const d = performance.now();
|
|
319
|
+
d - r >= i ? (r = d, n()) : a();
|
|
304
320
|
}));
|
|
305
321
|
};
|
|
306
|
-
return
|
|
307
|
-
update(
|
|
308
|
-
|
|
322
|
+
return e.addEventListener("scroll", a, { passive: !0 }), n(), {
|
|
323
|
+
update(d, s) {
|
|
324
|
+
t.state.doc.content.size !== s.doc.content.size && a();
|
|
309
325
|
},
|
|
310
326
|
destroy: () => {
|
|
311
|
-
o !== null && cancelAnimationFrame(o),
|
|
327
|
+
o !== null && cancelAnimationFrame(o), e.removeEventListener("scroll", a);
|
|
312
328
|
}
|
|
313
329
|
};
|
|
314
330
|
}
|
|
315
|
-
function
|
|
316
|
-
const n =
|
|
317
|
-
return new
|
|
318
|
-
key:
|
|
331
|
+
function H({ editor: t, options: e }) {
|
|
332
|
+
const n = e.dataAttribute ? `data-${V(e.dataAttribute)}` : `data-${A}`;
|
|
333
|
+
return new P({
|
|
334
|
+
key: g,
|
|
319
335
|
state: q,
|
|
320
336
|
view: K,
|
|
321
337
|
props: {
|
|
322
|
-
decorations: ({ doc: o, selection: r }) =>
|
|
338
|
+
decorations: ({ doc: o, selection: r }) => $({ editor: t, options: e, dataAttribute: n, doc: o, selection: r })
|
|
323
339
|
}
|
|
324
340
|
});
|
|
325
341
|
}
|
|
326
|
-
|
|
342
|
+
h.create({
|
|
327
343
|
name: "placeholder",
|
|
328
344
|
addOptions() {
|
|
329
345
|
return {
|
|
330
346
|
emptyEditorClass: "is-editor-empty",
|
|
331
347
|
emptyNodeClass: "is-empty",
|
|
332
|
-
dataAttribute:
|
|
348
|
+
dataAttribute: A,
|
|
333
349
|
placeholder: "Write something …",
|
|
334
350
|
showOnlyWhenEditable: !0,
|
|
335
351
|
showOnlyCurrent: !0,
|
|
@@ -337,10 +353,17 @@ p.create({
|
|
|
337
353
|
};
|
|
338
354
|
},
|
|
339
355
|
addProseMirrorPlugins() {
|
|
340
|
-
return [
|
|
356
|
+
return [H({ editor: this.editor, options: this.options })];
|
|
341
357
|
}
|
|
342
358
|
});
|
|
343
|
-
|
|
359
|
+
var X = `.ProseMirror:not(.ProseMirror-focused) *::selection {
|
|
360
|
+
background: transparent;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.ProseMirror:not(.ProseMirror-focused) *::-moz-selection {
|
|
364
|
+
background: transparent;
|
|
365
|
+
}`;
|
|
366
|
+
h.create({
|
|
344
367
|
name: "selection",
|
|
345
368
|
addOptions() {
|
|
346
369
|
return {
|
|
@@ -348,15 +371,15 @@ p.create({
|
|
|
348
371
|
};
|
|
349
372
|
},
|
|
350
373
|
addProseMirrorPlugins() {
|
|
351
|
-
const { editor:
|
|
352
|
-
return [
|
|
353
|
-
new
|
|
354
|
-
key: new
|
|
374
|
+
const { editor: t, options: e } = this;
|
|
375
|
+
return t.options.injectCSS && typeof document < "u" && _(X, t.options.injectNonce, "selection"), [
|
|
376
|
+
new P({
|
|
377
|
+
key: new y("selection"),
|
|
355
378
|
props: {
|
|
356
379
|
decorations(n) {
|
|
357
|
-
return n.selection.empty ||
|
|
380
|
+
return n.selection.empty || t.isFocused || !t.isEditable || D(n.selection) || t.view.dragging ? null : v.create(n.doc, [
|
|
358
381
|
b.inline(n.selection.from, n.selection.to, {
|
|
359
|
-
class:
|
|
382
|
+
class: e.className
|
|
360
383
|
})
|
|
361
384
|
]);
|
|
362
385
|
}
|
|
@@ -365,14 +388,14 @@ p.create({
|
|
|
365
388
|
];
|
|
366
389
|
}
|
|
367
390
|
});
|
|
368
|
-
var
|
|
391
|
+
var Y = "skipTrailingNode";
|
|
369
392
|
function z({
|
|
370
|
-
types:
|
|
371
|
-
node:
|
|
393
|
+
types: t,
|
|
394
|
+
node: e
|
|
372
395
|
}) {
|
|
373
|
-
return
|
|
396
|
+
return e && Array.isArray(t) && t.includes(e.type) || e?.type === t;
|
|
374
397
|
}
|
|
375
|
-
var
|
|
398
|
+
var st = h.create({
|
|
376
399
|
name: "trailingNode",
|
|
377
400
|
addOptions() {
|
|
378
401
|
return {
|
|
@@ -381,15 +404,15 @@ var nt = p.create({
|
|
|
381
404
|
};
|
|
382
405
|
},
|
|
383
406
|
addProseMirrorPlugins() {
|
|
384
|
-
var
|
|
385
|
-
const
|
|
407
|
+
var t;
|
|
408
|
+
const e = new y(this.name), n = this.options.node || ((t = this.editor.schema.topNodeType.contentMatch.defaultType) == null ? void 0 : t.name) || "paragraph", o = Object.entries(this.editor.schema.nodes).map(([, r]) => r).filter((r) => (this.options.notAfter || []).concat(n).includes(r.name));
|
|
386
409
|
return [
|
|
387
|
-
new
|
|
388
|
-
key:
|
|
410
|
+
new P({
|
|
411
|
+
key: e,
|
|
389
412
|
appendTransaction: (r, i, a) => {
|
|
390
|
-
const { doc:
|
|
391
|
-
if (!r.some((
|
|
392
|
-
return s.insert(
|
|
413
|
+
const { doc: d, tr: s, schema: c } = a, l = e.getState(a), C = d.content.size, u = c.nodes[n];
|
|
414
|
+
if (!r.some((p) => p.getMeta(Y)) && l)
|
|
415
|
+
return s.insert(C, u.create());
|
|
393
416
|
},
|
|
394
417
|
state: {
|
|
395
418
|
init: (r, i) => {
|
|
@@ -406,7 +429,7 @@ var nt = p.create({
|
|
|
406
429
|
})
|
|
407
430
|
];
|
|
408
431
|
}
|
|
409
|
-
}),
|
|
432
|
+
}), it = h.create({
|
|
410
433
|
name: "undoRedo",
|
|
411
434
|
addOptions() {
|
|
412
435
|
return {
|
|
@@ -416,12 +439,12 @@ var nt = p.create({
|
|
|
416
439
|
},
|
|
417
440
|
addCommands() {
|
|
418
441
|
return {
|
|
419
|
-
undo: () => ({ state:
|
|
420
|
-
redo: () => ({ state:
|
|
442
|
+
undo: () => ({ state: t, dispatch: e }) => I(t, e),
|
|
443
|
+
redo: () => ({ state: t, dispatch: e }) => F(t, e)
|
|
421
444
|
};
|
|
422
445
|
},
|
|
423
446
|
addProseMirrorPlugins() {
|
|
424
|
-
return [
|
|
447
|
+
return [B(this.options)];
|
|
425
448
|
},
|
|
426
449
|
addKeyboardShortcuts() {
|
|
427
450
|
return {
|
|
@@ -435,12 +458,12 @@ var nt = p.create({
|
|
|
435
458
|
}
|
|
436
459
|
});
|
|
437
460
|
export {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
461
|
+
A as DEFAULT_DATA_ATTRIBUTE,
|
|
462
|
+
nt as Dropcursor,
|
|
463
|
+
rt as Gapcursor,
|
|
464
|
+
g as PLUGIN_KEY,
|
|
465
|
+
st as TrailingNode,
|
|
466
|
+
it as UndoRedo,
|
|
467
|
+
V as preparePlaceholderAttribute,
|
|
468
|
+
Y as skipTrailingNodeMeta
|
|
446
469
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __exports as e } from "../../../_virtual/react-compiler-runtime.development.js";
|
|
2
|
+
import a from "react";
|
|
3
|
+
var n;
|
|
4
|
+
function l() {
|
|
5
|
+
return n ? e : (n = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
6
|
+
var t = a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
7
|
+
e.c = function(r) {
|
|
8
|
+
var o = t.H;
|
|
9
|
+
return o === null && console.error(
|
|
10
|
+
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
11
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
12
|
+
2. You might be breaking the Rules of Hooks
|
|
13
|
+
3. You might have more than one copy of React in the same app
|
|
14
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
15
|
+
), o.useMemoCache(r);
|
|
16
|
+
};
|
|
17
|
+
})(), e);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
l as __require
|
|
21
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { __exports as e } from "../../../_virtual/react-compiler-runtime.production.js";
|
|
2
|
+
import o from "react";
|
|
3
|
+
var r;
|
|
4
|
+
function n() {
|
|
5
|
+
if (r) return e;
|
|
6
|
+
r = 1;
|
|
7
|
+
var t = o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
8
|
+
return e.c = function(_) {
|
|
9
|
+
return t.H.useMemoCache(_);
|
|
10
|
+
}, e;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
n as __require
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { __module as e } from "../../_virtual/compiler-runtime2.js";
|
|
2
|
+
import { __require as i } from "./cjs/react-compiler-runtime.production.js";
|
|
3
|
+
import { __require as o } from "./cjs/react-compiler-runtime.development.js";
|
|
4
|
+
var r;
|
|
5
|
+
function p() {
|
|
6
|
+
return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = i() : e.exports = o(), e.exports);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
p as __require
|
|
10
|
+
};
|