@adyen/bento-vue3 1.4.1 → 1.5.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 +4 -0
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-lazy-load/data-grid-lazy-load.vue.d.ts +17 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnHeadersTopPosition/useCalculateColumnHeadersTopPosition.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useLazyLoading/useLazyLoading.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +28 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +455 -123
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +13 -13
- 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 +4 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +12 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +5 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +12 -3
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/image/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +24 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +14 -3
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.types.d.ts +1 -9
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.utils.d.ts +5 -21
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +122 -72
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +3 -2
- package/dist/@types/packages/vue2/src/components/stepper/components/step/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/stepper/components/step/step.vue.d.ts +35 -0
- package/dist/@types/packages/vue2/src/components/stepper/composables/useKeyboardNavigation/useKeyboardNavigation.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/stepper/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/stepper/stepper.keys.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/stepper/stepper.types.d.ts +24 -0
- package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +44 -0
- 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/tooltip/tooltip.vue.d.ts +363 -82
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/types/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/types/lazy-load.d.ts +1 -0
- package/dist/accordion.js +3 -3
- package/dist/alert.js +4 -4
- package/dist/assets/base-button.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.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/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/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 -1
- package/dist/assets/index44.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/tooltip.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +4 -4
- package/dist/checkbox.js +6 -6
- package/dist/chunks/base-button.9740f320.js +116 -0
- package/dist/chunks/base-button.9740f320.js.map +1 -0
- package/dist/chunks/base-modal.be77971f.js +296 -0
- package/dist/chunks/base-modal.be77971f.js.map +1 -0
- package/dist/chunks/{button.7d09c245.js → button.7072457f.js} +3 -3
- package/dist/chunks/{button.7d09c245.js.map → button.7072457f.js.map} +1 -1
- package/dist/chunks/{calendar.0e42130b.js → calendar.1e50c7d1.js} +5 -5
- package/dist/chunks/{calendar.0e42130b.js.map → calendar.1e50c7d1.js.map} +1 -1
- package/dist/chunks/{checkbox.17462cb0.js → checkbox.638bab98.js} +24 -24
- package/dist/chunks/{checkbox.17462cb0.js.map → checkbox.638bab98.js.map} +1 -1
- package/dist/chunks/{chevron-up.c03b58f8.js → chevron-up.9bf21068.js} +3 -3
- package/dist/chunks/{chevron-up.c03b58f8.js.map → chevron-up.9bf21068.js.map} +1 -1
- package/dist/chunks/{controls-group.0d6db9c0.js → controls-group.efcf4e8d.js} +2 -2
- package/dist/chunks/{controls-group.0d6db9c0.js.map → controls-group.efcf4e8d.js.map} +1 -1
- package/dist/chunks/{copy.c9a29be0.js → copy.527c3d76.js} +3 -3
- package/dist/chunks/{copy.c9a29be0.js.map → copy.527c3d76.js.map} +1 -1
- package/dist/chunks/debounce.b5ef6acf.js +10 -0
- package/dist/chunks/debounce.b5ef6acf.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.cd789a95.js → dropdown-default-textbox.a1789dc7.js} +19 -18
- package/dist/chunks/{dropdown-default-textbox.cd789a95.js.map → dropdown-default-textbox.a1789dc7.js.map} +1 -1
- package/dist/chunks/{dropdown.ff4f94a8.js → dropdown.22e51667.js} +9 -7
- package/dist/chunks/dropdown.22e51667.js.map +1 -0
- package/dist/chunks/{error-message.8c67a507.js → error-message.37b6c7aa.js} +2 -2
- package/dist/chunks/{error-message.8c67a507.js.map → error-message.37b6c7aa.js.map} +1 -1
- package/dist/chunks/{footer-actions.a587e374.js → footer-actions.5275203a.js} +3 -3
- package/dist/chunks/{footer-actions.a587e374.js.map → footer-actions.5275203a.js.map} +1 -1
- package/dist/chunks/{grid-layout.984317d7.js → grid-layout.c98e6bc7.js} +2 -2
- package/dist/chunks/{grid-layout.984317d7.js.map → grid-layout.c98e6bc7.js.map} +1 -1
- package/dist/chunks/{index.77c651df.js → index.32ed68b7.js} +2 -2
- package/dist/chunks/{index.77c651df.js.map → index.32ed68b7.js.map} +1 -1
- package/dist/chunks/{index.fdb0c13d.js → index.604da8e9.js} +3 -3
- package/dist/chunks/{index.fdb0c13d.js.map → index.604da8e9.js.map} +1 -1
- package/dist/chunks/{index.fd1cd23a.js → index.a57930ba.js} +197 -188
- package/dist/chunks/index.a57930ba.js.map +1 -0
- package/dist/chunks/{index.ee69b530.js → index.c22c4278.js} +6 -6
- package/dist/chunks/{index.ee69b530.js.map → index.c22c4278.js.map} +1 -1
- package/dist/chunks/{index.140bf28f.js → index.c62ea69f.js} +2 -2
- package/dist/chunks/{index.140bf28f.js.map → index.c62ea69f.js.map} +1 -1
- package/dist/chunks/{index.450b70d5.js → index.dd20095f.js} +3 -3
- package/dist/chunks/{index.450b70d5.js.map → index.dd20095f.js.map} +1 -1
- package/dist/chunks/{debounce.f8d92e44.js → keyboard-navigation.ca47dfa8.js} +11 -17
- package/dist/chunks/keyboard-navigation.ca47dfa8.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.ffe70226.js → listbox-option-tag.fa70334e.js} +3 -3
- package/dist/chunks/{listbox-option-tag.ffe70226.js.map → listbox-option-tag.fa70334e.js.map} +1 -1
- package/dist/chunks/{listbox.f535a736.js → listbox.4205c0de.js} +12 -11
- package/dist/chunks/{listbox.f535a736.js.map → listbox.4205c0de.js.map} +1 -1
- package/dist/chunks/{loading-button.bc6e3967.js → loading-button.41c15584.js} +2 -2
- package/dist/chunks/{loading-button.bc6e3967.js.map → loading-button.41c15584.js.map} +1 -1
- package/dist/chunks/{tooltip.973c86d3.js → tooltip.c8350cd0.js} +37 -36
- package/dist/chunks/{tooltip.973c86d3.js.map → tooltip.c8350cd0.js.map} +1 -1
- package/dist/chunks/use-has-slot.3daaffc6.js +17 -0
- package/dist/chunks/use-has-slot.3daaffc6.js.map +1 -0
- package/dist/code-snippet.js +469 -466
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +963 -834
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +8 -8
- 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 +21 -21
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +853 -784
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +72 -51
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +190 -112
- package/dist/header.js.map +1 -1
- package/dist/image.js +3 -1
- package/dist/index.js +219 -211
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +5 -5
- package/dist/internal.js +7 -7
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +114 -104
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +33 -30
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +72 -61
- package/dist/popover.js.map +1 -1
- package/dist/popper-container.js +1238 -192
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +5 -5
- package/dist/search-bar.js +3 -3
- package/dist/segmented-control.js +15 -15
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +7 -7
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +2 -2
- package/dist/stepper.js +276 -0
- package/dist/stepper.js.map +1 -0
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +5 -5
- package/dist/tabs.js +2 -2
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +5 -5
- package/dist/toast.js +4 -4
- package/dist/toggle.js +12 -12
- package/dist/toggle.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +3 -3
- package/dist/chunks/base-button.c4ac1ad1.js +0 -108
- package/dist/chunks/base-button.c4ac1ad1.js.map +0 -1
- package/dist/chunks/base-modal.db7a9829.js +0 -291
- package/dist/chunks/base-modal.db7a9829.js.map +0 -1
- package/dist/chunks/debounce.f8d92e44.js.map +0 -1
- package/dist/chunks/dropdown.ff4f94a8.js.map +0 -1
- package/dist/chunks/index.fd1cd23a.js.map +0 -1
- package/dist/chunks/use-has-slot.9fac7123.js +0 -16
- package/dist/chunks/use-has-slot.9fac7123.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,68 +1,70 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var f = (t, e,
|
|
4
|
-
import { reactive as
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var h = (t, e, n) => e in t ? S(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var f = (t, e, n) => (h(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
+
import { reactive as C, defineComponent as b, computed as k, openBlock as a, createElementBlock as v, mergeProps as s, unref as m, createBlock as p, withCtx as l, renderSlot as i, createElementVNode as D } from "vue";
|
|
5
5
|
import { g as E } from "./chunks/unique-id.a2a2b458.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { B as xe,
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import { B as
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import { B as
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
6
|
+
import { BentoAccordion as K, BentoAccordionItem as Q } from "./accordion.js";
|
|
7
|
+
import { BentoAlert as H, BentoAlertEvent as j, BentoAlertTypeOption as J, BentoAlertVariant as X } from "./alert.js";
|
|
8
|
+
import { a as Z, b as ee, B as te } from "./chunks/button.7072457f.js";
|
|
9
|
+
import { BentoCard as ne, BentoCardBackground as re, BentoCardTitleSize as ae } from "./card.js";
|
|
10
|
+
import { BentoColumnOverflow as Be, BentoDataGrid as se, BentoDatagridAriaSortValue as me, BentoDatagridEvent as pe, BentoDatagridSortDirection as le, BentoDatagridStyleState as de } from "./data-grid.js";
|
|
11
|
+
import { BentoDatePicker as fe, BentoDatePickerEvent as ce } from "./date-picker.js";
|
|
12
|
+
import { B as xe, a as ge } from "./chunks/index.a57930ba.js";
|
|
13
|
+
import { B as Se, u as he } from "./chunks/dropdown.22e51667.js";
|
|
14
|
+
import { BentoDropdownAvatar as be, BentoDropdownCountry as ke, BentoDropdownCurrency as ve, BentoDropdownPaymentMethod as De, BentoDropdownTag as Ee } from "./dropdown.js";
|
|
15
|
+
import { BentoDivider as Le } from "./divider.js";
|
|
16
|
+
import { B as _e, b as Fe, a as Ve } from "./chunks/checkbox.638bab98.js";
|
|
17
|
+
import { BentoClickOutside as Ge } from "./click-outside.js";
|
|
18
|
+
import { BentoCodeSnippet as Me, BentoCodeSnippetEvent as Oe, BentoCodeSnippetSupportedLanguage as $e, BentoCodeSnippetVariant as Re } from "./code-snippet.js";
|
|
19
|
+
import { BentoCountry as Ne, BentoCountryCode as qe, BentoCountryVariant as ze, useCountryCapital as Ke, useCountryName as Qe, useCountryPhoneCode as We } from "./country.js";
|
|
20
|
+
import { BentoCurrency as je, BentoCurrencyISOCode as Je } from "./currency.js";
|
|
21
|
+
import { B as Ye, a as Ze } from "./chunks/index.c62ea69f.js";
|
|
22
|
+
import { BentoEmptyState as tt, BentoEmptyStateImage as ot, BentoEmptyStateImageVariant as nt, BentoEmptyStateVariant as rt } from "./empty-state.js";
|
|
23
|
+
import { BentoFilterBar as it, BentoFilterBarEvent as Bt, BentoFilterEvent as st, BentoFilterItemType as mt } from "./filter-bar.js";
|
|
24
|
+
import { BentoFormLayout as lt, BentoFormLayoutFieldTip as dt, BentoFormLayoutGroup as ut, BentoFormLayoutTitle as ft } from "./form-layout.js";
|
|
25
|
+
import { BentoInfoIcon as yt } from "./info-icon.js";
|
|
26
|
+
import { BentoInputField as gt, BentoInputFieldElementPosition as Tt, BentoInputFieldEvent as St, BentoInputFieldStateClass as ht, BentoInputFieldType as Ct, BentoInputFieldVariant as bt } from "./input-field.js";
|
|
27
|
+
import { BentoLoadingIndicator as vt, BentoLoadingIndicatorEvent as Dt } from "./loading-indicator.js";
|
|
28
|
+
import { BentoMenu as It, BentoMenuEvent as Lt } from "./menu.js";
|
|
29
|
+
import { BentoModal as _t } from "./modal.js";
|
|
30
|
+
import { b as Vt, d as wt, e as Gt, c as At, a as Mt, B as Ot } from "./chunks/base-modal.be77971f.js";
|
|
31
|
+
import { BentoHeader as Rt } from "./header.js";
|
|
32
|
+
import { BentoPagination as Nt } from "./pagination.js";
|
|
33
|
+
import { BentoPaymentMethod as zt, BentoPaymentMethodType as Kt } from "./payment-method.js";
|
|
34
|
+
import { BentoPopover as Wt, BentoPopoverPositions as Ht } from "./popover.js";
|
|
35
|
+
import { BentoRadioGroup as Jt, BentoRadioGroupVariant as Xt } from "./radio-group.js";
|
|
36
|
+
import { BentoSearchBar as Zt, BentoSearchBarEvent as eo, BentoSearchBarInternalEvent as to } from "./search-bar.js";
|
|
37
|
+
import { BentoSegmentedControl as no, BentoSegmentedControlEvent as ro } from "./segmented-control.js";
|
|
38
|
+
import { BentoStatus as io, BentoStatusVariant as Bo } from "./status.js";
|
|
39
|
+
import { BentoStep as mo, BentoStepper as po, BentoStepperTypeOption as lo, BentoStepperVariantOption as uo } from "./stepper.js";
|
|
40
|
+
import { B as co, a as yo } from "./chunks/index.c22c4278.js";
|
|
41
|
+
import { BentoSummaryGrid as go, BentoSummaryGridItemAmount as To, BentoSummaryGridItemCustom as So, BentoSummaryGridItemNumeric as ho, BentoSummaryGridItemPercentage as Co, BentoSummaryGridItemSize as bo, BentoSummaryGridItemText as ko, BentoSummaryGridItemTrendDirection as vo } from "./summary-grid.js";
|
|
42
|
+
import { BentoTab as Eo, BentoTabs as Io } from "./tabs.js";
|
|
43
|
+
import { BentoTag as Po, BentoTagVariant as _o } from "./tag.js";
|
|
44
|
+
import { BentoTextarea as Vo } from "./textarea.js";
|
|
45
|
+
import { BentoTimeline as Go, BentoTimelineGapUnit as Ao, BentoTimelineItem as Mo, BentoTimelineItemVariant as Oo, BentoTimelineShowMorePlacement as $o } from "./timeline.js";
|
|
46
|
+
import { BentoToast as Uo } from "./toast.js";
|
|
47
|
+
import { u as qo } from "./chunks/toastController.0b01d2e8.js";
|
|
48
|
+
import { BentoToggle as Ko, BentoToggleLabelPosition as Qo, BentoTogglePropClass as Wo } from "./toggle.js";
|
|
49
|
+
import { B as c } from "./chunks/index.32ed68b7.js";
|
|
50
|
+
import { c as jo, b as Jo, a as Xo } from "./chunks/index.32ed68b7.js";
|
|
51
|
+
import { D as Zo } from "./chunks/date-input.9186a0bf.js";
|
|
52
|
+
import { a as tn, B as on } from "./chunks/keyboard-navigation.ca47dfa8.js";
|
|
53
|
+
import { a as rn, b as an } from "./chunks/listbox.4205c0de.js";
|
|
54
|
+
import { B as sn } from "./chunks/directive.0408e565.js";
|
|
55
|
+
import { b as pn, B as ln, a as dn } from "./chunks/tooltip.c8350cd0.js";
|
|
56
|
+
import { BentoButtonActions as fn, BentoButtonActionsLayout as cn, BentoButtonActionsLayoutBasic as yn, BentoButtonActionsLayoutExtended as xn } from "./button.js";
|
|
57
|
+
import { B as Tn, a as Sn } from "./chunks/loading-button.41c15584.js";
|
|
58
|
+
import { b as Cn, b as bn } from "./chunks/calendar.1e50c7d1.js";
|
|
59
|
+
import { BentoCheckboxGroup as vn, BentoCheckboxGroupVariant as Dn } from "./checkbox.js";
|
|
58
60
|
import { BentoLinkVariant as d } from "./link.js";
|
|
59
61
|
import { RouterLink as y } from "vue-router";
|
|
60
62
|
import { _ as I } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
61
|
-
import "./assets/
|
|
63
|
+
import "./assets/index9.css";
|
|
62
64
|
class L {
|
|
63
65
|
constructor() {
|
|
64
66
|
f(this, "_state");
|
|
65
|
-
this._state =
|
|
67
|
+
this._state = C({ queue: [] });
|
|
66
68
|
}
|
|
67
69
|
get state() {
|
|
68
70
|
return this._state;
|
|
@@ -71,13 +73,13 @@ class L {
|
|
|
71
73
|
this._state.queue.splice(this._state.queue.indexOf(e), 1);
|
|
72
74
|
}
|
|
73
75
|
addToast(e) {
|
|
74
|
-
const
|
|
76
|
+
const n = E("toast"), r = {
|
|
75
77
|
...e,
|
|
76
|
-
id:
|
|
77
|
-
dismiss: () => this.dismissToast(
|
|
78
|
+
id: n,
|
|
79
|
+
dismiss: () => this.dismissToast(r)
|
|
78
80
|
};
|
|
79
|
-
return this._state.queue.push(
|
|
80
|
-
dismiss: () => this.dismissToast(
|
|
81
|
+
return this._state.queue.push(r), {
|
|
82
|
+
dismiss: () => this.dismissToast(r)
|
|
81
83
|
};
|
|
82
84
|
}
|
|
83
85
|
}
|
|
@@ -115,43 +117,43 @@ const x = (t) => {
|
|
|
115
117
|
},
|
|
116
118
|
emits: ["click"],
|
|
117
119
|
setup(t, { emit: e }) {
|
|
118
|
-
const
|
|
119
|
-
[`b-link--${d.QUIET}`]:
|
|
120
|
+
const n = t, r = k(() => ({
|
|
121
|
+
[`b-link--${d.QUIET}`]: n.variant === d.QUIET
|
|
120
122
|
})), u = (o, B) => {
|
|
121
123
|
e("click", o), B && B();
|
|
122
124
|
};
|
|
123
125
|
return (o, B) => t.external ? (a(), v("a", s({ key: 0 }, o.$attrs, {
|
|
124
126
|
href: o.to,
|
|
125
127
|
target: "_blank",
|
|
126
|
-
class: ["b-link", m(
|
|
128
|
+
class: ["b-link", m(r)],
|
|
127
129
|
onClick: u
|
|
128
130
|
}), [
|
|
129
|
-
t.disableTypography ? i(o.$slots, "default", { key: 1 }, void 0, !0) : (a(),
|
|
131
|
+
t.disableTypography ? i(o.$slots, "default", { key: 1 }, void 0, !0) : (a(), p(c, {
|
|
130
132
|
key: 0,
|
|
131
133
|
el: "span",
|
|
132
134
|
variant: "body"
|
|
133
135
|
}, {
|
|
134
|
-
default:
|
|
136
|
+
default: l(() => [
|
|
135
137
|
i(o.$slots, "default", {}, void 0, !0)
|
|
136
138
|
]),
|
|
137
139
|
_: 3
|
|
138
140
|
}))
|
|
139
|
-
], 16, P)) : (a(),
|
|
141
|
+
], 16, P)) : (a(), p(m(y), s({ key: 1 }, o.$props, {
|
|
140
142
|
custom: "",
|
|
141
143
|
onClick: u
|
|
142
144
|
}), {
|
|
143
|
-
default:
|
|
145
|
+
default: l(({ href: g, navigate: T }) => [
|
|
144
146
|
D("a", s(o.$attrs, {
|
|
145
147
|
href: g,
|
|
146
|
-
class: ["b-link", m(
|
|
148
|
+
class: ["b-link", m(r)],
|
|
147
149
|
onClick: T
|
|
148
150
|
}), [
|
|
149
|
-
t.disableTypography ? i(o.$slots, "default", { key: 1 }, void 0, !0) : (a(),
|
|
151
|
+
t.disableTypography ? i(o.$slots, "default", { key: 1 }, void 0, !0) : (a(), p(c, {
|
|
150
152
|
key: 0,
|
|
151
153
|
el: "span",
|
|
152
154
|
variant: "body"
|
|
153
155
|
}, {
|
|
154
|
-
default:
|
|
156
|
+
default: l(() => [
|
|
155
157
|
i(o.$slots, "default", {}, void 0, !0)
|
|
156
158
|
]),
|
|
157
159
|
_: 3
|
|
@@ -164,147 +166,153 @@ const x = (t) => {
|
|
|
164
166
|
});
|
|
165
167
|
const U = /* @__PURE__ */ I(F, [["__scopeId", "data-v-bdaab366"]]);
|
|
166
168
|
export {
|
|
167
|
-
K as
|
|
168
|
-
Q as
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
J as
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
ee as
|
|
179
|
-
te as
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
Me as
|
|
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
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
st as
|
|
227
|
-
mt as
|
|
228
|
-
lt as
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
yt as
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
ht as
|
|
238
|
-
|
|
239
|
-
|
|
169
|
+
K as BentoAccordion,
|
|
170
|
+
Q as BentoAccordionItem,
|
|
171
|
+
H as BentoAlert,
|
|
172
|
+
j as BentoAlertEvent,
|
|
173
|
+
J as BentoAlertTypeOption,
|
|
174
|
+
X as BentoAlertVariant,
|
|
175
|
+
Z as BentoButton,
|
|
176
|
+
fn as BentoButtonActions,
|
|
177
|
+
cn as BentoButtonActionsLayout,
|
|
178
|
+
yn as BentoButtonActionsLayoutBasic,
|
|
179
|
+
xn as BentoButtonActionsLayoutExtended,
|
|
180
|
+
ee as BentoButtonPropClass,
|
|
181
|
+
te as BentoButtonVariant,
|
|
182
|
+
ne as BentoCard,
|
|
183
|
+
re as BentoCardBackground,
|
|
184
|
+
ae as BentoCardTitleSize,
|
|
185
|
+
_e as BentoCheckbox,
|
|
186
|
+
Fe as BentoCheckboxEvent,
|
|
187
|
+
vn as BentoCheckboxGroup,
|
|
188
|
+
Dn as BentoCheckboxGroupVariant,
|
|
189
|
+
Ve as BentoCheckboxState,
|
|
190
|
+
Ge as BentoClickOutside,
|
|
191
|
+
sn as BentoClickOutsideDirective,
|
|
192
|
+
Me as BentoCodeSnippet,
|
|
193
|
+
Oe as BentoCodeSnippetEvent,
|
|
194
|
+
$e as BentoCodeSnippetSupportedLanguage,
|
|
195
|
+
Re as BentoCodeSnippetVariant,
|
|
196
|
+
Be as BentoColumnOverflow,
|
|
197
|
+
Ne as BentoCountry,
|
|
198
|
+
qe as BentoCountryCode,
|
|
199
|
+
ze as BentoCountryVariant,
|
|
200
|
+
je as BentoCurrency,
|
|
201
|
+
Je as BentoCurrencyISOCode,
|
|
202
|
+
se as BentoDataGrid,
|
|
203
|
+
me as BentoDatagridAriaSortValue,
|
|
204
|
+
pe as BentoDatagridEvent,
|
|
205
|
+
le as BentoDatagridSortDirection,
|
|
206
|
+
de as BentoDatagridStyleState,
|
|
207
|
+
Ye as BentoDate,
|
|
208
|
+
Ze as BentoDateFormat,
|
|
209
|
+
fe as BentoDatePicker,
|
|
210
|
+
ce as BentoDatePickerEvent,
|
|
211
|
+
Cn as BentoDatePickerFirstDayOfWeek,
|
|
212
|
+
xe as BentoDateRangePicker,
|
|
213
|
+
ge as BentoDateRangePickerEvent,
|
|
214
|
+
bn as BentoDateRangePickerFirstDayOfWeek,
|
|
215
|
+
Le as BentoDivider,
|
|
216
|
+
Se as BentoDropdown,
|
|
217
|
+
be as BentoDropdownAvatar,
|
|
218
|
+
ke as BentoDropdownCountry,
|
|
219
|
+
ve as BentoDropdownCurrency,
|
|
220
|
+
De as BentoDropdownPaymentMethod,
|
|
221
|
+
Ee as BentoDropdownTag,
|
|
222
|
+
tt as BentoEmptyState,
|
|
223
|
+
ot as BentoEmptyStateImage,
|
|
224
|
+
nt as BentoEmptyStateImageVariant,
|
|
225
|
+
rt as BentoEmptyStateVariant,
|
|
226
|
+
it as BentoFilterBar,
|
|
227
|
+
Bt as BentoFilterBarEvent,
|
|
228
|
+
st as BentoFilterEvent,
|
|
229
|
+
mt as BentoFilterItemType,
|
|
230
|
+
lt as BentoFormLayout,
|
|
231
|
+
dt as BentoFormLayoutFieldTip,
|
|
232
|
+
ut as BentoFormLayoutGroup,
|
|
233
|
+
ft as BentoFormLayoutTitle,
|
|
234
|
+
Rt as BentoHeader,
|
|
235
|
+
yt as BentoInfoIcon,
|
|
236
|
+
gt as BentoInputField,
|
|
237
|
+
Tt as BentoInputFieldElementPosition,
|
|
238
|
+
St as BentoInputFieldEvent,
|
|
239
|
+
ht as BentoInputFieldStateClass,
|
|
240
|
+
Ct as BentoInputFieldType,
|
|
241
|
+
bt as BentoInputFieldVariant,
|
|
242
|
+
tn as BentoKeyboardNavigationDirective,
|
|
243
|
+
on as BentoKeyboardNavigationKeyDownEvent,
|
|
240
244
|
U as BentoLink,
|
|
241
245
|
d as BentoLinkVariant,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
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
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
246
|
+
rn as BentoListboxEvent,
|
|
247
|
+
an as BentoListboxLazyLoadType,
|
|
248
|
+
Tn as BentoLoadingButton,
|
|
249
|
+
Sn as BentoLoadingButtonState,
|
|
250
|
+
vt as BentoLoadingIndicator,
|
|
251
|
+
Dt as BentoLoadingIndicatorEvent,
|
|
252
|
+
It as BentoMenu,
|
|
253
|
+
Lt as BentoMenuEvent,
|
|
254
|
+
_t as BentoModal,
|
|
255
|
+
Vt as BentoModalColumnLayoutVariant,
|
|
256
|
+
wt as BentoModalDialogType,
|
|
257
|
+
Gt as BentoModalEvent,
|
|
258
|
+
At as BentoModalRole,
|
|
259
|
+
Mt as BentoModalSize,
|
|
260
|
+
Ot as BentoModalVariant,
|
|
261
|
+
Nt as BentoPagination,
|
|
262
|
+
zt as BentoPaymentMethod,
|
|
263
|
+
Kt as BentoPaymentMethodType,
|
|
264
|
+
Wt as BentoPopover,
|
|
265
|
+
Ht as BentoPopoverPositions,
|
|
266
|
+
Jt as BentoRadioGroup,
|
|
267
|
+
Xt as BentoRadioGroupVariant,
|
|
268
|
+
Zt as BentoSearchBar,
|
|
269
|
+
eo as BentoSearchBarEvent,
|
|
270
|
+
to as BentoSearchBarInternalEvent,
|
|
271
|
+
no as BentoSegmentedControl,
|
|
272
|
+
ro as BentoSegmentedControlEvent,
|
|
273
|
+
io as BentoStatus,
|
|
274
|
+
Bo as BentoStatusVariant,
|
|
275
|
+
mo as BentoStep,
|
|
276
|
+
po as BentoStepper,
|
|
277
|
+
lo as BentoStepperTypeOption,
|
|
278
|
+
uo as BentoStepperVariantOption,
|
|
279
|
+
co as BentoStructuredList,
|
|
280
|
+
yo as BentoStructuredListItem,
|
|
281
|
+
go as BentoSummaryGrid,
|
|
282
|
+
To as BentoSummaryGridItemAmount,
|
|
283
|
+
So as BentoSummaryGridItemCustom,
|
|
284
|
+
ho as BentoSummaryGridItemNumeric,
|
|
285
|
+
Co as BentoSummaryGridItemPercentage,
|
|
286
|
+
bo as BentoSummaryGridItemSize,
|
|
287
|
+
ko as BentoSummaryGridItemText,
|
|
288
|
+
vo as BentoSummaryGridItemTrendDirection,
|
|
289
|
+
Eo as BentoTab,
|
|
290
|
+
Io as BentoTabs,
|
|
291
|
+
Po as BentoTag,
|
|
292
|
+
_o as BentoTagVariant,
|
|
293
|
+
Vo as BentoTextarea,
|
|
294
|
+
Go as BentoTimeline,
|
|
295
|
+
Ao as BentoTimelineGapUnit,
|
|
296
|
+
Mo as BentoTimelineItem,
|
|
297
|
+
Oo as BentoTimelineItemVariant,
|
|
298
|
+
$o as BentoTimelineShowMorePlacement,
|
|
299
|
+
Uo as BentoToast,
|
|
300
|
+
Ko as BentoToggle,
|
|
301
|
+
Qo as BentoToggleLabelPosition,
|
|
302
|
+
Wo as BentoTogglePropClass,
|
|
303
|
+
pn as BentoTooltipDirective,
|
|
304
|
+
ln as BentoTooltipPosition,
|
|
305
|
+
dn as BentoTooltipState,
|
|
298
306
|
c as BentoTypography,
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
307
|
+
jo as BentoTypographyElement,
|
|
308
|
+
Jo as BentoTypographyModifier,
|
|
309
|
+
Xo as BentoTypographyVariant,
|
|
310
|
+
Zo as DateFormat,
|
|
303
311
|
R as default,
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
312
|
+
qo as useBentoToastController,
|
|
313
|
+
Ke as useCountryCapital,
|
|
314
|
+
Qe as useCountryName,
|
|
315
|
+
We as useCountryPhoneCode,
|
|
316
|
+
he as useSearchBarFilter
|
|
309
317
|
};
|
|
310
318
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../vue2/src/plugins/toastController.ts","../../vue2/src/install.ts","../src/components/link/link.vue"],"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","<template>\n <a\n v-if=\"external\"\n v-bind=\"$attrs\"\n :href=\"to\"\n target=\"_blank\"\n class=\"b-link\"\n :class=\"conditionalClasses\"\n @click=\"onClick\"\n >\n <bento-typography v-if=\"!disableTypography\" el=\"span\" variant=\"body\">\n <slot />\n </bento-typography>\n <slot v-else />\n </a>\n <router-link v-else v-slot=\"{ href, navigate }\" v-bind=\"$props\" custom @click=\"onClick\">\n <a v-bind=\"$attrs\" :href=\"href\" class=\"b-link\" :class=\"conditionalClasses\" @click=\"navigate\">\n <bento-typography v-if=\"!disableTypography\" el=\"span\" variant=\"body\">\n <slot />\n </bento-typography>\n <slot v-else />\n </a>\n </router-link>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoLinkVariant } from '@/core/components/link/link.types';\n import BentoTypography from '@/components/typography/typography.vue';\n import { computed, type PropType } from 'vue';\n import { RouterLink } from 'vue-router';\n import type { RouterLinkSlotArgument } from 'vue-router/types/router';\n\n const props = defineProps({\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n ...RouterLink.props,\n /**\n * Set the rendered link to a regular external anchor link.\n */\n external: { type: Boolean, default: false },\n /**\n * Disable the default typography for the component. Only use this when the component is inside another typography component.\n */\n disableTypography: { type: Boolean, default: false },\n /**\n * Link variant type affecting visual style.\n * @values default, quiet\n */\n variant: { type: String as PropType<BentoLinkVariant>, default: BentoLinkVariant.DEFAULT },\n });\n const emit = defineEmits(['click']);\n const conditionalClasses = computed(() => ({\n [`b-link--${BentoLinkVariant.QUIET}`]: props.variant === BentoLinkVariant.QUIET,\n }));\n\n const onClick = (e: MouseEvent, navigateCallback?: RouterLinkSlotArgument['navigate']) => {\n emit('click', e);\n if (navigateCallback) {\n navigateCallback();\n }\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/link/link.scss\" />\n"],"names":["ToastController","__publicField","reactive","toast","params","id","generateUid","setTheme","theme","plugin","Vue","options","conditionalClasses","computed","BentoLinkVariant","props","onClick","e","navigateCallback","emit"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../vue2/src/plugins/toastController.ts","../../vue2/src/install.ts","../src/components/link/link.vue"],"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","<template>\n <a\n v-if=\"external\"\n v-bind=\"$attrs\"\n :href=\"to\"\n target=\"_blank\"\n class=\"b-link\"\n :class=\"conditionalClasses\"\n @click=\"onClick\"\n >\n <bento-typography v-if=\"!disableTypography\" el=\"span\" variant=\"body\">\n <slot />\n </bento-typography>\n <slot v-else />\n </a>\n <router-link v-else v-slot=\"{ href, navigate }\" v-bind=\"$props\" custom @click=\"onClick\">\n <a v-bind=\"$attrs\" :href=\"href\" class=\"b-link\" :class=\"conditionalClasses\" @click=\"navigate\">\n <bento-typography v-if=\"!disableTypography\" el=\"span\" variant=\"body\">\n <slot />\n </bento-typography>\n <slot v-else />\n </a>\n </router-link>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoLinkVariant } from '@/core/components/link/link.types';\n import BentoTypography from '@/components/typography/typography.vue';\n import { computed, type PropType } from 'vue';\n import { RouterLink } from 'vue-router';\n import type { RouterLinkSlotArgument } from 'vue-router/types/router';\n\n const props = defineProps({\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n ...RouterLink.props,\n /**\n * Set the rendered link to a regular external anchor link.\n */\n external: { type: Boolean, default: false },\n /**\n * Disable the default typography for the component. Only use this when the component is inside another typography component.\n */\n disableTypography: { type: Boolean, default: false },\n /**\n * Link variant type affecting visual style.\n * @values default, quiet\n */\n variant: { type: String as PropType<BentoLinkVariant>, default: BentoLinkVariant.DEFAULT },\n });\n const emit = defineEmits(['click']);\n const conditionalClasses = computed(() => ({\n [`b-link--${BentoLinkVariant.QUIET}`]: props.variant === BentoLinkVariant.QUIET,\n }));\n\n const onClick = (e: MouseEvent, navigateCallback?: RouterLinkSlotArgument['navigate']) => {\n emit('click', e);\n if (navigateCallback) {\n navigateCallback();\n }\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/link/link.scss\" />\n"],"names":["ToastController","__publicField","reactive","toast","params","id","generateUid","setTheme","theme","plugin","Vue","options","conditionalClasses","computed","BentoLinkVariant","props","onClick","e","navigateCallback","emit"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAAA,EAAA;AAAA,EAKY,cAAA;AAFR,IAAAC,EAAA;AAKI,SAAA,SAAAC,EAAA,EAAA,OAAA,CAAA,EAAA,CAAA;AAAA,EAAoC;AAAA,EARP,IAAA,QAAA;AAE7B,WAAA,KAAA;AAAA,EAAY;AAAA,EAOhB,aAAAC,GAAA;AAGI,SAAA,OAAA,MAAA,OAAA,KAAA,OAAA,MAAA,QAAAA,CAAA,GAAA,CAAA;AAAA,EAA4D;AAAA,EAChE,SAAAC,GAAA;AAGI,UAAAC,IAAAC,EAAA,OAAA,GACAH,IAAA;AAAA,MAAc,GAAAC;AAAA,MACP,IAAAC;AAAA,MACH,SAAA,MAAA,KAAA,aAAAF,CAAA;AAAA,IACsC;AAI1C,gBAAA,OAAA,MAAA,KAAAA,CAAA,GAGA;AAAA,MAAO,SAAA,MAAA,KAAA,aAAAA,CAAA;AAAA,IACmC;AAAA,EAC1C;AAER;ACrBA,MAAAI,IAAA,CAAAC,MAAA;AACI,WAAA,KAAA,UAAA,IAAAA,CAAA;AACJ,GAEAC,IAAA;AAAA,EAA6C,SAAA,OAAAC,GAAAC,MAAA;AAErC,IAAAA,KAAA,QAAAA,EAAA,cAOQD,EAAA,OAAA,iBAAA,wBAAA,IAAAV,EAAA,KAIRW,KAAA,gBAAAA,EAAA,WAAA,oBACIJ;AAAA,MAAA;AAAA;AAAA,IAAA,GACA,MAAA,OAAA,qEAAA,MAA6EI,KAAA,gBAAAA,EAAA,WAAA,wBAE7EJ;AAAA,MAAA;AAAA;AAAA,IAAA,GACA,MAAA,OAAA,yEAAA,KAEA,MAAA,OAAA,8DAAA,GAGJI,KAAA,QAAAA,EAAA,sBACI,MAAA,OAAA,4DAAA;AAAA,EACJ;AAER;;;;;;;;;;;;;;;;;;;;;;iBCKIC,IAAAC,EAAA,OAAA;AAAA,MAA2C,CAAA,WAAAC,EAAA,OAAA,GAAAC,EAAA,YAAAD,EAAA;AAAA,IACmC,EAAA,GAG9EE,IAAA,CAAAC,GAAAC,MAAA;AACI,MAAAC,EAAA,SAAAF,CAAA,GACAC,KACIA,EAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/info-icon.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { openBlock as i, createElementBlock as n, mergeProps as f, toDisplayString as h, createCommentVNode as v, createElementVNode as e, pushScopeId as m, popScopeId as g, defineComponent as $, resolveComponent as b, resolveDirective as I, withDirectives as w, createVNode as y } from "vue";
|
|
2
2
|
import { PopperContainerPosition as s } from "./popper-container.js";
|
|
3
|
-
import { b as S } from "./chunks/tooltip.
|
|
3
|
+
import { b as S } from "./chunks/tooltip.c8350cd0.js";
|
|
4
4
|
import { _ as r } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
5
|
-
import "./assets/
|
|
5
|
+
import "./assets/index16.css";
|
|
6
6
|
let c = 0;
|
|
7
7
|
const P = {
|
|
8
8
|
beforeCreate() {
|
package/dist/input-field.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
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.
|
|
3
|
-
import { u as fe } from "./chunks/use-has-slot.
|
|
2
|
+
import { d as ce, B as y } from "./chunks/index.32ed68b7.js";
|
|
3
|
+
import { u as fe } from "./chunks/use-has-slot.3daaffc6.js";
|
|
4
4
|
import { u as be } from "./chunks/use-form-layout-loading.d03e5d48.js";
|
|
5
5
|
import { g as w } from "./chunks/unique-id.a2a2b458.js";
|
|
6
6
|
import { u as ye } from "./chunks/i18n.6c402773.js";
|
|
7
|
-
import { B as z, a as j } from "./chunks/dropdown.
|
|
7
|
+
import { B as z, a as j } from "./chunks/dropdown.22e51667.js";
|
|
8
8
|
import { g as ve } from "./chunks/get-slot-text.bead058f.js";
|
|
9
9
|
import { u as me } from "./chunks/aria-label.ac9651a5.js";
|
|
10
|
-
import { E as _e } from "./chunks/error-message.
|
|
10
|
+
import { E as _e } from "./chunks/error-message.37b6c7aa.js";
|
|
11
11
|
import { _ as De } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
12
|
-
import "./assets/
|
|
12
|
+
import "./assets/index39.css";
|
|
13
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
14
|
const x = {
|
|
15
15
|
"en-US": {
|
package/dist/internal.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { B as r, L as e } from "./chunks/listbox-option-tag.
|
|
2
|
-
import { C as s, a as p, b as n } from "./chunks/calendar.
|
|
3
|
-
import { C } from "./chunks/copy.
|
|
4
|
-
import { C as i } from "./chunks/controls-group.
|
|
5
|
-
import { E as d } from "./chunks/error-message.
|
|
6
|
-
import { G as L, a as l } from "./chunks/grid-layout.
|
|
7
|
-
import { B as G } from "./chunks/listbox.
|
|
1
|
+
import { B as r, L as e } from "./chunks/listbox-option-tag.fa70334e.js";
|
|
2
|
+
import { C as s, a as p, b as n } from "./chunks/calendar.1e50c7d1.js";
|
|
3
|
+
import { C } from "./chunks/copy.527c3d76.js";
|
|
4
|
+
import { C as i } from "./chunks/controls-group.efcf4e8d.js";
|
|
5
|
+
import { E as d } from "./chunks/error-message.37b6c7aa.js";
|
|
6
|
+
import { G as L, a as l } from "./chunks/grid-layout.c98e6bc7.js";
|
|
7
|
+
import { B as G } from "./chunks/listbox.4205c0de.js";
|
|
8
8
|
export {
|
|
9
9
|
r as BentoAvatar,
|
|
10
10
|
G as BentoListbox,
|
package/dist/link.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as k, computed as m, useAttrs as _, openBlock as o, createElementBlock as g, normalizeClass as b, unref as e, createBlock as i, withCtx as c, renderSlot as l, mergeProps as v } from "vue";
|
|
2
2
|
import { RouterLink as h } from "vue-router";
|
|
3
|
-
import { B as f } from "./chunks/index.
|
|
3
|
+
import { B as f } from "./chunks/index.32ed68b7.js";
|
|
4
4
|
import { _ as T } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
5
|
-
import "./assets/
|
|
5
|
+
import "./assets/index21.css";
|
|
6
6
|
var r = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.QUIET = "quiet", t))(r || {});
|
|
7
7
|
const B = ["href", "title", "target"], E = {
|
|
8
8
|
name: "bento-link"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, onMounted as i, onUnmounted as l, computed as s, openBlock as d, createElementBlock as r, normalizeClass as c } from "vue";
|
|
2
2
|
import { _ } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
3
|
-
import "./assets/
|
|
3
|
+
import "./assets/index22.css";
|
|
4
4
|
var e = /* @__PURE__ */ ((a) => (a.START = "loading-start", a.END = "loading-end", a))(e || {});
|
|
5
5
|
const p = t({
|
|
6
6
|
name: "bento-loading-indicator",
|