@adyen/bento-vue2 1.77.0 → 1.78.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/index.d.ts +137 -98
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-group.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/index.css +1 -0
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/checkbox-group.HqNbZx2y.js +141 -0
- package/dist/chunks/checkbox-group.HqNbZx2y.js.map +1 -0
- package/dist/chunks/{checkbox.itbBlXev.js → checkbox.CqF5Dank.js} +18 -18
- package/dist/chunks/{checkbox.itbBlXev.js.map → checkbox.CqF5Dank.js.map} +1 -1
- package/dist/chunks/{data-grid.B-kBw540.js → data-grid.BhwTkhfk.js} +508 -503
- package/dist/chunks/data-grid.BhwTkhfk.js.map +1 -0
- package/dist/chunks/date-range-picker.CmKA76Yu.js +898 -0
- package/dist/chunks/date-range-picker.CmKA76Yu.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js +5 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -0
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{filter-bar.BLnSnOlj.js → filter-bar.Bj4LgjzJ.js} +5 -5
- package/dist/chunks/filter-bar.Bj4LgjzJ.js.map +1 -0
- package/dist/chunks/{header-with-views.C6Y7mAkq.js → header-with-views.D6JUlnEf.js} +2 -2
- package/dist/chunks/{header-with-views.C6Y7mAkq.js.map → header-with-views.D6JUlnEf.js.map} +1 -1
- package/dist/chunks/link.D8qpqg3W.js.map +1 -1
- package/dist/chunks/{radio-group.B8ukv-pw.js → radio-group.0JNwgkZa.js} +64 -63
- package/dist/chunks/radio-group.0JNwgkZa.js.map +1 -0
- package/dist/chunks/{rich-text-editor.DzH-Z5oi.js → rich-text-editor.NFLhgVJo.js} +2 -2
- package/dist/chunks/{rich-text-editor.DzH-Z5oi.js.map → rich-text-editor.NFLhgVJo.js.map} +1 -1
- package/dist/chunks/{selection-card-group.D4rcUyvV.js → selection-card-group.u-2Y_9o2.js} +97 -94
- package/dist/chunks/{selection-card-group.D4rcUyvV.js.map → selection-card-group.u-2Y_9o2.js.map} +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-range-picker.js +5 -4
- package/dist/date-range-picker.js.map +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/index.js +382 -357
- package/dist/index.js.map +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/styles/bento-dark.css +5 -0
- package/dist/styles/bento-light.css +5 -0
- package/dist/styles/bento.css +5 -0
- package/dist/styles/legacy.css +5 -0
- package/dist/styles/styleguide.css +5 -0
- package/dist/web-types.json +44 -16
- package/package.json +6 -6
- package/dist/chunks/checkbox-group.C3RH5Gcg.js +0 -152
- package/dist/chunks/checkbox-group.C3RH5Gcg.js.map +0 -1
- package/dist/chunks/data-grid.B-kBw540.js.map +0 -1
- package/dist/chunks/date-range-picker.BtPxkPN0.js +0 -942
- package/dist/chunks/date-range-picker.BtPxkPN0.js.map +0 -1
- package/dist/chunks/filter-bar.BLnSnOlj.js.map +0 -1
- package/dist/chunks/radio-group.B8ukv-pw.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,208 +1,232 @@
|
|
|
1
1
|
import "./chunks/index.Cl4_42j5.js";
|
|
2
|
-
import { c as
|
|
3
|
-
import { u as
|
|
4
|
-
import { p as
|
|
5
|
-
import { B as
|
|
6
|
-
import { a as
|
|
7
|
-
import { B as
|
|
8
|
-
import { B as
|
|
9
|
-
import { B as
|
|
10
|
-
import { B as
|
|
11
|
-
import { B as
|
|
12
|
-
import { g as
|
|
13
|
-
import { c as
|
|
14
|
-
import { B as
|
|
15
|
-
import { B as
|
|
16
|
-
import { B as
|
|
17
|
-
import { B as
|
|
18
|
-
import { B as
|
|
19
|
-
import { B as
|
|
20
|
-
import { B as
|
|
21
|
-
import { B as
|
|
22
|
-
import {
|
|
23
|
-
import { c as
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { B as
|
|
27
|
-
import { B as
|
|
28
|
-
import { B as
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { B as
|
|
35
|
-
import { B as
|
|
36
|
-
import {
|
|
37
|
-
import { i as
|
|
38
|
-
import { B as
|
|
39
|
-
import { B as
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import { B as
|
|
43
|
-
import { B as
|
|
44
|
-
import { B as No } from "./chunks/
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import { B as
|
|
48
|
-
import { B as
|
|
49
|
-
import { B as
|
|
50
|
-
import { B as
|
|
51
|
-
import { B as
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import { B as
|
|
59
|
-
import { B as
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import { B as
|
|
64
|
-
import {
|
|
65
|
-
import { a as Wa,
|
|
66
|
-
import {
|
|
67
|
-
import { B as
|
|
68
|
-
import {
|
|
69
|
-
import { t as
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import { d as
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import {
|
|
87
|
-
import { B as
|
|
88
|
-
import {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
2
|
+
import { c as L, t as P } from "./chunks/use-bento-toast-controller.BKHU1qBv.js";
|
|
3
|
+
import { u as ae } from "./chunks/use-bento-toast-controller.BKHU1qBv.js";
|
|
4
|
+
import { p as N, d as T } from "./chunks/typography.hlOAxsEn.js";
|
|
5
|
+
import { B as re, c as se, b as ie, a as Be } from "./chunks/typography.hlOAxsEn.js";
|
|
6
|
+
import { a as ue, b as pe } from "./chunks/accordion-item.nQhXD2tV.js";
|
|
7
|
+
import { B as ce } from "./chunks/action-bar.MXZTIUNk.js";
|
|
8
|
+
import { B as fe, c as ge, b as ye, a as xe } from "./chunks/alert.SZPP58tl.js";
|
|
9
|
+
import { B as he } from "./chunks/avatar.CeDqq2Z-.js";
|
|
10
|
+
import { B as be, b as ve, a as Ee } from "./chunks/button.CS_kdxYh.js";
|
|
11
|
+
import { B as Ce } from "./chunks/dashed-underline.K-l-7bDq.js";
|
|
12
|
+
import { g as Oe, d as Le, a as Pe, b as Ne, f as Fe, e as Ve, c as Ge, B as we } from "./chunks/data-grid.BhwTkhfk.js";
|
|
13
|
+
import { c as ke, B as Me, a as je } from "./chunks/card.VOCKI7Ad.js";
|
|
14
|
+
import { B as _e } from "./chunks/date-picker.CKaQJcPa.js";
|
|
15
|
+
import { B as ze } from "./chunks/date-picker.types.Ckt7zxGy.js";
|
|
16
|
+
import { B as Ke } from "./chunks/date-range-picker.CmKA76Yu.js";
|
|
17
|
+
import { B as qe } from "./chunks/date-range-picker.types.Ckt7zxGy.js";
|
|
18
|
+
import { B as We, u as Ze } from "./chunks/dropdown.-3x2IBDg.js";
|
|
19
|
+
import { B as Qe } from "./chunks/dropdown-default-textbox.BCOVaw-a.js";
|
|
20
|
+
import { B as et, a as tt } from "./chunks/checkbox.CqF5Dank.js";
|
|
21
|
+
import { B as at } from "./chunks/chip.fqEIkR-s.js";
|
|
22
|
+
import { B as rt } from "./chunks/click-outside.C1Ud8AA2.js";
|
|
23
|
+
import { c as it, b as Bt, a as mt, B as ut } from "./chunks/code-snippet.BEbA1bIn.js";
|
|
24
|
+
import { c as lt } from "./chunks/country.CGn5WjFx.js";
|
|
25
|
+
import { a as dt, B as ft, u as gt } from "./chunks/country.types.C0Q_hhgJ.js";
|
|
26
|
+
import { c as xt, B as St, u as ht } from "./chunks/currency.Cwhzzxw2.js";
|
|
27
|
+
import { B as bt, a as vt } from "./chunks/date.C1z2TXzM.js";
|
|
28
|
+
import { B as Dt } from "./chunks/divider.CFbtmKeQ.js";
|
|
29
|
+
import { B as It, b as Ot, c as Lt, a as Pt } from "./chunks/empty-state.BsdRxzS2.js";
|
|
30
|
+
import { f as Ft } from "./chunks/file-uploader.BkTtqgvQ.js";
|
|
31
|
+
import { a as Gt, B as wt, c as At, b as kt, d as Mt } from "./chunks/filter-bar.Bj4LgjzJ.js";
|
|
32
|
+
import { f as Rt, a as _t, c as Ht, b as zt } from "./chunks/form-layout-title.DoF6ovPB.js";
|
|
33
|
+
import { h as Kt } from "./chunks/header-with-views.D6JUlnEf.js";
|
|
34
|
+
import { B as qt, a as Jt, b as Wt } from "./chunks/image.C2D2hKat.js";
|
|
35
|
+
import { B as $t } from "./chunks/info-icon.Bhka3oGh.js";
|
|
36
|
+
import { B as Xt, b as eo, e as to, c as oo, d as ao, a as no } from "./chunks/input-field.CwKD3p3q.js";
|
|
37
|
+
import { i as so, m as io, r as Bo, b as mo, c as uo, a as po } from "./chunks/input-field-password.sthICA2L.js";
|
|
38
|
+
import { i as co, B as fo } from "./chunks/input-field-phone-number.BjinuvOl.js";
|
|
39
|
+
import { B as yo } from "./chunks/inspector.pmpheRch.js";
|
|
40
|
+
import { B as So } from "./chunks/inspector.types.DyHwE18g.js";
|
|
41
|
+
import { l as To, a as bo } from "./chunks/layout-row.BP3lZAOh.js";
|
|
42
|
+
import { B as Eo, a as Do } from "./chunks/loading-indicator.PxbRzshH.js";
|
|
43
|
+
import { B as Io, a as Oo } from "./chunks/link.D8qpqg3W.js";
|
|
44
|
+
import { B as Po, a as No, b as Fo, f as Vo, g as Go, h as wo, c as Ao, u as ko } from "./chunks/button-actions.B81vY51z.js";
|
|
45
|
+
import { B as jo } from "./chunks/modal.Bp5twyjz.js";
|
|
46
|
+
import { c as _o, e as Ho, f as zo, g as Uo, d as Ko, b as Yo, B as qo, a as Jo } from "./chunks/base-modal.BMdlCSd0.js";
|
|
47
|
+
import { m as Zo, B as $o } from "./chunks/modal-fullscreen.BSKm6yn_.js";
|
|
48
|
+
import { B as Xo } from "./chunks/header.DoWKsA15.js";
|
|
49
|
+
import { B as ta } from "./chunks/pagination.BzyyZJy6.js";
|
|
50
|
+
import { B as aa } from "./chunks/payment-method.CcASYR3B.js";
|
|
51
|
+
import { B as ra } from "./chunks/payment-method.types.BqtH7RM2.js";
|
|
52
|
+
import { B as ia } from "./chunks/popover.types.DK6opPkz.js";
|
|
53
|
+
import { p as ma, B as ua, a as pa } from "./chunks/promo-banner.DikQcQU2.js";
|
|
54
|
+
import { b as ca, B as da, a as fa } from "./chunks/radio-group.0JNwgkZa.js";
|
|
55
|
+
import { r as ya } from "./chunks/rich-text-editor.NFLhgVJo.js";
|
|
56
|
+
import { B as Sa, b as ha, a as Ta } from "./chunks/search-bar.CgzPXP8r.js";
|
|
57
|
+
import { s as va } from "./chunks/secondary-nav.3eZKyb8K.js";
|
|
58
|
+
import { B as Da, s as Ca, a as Ia } from "./chunks/selection-card-group.u-2Y_9o2.js";
|
|
59
|
+
import { B as La } from "./chunks/segmented-control.Cma_nu0G.js";
|
|
60
|
+
import { B as Na } from "./chunks/segmented-control.types.BHRLV8KU.js";
|
|
61
|
+
import { a as Va, B as Ga, s as wa } from "./chunks/sidepanel.A9yG4FP_.js";
|
|
62
|
+
import { s as ka, B as Ma } from "./chunks/status.types.BpMK-6IT.js";
|
|
63
|
+
import { a as Ra, s as _a, B as Ha, b as za } from "./chunks/step.TzzZSA9f.js";
|
|
64
|
+
import { B as Ka, a as Ya } from "./chunks/structured-list-item.CMsVwwA6.js";
|
|
65
|
+
import { s as Ja, a as Wa, e as Za, b as $a, c as Qa, B as Xa, d as en, f as tn } from "./chunks/summary-grid.types.CaYrtyVO.js";
|
|
66
|
+
import { a as an, B as nn } from "./chunks/tab.CTui3j3e.js";
|
|
67
|
+
import { B as sn, a as Bn } from "./chunks/tag.BltIbSh3.js";
|
|
68
|
+
import { B as un } from "./chunks/textarea.h-WF62HP.js";
|
|
69
|
+
import { t as ln, b as cn, a as dn, c as fn, B as gn, d as yn } from "./chunks/timeline-item.BLhS7uNF.js";
|
|
70
|
+
import { t as Sn } from "./chunks/toast.B4J4V6n-.js";
|
|
71
|
+
import { B as Tn, b as bn, a as vn } from "./chunks/toggle.D2wmNu7m.js";
|
|
72
|
+
import { t as Dn } from "./chunks/tutorial.B32GMtIj.js";
|
|
73
|
+
import { a as In, d as On } from "./chunks/dashboard-section.D1l7wDX3.js";
|
|
74
|
+
import { d as Pn } from "./chunks/data-grid-template.DGUDqzjj.js";
|
|
75
|
+
import { a as Fn } from "./chunks/ai-button.DBwtNkyS.js";
|
|
76
|
+
import { B as Gn, a as wn, b as An } from "./chunks/button-actions.types.BptAXjD8.js";
|
|
77
|
+
import { C as Mn, a as jn, C as Rn, a as _n } from "./chunks/calendar.Fm_dfQC5.js";
|
|
78
|
+
import { a as zn, B as Un, a as Kn, B as Yn } from "./chunks/use-cached-selected-values.BZd3CTeP.js";
|
|
79
|
+
import { d as Jn, a as Wn, b as Zn, c as $n, e as Qn } from "./chunks/dropdown-tag.BXMgDH3v.js";
|
|
80
|
+
import { C as er } from "./chunks/minus-small.DJacLGTw.js";
|
|
81
|
+
import { c as or, B as ar } from "./chunks/checkbox-group.HqNbZx2y.js";
|
|
82
|
+
import { u as rr, a as sr } from "./chunks/use-country-phon-code.Bui3zD6W.js";
|
|
83
|
+
import { R as Br } from "./chunks/radio-input.kzb4gxLW.js";
|
|
84
|
+
import { ref as f, onMounted as F, watch as V, computed as g, shallowRef as G, getCurrentInstance as w } from "vue";
|
|
85
|
+
import * as u from "zod";
|
|
86
|
+
import { D as ur } from "./chunks/date-format.B8RU7D42.js";
|
|
87
|
+
import { a as lr, B as cr } from "./chunks/keyboard-navigation.pB8weElW.js";
|
|
88
|
+
import { B as fr } from "./chunks/directive.Cbdox5VL.js";
|
|
89
|
+
import { b as yr, c as xr, d as Sr } from "./chunks/tooltip.D3SDcRef.js";
|
|
90
|
+
import "./assets/index.css";
|
|
91
|
+
const D = (e) => e === null || typeof e != "object" ? !1 : Object.prototype.toString.call(e) === "[object Object]", C = (e) => Array.isArray(e), b = (e) => C(e) ? e.length === 0 || e.every((t) => t === "") : !e, y = (e, t) => JSON.stringify(e) === JSON.stringify(t), d = (e) => D(e) || C(e) ? JSON.parse(JSON.stringify(e)) : e, A = (e) => D(e) ? Object.fromEntries(Object.keys(e).map((t) => [t, void 0])) : void 0;
|
|
92
|
+
function Y(e, t) {
|
|
93
|
+
const o = f(), a = f();
|
|
94
|
+
F(() => {
|
|
95
|
+
e.value != null && (a.value = A(e.value));
|
|
96
|
+
}), V(
|
|
95
97
|
() => e.value,
|
|
96
98
|
(r) => {
|
|
97
|
-
o.value =
|
|
99
|
+
o.value = d(r);
|
|
98
100
|
},
|
|
99
101
|
{ immediate: !0 }
|
|
100
102
|
);
|
|
101
|
-
const s =
|
|
102
|
-
() =>
|
|
103
|
-
),
|
|
103
|
+
const s = g(
|
|
104
|
+
() => b(e.value) || y(e.value, a.value)
|
|
105
|
+
), l = g(
|
|
104
106
|
() => t.value != null ? y(t.value, e.value) : s.value
|
|
105
|
-
),
|
|
106
|
-
function
|
|
107
|
-
o.value =
|
|
108
|
-
}
|
|
109
|
-
function u(r) {
|
|
110
|
-
o.value = p(t.value), r && r(o.value);
|
|
107
|
+
), c = g(() => y(o.value, e.value) || b(o.value) && s.value);
|
|
108
|
+
function B(r) {
|
|
109
|
+
o.value = d(a.value), r && r(o.value);
|
|
111
110
|
}
|
|
112
111
|
function i(r) {
|
|
113
|
-
o.value =
|
|
112
|
+
o.value = d(t.value), r && r(o.value);
|
|
113
|
+
}
|
|
114
|
+
function m(r) {
|
|
115
|
+
o.value = d(e.value), r && r(o.value);
|
|
114
116
|
}
|
|
115
117
|
return {
|
|
116
118
|
// Values
|
|
117
119
|
internalFilterValue: o,
|
|
118
|
-
isSecondaryButtonDisabled:
|
|
119
|
-
isApplyButtonDisabled:
|
|
120
|
+
isSecondaryButtonDisabled: l,
|
|
121
|
+
isApplyButtonDisabled: c,
|
|
120
122
|
// Methods
|
|
121
|
-
clearFilter:
|
|
122
|
-
resetFilter:
|
|
123
|
-
openFilter:
|
|
123
|
+
clearFilter: B,
|
|
124
|
+
resetFilter: i,
|
|
125
|
+
openFilter: m
|
|
124
126
|
};
|
|
125
127
|
}
|
|
126
|
-
function
|
|
128
|
+
function q(e) {
|
|
127
129
|
return e;
|
|
128
130
|
}
|
|
129
131
|
function S(e) {
|
|
130
|
-
if (
|
|
132
|
+
if (u && e instanceof u.ZodObject)
|
|
131
133
|
return Object.fromEntries(
|
|
132
|
-
Object.entries(e.shape).map(([t, o]) =>
|
|
134
|
+
Object.entries(e.shape).map(([t, o]) => u && o instanceof u.ZodDefault ? [t, o._def.defaultValue()] : u && o instanceof u.ZodObject ? [t, S(o)] : [t, void 0])
|
|
133
135
|
);
|
|
134
136
|
}
|
|
135
|
-
function
|
|
137
|
+
function k(e) {
|
|
136
138
|
return e.path.join(".");
|
|
137
139
|
}
|
|
138
|
-
function
|
|
140
|
+
function J({
|
|
139
141
|
validationSchema: e
|
|
140
142
|
}) {
|
|
141
|
-
const t =
|
|
143
|
+
const t = G({}), o = f({}), a = f(S(e)), s = () => {
|
|
142
144
|
t.value = {}, o.value = {};
|
|
143
|
-
},
|
|
144
|
-
s(),
|
|
145
|
+
}, l = () => {
|
|
146
|
+
s(), a.value = S(e);
|
|
145
147
|
};
|
|
146
148
|
return {
|
|
147
149
|
// Values
|
|
148
150
|
errorBag: o,
|
|
149
151
|
errors: t,
|
|
150
|
-
values:
|
|
152
|
+
values: a,
|
|
151
153
|
// Methods
|
|
152
|
-
handleReset: () =>
|
|
153
|
-
submitForm: (
|
|
154
|
+
handleReset: () => l(),
|
|
155
|
+
submitForm: (B) => () => {
|
|
154
156
|
s();
|
|
155
|
-
const
|
|
156
|
-
|
|
157
|
-
const r =
|
|
158
|
-
t.value[r] || (t.value[r] =
|
|
157
|
+
const i = e.safeParse(a.value);
|
|
158
|
+
i.success ? B(a.value) : i.error.issues.forEach((m) => {
|
|
159
|
+
const r = k(m);
|
|
160
|
+
t.value[r] || (t.value[r] = m.message), o.value[r] ? o.value[r].push(m.message) : o.value[r] = [m.message];
|
|
159
161
|
});
|
|
160
162
|
}
|
|
161
163
|
};
|
|
162
164
|
}
|
|
163
|
-
const
|
|
164
|
-
function
|
|
165
|
+
const I = Symbol("use-bento-theme");
|
|
166
|
+
function W() {
|
|
165
167
|
var t;
|
|
166
|
-
const e = (t =
|
|
167
|
-
return e ? { ...e } : (
|
|
168
|
+
const e = (t = w()) == null ? void 0 : t.proxy[I];
|
|
169
|
+
return e ? { ...e } : (N("useBentoTheme does not work without Vue.use(BentoPlugin)"), {
|
|
168
170
|
getTheme: () => {
|
|
169
171
|
},
|
|
170
172
|
setTheme: () => {
|
|
171
173
|
}
|
|
172
174
|
});
|
|
173
175
|
}
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
+
const M = ({ modifiers: e, value: t }) => Object.keys(e)[0] || (t == null ? void 0 : t.size) || "small", h = (e, t, o) => {
|
|
177
|
+
var c, B;
|
|
178
|
+
const a = ((c = t.value) == null ? void 0 : c.extraPadding) ?? !1, s = ((B = t.value) == null ? void 0 : B.rounded) ?? !1, l = M(t);
|
|
179
|
+
e.classList.toggle("b-highlight", o), e.classList.toggle("b-highlight--extra-padding", o && a), e.classList.toggle("b-highlight--rounded", o && s), ["small", "medium", "large"].forEach((i) => {
|
|
180
|
+
e.classList.toggle(`b-highlight--${i}`, o && i === l);
|
|
181
|
+
});
|
|
182
|
+
}, v = (e, t) => {
|
|
183
|
+
h(e, t, t.value !== !1);
|
|
184
|
+
}, x = (e, t) => {
|
|
185
|
+
h(e, t, t.value !== !1);
|
|
186
|
+
}, E = (e, t) => {
|
|
187
|
+
h(e, t, !1);
|
|
188
|
+
}, Z = {
|
|
189
|
+
// Vue 2
|
|
190
|
+
bind: v,
|
|
191
|
+
update: x,
|
|
192
|
+
unbind: E,
|
|
193
|
+
// Vue 3
|
|
194
|
+
beforeMount: v,
|
|
195
|
+
mounted: x,
|
|
196
|
+
updated: x,
|
|
197
|
+
unmounted: E
|
|
198
|
+
}, j = (e) => {
|
|
199
|
+
e.prototype[P] = L();
|
|
176
200
|
};
|
|
177
|
-
var
|
|
178
|
-
const
|
|
201
|
+
var n = /* @__PURE__ */ ((e) => (e.LEGACY = "b-legacy-theme", e.STYLEGUIDE = "b-styleguide-theme", e.BENTO = "", e.BENTO_LIGHT = "b-light-theme", e.BENTO_DARK = "b-dark-theme", e.BENTO_SYSTEM = "b-system", e))(n || {});
|
|
202
|
+
const O = () => {
|
|
179
203
|
var e;
|
|
180
204
|
return ((e = document.body.className.match(/b-\w+-theme/)) == null ? void 0 : e[0]) ?? "";
|
|
181
|
-
},
|
|
182
|
-
const t =
|
|
183
|
-
|
|
184
|
-
},
|
|
205
|
+
}, R = () => window.matchMedia("(prefers-color-scheme: dark)").matches ? n.BENTO_DARK : n.BENTO_LIGHT, p = (e) => {
|
|
206
|
+
const t = O(), o = R(), a = e === n.BENTO_SYSTEM ? o : e;
|
|
207
|
+
a === n.BENTO_LIGHT || a === n.BENTO ? document.documentElement.style.colorScheme = "light" : a === n.BENTO_DARK && (document.documentElement.style.colorScheme = "dark"), t.length && t !== a && document.body.classList.remove(t), a.length && document.body.classList.add(a);
|
|
208
|
+
}, _ = (e) => {
|
|
185
209
|
const t = {
|
|
186
|
-
getTheme:
|
|
187
|
-
setTheme:
|
|
210
|
+
getTheme: O,
|
|
211
|
+
setTheme: p
|
|
188
212
|
};
|
|
189
|
-
e.prototype[
|
|
190
|
-
},
|
|
213
|
+
e.prototype[I] = t;
|
|
214
|
+
}, $ = {
|
|
191
215
|
name: "BentoVue",
|
|
192
216
|
install: async (e, {
|
|
193
|
-
theme: t =
|
|
217
|
+
theme: t = n.BENTO_LIGHT,
|
|
194
218
|
withToast: o = !1,
|
|
195
|
-
withUtilityClasses:
|
|
219
|
+
withUtilityClasses: a = !1,
|
|
196
220
|
withDesignTokensCSSInjection: s = !0
|
|
197
221
|
}) => {
|
|
198
|
-
|
|
222
|
+
_(e), o && j(e), s && (T(
|
|
199
223
|
"Using default setting withDesignTokensCSSInjection set to true in BentoVue plugin",
|
|
200
224
|
`Please disable CSS injection by setting withDesignTokensCSSInjection to false in BentoVue plugin options as highlighted here:
|
|
201
225
|
https://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import-css-variables`,
|
|
202
226
|
"2.0.0"
|
|
203
|
-
), t ===
|
|
227
|
+
), t === n.STYLEGUIDE ? await import("@adyen/bento-design-tokens/dist/css/bento/variables-styleguide.css") : await import("@adyen/bento-design-tokens/dist/css/bento/variables.css"), a && await import("@adyen/bento-design-tokens/dist/css/bento/utility.css")), t === n.STYLEGUIDE ? p(n.STYLEGUIDE) : t === n.BENTO_SYSTEM ? p(n.BENTO_SYSTEM) : t === n.BENTO_DARK ? p(n.BENTO_DARK) : (t === n.BENTO && T("Using `BentoTheme.BENTO`", "Please use `BentoTheme.BENTO_LIGHT` instead", "2.0.0"), p(n.BENTO_LIGHT));
|
|
204
228
|
}
|
|
205
|
-
},
|
|
229
|
+
}, Q = Object.freeze({
|
|
206
230
|
/**
|
|
207
231
|
* Disables the filter from being interacted with.
|
|
208
232
|
*/
|
|
@@ -235,218 +259,219 @@ https://adyen-bento.netlify.app/?path=/docs/welcome-getting-started--docs#import
|
|
|
235
259
|
type: [Object, Number, Boolean, Array, String, Date],
|
|
236
260
|
default: void 0
|
|
237
261
|
}
|
|
238
|
-
}),
|
|
262
|
+
}), X = ["input", "update"];
|
|
239
263
|
export {
|
|
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
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
Do as
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
$
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
264
|
+
ue as BentoAccordion,
|
|
265
|
+
pe as BentoAccordionItem,
|
|
266
|
+
ce as BentoActionBar,
|
|
267
|
+
Fn as BentoAiButton,
|
|
268
|
+
fe as BentoAlert,
|
|
269
|
+
ge as BentoAlertEvent,
|
|
270
|
+
ye as BentoAlertTypeOption,
|
|
271
|
+
xe as BentoAlertVariant,
|
|
272
|
+
he as BentoAvatar,
|
|
273
|
+
Gt as BentoBaseFilter,
|
|
274
|
+
X as BentoBaseFilterEvents,
|
|
275
|
+
Q as BentoBaseFilterProps,
|
|
276
|
+
be as BentoButton,
|
|
277
|
+
Po as BentoButtonActions,
|
|
278
|
+
Gn as BentoButtonActionsLayout,
|
|
279
|
+
wn as BentoButtonActionsLayoutBasic,
|
|
280
|
+
An as BentoButtonActionsLayoutExtended,
|
|
281
|
+
ve as BentoButtonPropClass,
|
|
282
|
+
Ee as BentoButtonVariant,
|
|
283
|
+
ke as BentoCard,
|
|
284
|
+
Me as BentoCardBackground,
|
|
285
|
+
je as BentoCardTitleSize,
|
|
286
|
+
et as BentoCheckbox,
|
|
287
|
+
tt as BentoCheckboxEvent,
|
|
288
|
+
or as BentoCheckboxGroup,
|
|
289
|
+
ar as BentoCheckboxGroupVariant,
|
|
290
|
+
er as BentoCheckboxState,
|
|
291
|
+
at as BentoChip,
|
|
292
|
+
rt as BentoClickOutside,
|
|
293
|
+
fr as BentoClickOutsideDirective,
|
|
294
|
+
it as BentoCodeSnippet,
|
|
295
|
+
Bt as BentoCodeSnippetEvent,
|
|
296
|
+
mt as BentoCodeSnippetSupportedLanguage,
|
|
297
|
+
ut as BentoCodeSnippetVariant,
|
|
298
|
+
Oe as BentoColumnOverflow,
|
|
299
|
+
lt as BentoCountry,
|
|
300
|
+
dt as BentoCountryCode,
|
|
301
|
+
ft as BentoCountryVariant,
|
|
302
|
+
xt as BentoCurrency,
|
|
303
|
+
St as BentoCurrencyISOCode,
|
|
304
|
+
In as BentoDashboardSection,
|
|
305
|
+
On as BentoDashboardTemplate,
|
|
306
|
+
Ce as BentoDashedUnderline,
|
|
307
|
+
Le as BentoDataGrid,
|
|
308
|
+
Pe as BentoDataGridStaticIcon,
|
|
309
|
+
Ne as BentoDataGridSummaryCell,
|
|
310
|
+
Pn as BentoDataGridTemplate,
|
|
311
|
+
Fe as BentoDatagridAriaSortValue,
|
|
312
|
+
Ve as BentoDatagridEvent,
|
|
313
|
+
Ge as BentoDatagridSortDirection,
|
|
314
|
+
we as BentoDatagridStyleState,
|
|
315
|
+
bt as BentoDate,
|
|
316
|
+
vt as BentoDateFormat,
|
|
317
|
+
_e as BentoDatePicker,
|
|
318
|
+
ze as BentoDatePickerEvent,
|
|
319
|
+
Mn as BentoDatePickerFirstDayOfWeek,
|
|
320
|
+
jn as BentoDatePickerVariant,
|
|
321
|
+
Ke as BentoDateRangePicker,
|
|
322
|
+
qe as BentoDateRangePickerEvent,
|
|
323
|
+
Rn as BentoDateRangePickerFirstDayOfWeek,
|
|
324
|
+
_n as BentoDateRangePickerVariant,
|
|
325
|
+
Dt as BentoDivider,
|
|
326
|
+
We as BentoDropdown,
|
|
327
|
+
Jn as BentoDropdownAvatar,
|
|
328
|
+
Wn as BentoDropdownCountry,
|
|
329
|
+
Zn as BentoDropdownCurrency,
|
|
330
|
+
zn as BentoDropdownEvent,
|
|
331
|
+
Un as BentoDropdownLazyLoadType,
|
|
332
|
+
$n as BentoDropdownPaymentMethod,
|
|
333
|
+
Qe as BentoDropdownSize,
|
|
334
|
+
Qn as BentoDropdownTag,
|
|
335
|
+
It as BentoEmptyState,
|
|
336
|
+
Ot as BentoEmptyStateImage,
|
|
337
|
+
Lt as BentoEmptyStateImageVariant,
|
|
338
|
+
Pt as BentoEmptyStateVariant,
|
|
339
|
+
Ft as BentoFileUploader,
|
|
340
|
+
wt as BentoFilterBar,
|
|
341
|
+
At as BentoFilterBarEvent,
|
|
342
|
+
kt as BentoFilterEvent,
|
|
343
|
+
Mt as BentoFilterItemType,
|
|
344
|
+
Rt as BentoFormLayout,
|
|
345
|
+
_t as BentoFormLayoutFieldTip,
|
|
346
|
+
Ht as BentoFormLayoutGroup,
|
|
347
|
+
zt as BentoFormLayoutTitle,
|
|
348
|
+
Xo as BentoHeader,
|
|
349
|
+
Kt as BentoHeaderWithViews,
|
|
350
|
+
Z as BentoHighlightDirective,
|
|
351
|
+
qt as BentoImage,
|
|
352
|
+
Jt as BentoImageAspectRatio,
|
|
353
|
+
Wt as BentoImageObjectFit,
|
|
354
|
+
$t as BentoInfoIcon,
|
|
355
|
+
Xt as BentoInputField,
|
|
356
|
+
eo as BentoInputFieldElementPosition,
|
|
357
|
+
to as BentoInputFieldEvent,
|
|
358
|
+
so as BentoInputFieldPassword,
|
|
359
|
+
co as BentoInputFieldPhoneNumber,
|
|
360
|
+
fo as BentoInputFieldPhoneNumberCountries,
|
|
361
|
+
oo as BentoInputFieldStateClass,
|
|
362
|
+
ao as BentoInputFieldType,
|
|
363
|
+
no as BentoInputFieldVariant,
|
|
364
|
+
yo as BentoInspector,
|
|
365
|
+
So as BentoInspectorSizeOptions,
|
|
366
|
+
lr as BentoKeyboardNavigationDirective,
|
|
367
|
+
cr as BentoKeyboardNavigationKeyDownEvent,
|
|
368
|
+
To as BentoLayout,
|
|
369
|
+
bo as BentoLayoutRow,
|
|
370
|
+
Io as BentoLink,
|
|
371
|
+
Oo as BentoLinkVariant,
|
|
372
|
+
Kn as BentoListboxEvent,
|
|
373
|
+
Yn as BentoListboxLazyLoadType,
|
|
374
|
+
No as BentoLoadingButton,
|
|
375
|
+
Fo as BentoLoadingButtonState,
|
|
376
|
+
Eo as BentoLoadingIndicator,
|
|
377
|
+
Do as BentoLoadingIndicatorEvent,
|
|
378
|
+
Vo as BentoMenu,
|
|
379
|
+
Go as BentoMenuEvent,
|
|
380
|
+
jo as BentoModal,
|
|
381
|
+
_o as BentoModalColumnLayoutVariant,
|
|
382
|
+
Ho as BentoModalDialogType,
|
|
383
|
+
zo as BentoModalEvent,
|
|
384
|
+
Zo as BentoModalFullscreen,
|
|
385
|
+
$o as BentoModalFullscreenPage,
|
|
386
|
+
Uo as BentoModalPage,
|
|
387
|
+
Ko as BentoModalRole,
|
|
388
|
+
Yo as BentoModalSize,
|
|
389
|
+
qo as BentoModalVariant,
|
|
390
|
+
Jo as BentoModalVariantMapping,
|
|
391
|
+
ta as BentoPagination,
|
|
392
|
+
aa as BentoPaymentMethod,
|
|
393
|
+
ra as BentoPaymentMethodType,
|
|
394
|
+
wo as BentoPopover,
|
|
395
|
+
ia as BentoPopoverPositions,
|
|
396
|
+
ma as BentoPromoBanner,
|
|
397
|
+
ua as BentoPromoBannerColor,
|
|
398
|
+
pa as BentoPromoBannerLayout,
|
|
399
|
+
ca as BentoRadioButton,
|
|
400
|
+
Br as BentoRadioButtonStateClass,
|
|
401
|
+
da as BentoRadioGroup,
|
|
402
|
+
fa as BentoRadioGroupVariant,
|
|
403
|
+
ya as BentoRichTextEditor,
|
|
404
|
+
Sa as BentoSearchBar,
|
|
405
|
+
ha as BentoSearchBarEvent,
|
|
406
|
+
Ta as BentoSearchBarInternalEvent,
|
|
407
|
+
va as BentoSecondaryNav,
|
|
408
|
+
La as BentoSegmentedControl,
|
|
409
|
+
Na as BentoSegmentedControlEvent,
|
|
410
|
+
Da as BentoSelectionCard,
|
|
411
|
+
Ca as BentoSelectionCardGroup,
|
|
412
|
+
Ia as BentoSelectionCardState,
|
|
413
|
+
Va as BentoSidepanel,
|
|
414
|
+
Ga as BentoSidepanelEvent,
|
|
415
|
+
wa as BentoSidepanelPage,
|
|
416
|
+
ka as BentoStatus,
|
|
417
|
+
Ma as BentoStatusVariant,
|
|
418
|
+
Ra as BentoStep,
|
|
419
|
+
_a as BentoStepper,
|
|
420
|
+
Ha as BentoStepperTypeOption,
|
|
421
|
+
za as BentoStepperVariantOption,
|
|
422
|
+
Ka as BentoStructuredList,
|
|
423
|
+
Ya as BentoStructuredListItem,
|
|
424
|
+
Ja as BentoSummaryGrid,
|
|
425
|
+
Wa as BentoSummaryGridItemAmount,
|
|
426
|
+
Za as BentoSummaryGridItemCustom,
|
|
427
|
+
$a as BentoSummaryGridItemNumeric,
|
|
428
|
+
Qa as BentoSummaryGridItemPercentage,
|
|
429
|
+
Xa as BentoSummaryGridItemSize,
|
|
430
|
+
en as BentoSummaryGridItemText,
|
|
431
|
+
tn as BentoSummaryGridItemTrendDirection,
|
|
432
|
+
an as BentoTab,
|
|
433
|
+
nn as BentoTabs,
|
|
434
|
+
sn as BentoTag,
|
|
435
|
+
Bn as BentoTagVariant,
|
|
436
|
+
un as BentoTextarea,
|
|
437
|
+
n as BentoTheme,
|
|
438
|
+
ln as BentoTimeline,
|
|
439
|
+
cn as BentoTimelineGapUnit,
|
|
440
|
+
dn as BentoTimelineItem,
|
|
441
|
+
fn as BentoTimelineItemVariant,
|
|
442
|
+
gn as BentoTimelineShowMorePlacement,
|
|
443
|
+
yn as BentoTimelineStatus,
|
|
444
|
+
Sn as BentoToast,
|
|
445
|
+
Tn as BentoToggle,
|
|
446
|
+
Ao as BentoToggleButton,
|
|
447
|
+
bn as BentoToggleLabelPosition,
|
|
448
|
+
vn as BentoTogglePropClass,
|
|
449
|
+
yr as BentoTooltipDirective,
|
|
450
|
+
xr as BentoTooltipPosition,
|
|
451
|
+
Sr as BentoTooltipState,
|
|
452
|
+
Dn as BentoTutorial,
|
|
453
|
+
re as BentoTypography,
|
|
454
|
+
se as BentoTypographyElement,
|
|
455
|
+
ie as BentoTypographyModifier,
|
|
456
|
+
Be as BentoTypographyVariant,
|
|
457
|
+
ur as DateFormat,
|
|
458
|
+
$ as default,
|
|
459
|
+
io as minLength,
|
|
460
|
+
Bo as requireLowercase,
|
|
461
|
+
mo as requireNumeric,
|
|
462
|
+
uo as requireSpecialCharacter,
|
|
463
|
+
po as requireUppercase,
|
|
464
|
+
q as toTypedSchema,
|
|
465
|
+
Y as useBentoBaseFilter,
|
|
466
|
+
ht as useBentoCurrency,
|
|
467
|
+
W as useBentoTheme,
|
|
468
|
+
I as useBentoThemeKey,
|
|
469
|
+
ae as useBentoToastController,
|
|
470
|
+
ko as useClickOutside,
|
|
471
|
+
gt as useCountryCapital,
|
|
472
|
+
rr as useCountryName,
|
|
473
|
+
sr as useCountryPhoneCode,
|
|
474
|
+
J as useForm,
|
|
475
|
+
Ze as useSearchBarFilter
|
|
451
476
|
};
|
|
452
477
|
//# sourceMappingURL=index.js.map
|