@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/input-field.js
CHANGED
|
@@ -1,33 +1,43 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { g as
|
|
6
|
-
import { u as
|
|
7
|
-
import { B as
|
|
8
|
-
import { g as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import "./
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { defineComponent as re, useAttrs as oe, useSlots as ne, ref as C, toRef as le, computed as o, toRefs as se, openBlock as d, createBlock as u, unref as t, normalizeClass as ue, withCtx as c, createElementBlock as f, createVNode as H, renderSlot as b, createTextVNode as I, toDisplayString as B, createCommentVNode as i, createElementVNode as q, mergeProps as G, withKeys as pe } from "vue";
|
|
2
|
+
import { d as ce, B as y } from "./chunks/index.89b00b94.js";
|
|
3
|
+
import { u as fe } from "./chunks/use-has-slot.9fac7123.js";
|
|
4
|
+
import { u as be } from "./chunks/use-form-layout-loading.d03e5d48.js";
|
|
5
|
+
import { g as w } from "./chunks/unique-id.a2a2b458.js";
|
|
6
|
+
import { u as ye } from "./chunks/i18n.6c402773.js";
|
|
7
|
+
import { B as z, a as j } from "./chunks/dropdown.b798a82e.js";
|
|
8
|
+
import { g as ve } from "./chunks/get-slot-text.bead058f.js";
|
|
9
|
+
import { u as me } from "./chunks/aria-label.ac9651a5.js";
|
|
10
|
+
import { E as _e } from "./chunks/error-message.9acead25.js";
|
|
11
|
+
import { _ as De } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
12
|
+
import "./assets/index38.css";
|
|
13
|
+
var v = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PAYMENT_METHOD = "payment-method", e.STATIC_VALUE = "static-value", e.DROPDOWN = "dropdown", e))(v || {}), l = /* @__PURE__ */ ((e) => (e.START = "start", e.END = "end", e))(l || {}), m = /* @__PURE__ */ ((e) => (e.CONDENSED = "condensed", e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e.SMALL_PADDING_LEFT = "small-padding-left", e.SMALL_PADDING_RIGHT = "small-padding-right", e))(m || {}), k = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.TEXT = "text", e.NUMBER = "number", e))(k || {}), Ae = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.ESCAPE_PRESSED = "escape-pressed", e.UPDATE_DROPDOWN = "update:dropdown", e.DROPDOWN_INPUT = "dropdown-input", e.FOCUS = "focus", e.CHANGE = "change", e.BLUR = "blur", e.KEYDOWN = "keydown", e))(Ae || {});
|
|
14
|
+
const x = {
|
|
14
15
|
"en-US": {
|
|
15
16
|
optional: "optional",
|
|
16
|
-
required: "required"
|
|
17
|
+
required: "required",
|
|
18
|
+
ariaLabelFallback: "Input field"
|
|
17
19
|
}
|
|
18
|
-
},
|
|
19
|
-
i18n: { messages:
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
}, we = ["for"], Se = ["aria-disabled"], ge = ["aria-hidden"], he = ["aria-hidden"], Ee = ["id"], Le = ["id", "aria-label", "aria-describedby", "aria-owns", "aria-invalid", "placeholder", "type", "value", "disabled", "readonly"], Te = ["aria-hidden"], Ne = ["id"], ke = ["id"], Re = {
|
|
21
|
+
i18n: { messages: x }
|
|
22
|
+
}, Oe = /* @__PURE__ */ re({
|
|
23
|
+
...Re,
|
|
24
|
+
__name: "input-field",
|
|
22
25
|
props: {
|
|
23
26
|
/**
|
|
24
27
|
* Indicates whether the element is exposed to an accessibility API.
|
|
25
28
|
*/
|
|
26
29
|
ariaHidden: { type: Boolean, default: !0 },
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated from version 2.0.0. Use the aria-label attribute instead.
|
|
32
|
+
*/
|
|
27
33
|
/**
|
|
28
34
|
* Text that labels an the input element
|
|
29
35
|
*/
|
|
30
36
|
ariaLabel: { type: String, default: void 0 },
|
|
37
|
+
/**
|
|
38
|
+
* Reduces height of the input
|
|
39
|
+
*/
|
|
40
|
+
condensed: { type: Boolean, default: !1 },
|
|
31
41
|
/**
|
|
32
42
|
* Disables the possibility of changing value in the input-field
|
|
33
43
|
*/
|
|
@@ -92,8 +102,8 @@ const k = {
|
|
|
92
102
|
*/
|
|
93
103
|
type: {
|
|
94
104
|
type: String,
|
|
95
|
-
default:
|
|
96
|
-
validator: (e) => Object.values(
|
|
105
|
+
default: k.TEXT,
|
|
106
|
+
validator: (e) => Object.values(k).includes(e)
|
|
97
107
|
},
|
|
98
108
|
/**
|
|
99
109
|
* Text displayed as the value of the input-field
|
|
@@ -108,267 +118,229 @@ const k = {
|
|
|
108
118
|
validator: (e) => Object.values(v).includes(e)
|
|
109
119
|
}
|
|
110
120
|
},
|
|
111
|
-
emits: [
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
()
|
|
130
|
-
),
|
|
131
|
-
() =>
|
|
132
|
-
),
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
!e.disabled && !A.value && E(i.INPUT, T.target.value);
|
|
146
|
-
}, z = (T) => {
|
|
147
|
-
E(i.DROPDOWN_INPUT, T), E(i.UPDATE_DROPDOWN, { ...e == null ? void 0 : e.dropdown, value: T });
|
|
148
|
-
}, q = () => {
|
|
149
|
-
w.value.focus();
|
|
121
|
+
emits: ["update:dropdown", "blur", "change", "dropdown-input", "escape-pressed", "focus", "keydown", "input"],
|
|
122
|
+
setup(e, { expose: W, emit: s }) {
|
|
123
|
+
const a = e, Y = oe(), L = ne(), { t: T } = ye({ messages: x }), p = fe(L), R = C(null), O = w("input"), D = w("input-dropdown"), S = w("input-static-value"), $ = w("input-description"), M = w("input-error"), { isReadOnly: _ } = be(le(a, "readonly")), g = o(
|
|
124
|
+
() => a.variant === v.STATIC_VALUE && !!L.staticValue
|
|
125
|
+
), K = o(() => a.variant === v.DEFAULT), F = o(() => a.variant === v.PAYMENT_METHOD), X = o(
|
|
126
|
+
() => g.value && a.staticValuePosition === l.START
|
|
127
|
+
), J = o(
|
|
128
|
+
() => g.value && a.staticValuePosition === l.END
|
|
129
|
+
), h = o(() => a.variant === v.DROPDOWN && !!a.dropdown), P = o(
|
|
130
|
+
() => h.value && a.dropdownPosition === l.START
|
|
131
|
+
), V = o(
|
|
132
|
+
() => h.value && a.dropdownPosition === l.END
|
|
133
|
+
), E = o(
|
|
134
|
+
() => !a.disabled && !_.value && (!!a.errorMessage || a.error)
|
|
135
|
+
), Q = o(() => h.value === !0 && g.value === !0 ? `${S} ${D}` : h.value === !0 ? `${D}` : g.value === !0 ? `${S}` : null), Z = C(Y["aria-label"]), { ariaLabel: ee } = se(a), te = me({
|
|
136
|
+
ariaLabel: Z.value,
|
|
137
|
+
// TODO: take this line away when the aria-label props is removed
|
|
138
|
+
label: ee,
|
|
139
|
+
defaultFallback: p("default") ? ve(L)("default") : T("ariaLabelFallback")
|
|
140
|
+
}), ae = o(
|
|
141
|
+
() => `${p("description") ? $ : ""} ${E.value && a.errorMessage ? M : ""}`
|
|
142
|
+
), de = o(() => ({
|
|
143
|
+
[`b-input-field--${m.CONDENSED}`]: a.condensed,
|
|
144
|
+
[`b-input-field--${m.DISABLED}`]: a.disabled,
|
|
145
|
+
[`b-input-field--${m.READONLY}`]: _.value,
|
|
146
|
+
[`b-input-field--${m.ERROR}`]: E.value,
|
|
147
|
+
[`b-input-field--${m.SMALL_PADDING_LEFT}`]: P.value,
|
|
148
|
+
[`b-input-field--${m.SMALL_PADDING_RIGHT}`]: V.value
|
|
149
|
+
})), ie = (r) => {
|
|
150
|
+
!a.disabled && !_.value && s("input", r.target.value);
|
|
151
|
+
}, U = (r) => {
|
|
152
|
+
s("dropdown-input", r), s("update:dropdown", { ...a == null ? void 0 : a.dropdown, value: r });
|
|
153
|
+
}, N = () => {
|
|
154
|
+
R.value.focus();
|
|
150
155
|
};
|
|
151
|
-
return
|
|
156
|
+
return W({
|
|
157
|
+
focusInput: N
|
|
158
|
+
}), a.error && ce(
|
|
152
159
|
'BentoInputField "error" property',
|
|
153
160
|
`Use the BentoInputField "errorMessage" property instead to indicate that there is a modifier error.
|
|
154
|
-
|
|
155
|
-
|
|
161
|
+
Having the field as "undefined" will hide/remove the error.
|
|
162
|
+
<bento-dropdown errorMessage="Error message text" />`,
|
|
156
163
|
"2.0.0"
|
|
157
|
-
), {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
t: P,
|
|
166
|
-
onDropdownInput: z,
|
|
167
|
-
onInput: _,
|
|
168
|
-
focusInput: q,
|
|
169
|
-
hasSlot: h,
|
|
170
|
-
// Values
|
|
171
|
-
inputFieldConditionalClasses: G,
|
|
172
|
-
inputFieldElement: w,
|
|
173
|
-
inputFieldId: d,
|
|
174
|
-
dropdownId: y,
|
|
175
|
-
staticValueId: b,
|
|
176
|
-
descriptionId: t,
|
|
177
|
-
errorId: B,
|
|
178
|
-
isReadOnly: A,
|
|
179
|
-
shouldDisplayStaticValueAtStart: C,
|
|
180
|
-
shouldDisplayStaticValueAtEnd: H,
|
|
181
|
-
shouldShowDropdown: D,
|
|
182
|
-
shouldDisplayDropdownAtStart: c,
|
|
183
|
-
shouldDisplayDropdownAtEnd: R,
|
|
184
|
-
shouldShowError: I,
|
|
185
|
-
computedAriaOwns: F,
|
|
186
|
-
computedAriaLabel: Y,
|
|
187
|
-
computedAriaDescribedBy: W
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
const pe = ["for"], fe = ["aria-disabled"], ye = ["aria-hidden"], ve = ["aria-hidden"], me = ["id"], be = ["id", "aria-label", "aria-describedby", "aria-owns", "aria-invalid", "placeholder", "type", "value", "disabled", "readonly"], De = ["aria-hidden"], Se = ["id"], Ee = ["id"];
|
|
192
|
-
function he(e, a, E, P, h, w) {
|
|
193
|
-
const d = O("bento-typography"), y = O("bento-dropdown"), b = O("error-message");
|
|
194
|
-
return o(), s(d, {
|
|
195
|
-
class: J(["b-input-field", e.inputFieldConditionalClasses]),
|
|
196
|
-
"data-testid": "input-text-container",
|
|
197
|
-
el: e.BentoTypographyElement.DIV,
|
|
198
|
-
variant: e.BentoTypographyVariant.BODY
|
|
199
|
-
}, {
|
|
200
|
-
default: u(() => [
|
|
201
|
-
e.hasSlot("default") ? (o(), p("label", {
|
|
202
|
-
key: 0,
|
|
203
|
-
for: e.inputFieldId,
|
|
204
|
-
class: "b-input-field__label",
|
|
205
|
-
"data-testid": "input-field-label",
|
|
206
|
-
onClick: a[0] || (a[0] = (...t) => e.focusInput && e.focusInput(...t))
|
|
207
|
-
}, [
|
|
208
|
-
L(d, {
|
|
209
|
-
el: e.BentoTypographyElement.SPAN,
|
|
210
|
-
variant: e.BentoTypographyVariant.BODY,
|
|
211
|
-
stronger: ""
|
|
212
|
-
}, {
|
|
213
|
-
default: u(() => [
|
|
214
|
-
f(e.$slots, "default", {}, void 0, !0)
|
|
215
|
-
]),
|
|
216
|
-
_: 3
|
|
217
|
-
}, 8, ["el", "variant"]),
|
|
218
|
-
e.optional ? (o(), s(d, {
|
|
219
|
-
key: 0,
|
|
220
|
-
class: "b-input-field__label-requirement",
|
|
221
|
-
el: e.BentoTypographyElement.SPAN
|
|
222
|
-
}, {
|
|
223
|
-
default: u(() => [
|
|
224
|
-
$(" (" + V(e.t("optional")) + ") ", 1)
|
|
225
|
-
]),
|
|
226
|
-
_: 1
|
|
227
|
-
}, 8, ["el"])) : n("", !0),
|
|
228
|
-
e.required ? (o(), s(d, {
|
|
229
|
-
key: 1,
|
|
230
|
-
class: "b-input-field__label-requirement",
|
|
231
|
-
el: e.BentoTypographyElement.SPAN
|
|
232
|
-
}, {
|
|
233
|
-
default: u(() => [
|
|
234
|
-
$(" (" + V(e.t("required")) + ") ", 1)
|
|
235
|
-
]),
|
|
236
|
-
_: 1
|
|
237
|
-
}, 8, ["el"])) : n("", !0)
|
|
238
|
-
], 8, pe)) : n("", !0),
|
|
239
|
-
U("div", {
|
|
240
|
-
class: "b-input-field__input-box",
|
|
241
|
-
"aria-disabled": e.disabled
|
|
242
|
-
}, [
|
|
243
|
-
e.variant === e.BentoInputFieldVariant.DEFAULT && e.hasSlot("defaultIconBefore") ? (o(), p("span", {
|
|
164
|
+
), (r, n) => (d(), u(t(y), {
|
|
165
|
+
class: ue(["b-input-field", t(de)]),
|
|
166
|
+
"data-testid": "input-text-container",
|
|
167
|
+
el: "div",
|
|
168
|
+
variant: "body"
|
|
169
|
+
}, {
|
|
170
|
+
default: c(() => [
|
|
171
|
+
t(p)("default") ? (d(), f("label", {
|
|
244
172
|
key: 0,
|
|
245
|
-
|
|
246
|
-
class: "b-input-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
], 8, ye)) : n("", !0),
|
|
250
|
-
e.variant === e.BentoInputFieldVariant.PAYMENT_METHOD && e.hasSlot("paymentMethod") ? (o(), p("span", {
|
|
251
|
-
key: 1,
|
|
252
|
-
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
253
|
-
class: "b-input-field__payment-method"
|
|
173
|
+
for: t(O),
|
|
174
|
+
class: "b-input-field__label",
|
|
175
|
+
"data-testid": "input-field-label",
|
|
176
|
+
onClick: N
|
|
254
177
|
}, [
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
"
|
|
288
|
-
"aria-
|
|
289
|
-
placeholder: e.placeholder,
|
|
290
|
-
type: e.type,
|
|
291
|
-
value: e.value,
|
|
292
|
-
disabled: e.disabled,
|
|
293
|
-
readonly: e.isReadOnly,
|
|
294
|
-
onInput: a[1] || (a[1] = (...t) => e.onInput && e.onInput(...t)),
|
|
295
|
-
onChange: a[2] || (a[2] = (t) => e.$emit(e.BentoInputFieldEvent.CHANGE)),
|
|
296
|
-
onFocus: a[3] || (a[3] = (t) => e.$emit(e.BentoInputFieldEvent.FOCUS)),
|
|
297
|
-
onBlur: a[4] || (a[4] = (t) => e.$emit(e.BentoInputFieldEvent.BLUR)),
|
|
298
|
-
onKeydown: [
|
|
299
|
-
a[5] || (a[5] = (t) => e.$emit(e.BentoInputFieldEvent.KEYDOWN, t)),
|
|
300
|
-
a[6] || (a[6] = Q((t) => e.$emit(e.BentoInputFieldEvent.ESCAPE_PRESSED), ["esc"]))
|
|
301
|
-
]
|
|
302
|
-
}, null, 40, be),
|
|
303
|
-
e.hasSlot("iconAfter") ? (o(), p("span", {
|
|
304
|
-
key: 4,
|
|
305
|
-
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
306
|
-
class: "b-input-field__icon-after",
|
|
307
|
-
"data-testid": "input-text__icon-after"
|
|
308
|
-
}, [
|
|
309
|
-
f(e.$slots, "iconAfter", {}, void 0, !0)
|
|
310
|
-
], 8, De)) : n("", !0),
|
|
311
|
-
e.shouldDisplayStaticValueAtEnd ? (o(), s(d, {
|
|
312
|
-
key: 5,
|
|
313
|
-
id: e.staticValueId,
|
|
314
|
-
class: "b-input-field__static-value b-input-field__static-value--end",
|
|
315
|
-
el: e.BentoTypographyElement.SPAN,
|
|
316
|
-
variant: e.BentoTypographyVariant.BODY
|
|
317
|
-
}, {
|
|
318
|
-
default: u(() => [
|
|
319
|
-
f(e.$slots, "staticValue", {}, void 0, !0)
|
|
320
|
-
]),
|
|
321
|
-
_: 3
|
|
322
|
-
}, 8, ["id", "el", "variant"])) : n("", !0),
|
|
323
|
-
e.shouldDisplayDropdownAtEnd ? (o(), p("div", {
|
|
324
|
-
key: 6,
|
|
325
|
-
id: e.dropdownId,
|
|
326
|
-
class: "b-input-field__dropdown b-input-field__dropdown--end"
|
|
178
|
+
H(t(y), {
|
|
179
|
+
el: "span",
|
|
180
|
+
variant: "body",
|
|
181
|
+
stronger: ""
|
|
182
|
+
}, {
|
|
183
|
+
default: c(() => [
|
|
184
|
+
b(r.$slots, "default", {}, void 0, !0)
|
|
185
|
+
]),
|
|
186
|
+
_: 3
|
|
187
|
+
}),
|
|
188
|
+
e.optional ? (d(), u(t(y), {
|
|
189
|
+
key: 0,
|
|
190
|
+
class: "b-input-field__label-requirement",
|
|
191
|
+
el: "span"
|
|
192
|
+
}, {
|
|
193
|
+
default: c(() => [
|
|
194
|
+
I(" (" + B(t(T)("optional")) + ") ", 1)
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
})) : i("", !0),
|
|
198
|
+
e.required ? (d(), u(t(y), {
|
|
199
|
+
key: 1,
|
|
200
|
+
class: "b-input-field__label-requirement",
|
|
201
|
+
el: "span"
|
|
202
|
+
}, {
|
|
203
|
+
default: c(() => [
|
|
204
|
+
I(" (" + B(t(T)("required")) + ") ", 1)
|
|
205
|
+
]),
|
|
206
|
+
_: 1
|
|
207
|
+
})) : i("", !0)
|
|
208
|
+
], 8, we)) : i("", !0),
|
|
209
|
+
q("div", {
|
|
210
|
+
class: "b-input-field__input-box",
|
|
211
|
+
"aria-disabled": e.disabled
|
|
327
212
|
}, [
|
|
328
|
-
|
|
213
|
+
t(K) && t(p)("defaultIconBefore") ? (d(), f("span", {
|
|
329
214
|
key: 0,
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
215
|
+
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
216
|
+
class: "b-input-field__default-icon-before"
|
|
217
|
+
}, [
|
|
218
|
+
b(r.$slots, "defaultIconBefore", {}, void 0, !0)
|
|
219
|
+
], 8, ge)) : i("", !0),
|
|
220
|
+
t(F) && t(p)("paymentMethod") ? (d(), f("span", {
|
|
221
|
+
key: 1,
|
|
222
|
+
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
223
|
+
class: "b-input-field__payment-method"
|
|
224
|
+
}, [
|
|
225
|
+
b(r.$slots, "paymentMethod", {}, void 0, !0)
|
|
226
|
+
], 8, he)) : i("", !0),
|
|
227
|
+
t(P) ? (d(), f("div", {
|
|
228
|
+
key: 2,
|
|
229
|
+
id: t(D),
|
|
230
|
+
class: "b-input-field__dropdown b-input-field__dropdown--start"
|
|
231
|
+
}, [
|
|
232
|
+
e.dropdown ? (d(), u(t(z), G({ key: 0 }, e.dropdown, {
|
|
233
|
+
size: t(j).SMALL,
|
|
234
|
+
disabled: e.disabled,
|
|
235
|
+
readonly: t(_),
|
|
236
|
+
onInput: U
|
|
237
|
+
}), null, 16, ["size", "disabled", "readonly"])) : i("", !0)
|
|
238
|
+
], 8, Ee)) : i("", !0),
|
|
239
|
+
t(X) ? (d(), u(t(y), {
|
|
240
|
+
key: 3,
|
|
241
|
+
id: t(S),
|
|
242
|
+
class: "b-input-field__static-value b-input-field__static-value--start",
|
|
243
|
+
el: "span",
|
|
244
|
+
variant: "body"
|
|
245
|
+
}, {
|
|
246
|
+
default: c(() => [
|
|
247
|
+
b(r.$slots, "staticValue", {}, void 0, !0)
|
|
248
|
+
]),
|
|
249
|
+
_: 3
|
|
250
|
+
}, 8, ["id"])) : i("", !0),
|
|
251
|
+
q("input", {
|
|
252
|
+
id: t(O),
|
|
253
|
+
ref_key: "inputFieldElement",
|
|
254
|
+
ref: R,
|
|
255
|
+
class: "b-input-field__input",
|
|
256
|
+
"aria-label": t(te),
|
|
257
|
+
"aria-describedby": t(ae),
|
|
258
|
+
"aria-owns": t(Q),
|
|
259
|
+
"aria-invalid": t(E),
|
|
260
|
+
placeholder: e.placeholder,
|
|
261
|
+
type: e.type,
|
|
262
|
+
value: e.value,
|
|
333
263
|
disabled: e.disabled,
|
|
334
|
-
readonly:
|
|
335
|
-
onInput:
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
264
|
+
readonly: t(_),
|
|
265
|
+
onInput: ie,
|
|
266
|
+
onChange: n[0] || (n[0] = (A) => s("change")),
|
|
267
|
+
onFocus: n[1] || (n[1] = (A) => s("focus")),
|
|
268
|
+
onBlur: n[2] || (n[2] = (A) => s("blur")),
|
|
269
|
+
onKeydown: [
|
|
270
|
+
n[3] || (n[3] = (A) => s("keydown", A)),
|
|
271
|
+
n[4] || (n[4] = pe((A) => s("escape-pressed"), ["esc"]))
|
|
272
|
+
]
|
|
273
|
+
}, null, 40, Le),
|
|
274
|
+
t(p)("iconAfter") ? (d(), f("span", {
|
|
275
|
+
key: 4,
|
|
276
|
+
"aria-hidden": e.ariaHidden ? "true" : void 0,
|
|
277
|
+
class: "b-input-field__icon-after",
|
|
278
|
+
"data-testid": "input-text__icon-after"
|
|
279
|
+
}, [
|
|
280
|
+
b(r.$slots, "iconAfter", {}, void 0, !0)
|
|
281
|
+
], 8, Te)) : i("", !0),
|
|
282
|
+
t(J) ? (d(), u(t(y), {
|
|
283
|
+
key: 5,
|
|
284
|
+
id: t(S),
|
|
285
|
+
class: "b-input-field__static-value b-input-field__static-value--end",
|
|
286
|
+
el: "span",
|
|
287
|
+
variant: "body"
|
|
288
|
+
}, {
|
|
289
|
+
default: c(() => [
|
|
290
|
+
b(r.$slots, "staticValue", {}, void 0, !0)
|
|
291
|
+
]),
|
|
292
|
+
_: 3
|
|
293
|
+
}, 8, ["id"])) : i("", !0),
|
|
294
|
+
t(V) ? (d(), f("div", {
|
|
295
|
+
key: 6,
|
|
296
|
+
id: t(D),
|
|
297
|
+
class: "b-input-field__dropdown b-input-field__dropdown--end"
|
|
298
|
+
}, [
|
|
299
|
+
e.dropdown ? (d(), u(t(z), G({
|
|
300
|
+
key: 0,
|
|
301
|
+
id: t(D)
|
|
302
|
+
}, e.dropdown, {
|
|
303
|
+
size: t(j).SMALL,
|
|
304
|
+
disabled: e.disabled,
|
|
305
|
+
readonly: t(_),
|
|
306
|
+
onInput: U
|
|
307
|
+
}), null, 16, ["id", "size", "disabled", "readonly"])) : i("", !0)
|
|
308
|
+
], 8, Ne)) : i("", !0)
|
|
309
|
+
], 8, Se),
|
|
310
|
+
t(E) && e.errorMessage ? (d(), u(t(_e), {
|
|
311
|
+
key: 1,
|
|
312
|
+
id: t(M),
|
|
313
|
+
"error-message": e.errorMessage,
|
|
314
|
+
class: "b-input-field__error-message"
|
|
315
|
+
}, null, 8, ["id", "error-message"])) : i("", !0),
|
|
316
|
+
t(p)("description") ? (d(), f("span", {
|
|
317
|
+
key: 2,
|
|
318
|
+
id: t($),
|
|
319
|
+
class: "b-input-field__description",
|
|
320
|
+
onClick: N
|
|
321
|
+
}, [
|
|
322
|
+
H(t(y), {
|
|
323
|
+
el: "span",
|
|
324
|
+
variant: "body"
|
|
325
|
+
}, {
|
|
326
|
+
default: c(() => [
|
|
327
|
+
b(r.$slots, "description", { id: "description" }, void 0, !0)
|
|
328
|
+
]),
|
|
329
|
+
_: 3
|
|
330
|
+
})
|
|
331
|
+
], 8, ke)) : i("", !0)
|
|
332
|
+
]),
|
|
333
|
+
_: 3
|
|
334
|
+
}, 8, ["class"]));
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
const ze = /* @__PURE__ */ De(Oe, [["__scopeId", "data-v-d88e1850"]]);
|
|
366
338
|
export {
|
|
367
|
-
|
|
339
|
+
ze as BentoInputField,
|
|
368
340
|
l as BentoInputFieldElementPosition,
|
|
369
|
-
|
|
341
|
+
Ae as BentoInputFieldEvent,
|
|
370
342
|
m as BentoInputFieldStateClass,
|
|
371
|
-
|
|
343
|
+
k as BentoInputFieldType,
|
|
372
344
|
v as BentoInputFieldVariant
|
|
373
345
|
};
|
|
374
346
|
//# sourceMappingURL=input-field.js.map
|