@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,35 +1,55 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ToggleButton as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsx as v } from "react/jsx-runtime";
|
|
2
|
+
import { c as C } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { useEditorState as B } from "../../packages/casper-ui-library/node_modules/@tiptap/react/dist/index.js";
|
|
4
|
+
import { useRichTextEditorContext as E } from "./rich-text-editor-context.js";
|
|
5
|
+
import { ToggleButton as T } from "../toggle-button/toggle-button.js";
|
|
6
|
+
import { Tooltip as F } from "../tooltip/tooltip.js";
|
|
7
|
+
function _(D) {
|
|
8
|
+
const e = C.c(22), {
|
|
9
|
+
label: o,
|
|
10
|
+
icon: d,
|
|
11
|
+
command: p,
|
|
12
|
+
isActive: u,
|
|
13
|
+
isDisabled: c
|
|
14
|
+
} = D, {
|
|
15
|
+
editor: t
|
|
16
|
+
} = E();
|
|
17
|
+
let i;
|
|
18
|
+
e[0] !== u ? (i = (h) => {
|
|
19
|
+
const {
|
|
20
|
+
editor: n
|
|
21
|
+
} = h;
|
|
22
|
+
return n ? u(n) : !1;
|
|
23
|
+
}, e[0] = u, e[1] = i) : i = e[1];
|
|
24
|
+
let a;
|
|
25
|
+
e[2] !== t || e[3] !== i ? (a = {
|
|
14
26
|
editor: t,
|
|
15
|
-
selector:
|
|
16
|
-
}
|
|
27
|
+
selector: i
|
|
28
|
+
}, e[2] = t, e[3] = i, e[4] = a) : a = e[4];
|
|
29
|
+
const g = B(a);
|
|
30
|
+
let s;
|
|
31
|
+
e[5] !== c ? (s = (h) => {
|
|
32
|
+
const {
|
|
33
|
+
editor: n
|
|
34
|
+
} = h;
|
|
35
|
+
return n && c ? c(n) : !1;
|
|
36
|
+
}, e[5] = c, e[6] = s) : s = e[6];
|
|
37
|
+
let m;
|
|
38
|
+
e[7] !== t || e[8] !== s ? (m = {
|
|
17
39
|
editor: t,
|
|
18
|
-
selector:
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
) }) : null;
|
|
40
|
+
selector: s
|
|
41
|
+
}, e[7] = t, e[8] = s, e[9] = m) : m = e[9];
|
|
42
|
+
const A = B(m);
|
|
43
|
+
if (!t)
|
|
44
|
+
return null;
|
|
45
|
+
const b = !!g, x = !!A;
|
|
46
|
+
let l;
|
|
47
|
+
e[10] !== p || e[11] !== t ? (l = () => p(t), e[10] = p, e[11] = t, e[12] = l) : l = e[12];
|
|
48
|
+
let r;
|
|
49
|
+
e[13] !== d || e[14] !== o || e[15] !== b || e[16] !== x || e[17] !== l ? (r = /* @__PURE__ */ v(T, { size: "sm", variant: "ghost", "aria-label": o, isPressed: b, isDisabled: x, onClick: l, children: d }), e[13] = d, e[14] = o, e[15] = b, e[16] = x, e[17] = l, e[18] = r) : r = e[18];
|
|
50
|
+
let f;
|
|
51
|
+
return e[19] !== o || e[20] !== r ? (f = /* @__PURE__ */ v(F, { label: o, placement: "top", children: r }), e[19] = o, e[20] = r, e[21] = f) : f = e[21], f;
|
|
32
52
|
}
|
|
33
53
|
export {
|
|
34
|
-
|
|
54
|
+
_ as BooleanControl
|
|
35
55
|
};
|
|
@@ -11,23 +11,21 @@ const f = t.configure({
|
|
|
11
11
|
const [o] = i(e);
|
|
12
12
|
return !!o?.isLink;
|
|
13
13
|
}
|
|
14
|
-
}), a = [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
n
|
|
30
|
-
];
|
|
14
|
+
}), a = [s.configure({
|
|
15
|
+
blockquote: !1,
|
|
16
|
+
code: !1,
|
|
17
|
+
codeBlock: !1,
|
|
18
|
+
dropcursor: !1,
|
|
19
|
+
gapcursor: !1,
|
|
20
|
+
heading: {
|
|
21
|
+
levels: [1, 2, 3, 4]
|
|
22
|
+
},
|
|
23
|
+
horizontalRule: !1,
|
|
24
|
+
// Disabled because we register custom-configured versions below
|
|
25
|
+
link: !1,
|
|
26
|
+
strike: !1,
|
|
27
|
+
underline: !1
|
|
28
|
+
}), f, n];
|
|
31
29
|
function k(e) {
|
|
32
30
|
return r(e, a);
|
|
33
31
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare function Bold(): import("react
|
|
2
|
-
export declare function Italic(): import("react
|
|
3
|
-
export declare function Underline(): import("react
|
|
4
|
-
export declare function BulletList(): import("react
|
|
5
|
-
export declare function OrderedList(): import("react
|
|
6
|
-
export declare function Heading1(): import("react
|
|
7
|
-
export declare function Heading2(): import("react
|
|
8
|
-
export declare function Heading3(): import("react
|
|
9
|
-
export declare function Heading4(): import("react
|
|
10
|
-
export declare function LinkControl(): import("react
|
|
1
|
+
export declare function Bold(): import("react").JSX.Element;
|
|
2
|
+
export declare function Italic(): import("react").JSX.Element;
|
|
3
|
+
export declare function Underline(): import("react").JSX.Element;
|
|
4
|
+
export declare function BulletList(): import("react").JSX.Element;
|
|
5
|
+
export declare function OrderedList(): import("react").JSX.Element;
|
|
6
|
+
export declare function Heading1(): import("react").JSX.Element;
|
|
7
|
+
export declare function Heading2(): import("react").JSX.Element;
|
|
8
|
+
export declare function Heading3(): import("react").JSX.Element;
|
|
9
|
+
export declare function Heading4(): import("react").JSX.Element;
|
|
10
|
+
export declare function LinkControl(): import("react").JSX.Element | null;
|
|
11
11
|
//# sourceMappingURL=rich-text-editor-control.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rich-text-editor-control.d.ts","sourceRoot":"","sources":["../../../lib/components/rich-text-editor/rich-text-editor-control.tsx"],"names":[],"mappings":"AAwBA,wBAAgB,IAAI,
|
|
1
|
+
{"version":3,"file":"rich-text-editor-control.d.ts","sourceRoot":"","sources":["../../../lib/components/rich-text-editor/rich-text-editor-control.tsx"],"names":[],"mappings":"AAwBA,wBAAgB,IAAI,gCAInB;AAQD,wBAAgB,MAAM,gCAIrB;AAQD,wBAAgB,SAAS,gCAIxB;AAQD,wBAAgB,UAAU,gCAIzB;AAQD,wBAAgB,WAAW,gCAI1B;AAUD,wBAAgB,QAAQ,gCAIvB;AAQD,wBAAgB,QAAQ,gCAIvB;AAQD,wBAAgB,QAAQ,gCAIvB;AAQD,wBAAgB,QAAQ,gCAIvB;AAwBD,wBAAgB,WAAW,uCA8G1B"}
|
|
@@ -1,202 +1,309 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { MenuButton as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { ListOLIcon as
|
|
19
|
-
import { ListULIcon as
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { jsx as l, jsxs as U } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { Box as ce } from "@chakra-ui/react";
|
|
4
|
+
import { useEditorState as q } from "../../packages/casper-ui-library/node_modules/@tiptap/react/dist/index.js";
|
|
5
|
+
import { find as se } from "../../node_modules/linkifyjs/dist/linkify.js";
|
|
6
|
+
import { useState as V } from "react";
|
|
7
|
+
import { BooleanControl as a } from "./boolean-control.js";
|
|
8
|
+
import { useRichTextEditorContext as s } from "./rich-text-editor-context.js";
|
|
9
|
+
import { translations as o } from "./translations.js";
|
|
10
|
+
import { LinkIcon as ae } from "../icon/icons/link-icon.js";
|
|
11
|
+
import { MenuButton as fe } from "../menu/menu-button.js";
|
|
12
|
+
import { Tooltip as me } from "../tooltip/tooltip.js";
|
|
13
|
+
import { FormLabel as G } from "../form-control/form-label.js";
|
|
14
|
+
import { Input as J } from "../input/input.js";
|
|
15
|
+
import { FormControl as N } from "../form-control/form-control.js";
|
|
16
|
+
import { Button as Q } from "../button/button.js";
|
|
17
|
+
import { MenuList as de } from "../menu/menu-list.js";
|
|
18
|
+
import { ListOLIcon as ue } from "../icon/icons/list-ol-icon.js";
|
|
19
|
+
import { ListULIcon as he } from "../icon/icons/list-ul-icon.js";
|
|
20
|
+
import { Menu as ge } from "../menu/menu.js";
|
|
21
|
+
import { ThemeIconSizeVariable as F, ThemeFontSizeVariable as Y, ThemeSpaceVariable as W } from "../../theme/theme-types.js";
|
|
22
|
+
const pe = {
|
|
23
|
+
icon: /* @__PURE__ */ l("strong", { children: "B" }),
|
|
23
24
|
command: (e) => e.chain().focus().toggleBold().run(),
|
|
24
25
|
isActive: (e) => e.isActive("bold")
|
|
25
26
|
};
|
|
26
|
-
function
|
|
27
|
-
const
|
|
28
|
-
|
|
27
|
+
function Ye() {
|
|
28
|
+
const e = c.c(2), {
|
|
29
|
+
locale: n
|
|
30
|
+
} = s(), i = o[n] ?? o["en-US"];
|
|
31
|
+
let t;
|
|
32
|
+
return e[0] !== i.bold ? (t = /* @__PURE__ */ l(a, { ...pe, label: i.bold }), e[0] = i.bold, e[1] = t) : t = e[1], t;
|
|
29
33
|
}
|
|
30
|
-
const
|
|
31
|
-
icon: /* @__PURE__ */
|
|
34
|
+
const ke = {
|
|
35
|
+
icon: /* @__PURE__ */ l("em", { children: "I" }),
|
|
32
36
|
command: (e) => e.chain().focus().toggleItalic().run(),
|
|
33
37
|
isActive: (e) => e.isActive("italic")
|
|
34
38
|
};
|
|
35
|
-
function
|
|
36
|
-
const
|
|
37
|
-
|
|
39
|
+
function Ze() {
|
|
40
|
+
const e = c.c(2), {
|
|
41
|
+
locale: n
|
|
42
|
+
} = s(), i = o[n] ?? o["en-US"];
|
|
43
|
+
let t;
|
|
44
|
+
return e[0] !== i.italic ? (t = /* @__PURE__ */ l(a, { ...ke, label: i.italic }), e[0] = i.italic, e[1] = t) : t = e[1], t;
|
|
38
45
|
}
|
|
39
|
-
const
|
|
40
|
-
icon: /* @__PURE__ */
|
|
46
|
+
const ve = {
|
|
47
|
+
icon: /* @__PURE__ */ l("span", { style: {
|
|
48
|
+
textDecoration: "underline"
|
|
49
|
+
}, children: "U" }),
|
|
41
50
|
command: (e) => e.chain().focus().toggleUnderline().run(),
|
|
42
51
|
isActive: (e) => e.isActive("underline")
|
|
43
52
|
};
|
|
44
|
-
function
|
|
45
|
-
const
|
|
46
|
-
|
|
53
|
+
function et() {
|
|
54
|
+
const e = c.c(2), {
|
|
55
|
+
locale: n
|
|
56
|
+
} = s(), i = o[n] ?? o["en-US"];
|
|
57
|
+
let t;
|
|
58
|
+
return e[0] !== i.underline ? (t = /* @__PURE__ */ l(a, { ...ve, label: i.underline }), e[0] = i.underline, e[1] = t) : t = e[1], t;
|
|
47
59
|
}
|
|
48
|
-
const
|
|
49
|
-
icon: /* @__PURE__ */
|
|
60
|
+
const Le = {
|
|
61
|
+
icon: /* @__PURE__ */ l(he, { size: F.Small }),
|
|
50
62
|
command: (e) => e.chain().focus().toggleBulletList().run(),
|
|
51
63
|
isActive: (e) => e.isActive("bulletList")
|
|
52
64
|
};
|
|
53
|
-
function
|
|
54
|
-
const
|
|
55
|
-
|
|
65
|
+
function tt() {
|
|
66
|
+
const e = c.c(2), {
|
|
67
|
+
locale: n
|
|
68
|
+
} = s(), i = o[n] ?? o["en-US"];
|
|
69
|
+
let t;
|
|
70
|
+
return e[0] !== i.bulletList ? (t = /* @__PURE__ */ l(a, { ...Le, label: i.bulletList }), e[0] = i.bulletList, e[1] = t) : t = e[1], t;
|
|
56
71
|
}
|
|
57
|
-
const
|
|
58
|
-
icon: /* @__PURE__ */
|
|
72
|
+
const be = {
|
|
73
|
+
icon: /* @__PURE__ */ l(ue, { size: F.Small }),
|
|
59
74
|
command: (e) => e.chain().focus().toggleOrderedList().run(),
|
|
60
75
|
isActive: (e) => e.isActive("orderedList")
|
|
61
76
|
};
|
|
62
|
-
function
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
77
|
+
function nt() {
|
|
78
|
+
const e = c.c(2), {
|
|
79
|
+
locale: n
|
|
80
|
+
} = s(), i = o[n] ?? o["en-US"];
|
|
81
|
+
let t;
|
|
82
|
+
return e[0] !== i.orderedList ? (t = /* @__PURE__ */ l(a, { ...be, label: i.orderedList }), e[0] = i.orderedList, e[1] = t) : t = e[1], t;
|
|
83
|
+
}
|
|
84
|
+
const Se = {
|
|
85
|
+
icon: /* @__PURE__ */ l("span", { style: {
|
|
86
|
+
fontSize: "0.8em",
|
|
87
|
+
fontWeight: 600
|
|
88
|
+
}, children: "H1" }),
|
|
89
|
+
command: (e) => e.chain().focus().toggleHeading({
|
|
90
|
+
level: 1
|
|
91
|
+
}).run(),
|
|
92
|
+
isActive: (e) => e.isActive("heading", {
|
|
93
|
+
level: 1
|
|
94
|
+
})
|
|
70
95
|
};
|
|
71
|
-
function
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
96
|
+
function it() {
|
|
97
|
+
const e = c.c(2), {
|
|
98
|
+
locale: n
|
|
99
|
+
} = s(), i = o[n] ?? o["en-US"];
|
|
100
|
+
let t;
|
|
101
|
+
return e[0] !== i.heading1 ? (t = /* @__PURE__ */ l(a, { ...Se, label: i.heading1 }), e[0] = i.heading1, e[1] = t) : t = e[1], t;
|
|
102
|
+
}
|
|
103
|
+
const xe = {
|
|
104
|
+
icon: /* @__PURE__ */ l("span", { style: {
|
|
105
|
+
fontSize: "0.8em",
|
|
106
|
+
fontWeight: 600
|
|
107
|
+
}, children: "H2" }),
|
|
108
|
+
command: (e) => e.chain().focus().toggleHeading({
|
|
109
|
+
level: 2
|
|
110
|
+
}).run(),
|
|
111
|
+
isActive: (e) => e.isActive("heading", {
|
|
112
|
+
level: 2
|
|
113
|
+
})
|
|
79
114
|
};
|
|
80
|
-
function
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
115
|
+
function lt() {
|
|
116
|
+
const e = c.c(2), {
|
|
117
|
+
locale: n
|
|
118
|
+
} = s(), i = o[n] ?? o["en-US"];
|
|
119
|
+
let t;
|
|
120
|
+
return e[0] !== i.heading2 ? (t = /* @__PURE__ */ l(a, { ...xe, label: i.heading2 }), e[0] = i.heading2, e[1] = t) : t = e[1], t;
|
|
121
|
+
}
|
|
122
|
+
const ye = {
|
|
123
|
+
icon: /* @__PURE__ */ l("span", { style: {
|
|
124
|
+
fontSize: "0.8em",
|
|
125
|
+
fontWeight: 600
|
|
126
|
+
}, children: "H3" }),
|
|
127
|
+
command: (e) => e.chain().focus().toggleHeading({
|
|
128
|
+
level: 3
|
|
129
|
+
}).run(),
|
|
130
|
+
isActive: (e) => e.isActive("heading", {
|
|
131
|
+
level: 3
|
|
132
|
+
})
|
|
88
133
|
};
|
|
89
|
-
function
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
134
|
+
function ot() {
|
|
135
|
+
const e = c.c(2), {
|
|
136
|
+
locale: n
|
|
137
|
+
} = s(), i = o[n] ?? o["en-US"];
|
|
138
|
+
let t;
|
|
139
|
+
return e[0] !== i.heading3 ? (t = /* @__PURE__ */ l(a, { ...ye, label: i.heading3 }), e[0] = i.heading3, e[1] = t) : t = e[1], t;
|
|
140
|
+
}
|
|
141
|
+
const Ae = {
|
|
142
|
+
icon: /* @__PURE__ */ l("span", { style: {
|
|
143
|
+
fontSize: "0.8em",
|
|
144
|
+
fontWeight: 600
|
|
145
|
+
}, children: "H4" }),
|
|
146
|
+
command: (e) => e.chain().focus().toggleHeading({
|
|
147
|
+
level: 4
|
|
148
|
+
}).run(),
|
|
149
|
+
isActive: (e) => e.isActive("heading", {
|
|
150
|
+
level: 4
|
|
151
|
+
})
|
|
97
152
|
};
|
|
98
|
-
function
|
|
99
|
-
const
|
|
100
|
-
|
|
153
|
+
function rt() {
|
|
154
|
+
const e = c.c(2), {
|
|
155
|
+
locale: n
|
|
156
|
+
} = s(), i = o[n] ?? o["en-US"];
|
|
157
|
+
let t;
|
|
158
|
+
return e[0] !== i.heading4 ? (t = /* @__PURE__ */ l(a, { ...Ae, label: i.heading4 }), e[0] = i.heading4, e[1] = t) : t = e[1], t;
|
|
101
159
|
}
|
|
102
160
|
function Z(e) {
|
|
103
161
|
return e.startsWith("tel:") ? e.slice(4) : e.startsWith("mailto:") ? e.slice(7) : e;
|
|
104
162
|
}
|
|
105
|
-
const
|
|
106
|
-
function
|
|
163
|
+
const Ce = /^\+?[\d\s\-().]{7,}$/;
|
|
164
|
+
function Ue(e) {
|
|
107
165
|
const n = e.trim();
|
|
108
166
|
if (!n) return "";
|
|
109
167
|
if (n.startsWith("tel:")) return n;
|
|
110
|
-
if (
|
|
111
|
-
const [
|
|
112
|
-
return
|
|
113
|
-
}
|
|
114
|
-
function
|
|
115
|
-
const
|
|
116
|
-
editor:
|
|
117
|
-
|
|
118
|
-
}),
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
168
|
+
if (Ce.test(n)) return `tel:${n}`;
|
|
169
|
+
const [i] = se(n);
|
|
170
|
+
return i && i.isLink && i.start === 0 && i.end === n.length ? i.href : "";
|
|
171
|
+
}
|
|
172
|
+
function ct() {
|
|
173
|
+
const e = c.c(53), {
|
|
174
|
+
editor: n,
|
|
175
|
+
locale: i
|
|
176
|
+
} = s(), t = o[i] ?? o["en-US"];
|
|
177
|
+
let z;
|
|
178
|
+
e[0] !== n ? (z = {
|
|
179
|
+
editor: n,
|
|
180
|
+
selector: $e
|
|
181
|
+
}, e[0] = n, e[1] = z) : z = e[1];
|
|
182
|
+
const r = q(z);
|
|
183
|
+
let H;
|
|
184
|
+
e[2] !== n ? (H = {
|
|
185
|
+
editor: n,
|
|
186
|
+
selector: _e
|
|
187
|
+
}, e[2] = n, e[3] = H) : H = e[3];
|
|
188
|
+
const C = q(H);
|
|
189
|
+
let _;
|
|
190
|
+
e[4] !== r ? (_ = () => Z(r ?? ""), e[4] = r, e[5] = _) : _ = e[5];
|
|
191
|
+
const [m, O] = V(_), [ee, te] = V(r);
|
|
192
|
+
r !== ee && (te(r), O(Z(r ?? "")));
|
|
193
|
+
const [d, j] = V(C ?? ""), [ne, ie] = V(C);
|
|
194
|
+
C !== ne && (ie(C), j(C ?? ""));
|
|
195
|
+
let $;
|
|
196
|
+
e[6] !== d || e[7] !== n || e[8] !== m ? ($ = () => {
|
|
197
|
+
if (!n)
|
|
198
|
+
return;
|
|
199
|
+
const f = Ue(m);
|
|
200
|
+
if (!f) {
|
|
201
|
+
n.chain().focus().extendMarkRange("link").unsetLink().run();
|
|
136
202
|
return;
|
|
137
203
|
}
|
|
138
|
-
|
|
139
|
-
const {
|
|
140
|
-
|
|
204
|
+
n.chain().focus().extendMarkRange("link").command((le) => {
|
|
205
|
+
const {
|
|
206
|
+
tr: oe,
|
|
207
|
+
state: T
|
|
208
|
+
} = le, {
|
|
209
|
+
from: E,
|
|
210
|
+
to: K
|
|
211
|
+
} = T.selection, re = d || T.doc.textBetween(E, K, " ") || f, X = T.schema.marks.link?.create({
|
|
212
|
+
href: f
|
|
213
|
+
});
|
|
214
|
+
return X ? (oe.replaceWith(E, K, T.schema.text(re, [X])), !0) : !1;
|
|
141
215
|
}).run();
|
|
142
|
-
}, [
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
]
|
|
216
|
+
}, e[6] = d, e[7] = n, e[8] = m, e[9] = $) : $ = e[9];
|
|
217
|
+
const R = $;
|
|
218
|
+
let B;
|
|
219
|
+
e[10] !== n ? (B = () => {
|
|
220
|
+
n?.chain().focus().extendMarkRange("link").unsetLink().run();
|
|
221
|
+
}, e[10] = n, e[11] = B) : B = e[11];
|
|
222
|
+
const w = B;
|
|
223
|
+
if (!n)
|
|
224
|
+
return null;
|
|
225
|
+
let D;
|
|
226
|
+
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ l(ae, { size: F.Small }), e[12] = D) : D = e[12];
|
|
227
|
+
let u;
|
|
228
|
+
e[13] !== t.link ? (u = /* @__PURE__ */ l(fe, { size: "sm", variant: "ghost", "aria-label": t.link, px: 0, children: D }), e[13] = t.link, e[14] = u) : u = e[14];
|
|
229
|
+
let h;
|
|
230
|
+
e[15] !== t.link || e[16] !== u ? (h = /* @__PURE__ */ l(me, { label: t.link, placement: "top", children: u }), e[15] = t.link, e[16] = u, e[17] = h) : h = e[17];
|
|
231
|
+
let g;
|
|
232
|
+
e[18] !== t.linkDisplayLabel ? (g = /* @__PURE__ */ l(G, { fontSize: Y.Small, children: t.linkDisplayLabel }), e[18] = t.linkDisplayLabel, e[19] = g) : g = e[19];
|
|
233
|
+
let P;
|
|
234
|
+
e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = (f) => j(f.target.value), e[20] = P) : P = e[20];
|
|
235
|
+
let p;
|
|
236
|
+
e[21] !== d || e[22] !== t.linkDisplayPlaceholder ? (p = /* @__PURE__ */ l(J, { value: d, onChange: P, onKeyDown: He, placeholder: t.linkDisplayPlaceholder, autoFocus: !0, size: "sm" }), e[21] = d, e[22] = t.linkDisplayPlaceholder, e[23] = p) : p = e[23];
|
|
237
|
+
let k;
|
|
238
|
+
e[24] !== p || e[25] !== g ? (k = /* @__PURE__ */ U(N, { mb: W.Small, children: [
|
|
239
|
+
g,
|
|
240
|
+
p
|
|
241
|
+
] }), e[24] = p, e[25] = g, e[26] = k) : k = e[26];
|
|
242
|
+
let v;
|
|
243
|
+
e[27] !== t.linkLabel ? (v = /* @__PURE__ */ l(G, { fontSize: Y.Small, children: t.linkLabel }), e[27] = t.linkLabel, e[28] = v) : v = e[28];
|
|
244
|
+
let I;
|
|
245
|
+
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (f) => O(f.target.value), e[29] = I) : I = e[29];
|
|
246
|
+
let L;
|
|
247
|
+
e[30] !== m || e[31] !== t.linkPlaceholder ? (L = /* @__PURE__ */ l(J, { value: m, onChange: I, onKeyDown: ze, placeholder: t.linkPlaceholder, size: "sm" }), e[30] = m, e[31] = t.linkPlaceholder, e[32] = L) : L = e[32];
|
|
248
|
+
let b;
|
|
249
|
+
e[33] !== v || e[34] !== L ? (b = /* @__PURE__ */ U(N, { children: [
|
|
250
|
+
v,
|
|
251
|
+
L
|
|
252
|
+
] }), e[33] = v, e[34] = L, e[35] = b) : b = e[35];
|
|
253
|
+
let S;
|
|
254
|
+
e[36] !== r || e[37] !== w || e[38] !== t.removeLink ? (S = r && /* @__PURE__ */ l(Q, { variant: "ghost", size: "sm", onClick: w, children: t.removeLink }), e[36] = r, e[37] = w, e[38] = t.removeLink, e[39] = S) : S = e[39];
|
|
255
|
+
let x;
|
|
256
|
+
e[40] !== R || e[41] !== t.save ? (x = /* @__PURE__ */ l(Q, { variant: "primary", size: "sm", onClick: R, children: t.save }), e[40] = R, e[41] = t.save, e[42] = x) : x = e[42];
|
|
257
|
+
let y;
|
|
258
|
+
e[43] !== S || e[44] !== x ? (y = /* @__PURE__ */ U(ce, { display: "flex", justifyContent: "flex-end", gap: W.XSmall, mt: W.Small, children: [
|
|
259
|
+
S,
|
|
260
|
+
x
|
|
261
|
+
] }), e[43] = S, e[44] = x, e[45] = y) : y = e[45];
|
|
262
|
+
let A;
|
|
263
|
+
e[46] !== k || e[47] !== b || e[48] !== y ? (A = /* @__PURE__ */ U(de, { px: W.Medium, children: [
|
|
264
|
+
k,
|
|
265
|
+
b,
|
|
266
|
+
y
|
|
267
|
+
] }), e[46] = k, e[47] = b, e[48] = y, e[49] = A) : A = e[49];
|
|
268
|
+
let M;
|
|
269
|
+
return e[50] !== A || e[51] !== h ? (M = /* @__PURE__ */ U(ge, { closeOnSelect: !1, placement: "bottom-start", children: [
|
|
270
|
+
h,
|
|
271
|
+
A
|
|
272
|
+
] }), e[50] = A, e[51] = h, e[52] = M) : M = e[52], M;
|
|
273
|
+
}
|
|
274
|
+
function ze(e) {
|
|
275
|
+
return e.stopPropagation();
|
|
276
|
+
}
|
|
277
|
+
function He(e) {
|
|
278
|
+
return e.stopPropagation();
|
|
279
|
+
}
|
|
280
|
+
function _e(e) {
|
|
281
|
+
const {
|
|
282
|
+
editor: n
|
|
283
|
+
} = e;
|
|
284
|
+
if (!n)
|
|
285
|
+
return "";
|
|
286
|
+
const {
|
|
287
|
+
from: i,
|
|
288
|
+
to: t
|
|
289
|
+
} = n.state.selection;
|
|
290
|
+
return n.state.doc.textBetween(i, t, " ");
|
|
291
|
+
}
|
|
292
|
+
function $e(e) {
|
|
293
|
+
const {
|
|
294
|
+
editor: n
|
|
295
|
+
} = e;
|
|
296
|
+
return n ? n.getAttributes("link").href ?? "" : "";
|
|
190
297
|
}
|
|
191
298
|
export {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
299
|
+
Ye as Bold,
|
|
300
|
+
tt as BulletList,
|
|
301
|
+
it as Heading1,
|
|
302
|
+
lt as Heading2,
|
|
303
|
+
ot as Heading3,
|
|
304
|
+
rt as Heading4,
|
|
305
|
+
Ze as Italic,
|
|
306
|
+
ct as LinkControl,
|
|
307
|
+
nt as OrderedList,
|
|
308
|
+
et as Underline
|
|
202
309
|
};
|