@adyen/bento-vue3 1.3.0 → 1.4.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/@types/components.d.ts +8 -4
- package/dist/@types/packages/core/src/components/button/button.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/accordion/accordion.keys.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/accordion/accordion.types.d.ts +1 -24
- package/dist/@types/packages/vue2/src/components/accordion/accordion.vue.d.ts +17 -57
- package/dist/@types/packages/vue2/src/components/accordion/components/accordion-item.vue.d.ts +27 -29
- package/dist/@types/packages/vue2/src/components/accordion/index.d.ts +2 -3
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +0 -4
- package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +136 -128
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +3 -5
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +46 -15
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +6 -7
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +37 -11
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/currency/currency.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +3 -22
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +0 -24
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +277 -16
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +0 -20
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +0 -20
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +164 -104
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +7 -9
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +27 -0
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +76 -0
- package/dist/@types/packages/vue2/src/components/empty-state/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +19 -25
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/components/all-filters-modal-button/all-filters-modal-button.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -27
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -11
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +53 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/focus-trap/focus-trap.vue.d.ts +7 -0
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/image/const.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/image/image.types.d.ts +19 -0
- package/dist/@types/packages/vue2/src/components/image/image.vue.d.ts +50 -0
- package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +61 -58
- package/dist/@types/packages/vue2/src/components/internal/avatar/avatar.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select-option/listbox-single-select-option.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -7
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +4 -0
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +6 -31
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +14 -9
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +4 -14
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -6
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-controls/pagination-controls.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-results-per-page/pagination-results-per-page.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-dismiss-button/popover-dismiss-button.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/popover/components/popover-title/popover-title.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +9 -9
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -14
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +19 -390
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +0 -3
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +2 -23
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +2 -5
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -4
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +4 -9
- package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +6 -9
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +6 -10
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +4 -10
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/toast/components/toast-item/toast-item.vue.d.ts +0 -5
- package/dist/@types/packages/vue2/src/components/toggle/toggle.vue.d.ts +4 -6
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +24 -40
- package/dist/@types/packages/vue2/src/composables/use-default-slot-validator/use-default-slot-validator.d.ts +2 -1
- package/dist/@types/packages/vue2/src/composables/use-has-slot/use-has-slot.d.ts +8 -1
- package/dist/@types/packages/vue2/src/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/utils/ts/get-slot-text/get-slot-text.d.ts +1 -1
- package/dist/@types/packages/vue2/src/utils/ts/print-development-warning.d.ts +1 -0
- package/dist/accordion.js +104 -254
- package/dist/accordion.js.map +1 -1
- package/dist/alert.js +61 -64
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/base-modal.css +1 -0
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/chevron-up.css +1 -0
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/footer-actions.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +2 -2
- package/dist/button.js +143 -12
- package/dist/button.js.map +1 -1
- package/dist/card.js +99 -94
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +40 -39
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/base-button.6d2843c2.js +108 -0
- package/dist/chunks/base-button.6d2843c2.js.map +1 -0
- package/dist/chunks/base-modal.3ccb9eb5.js +291 -0
- package/dist/chunks/base-modal.3ccb9eb5.js.map +1 -0
- package/dist/chunks/{button.e1c39f66.js → button.a8462029.js} +39 -42
- package/dist/chunks/button.a8462029.js.map +1 -0
- package/dist/chunks/{calendar.09b683b3.js → calendar.3f930683.js} +237 -240
- package/dist/chunks/calendar.3f930683.js.map +1 -0
- package/dist/chunks/checkbox.5e1e05ae.js +235 -0
- package/dist/chunks/checkbox.5e1e05ae.js.map +1 -0
- package/dist/chunks/{chevron-down.69bedf14.js → chevron-up.c03b58f8.js} +8 -8
- package/dist/chunks/chevron-up.c03b58f8.js.map +1 -0
- package/dist/chunks/controls-group.3b0dfb94.js +136 -0
- package/dist/chunks/controls-group.3b0dfb94.js.map +1 -0
- package/dist/chunks/{copy.2cf5e6c3.js → copy.1d14b783.js} +49 -50
- package/dist/chunks/copy.1d14b783.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.203e747f.js → dropdown-default-textbox.a90e84f9.js} +88 -90
- package/dist/chunks/dropdown-default-textbox.a90e84f9.js.map +1 -0
- package/dist/chunks/{dropdown.8b415aac.js → dropdown.b798a82e.js} +348 -330
- package/dist/chunks/dropdown.b798a82e.js.map +1 -0
- package/dist/chunks/{error-message.ddfe8ea5.js → error-message.9acead25.js} +16 -16
- package/dist/chunks/error-message.9acead25.js.map +1 -0
- package/dist/chunks/footer-actions.9537d0df.js +111 -0
- package/dist/chunks/footer-actions.9537d0df.js.map +1 -0
- package/dist/chunks/get-slot-text.bead058f.js +9 -0
- package/dist/chunks/get-slot-text.bead058f.js.map +1 -0
- package/dist/chunks/{grid-layout.a30855ff.js → grid-layout.984317d7.js} +2 -2
- package/dist/chunks/{grid-layout.a30855ff.js.map → grid-layout.984317d7.js.map} +1 -1
- package/dist/chunks/index.228ecda0.js +101 -0
- package/dist/chunks/index.228ecda0.js.map +1 -0
- package/dist/chunks/index.89b00b94.js +124 -0
- package/dist/chunks/index.89b00b94.js.map +1 -0
- package/dist/chunks/{index.3da90517.js → index.9d8273fc.js} +38 -40
- package/dist/chunks/index.9d8273fc.js.map +1 -0
- package/dist/chunks/{index.c9225c3b.js → index.c2a80208.js} +195 -201
- package/dist/chunks/index.c2a80208.js.map +1 -0
- package/dist/chunks/{index.13949709.js → index.d26fdf71.js} +116 -113
- package/dist/chunks/{index.13949709.js.map → index.d26fdf71.js.map} +1 -1
- package/dist/chunks/{index.d27367cd.js → index.e84dbeae.js} +80 -83
- package/dist/chunks/{index.d27367cd.js.map → index.e84dbeae.js.map} +1 -1
- package/dist/chunks/listbox-option-tag.0c9c571e.js +129 -0
- package/dist/chunks/listbox-option-tag.0c9c571e.js.map +1 -0
- package/dist/chunks/{listbox.0c7c4e5e.js → listbox.6b52af1a.js} +315 -334
- package/dist/chunks/listbox.6b52af1a.js.map +1 -0
- package/dist/chunks/{loading-button.61d8ebe5.js → loading-button.081adbf3.js} +33 -33
- package/dist/chunks/loading-button.081adbf3.js.map +1 -0
- package/dist/chunks/tabs.keys.358742f2.js +7 -0
- package/dist/chunks/tabs.keys.358742f2.js.map +1 -0
- package/dist/chunks/{tooltip.835d9b52.js → tooltip.e4e34b86.js} +56 -59
- package/dist/chunks/tooltip.e4e34b86.js.map +1 -0
- package/dist/chunks/use-default-slot-validator.1169c221.js +16 -0
- package/dist/chunks/use-default-slot-validator.1169c221.js.map +1 -0
- package/dist/chunks/use-has-slot.9fac7123.js +16 -0
- package/dist/chunks/use-has-slot.9fac7123.js.map +1 -0
- package/dist/code-snippet.js +548 -463
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +501 -505
- package/dist/country.js.map +1 -1
- package/dist/currency.js +38 -41
- package/dist/currency.js.map +1 -1
- package/dist/data-grid.js +837 -833
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +83 -87
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +30 -32
- package/dist/dropdown.js.map +1 -1
- package/dist/empty-state.js +166 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/filter-bar.js +986 -935
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +72 -72
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +50 -52
- package/dist/header.js.map +1 -1
- package/dist/image.js +76 -0
- package/dist/image.js.map +1 -0
- package/dist/index.js +239 -232
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +241 -269
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +7 -7
- package/dist/link.js +38 -36
- package/dist/link.js.map +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +131 -139
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +121 -356
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +182 -185
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +19 -23
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +56 -52
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +36 -41
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +112 -113
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +77 -91
- package/dist/search-bar.js.map +1 -1
- package/dist/segmented-control.js +88 -75
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +122 -121
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +18 -21
- package/dist/status.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +129 -162
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +83 -75
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +32 -35
- package/dist/tag.js.map +1 -1
- package/dist/textarea.js +156 -155
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +212 -213
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +68 -72
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +75 -73
- package/dist/toggle.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +11 -10
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateBodyFitContentDynamicStyles/useCalculateBodyFitContentDynamicStyles.types.d.ts +0 -8
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/filter-bar-filter-button/filter-bar-filter-button.vue.d.ts +0 -58
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/components/index.d.ts +0 -1
- package/dist/assets/button-actions.css +0 -1
- package/dist/assets/chevron-down.css +0 -1
- package/dist/chunks/base-button.20be08da.js +0 -111
- package/dist/chunks/base-button.20be08da.js.map +0 -1
- package/dist/chunks/button-actions.54e28e75.js +0 -124
- package/dist/chunks/button-actions.54e28e75.js.map +0 -1
- package/dist/chunks/button.e1c39f66.js.map +0 -1
- package/dist/chunks/calendar.09b683b3.js.map +0 -1
- package/dist/chunks/checkbox.a404069b.js +0 -226
- package/dist/chunks/checkbox.a404069b.js.map +0 -1
- package/dist/chunks/chevron-down.69bedf14.js.map +0 -1
- package/dist/chunks/controls-group.60fb2a86.js +0 -136
- package/dist/chunks/controls-group.60fb2a86.js.map +0 -1
- package/dist/chunks/copy.2cf5e6c3.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.203e747f.js.map +0 -1
- package/dist/chunks/dropdown.8b415aac.js.map +0 -1
- package/dist/chunks/error-message.ddfe8ea5.js.map +0 -1
- package/dist/chunks/footer-actions.0f640f87.js +0 -106
- package/dist/chunks/footer-actions.0f640f87.js.map +0 -1
- package/dist/chunks/get-slot-text.2db867f8.js +0 -9
- package/dist/chunks/get-slot-text.2db867f8.js.map +0 -1
- package/dist/chunks/index.222d29b0.js +0 -120
- package/dist/chunks/index.222d29b0.js.map +0 -1
- package/dist/chunks/index.3da90517.js.map +0 -1
- package/dist/chunks/index.aa34e363.js +0 -104
- package/dist/chunks/index.aa34e363.js.map +0 -1
- package/dist/chunks/index.c9225c3b.js.map +0 -1
- package/dist/chunks/listbox-option-tag.5ae8b79b.js +0 -133
- package/dist/chunks/listbox-option-tag.5ae8b79b.js.map +0 -1
- package/dist/chunks/listbox.0c7c4e5e.js.map +0 -1
- package/dist/chunks/loading-button.61d8ebe5.js.map +0 -1
- package/dist/chunks/tooltip.835d9b52.js.map +0 -1
- package/dist/chunks/use-default-slot-validator.83d977a1.js +0 -11
- package/dist/chunks/use-default-slot-validator.83d977a1.js.map +0 -1
- package/dist/chunks/use-has-slot.068222e6.js +0 -5
- package/dist/chunks/use-has-slot.068222e6.js.map +0 -1
package/dist/tag.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { B as
|
|
3
|
-
import { b as
|
|
4
|
-
import { u as
|
|
5
|
-
import { g as c } from "./chunks/get-slot-text.
|
|
6
|
-
import { _ as
|
|
7
|
-
import "./assets/
|
|
1
|
+
import { defineComponent as d, computed as o, resolveComponent as p, resolveDirective as m, withDirectives as _, openBlock as b, createElementBlock as v, normalizeClass as f, createVNode as g, withCtx as h, createTextVNode as y, toDisplayString as E } from "vue";
|
|
2
|
+
import { B as C } from "./chunks/index.89b00b94.js";
|
|
3
|
+
import { b as S } from "./chunks/tooltip.e4e34b86.js";
|
|
4
|
+
import { u as x } from "./chunks/aria-label.ac9651a5.js";
|
|
5
|
+
import { g as c } from "./chunks/get-slot-text.bead058f.js";
|
|
6
|
+
import { _ as $ } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
7
|
+
import "./assets/index31.css";
|
|
8
8
|
var n = /* @__PURE__ */ ((e) => (e.GREY = "grey", e.BLUE = "blue", e.GREEN = "green", e.ORANGE = "orange", e.RED = "red", e.WHITE = "white", e))(n || {});
|
|
9
|
-
const
|
|
9
|
+
const w = d({
|
|
10
10
|
name: "bento-tag",
|
|
11
|
-
components: { BentoTypography:
|
|
12
|
-
directives: { BentoTooltipDirective:
|
|
11
|
+
components: { BentoTypography: C },
|
|
12
|
+
directives: { BentoTooltipDirective: S },
|
|
13
13
|
props: {
|
|
14
14
|
/**
|
|
15
15
|
* The label text content of the Tag.
|
|
@@ -28,52 +28,49 @@ const $ = u({
|
|
|
28
28
|
*/
|
|
29
29
|
truncate: { type: Number, default: null }
|
|
30
30
|
},
|
|
31
|
-
setup(e, { slots:
|
|
32
|
-
const i =
|
|
33
|
-
label: e.label || c(
|
|
31
|
+
setup(e, { slots: a }) {
|
|
32
|
+
const i = x({
|
|
33
|
+
label: e.label || c(a)("default"),
|
|
34
34
|
defaultFallback: "tag"
|
|
35
|
-
}), s =
|
|
35
|
+
}), s = o(() => ({
|
|
36
36
|
[`b-tag--${e.variant}`]: e.variant
|
|
37
|
-
})), t =
|
|
37
|
+
})), t = o(() => e.label || c(a)("default") || "tag"), l = o(() => e.truncate && t.value.length > e.truncate), r = o(() => e.truncate && l.value ? `${t.value.slice(0, e.truncate)}...` : t.value);
|
|
38
38
|
return {
|
|
39
39
|
// Values
|
|
40
40
|
computedAriaLabel: i,
|
|
41
41
|
textFromSlot: t,
|
|
42
|
-
formattedText:
|
|
42
|
+
formattedText: r,
|
|
43
43
|
tagConditionalClasses: s,
|
|
44
|
-
shouldShowTooltip:
|
|
45
|
-
// Enums
|
|
46
|
-
BentoTypographyVariant: C,
|
|
47
|
-
BentoTypographyElement: S
|
|
44
|
+
shouldShowTooltip: l
|
|
48
45
|
};
|
|
49
46
|
}
|
|
50
47
|
});
|
|
51
|
-
const
|
|
52
|
-
function
|
|
53
|
-
const
|
|
54
|
-
return _((b(),
|
|
55
|
-
class:
|
|
48
|
+
const D = ["aria-label"];
|
|
49
|
+
function N(e, a, i, s, t, l) {
|
|
50
|
+
const r = p("bento-typography"), u = m("bento-tooltip-directive");
|
|
51
|
+
return _((b(), v("span", {
|
|
52
|
+
class: f(["b-tag", e.tagConditionalClasses]),
|
|
56
53
|
"aria-label": e.computedAriaLabel,
|
|
57
54
|
role: "mark"
|
|
58
55
|
}, [
|
|
59
|
-
g(
|
|
56
|
+
g(r, {
|
|
60
57
|
class: "b-tag__label",
|
|
61
|
-
el:
|
|
62
|
-
variant:
|
|
58
|
+
el: "span",
|
|
59
|
+
variant: "caption",
|
|
63
60
|
stronger: ""
|
|
64
61
|
}, {
|
|
65
|
-
default:
|
|
66
|
-
|
|
62
|
+
default: h(() => [
|
|
63
|
+
y(E(e.formattedText), 1)
|
|
67
64
|
]),
|
|
68
65
|
_: 1
|
|
69
|
-
}
|
|
70
|
-
], 10,
|
|
71
|
-
[
|
|
66
|
+
})
|
|
67
|
+
], 10, D)), [
|
|
68
|
+
[u, e.shouldShowTooltip ? e.textFromSlot : null]
|
|
72
69
|
]);
|
|
73
70
|
}
|
|
74
|
-
const
|
|
71
|
+
const F = /* @__PURE__ */ $(w, [["render", N], ["__scopeId", "data-v-4550ca54"]]);
|
|
75
72
|
export {
|
|
76
|
-
|
|
73
|
+
F as BentoTag,
|
|
77
74
|
n as BentoTagVariant
|
|
78
75
|
};
|
|
79
76
|
//# sourceMappingURL=tag.js.map
|
package/dist/tag.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.js","sources":["../../vue2/src/components/tag/tag.types.ts","../../vue2/src/components/tag/tag.vue"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"tag.js","sources":["../../vue2/src/components/tag/tag.types.ts","../../vue2/src/components/tag/tag.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoTagVariant {\n GREY = 'grey',\n BLUE = 'blue',\n GREEN = 'green',\n ORANGE = 'orange',\n RED = 'red',\n WHITE = 'white',\n}\n","<template>\n <span\n v-bento-tooltip-directive=\"shouldShowTooltip ? textFromSlot : null\"\n class=\"b-tag\"\n :class=\"tagConditionalClasses\"\n :aria-label=\"computedAriaLabel\"\n role=\"mark\"\n >\n <bento-typography class=\"b-tag__label\" el=\"span\" variant=\"caption\" stronger>\n {{ formattedText }}\n </bento-typography>\n </span>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import { BentoTagVariant } from './tag.types';\n import { BentoTypography } from '@/components/typography';\n import { BentoTooltipDirective } from '@/directives';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n\n export default defineComponent({\n name: 'bento-tag',\n components: { BentoTypography },\n directives: { BentoTooltipDirective },\n props: {\n /**\n * The label text content of the Tag.\n */\n label: { type: String, default: null },\n\n /**\n * The variant variant of tag\n */\n variant: {\n type: String as PropType<BentoTagVariant | `${BentoTagVariant}`>,\n default: BentoTagVariant.GREY,\n validator: (value: BentoTagVariant) => Object.values(BentoTagVariant).includes(value),\n },\n\n /**\n * The number of characters to limit the number of displayed characters for the tag text, truncating it with an ellipsis of three dots \"...\".\n */\n truncate: { type: Number, default: null },\n },\n setup(props, { slots }) {\n const computedAriaLabel = useAriaLabel({\n label: props.label || getSlotText(slots)('default'),\n defaultFallback: 'tag',\n });\n\n const tagConditionalClasses = computed(() => ({\n [`b-tag--${props.variant}`]: props.variant,\n }));\n\n const textFromSlot = computed(() => props.label || getSlotText(slots)('default') || 'tag');\n const shouldShowTooltip = computed(() => props.truncate && textFromSlot.value.length > props.truncate);\n\n const formattedText = computed(() => {\n if (!props.truncate) {\n return textFromSlot.value;\n }\n\n return shouldShowTooltip.value\n ? `${textFromSlot.value.slice(0, props.truncate)}...`\n : textFromSlot.value;\n });\n\n return {\n // Values\n computedAriaLabel,\n textFromSlot,\n formattedText,\n tagConditionalClasses,\n shouldShowTooltip,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./tag.scss\" />\n"],"names":["BentoTagVariant","BentoTagVariant2","_sfc_main","defineComponent","BentoTypography","BentoTooltipDirective","value","props","slots","computedAriaLabel","useAriaLabel","getSlotText","tagConditionalClasses","computed","textFromSlot","shouldShowTooltip","formattedText","withDirectives","openBlock","createElementBlock","normalizeClass","_ctx","createVNode","_component_bento_typography"],"mappings":";;;;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,OAAA,QACAA,EAAA,OAAA,QACAA,EAAA,QAAA,SACAA,EAAA,SAAA,UACAA,EAAA,MAAA,OACAA,EAAA,QAAA,SANQA,IAAAD,KAAA,CAAA,CAAA;ACmBR,MAAAE,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,YAAA,EAAA,iBAAAC,EAAA;AAAA,EACwB,YAAA,EAAA,uBAAAC,EAAA;AAAA,EACM,OAAA;AAAA;AAAA;AAAA;AAAA,IAC7B,OAAA,EAAA,MAAA,QAAA,SAAA,KAAA;AAAA;AAAA;AAAA;AAAA,IAIkC,SAAA;AAAA,MAK5B,MAAA;AAAA,MACC,SAAAL,EAAA;AAAA,MACmB,WAAA,CAAAM,MAAA,OAAA,OAAAN,CAAA,EAAA,SAAAM,CAAA;AAAA,IAC2D;AAAA;AAAA;AAAA;AAAA,IACxF,UAAA,EAAA,MAAA,QAAA,SAAA,KAAA;AAAA,EAKwC;AAAA,EAC5C,MAAAC,GAAA,EAAA,OAAAC,EAAA,GAAA;AAEI,UAAAC,IAAAC,EAAA;AAAA,MAAuC,OAAAH,EAAA,SAAAI,EAAAH,CAAA,EAAA,SAAA;AAAA,MACe,iBAAA;AAAA,IACjC,CAAA,GAGrBI,IAAAC,EAAA,OAAA;AAAA,MAA8C,CAAA,UAAAN,EAAA,SAAA,GAAAA,EAAA;AAAA,IACP,EAAA,GAGvCO,IAAAD,EAAA,MAAAN,EAAA,SAAAI,EAAAH,CAAA,EAAA,SAAA,KAAA,KAAA,GACAO,IAAAF,EAAA,MAAAN,EAAA,YAAAO,EAAA,MAAA,SAAAP,EAAA,QAAA,GAEAS,IAAAH,EAAA,MACIN,EAAA,YAIAQ,EAAA,QAAA,GAAAD,EAAA,MAAA,MAAA,GAAAP,EAAA,QAAA,SAHIO,EAAA,KAKe;AAGvB,WAAA;AAAA;AAAA,MAAO,mBAAAL;AAAA,MAEH,cAAAK;AAAA,MACA,eAAAE;AAAA,MACA,uBAAAJ;AAAA,MACA,mBAAAG;AAAA,IACA;AAAA,EACJ;AAER,CAAA;;;;AAzEK,SAAAE,GAAAC,EAAA,GAAAC,EAAA,QAAA;AAAA,IAA6B,OAAAC,EAAA,CAAA,SAAAC,EAAA,qBAAA,CAAA;AAAA,IACnB,cAAAA,EAAA;AAAA,IAEX,MAAA;AAAA,EAAA,GAAA;AAAA,IAAgDC,EAAAC,GAAA;AAAA,MAAA,OAAA;AAAA,MAAQ,IAAA;AAAA,MAAW,SAAA;AAAA;;;;;;;;;;;;"}
|
package/dist/textarea.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
import { B as
|
|
3
|
-
import {
|
|
4
|
-
import { _ as
|
|
5
|
-
import { g as
|
|
1
|
+
import { openBlock as s, createElementBlock as L, mergeProps as le, toDisplayString as f, createCommentVNode as u, pushScopeId as re, popScopeId as oe, createElementVNode as k, defineComponent as se, toRefs as F, ref as C, toRef as ne, computed as i, watch as B, nextTick as ie, onMounted as ue, resolveComponent as E, normalizeClass as S, normalizeStyle as H, createVNode as I, withCtx as c, createTextVNode as y, createBlock as p, withKeys as N } from "vue";
|
|
2
|
+
import { B as de } from "./chunks/index.89b00b94.js";
|
|
3
|
+
import { a as ce } from "./chunks/button.a8462029.js";
|
|
4
|
+
import { _ as M } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
5
|
+
import { g as be } from "./chunks/unique-id.a2a2b458.js";
|
|
6
6
|
import { o as pe } from "./chunks/resize.a041304d.js";
|
|
7
|
-
import { u as
|
|
7
|
+
import { u as fe } from "./chunks/i18n.6c402773.js";
|
|
8
8
|
import { u as me } from "./chunks/aria-label.ac9651a5.js";
|
|
9
|
-
import { u as
|
|
10
|
-
import { E as
|
|
11
|
-
import "./assets/
|
|
12
|
-
var
|
|
13
|
-
let
|
|
14
|
-
const
|
|
9
|
+
import { u as ve } from "./chunks/use-form-layout-loading.d03e5d48.js";
|
|
10
|
+
import { E as ge } from "./chunks/error-message.9acead25.js";
|
|
11
|
+
import "./assets/index39.css";
|
|
12
|
+
var O = /* @__PURE__ */ ((e) => (e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e.BOTH = "both", e.NONE = "none", e))(O || {}), m = /* @__PURE__ */ ((e) => (e.CLEARABLE = "clearable", e.DISABLED = "disabled", e.ERROR = "error", e.READONLY = "readonly", e))(m || {}), t = /* @__PURE__ */ ((e) => (e.BLUR = "blur", e.CHANGE = "change", e.CLEAR = "clear", e.ESCAPE_PRESSED = "escape-pressed", e.FOCUS = "focus", e.INPUT = "input", e))(t || {});
|
|
13
|
+
let U = 0;
|
|
14
|
+
const he = {
|
|
15
15
|
beforeCreate() {
|
|
16
|
-
this.uuid =
|
|
16
|
+
this.uuid = U.toString(), U += 1;
|
|
17
17
|
}
|
|
18
|
-
},
|
|
18
|
+
}, Ce = (e) => (re("data-v-3c9e4cfb"), e = e(), oe(), e), ye = { key: 0 }, Le = /* @__PURE__ */ Ce(() => /* @__PURE__ */ k("path", {
|
|
19
19
|
fill: "#00112C",
|
|
20
20
|
"fill-rule": "evenodd",
|
|
21
21
|
d: "M2.25 8C2.25 4.82436 4.82436 2.25 8 2.25C11.1756 2.25 13.75 4.82436 13.75 8C13.75 11.1756 11.1756 13.75 8 13.75C4.82436 13.75 2.25 11.1756 2.25 8ZM5.46967 5.46967C5.17678 5.76256 5.17678 6.23744 5.46967 6.53033L6.93934 8L5.46967 9.46967C5.17678 9.76256 5.17678 10.2374 5.46967 10.5303C5.76256 10.8232 6.23744 10.8232 6.53033 10.5303L8 9.06066L9.46967 10.5303C9.76256 10.8232 10.2374 10.8232 10.5303 10.5303C10.8232 10.2374 10.8232 9.76256 10.5303 9.46967L9.06066 8L10.5303 6.53033C10.8232 6.23744 10.8232 5.76256 10.5303 5.46967C10.2374 5.17678 9.76256 5.17678 9.46967 5.46967L8 6.93934L6.53033 5.46967C6.23744 5.17678 5.76256 5.17678 5.46967 5.46967Z",
|
|
22
22
|
"clip-rule": "evenodd"
|
|
23
23
|
}, null, -1));
|
|
24
|
-
function
|
|
25
|
-
return
|
|
24
|
+
function _e(e, l, n, d, $, r) {
|
|
25
|
+
return s(), L("svg", le({ role: "img" }, e.$attrs, {
|
|
26
26
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27
27
|
width: "16",
|
|
28
28
|
height: "16",
|
|
29
29
|
fill: "none"
|
|
30
30
|
}), [
|
|
31
|
-
e.$attrs["svg-title"] ? (
|
|
32
|
-
|
|
31
|
+
e.$attrs["svg-title"] ? (s(), L("title", ye, f(e.$attrs["svg-title"]), 1)) : u("", !0),
|
|
32
|
+
Le
|
|
33
33
|
], 16);
|
|
34
34
|
}
|
|
35
|
-
const
|
|
35
|
+
const Ee = /* @__PURE__ */ M(he, [["render", _e], ["__scopeId", "data-v-3c9e4cfb"]]), D = {
|
|
36
36
|
"en-US": {
|
|
37
37
|
clearText: "Clear text",
|
|
38
38
|
optional: "optional",
|
|
@@ -40,10 +40,10 @@ const Le = /* @__PURE__ */ U(ve, [["render", Ee], ["__scopeId", "data-v-3c9e4cfb
|
|
|
40
40
|
textarea: "textarea",
|
|
41
41
|
yourTextCanBenAtMost: "Your text can be at most {characterLimit} characters"
|
|
42
42
|
}
|
|
43
|
-
},
|
|
44
|
-
i18n: { messages:
|
|
43
|
+
}, Se = se({
|
|
44
|
+
i18n: { messages: D },
|
|
45
45
|
name: "bento-textarea",
|
|
46
|
-
components: { BentoButton:
|
|
46
|
+
components: { BentoButton: ce, BentoTypography: de, ErrorMessage: ge, CrossCircleFillSmallIcon: Ee },
|
|
47
47
|
props: {
|
|
48
48
|
/**
|
|
49
49
|
* Text that labels an the input element
|
|
@@ -94,8 +94,8 @@ const Le = /* @__PURE__ */ U(ve, [["render", Ee], ["__scopeId", "data-v-3c9e4cfb
|
|
|
94
94
|
*/
|
|
95
95
|
resizable: {
|
|
96
96
|
type: String,
|
|
97
|
-
default:
|
|
98
|
-
validator: (e) => Object.values(
|
|
97
|
+
default: O.BOTH,
|
|
98
|
+
validator: (e) => Object.values(O).includes(e)
|
|
99
99
|
},
|
|
100
100
|
/**
|
|
101
101
|
* Highlights the textarea is required.
|
|
@@ -107,231 +107,232 @@ const Le = /* @__PURE__ */ U(ve, [["render", Ee], ["__scopeId", "data-v-3c9e4cfb
|
|
|
107
107
|
value: { type: String, default: "" }
|
|
108
108
|
},
|
|
109
109
|
emits: [
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
t.BLUR,
|
|
111
|
+
t.CHANGE,
|
|
112
|
+
t.CLEAR,
|
|
113
|
+
t.ESCAPE_PRESSED,
|
|
114
|
+
t.FOCUS,
|
|
115
|
+
t.INPUT
|
|
116
116
|
],
|
|
117
|
-
setup(e, { emit:
|
|
118
|
-
const {
|
|
119
|
-
() => e.characterLimit &&
|
|
117
|
+
setup(e, { attrs: l, emit: n }) {
|
|
118
|
+
const { height: d } = F(e), $ = be("textarea"), r = C(null), a = C(e.value), v = 44, b = C(e.height || `${v}px`), g = C("100%"), { t: o } = fe({ messages: D }), { isReadOnly: _ } = ve(ne(e, "readonly")), T = i(() => `${a.value.length} / ${e.characterLimit}`), A = i(
|
|
119
|
+
() => e.characterLimit && a.value.length > e.characterLimit
|
|
120
120
|
), R = () => {
|
|
121
|
-
|
|
121
|
+
r.value && r.value.scrollHeight > v && (b.value = `${r.value.scrollHeight + 3}px`);
|
|
122
122
|
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}),
|
|
123
|
+
B(d, () => {
|
|
124
|
+
d.value ? b.value = d.value : R();
|
|
125
|
+
}), B(
|
|
126
126
|
() => e.value,
|
|
127
127
|
() => {
|
|
128
|
-
|
|
128
|
+
a.value = e.value;
|
|
129
129
|
},
|
|
130
130
|
{ immediate: !0 }
|
|
131
|
-
),
|
|
132
|
-
() =>
|
|
131
|
+
), B(
|
|
132
|
+
() => a.value,
|
|
133
133
|
async () => {
|
|
134
|
-
if (!
|
|
135
|
-
if (
|
|
134
|
+
if (!d.value) {
|
|
135
|
+
if (b.value = `${v}px`, !a.value)
|
|
136
136
|
return;
|
|
137
|
-
await
|
|
137
|
+
await ie(), R();
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
{ immediate: !0 }
|
|
141
141
|
);
|
|
142
|
-
const
|
|
142
|
+
const w = i(() => !!e.errorMessage || A.value), V = i(() => ({
|
|
143
143
|
[`b-textarea--${m.DISABLED}`]: e.disabled
|
|
144
|
-
})),
|
|
144
|
+
})), q = i(() => ({
|
|
145
145
|
[`b-textarea__input--${m.CLEARABLE}`]: e.clearable,
|
|
146
|
-
[`b-textarea__input--${m.READONLY}`]:
|
|
147
|
-
[`b-textarea__input--${m.ERROR}`]:
|
|
148
|
-
["b-textarea__input--dynamic-height"]: !
|
|
149
|
-
})),
|
|
146
|
+
[`b-textarea__input--${m.READONLY}`]: _.value,
|
|
147
|
+
[`b-textarea__input--${m.ERROR}`]: w.value,
|
|
148
|
+
["b-textarea__input--dynamic-height"]: !d.value
|
|
149
|
+
})), K = i(() => ({
|
|
150
150
|
["b-textarea__label-box--no-label"]: !e.label
|
|
151
|
-
})),
|
|
152
|
-
[`b-textarea__label-item--${m.ERROR}`]:
|
|
153
|
-
})),
|
|
154
|
-
() =>
|
|
155
|
-
),
|
|
156
|
-
ariaLabel:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
t.value.scrollTop = 0, a(l.BLUR);
|
|
167
|
-
}, J = () => {
|
|
168
|
-
t.value.focus(), a(l.FOCUS);
|
|
169
|
-
}, Q = () => {
|
|
170
|
-
a(l.CHANGE);
|
|
151
|
+
})), W = i(() => ({
|
|
152
|
+
[`b-textarea__label-item--${m.ERROR}`]: A.value
|
|
153
|
+
})), z = i(
|
|
154
|
+
() => o("yourTextCanBenAtMost", { characterLimit: e.characterLimit })
|
|
155
|
+
), G = C(l["aria-label"]), { ariaLabel: Y, label: Z } = F(e), j = me({
|
|
156
|
+
ariaLabel: G.value,
|
|
157
|
+
// TODO: take this line away when the aria-label props is removed
|
|
158
|
+
label: Y,
|
|
159
|
+
defaultFallback: Z
|
|
160
|
+
}), x = i(
|
|
161
|
+
() => e.clearable && a.value && !e.disabled && !_.value
|
|
162
|
+
), J = () => {
|
|
163
|
+
a.value = "", n(t.CLEAR), n(t.INPUT, "");
|
|
164
|
+
}, Q = (h) => {
|
|
165
|
+
!e.disabled && !_.value && (a.value = h.target.value, n(t.INPUT, a.value));
|
|
171
166
|
}, X = () => {
|
|
172
|
-
|
|
167
|
+
r.value.scrollTop = 0, n(t.BLUR);
|
|
168
|
+
}, ee = () => {
|
|
169
|
+
r.value.focus(), n(t.FOCUS);
|
|
170
|
+
}, ae = () => {
|
|
171
|
+
n(t.CHANGE);
|
|
172
|
+
}, te = () => {
|
|
173
|
+
n(t.ESCAPE_PRESSED);
|
|
173
174
|
};
|
|
174
|
-
return
|
|
175
|
-
pe(
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
return ue(() => {
|
|
176
|
+
pe(r.value, () => {
|
|
177
|
+
var P;
|
|
178
|
+
const h = (P = r == null ? void 0 : r.value) == null ? void 0 : P.offsetWidth;
|
|
179
|
+
g.value = h ? `${h}px` : "100%";
|
|
180
|
+
}), d.value || R();
|
|
178
181
|
}), {
|
|
179
182
|
// Enums
|
|
180
|
-
|
|
181
|
-
BentoTextareaEvent: l,
|
|
182
|
-
BentoTypographyElement: ie,
|
|
183
|
+
BentoTextareaEvent: t,
|
|
183
184
|
// Methods
|
|
184
|
-
onBlur:
|
|
185
|
-
onChange:
|
|
186
|
-
onClear:
|
|
187
|
-
onFocus:
|
|
188
|
-
onInput:
|
|
189
|
-
onPressEscape:
|
|
190
|
-
t:
|
|
185
|
+
onBlur: X,
|
|
186
|
+
onChange: ae,
|
|
187
|
+
onClear: J,
|
|
188
|
+
onFocus: ee,
|
|
189
|
+
onInput: Q,
|
|
190
|
+
onPressEscape: te,
|
|
191
|
+
t: o,
|
|
191
192
|
// Values
|
|
192
|
-
computedAriaLabel:
|
|
193
|
-
conditionalClasses:
|
|
194
|
-
conditionalClassesLabelItem:
|
|
195
|
-
conditionalClassesLabelBox:
|
|
196
|
-
counter:
|
|
197
|
-
counterErrorText:
|
|
198
|
-
conditionalClassesInput:
|
|
199
|
-
invalidInput:
|
|
200
|
-
isOverCharacterLimit:
|
|
201
|
-
isReadOnly:
|
|
202
|
-
showClearButton:
|
|
203
|
-
textareaElement:
|
|
204
|
-
textareaHeight:
|
|
205
|
-
textareaId:
|
|
206
|
-
textareaValue:
|
|
207
|
-
textareaWidth:
|
|
193
|
+
computedAriaLabel: j,
|
|
194
|
+
conditionalClasses: V,
|
|
195
|
+
conditionalClassesLabelItem: W,
|
|
196
|
+
conditionalClassesLabelBox: K,
|
|
197
|
+
counter: T,
|
|
198
|
+
counterErrorText: z,
|
|
199
|
+
conditionalClassesInput: q,
|
|
200
|
+
invalidInput: w,
|
|
201
|
+
isOverCharacterLimit: A,
|
|
202
|
+
isReadOnly: _,
|
|
203
|
+
showClearButton: x,
|
|
204
|
+
textareaElement: r,
|
|
205
|
+
textareaHeight: b,
|
|
206
|
+
textareaId: $,
|
|
207
|
+
textareaValue: a,
|
|
208
|
+
textareaWidth: g
|
|
208
209
|
};
|
|
209
210
|
}
|
|
210
211
|
});
|
|
211
|
-
const
|
|
212
|
+
const Ie = ["for"], $e = ["id", "value", "aria-label", "aria-invalid", "readonly", "disabled", "placeholder"], Ae = {
|
|
212
213
|
key: 0,
|
|
213
214
|
class: "b-textarea__clear-button"
|
|
214
215
|
};
|
|
215
|
-
function
|
|
216
|
-
const
|
|
217
|
-
return
|
|
218
|
-
class:
|
|
219
|
-
style:
|
|
216
|
+
function Re(e, l, n, d, $, r) {
|
|
217
|
+
const a = E("bento-typography"), v = E("cross-circle-fill-small-icon"), b = E("bento-button"), g = E("error-message");
|
|
218
|
+
return s(), L("div", {
|
|
219
|
+
class: S(["b-textarea", e.conditionalClasses]),
|
|
220
|
+
style: H({ width: e.textareaWidth })
|
|
220
221
|
}, [
|
|
221
|
-
|
|
222
|
-
class:
|
|
222
|
+
k("div", {
|
|
223
|
+
class: S(["b-textarea__label-box", e.conditionalClassesLabelBox])
|
|
223
224
|
}, [
|
|
224
|
-
e.label ? (
|
|
225
|
+
e.label ? (s(), L("label", {
|
|
225
226
|
key: 0,
|
|
226
227
|
for: e.textareaId,
|
|
227
228
|
class: "b-textarea__label"
|
|
228
229
|
}, [
|
|
229
|
-
|
|
230
|
-
el:
|
|
230
|
+
I(a, {
|
|
231
|
+
el: "span",
|
|
231
232
|
stronger: ""
|
|
232
233
|
}, {
|
|
233
234
|
default: c(() => [
|
|
234
|
-
y(
|
|
235
|
+
y(f(e.label), 1)
|
|
235
236
|
]),
|
|
236
237
|
_: 1
|
|
237
|
-
}
|
|
238
|
-
e.optional && !e.required ? (
|
|
238
|
+
}),
|
|
239
|
+
e.optional && !e.required ? (s(), p(a, {
|
|
239
240
|
key: 0,
|
|
240
|
-
el:
|
|
241
|
+
el: "span",
|
|
241
242
|
class: "b-textarea__label-item"
|
|
242
243
|
}, {
|
|
243
244
|
default: c(() => [
|
|
244
|
-
y(" (" +
|
|
245
|
+
y(" (" + f(e.t("optional")) + ") ", 1)
|
|
245
246
|
]),
|
|
246
247
|
_: 1
|
|
247
|
-
}
|
|
248
|
-
e.required ? (
|
|
248
|
+
})) : u("", !0),
|
|
249
|
+
e.required ? (s(), p(a, {
|
|
249
250
|
key: 1,
|
|
250
|
-
el:
|
|
251
|
+
el: "span",
|
|
251
252
|
class: "b-textarea__label-item"
|
|
252
253
|
}, {
|
|
253
254
|
default: c(() => [
|
|
254
|
-
y(" (" +
|
|
255
|
+
y(" (" + f(e.t("required")) + ") ", 1)
|
|
255
256
|
]),
|
|
256
257
|
_: 1
|
|
257
|
-
}
|
|
258
|
-
], 8,
|
|
259
|
-
e.characterLimit ? (
|
|
258
|
+
})) : u("", !0)
|
|
259
|
+
], 8, Ie)) : u("", !0),
|
|
260
|
+
e.characterLimit ? (s(), p(a, {
|
|
260
261
|
key: 1,
|
|
261
|
-
el:
|
|
262
|
-
class:
|
|
262
|
+
el: "span",
|
|
263
|
+
class: S(["b-textarea__label-item", e.conditionalClassesLabelItem])
|
|
263
264
|
}, {
|
|
264
265
|
default: c(() => [
|
|
265
|
-
y(
|
|
266
|
+
y(f(e.counter), 1)
|
|
266
267
|
]),
|
|
267
268
|
_: 1
|
|
268
|
-
}, 8, ["
|
|
269
|
+
}, 8, ["class"])) : u("", !0)
|
|
269
270
|
], 2),
|
|
270
|
-
|
|
271
|
-
el:
|
|
271
|
+
I(a, {
|
|
272
|
+
el: "div",
|
|
272
273
|
class: "b-textarea__input-box",
|
|
273
274
|
"aria-disabled": e.disabled
|
|
274
275
|
}, {
|
|
275
276
|
default: c(() => [
|
|
276
|
-
|
|
277
|
+
k("textarea", {
|
|
277
278
|
id: e.textareaId,
|
|
278
279
|
ref: "textareaElement",
|
|
279
280
|
value: e.textareaValue,
|
|
280
|
-
class:
|
|
281
|
+
class: S(["b-textarea__input", e.conditionalClassesInput]),
|
|
281
282
|
"aria-label": e.computedAriaLabel,
|
|
282
283
|
"aria-invalid": e.invalidInput,
|
|
283
284
|
readonly: e.isReadOnly,
|
|
284
285
|
disabled: e.disabled,
|
|
285
286
|
placeholder: e.placeholder,
|
|
286
|
-
style:
|
|
287
|
-
onBlur:
|
|
288
|
-
onChange:
|
|
289
|
-
onFocus:
|
|
290
|
-
onInput:
|
|
291
|
-
onKeydown:
|
|
287
|
+
style: H({ resize: e.resizable, height: e.textareaHeight }),
|
|
288
|
+
onBlur: l[0] || (l[0] = (...o) => e.onBlur && e.onBlur(...o)),
|
|
289
|
+
onChange: l[1] || (l[1] = (...o) => e.onChange && e.onChange(...o)),
|
|
290
|
+
onFocus: l[2] || (l[2] = (...o) => e.onFocus && e.onFocus(...o)),
|
|
291
|
+
onInput: l[3] || (l[3] = (...o) => e.onInput && e.onInput(...o)),
|
|
292
|
+
onKeydown: l[4] || (l[4] = N((...o) => e.onPressEscape && e.onPressEscape(...o), ["esc"]))
|
|
292
293
|
}, `
|
|
293
|
-
`, 46,
|
|
294
|
-
e.showClearButton ? (
|
|
295
|
-
|
|
296
|
-
variant:
|
|
294
|
+
`, 46, $e),
|
|
295
|
+
e.showClearButton ? (s(), L("div", Ae, [
|
|
296
|
+
I(b, {
|
|
297
|
+
variant: "tertiary",
|
|
297
298
|
disabled: e.disabled,
|
|
298
299
|
onClick: e.onClear,
|
|
299
300
|
onKeypress: N(e.onClear, ["enter"]),
|
|
300
301
|
onKeyup: N(e.onClear, ["space"])
|
|
301
302
|
}, {
|
|
302
303
|
iconLeft: c(() => [
|
|
303
|
-
|
|
304
|
+
I(v, {
|
|
304
305
|
"svg-title": e.t("clearText")
|
|
305
306
|
}, null, 8, ["svg-title"])
|
|
306
307
|
]),
|
|
307
308
|
_: 1
|
|
308
|
-
}, 8, ["
|
|
309
|
-
])) :
|
|
309
|
+
}, 8, ["disabled", "onClick", "onKeypress", "onKeyup"])
|
|
310
|
+
])) : u("", !0)
|
|
310
311
|
]),
|
|
311
312
|
_: 1
|
|
312
|
-
}, 8, ["
|
|
313
|
-
e.isOverCharacterLimit ? (
|
|
313
|
+
}, 8, ["aria-disabled"]),
|
|
314
|
+
e.isOverCharacterLimit ? (s(), p(g, {
|
|
314
315
|
key: 0,
|
|
315
316
|
"error-message": e.counterErrorText
|
|
316
|
-
}, null, 8, ["error-message"])) :
|
|
317
|
-
e.errorMessage ? (
|
|
317
|
+
}, null, 8, ["error-message"])) : u("", !0),
|
|
318
|
+
e.errorMessage ? (s(), p(g, {
|
|
318
319
|
key: 1,
|
|
319
320
|
"error-message": e.errorMessage
|
|
320
|
-
}, null, 8, ["error-message"])) :
|
|
321
|
-
e.description ? (
|
|
321
|
+
}, null, 8, ["error-message"])) : u("", !0),
|
|
322
|
+
e.description ? (s(), p(a, {
|
|
322
323
|
key: 2,
|
|
323
324
|
class: "b-textarea__description",
|
|
324
|
-
el:
|
|
325
|
+
el: "span"
|
|
325
326
|
}, {
|
|
326
327
|
default: c(() => [
|
|
327
|
-
y(
|
|
328
|
+
y(f(e.description), 1)
|
|
328
329
|
]),
|
|
329
330
|
_: 1
|
|
330
|
-
}
|
|
331
|
+
})) : u("", !0)
|
|
331
332
|
], 6);
|
|
332
333
|
}
|
|
333
|
-
const
|
|
334
|
+
const Me = /* @__PURE__ */ M(Se, [["render", Re], ["__scopeId", "data-v-12df95db"]]);
|
|
334
335
|
export {
|
|
335
|
-
|
|
336
|
+
Me as BentoTextarea
|
|
336
337
|
};
|
|
337
338
|
//# sourceMappingURL=textarea.js.map
|