@caspeco/casper-ui-library 9.13.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 +244 -262
- package/dist/components/date-picker/date-multi-picker.d.ts +1 -1
- package/dist/components/date-picker/date-multi-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-multi-picker.js +25 -49
- 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 +5 -5
- 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/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/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 +7 -6
|
@@ -19,72 +19,71 @@ const G = ({
|
|
|
19
19
|
onFilterVisibleChange: b,
|
|
20
20
|
onFilterChange: m
|
|
21
21
|
}) => {
|
|
22
|
-
const x = z(), {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
22
|
+
const x = z(), {
|
|
23
|
+
registerTableFilter: g
|
|
24
|
+
} = x, S = x.localeString, h = L[S], [l, a] = R(v), k = I((e, s) => {
|
|
25
|
+
a((o) => {
|
|
26
|
+
const r = o.map((i) => i.filterId === e ? {
|
|
27
|
+
...i,
|
|
28
|
+
selectedItems: s
|
|
29
|
+
} : i), c = r.filter((i) => i.isVisible && i.filterId !== e && i.selectedItems && i.selectedItems.length > 0);
|
|
30
|
+
if (s.length > 0) {
|
|
31
|
+
const i = r.find((t) => t.filterId === e);
|
|
32
|
+
i && m?.([...c.map((t) => ({
|
|
33
|
+
filterId: t.filterId,
|
|
34
|
+
selectedItems: t.selectedItems
|
|
35
|
+
})), {
|
|
36
|
+
filterId: e,
|
|
37
|
+
selectedItems: i.selectedItems
|
|
38
|
+
}]);
|
|
39
|
+
} else
|
|
40
|
+
m?.([...c.map((i) => ({
|
|
41
|
+
filterId: i.filterId,
|
|
42
|
+
selectedItems: i.selectedItems
|
|
43
|
+
}))]);
|
|
44
|
+
return r;
|
|
45
|
+
});
|
|
46
|
+
}, [m, a]), w = I((e, s) => {
|
|
46
47
|
a((o) => o.map((r) => r.filterId === e ? {
|
|
47
48
|
...r,
|
|
48
49
|
items: s
|
|
49
50
|
} : r));
|
|
50
|
-
}, []), p = I(
|
|
51
|
-
(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
if (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
[l, p]
|
|
87
|
-
);
|
|
51
|
+
}, []), p = I((e, s) => {
|
|
52
|
+
a((r) => {
|
|
53
|
+
const c = r.map((t) => t.filterId === e ? {
|
|
54
|
+
...t,
|
|
55
|
+
isVisible: s
|
|
56
|
+
} : t), i = c.find((t) => t.filterId === e);
|
|
57
|
+
if (s) {
|
|
58
|
+
if (i?.selectedItems && i.selectedItems.length > 0) {
|
|
59
|
+
const t = c.filter((d) => d.isVisible && d.filterId !== e && d.selectedItems && d.selectedItems.length > 0);
|
|
60
|
+
m?.([...t.map((d) => ({
|
|
61
|
+
filterId: d.filterId,
|
|
62
|
+
selectedItems: d.selectedItems
|
|
63
|
+
})), {
|
|
64
|
+
filterId: e,
|
|
65
|
+
selectedItems: i.selectedItems
|
|
66
|
+
}]);
|
|
67
|
+
}
|
|
68
|
+
} else
|
|
69
|
+
m?.(c.filter((t) => t.isVisible && t.filterId !== e && t.selectedItems && t.selectedItems.length > 0).map((t) => ({
|
|
70
|
+
filterId: t.filterId,
|
|
71
|
+
selectedItems: t.selectedItems
|
|
72
|
+
})));
|
|
73
|
+
return c;
|
|
74
|
+
});
|
|
75
|
+
const o = l.find((r) => r.filterId === e);
|
|
76
|
+
o && b?.({
|
|
77
|
+
filterId: e,
|
|
78
|
+
isVisible: s,
|
|
79
|
+
items: o.items
|
|
80
|
+
}, (r) => {
|
|
81
|
+
w(e, r);
|
|
82
|
+
});
|
|
83
|
+
}, [l, m, b, w]), V = I((e) => {
|
|
84
|
+
const s = l.find((o) => (o.columnId ?? o.filterId) === e);
|
|
85
|
+
s && p(s.filterId, !s.isVisible);
|
|
86
|
+
}, [l, p]);
|
|
88
87
|
W(() => g({
|
|
89
88
|
onToggleFilterVisibility: V,
|
|
90
89
|
canFilterOnColumn: (s) => l.some((o) => (o.columnId ?? o.filterId) === s)
|
|
@@ -95,46 +94,19 @@ const G = ({
|
|
|
95
94
|
isVisible: !1,
|
|
96
95
|
selectedItems: []
|
|
97
96
|
}))), m?.([]);
|
|
98
|
-
}, [m, a]), M = j(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
p(e, !!s);
|
|
104
|
-
},
|
|
105
|
-
[p]
|
|
106
|
-
);
|
|
97
|
+
}, [m, a]), M = j(() => l.some((e) => e.isVisible), [l]), F = I((e) => ({
|
|
98
|
+
checked: s
|
|
99
|
+
}) => {
|
|
100
|
+
p(e, !!s);
|
|
101
|
+
}, [p]);
|
|
107
102
|
return /* @__PURE__ */ u(f, { width: "100%", overflow: "hidden", children: [
|
|
108
103
|
/* @__PURE__ */ u(f, { shrink: 1, grow: 0, minWidth: 0, gap: T.Medium, children: [
|
|
109
|
-
/* @__PURE__ */ n(f, { maxWidth: "100%", overflowX: "auto", whiteSpace: "nowrap", gap: T.Medium, children: l.filter((e) => e.isVisible).map((e) => /* @__PURE__ */ n(
|
|
110
|
-
O,
|
|
111
|
-
{
|
|
112
|
-
collapsed: !0,
|
|
113
|
-
placeholder: "",
|
|
114
|
-
id: `${e.filterId}-filter`,
|
|
115
|
-
maxVisibleItems: 30,
|
|
116
|
-
label: e.label,
|
|
117
|
-
locale: S,
|
|
118
|
-
width: "285px",
|
|
119
|
-
minWidth: "285px",
|
|
120
|
-
items: e.items,
|
|
121
|
-
selectedItems: e.selectedItems,
|
|
122
|
-
onChange: (s) => k(e.filterId, s),
|
|
123
|
-
footerContent: /* @__PURE__ */ n(C, { variant: "link", size: "xs", onClick: () => k(e.filterId, []), children: /* @__PURE__ */ n(A, { children: h.filterBoxReset }) })
|
|
124
|
-
},
|
|
125
|
-
e.filterId
|
|
126
|
-
)) }),
|
|
104
|
+
/* @__PURE__ */ n(f, { maxWidth: "100%", overflowX: "auto", whiteSpace: "nowrap", gap: T.Medium, children: l.filter((e) => e.isVisible).map((e) => /* @__PURE__ */ n(O, { collapsed: !0, placeholder: "", id: `${e.filterId}-filter`, maxVisibleItems: 30, label: e.label, locale: S, width: "285px", minWidth: "285px", items: e.items, selectedItems: e.selectedItems, onChange: (s) => k(e.filterId, s), footerContent: /* @__PURE__ */ n(C, { variant: "link", size: "xs", onClick: () => k(e.filterId, []), children: /* @__PURE__ */ n(A, { children: h.filterBoxReset }) }) }, e.filterId)) }),
|
|
127
105
|
/* @__PURE__ */ n(f, { shrink: 0, children: /* @__PURE__ */ u(D, { closeOnSelect: !1, offset: [0, 4], children: [
|
|
128
106
|
/* @__PURE__ */ n(E, { flexShrink: 0, leftIcon: H, variant: "ghost", children: h.filterText }),
|
|
129
107
|
/* @__PURE__ */ n(X, { zIndex: 10, maxHeight: "320px", overflowY: "auto", children: l.map((e) => /* @__PURE__ */ u(Y, { value: e.filterId, itemType: "checkbox", children: [
|
|
130
108
|
e.label,
|
|
131
|
-
/* @__PURE__ */ n(
|
|
132
|
-
$,
|
|
133
|
-
{
|
|
134
|
-
isChecked: e.isVisible,
|
|
135
|
-
onCheckedChange: F(e.filterId)
|
|
136
|
-
}
|
|
137
|
-
)
|
|
109
|
+
/* @__PURE__ */ n($, { isChecked: e.isVisible, onCheckedChange: F(e.filterId) })
|
|
138
110
|
] }, e.filterId)) })
|
|
139
111
|
] }) })
|
|
140
112
|
] }),
|
|
@@ -16,7 +16,7 @@ type TableHeaderDropdownProps<TData extends TableData> = {
|
|
|
16
16
|
};
|
|
17
17
|
declare const TableHeaderDropdownComponent: <TData extends TableData>({ header, breakingContentState, onBreakingContentChange, setBreakingContentState, headerGroup, sorting, setSorting, localeString, portalContainerRef, dragRef, }: TableHeaderDropdownProps<TData> & {
|
|
18
18
|
portalContainerRef?: React.RefObject<HTMLElement | null>;
|
|
19
|
-
}) => import("react
|
|
19
|
+
}) => import("react").JSX.Element;
|
|
20
20
|
export declare const TableHeaderDropdown: typeof TableHeaderDropdownComponent;
|
|
21
21
|
export {};
|
|
22
22
|
//# sourceMappingURL=table-header-dropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-header-dropdown.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-header-dropdown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-header-dropdown.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-header-dropdown.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAGN,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAQ,KAAK,GAAG,EAAwB,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,KAAK,OAAO,EAAgB,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnD,KAAK,wBAAwB,CAAC,KAAK,SAAS,SAAS,IAAI;IACxD,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;IACzC,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9C,uBAAuB,CAAC,EAAE,CAAC,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAClF,uBAAuB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK,IAAI,CAAC;IACxF,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;IAC5C,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAC1C,gBAAgB,EAAE,eAAe,CAAC;IAClC,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;CACjC,CAAC;AAEF,QAAA,MAAM,4BAA4B,GAAI,KAAK,SAAS,SAAS,EAAE,kKAW5D,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAAE,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CAAE,gCAsJhG,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAyC,OAAO,4BAA4B,CAAC"}
|
|
@@ -1,137 +1,89 @@
|
|
|
1
|
-
import { jsxs as r, Fragment as
|
|
2
|
-
import { Portal as
|
|
3
|
-
import { flexRender as
|
|
1
|
+
import { jsxs as r, Fragment as d, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Portal as A } from "@chakra-ui/react";
|
|
3
|
+
import { flexRender as k } from "../../node_modules/@tanstack/react-table/build/lib/index.js";
|
|
4
4
|
import { memo as L, useCallback as M, useMemo as p } from "react";
|
|
5
5
|
import { useTableContext as U } from "./table-context.js";
|
|
6
|
-
import { translations as
|
|
7
|
-
import { SortDescIcon as
|
|
8
|
-
import { SortAscIcon as
|
|
6
|
+
import { translations as W } from "./translations.js";
|
|
7
|
+
import { SortDescIcon as S } from "../icon/icons/sort-desc-icon.js";
|
|
8
|
+
import { SortAscIcon as w } from "../icon/icons/sort-asc-icon.js";
|
|
9
|
+
import { Box as X } from "../box/box.js";
|
|
9
10
|
import { MenuItem as l } from "../menu/menu-item.js";
|
|
10
11
|
import { Text as c } from "../text/text.js";
|
|
11
12
|
import { FilterIcon as R } from "../icon/icons/filter-icon.js";
|
|
12
|
-
import { MenuDivider as
|
|
13
|
-
import { HideIcon as
|
|
13
|
+
import { MenuDivider as v } from "../menu/menu-divider.js";
|
|
14
|
+
import { HideIcon as _ } from "../icon/icons/hide-icon.js";
|
|
14
15
|
import { ThumbtackIcon as $ } from "../icon/icons/thumbtack-icon.js";
|
|
15
16
|
import { Switch as q } from "../switch/switch.js";
|
|
16
17
|
import { Menu as J } from "../menu/menu.js";
|
|
17
18
|
import { MenuBoxButton as K } from "../menu/menu-box-button.js";
|
|
18
19
|
import { MenuList as N } from "../menu/menu-list.js";
|
|
19
|
-
import { ThemeIconSizeVariable as D, ThemeColorVariable as
|
|
20
|
+
import { ThemeIconSizeVariable as D, ThemeColorVariable as F, ThemeSpaceVariable as Q, ThemeFontSizeVariable as z } from "../../theme/theme-types.js";
|
|
20
21
|
const Y = ({
|
|
21
|
-
header:
|
|
22
|
+
header: o,
|
|
22
23
|
breakingContentState: m,
|
|
23
24
|
onBreakingContentChange: h,
|
|
24
25
|
setBreakingContentState: g,
|
|
25
26
|
headerGroup: C,
|
|
26
|
-
sorting:
|
|
27
|
+
sorting: u,
|
|
27
28
|
setSorting: f,
|
|
28
|
-
localeString:
|
|
29
|
-
portalContainerRef:
|
|
30
|
-
dragRef:
|
|
29
|
+
localeString: V,
|
|
30
|
+
portalContainerRef: y,
|
|
31
|
+
dragRef: H
|
|
31
32
|
}) => {
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
33
|
+
const e = W[V], B = U(), {
|
|
34
|
+
getTableFilterMethods: s
|
|
35
|
+
} = B, x = M(({
|
|
36
|
+
checked: i
|
|
37
|
+
}) => {
|
|
38
|
+
const t = {
|
|
39
|
+
...m,
|
|
40
|
+
[o.column.id]: i
|
|
41
|
+
};
|
|
42
|
+
g(t), h?.(t);
|
|
43
|
+
}, [m, o.column.id, h, g]), b = M((i) => {
|
|
44
|
+
const t = i.getIndex();
|
|
45
|
+
C.forEach((O) => {
|
|
46
|
+
O.headers.forEach((j, T) => {
|
|
47
|
+
const {
|
|
48
|
+
column: I
|
|
49
|
+
} = j;
|
|
50
|
+
i.getIsPinned() ? T >= t && I.pin(!1) : T <= t && I.pin("left");
|
|
49
51
|
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
),
|
|
66
|
-
/* @__PURE__ */ o(
|
|
67
|
-
l,
|
|
68
|
-
{
|
|
69
|
-
onClick: () => f([{ desc: !0, id: n.column.id }]),
|
|
70
|
-
leftIcon: k,
|
|
71
|
-
value: "sort-desc",
|
|
72
|
-
children: /* @__PURE__ */ o(c, { children: i.sortDown })
|
|
73
|
-
}
|
|
74
|
-
)
|
|
52
|
+
});
|
|
53
|
+
}, [C]), P = p(() => /* @__PURE__ */ r(d, { children: [
|
|
54
|
+
u.find((i) => i.id === o.column.id) && (u.find((i) => i.desc) ? /* @__PURE__ */ n(S, { size: D.XSmall }) : /* @__PURE__ */ n(w, { size: D.XSmall })),
|
|
55
|
+
/* @__PURE__ */ n(X, { minW: 0, overflowWrap: "break-word", children: k(o.column.columnDef.header, o.getContext()) })
|
|
56
|
+
] }), [o, u]), a = p(() => s()?.canFilterOnColumn(o.column.id) ?? !1, [o.column.id, s]), E = p(() => /* @__PURE__ */ r(d, { children: [
|
|
57
|
+
o.column.getCanSort() && /* @__PURE__ */ r(d, { children: [
|
|
58
|
+
/* @__PURE__ */ n(l, { onClick: () => f([{
|
|
59
|
+
desc: !1,
|
|
60
|
+
id: o.column.id
|
|
61
|
+
}]), leftIcon: w, value: "sort-asc", children: /* @__PURE__ */ n(c, { children: e.sortUp }) }),
|
|
62
|
+
/* @__PURE__ */ n(l, { onClick: () => f([{
|
|
63
|
+
desc: !0,
|
|
64
|
+
id: o.column.id
|
|
65
|
+
}]), leftIcon: S, value: "sort-desc", children: /* @__PURE__ */ n(c, { children: e.sortDown }) })
|
|
75
66
|
] }),
|
|
76
|
-
a && /* @__PURE__ */
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
value: "filter",
|
|
85
|
-
children: /* @__PURE__ */ o(c, { children: i.filter })
|
|
86
|
-
}
|
|
87
|
-
),
|
|
88
|
-
(n.column.getCanSort() || a) && /* @__PURE__ */ o(w, {}),
|
|
89
|
-
n.column.getCanHide() && /* @__PURE__ */ o(l, { onClick: n.column.getToggleVisibilityHandler(), leftIcon: W, value: "hide", children: /* @__PURE__ */ o(c, { children: i.hideColumn }) }),
|
|
90
|
-
/* @__PURE__ */ o(l, { onClick: () => x(n.column), leftIcon: $, value: "pin", children: /* @__PURE__ */ o(c, { children: n.column.getIsPinned() ? i.stopPinningColumn : i.pinUpToColumn }) }),
|
|
91
|
-
/* @__PURE__ */ o(w, {}),
|
|
67
|
+
a && /* @__PURE__ */ n(l, { onClick: () => {
|
|
68
|
+
const i = s();
|
|
69
|
+
i?.onToggleFilterVisibility && i.onToggleFilterVisibility(o.column.id);
|
|
70
|
+
}, leftIcon: R, value: "filter", children: /* @__PURE__ */ n(c, { children: e.filter }) }),
|
|
71
|
+
(o.column.getCanSort() || a) && /* @__PURE__ */ n(v, {}),
|
|
72
|
+
o.column.getCanHide() && /* @__PURE__ */ n(l, { onClick: o.column.getToggleVisibilityHandler(), leftIcon: _, value: "hide", children: /* @__PURE__ */ n(c, { children: e.hideColumn }) }),
|
|
73
|
+
/* @__PURE__ */ n(l, { onClick: () => b(o.column), leftIcon: $, value: "pin", children: /* @__PURE__ */ n(c, { children: o.column.getIsPinned() ? e.stopPinningColumn : e.pinUpToColumn }) }),
|
|
74
|
+
/* @__PURE__ */ n(v, {}),
|
|
92
75
|
/* @__PURE__ */ r(l, { itemType: "switch", value: "breaking-content", children: [
|
|
93
|
-
|
|
94
|
-
/* @__PURE__ */ o
|
|
95
|
-
q,
|
|
96
|
-
{
|
|
97
|
-
onCheckedChange: b,
|
|
98
|
-
isChecked: m[n.column.id]
|
|
99
|
-
}
|
|
100
|
-
)
|
|
76
|
+
e.breakingContent,
|
|
77
|
+
/* @__PURE__ */ n(q, { onCheckedChange: x, isChecked: m[o.column.id] })
|
|
101
78
|
] })
|
|
102
|
-
] }), [
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
n.
|
|
108
|
-
b,
|
|
109
|
-
f,
|
|
110
|
-
i
|
|
111
|
-
]);
|
|
112
|
-
return /* @__PURE__ */ o(J, { isLazy: !0, children: ({ isOpen: e }) => /* @__PURE__ */ r(u, { children: [
|
|
113
|
-
/* @__PURE__ */ o(
|
|
114
|
-
K,
|
|
115
|
-
{
|
|
116
|
-
ref: V,
|
|
117
|
-
color: v.OnBackgroundSubdued,
|
|
118
|
-
textTransform: "none",
|
|
119
|
-
fontSize: F.Small,
|
|
120
|
-
h: "40px",
|
|
121
|
-
display: "flex",
|
|
122
|
-
textAlign: "inherit",
|
|
123
|
-
alignItems: "center",
|
|
124
|
-
lineHeight: "1.2",
|
|
125
|
-
padding: `0px 0px 0px ${Q.Small}`,
|
|
126
|
-
backgroundColor: e ? v.BackgroundDisabled : "unset",
|
|
127
|
-
w: "100%",
|
|
128
|
-
overflowWrap: "anywhere",
|
|
129
|
-
children: A(P, n.getContext())
|
|
130
|
-
}
|
|
131
|
-
),
|
|
132
|
-
/* @__PURE__ */ o(j, { container: z, children: /* @__PURE__ */ o(N, { fontSize: F.Medium, children: B }) })
|
|
79
|
+
] }), [m, a, s, b, o.column, x, f, e]);
|
|
80
|
+
return /* @__PURE__ */ n(J, { isLazy: !0, children: ({
|
|
81
|
+
isOpen: i
|
|
82
|
+
}) => /* @__PURE__ */ r(d, { children: [
|
|
83
|
+
/* @__PURE__ */ n(K, { ref: H, color: F.OnBackgroundSubdued, textTransform: "none", fontSize: z.Small, h: "40px", display: "flex", textAlign: "inherit", alignItems: "center", lineHeight: "1.2", padding: `0px 0px 0px ${Q.Small}`, backgroundColor: i ? F.BackgroundDisabled : "unset", w: "100%", children: k(P, o.getContext()) }),
|
|
84
|
+
/* @__PURE__ */ n(A, { container: y, children: /* @__PURE__ */ n(N, { fontSize: z.Medium, children: E }) })
|
|
133
85
|
] }) });
|
|
134
|
-
},
|
|
86
|
+
}, To = L(Y);
|
|
135
87
|
export {
|
|
136
|
-
|
|
88
|
+
To as TableHeaderDropdown
|
|
137
89
|
};
|
|
@@ -6,7 +6,7 @@ type TableHeaderRowProps<TData extends TableData> = {
|
|
|
6
6
|
};
|
|
7
7
|
declare const TableHeaderRowComponent: <TData extends TableData>({ headerGroup, hideTableHeaderDropdown, portalContainerRef, }: TableHeaderRowProps<TData> & {
|
|
8
8
|
portalContainerRef?: React.RefObject<HTMLElement | null>;
|
|
9
|
-
}) => import("react
|
|
9
|
+
}) => import("react").JSX.Element;
|
|
10
10
|
export declare const TableHeaderRow: typeof TableHeaderRowComponent;
|
|
11
11
|
export {};
|
|
12
12
|
//# sourceMappingURL=table-header-row.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-header-row.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-header-row.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table-header-row.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-header-row.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAwC,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAK/F,OAAO,KAAK,EAAmB,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEpE,KAAK,mBAAmB,CAAC,KAAK,SAAS,SAAS,IAAI;IACnD,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1C,uBAAuB,EAAE,OAAO,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,QAAA,MAAM,uBAAuB,GAAI,KAAK,SAAS,SAAS,EAAE,+DAIvD,mBAAmB,CAAC,KAAK,CAAC,GAAG;IAAE,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CAAE,gCAiD3F,CAAC;AAsPF,eAAO,MAAM,cAAc,EAAoC,OAAO,uBAAuB,CAAC"}
|
|
@@ -26,37 +26,16 @@ const Y = ({
|
|
|
26
26
|
portalContainerRef: s
|
|
27
27
|
}) => {
|
|
28
28
|
const a = p(), l = !!a.getRowActions, i = (a.selectedRowIds?.length ?? 0) > 0 && (a.selectionActions?.length ?? 0) > 0;
|
|
29
|
-
return /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(I.Row, { children: i ? /* @__PURE__ */ e(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
colSpan: t.headers.length,
|
|
33
|
-
cursor: "default",
|
|
34
|
-
css: {
|
|
35
|
-
"& div:not(label *):hover": {
|
|
36
|
-
backgroundColor: "transparent !important"
|
|
37
|
-
},
|
|
38
|
-
"& div span": {
|
|
39
|
-
color: g.OnBackground
|
|
40
|
-
},
|
|
41
|
-
borderBottom: `1px solid ${g.OnBackgroundBorder}`,
|
|
42
|
-
paddingLeft: l ? "24px" : void 0
|
|
43
|
-
},
|
|
44
|
-
scope: "col",
|
|
45
|
-
zIndex: 1,
|
|
46
|
-
children: /* @__PURE__ */ e(M, { showSelectAll: !0, children: /* @__PURE__ */ e(ee, {}) })
|
|
47
|
-
}
|
|
48
|
-
) : /* @__PURE__ */ e(S, { children: t.headers.map((o, r) => /* @__PURE__ */ e(
|
|
49
|
-
Z,
|
|
50
|
-
{
|
|
51
|
-
header: o,
|
|
52
|
-
hideTableHeaderDropdown: n,
|
|
53
|
-
applyActionMenuPadding: l,
|
|
54
|
-
portalContainerRef: s,
|
|
55
|
-
isFirstColumn: !o.isPlaceholder && r === 0,
|
|
56
|
-
enableColumnReorder: a.enableColumnReorder
|
|
29
|
+
return /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(I.Row, { children: i ? /* @__PURE__ */ e(I.ColumnHeader, { colSpan: t.headers.length, cursor: "default", css: {
|
|
30
|
+
"& div:not(label *):hover": {
|
|
31
|
+
backgroundColor: "transparent !important"
|
|
57
32
|
},
|
|
58
|
-
|
|
59
|
-
|
|
33
|
+
"& div span": {
|
|
34
|
+
color: g.OnBackground
|
|
35
|
+
},
|
|
36
|
+
borderBottom: `1px solid ${g.OnBackgroundBorder}`,
|
|
37
|
+
paddingLeft: l ? "24px" : void 0
|
|
38
|
+
}, scope: "col", zIndex: 1, children: /* @__PURE__ */ e(M, { showSelectAll: !0, children: /* @__PURE__ */ e(ee, {}) }) }) : /* @__PURE__ */ e(S, { children: t.headers.map((o, r) => /* @__PURE__ */ e(Z, { header: o, hideTableHeaderDropdown: n, applyActionMenuPadding: l, portalContainerRef: s, isFirstColumn: !o.isPlaceholder && r === 0, enableColumnReorder: a.enableColumnReorder }, o.id)) }) }, t.id) });
|
|
60
39
|
}, Z = ({
|
|
61
40
|
header: t,
|
|
62
41
|
hideTableHeaderDropdown: n,
|
|
@@ -65,7 +44,9 @@ const Y = ({
|
|
|
65
44
|
isFirstColumn: l = !1,
|
|
66
45
|
enableColumnReorder: i = !1
|
|
67
46
|
}) => {
|
|
68
|
-
const o = p(), {
|
|
47
|
+
const o = p(), {
|
|
48
|
+
column: r
|
|
49
|
+
} = t, c = i && !r.columnDef.meta?.disableColumnReorder, {
|
|
69
50
|
ref: d,
|
|
70
51
|
isDragging: m,
|
|
71
52
|
isDropTarget: T
|
|
@@ -86,67 +67,45 @@ const Y = ({
|
|
|
86
67
|
maxWidth: x
|
|
87
68
|
};
|
|
88
69
|
}, []);
|
|
89
|
-
return /* @__PURE__ */ e(
|
|
90
|
-
|
|
91
|
-
{
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
paddingLeft: l && s ? "24px" : void 0,
|
|
103
|
-
...c ? { userSelect: "none", WebkitUserSelect: "none" } : {}
|
|
104
|
-
},
|
|
105
|
-
children: /* @__PURE__ */ e(M, { showSelectAll: o.canSelectRows && l, children: /* @__PURE__ */ e(S, { children: n ? /* @__PURE__ */ e(u, { paddingLeft: f.Small, children: V(t.column.columnDef.header, t.getContext()) }) : /* @__PURE__ */ e(
|
|
106
|
-
O,
|
|
107
|
-
{
|
|
108
|
-
header: t,
|
|
109
|
-
breakingContentState: o.breakingContentState,
|
|
110
|
-
columnVisibility: o.columnVisibility,
|
|
111
|
-
headerGroup: o.table.getHeaderGroups(),
|
|
112
|
-
localeString: o.localeString,
|
|
113
|
-
setBreakingContentState: o.setBreakingContentState,
|
|
114
|
-
setSorting: o.setSorting,
|
|
115
|
-
sorting: o.sorting,
|
|
116
|
-
onBreakingContentChange: o.onBreakingContentChange,
|
|
117
|
-
portalContainerRef: a,
|
|
118
|
-
dragRef: c ? d : void 0
|
|
119
|
-
}
|
|
120
|
-
) }) })
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
|
-
}, M = ({ showSelectAll: t, children: n }) => t ? /* @__PURE__ */ w(k, { w: "100%", align: "center", children: [
|
|
70
|
+
return /* @__PURE__ */ e(I.ColumnHeader, { className: "tableHeaderCell", textAlign: r.columnDef.meta?.isNumeric ? "end" : "start", zIndex: r.getIsPinned() ? 2 : 1, cursor: i ? m ? "grabbing" : "pointer" : void 0, opacity: m ? 0.5 : 1, backgroundColor: T || m ? g.Background : void 0, scope: "col", style: {
|
|
71
|
+
...y(r),
|
|
72
|
+
borderBottom: `1px solid ${g.OnBackgroundBorder}`,
|
|
73
|
+
paddingLeft: l && s ? "24px" : void 0,
|
|
74
|
+
...c ? {
|
|
75
|
+
userSelect: "none",
|
|
76
|
+
WebkitUserSelect: "none"
|
|
77
|
+
} : {}
|
|
78
|
+
}, children: /* @__PURE__ */ e(M, { showSelectAll: o.canSelectRows && l, children: /* @__PURE__ */ e(S, { children: n ? /* @__PURE__ */ e(u, { paddingLeft: f.Small, children: V(t.column.columnDef.header, t.getContext()) }) : /* @__PURE__ */ e(O, { header: t, breakingContentState: o.breakingContentState, columnVisibility: o.columnVisibility, headerGroup: o.table.getHeaderGroups(), localeString: o.localeString, setBreakingContentState: o.setBreakingContentState, setSorting: o.setSorting, sorting: o.sorting, onBreakingContentChange: o.onBreakingContentChange, portalContainerRef: a, dragRef: c ? d : void 0 }) }) }) });
|
|
79
|
+
}, M = ({
|
|
80
|
+
showSelectAll: t,
|
|
81
|
+
children: n
|
|
82
|
+
}) => t ? /* @__PURE__ */ w(k, { w: "100%", align: "center", children: [
|
|
124
83
|
/* @__PURE__ */ e(u, { justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ e(_, {}) }),
|
|
125
84
|
n
|
|
126
85
|
] }) : /* @__PURE__ */ e(S, { children: n }), _ = () => {
|
|
127
|
-
const t = p(), n = R(
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
86
|
+
const t = p(), n = R(({
|
|
87
|
+
checked: l
|
|
88
|
+
}) => {
|
|
89
|
+
const i = typeof l == "boolean" ? l : !1, o = t.getSelectableRowIds();
|
|
90
|
+
i ? t.setSelectedRowIds((r) => [.../* @__PURE__ */ new Set([...r, ...o])]) : t.setSelectedRowIds((r) => r.filter((c) => !o.includes(c)));
|
|
91
|
+
}, [t]), {
|
|
92
|
+
allIsSelected: s,
|
|
93
|
+
shouldShowIndeterminateState: a
|
|
94
|
+
} = L(() => {
|
|
134
95
|
const i = t.table.getRowModel().flatRows, o = new Set(t.selectedRowIds), r = t.getSelectableRowIds(), c = r.length > 0 && r.every((m) => o.has(m)), d = i.some((m) => o.has(m.id));
|
|
135
96
|
return {
|
|
136
97
|
allIsSelected: c,
|
|
137
98
|
shouldShowIndeterminateState: d && !c
|
|
138
99
|
};
|
|
139
100
|
}, [t]);
|
|
140
|
-
return /* @__PURE__ */ e(
|
|
141
|
-
E,
|
|
142
|
-
{
|
|
143
|
-
isChecked: s,
|
|
144
|
-
isIndeterminate: a,
|
|
145
|
-
onCheckedChange: n
|
|
146
|
-
}
|
|
147
|
-
);
|
|
101
|
+
return /* @__PURE__ */ e(E, { isChecked: s, isIndeterminate: a, onCheckedChange: n });
|
|
148
102
|
}, ee = () => {
|
|
149
|
-
const {
|
|
103
|
+
const {
|
|
104
|
+
localeString: t,
|
|
105
|
+
selectedRowIds: n = [],
|
|
106
|
+
selectionActions: s = [],
|
|
107
|
+
totalDataCount: a
|
|
108
|
+
} = p(), l = v[t], [i] = A(["(min-width: 48em)"]), o = s.length > 3 || !i, r = n.length, c = a ? C(l.selectedWithTotal, {
|
|
150
109
|
count: r,
|
|
151
110
|
total: a
|
|
152
111
|
}) : n.length === 1 ? C(l.selectedSingular, {
|
|
@@ -155,38 +114,26 @@ const Y = ({
|
|
|
155
114
|
count: r
|
|
156
115
|
});
|
|
157
116
|
return /* @__PURE__ */ w(k, { gap: f.Medium, align: "center", alignContent: "center", children: [
|
|
158
|
-
/* @__PURE__ */ e(
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
pl: f.Small,
|
|
162
|
-
color: g.OnBackground,
|
|
163
|
-
fontFamily: J.Body,
|
|
164
|
-
fontSize: G.Medium,
|
|
165
|
-
whiteSpace: "nowrap",
|
|
166
|
-
css: { fontVariantNumeric: "normal" },
|
|
167
|
-
children: c
|
|
168
|
-
}
|
|
169
|
-
),
|
|
117
|
+
/* @__PURE__ */ e(u, { pl: f.Small, color: g.OnBackground, fontFamily: J.Body, fontSize: G.Medium, whiteSpace: "nowrap", css: {
|
|
118
|
+
fontVariantNumeric: "normal"
|
|
119
|
+
}, children: c }),
|
|
170
120
|
/* @__PURE__ */ e(u, { children: /* @__PURE__ */ e(W, { orientation: "vertical", height: "20px" }) }),
|
|
171
121
|
/* @__PURE__ */ e(k, { gap: f.Small, align: "center", children: o ? /* @__PURE__ */ w(j, { children: [
|
|
172
122
|
/* @__PURE__ */ e(N, { variant: "ghost", rightIcon: X, size: "sm", children: l.action }),
|
|
173
123
|
/* @__PURE__ */ e(D, { children: /* @__PURE__ */ e($, { children: s.map((d) => /* @__PURE__ */ e(B, { isMenuItem: !0, action: d }, d.name)) }) })
|
|
174
124
|
] }) : s.map((d) => /* @__PURE__ */ e(B, { isMenuItem: !1, action: d }, d.name)) })
|
|
175
125
|
] });
|
|
176
|
-
}, B = ({
|
|
177
|
-
|
|
126
|
+
}, B = ({
|
|
127
|
+
isMenuItem: t,
|
|
128
|
+
action: n
|
|
129
|
+
}) => {
|
|
130
|
+
const {
|
|
131
|
+
selectedRowIds: s,
|
|
132
|
+
localeString: a
|
|
133
|
+
} = p(), l = v[a], i = R(() => {
|
|
178
134
|
n.onClick(s || []);
|
|
179
135
|
}, [n, s]);
|
|
180
|
-
return t ? /* @__PURE__ */ e(K, { onClick: i, value: n.name, children: n.variant === "delete" ? /* @__PURE__ */ e(u, { as: "span", color: g.Error, children: n.name }) : n.name }) : n.variant === "delete" ? /* @__PURE__ */ e(
|
|
181
|
-
Q,
|
|
182
|
-
{
|
|
183
|
-
onClick: i,
|
|
184
|
-
icon: U,
|
|
185
|
-
"aria-label": l.deleteSelectedRows,
|
|
186
|
-
size: "sm",
|
|
187
|
-
variant: "ghost"
|
|
188
|
-
}
|
|
189
|
-
) : /* @__PURE__ */ e(q, { onClick: i, size: "sm", variant: "ghost", children: n.name });
|
|
136
|
+
return t ? /* @__PURE__ */ e(K, { onClick: i, value: n.name, children: n.variant === "delete" ? /* @__PURE__ */ e(u, { as: "span", color: g.Error, children: n.name }) : n.name }) : n.variant === "delete" ? /* @__PURE__ */ e(Q, { onClick: i, icon: U, "aria-label": l.deleteSelectedRows, size: "sm", variant: "ghost" }) : /* @__PURE__ */ e(q, { onClick: i, size: "sm", variant: "ghost", children: n.name });
|
|
190
137
|
}, Re = F(Y);
|
|
191
138
|
export {
|
|
192
139
|
Re as TableHeaderRow
|