@adyen/bento-vue3 1.2.0 → 1.3.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 +12 -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/components/checkbox-group/checkbox-group.vue.d.ts +76 -30
- package/dist/@types/packages/vue2/src/components/country/composables/index.d.ts +0 -1
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +11 -1
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +11 -1
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +0 -2
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +23 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue.d.ts +33 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/form-layout/form-layout.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/form-layout/form-layout.vue.d.ts +33 -0
- package/dist/@types/packages/vue2/src/components/form-layout/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +53 -22
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +51 -44
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +4 -12
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +50 -4
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +5 -3
- package/dist/@types/packages/vue2/src/components/sidepanel/components/sidepanel-page.vue.d.ts +68 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.keys.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +21 -0
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.vue.d.ts +46 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/composables/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/composables/use-form-layout-loading/use-form-layout-loading.d.ts +4 -0
- package/dist/@types/packages/vue2/src/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/utils/ts/dev-environment.d.ts +1 -0
- package/dist/accordion.js +1 -1
- package/dist/alert.js +3 -3
- package/dist/assets/arrow-left.css +1 -0
- package/dist/assets/base-button.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/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/footer-actions.css +1 -0
- package/dist/assets/grid-layout.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 -0
- package/dist/assets/index42.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/assets/loading-button.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +3 -3
- package/dist/checkbox.js +111 -97
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/arrow-left.cdbcc128.js +30 -0
- package/dist/chunks/arrow-left.cdbcc128.js.map +1 -0
- package/dist/chunks/{base-button.4a56c2fb.js → base-button.20be08da.js} +2 -2
- package/dist/chunks/{base-button.4a56c2fb.js.map → base-button.20be08da.js.map} +1 -1
- package/dist/chunks/{button-actions.a6e541ad.js → button-actions.54e28e75.js} +2 -2
- package/dist/chunks/{button-actions.a6e541ad.js.map → button-actions.54e28e75.js.map} +1 -1
- package/dist/chunks/{button.1f630b6e.js → button.e1c39f66.js} +2 -2
- package/dist/chunks/{button.1f630b6e.js.map → button.e1c39f66.js.map} +1 -1
- package/dist/chunks/{calendar.08885a56.js → calendar.09b683b3.js} +6 -6
- package/dist/chunks/calendar.09b683b3.js.map +1 -0
- package/dist/chunks/{checkbox.cfb8b8df.js → checkbox.a404069b.js} +3 -3
- package/dist/chunks/{checkbox.cfb8b8df.js.map → checkbox.a404069b.js.map} +1 -1
- package/dist/chunks/controls-group.60fb2a86.js +136 -0
- package/dist/chunks/controls-group.60fb2a86.js.map +1 -0
- package/dist/chunks/{copy.1ce0203e.js → copy.2cf5e6c3.js} +3 -3
- package/dist/chunks/{copy.1ce0203e.js.map → copy.2cf5e6c3.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.dd77bb42.js → dropdown-default-textbox.203e747f.js} +54 -51
- package/dist/chunks/dropdown-default-textbox.203e747f.js.map +1 -0
- package/dist/chunks/{dropdown.f9997464.js → dropdown.8b415aac.js} +188 -185
- package/dist/chunks/dropdown.8b415aac.js.map +1 -0
- package/dist/chunks/{error-message.b88bb75a.js → error-message.ddfe8ea5.js} +2 -2
- package/dist/chunks/{error-message.b88bb75a.js.map → error-message.ddfe8ea5.js.map} +1 -1
- package/dist/chunks/footer-actions.0f640f87.js +106 -0
- package/dist/chunks/footer-actions.0f640f87.js.map +1 -0
- package/dist/chunks/form-layout.types.a7a1438d.js +5 -0
- package/dist/chunks/form-layout.types.a7a1438d.js.map +1 -0
- package/dist/chunks/{index.361c61d3.js → index.13949709.js} +2 -2
- package/dist/chunks/{index.361c61d3.js.map → index.13949709.js.map} +1 -1
- package/dist/chunks/index.222d29b0.js +120 -0
- package/dist/chunks/index.222d29b0.js.map +1 -0
- package/dist/chunks/{index.64b7b3cc.js → index.3da90517.js} +6 -6
- package/dist/chunks/{index.64b7b3cc.js.map → index.3da90517.js.map} +1 -1
- package/dist/chunks/{index.96001b1d.js → index.aa34e363.js} +3 -3
- package/dist/chunks/{index.96001b1d.js.map → index.aa34e363.js.map} +1 -1
- package/dist/chunks/{index.b46a5047.js → index.c9225c3b.js} +260 -253
- package/dist/chunks/{index.b46a5047.js.map → index.c9225c3b.js.map} +1 -1
- package/dist/chunks/{index.7dd953ea.js → index.d27367cd.js} +2 -2
- package/dist/chunks/{index.7dd953ea.js.map → index.d27367cd.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.73661a5d.js → listbox-option-tag.5ae8b79b.js} +3 -3
- package/dist/chunks/{listbox-option-tag.73661a5d.js.map → listbox-option-tag.5ae8b79b.js.map} +1 -1
- package/dist/chunks/{listbox.7b5e0eee.js → listbox.0c7c4e5e.js} +339 -339
- package/dist/chunks/listbox.0c7c4e5e.js.map +1 -0
- package/dist/chunks/loading-button.61d8ebe5.js +109 -0
- package/dist/chunks/loading-button.61d8ebe5.js.map +1 -0
- package/dist/chunks/{tooltip.53290a34.js → tooltip.835d9b52.js} +2 -2
- package/dist/chunks/tooltip.835d9b52.js.map +1 -0
- package/dist/chunks/use-form-layout-loading.d03e5d48.js +12 -0
- package/dist/chunks/use-form-layout-loading.d03e5d48.js.map +1 -0
- package/dist/code-snippet.js +6 -6
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +559 -595
- package/dist/country.js.map +1 -1
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +682 -702
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +82 -75
- 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 +67 -62
- package/dist/dropdown.js.map +1 -1
- package/dist/filter-bar.js +446 -442
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +188 -0
- package/dist/form-layout.js.map +1 -0
- package/dist/header.js +3 -3
- package/dist/index.js +191 -187
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +123 -121
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +6 -6
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +4 -4
- package/dist/modal.js +266 -397
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +4 -4
- package/dist/popper-container.js +2 -2
- package/dist/radio-group.js +127 -124
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/segmented-control.js +4 -4
- package/dist/sidepanel.js +279 -0
- package/dist/sidepanel.js.map +1 -0
- package/dist/status.js +2 -2
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +7 -7
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +97 -95
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +8 -8
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +3 -3
- package/dist/toggle.js +2 -2
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +14 -7
- package/dist/@types/packages/vue2/src/components/country/composables/useCountryFlag.d.ts +0 -2
- package/dist/chunks/calendar.08885a56.js.map +0 -1
- package/dist/chunks/controls-group.806da9bd.js +0 -75
- package/dist/chunks/controls-group.806da9bd.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.dd77bb42.js.map +0 -1
- package/dist/chunks/dropdown.f9997464.js.map +0 -1
- package/dist/chunks/index.ebf5f6cf.js +0 -119
- package/dist/chunks/index.ebf5f6cf.js.map +0 -1
- package/dist/chunks/listbox.7b5e0eee.js.map +0 -1
- package/dist/chunks/loading-button.426d89b9.js +0 -113
- package/dist/chunks/loading-button.426d89b9.js.map +0 -1
- package/dist/chunks/tooltip.53290a34.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,62 +1,63 @@
|
|
|
1
1
|
var S = Object.defineProperty;
|
|
2
|
-
var k = (t, e,
|
|
3
|
-
var f = (t, e,
|
|
4
|
-
import { reactive as v, defineComponent as b, computed as D, openBlock as i, createElementBlock as I, mergeProps as m, unref as
|
|
5
|
-
import { g as
|
|
2
|
+
var k = (t, e, r) => e in t ? S(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var f = (t, e, r) => (k(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
+
import { reactive as v, defineComponent as b, computed as D, openBlock as i, createElementBlock as I, mergeProps as m, unref as n, createBlock as l, withCtx as d, renderSlot as B, createElementVNode as E } from "vue";
|
|
5
|
+
import { g as L } from "./chunks/unique-id.a2a2b458.js";
|
|
6
6
|
import { BentoAlert as W, BentoAlertEvent as Y, BentoAlertTypeOption as H, BentoAlertVariant as j } from "./alert.js";
|
|
7
|
-
import { B as X, b as Z, a as ee } from "./chunks/button.
|
|
8
|
-
import { BentoCard as oe, BentoCardBackground as
|
|
9
|
-
import { BentoColumnOverflow as ie, BentoDataGrid as
|
|
7
|
+
import { B as X, b as Z, a as ee } from "./chunks/button.e1c39f66.js";
|
|
8
|
+
import { BentoCard as oe, BentoCardBackground as re, BentoCardTitleSize as ne } from "./card.js";
|
|
9
|
+
import { BentoColumnOverflow as ie, BentoDataGrid as Be, BentoDatagridAriaSortValue as se, BentoDatagridEvent as me, BentoDatagridSortDirection as le, BentoDatagridStyleState as de } from "./data-grid.js";
|
|
10
10
|
import { BentoDatePicker as ue, BentoDatePickerEvent as fe } from "./date-picker.js";
|
|
11
|
-
import { B as ye, a as xe } from "./chunks/index.
|
|
12
|
-
import { B as
|
|
11
|
+
import { B as ye, a as xe } from "./chunks/index.c9225c3b.js";
|
|
12
|
+
import { B as Te, u as he } from "./chunks/dropdown.8b415aac.js";
|
|
13
13
|
import { BentoDropdownAvatar as Se, BentoDropdownCountry as ke, BentoDropdownCurrency as ve, BentoDropdownPaymentMethod as be, BentoDropdownTag as De } from "./dropdown.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { BentoFilterBar as
|
|
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 { c as
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import { a as
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import { B as
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
14
|
+
import { BentoDivider as Ee } from "./divider.js";
|
|
15
|
+
import { B as Pe, b as _e, a as Fe } from "./chunks/checkbox.a404069b.js";
|
|
16
|
+
import { BentoClickOutside as Ve } from "./click-outside.js";
|
|
17
|
+
import { BentoCodeSnippet as Ae, BentoCodeSnippetEvent as Me, BentoCodeSnippetSupportedLanguage as Oe, BentoCodeSnippetVariant as $e } from "./code-snippet.js";
|
|
18
|
+
import { BentoCountry as Re, BentoCountryCode as Ue, BentoCountryVariant as qe, useCountryCapital as ze, useCountryName as Ke, useCountryPhoneCode as Qe } from "./country.js";
|
|
19
|
+
import { BentoCurrency as Ye, BentoCurrencyISOCode as He } from "./currency.js";
|
|
20
|
+
import { B as Je, a as Xe } from "./chunks/index.d27367cd.js";
|
|
21
|
+
import { BentoFilterBar as et, BentoFilterBarEvent as tt, BentoFilterEvent as ot, BentoFilterItemType as rt } from "./filter-bar.js";
|
|
22
|
+
import { BentoFormLayout as at, BentoFormLayoutFieldTip as it, BentoFormLayoutGroup as Bt, BentoFormLayoutTitle as st } from "./form-layout.js";
|
|
23
|
+
import { BentoInfoIcon as lt } from "./info-icon.js";
|
|
24
|
+
import { BentoInputField as pt, BentoInputFieldElementPosition as ut, BentoInputFieldEvent as ft, BentoInputFieldStateClass as ct, BentoInputFieldType as yt, BentoInputFieldVariant as xt } from "./input-field.js";
|
|
25
|
+
import { BentoLoadingIndicator as Tt, BentoLoadingIndicatorEvent as ht } from "./loading-indicator.js";
|
|
26
|
+
import { BentoMenu as St, BentoMenuEvent as kt } from "./menu.js";
|
|
27
|
+
import { BentoModal as bt, BentoModalColumnLayoutVariant as Dt, BentoModalDialogType as It, BentoModalEvent as Et, BentoModalRole as Lt, BentoModalSize as Pt, BentoModalVariant as _t } from "./modal.js";
|
|
28
|
+
import { BentoHeader as wt } from "./header.js";
|
|
29
|
+
import { BentoPagination as Gt } from "./pagination.js";
|
|
30
|
+
import { BentoPaymentMethod as Mt, BentoPaymentMethodType as Ot } from "./payment-method.js";
|
|
31
|
+
import { BentoPopover as Nt, BentoPopoverPositions as Rt } from "./popover.js";
|
|
32
|
+
import { BentoRadioGroup as qt, BentoRadioGroupVariant as zt } from "./radio-group.js";
|
|
33
|
+
import { BentoSearchBar as Qt, BentoSearchBarEvent as Wt, BentoSearchBarInternalEvent as Yt } from "./search-bar.js";
|
|
34
|
+
import { BentoSegmentedControl as jt, BentoSegmentedControlEvent as Jt } from "./segmented-control.js";
|
|
35
|
+
import { BentoStatus as Zt, BentoStatusVariant as eo } from "./status.js";
|
|
36
|
+
import { B as oo, a as ro } from "./chunks/index.3da90517.js";
|
|
37
|
+
import { BentoSummaryGrid as ao, BentoSummaryGridItemAmount as io, BentoSummaryGridItemCustom as Bo, BentoSummaryGridItemNumeric as so, BentoSummaryGridItemPercentage as mo, BentoSummaryGridItemSize as lo, BentoSummaryGridItemText as po, BentoSummaryGridItemTrendDirection as uo } from "./summary-grid.js";
|
|
38
|
+
import { BentoTab as co, BentoTabs as yo } from "./tabs.js";
|
|
39
|
+
import { BentoTag as go, BentoTagVariant as To } from "./tag.js";
|
|
40
|
+
import { BentoTextarea as Co } from "./textarea.js";
|
|
41
|
+
import { BentoTimeline as ko, BentoTimelineGapUnit as vo, BentoTimelineItem as bo, BentoTimelineItemVariant as Do, BentoTimelineShowMorePlacement as Io } from "./timeline.js";
|
|
42
|
+
import { BentoToast as Lo } from "./toast.js";
|
|
43
|
+
import { u as _o } from "./chunks/toastController.0b01d2e8.js";
|
|
44
|
+
import { BentoToggle as wo, BentoToggleLabelPosition as Vo, BentoTogglePropClass as Go } from "./toggle.js";
|
|
45
|
+
import { B as c, a as y, b as x } from "./chunks/index.222d29b0.js";
|
|
46
|
+
import { c as Mo } from "./chunks/index.222d29b0.js";
|
|
47
|
+
import { D as $o } from "./chunks/date-input.9186a0bf.js";
|
|
48
|
+
import { a as Ro, B as Uo } from "./chunks/debounce.f8d92e44.js";
|
|
49
|
+
import { a as zo, b as Ko } from "./chunks/listbox.0c7c4e5e.js";
|
|
50
|
+
import { B as Wo } from "./chunks/directive.0408e565.js";
|
|
51
|
+
import { b as Ho, B as jo, a as Jo } from "./chunks/tooltip.835d9b52.js";
|
|
52
|
+
import { B as Zo, c as er, a as tr, b as or } from "./chunks/button-actions.54e28e75.js";
|
|
53
|
+
import { B as nr, a as ar } from "./chunks/loading-button.61d8ebe5.js";
|
|
54
|
+
import { b as Br, b as sr } from "./chunks/calendar.09b683b3.js";
|
|
55
|
+
import { BentoCheckboxGroup as lr, BentoCheckboxGroupVariant as dr } from "./checkbox.js";
|
|
55
56
|
import { BentoLinkVariant as p } from "./link.js";
|
|
56
57
|
import { RouterLink as g } from "vue-router";
|
|
57
|
-
import { _ } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
58
|
-
import "./assets/
|
|
59
|
-
class
|
|
58
|
+
import { _ as P } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
59
|
+
import "./assets/index3.css";
|
|
60
|
+
class _ {
|
|
60
61
|
constructor() {
|
|
61
62
|
f(this, "_state");
|
|
62
63
|
this._state = v({ queue: [] });
|
|
@@ -68,9 +69,9 @@ class L {
|
|
|
68
69
|
this._state.queue.splice(this._state.queue.indexOf(e), 1);
|
|
69
70
|
}
|
|
70
71
|
addToast(e) {
|
|
71
|
-
const
|
|
72
|
+
const r = L("toast"), a = {
|
|
72
73
|
...e,
|
|
73
|
-
id:
|
|
74
|
+
id: r,
|
|
74
75
|
dismiss: () => this.dismissToast(a)
|
|
75
76
|
};
|
|
76
77
|
return this._state.queue.push(a), {
|
|
@@ -78,19 +79,19 @@ class L {
|
|
|
78
79
|
};
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
|
-
const
|
|
82
|
+
const T = (t) => {
|
|
82
83
|
document.body.classList.add(t);
|
|
83
84
|
}, U = {
|
|
84
85
|
install: async (t, e) => {
|
|
85
|
-
e != null && e.withToast && (t.config.globalProperties.$bentoToastController = new
|
|
86
|
+
e != null && e.withToast && (t.config.globalProperties.$bentoToastController = new _()), (e == null ? void 0 : e.theme) === "b-legacy-theme" ? (T(
|
|
86
87
|
"b-legacy-theme"
|
|
87
88
|
/* LEGACY */
|
|
88
|
-
), await import("@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css?used")) : (e == null ? void 0 : e.theme) === "b-styleguide-theme" ? (
|
|
89
|
+
), await import("@adyen/bento-design-tokens/dist/css/bento/variables-legacy.css?used")) : (e == null ? void 0 : e.theme) === "b-styleguide-theme" ? (T(
|
|
89
90
|
"b-styleguide-theme"
|
|
90
91
|
/* STYLEGUIDE */
|
|
91
92
|
), 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"), e != null && e.withUtilityClasses && await import("@adyen/bento-design-tokens/dist/css/bento/utility.css?used");
|
|
92
93
|
}
|
|
93
|
-
},
|
|
94
|
+
}, F = ["href"], w = ["href", "onClick"], V = /* @__PURE__ */ b({
|
|
94
95
|
__name: "link",
|
|
95
96
|
props: {
|
|
96
97
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -112,188 +113,191 @@ const C = (t) => {
|
|
|
112
113
|
},
|
|
113
114
|
emits: ["click"],
|
|
114
115
|
setup(t, { emit: e }) {
|
|
115
|
-
const
|
|
116
|
-
[`b-link--${p.QUIET}`]:
|
|
117
|
-
})), u = (o,
|
|
118
|
-
e("click", o),
|
|
116
|
+
const r = t, a = D(() => ({
|
|
117
|
+
[`b-link--${p.QUIET}`]: r.variant === p.QUIET
|
|
118
|
+
})), u = (o, s) => {
|
|
119
|
+
e("click", o), s && s();
|
|
119
120
|
};
|
|
120
|
-
return (o,
|
|
121
|
+
return (o, s) => t.external ? (i(), I("a", m({ key: 0 }, o.$attrs, {
|
|
121
122
|
href: o.to,
|
|
122
123
|
target: "_blank",
|
|
123
|
-
class: ["b-link",
|
|
124
|
+
class: ["b-link", n(a)],
|
|
124
125
|
onClick: u
|
|
125
126
|
}), [
|
|
126
|
-
t.disableTypography ?
|
|
127
|
+
t.disableTypography ? B(o.$slots, "default", { key: 1 }, void 0, !0) : (i(), l(c, {
|
|
127
128
|
key: 0,
|
|
128
|
-
el:
|
|
129
|
-
variant:
|
|
129
|
+
el: n(y).SPAN,
|
|
130
|
+
variant: n(x).BODY
|
|
130
131
|
}, {
|
|
131
132
|
default: d(() => [
|
|
132
|
-
|
|
133
|
+
B(o.$slots, "default", {}, void 0, !0)
|
|
133
134
|
]),
|
|
134
135
|
_: 3
|
|
135
136
|
}, 8, ["el", "variant"]))
|
|
136
|
-
], 16,
|
|
137
|
+
], 16, F)) : (i(), l(n(g), m({ key: 1 }, o.$props, {
|
|
137
138
|
custom: "",
|
|
138
139
|
onClick: u
|
|
139
140
|
}), {
|
|
140
|
-
default: d(({ href:
|
|
141
|
+
default: d(({ href: h, navigate: C }) => [
|
|
141
142
|
E("a", m(o.$attrs, {
|
|
142
|
-
href:
|
|
143
|
-
class: ["b-link",
|
|
144
|
-
onClick:
|
|
143
|
+
href: h,
|
|
144
|
+
class: ["b-link", n(a)],
|
|
145
|
+
onClick: C
|
|
145
146
|
}), [
|
|
146
|
-
t.disableTypography ?
|
|
147
|
+
t.disableTypography ? B(o.$slots, "default", { key: 1 }, void 0, !0) : (i(), l(c, {
|
|
147
148
|
key: 0,
|
|
148
|
-
el:
|
|
149
|
-
variant:
|
|
149
|
+
el: n(y).SPAN,
|
|
150
|
+
variant: n(x).BODY
|
|
150
151
|
}, {
|
|
151
152
|
default: d(() => [
|
|
152
|
-
|
|
153
|
+
B(o.$slots, "default", {}, void 0, !0)
|
|
153
154
|
]),
|
|
154
155
|
_: 3
|
|
155
156
|
}, 8, ["el", "variant"]))
|
|
156
|
-
], 16,
|
|
157
|
+
], 16, w)
|
|
157
158
|
]),
|
|
158
159
|
_: 3
|
|
159
160
|
}, 16));
|
|
160
161
|
}
|
|
161
162
|
});
|
|
162
|
-
const q = /* @__PURE__ */
|
|
163
|
+
const q = /* @__PURE__ */ P(V, [["__scopeId", "data-v-3a8d44b1"]]);
|
|
163
164
|
export {
|
|
164
165
|
W as BentoAlert,
|
|
165
166
|
Y as BentoAlertEvent,
|
|
166
167
|
H as BentoAlertTypeOption,
|
|
167
168
|
j as BentoAlertVariant,
|
|
168
169
|
X as BentoButton,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
Zo as BentoButtonActions,
|
|
171
|
+
er as BentoButtonActionsLayout,
|
|
172
|
+
tr as BentoButtonActionsLayoutBasic,
|
|
173
|
+
or as BentoButtonActionsLayoutExtended,
|
|
173
174
|
Z as BentoButtonPropClass,
|
|
174
175
|
ee as BentoButtonVariant,
|
|
175
176
|
oe as BentoCard,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
177
|
+
re as BentoCardBackground,
|
|
178
|
+
ne as BentoCardTitleSize,
|
|
179
|
+
Pe as BentoCheckbox,
|
|
180
|
+
_e as BentoCheckboxEvent,
|
|
181
|
+
lr as BentoCheckboxGroup,
|
|
182
|
+
dr as BentoCheckboxGroupVariant,
|
|
183
|
+
Fe as BentoCheckboxState,
|
|
184
|
+
Ve as BentoClickOutside,
|
|
185
|
+
Wo as BentoClickOutsideDirective,
|
|
186
|
+
Ae as BentoCodeSnippet,
|
|
187
|
+
Me as BentoCodeSnippetEvent,
|
|
188
|
+
Oe as BentoCodeSnippetSupportedLanguage,
|
|
189
|
+
$e as BentoCodeSnippetVariant,
|
|
189
190
|
ie as BentoColumnOverflow,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
191
|
+
Re as BentoCountry,
|
|
192
|
+
Ue as BentoCountryCode,
|
|
193
|
+
qe as BentoCountryVariant,
|
|
194
|
+
Ye as BentoCurrency,
|
|
195
|
+
He as BentoCurrencyISOCode,
|
|
196
|
+
Be as BentoDataGrid,
|
|
197
|
+
se as BentoDatagridAriaSortValue,
|
|
197
198
|
me as BentoDatagridEvent,
|
|
198
199
|
le as BentoDatagridSortDirection,
|
|
199
200
|
de as BentoDatagridStyleState,
|
|
200
|
-
|
|
201
|
-
|
|
201
|
+
Je as BentoDate,
|
|
202
|
+
Xe as BentoDateFormat,
|
|
202
203
|
ue as BentoDatePicker,
|
|
203
204
|
fe as BentoDatePickerEvent,
|
|
204
|
-
|
|
205
|
+
Br as BentoDatePickerFirstDayOfWeek,
|
|
205
206
|
ye as BentoDateRangePicker,
|
|
206
207
|
xe as BentoDateRangePickerEvent,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
sr as BentoDateRangePickerFirstDayOfWeek,
|
|
209
|
+
Ee as BentoDivider,
|
|
210
|
+
Te as BentoDropdown,
|
|
210
211
|
Se as BentoDropdownAvatar,
|
|
211
212
|
ke as BentoDropdownCountry,
|
|
212
213
|
ve as BentoDropdownCurrency,
|
|
213
214
|
be as BentoDropdownPaymentMethod,
|
|
214
215
|
De as BentoDropdownTag,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
et as BentoFilterBar,
|
|
217
|
+
tt as BentoFilterBarEvent,
|
|
218
|
+
ot as BentoFilterEvent,
|
|
218
219
|
rt as BentoFilterItemType,
|
|
219
|
-
|
|
220
|
-
it as
|
|
221
|
-
Bt as
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
pt as
|
|
226
|
-
ut as
|
|
227
|
-
|
|
228
|
-
|
|
220
|
+
at as BentoFormLayout,
|
|
221
|
+
it as BentoFormLayoutFieldTip,
|
|
222
|
+
Bt as BentoFormLayoutGroup,
|
|
223
|
+
st as BentoFormLayoutTitle,
|
|
224
|
+
wt as BentoHeader,
|
|
225
|
+
lt as BentoInfoIcon,
|
|
226
|
+
pt as BentoInputField,
|
|
227
|
+
ut as BentoInputFieldElementPosition,
|
|
228
|
+
ft as BentoInputFieldEvent,
|
|
229
|
+
ct as BentoInputFieldStateClass,
|
|
230
|
+
yt as BentoInputFieldType,
|
|
231
|
+
xt as BentoInputFieldVariant,
|
|
232
|
+
Ro as BentoKeyboardNavigationDirective,
|
|
233
|
+
Uo as BentoKeyboardNavigationKeyDownEvent,
|
|
229
234
|
q as BentoLink,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
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
|
-
|
|
235
|
+
zo as BentoListboxEvent,
|
|
236
|
+
Ko as BentoListboxLazyLoadType,
|
|
237
|
+
nr as BentoLoadingButton,
|
|
238
|
+
ar as BentoLoadingButtonState,
|
|
239
|
+
Tt as BentoLoadingIndicator,
|
|
240
|
+
ht as BentoLoadingIndicatorEvent,
|
|
241
|
+
St as BentoMenu,
|
|
242
|
+
kt as BentoMenuEvent,
|
|
243
|
+
bt as BentoModal,
|
|
244
|
+
Dt as BentoModalColumnLayoutVariant,
|
|
245
|
+
It as BentoModalDialogType,
|
|
246
|
+
Et as BentoModalEvent,
|
|
247
|
+
Lt as BentoModalRole,
|
|
248
|
+
Pt as BentoModalSize,
|
|
249
|
+
_t as BentoModalVariant,
|
|
250
|
+
Gt as BentoPagination,
|
|
251
|
+
Mt as BentoPaymentMethod,
|
|
252
|
+
Ot as BentoPaymentMethodType,
|
|
253
|
+
Nt as BentoPopover,
|
|
254
|
+
Rt as BentoPopoverPositions,
|
|
255
|
+
qt as BentoRadioGroup,
|
|
256
|
+
zt as BentoRadioGroupVariant,
|
|
257
|
+
Qt as BentoSearchBar,
|
|
258
|
+
Wt as BentoSearchBarEvent,
|
|
259
|
+
Yt as BentoSearchBarInternalEvent,
|
|
260
|
+
jt as BentoSegmentedControl,
|
|
261
|
+
Jt as BentoSegmentedControlEvent,
|
|
262
|
+
Zt as BentoStatus,
|
|
263
|
+
eo as BentoStatusVariant,
|
|
264
|
+
oo as BentoStructuredList,
|
|
265
|
+
ro as BentoStructuredListItem,
|
|
266
|
+
ao as BentoSummaryGrid,
|
|
267
|
+
io as BentoSummaryGridItemAmount,
|
|
268
|
+
Bo as BentoSummaryGridItemCustom,
|
|
269
|
+
so as BentoSummaryGridItemNumeric,
|
|
270
|
+
mo as BentoSummaryGridItemPercentage,
|
|
271
|
+
lo as BentoSummaryGridItemSize,
|
|
272
|
+
po as BentoSummaryGridItemText,
|
|
273
|
+
uo as BentoSummaryGridItemTrendDirection,
|
|
274
|
+
co as BentoTab,
|
|
275
|
+
yo as BentoTabs,
|
|
276
|
+
go as BentoTag,
|
|
277
|
+
To as BentoTagVariant,
|
|
278
|
+
Co as BentoTextarea,
|
|
279
|
+
ko as BentoTimeline,
|
|
280
|
+
vo as BentoTimelineGapUnit,
|
|
281
|
+
bo as BentoTimelineItem,
|
|
282
|
+
Do as BentoTimelineItemVariant,
|
|
283
|
+
Io as BentoTimelineShowMorePlacement,
|
|
284
|
+
Lo as BentoToast,
|
|
285
|
+
wo as BentoToggle,
|
|
286
|
+
Vo as BentoToggleLabelPosition,
|
|
287
|
+
Go as BentoTogglePropClass,
|
|
288
|
+
Ho as BentoTooltipDirective,
|
|
289
|
+
jo as BentoTooltipPosition,
|
|
290
|
+
Jo as BentoTooltipState,
|
|
286
291
|
c as BentoTypography,
|
|
287
292
|
y as BentoTypographyElement,
|
|
288
|
-
|
|
293
|
+
Mo as BentoTypographyModifier,
|
|
289
294
|
x as BentoTypographyVariant,
|
|
290
|
-
|
|
295
|
+
$o as DateFormat,
|
|
291
296
|
U as default,
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
Te as useSearchBarFilter
|
|
297
|
+
_o as useBentoToastController,
|
|
298
|
+
ze as useCountryCapital,
|
|
299
|
+
Ke as useCountryName,
|
|
300
|
+
Qe as useCountryPhoneCode,
|
|
301
|
+
he as useSearchBarFilter
|
|
298
302
|
};
|
|
299
303
|
//# 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\n v-if=\"!disableTypography\"\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.BODY\"\n >\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\n v-if=\"!disableTypography\"\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.BODY\"\n >\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 { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography/typography.types';\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\n v-if=\"!disableTypography\"\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.BODY\"\n >\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\n v-if=\"!disableTypography\"\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.BODY\"\n >\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 { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography/typography.types';\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;;;;;;;;;;;;;;;;;;;;;;iBCcIC,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.835d9b52.js";
|
|
4
4
|
import { _ as r } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
5
|
-
import "./assets/
|
|
5
|
+
import "./assets/index18.css";
|
|
6
6
|
let c = 0;
|
|
7
7
|
const P = {
|
|
8
8
|
beforeCreate() {
|