@adyen/bento-vue2 1.6.1 → 1.7.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 +2 -0
- package/dist/@types/packages/core/src/components/button/button.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +43 -0
- package/dist/@types/packages/vue2/src/components/action-bar/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +290 -281
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +53 -70
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +20 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +18 -0
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +20 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +45 -27
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +21 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +24 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +21 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +21 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +21 -3
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +22 -4
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +5 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +234 -12
- package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +12 -5
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.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 +2 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +12 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +1 -1
- 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.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +21 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +18 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +19 -0
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/fixed-scroller.vue.d.ts +22 -1
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +94 -8
- package/dist/@types/packages/vue2/src/components/internal/teleport/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/teleport/teleport.vue.d.ts +50 -0
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/menu.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +15 -11
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +10 -5
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +21 -0
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +21 -5
- package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +6 -3
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -2
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +13 -13
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +226 -0
- package/dist/@types/packages/vue2/src/components/tutorial/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +13 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +16 -0
- package/dist/@types/packages/vue2/src/composables/index.d.ts +5 -2
- package/dist/@types/packages/vue2/src/composables/use-click-outside/use-click-outside.d.ts +3 -0
- package/dist/@types/packages/vue2/src/composables/use-form-validate/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +12 -0
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.types.d.ts +5 -0
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.d.ts +15 -0
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.types.d.ts +20 -0
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/types/listbox.d.ts +12 -0
- package/dist/accordion.js +41 -32
- package/dist/accordion.js.map +1 -1
- package/dist/action-bar.js +191 -0
- package/dist/action-bar.js.map +1 -0
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.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/checkmark.css +1 -0
- package/dist/assets/chevron-left.css +1 -0
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/fixed-scroller.css +1 -0
- 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/index23.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/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 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.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.css +1 -1
- package/dist/assets/refresh.css +1 -0
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +21 -14
- package/dist/button.js.map +1 -1
- package/dist/card.js +54 -54
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.d1ba66cd.js → base-button.7886a7e6.js} +2 -2
- package/dist/chunks/{base-button.d1ba66cd.js.map → base-button.7886a7e6.js.map} +1 -1
- package/dist/chunks/{base-modal.ec74044e.js → base-modal.88e7b9d4.js} +4 -4
- package/dist/chunks/{base-modal.ec74044e.js.map → base-modal.88e7b9d4.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.a5413243.js +105 -0
- package/dist/chunks/button-actions-with-menu.a5413243.js.map +1 -0
- package/dist/chunks/button.e09d5980.js +125 -0
- package/dist/chunks/button.e09d5980.js.map +1 -0
- package/dist/chunks/{calendar.b74f8a0f.js → calendar.24d0ac04.js} +294 -272
- package/dist/chunks/calendar.24d0ac04.js.map +1 -0
- package/dist/chunks/{checkbox.96ee3f71.js → checkbox.5343e28e.js} +7 -7
- package/dist/chunks/{checkbox.96ee3f71.js.map → checkbox.5343e28e.js.map} +1 -1
- package/dist/chunks/checkmark.78f3ed9c.js +26 -0
- package/dist/chunks/checkmark.78f3ed9c.js.map +1 -0
- package/dist/chunks/{chevron-right.3b826337.js → chevron-left.c10778d3.js} +8 -8
- package/dist/chunks/chevron-left.c10778d3.js.map +1 -0
- package/dist/chunks/{controls-group.e9537e45.js → controls-group.2a21bd83.js} +2 -2
- package/dist/chunks/{controls-group.e9537e45.js.map → controls-group.2a21bd83.js.map} +1 -1
- package/dist/chunks/{copy.2ff56819.js → copy.346eadb1.js} +4 -4
- package/dist/chunks/{copy.2ff56819.js.map → copy.346eadb1.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.3df0bf23.js → dropdown-default-textbox.25134789.js} +4 -4
- package/dist/chunks/dropdown-default-textbox.25134789.js.map +1 -0
- package/dist/chunks/{dropdown.3f198167.js → dropdown.f1253a54.js} +111 -81
- package/dist/chunks/dropdown.f1253a54.js.map +1 -0
- package/dist/chunks/{error-message.f5454f19.js → error-message.8302a46c.js} +2 -2
- package/dist/chunks/{error-message.f5454f19.js.map → error-message.8302a46c.js.map} +1 -1
- package/dist/chunks/fixed-scroller.8994e30a.js +108 -0
- package/dist/chunks/fixed-scroller.8994e30a.js.map +1 -0
- package/dist/chunks/{footer-actions.00d20947.js → footer-actions.c9b2cb74.js} +3 -3
- package/dist/chunks/{footer-actions.00d20947.js.map → footer-actions.c9b2cb74.js.map} +1 -1
- package/dist/chunks/{index.c39c64c9.js → index.2625175a.js} +2 -2
- package/dist/chunks/{index.c39c64c9.js.map → index.2625175a.js.map} +1 -1
- package/dist/chunks/index.37283390.js +475 -0
- package/dist/chunks/index.37283390.js.map +1 -0
- package/dist/chunks/index.8ac70774.js +1328 -0
- package/dist/chunks/index.8ac70774.js.map +1 -0
- package/dist/chunks/{index.2fce7703.js → index.965ac1af.js} +2 -2
- package/dist/chunks/{index.2fce7703.js.map → index.965ac1af.js.map} +1 -1
- package/dist/chunks/{index.eb52e785.js → index.a201f750.js} +6 -5
- package/dist/chunks/{index.eb52e785.js.map → index.a201f750.js.map} +1 -1
- package/dist/chunks/{index.a709a6b0.js → index.b83f8b7e.js} +2 -2
- package/dist/chunks/{index.a709a6b0.js.map → index.b83f8b7e.js.map} +1 -1
- package/dist/chunks/{index.298f5eed.js → index.d6b5f5e1.js} +6 -6
- package/dist/chunks/{index.298f5eed.js.map → index.d6b5f5e1.js.map} +1 -1
- package/dist/chunks/{index.31949c1a.js → index.e566354f.js} +91 -74
- package/dist/chunks/index.e566354f.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.1362a2d7.js → listbox-option-tag.6a09e8e2.js} +8 -7
- package/dist/chunks/{listbox-option-tag.1362a2d7.js.map → listbox-option-tag.6a09e8e2.js.map} +1 -1
- package/dist/chunks/{listbox.e7bf46e4.js → listbox.73c38f38.js} +479 -385
- package/dist/chunks/listbox.73c38f38.js.map +1 -0
- package/dist/chunks/{loading-button.0ad06c99.js → loading-button.c65682d6.js} +2 -2
- package/dist/chunks/{loading-button.0ad06c99.js.map → loading-button.c65682d6.js.map} +1 -1
- package/dist/chunks/refresh.eb485c6f.js +26 -0
- package/dist/chunks/refresh.eb485c6f.js.map +1 -0
- package/dist/chunks/summary-grid.keys.1d1028c2.js +5 -0
- package/dist/chunks/summary-grid.keys.1d1028c2.js.map +1 -0
- package/dist/chunks/{tooltip.68e81e9c.js → tooltip.104e5fac.js} +39 -36
- package/dist/chunks/{tooltip.68e81e9c.js.map → tooltip.104e5fac.js.map} +1 -1
- package/dist/code-snippet.js +7 -7
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +537 -528
- package/dist/country.js.map +1 -1
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +10 -10
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +99 -89
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +8 -7
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +500 -486
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +104 -183
- package/dist/header.js.map +1 -1
- package/dist/image.js +3 -3
- package/dist/index.js +171 -169
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +7 -7
- package/dist/internal.js +20 -106
- package/dist/internal.js.map +1 -1
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +3 -466
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +3 -3
- package/dist/pagination.js +40 -26
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +33 -26
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +4 -4
- package/dist/popper-container.js +6 -1270
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +97 -81
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/segmented-control.js +100 -70
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +53 -51
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +109 -119
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +81 -71
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +170 -162
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +3 -3
- package/dist/toggle.js +6 -6
- package/dist/tutorial.js +307 -0
- package/dist/tutorial.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/web-types.json +828 -122
- package/package.json +7 -4
- package/dist/assets/chevron-right.css +0 -1
- package/dist/chunks/button.eb60d460.js +0 -117
- package/dist/chunks/button.eb60d460.js.map +0 -1
- package/dist/chunks/calendar.b74f8a0f.js.map +0 -1
- package/dist/chunks/chevron-right.3b826337.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.3df0bf23.js.map +0 -1
- package/dist/chunks/dropdown.3f198167.js.map +0 -1
- package/dist/chunks/index.31949c1a.js.map +0 -1
- package/dist/chunks/listbox.e7bf46e4.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,65 +1,66 @@
|
|
|
1
1
|
var B = Object.defineProperty;
|
|
2
|
-
var i = (
|
|
3
|
-
var r = (
|
|
2
|
+
var i = (e, t, o) => t in e ? B(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
|
+
var r = (e, t, o) => (i(e, typeof t != "symbol" ? t + "" : t, o), o);
|
|
4
4
|
import "./chunks/index.af05ced4.js";
|
|
5
5
|
import { reactive as m } from "vue";
|
|
6
6
|
import { g as p } from "./chunks/unique-id.a2a2b458.js";
|
|
7
|
-
import { BentoAccordion as
|
|
8
|
-
import { BentoAlert as D, BentoAlertEvent as v, BentoAlertTypeOption as I, BentoAlertVariant as
|
|
9
|
-
import { a as L, b as P, B as F } from "./chunks/button.
|
|
7
|
+
import { BentoAccordion as T, BentoAccordionItem as C } from "./accordion.js";
|
|
8
|
+
import { BentoAlert as D, BentoAlertEvent as v, BentoAlertTypeOption as I, BentoAlertVariant as b } from "./alert.js";
|
|
9
|
+
import { a as L, b as P, B as F } from "./chunks/button.e09d5980.js";
|
|
10
10
|
import { BentoColumnOverflow as k, BentoDataGrid as G, BentoDatagridAriaSortValue as w, BentoDatagridEvent as A, BentoDatagridSortDirection as M, BentoDatagridStyleState as O } from "./data-grid.js";
|
|
11
11
|
import { BentoCard as _, BentoCardBackground as N, BentoCardTitleSize as q } from "./card.js";
|
|
12
12
|
import { BentoDatePicker as U, BentoDatePickerEvent as K } from "./date-picker.js";
|
|
13
|
-
import { B as Y, a as j } from "./chunks/index.
|
|
14
|
-
import { B as $, u as J } from "./chunks/dropdown.
|
|
15
|
-
import { BentoDropdownAvatar as X, BentoDropdownCountry as Z, BentoDropdownCurrency as
|
|
16
|
-
import { B as
|
|
17
|
-
import { BentoClickOutside as
|
|
18
|
-
import { BentoCodeSnippet as
|
|
19
|
-
import { BentoCountry as
|
|
20
|
-
import { BentoCurrency as
|
|
21
|
-
import { B as
|
|
22
|
-
import { BentoDivider as
|
|
23
|
-
import { BentoEmptyState as
|
|
24
|
-
import { BentoFilterBar as
|
|
25
|
-
import { BentoFormLayout as
|
|
26
|
-
import { BentoImage as
|
|
27
|
-
import { BentoInfoIcon as $
|
|
28
|
-
import { BentoInputField as
|
|
29
|
-
import { BentoLoadingIndicator as
|
|
30
|
-
import { BentoLink as
|
|
31
|
-
import {
|
|
32
|
-
import { BentoModal as
|
|
33
|
-
import { b as
|
|
34
|
-
import { BentoHeader as
|
|
35
|
-
import { BentoPagination as
|
|
36
|
-
import { BentoPaymentMethod as
|
|
37
|
-
import { BentoPopover as
|
|
38
|
-
import { BentoRadioGroup as
|
|
39
|
-
import { BentoSearchBar as
|
|
40
|
-
import { BentoSegmentedControl as
|
|
41
|
-
import { BentoSidepanel as
|
|
42
|
-
import { BentoStatus as
|
|
43
|
-
import { BentoStep as
|
|
44
|
-
import { B as
|
|
13
|
+
import { B as Y, a as j } from "./chunks/index.e566354f.js";
|
|
14
|
+
import { B as $, u as J } from "./chunks/dropdown.f1253a54.js";
|
|
15
|
+
import { BentoDropdownAvatar as X, BentoDropdownCountry as Z, BentoDropdownCurrency as tt, BentoDropdownPaymentMethod as et, BentoDropdownTag as ot } from "./dropdown.js";
|
|
16
|
+
import { B as rt, b as at, a as Bt } from "./chunks/checkbox.5343e28e.js";
|
|
17
|
+
import { BentoClickOutside as mt } from "./click-outside.js";
|
|
18
|
+
import { BentoCodeSnippet as st, BentoCodeSnippetEvent as dt, BentoCodeSnippetSupportedLanguage as ut, BentoCodeSnippetVariant as lt } from "./code-snippet.js";
|
|
19
|
+
import { BentoCountry as xt, BentoCountryCode as yt, BentoCountryVariant as ct, useCountryCapital as gt, useCountryName as St, useCountryPhoneCode as Tt } from "./country.js";
|
|
20
|
+
import { BentoCurrency as ht, BentoCurrencyISOCode as Dt } from "./currency.js";
|
|
21
|
+
import { B as It, a as bt } from "./chunks/index.b83f8b7e.js";
|
|
22
|
+
import { BentoDivider as Lt } from "./divider.js";
|
|
23
|
+
import { BentoEmptyState as Ft, BentoEmptyStateImage as Vt, BentoEmptyStateImageVariant as kt, BentoEmptyStateVariant as Gt } from "./empty-state.js";
|
|
24
|
+
import { BentoFilterBar as At, BentoFilterBarEvent as Mt, BentoFilterEvent as Ot, BentoFilterItemType as Rt } from "./filter-bar.js";
|
|
25
|
+
import { BentoFormLayout as Nt, BentoFormLayoutFieldTip as qt, BentoFormLayoutGroup as zt, BentoFormLayoutTitle as Ut } from "./form-layout.js";
|
|
26
|
+
import { BentoImage as Wt, BentoImageAspectRatio as Yt, BentoImageObjectFit as jt } from "./image.js";
|
|
27
|
+
import { BentoInfoIcon as $t } from "./info-icon.js";
|
|
28
|
+
import { BentoInputField as Qt, BentoInputFieldElementPosition as Xt, BentoInputFieldEvent as Zt, BentoInputFieldStateClass as te, BentoInputFieldType as ee, BentoInputFieldVariant as oe } from "./input-field.js";
|
|
29
|
+
import { BentoLoadingIndicator as re, BentoLoadingIndicatorEvent as ae } from "./loading-indicator.js";
|
|
30
|
+
import { BentoLink as ie, BentoLinkVariant as me } from "./link.js";
|
|
31
|
+
import { B as se, a as de } from "./chunks/index.37283390.js";
|
|
32
|
+
import { BentoModal as le } from "./modal.js";
|
|
33
|
+
import { b as xe, d as ye, e as ce, c as ge, a as Se, B as Te } from "./chunks/base-modal.88e7b9d4.js";
|
|
34
|
+
import { BentoHeader as he } from "./header.js";
|
|
35
|
+
import { BentoPagination as ve } from "./pagination.js";
|
|
36
|
+
import { BentoPaymentMethod as be, BentoPaymentMethodType as Ee } from "./payment-method.js";
|
|
37
|
+
import { BentoPopover as Pe, BentoPopoverPositions as Fe } from "./popover.js";
|
|
38
|
+
import { BentoRadioGroup as ke, BentoRadioGroupVariant as Ge } from "./radio-group.js";
|
|
39
|
+
import { BentoSearchBar as Ae, BentoSearchBarEvent as Me, BentoSearchBarInternalEvent as Oe } from "./search-bar.js";
|
|
40
|
+
import { BentoSegmentedControl as _e, BentoSegmentedControlEvent as Ne } from "./segmented-control.js";
|
|
41
|
+
import { BentoSidepanel as ze, BentoSidepanelAnimation as Ue, BentoSidepanelEvent as Ke, BentoSidepanelPage as We } from "./sidepanel.js";
|
|
42
|
+
import { BentoStatus as je, BentoStatusVariant as He } from "./status.js";
|
|
43
|
+
import { BentoStep as Je, BentoStepper as Qe, BentoStepperTypeOption as Xe, BentoStepperVariantOption as Ze } from "./stepper.js";
|
|
44
|
+
import { B as eo, a as oo } from "./chunks/index.d6b5f5e1.js";
|
|
45
45
|
import { BentoSummaryGrid as ro, BentoSummaryGridItemAmount as ao, BentoSummaryGridItemCustom as Bo, BentoSummaryGridItemNumeric as io, BentoSummaryGridItemPercentage as mo, BentoSummaryGridItemSize as po, BentoSummaryGridItemText as so, BentoSummaryGridItemTrendDirection as uo } from "./summary-grid.js";
|
|
46
46
|
import { BentoTab as fo, BentoTabs as xo } from "./tabs.js";
|
|
47
47
|
import { BentoTag as co, BentoTagVariant as go } from "./tag.js";
|
|
48
|
-
import { BentoTextarea as
|
|
49
|
-
import { BentoTimeline as ho, BentoTimelineGapUnit as Do, BentoTimelineItem as vo, BentoTimelineItemVariant as Io, BentoTimelineShowMorePlacement as
|
|
48
|
+
import { BentoTextarea as To } from "./textarea.js";
|
|
49
|
+
import { BentoTimeline as ho, BentoTimelineGapUnit as Do, BentoTimelineItem as vo, BentoTimelineItemVariant as Io, BentoTimelineShowMorePlacement as bo } from "./timeline.js";
|
|
50
50
|
import { BentoToast as Lo } from "./toast.js";
|
|
51
51
|
import { u as Fo } from "./chunks/toastController.0e01443d.js";
|
|
52
52
|
import { BentoToggle as ko, BentoToggleLabelPosition as Go, BentoTogglePropClass as wo } from "./toggle.js";
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
53
|
+
import { BentoTutorial as Mo } from "./tutorial.js";
|
|
54
|
+
import { B as Ro, c as _o, b as No, a as qo } from "./chunks/index.965ac1af.js";
|
|
55
|
+
import { BentoButtonActions as Uo, BentoButtonActionsLayout as Ko, BentoButtonActionsLayoutBasic as Wo, BentoButtonActionsLayoutExtended as Yo } from "./button.js";
|
|
56
|
+
import { B as Ho, a as $o } from "./chunks/loading-button.c65682d6.js";
|
|
57
|
+
import { b as Qo, b as Xo } from "./chunks/calendar.24d0ac04.js";
|
|
58
|
+
import { BentoCheckboxGroup as tn, BentoCheckboxGroupVariant as en } from "./checkbox.js";
|
|
59
|
+
import { D as nn } from "./chunks/date-input.9186a0bf.js";
|
|
60
|
+
import { a as an, B as Bn } from "./chunks/keyboard-navigation.ca47dfa8.js";
|
|
61
|
+
import { a as pn, b as sn } from "./chunks/listbox.73c38f38.js";
|
|
62
|
+
import { B as un } from "./chunks/directive.0408e565.js";
|
|
63
|
+
import { b as fn, B as xn, a as yn } from "./chunks/tooltip.104e5fac.js";
|
|
63
64
|
class s {
|
|
64
65
|
constructor() {
|
|
65
66
|
r(this, "_state");
|
|
@@ -68,12 +69,12 @@ class s {
|
|
|
68
69
|
get state() {
|
|
69
70
|
return this._state;
|
|
70
71
|
}
|
|
71
|
-
dismissToast(
|
|
72
|
-
this._state.queue.splice(this._state.queue.indexOf(
|
|
72
|
+
dismissToast(t) {
|
|
73
|
+
this._state.queue.splice(this._state.queue.indexOf(t), 1);
|
|
73
74
|
}
|
|
74
|
-
addToast(
|
|
75
|
+
addToast(t) {
|
|
75
76
|
const o = p("toast"), n = {
|
|
76
|
-
...
|
|
77
|
+
...t,
|
|
77
78
|
id: o,
|
|
78
79
|
dismiss: () => this.dismissToast(n)
|
|
79
80
|
};
|
|
@@ -82,139 +83,139 @@ class s {
|
|
|
82
83
|
};
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
|
-
var d = /* @__PURE__ */ ((
|
|
86
|
-
const a = (
|
|
87
|
-
document.body.classList.add(
|
|
86
|
+
var d = /* @__PURE__ */ ((e) => (e.LEGACY = "b-legacy-theme", e.STYLEGUIDE = "b-styleguide-theme", e.BENTO = "", e))(d || {});
|
|
87
|
+
const a = (e) => {
|
|
88
|
+
document.body.classList.add(e);
|
|
88
89
|
}, u = {
|
|
89
|
-
install: async (
|
|
90
|
-
|
|
90
|
+
install: async (e, t) => {
|
|
91
|
+
t != null && t.withToast && (e.prototype.$bentoToastController = new s()), (t == null ? void 0 : t.theme) === "b-legacy-theme" ? (a(
|
|
91
92
|
"b-legacy-theme"
|
|
92
93
|
/* LEGACY */
|
|
93
|
-
), await import("@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css?used")) : (
|
|
94
|
+
), await import("@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css?used")) : (t == null ? void 0 : t.theme) === "b-styleguide-theme" ? (a(
|
|
94
95
|
"b-styleguide-theme"
|
|
95
96
|
/* STYLEGUIDE */
|
|
96
|
-
), await import("@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css?used")) : await import("@adyen/bento-design-tokens/dist/css/bento/variables.css?used"),
|
|
97
|
+
), await import("@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css?used")) : await import("@adyen/bento-design-tokens/dist/css/bento/variables.css?used"), t != null && t.withUtilityClasses && await import("@adyen/bento-design-tokens/dist/css/bento/utility.css?used");
|
|
97
98
|
}
|
|
98
99
|
}, c = u;
|
|
99
100
|
export {
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
T as BentoAccordion,
|
|
102
|
+
C as BentoAccordionItem,
|
|
102
103
|
D as BentoAlert,
|
|
103
104
|
v as BentoAlertEvent,
|
|
104
105
|
I as BentoAlertTypeOption,
|
|
105
|
-
|
|
106
|
+
b as BentoAlertVariant,
|
|
106
107
|
L as BentoButton,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
Uo as BentoButtonActions,
|
|
109
|
+
Ko as BentoButtonActionsLayout,
|
|
110
|
+
Wo as BentoButtonActionsLayoutBasic,
|
|
111
|
+
Yo as BentoButtonActionsLayoutExtended,
|
|
111
112
|
P as BentoButtonPropClass,
|
|
112
113
|
F as BentoButtonVariant,
|
|
113
114
|
_ as BentoCard,
|
|
114
115
|
N as BentoCardBackground,
|
|
115
116
|
q as BentoCardTitleSize,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
117
|
+
rt as BentoCheckbox,
|
|
118
|
+
at as BentoCheckboxEvent,
|
|
119
|
+
tn as BentoCheckboxGroup,
|
|
120
|
+
en as BentoCheckboxGroupVariant,
|
|
121
|
+
Bt as BentoCheckboxState,
|
|
122
|
+
mt as BentoClickOutside,
|
|
123
|
+
un as BentoClickOutsideDirective,
|
|
124
|
+
st as BentoCodeSnippet,
|
|
125
|
+
dt as BentoCodeSnippetEvent,
|
|
126
|
+
ut as BentoCodeSnippetSupportedLanguage,
|
|
127
|
+
lt as BentoCodeSnippetVariant,
|
|
127
128
|
k as BentoColumnOverflow,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
xt as BentoCountry,
|
|
130
|
+
yt as BentoCountryCode,
|
|
131
|
+
ct as BentoCountryVariant,
|
|
132
|
+
ht as BentoCurrency,
|
|
133
|
+
Dt as BentoCurrencyISOCode,
|
|
133
134
|
G as BentoDataGrid,
|
|
134
135
|
w as BentoDatagridAriaSortValue,
|
|
135
136
|
A as BentoDatagridEvent,
|
|
136
137
|
M as BentoDatagridSortDirection,
|
|
137
138
|
O as BentoDatagridStyleState,
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
It as BentoDate,
|
|
140
|
+
bt as BentoDateFormat,
|
|
140
141
|
U as BentoDatePicker,
|
|
141
142
|
K as BentoDatePickerEvent,
|
|
142
|
-
|
|
143
|
+
Qo as BentoDatePickerFirstDayOfWeek,
|
|
143
144
|
Y as BentoDateRangePicker,
|
|
144
145
|
j as BentoDateRangePickerEvent,
|
|
145
|
-
|
|
146
|
-
|
|
146
|
+
Xo as BentoDateRangePickerFirstDayOfWeek,
|
|
147
|
+
Lt as BentoDivider,
|
|
147
148
|
$ as BentoDropdown,
|
|
148
149
|
X as BentoDropdownAvatar,
|
|
149
150
|
Z as BentoDropdownCountry,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
$
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
151
|
+
tt as BentoDropdownCurrency,
|
|
152
|
+
et as BentoDropdownPaymentMethod,
|
|
153
|
+
ot as BentoDropdownTag,
|
|
154
|
+
Ft as BentoEmptyState,
|
|
155
|
+
Vt as BentoEmptyStateImage,
|
|
156
|
+
kt as BentoEmptyStateImageVariant,
|
|
157
|
+
Gt as BentoEmptyStateVariant,
|
|
158
|
+
At as BentoFilterBar,
|
|
159
|
+
Mt as BentoFilterBarEvent,
|
|
160
|
+
Ot as BentoFilterEvent,
|
|
161
|
+
Rt as BentoFilterItemType,
|
|
162
|
+
Nt as BentoFormLayout,
|
|
163
|
+
qt as BentoFormLayoutFieldTip,
|
|
164
|
+
zt as BentoFormLayoutGroup,
|
|
165
|
+
Ut as BentoFormLayoutTitle,
|
|
166
|
+
he as BentoHeader,
|
|
167
|
+
Wt as BentoImage,
|
|
168
|
+
Yt as BentoImageAspectRatio,
|
|
169
|
+
jt as BentoImageObjectFit,
|
|
170
|
+
$t as BentoInfoIcon,
|
|
171
|
+
Qt as BentoInputField,
|
|
172
|
+
Xt as BentoInputFieldElementPosition,
|
|
173
|
+
Zt as BentoInputFieldEvent,
|
|
174
|
+
te as BentoInputFieldStateClass,
|
|
175
|
+
ee as BentoInputFieldType,
|
|
176
|
+
oe as BentoInputFieldVariant,
|
|
177
|
+
an as BentoKeyboardNavigationDirective,
|
|
178
|
+
Bn as BentoKeyboardNavigationKeyDownEvent,
|
|
179
|
+
ie as BentoLink,
|
|
180
|
+
me as BentoLinkVariant,
|
|
181
|
+
pn as BentoListboxEvent,
|
|
182
|
+
sn as BentoListboxLazyLoadType,
|
|
183
|
+
Ho as BentoLoadingButton,
|
|
184
|
+
$o as BentoLoadingButtonState,
|
|
185
|
+
re as BentoLoadingIndicator,
|
|
186
|
+
ae as BentoLoadingIndicatorEvent,
|
|
187
|
+
se as BentoMenu,
|
|
188
|
+
de as BentoMenuEvent,
|
|
189
|
+
le as BentoModal,
|
|
190
|
+
xe as BentoModalColumnLayoutVariant,
|
|
191
|
+
ye as BentoModalDialogType,
|
|
192
|
+
ce as BentoModalEvent,
|
|
193
|
+
ge as BentoModalRole,
|
|
194
|
+
Se as BentoModalSize,
|
|
195
|
+
Te as BentoModalVariant,
|
|
196
|
+
ve as BentoPagination,
|
|
197
|
+
be as BentoPaymentMethod,
|
|
198
|
+
Ee as BentoPaymentMethodType,
|
|
199
|
+
Pe as BentoPopover,
|
|
200
|
+
Fe as BentoPopoverPositions,
|
|
201
|
+
ke as BentoRadioGroup,
|
|
202
|
+
Ge as BentoRadioGroupVariant,
|
|
203
|
+
Ae as BentoSearchBar,
|
|
204
|
+
Me as BentoSearchBarEvent,
|
|
205
|
+
Oe as BentoSearchBarInternalEvent,
|
|
206
|
+
_e as BentoSegmentedControl,
|
|
207
|
+
Ne as BentoSegmentedControlEvent,
|
|
208
|
+
ze as BentoSidepanel,
|
|
209
|
+
Ue as BentoSidepanelAnimation,
|
|
210
|
+
Ke as BentoSidepanelEvent,
|
|
211
|
+
We as BentoSidepanelPage,
|
|
212
|
+
je as BentoStatus,
|
|
213
|
+
He as BentoStatusVariant,
|
|
214
|
+
Je as BentoStep,
|
|
215
|
+
Qe as BentoStepper,
|
|
216
|
+
Xe as BentoStepperTypeOption,
|
|
217
|
+
Ze as BentoStepperVariantOption,
|
|
218
|
+
eo as BentoStructuredList,
|
|
218
219
|
oo as BentoStructuredListItem,
|
|
219
220
|
ro as BentoSummaryGrid,
|
|
220
221
|
ao as BentoSummaryGridItemAmount,
|
|
@@ -228,30 +229,31 @@ export {
|
|
|
228
229
|
xo as BentoTabs,
|
|
229
230
|
co as BentoTag,
|
|
230
231
|
go as BentoTagVariant,
|
|
231
|
-
|
|
232
|
+
To as BentoTextarea,
|
|
232
233
|
d as BentoTheme,
|
|
233
234
|
ho as BentoTimeline,
|
|
234
235
|
Do as BentoTimelineGapUnit,
|
|
235
236
|
vo as BentoTimelineItem,
|
|
236
237
|
Io as BentoTimelineItemVariant,
|
|
237
|
-
|
|
238
|
+
bo as BentoTimelineShowMorePlacement,
|
|
238
239
|
Lo as BentoToast,
|
|
239
240
|
ko as BentoToggle,
|
|
240
241
|
Go as BentoToggleLabelPosition,
|
|
241
242
|
wo as BentoTogglePropClass,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
Mo as
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
243
|
+
fn as BentoTooltipDirective,
|
|
244
|
+
xn as BentoTooltipPosition,
|
|
245
|
+
yn as BentoTooltipState,
|
|
246
|
+
Mo as BentoTutorial,
|
|
247
|
+
Ro as BentoTypography,
|
|
248
|
+
_o as BentoTypographyElement,
|
|
249
|
+
No as BentoTypographyModifier,
|
|
250
|
+
qo as BentoTypographyVariant,
|
|
251
|
+
nn as DateFormat,
|
|
250
252
|
c as default,
|
|
251
253
|
Fo as useBentoToastController,
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
254
|
+
gt as useCountryCapital,
|
|
255
|
+
St as useCountryName,
|
|
256
|
+
Tt as useCountryPhoneCode,
|
|
255
257
|
J as useSearchBarFilter
|
|
256
258
|
};
|
|
257
259
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/plugins/toastController.ts","../src/install.ts"],"sourcesContent":["import { reactive } from 'vue';\nimport { generateUid } from '@/utils/ts/unique-id';\nimport { BentoToastItem } from '@/components/toast/components/toast-item';\n\n/* eslint-disable no-underscore-dangle */\nexport default class ToastController {\n get state(): { queue: Array<BentoToastItem> } {\n return this._state;\n }\n\n private _state: { queue: Array<BentoToastItem> };\n\n constructor() {\n this._state = reactive({ queue: [] });\n }\n\n private dismissToast(toast: BentoToastItem): void {\n this._state.queue.splice(this._state.queue.indexOf(toast), 1);\n }\n\n public addToast(params: BentoToastItem) {\n const id = generateUid('toast');\n const toast = {\n ...params,\n id,\n dismiss: () => this.dismissToast(toast),\n };\n\n // new messages always appear in front\n this._state.queue.push(toast);\n\n // return API to manipulate toast\n return {\n dismiss: () => this.dismissToast(toast),\n };\n }\n}\n/* eslint-enable no-underscore-dangle */\n","import type { PluginObject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport ToastController from './plugins/toastController';\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n BENTO = '',\n}\n\ninterface BentoVuePlugin {\n theme: BentoTheme;\n withToast: boolean;\n}\n\nconst setTheme = (theme: BentoTheme) => {\n document.body.classList.add(theme);\n};\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n install: async (Vue, options: { theme: BentoTheme; withToast: boolean; withUtilityClasses: boolean }) => {\n if (options?.withToast) {\n if (isVue2) {\n // Adds a new property to the Vue instance\n // eslint-disable-next-line no-param-reassign\n (Vue as any).prototype.$bentoToastController = new ToastController();\n } else {\n // eslint-disable-next-line no-param-reassign\n (Vue as any).config.globalProperties.$bentoToastController = new ToastController();\n }\n }\n // Make sure to put all awaited CSS imports below this point and not above!\n if (options?.theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (options?.theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (options?.withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n },\n};\n\nexport default plugin;\n"],"names":["ToastController","__publicField","reactive","toast","params","id","generateUid","BentoTheme","setTheme","theme","plugin","Vue","options","BentoVue"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/plugins/toastController.ts","../src/install.ts"],"sourcesContent":["import { reactive } from 'vue';\nimport { generateUid } from '@/utils/ts/unique-id';\nimport { BentoToastItem } from '@/components/toast/components/toast-item';\n\n/* eslint-disable no-underscore-dangle */\nexport default class ToastController {\n get state(): { queue: Array<BentoToastItem> } {\n return this._state;\n }\n\n private _state: { queue: Array<BentoToastItem> };\n\n constructor() {\n this._state = reactive({ queue: [] });\n }\n\n private dismissToast(toast: BentoToastItem): void {\n this._state.queue.splice(this._state.queue.indexOf(toast), 1);\n }\n\n public addToast(params: BentoToastItem) {\n const id = generateUid('toast');\n const toast = {\n ...params,\n id,\n dismiss: () => this.dismissToast(toast),\n };\n\n // new messages always appear in front\n this._state.queue.push(toast);\n\n // return API to manipulate toast\n return {\n dismiss: () => this.dismissToast(toast),\n };\n }\n}\n/* eslint-enable no-underscore-dangle */\n","import type { PluginObject } from 'vue';\nimport { isVue2 } from 'vue-demi';\nimport ToastController from './plugins/toastController';\n\nexport enum BentoTheme {\n LEGACY = 'b-legacy-theme',\n STYLEGUIDE = 'b-styleguide-theme',\n BENTO = '',\n}\n\ninterface BentoVuePlugin {\n theme: BentoTheme;\n withToast: boolean;\n}\n\nconst setTheme = (theme: BentoTheme) => {\n document.body.classList.add(theme);\n};\n\nconst plugin: PluginObject<BentoVuePlugin> = {\n install: async (Vue, options: { theme: BentoTheme; withToast: boolean; withUtilityClasses: boolean }) => {\n if (options?.withToast) {\n if (isVue2) {\n // Adds a new property to the Vue instance\n // eslint-disable-next-line no-param-reassign\n (Vue as any).prototype.$bentoToastController = new ToastController();\n } else {\n // eslint-disable-next-line no-param-reassign\n (Vue as any).config.globalProperties.$bentoToastController = new ToastController();\n }\n }\n // Make sure to put all awaited CSS imports below this point and not above!\n if (options?.theme === BentoTheme.LEGACY) {\n setTheme(BentoTheme.LEGACY);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css');\n } else if (options?.theme === BentoTheme.STYLEGUIDE) {\n setTheme(BentoTheme.STYLEGUIDE);\n await import('@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css');\n } else {\n await import('@adyen/bento-design-tokens/dist/css/bento/variables.css');\n }\n\n if (options?.withUtilityClasses) {\n await import('@adyen/bento-design-tokens/dist/css/bento/utility.css');\n }\n },\n};\n\nexport default plugin;\n"],"names":["ToastController","__publicField","reactive","toast","params","id","generateUid","BentoTheme","setTheme","theme","plugin","Vue","options","BentoVue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAqBA,EAAgB;AAAA,EAOjC,cAAc;AAFN,IAAAC,EAAA;AAGJ,SAAK,SAASC,EAAS,EAAE,OAAO,CAAA,EAAI,CAAA;AAAA,EACxC;AAAA,EARA,IAAI,QAA0C;AAC1C,WAAO,KAAK;AAAA,EAChB;AAAA,EAQQ,aAAaC,GAA6B;AACzC,SAAA,OAAO,MAAM,OAAO,KAAK,OAAO,MAAM,QAAQA,CAAK,GAAG,CAAC;AAAA,EAChE;AAAA,EAEO,SAASC,GAAwB;AAC9B,UAAAC,IAAKC,EAAY,OAAO,GACxBH,IAAQ;AAAA,MACV,GAAGC;AAAA,MACH,IAAAC;AAAA,MACA,SAAS,MAAM,KAAK,aAAaF,CAAK;AAAA,IAAA;AAIrC,gBAAA,OAAO,MAAM,KAAKA,CAAK,GAGrB;AAAA,MACH,SAAS,MAAM,KAAK,aAAaA,CAAK;AAAA,IAAA;AAAA,EAE9C;AACJ;AChCY,IAAAI,sBAAAA,OACRA,EAAA,SAAS,kBACTA,EAAA,aAAa,sBACbA,EAAA,QAAQ,IAHAA,IAAAA,KAAA,CAAA,CAAA;AAWZ,MAAMC,IAAW,CAACC,MAAsB;AAC3B,WAAA,KAAK,UAAU,IAAIA,CAAK;AACrC,GAEMC,IAAuC;AAAA,EACzC,SAAS,OAAOC,GAAKC,MAAoF;AACrG,IAAIA,KAAA,QAAAA,EAAS,cAIJD,EAAY,UAAU,wBAAwB,IAAIX,EAAgB,KAOvEY,KAAA,gBAAAA,EAAS,WAAU,oBACnBJ;AAAA,MAAS;AAAA;AAAA,IAAiB,GAC1B,MAAM,OAAO,qEAAgE,MACtEI,KAAA,gBAAAA,EAAS,WAAU,wBAC1BJ;AAAA,MAAS;AAAA;AAAA,IAAqB,GAC9B,MAAM,OAAO,yEAAoE,KAEjF,MAAM,OAAO,8DAAyD,GAGtEI,KAAA,QAAAA,EAAS,sBACT,MAAM,OAAO,4DAAuD;AAAA,EAE5E;AACJ,GAEAC,IAAeH;"}
|
package/dist/info-icon.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as r } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { c as i } from "./chunks/index.8ac70774.js";
|
|
3
3
|
import { n as s } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
4
|
-
import { b as a } from "./chunks/tooltip.
|
|
5
|
-
import "./assets/
|
|
4
|
+
import { b as a } from "./chunks/tooltip.104e5fac.js";
|
|
5
|
+
import "./assets/index44.css";
|
|
6
6
|
let n = 0;
|
|
7
7
|
const l = {
|
|
8
8
|
beforeCreate() {
|
package/dist/input-field.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as H, useAttrs as q, useSlots as G, ref as R, toRef as z, computed as i, toRefs as j } from "vue";
|
|
2
|
-
import { d as F, B as W } from "./chunks/index.
|
|
3
|
-
import { u as Y } from "./chunks/use-
|
|
4
|
-
import { u as X } from "./chunks/use-
|
|
2
|
+
import { d as F, B as W } from "./chunks/index.965ac1af.js";
|
|
3
|
+
import { u as Y } from "./chunks/use-form-layout-loading.d03e5d48.js";
|
|
4
|
+
import { u as X } from "./chunks/use-has-slot.6052d56a.js";
|
|
5
5
|
import { g as p } from "./chunks/unique-id.a2a2b458.js";
|
|
6
6
|
import { u as K } from "./chunks/i18n.155748d6.js";
|
|
7
|
-
import { a as J, B as Q } from "./chunks/dropdown.
|
|
7
|
+
import { a as J, B as Q } from "./chunks/dropdown.f1253a54.js";
|
|
8
8
|
import { g as Z } from "./chunks/get-slot-text.c1114034.js";
|
|
9
9
|
import { u as tt } from "./chunks/aria-label.ac9651a5.js";
|
|
10
|
-
import { E as et } from "./chunks/error-message.
|
|
10
|
+
import { E as et } from "./chunks/error-message.8302a46c.js";
|
|
11
11
|
import { n as at } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
12
|
-
import "./assets/
|
|
12
|
+
import "./assets/index22.css";
|
|
13
13
|
var s = /* @__PURE__ */ ((a) => (a.DEFAULT = "default", a.PAYMENT_METHOD = "payment-method", a.STATIC_VALUE = "static-value", a.DROPDOWN = "dropdown", a))(s || {}), n = /* @__PURE__ */ ((a) => (a.START = "start", a.END = "end", a))(n || {}), d = /* @__PURE__ */ ((a) => (a.CONDENSED = "condensed", a.DISABLED = "disabled", a.READONLY = "readonly", a.ERROR = "error", a.SMALL_PADDING_LEFT = "small-padding-left", a.SMALL_PADDING_RIGHT = "small-padding-right", a))(d || {}), D = /* @__PURE__ */ ((a) => (a.SEARCH = "search", a.TEXT = "text", a.NUMBER = "number", a))(D || {}), ot = /* @__PURE__ */ ((a) => (a.INPUT = "input", a.ESCAPE_PRESSED = "escape-pressed", a.UPDATE_DROPDOWN = "update:dropdown", a.DROPDOWN_INPUT = "dropdown-input", a.FOCUS = "focus", a.CHANGE = "change", a.BLUR = "blur", a.KEYDOWN = "keydown", a))(ot || {});
|
|
14
14
|
const rt = {
|
|
15
15
|
"en-US": {
|
|
@@ -120,7 +120,7 @@ const rt = {
|
|
|
120
120
|
},
|
|
121
121
|
emits: ["update:dropdown", "blur", "change", "dropdown-input", "escape-pressed", "focus", "keydown", "input"],
|
|
122
122
|
setup(a, { expose: e, emit: o }) {
|
|
123
|
-
const t = a, r = q(), c = G(), { t: h } = K(), b =
|
|
123
|
+
const t = a, r = q(), c = G(), { t: h } = K(), b = X(c), w = R(null), P = p("input"), y = p("input-dropdown"), v = p("input-static-value"), S = p("input-description"), A = p("input-error"), { isReadOnly: f } = Y(z(t, "readonly")), l = i(
|
|
124
124
|
() => t.variant === s.STATIC_VALUE && !!c.staticValue
|
|
125
125
|
), C = i(() => t.variant === s.DEFAULT), N = i(() => t.variant === s.PAYMENT_METHOD), I = i(
|
|
126
126
|
() => l.value && t.staticValuePosition === n.START
|
package/dist/internal.js
CHANGED
|
@@ -1,109 +1,23 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import {
|
|
3
|
-
import { C as
|
|
4
|
-
import { C as
|
|
5
|
-
import { E as
|
|
6
|
-
import {
|
|
7
|
-
import { a as
|
|
8
|
-
import {
|
|
9
|
-
import { C as R, a as L } from "./chunks/chevron-right.3b826337.js";
|
|
10
|
-
import { n as S } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
11
|
-
import { G as ot, a as rt } from "./chunks/grid-layout.b7e0d964.js";
|
|
12
|
-
import { b as st } from "./chunks/listbox.e7bf46e4.js";
|
|
13
|
-
import "./assets/index3.css";
|
|
14
|
-
const y = ({
|
|
15
|
-
contentRef: v,
|
|
16
|
-
containerRef: r,
|
|
17
|
-
leftButtonRef: e,
|
|
18
|
-
rightButtonRef: t
|
|
19
|
-
}) => {
|
|
20
|
-
const s = i(0), l = i(0), u = a(() => {
|
|
21
|
-
var o;
|
|
22
|
-
return (o = v.value) == null ? void 0 : o.scrollWidth;
|
|
23
|
-
}), c = a(() => {
|
|
24
|
-
var o;
|
|
25
|
-
return (o = r.value) == null ? void 0 : o.clientWidth;
|
|
26
|
-
}), h = a(() => {
|
|
27
|
-
var n, _;
|
|
28
|
-
const o = ((n = e.value) == null ? void 0 : n.scrollWidth) ?? 0, p = ((_ = t.value) == null ? void 0 : _.scrollWidth) ?? 0;
|
|
29
|
-
return o + p;
|
|
30
|
-
}), f = a(() => Math.ceil(u.value / c.value) ?? 0), d = a(() => {
|
|
31
|
-
const o = new Array(f.value).fill(0);
|
|
32
|
-
return o.forEach((p, n) => {
|
|
33
|
-
if (n === 0)
|
|
34
|
-
return;
|
|
35
|
-
if (n === f.value - 1) {
|
|
36
|
-
o[o.length - 1] = -(u.value - c.value);
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
const _ = o[n - 1];
|
|
40
|
-
o[n] = -(c.value + Math.abs(_) - h.value);
|
|
41
|
-
}), o;
|
|
42
|
-
}), m = a(() => l.value !== 0), x = a(
|
|
43
|
-
() => s.value === 0 || s.value >= -(u.value - c.value - 1)
|
|
44
|
-
);
|
|
45
|
-
return {
|
|
46
|
-
offset: s,
|
|
47
|
-
shouldShowLeftButton: m,
|
|
48
|
-
shouldShowRightButton: x,
|
|
49
|
-
// Methods
|
|
50
|
-
scrollLeft: () => {
|
|
51
|
-
l.value !== 0 && (l.value -= 1, s.value = d.value[l.value]);
|
|
52
|
-
},
|
|
53
|
-
scrollRight: () => {
|
|
54
|
-
l.value !== f.value - 1 && (l.value += 1, s.value = d.value[l.value]);
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
}, b = {
|
|
58
|
-
"en-US": {
|
|
59
|
-
scrollLeft: "Scroll left",
|
|
60
|
-
scrollRight: "Scroll right"
|
|
61
|
-
}
|
|
62
|
-
}, W = {
|
|
63
|
-
i18n: { messages: b }
|
|
64
|
-
}, w = /* @__PURE__ */ g({
|
|
65
|
-
...W,
|
|
66
|
-
__name: "fixed-scroller",
|
|
67
|
-
setup(v) {
|
|
68
|
-
const { t: r } = B(), e = i(null), t = i(null), s = i(null), l = i(null), { offset: u, shouldShowLeftButton: c, shouldShowRightButton: h, scrollLeft: f, scrollRight: d } = y({
|
|
69
|
-
contentRef: e,
|
|
70
|
-
containerRef: t,
|
|
71
|
-
leftButtonRef: s,
|
|
72
|
-
rightButtonRef: l
|
|
73
|
-
});
|
|
74
|
-
return { __sfc: !0, t: r, contentRef: e, fixedScrollerRef: t, leftButtonRef: s, rightButtonRef: l, offset: u, shouldShowLeftButton: c, shouldShowRightButton: h, scrollLeft: f, scrollRight: d, BentoButton: C, ChevronLeftIcon: R, ChevronRightIcon: L };
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
var k = function() {
|
|
78
|
-
var r = this, e = r._self._c, t = r._self._setupProxy;
|
|
79
|
-
return e("div", { ref: "fixedScrollerRef", staticClass: "b-fixed-scroller" }, [e("div", { staticClass: "b-fixed-scroller__container" }, [e("div", { ref: "contentRef", staticClass: "b-fixed-scroller__content", style: { transform: `translateX(${t.offset}px)` } }, [r._t("default")], 2)]), t.shouldShowLeftButton ? e("div", { ref: "leftButtonRef", staticClass: "b-fixed-scroller__left" }, [e(t.BentoButton, { attrs: { variant: "secondary", "aria-label": t.t("scrollLeft") }, on: { click: t.scrollLeft }, scopedSlots: r._u([{ key: "iconLeft", fn: function() {
|
|
80
|
-
return [e(t.ChevronLeftIcon, { attrs: { "svg-title": "checked", "aria-hidden": "true" } })];
|
|
81
|
-
}, proxy: !0 }], null, !1, 1728943899) })], 1) : r._e(), t.shouldShowRightButton ? e("div", { ref: "rightButtonRef", staticClass: "b-fixed-scroller__right" }, [e(t.BentoButton, { attrs: { variant: "secondary", "aria-label": t.t("scrollRight") }, on: { click: t.scrollRight }, scopedSlots: r._u([{ key: "iconLeft", fn: function() {
|
|
82
|
-
return [e(t.ChevronRightIcon, { attrs: { "svg-title": "checked", "aria-hidden": "true" } })];
|
|
83
|
-
}, proxy: !0 }], null, !1, 29940896) })], 1) : r._e()]);
|
|
84
|
-
}, I = [], E = /* @__PURE__ */ S(
|
|
85
|
-
w,
|
|
86
|
-
k,
|
|
87
|
-
I,
|
|
88
|
-
!1,
|
|
89
|
-
null,
|
|
90
|
-
"ca3da0f2",
|
|
91
|
-
null,
|
|
92
|
-
null
|
|
93
|
-
);
|
|
94
|
-
const z = E.exports;
|
|
1
|
+
import { B as a, L as e } from "./chunks/listbox-option-tag.6a09e8e2.js";
|
|
2
|
+
import { C as s, a as p, b as x } from "./chunks/calendar.24d0ac04.js";
|
|
3
|
+
import { C as f } from "./chunks/copy.346eadb1.js";
|
|
4
|
+
import { C as i } from "./chunks/controls-group.2a21bd83.js";
|
|
5
|
+
import { E as d } from "./chunks/error-message.8302a46c.js";
|
|
6
|
+
import { F as y } from "./chunks/fixed-scroller.8994e30a.js";
|
|
7
|
+
import { G as B, a as G } from "./chunks/grid-layout.b7e0d964.js";
|
|
8
|
+
import { B as u } from "./chunks/listbox.73c38f38.js";
|
|
95
9
|
export {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
10
|
+
a as BentoAvatar,
|
|
11
|
+
u as BentoListbox,
|
|
12
|
+
s as Calendar,
|
|
13
|
+
p as CalendarEvent,
|
|
14
|
+
x as CalendarFirstDayOfWeek,
|
|
15
|
+
i as ControlsGroup,
|
|
16
|
+
f as Copy,
|
|
17
|
+
d as ErrorMessage,
|
|
18
|
+
y as FixedScroller,
|
|
19
|
+
B as GridLayout,
|
|
20
|
+
G as GridLayoutContainerType,
|
|
21
|
+
e as ListboxOptionTag
|
|
108
22
|
};
|
|
109
23
|
//# sourceMappingURL=internal.js.map
|