@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,8 +1,9 @@
|
|
|
1
|
-
import { Node as g, wrappingInputRule as b, mergeAttributes as L, renderNestedMarkdownContent as $, Extension as
|
|
1
|
+
import { Node as g, wrappingInputRule as b, mergeAttributes as L, renderNestedMarkdownContent as $, Extension as A, isNodeActive as I, isAtStartOfNode as j, isAtEndOfNode as K, getNodeAtPosition as z, getNodeType as B, getRenderedAttributes as V, parseIndentedBlocks as w } from "../../core/dist/index.js";
|
|
2
|
+
import { Fragment as X } from "../../../prosemirror-model/dist/index.js";
|
|
2
3
|
var F = Object.defineProperty, G = (t, e) => {
|
|
3
4
|
for (var s in e)
|
|
4
5
|
F(t, s, { get: e[s], enumerable: !0 });
|
|
5
|
-
}, W = "listItem",
|
|
6
|
+
}, W = "listItem", C = "textStyle", N = /^\s*([-+*])\s$/, q = g.create({
|
|
6
7
|
name: "bulletList",
|
|
7
8
|
addOptions() {
|
|
8
9
|
return {
|
|
@@ -34,7 +35,7 @@ var F = Object.defineProperty, G = (t, e) => {
|
|
|
34
35
|
},
|
|
35
36
|
addCommands() {
|
|
36
37
|
return {
|
|
37
|
-
toggleBulletList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(W, this.editor.getAttributes(
|
|
38
|
+
toggleBulletList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(W, this.editor.getAttributes(C)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
|
|
38
39
|
};
|
|
39
40
|
},
|
|
40
41
|
addKeyboardShortcuts() {
|
|
@@ -44,25 +45,83 @@ var F = Object.defineProperty, G = (t, e) => {
|
|
|
44
45
|
},
|
|
45
46
|
addInputRules() {
|
|
46
47
|
let t = b({
|
|
47
|
-
find:
|
|
48
|
+
find: N,
|
|
48
49
|
type: this.type
|
|
49
50
|
});
|
|
50
51
|
return (this.options.keepMarks || this.options.keepAttributes) && (t = b({
|
|
51
|
-
find:
|
|
52
|
+
find: N,
|
|
52
53
|
type: this.type,
|
|
53
54
|
keepMarks: this.options.keepMarks,
|
|
54
55
|
keepAttributes: this.options.keepAttributes,
|
|
55
|
-
getAttributes: () => this.editor.getAttributes(
|
|
56
|
+
getAttributes: () => this.editor.getAttributes(C),
|
|
56
57
|
editor: this.editor
|
|
57
58
|
})), [t];
|
|
58
59
|
}
|
|
60
|
+
}), Y = (t, e, s) => {
|
|
61
|
+
const { selection: r } = t;
|
|
62
|
+
if (!r.empty)
|
|
63
|
+
return null;
|
|
64
|
+
const { $from: n } = r;
|
|
65
|
+
if (!n.parent.isTextblock || n.parentOffset !== n.parent.content.size)
|
|
66
|
+
return null;
|
|
67
|
+
let i = -1;
|
|
68
|
+
for (let d = n.depth; d > 0; d -= 1)
|
|
69
|
+
if (n.node(d).type.name === e) {
|
|
70
|
+
i = d;
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
if (i < 0)
|
|
74
|
+
return null;
|
|
75
|
+
const l = n.node(i), o = n.index(i);
|
|
76
|
+
if (o + 1 >= l.childCount)
|
|
77
|
+
return null;
|
|
78
|
+
const p = l.child(o + 1);
|
|
79
|
+
if (!s.includes(p.type.name))
|
|
80
|
+
return null;
|
|
81
|
+
const h = t.schema.nodes[e];
|
|
82
|
+
let c = !1;
|
|
83
|
+
if (p.forEach((d) => {
|
|
84
|
+
d.type === h && d.childCount > 1 && (c = !0);
|
|
85
|
+
}), !c)
|
|
86
|
+
return null;
|
|
87
|
+
const a = t.doc.resolve(n.after()).nodeAfter;
|
|
88
|
+
if (!a || !s.includes(a.type.name))
|
|
89
|
+
return null;
|
|
90
|
+
const u = [];
|
|
91
|
+
return a.forEach((d) => {
|
|
92
|
+
u.push(d);
|
|
93
|
+
}), u.length === 0 ? null : {
|
|
94
|
+
listItemDepth: i,
|
|
95
|
+
nestedList: a,
|
|
96
|
+
nestedListPos: n.after(),
|
|
97
|
+
insertPos: n.after(i),
|
|
98
|
+
items: u
|
|
99
|
+
};
|
|
100
|
+
}, J = (t, e, s, r) => {
|
|
101
|
+
const n = Y(t, s, r);
|
|
102
|
+
if (!n)
|
|
103
|
+
return !1;
|
|
104
|
+
const { selection: i } = t, { nestedList: l, nestedListPos: o, insertPos: p, items: h } = n, c = t.tr;
|
|
105
|
+
c.delete(o, o + l.nodeSize);
|
|
106
|
+
const a = c.mapping.map(p);
|
|
107
|
+
return c.insert(a, X.from(h)), c.setSelection(i.map(c.doc, c.mapping)), e && e(c), !0;
|
|
108
|
+
}, Q = (t, e, s) => J(t.state, t.view.dispatch, e, s), D = (t, e) => A.create({
|
|
109
|
+
name: `${t}BranchingDeleteKeymap`,
|
|
110
|
+
priority: 101,
|
|
111
|
+
addKeyboardShortcuts() {
|
|
112
|
+
const s = () => Q(this.editor, t, e);
|
|
113
|
+
return {
|
|
114
|
+
Delete: s,
|
|
115
|
+
"Mod-Delete": s
|
|
116
|
+
};
|
|
117
|
+
}
|
|
59
118
|
});
|
|
60
|
-
function
|
|
119
|
+
function U(t) {
|
|
61
120
|
var e, s;
|
|
62
|
-
const
|
|
63
|
-
return !!(t.text && ((s = t.tokens) == null ? void 0 : s.length) === 1 &&
|
|
121
|
+
const r = (e = t.tokens) == null ? void 0 : e[0];
|
|
122
|
+
return !!(t.text && ((s = t.tokens) == null ? void 0 : s.length) === 1 && r?.type === "list" && r.ordered && r.raw === t.text);
|
|
64
123
|
}
|
|
65
|
-
function
|
|
124
|
+
function Z(t, e) {
|
|
66
125
|
return e.tokenizeInline ? e.parseInline(e.tokenizeInline(t)) : e.parseInline([
|
|
67
126
|
{
|
|
68
127
|
type: "text",
|
|
@@ -71,7 +130,7 @@ function J(t, e) {
|
|
|
71
130
|
}
|
|
72
131
|
]);
|
|
73
132
|
}
|
|
74
|
-
var
|
|
133
|
+
var tt = g.create({
|
|
75
134
|
name: "listItem",
|
|
76
135
|
addOptions() {
|
|
77
136
|
return {
|
|
@@ -97,56 +156,64 @@ var Q = g.create({
|
|
|
97
156
|
var s;
|
|
98
157
|
if (t.type !== "list_item")
|
|
99
158
|
return [];
|
|
100
|
-
const
|
|
101
|
-
let
|
|
159
|
+
const r = (s = e.parseBlockChildren) != null ? s : e.parseChildren;
|
|
160
|
+
let n = [];
|
|
102
161
|
if (t.tokens && t.tokens.length > 0) {
|
|
103
|
-
if (
|
|
162
|
+
if (U(t))
|
|
104
163
|
return {
|
|
105
164
|
type: "listItem",
|
|
106
165
|
content: [
|
|
107
166
|
{
|
|
108
167
|
type: "paragraph",
|
|
109
|
-
content:
|
|
168
|
+
content: Z(t.text || "", e)
|
|
110
169
|
}
|
|
111
170
|
]
|
|
112
171
|
};
|
|
113
|
-
if (t.tokens.some((
|
|
114
|
-
|
|
172
|
+
if (t.tokens.some((l) => l.type === "paragraph"))
|
|
173
|
+
n = r(t.tokens);
|
|
115
174
|
else {
|
|
116
|
-
const
|
|
117
|
-
if (
|
|
118
|
-
if (
|
|
175
|
+
const l = t.tokens[0];
|
|
176
|
+
if (l && l.type === "text" && l.tokens && l.tokens.length > 0) {
|
|
177
|
+
if (n = [
|
|
119
178
|
{
|
|
120
179
|
type: "paragraph",
|
|
121
|
-
content: e.parseInline(
|
|
180
|
+
content: e.parseInline(l.tokens)
|
|
122
181
|
}
|
|
123
182
|
], t.tokens.length > 1) {
|
|
124
|
-
const p = t.tokens.slice(1), h =
|
|
125
|
-
|
|
183
|
+
const p = t.tokens.slice(1), h = r(p);
|
|
184
|
+
n.push(...h);
|
|
126
185
|
}
|
|
127
186
|
} else
|
|
128
|
-
|
|
187
|
+
n = r(t.tokens);
|
|
129
188
|
}
|
|
130
189
|
}
|
|
131
|
-
return
|
|
190
|
+
return n.length === 0 && (n = [
|
|
132
191
|
{
|
|
133
192
|
type: "paragraph",
|
|
134
193
|
content: []
|
|
135
194
|
}
|
|
136
195
|
]), {
|
|
137
196
|
type: "listItem",
|
|
138
|
-
content:
|
|
197
|
+
content: n
|
|
139
198
|
};
|
|
140
199
|
},
|
|
141
200
|
renderMarkdown: (t, e, s) => $(
|
|
142
201
|
t,
|
|
143
202
|
e,
|
|
144
|
-
(
|
|
145
|
-
var
|
|
146
|
-
return
|
|
203
|
+
(r) => {
|
|
204
|
+
var n, i;
|
|
205
|
+
return r.parentType === "bulletList" ? "- " : r.parentType === "orderedList" ? `${(((i = (n = r.meta) == null ? void 0 : n.parentAttrs) == null ? void 0 : i.start) || 1) + r.index}. ` : "- ";
|
|
147
206
|
},
|
|
148
207
|
s
|
|
149
208
|
),
|
|
209
|
+
addExtensions() {
|
|
210
|
+
return [
|
|
211
|
+
D(this.name, [
|
|
212
|
+
this.options.bulletListTypeName,
|
|
213
|
+
this.options.orderedListTypeName
|
|
214
|
+
])
|
|
215
|
+
];
|
|
216
|
+
},
|
|
150
217
|
addKeyboardShortcuts() {
|
|
151
218
|
return {
|
|
152
219
|
Enter: () => this.editor.commands.splitListItem(this.name),
|
|
@@ -154,85 +221,79 @@ var Q = g.create({
|
|
|
154
221
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
155
222
|
};
|
|
156
223
|
}
|
|
157
|
-
}),
|
|
158
|
-
G(
|
|
224
|
+
}), et = {};
|
|
225
|
+
G(et, {
|
|
159
226
|
findListItemPos: () => y,
|
|
160
|
-
getNextListDepth: () =>
|
|
227
|
+
getNextListDepth: () => M,
|
|
161
228
|
handleBackspace: () => T,
|
|
162
|
-
handleDelete: () =>
|
|
163
|
-
hasListBefore: () =>
|
|
164
|
-
hasListItemAfter: () =>
|
|
165
|
-
hasListItemBefore: () =>
|
|
166
|
-
listItemHasSubList: () =>
|
|
167
|
-
nextListIsDeeper: () =>
|
|
168
|
-
nextListIsHigher: () =>
|
|
229
|
+
handleDelete: () => x,
|
|
230
|
+
hasListBefore: () => O,
|
|
231
|
+
hasListItemAfter: () => st,
|
|
232
|
+
hasListItemBefore: () => nt,
|
|
233
|
+
listItemHasSubList: () => rt,
|
|
234
|
+
nextListIsDeeper: () => P,
|
|
235
|
+
nextListIsHigher: () => _
|
|
169
236
|
});
|
|
170
237
|
var y = (t, e) => {
|
|
171
|
-
const { $from: s } = e.selection,
|
|
172
|
-
let
|
|
173
|
-
for (; i > 0 &&
|
|
174
|
-
|
|
175
|
-
return
|
|
176
|
-
},
|
|
238
|
+
const { $from: s } = e.selection, r = B(t, e.schema);
|
|
239
|
+
let n = null, i = s.depth, l = s.pos, o = null;
|
|
240
|
+
for (; i > 0 && o === null; )
|
|
241
|
+
n = s.node(i), n.type === r ? o = i : (i -= 1, l -= 1);
|
|
242
|
+
return o === null ? null : { $pos: e.doc.resolve(l), depth: o };
|
|
243
|
+
}, M = (t, e) => {
|
|
177
244
|
const s = y(t, e);
|
|
178
245
|
if (!s)
|
|
179
246
|
return !1;
|
|
180
|
-
const [,
|
|
181
|
-
return
|
|
182
|
-
},
|
|
183
|
-
const { $anchor:
|
|
247
|
+
const [, r] = z(e, t, s.$pos.pos + 4);
|
|
248
|
+
return r;
|
|
249
|
+
}, O = (t, e, s) => {
|
|
250
|
+
const { $anchor: r } = t.selection, n = Math.max(0, r.pos - 2), i = t.doc.resolve(n).node();
|
|
184
251
|
return !(!i || !s.includes(i.type.name));
|
|
185
|
-
}, B = (t, e) => {
|
|
186
|
-
var s;
|
|
187
|
-
const { $anchor: n } = e.selection, r = e.doc.resolve(n.pos - 2);
|
|
188
|
-
return !(r.index() === 0 || ((s = r.nodeBefore) == null ? void 0 : s.type.name) !== t);
|
|
189
|
-
}, P = (t, e, s) => {
|
|
190
|
-
if (!s)
|
|
191
|
-
return !1;
|
|
192
|
-
const n = O(t, e.schema);
|
|
193
|
-
let r = !1;
|
|
194
|
-
return s.descendants((i) => {
|
|
195
|
-
i.type === n && (r = !0);
|
|
196
|
-
}), r;
|
|
197
252
|
}, T = (t, e, s) => {
|
|
198
253
|
if (t.commands.undoInputRule())
|
|
199
254
|
return !0;
|
|
200
255
|
if (t.state.selection.from !== t.state.selection.to)
|
|
201
256
|
return !1;
|
|
202
|
-
if (!I(t.state, e) &&
|
|
203
|
-
const { $anchor:
|
|
204
|
-
|
|
205
|
-
|
|
257
|
+
if (!I(t.state, e) && O(t.state, e, s)) {
|
|
258
|
+
const { $anchor: r } = t.state.selection, n = t.state.doc.resolve(r.before() - 1), i = [];
|
|
259
|
+
n.node().descendants((p, h) => {
|
|
260
|
+
p.type.name === e && i.push({ node: p, pos: h });
|
|
206
261
|
});
|
|
207
|
-
const
|
|
208
|
-
if (!
|
|
262
|
+
const l = i.at(-1);
|
|
263
|
+
if (!l)
|
|
209
264
|
return !1;
|
|
210
|
-
const o = t.state.doc.resolve(
|
|
211
|
-
return t.chain().cut({ from:
|
|
265
|
+
const o = t.state.doc.resolve(n.start() + l.pos + 1);
|
|
266
|
+
return t.chain().cut({ from: r.start() - 1, to: r.end() + 1 }, o.end()).joinForward().run();
|
|
212
267
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
const
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
const
|
|
219
|
-
return
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
return !n || !s ? !1 : s > n.depth;
|
|
223
|
-
}, j = (t, e) => {
|
|
224
|
-
const s = A(t, e), n = y(t, e);
|
|
225
|
-
return !n || !s ? !1 : s < n.depth;
|
|
226
|
-
}, M = (t, e) => {
|
|
227
|
-
if (!I(t.state, e) || !z(t.state, e))
|
|
268
|
+
return !I(t.state, e) || !j(t.state) ? !1 : t.chain().liftListItem(e).run();
|
|
269
|
+
}, P = (t, e) => {
|
|
270
|
+
const s = M(t, e), r = y(t, e);
|
|
271
|
+
return !r || !s ? !1 : s > r.depth;
|
|
272
|
+
}, _ = (t, e) => {
|
|
273
|
+
const s = M(t, e), r = y(t, e);
|
|
274
|
+
return !r || !s ? !1 : s < r.depth;
|
|
275
|
+
}, x = (t, e) => {
|
|
276
|
+
if (!I(t.state, e) || !K(t.state, e))
|
|
228
277
|
return !1;
|
|
229
|
-
const { selection: s } = t.state, { $from:
|
|
230
|
-
return !s.empty &&
|
|
231
|
-
},
|
|
278
|
+
const { selection: s } = t.state, { $from: r, $to: n } = s;
|
|
279
|
+
return !s.empty && r.sameParent(n) ? !1 : P(e, t.state) ? t.chain().focus(t.state.selection.from + 4).lift(e).joinBackward().run() : _(e, t.state) ? t.chain().joinForward().joinBackward().run() : t.commands.joinItemForward();
|
|
280
|
+
}, st = (t, e) => {
|
|
232
281
|
var s;
|
|
233
|
-
const { $anchor:
|
|
234
|
-
return !(
|
|
235
|
-
},
|
|
282
|
+
const { $anchor: r } = e.selection, n = e.doc.resolve(r.pos - r.parentOffset - 2);
|
|
283
|
+
return !(n.index() === n.parent.childCount - 1 || ((s = n.nodeAfter) == null ? void 0 : s.type.name) !== t);
|
|
284
|
+
}, nt = (t, e) => {
|
|
285
|
+
var s;
|
|
286
|
+
const { $anchor: r } = e.selection, n = e.doc.resolve(r.pos - 2);
|
|
287
|
+
return !(n.index() === 0 || ((s = n.nodeBefore) == null ? void 0 : s.type.name) !== t);
|
|
288
|
+
}, rt = (t, e, s) => {
|
|
289
|
+
if (!s)
|
|
290
|
+
return !1;
|
|
291
|
+
const r = B(t, e.schema);
|
|
292
|
+
let n = !1;
|
|
293
|
+
return s.descendants((i) => {
|
|
294
|
+
i.type === r && (n = !0);
|
|
295
|
+
}), n;
|
|
296
|
+
}, it = A.create({
|
|
236
297
|
name: "listKeymap",
|
|
237
298
|
addOptions() {
|
|
238
299
|
return {
|
|
@@ -253,31 +314,31 @@ var y = (t, e) => {
|
|
|
253
314
|
Delete: ({ editor: t }) => {
|
|
254
315
|
let e = !1;
|
|
255
316
|
return this.options.listTypes.forEach(({ itemName: s }) => {
|
|
256
|
-
t.state.schema.nodes[s] !== void 0 &&
|
|
317
|
+
t.state.schema.nodes[s] !== void 0 && x(t, s) && (e = !0);
|
|
257
318
|
}), e;
|
|
258
319
|
},
|
|
259
320
|
"Mod-Delete": ({ editor: t }) => {
|
|
260
321
|
let e = !1;
|
|
261
322
|
return this.options.listTypes.forEach(({ itemName: s }) => {
|
|
262
|
-
t.state.schema.nodes[s] !== void 0 &&
|
|
323
|
+
t.state.schema.nodes[s] !== void 0 && x(t, s) && (e = !0);
|
|
263
324
|
}), e;
|
|
264
325
|
},
|
|
265
326
|
Backspace: ({ editor: t }) => {
|
|
266
327
|
let e = !1;
|
|
267
|
-
return this.options.listTypes.forEach(({ itemName: s, wrapperNames:
|
|
268
|
-
t.state.schema.nodes[s] !== void 0 && T(t, s,
|
|
328
|
+
return this.options.listTypes.forEach(({ itemName: s, wrapperNames: r }) => {
|
|
329
|
+
t.state.schema.nodes[s] !== void 0 && T(t, s, r) && (e = !0);
|
|
269
330
|
}), e;
|
|
270
331
|
},
|
|
271
332
|
"Mod-Backspace": ({ editor: t }) => {
|
|
272
333
|
let e = !1;
|
|
273
|
-
return this.options.listTypes.forEach(({ itemName: s, wrapperNames:
|
|
274
|
-
t.state.schema.nodes[s] !== void 0 && T(t, s,
|
|
334
|
+
return this.options.listTypes.forEach(({ itemName: s, wrapperNames: r }) => {
|
|
335
|
+
t.state.schema.nodes[s] !== void 0 && T(t, s, r) && (e = !0);
|
|
275
336
|
}), e;
|
|
276
337
|
}
|
|
277
338
|
};
|
|
278
339
|
}
|
|
279
|
-
}),
|
|
280
|
-
function
|
|
340
|
+
}), E = /^(\s*)(\d+)\.\s+(.*)$/, ot = /^\s/;
|
|
341
|
+
function at(t) {
|
|
281
342
|
const e = t.trimStart();
|
|
282
343
|
return (
|
|
283
344
|
// oxlint-disable-next-line prefer-string-starts-ends-with
|
|
@@ -288,134 +349,134 @@ function st(t) {
|
|
|
288
349
|
/^~~~/.test(e)
|
|
289
350
|
);
|
|
290
351
|
}
|
|
291
|
-
function
|
|
352
|
+
function lt(t) {
|
|
292
353
|
const e = [], s = [];
|
|
293
|
-
let
|
|
294
|
-
return t.forEach((
|
|
295
|
-
if (
|
|
296
|
-
s.push(
|
|
354
|
+
let r = !1;
|
|
355
|
+
return t.forEach((n) => {
|
|
356
|
+
if (r) {
|
|
357
|
+
s.push(n);
|
|
297
358
|
return;
|
|
298
359
|
}
|
|
299
|
-
if (
|
|
300
|
-
|
|
360
|
+
if (n.trim() === "") {
|
|
361
|
+
r = !0, s.push(n);
|
|
301
362
|
return;
|
|
302
363
|
}
|
|
303
|
-
if (e.length > 0 &&
|
|
304
|
-
|
|
364
|
+
if (e.length > 0 && at(n)) {
|
|
365
|
+
r = !0, s.push(n);
|
|
305
366
|
return;
|
|
306
367
|
}
|
|
307
|
-
e.push(
|
|
368
|
+
e.push(n);
|
|
308
369
|
}), {
|
|
309
370
|
paragraphLines: e,
|
|
310
371
|
blockLines: s
|
|
311
372
|
};
|
|
312
373
|
}
|
|
313
|
-
function
|
|
374
|
+
function ut(t) {
|
|
314
375
|
const e = [];
|
|
315
|
-
let s = 0,
|
|
376
|
+
let s = 0, r = 0;
|
|
316
377
|
for (; s < t.length; ) {
|
|
317
|
-
const
|
|
378
|
+
const n = t[s], i = n.match(E);
|
|
318
379
|
if (!i)
|
|
319
380
|
break;
|
|
320
|
-
const [,
|
|
321
|
-
let
|
|
322
|
-
const
|
|
323
|
-
let
|
|
324
|
-
for (;
|
|
325
|
-
const
|
|
326
|
-
if (
|
|
381
|
+
const [, l, o, p] = i, h = l.length, c = [p];
|
|
382
|
+
let a = s + 1;
|
|
383
|
+
const u = [n];
|
|
384
|
+
let d = !1;
|
|
385
|
+
for (; a < t.length; ) {
|
|
386
|
+
const m = t[a];
|
|
387
|
+
if (m.match(E))
|
|
327
388
|
break;
|
|
328
|
-
if (
|
|
329
|
-
|
|
330
|
-
else if (
|
|
331
|
-
|
|
389
|
+
if (m.trim() === "")
|
|
390
|
+
u.push(m), c.push(""), d = !0, a += 1;
|
|
391
|
+
else if (m.match(ot))
|
|
392
|
+
u.push(m), c.push(m.slice(h + 2)), a += 1;
|
|
332
393
|
else {
|
|
333
|
-
if (
|
|
394
|
+
if (d)
|
|
334
395
|
break;
|
|
335
|
-
|
|
396
|
+
u.push(m), c.push(m), a += 1;
|
|
336
397
|
}
|
|
337
398
|
}
|
|
338
399
|
e.push({
|
|
339
400
|
indent: h,
|
|
340
|
-
number: parseInt(
|
|
341
|
-
content:
|
|
401
|
+
number: parseInt(o, 10),
|
|
402
|
+
content: c.join(`
|
|
342
403
|
`).trim(),
|
|
343
|
-
contentLines:
|
|
344
|
-
raw:
|
|
404
|
+
contentLines: c,
|
|
405
|
+
raw: u.join(`
|
|
345
406
|
`)
|
|
346
|
-
}),
|
|
407
|
+
}), r = a, s = a;
|
|
347
408
|
}
|
|
348
|
-
return [e,
|
|
409
|
+
return [e, r];
|
|
349
410
|
}
|
|
350
411
|
function R(t, e, s) {
|
|
351
|
-
const
|
|
352
|
-
let
|
|
353
|
-
for (;
|
|
354
|
-
const i = t[
|
|
412
|
+
const r = [];
|
|
413
|
+
let n = 0;
|
|
414
|
+
for (; n < t.length; ) {
|
|
415
|
+
const i = t[n];
|
|
355
416
|
if (i.indent === e) {
|
|
356
|
-
const { paragraphLines:
|
|
417
|
+
const { paragraphLines: l, blockLines: o } = lt(i.contentLines), p = l.join(`
|
|
357
418
|
`).trim(), h = [];
|
|
358
419
|
p && h.push({
|
|
359
420
|
type: "paragraph",
|
|
360
421
|
raw: p,
|
|
361
422
|
tokens: s.inlineTokens(p)
|
|
362
423
|
});
|
|
363
|
-
const
|
|
424
|
+
const c = o.join(`
|
|
364
425
|
`).trim();
|
|
365
|
-
if (
|
|
366
|
-
const
|
|
367
|
-
h.push(...
|
|
426
|
+
if (c) {
|
|
427
|
+
const d = s.blockTokens(c);
|
|
428
|
+
h.push(...d);
|
|
368
429
|
}
|
|
369
|
-
let
|
|
370
|
-
const
|
|
371
|
-
for (;
|
|
372
|
-
|
|
373
|
-
if (
|
|
374
|
-
const
|
|
430
|
+
let a = n + 1;
|
|
431
|
+
const u = [];
|
|
432
|
+
for (; a < t.length && t[a].indent > e; )
|
|
433
|
+
u.push(t[a]), a += 1;
|
|
434
|
+
if (u.length > 0) {
|
|
435
|
+
const d = Math.min(...u.map((f) => f.indent)), m = R(u, d, s);
|
|
375
436
|
h.push({
|
|
376
437
|
type: "list",
|
|
377
438
|
ordered: !0,
|
|
378
|
-
start:
|
|
379
|
-
items:
|
|
380
|
-
raw:
|
|
439
|
+
start: u[0].number,
|
|
440
|
+
items: m,
|
|
441
|
+
raw: u.map((f) => f.raw).join(`
|
|
381
442
|
`)
|
|
382
443
|
});
|
|
383
444
|
}
|
|
384
|
-
|
|
445
|
+
r.push({
|
|
385
446
|
type: "list_item",
|
|
386
447
|
raw: i.raw,
|
|
387
448
|
tokens: h
|
|
388
|
-
}),
|
|
449
|
+
}), n = a;
|
|
389
450
|
} else
|
|
390
|
-
|
|
451
|
+
n += 1;
|
|
391
452
|
}
|
|
392
|
-
return
|
|
453
|
+
return r;
|
|
393
454
|
}
|
|
394
|
-
function
|
|
455
|
+
function dt(t, e) {
|
|
395
456
|
return t.map((s) => {
|
|
396
457
|
if (s.type !== "list_item")
|
|
397
458
|
return e.parseChildren([s])[0];
|
|
398
|
-
const
|
|
399
|
-
return s.tokens && s.tokens.length > 0 && s.tokens.forEach((
|
|
400
|
-
if (
|
|
401
|
-
|
|
402
|
-
else if (
|
|
403
|
-
const i = e.parseChildren([
|
|
404
|
-
|
|
459
|
+
const r = [];
|
|
460
|
+
return s.tokens && s.tokens.length > 0 && s.tokens.forEach((n) => {
|
|
461
|
+
if (n.type === "paragraph" || n.type === "list" || n.type === "blockquote" || n.type === "code")
|
|
462
|
+
r.push(...e.parseChildren([n]));
|
|
463
|
+
else if (n.type === "text" && n.tokens) {
|
|
464
|
+
const i = e.parseChildren([n]);
|
|
465
|
+
r.push({
|
|
405
466
|
type: "paragraph",
|
|
406
467
|
content: i
|
|
407
468
|
});
|
|
408
469
|
} else {
|
|
409
|
-
const i = e.parseChildren([
|
|
410
|
-
i.length > 0 &&
|
|
470
|
+
const i = e.parseChildren([n]);
|
|
471
|
+
i.length > 0 && r.push(...i);
|
|
411
472
|
}
|
|
412
473
|
}), {
|
|
413
474
|
type: "listItem",
|
|
414
|
-
content:
|
|
475
|
+
content: r
|
|
415
476
|
};
|
|
416
477
|
});
|
|
417
478
|
}
|
|
418
|
-
var
|
|
479
|
+
var ct = "listItem", H = "textStyle", S = /^(\d+)\.\s$/, pt = g.create({
|
|
419
480
|
name: "orderedList",
|
|
420
481
|
addOptions() {
|
|
421
482
|
return {
|
|
@@ -456,14 +517,14 @@ var at = "listItem", E = "textStyle", H = /^(\d+)\.\s$/, ot = g.create({
|
|
|
456
517
|
parseMarkdown: (t, e) => {
|
|
457
518
|
if (t.type !== "list" || !t.ordered)
|
|
458
519
|
return [];
|
|
459
|
-
const s = t.start || 1,
|
|
520
|
+
const s = t.start || 1, r = t.items ? dt(t.items, e) : [];
|
|
460
521
|
return s !== 1 ? {
|
|
461
522
|
type: "orderedList",
|
|
462
523
|
attrs: { start: s },
|
|
463
|
-
content:
|
|
524
|
+
content: r
|
|
464
525
|
} : {
|
|
465
526
|
type: "orderedList",
|
|
466
|
-
content:
|
|
527
|
+
content: r
|
|
467
528
|
};
|
|
468
529
|
},
|
|
469
530
|
renderMarkdown: (t, e) => t.content ? e.renderChildren(t.content, `
|
|
@@ -476,18 +537,18 @@ var at = "listItem", E = "textStyle", H = /^(\d+)\.\s$/, ot = g.create({
|
|
|
476
537
|
return s !== void 0 ? s : -1;
|
|
477
538
|
},
|
|
478
539
|
tokenize: (t, e, s) => {
|
|
479
|
-
var
|
|
480
|
-
const
|
|
481
|
-
`), [i,
|
|
540
|
+
var r;
|
|
541
|
+
const n = t.split(`
|
|
542
|
+
`), [i, l] = ut(n);
|
|
482
543
|
if (i.length === 0)
|
|
483
544
|
return;
|
|
484
|
-
const
|
|
485
|
-
return
|
|
545
|
+
const o = R(i, 0, s);
|
|
546
|
+
return o.length === 0 ? void 0 : {
|
|
486
547
|
type: "list",
|
|
487
548
|
ordered: !0,
|
|
488
|
-
start: ((
|
|
489
|
-
items:
|
|
490
|
-
raw:
|
|
549
|
+
start: ((r = i[0]) == null ? void 0 : r.number) || 1,
|
|
550
|
+
items: o,
|
|
551
|
+
raw: n.slice(0, l).join(`
|
|
491
552
|
`)
|
|
492
553
|
};
|
|
493
554
|
}
|
|
@@ -497,7 +558,7 @@ var at = "listItem", E = "textStyle", H = /^(\d+)\.\s$/, ot = g.create({
|
|
|
497
558
|
},
|
|
498
559
|
addCommands() {
|
|
499
560
|
return {
|
|
500
|
-
toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(
|
|
561
|
+
toggleOrderedList: () => ({ commands: t, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(ct, this.editor.getAttributes(H)).run() : t.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
|
|
501
562
|
};
|
|
502
563
|
},
|
|
503
564
|
addKeyboardShortcuts() {
|
|
@@ -507,22 +568,22 @@ var at = "listItem", E = "textStyle", H = /^(\d+)\.\s$/, ot = g.create({
|
|
|
507
568
|
},
|
|
508
569
|
addInputRules() {
|
|
509
570
|
let t = b({
|
|
510
|
-
find:
|
|
571
|
+
find: S,
|
|
511
572
|
type: this.type,
|
|
512
573
|
getAttributes: (e) => ({ start: +e[1] }),
|
|
513
574
|
joinPredicate: (e, s) => s.childCount + s.attrs.start === +e[1]
|
|
514
575
|
});
|
|
515
576
|
return (this.options.keepMarks || this.options.keepAttributes) && (t = b({
|
|
516
|
-
find:
|
|
577
|
+
find: S,
|
|
517
578
|
type: this.type,
|
|
518
579
|
keepMarks: this.options.keepMarks,
|
|
519
580
|
keepAttributes: this.options.keepAttributes,
|
|
520
|
-
getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(
|
|
581
|
+
getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(H) }),
|
|
521
582
|
joinPredicate: (e, s) => s.childCount + s.attrs.start === +e[1],
|
|
522
583
|
editor: this.editor
|
|
523
584
|
})), [t];
|
|
524
585
|
}
|
|
525
|
-
}),
|
|
586
|
+
}), ht = /^\s*(\[([( |x])?\])\s$/, mt = g.create({
|
|
526
587
|
name: "taskItem",
|
|
527
588
|
addOptions() {
|
|
528
589
|
return {
|
|
@@ -582,15 +643,18 @@ var at = "listItem", E = "textStyle", H = /^(\d+)\.\s$/, ot = g.create({
|
|
|
582
643
|
parseMarkdown: (t, e) => {
|
|
583
644
|
const s = [];
|
|
584
645
|
if (t.tokens && t.tokens.length > 0 ? s.push(e.createNode("paragraph", {}, e.parseInline(t.tokens))) : t.text ? s.push(e.createNode("paragraph", {}, [e.createNode("text", { text: t.text })])) : s.push(e.createNode("paragraph", {}, [])), t.nestedTokens && t.nestedTokens.length > 0) {
|
|
585
|
-
const
|
|
586
|
-
s.push(...
|
|
646
|
+
const r = e.parseChildren(t.nestedTokens);
|
|
647
|
+
s.push(...r);
|
|
587
648
|
}
|
|
588
649
|
return e.createNode("taskItem", { checked: t.checked || !1 }, s);
|
|
589
650
|
},
|
|
590
651
|
renderMarkdown: (t, e) => {
|
|
591
652
|
var s;
|
|
592
|
-
const
|
|
593
|
-
return $(t, e,
|
|
653
|
+
const n = `- [${(s = t.attrs) != null && s.checked ? "x" : " "}] `;
|
|
654
|
+
return $(t, e, n);
|
|
655
|
+
},
|
|
656
|
+
addExtensions() {
|
|
657
|
+
return this.options.nested ? [D(this.name, [this.options.taskListTypeName])] : [];
|
|
594
658
|
},
|
|
595
659
|
addKeyboardShortcuts() {
|
|
596
660
|
const t = {
|
|
@@ -603,46 +667,46 @@ var at = "listItem", E = "textStyle", H = /^(\d+)\.\s$/, ot = g.create({
|
|
|
603
667
|
} : t;
|
|
604
668
|
},
|
|
605
669
|
addNodeView() {
|
|
606
|
-
return ({ node: t, HTMLAttributes: e, getPos: s, editor:
|
|
607
|
-
const
|
|
608
|
-
var
|
|
609
|
-
|
|
670
|
+
return ({ node: t, HTMLAttributes: e, getPos: s, editor: r }) => {
|
|
671
|
+
const n = document.createElement("li"), i = document.createElement("label"), l = document.createElement("span"), o = document.createElement("input"), p = document.createElement("div"), h = (a) => {
|
|
672
|
+
var u, d;
|
|
673
|
+
o.ariaLabel = ((d = (u = this.options.a11y) == null ? void 0 : u.checkboxLabel) == null ? void 0 : d.call(u, a, o.checked)) || `Task item checkbox for ${a.textContent || "empty task item"}`;
|
|
610
674
|
};
|
|
611
|
-
h(t), i.contentEditable = "false",
|
|
612
|
-
if (!
|
|
613
|
-
|
|
675
|
+
h(t), i.contentEditable = "false", o.type = "checkbox", o.addEventListener("mousedown", (a) => a.preventDefault()), o.addEventListener("change", (a) => {
|
|
676
|
+
if (!r.isEditable && !this.options.onReadOnlyChecked) {
|
|
677
|
+
o.checked = !o.checked;
|
|
614
678
|
return;
|
|
615
679
|
}
|
|
616
|
-
const { checked:
|
|
617
|
-
|
|
618
|
-
const
|
|
619
|
-
if (typeof
|
|
680
|
+
const { checked: u } = a.target;
|
|
681
|
+
r.isEditable && typeof s == "function" && r.chain().focus(void 0, { scrollIntoView: !1 }).command(({ tr: d }) => {
|
|
682
|
+
const m = s();
|
|
683
|
+
if (typeof m != "number")
|
|
620
684
|
return !1;
|
|
621
|
-
const f =
|
|
622
|
-
return
|
|
685
|
+
const f = d.doc.nodeAt(m);
|
|
686
|
+
return d.setNodeMarkup(m, void 0, {
|
|
623
687
|
...f?.attrs,
|
|
624
|
-
checked:
|
|
688
|
+
checked: u
|
|
625
689
|
}), !0;
|
|
626
|
-
}).run(), !
|
|
627
|
-
}), Object.entries(this.options.HTMLAttributes).forEach(([
|
|
628
|
-
|
|
629
|
-
}),
|
|
630
|
-
|
|
690
|
+
}).run(), !r.isEditable && this.options.onReadOnlyChecked && (this.options.onReadOnlyChecked(t, u) || (o.checked = !o.checked));
|
|
691
|
+
}), Object.entries(this.options.HTMLAttributes).forEach(([a, u]) => {
|
|
692
|
+
n.setAttribute(a, u);
|
|
693
|
+
}), n.dataset.checked = t.attrs.checked, o.checked = t.attrs.checked, i.append(o, l), n.append(i, p), Object.entries(e).forEach(([a, u]) => {
|
|
694
|
+
n.setAttribute(a, u);
|
|
631
695
|
});
|
|
632
|
-
let
|
|
696
|
+
let c = new Set(Object.keys(e));
|
|
633
697
|
return {
|
|
634
|
-
dom:
|
|
698
|
+
dom: n,
|
|
635
699
|
contentDOM: p,
|
|
636
|
-
update: (
|
|
637
|
-
if (
|
|
700
|
+
update: (a) => {
|
|
701
|
+
if (a.type !== this.type)
|
|
638
702
|
return !1;
|
|
639
|
-
|
|
640
|
-
const
|
|
641
|
-
return
|
|
642
|
-
|
|
643
|
-
}), Object.entries(
|
|
644
|
-
v == null ? k in f ?
|
|
645
|
-
}),
|
|
703
|
+
n.dataset.checked = a.attrs.checked, o.checked = a.attrs.checked, h(a);
|
|
704
|
+
const u = r.extensionManager.attributes, d = V(a, u), m = new Set(Object.keys(d)), f = this.options.HTMLAttributes;
|
|
705
|
+
return c.forEach((k) => {
|
|
706
|
+
m.has(k) || (k in f ? n.setAttribute(k, f[k]) : n.removeAttribute(k));
|
|
707
|
+
}), Object.entries(d).forEach(([k, v]) => {
|
|
708
|
+
v == null ? k in f ? n.setAttribute(k, f[k]) : n.removeAttribute(k) : n.setAttribute(k, v);
|
|
709
|
+
}), c = m, !0;
|
|
646
710
|
}
|
|
647
711
|
};
|
|
648
712
|
};
|
|
@@ -650,7 +714,7 @@ var at = "listItem", E = "textStyle", H = /^(\d+)\.\s$/, ot = g.create({
|
|
|
650
714
|
addInputRules() {
|
|
651
715
|
return [
|
|
652
716
|
b({
|
|
653
|
-
find:
|
|
717
|
+
find: ht,
|
|
654
718
|
type: this.type,
|
|
655
719
|
getAttributes: (t) => ({
|
|
656
720
|
checked: t[t.length - 1] === "x"
|
|
@@ -658,7 +722,7 @@ var at = "listItem", E = "textStyle", H = /^(\d+)\.\s$/, ot = g.create({
|
|
|
658
722
|
})
|
|
659
723
|
];
|
|
660
724
|
}
|
|
661
|
-
}),
|
|
725
|
+
}), ft = g.create({
|
|
662
726
|
name: "taskList",
|
|
663
727
|
addOptions() {
|
|
664
728
|
return {
|
|
@@ -697,39 +761,39 @@ var at = "listItem", E = "textStyle", H = /^(\d+)\.\s$/, ot = g.create({
|
|
|
697
761
|
return s !== void 0 ? s : -1;
|
|
698
762
|
},
|
|
699
763
|
tokenize(t, e, s) {
|
|
700
|
-
const
|
|
701
|
-
const
|
|
764
|
+
const r = (i) => {
|
|
765
|
+
const l = w(
|
|
702
766
|
i,
|
|
703
767
|
{
|
|
704
768
|
itemPattern: /^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,
|
|
705
|
-
extractItemData: (
|
|
706
|
-
indentLevel:
|
|
707
|
-
mainContent:
|
|
708
|
-
checked:
|
|
769
|
+
extractItemData: (o) => ({
|
|
770
|
+
indentLevel: o[1].length,
|
|
771
|
+
mainContent: o[4],
|
|
772
|
+
checked: o[3].toLowerCase() === "x"
|
|
709
773
|
}),
|
|
710
|
-
createToken: (
|
|
774
|
+
createToken: (o, p) => ({
|
|
711
775
|
type: "taskItem",
|
|
712
776
|
raw: "",
|
|
713
|
-
mainContent:
|
|
714
|
-
indentLevel:
|
|
715
|
-
checked:
|
|
716
|
-
text:
|
|
717
|
-
tokens: s.inlineTokens(
|
|
777
|
+
mainContent: o.mainContent,
|
|
778
|
+
indentLevel: o.indentLevel,
|
|
779
|
+
checked: o.checked,
|
|
780
|
+
text: o.mainContent,
|
|
781
|
+
tokens: s.inlineTokens(o.mainContent),
|
|
718
782
|
nestedTokens: p
|
|
719
783
|
}),
|
|
720
784
|
// Allow recursive nesting
|
|
721
|
-
customNestedParser:
|
|
785
|
+
customNestedParser: r
|
|
722
786
|
},
|
|
723
787
|
s
|
|
724
788
|
);
|
|
725
|
-
return
|
|
789
|
+
return l ? [
|
|
726
790
|
{
|
|
727
791
|
type: "taskList",
|
|
728
|
-
raw:
|
|
729
|
-
items:
|
|
792
|
+
raw: l.raw,
|
|
793
|
+
items: l.items
|
|
730
794
|
}
|
|
731
795
|
] : s.blockTokens(i);
|
|
732
|
-
},
|
|
796
|
+
}, n = w(
|
|
733
797
|
t,
|
|
734
798
|
{
|
|
735
799
|
itemPattern: /^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,
|
|
@@ -738,7 +802,7 @@ var at = "listItem", E = "textStyle", H = /^(\d+)\.\s$/, ot = g.create({
|
|
|
738
802
|
mainContent: i[4],
|
|
739
803
|
checked: i[3].toLowerCase() === "x"
|
|
740
804
|
}),
|
|
741
|
-
createToken: (i,
|
|
805
|
+
createToken: (i, l) => ({
|
|
742
806
|
type: "taskItem",
|
|
743
807
|
raw: "",
|
|
744
808
|
mainContent: i.mainContent,
|
|
@@ -746,18 +810,18 @@ var at = "listItem", E = "textStyle", H = /^(\d+)\.\s$/, ot = g.create({
|
|
|
746
810
|
checked: i.checked,
|
|
747
811
|
text: i.mainContent,
|
|
748
812
|
tokens: s.inlineTokens(i.mainContent),
|
|
749
|
-
nestedTokens:
|
|
813
|
+
nestedTokens: l
|
|
750
814
|
}),
|
|
751
815
|
// Use the recursive parser for nested content
|
|
752
|
-
customNestedParser:
|
|
816
|
+
customNestedParser: r
|
|
753
817
|
},
|
|
754
818
|
s
|
|
755
819
|
);
|
|
756
|
-
if (
|
|
820
|
+
if (n)
|
|
757
821
|
return {
|
|
758
822
|
type: "taskList",
|
|
759
|
-
raw:
|
|
760
|
-
items:
|
|
823
|
+
raw: n.raw,
|
|
824
|
+
items: n.items
|
|
761
825
|
};
|
|
762
826
|
}
|
|
763
827
|
},
|
|
@@ -775,22 +839,22 @@ var at = "listItem", E = "textStyle", H = /^(\d+)\.\s$/, ot = g.create({
|
|
|
775
839
|
};
|
|
776
840
|
}
|
|
777
841
|
});
|
|
778
|
-
|
|
842
|
+
A.create({
|
|
779
843
|
name: "listKit",
|
|
780
844
|
addExtensions() {
|
|
781
845
|
const t = [];
|
|
782
|
-
return this.options.bulletList !== !1 && t.push(q.configure(this.options.bulletList)), this.options.listItem !== !1 && t.push(
|
|
846
|
+
return this.options.bulletList !== !1 && t.push(q.configure(this.options.bulletList)), this.options.listItem !== !1 && t.push(tt.configure(this.options.listItem)), this.options.listKeymap !== !1 && t.push(it.configure(this.options.listKeymap)), this.options.orderedList !== !1 && t.push(pt.configure(this.options.orderedList)), this.options.taskItem !== !1 && t.push(mt.configure(this.options.taskItem)), this.options.taskList !== !1 && t.push(ft.configure(this.options.taskList)), t;
|
|
783
847
|
}
|
|
784
848
|
});
|
|
785
849
|
export {
|
|
786
850
|
q as BulletList,
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
851
|
+
tt as ListItem,
|
|
852
|
+
it as ListKeymap,
|
|
853
|
+
pt as OrderedList,
|
|
854
|
+
mt as TaskItem,
|
|
855
|
+
ft as TaskList,
|
|
856
|
+
N as bulletListInputRegex,
|
|
857
|
+
ht as inputRegex,
|
|
858
|
+
et as listHelpers,
|
|
859
|
+
S as orderedListInputRegex
|
|
796
860
|
};
|