@adyen/bento-vue2 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/README.md +60 -29
- 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/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +1 -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 +2 -1
- 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 +43 -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/types/utils-events.d.ts +0 -1
- 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 -0
- package/dist/assets/index41.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 +93 -84
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/arrow-left.1d5d08bd.js +26 -0
- package/dist/chunks/arrow-left.1d5d08bd.js.map +1 -0
- package/dist/chunks/{base-button.d4487ac9.js → base-button.98379576.js} +2 -2
- package/dist/chunks/{base-button.d4487ac9.js.map → base-button.98379576.js.map} +1 -1
- package/dist/chunks/{button-actions.cf73ed47.js → button-actions.bd397c79.js} +2 -2
- package/dist/chunks/{button-actions.cf73ed47.js.map → button-actions.bd397c79.js.map} +1 -1
- package/dist/chunks/{button.c27a7ce2.js → button.d0c9527d.js} +2 -2
- package/dist/chunks/{button.c27a7ce2.js.map → button.d0c9527d.js.map} +1 -1
- package/dist/chunks/{calendar.8f50a65a.js → calendar.0ae43a96.js} +6 -6
- package/dist/chunks/calendar.0ae43a96.js.map +1 -0
- package/dist/chunks/{checkbox.c06daf12.js → checkbox.f8457c93.js} +3 -3
- package/dist/chunks/{checkbox.c06daf12.js.map → checkbox.f8457c93.js.map} +1 -1
- package/dist/chunks/controls-group.b827382b.js +87 -0
- package/dist/chunks/controls-group.b827382b.js.map +1 -0
- package/dist/chunks/{copy.b62beae5.js → copy.5a4cbd4d.js} +3 -3
- package/dist/chunks/{copy.b62beae5.js.map → copy.5a4cbd4d.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.a5eca928.js → dropdown-default-textbox.819e43f7.js} +32 -30
- package/dist/chunks/dropdown-default-textbox.819e43f7.js.map +1 -0
- package/dist/chunks/{dropdown.368486b1.js → dropdown.c05678d0.js} +142 -139
- package/dist/chunks/dropdown.c05678d0.js.map +1 -0
- package/dist/chunks/{error-message.a581a172.js → error-message.0433b539.js} +2 -2
- package/dist/chunks/{error-message.a581a172.js.map → error-message.0433b539.js.map} +1 -1
- package/dist/chunks/footer-actions.67642347.js +98 -0
- package/dist/chunks/footer-actions.67642347.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.3b6fc08a.js → index.0cf00b47.js} +6 -6
- package/dist/chunks/{index.3b6fc08a.js.map → index.0cf00b47.js.map} +1 -1
- package/dist/chunks/{index.f0d99471.js → index.10aaf539.js} +198 -192
- package/dist/chunks/{index.f0d99471.js.map → index.10aaf539.js.map} +1 -1
- package/dist/chunks/{index.ad39b625.js → index.133e4da0.js} +2 -2
- package/dist/chunks/{index.ad39b625.js.map → index.133e4da0.js.map} +1 -1
- package/dist/chunks/{index.175f9e2d.js → index.56858f4e.js} +15 -14
- package/dist/chunks/index.56858f4e.js.map +1 -0
- package/dist/chunks/{index.d07f9800.js → index.73d50fa6.js} +2 -2
- package/dist/chunks/{index.d07f9800.js.map → index.73d50fa6.js.map} +1 -1
- package/dist/chunks/{index.3dfea3bd.js → index.f0f8ed98.js} +3 -3
- package/dist/chunks/{index.3dfea3bd.js.map → index.f0f8ed98.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.c7e9a228.js → listbox-option-tag.8d6cccac.js} +3 -3
- package/dist/chunks/{listbox-option-tag.c7e9a228.js.map → listbox-option-tag.8d6cccac.js.map} +1 -1
- package/dist/chunks/{listbox.f51e92cd.js → listbox.116ed0c1.js} +177 -177
- package/dist/chunks/listbox.116ed0c1.js.map +1 -0
- package/dist/chunks/{loading-button.6d34f66f.js → loading-button.1c201f87.js} +10 -10
- package/dist/chunks/loading-button.1c201f87.js.map +1 -0
- package/dist/chunks/{tooltip.9af34fba.js → tooltip.2aff4fa6.js} +2 -2
- package/dist/chunks/tooltip.2aff4fa6.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 +149 -174
- package/dist/country.js.map +1 -1
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +482 -499
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +80 -74
- 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 +72 -67
- package/dist/dropdown.js.map +1 -1
- package/dist/filter-bar.js +268 -265
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +174 -0
- package/dist/form-layout.js.map +1 -0
- package/dist/header.js +3 -3
- package/dist/index.js +164 -155
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +69 -67
- 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 +203 -324
- 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 +97 -99
- 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 +218 -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 +3 -3
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +84 -82
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +23 -23
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +2 -2
- package/dist/toggle.js +2 -2
- package/dist/typography.js +1 -1
- package/dist/web-types.json +455 -73
- package/package.json +10 -8
- package/dist/@types/packages/vue2/src/components/country/composables/useCountryFlag.d.ts +0 -2
- package/dist/chunks/calendar.8f50a65a.js.map +0 -1
- package/dist/chunks/controls-group.9d58a091.js +0 -64
- package/dist/chunks/controls-group.9d58a091.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.a5eca928.js.map +0 -1
- package/dist/chunks/dropdown.368486b1.js.map +0 -1
- package/dist/chunks/index.175f9e2d.js.map +0 -1
- package/dist/chunks/listbox.f51e92cd.js.map +0 -1
- package/dist/chunks/loading-button.6d34f66f.js.map +0 -1
- package/dist/chunks/tooltip.9af34fba.js.map +0 -1
package/dist/focus-trap.js
CHANGED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { defineComponent as _, useSlots as f, computed as a, provide as g, toRef as p, onMounted as B, ref as L } from "vue";
|
|
2
|
+
import { BentoAlert as m, BentoAlertTypeOption as y, BentoAlertVariant as h } from "./alert.js";
|
|
3
|
+
import { u as d } from "./chunks/use-has-slot.068222e6.js";
|
|
4
|
+
import { F as T } from "./chunks/form-layout.types.a7a1438d.js";
|
|
5
|
+
import { n as l } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
6
|
+
import { B as u, a as i, b } from "./chunks/index.56858f4e.js";
|
|
7
|
+
import "./assets/index12.css";
|
|
8
|
+
const C = {}, $ = /* @__PURE__ */ _({
|
|
9
|
+
...C,
|
|
10
|
+
__name: "form-layout",
|
|
11
|
+
props: {
|
|
12
|
+
/**
|
|
13
|
+
* Renders the form layout as an HTML `form`
|
|
14
|
+
*/
|
|
15
|
+
form: { type: Boolean, default: !1 },
|
|
16
|
+
/**
|
|
17
|
+
* Sets the state of the form and its fields to
|
|
18
|
+
* a read only status.
|
|
19
|
+
*/
|
|
20
|
+
loading: { type: Boolean, default: !1 }
|
|
21
|
+
},
|
|
22
|
+
setup(s) {
|
|
23
|
+
const t = s, e = f(), o = d(e), r = a(() => t.form ? "form" : "div"), n = a(() => o("actions-left") || o("actions-right"));
|
|
24
|
+
return g(T, p(t, "loading")), { __sfc: !0, slots: e, hasSlot: o, props: t, formLayoutElement: r, hasActions: n, BentoAlert: m, BentoAlertTypeOption: y };
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
var A = function() {
|
|
28
|
+
var t = this, e = t._self._c, o = t._self._setupProxy;
|
|
29
|
+
return e(o.formLayoutElement, { tag: "component", staticClass: "b-form-layout", attrs: { role: "form" } }, [o.hasSlot("error-message") ? e(o.BentoAlert, { staticClass: "b-form-layout__error-message", attrs: { type: o.BentoAlertTypeOption.CRITICAL }, scopedSlots: t._u([{ key: "description", fn: function() {
|
|
30
|
+
return [t._t("error-message")];
|
|
31
|
+
}, proxy: !0 }], null, !0) }) : t._e(), t._t("default"), o.hasActions ? e("div", { staticClass: "b-form-layout__actions-container" }, [e("div", { staticClass: "b-form-layout__actions" }, [t._t("actions-left")], 2), e("div", { staticClass: "b-form-layout__actions" }, [t._t("actions-right")], 2)]) : t._e()], 2);
|
|
32
|
+
}, x = [], F = /* @__PURE__ */ l(
|
|
33
|
+
$,
|
|
34
|
+
A,
|
|
35
|
+
x,
|
|
36
|
+
!1,
|
|
37
|
+
null,
|
|
38
|
+
"27615954",
|
|
39
|
+
null,
|
|
40
|
+
null
|
|
41
|
+
);
|
|
42
|
+
const Q = F.exports, S = {}, I = /* @__PURE__ */ _({
|
|
43
|
+
...S,
|
|
44
|
+
__name: "form-layout-field-tip",
|
|
45
|
+
setup(s) {
|
|
46
|
+
return { __sfc: !0, BentoAlert: m, BentoAlertTypeOption: y, BentoAlertVariant: h };
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
var E = function() {
|
|
50
|
+
var t = this, e = t._self._c, o = t._self._setupProxy;
|
|
51
|
+
return e("div", { staticClass: "b-form-layout-field-tip" }, [t._t("default"), e(o.BentoAlert, { attrs: { variant: o.BentoAlertVariant.TIP, type: o.BentoAlertTypeOption.WARNING }, scopedSlots: t._u([{ key: "description", fn: function() {
|
|
52
|
+
return [t._t("message")];
|
|
53
|
+
}, proxy: !0 }], null, !0) })], 2);
|
|
54
|
+
}, O = [], G = /* @__PURE__ */ l(
|
|
55
|
+
I,
|
|
56
|
+
E,
|
|
57
|
+
O,
|
|
58
|
+
!1,
|
|
59
|
+
null,
|
|
60
|
+
"4e29ff60",
|
|
61
|
+
null,
|
|
62
|
+
null
|
|
63
|
+
);
|
|
64
|
+
const X = G.exports, N = (s, t) => {
|
|
65
|
+
const e = (r) => {
|
|
66
|
+
var n;
|
|
67
|
+
return (n = r.split) == null ? void 0 : n.call(r, "-").map((c) => parseInt(c, 10));
|
|
68
|
+
}, o = a(() => e(s.value));
|
|
69
|
+
B(() => {
|
|
70
|
+
const r = t.value.classList[0];
|
|
71
|
+
t.value.querySelectorAll(`.${r} > *`).forEach((c, v) => {
|
|
72
|
+
c.classList.add(`${r}--${o.value[v] || "100"}`);
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}, P = {}, R = /* @__PURE__ */ _({
|
|
76
|
+
...P,
|
|
77
|
+
__name: "form-layout-group",
|
|
78
|
+
props: {
|
|
79
|
+
/**
|
|
80
|
+
* The layout of the pair group of components.
|
|
81
|
+
* This will render the components within the width of the proportions.
|
|
82
|
+
* Only two colums are available.
|
|
83
|
+
*
|
|
84
|
+
* If only one value is entered, then it will assume there's only one child in the group.
|
|
85
|
+
* If two values are entered, the first value will be use for the first child and the second
|
|
86
|
+
* value for the second child.
|
|
87
|
+
*
|
|
88
|
+
* If the value entered is not listed in the example
|
|
89
|
+
* list below it will use 100% by default.
|
|
90
|
+
* @example
|
|
91
|
+
* '50-50'
|
|
92
|
+
* '25-75'
|
|
93
|
+
* '75-25'
|
|
94
|
+
* '33-66'
|
|
95
|
+
* '66-33'
|
|
96
|
+
* '25'
|
|
97
|
+
* '33'
|
|
98
|
+
* '50'
|
|
99
|
+
* '100'
|
|
100
|
+
*/
|
|
101
|
+
layout: {
|
|
102
|
+
type: String,
|
|
103
|
+
default: "100"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
setup(s) {
|
|
107
|
+
const t = s, e = L(null);
|
|
108
|
+
return N(p(t, "layout"), e), { __sfc: !0, props: t, formLayoutGroup: e };
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
var V = function() {
|
|
112
|
+
var t = this, e = t._self._c;
|
|
113
|
+
return t._self._setupProxy, e("div", { ref: "formLayoutGroup", staticClass: "b-form-layout-group" }, [t._t("default")], 2);
|
|
114
|
+
}, k = [], q = /* @__PURE__ */ l(
|
|
115
|
+
R,
|
|
116
|
+
V,
|
|
117
|
+
k,
|
|
118
|
+
!1,
|
|
119
|
+
null,
|
|
120
|
+
"4153ff3c",
|
|
121
|
+
null,
|
|
122
|
+
null
|
|
123
|
+
);
|
|
124
|
+
const Z = q.exports, M = {}, Y = /* @__PURE__ */ _({
|
|
125
|
+
...M,
|
|
126
|
+
__name: "form-layout-title",
|
|
127
|
+
props: {
|
|
128
|
+
/**
|
|
129
|
+
* Defines if the Form Layout title is
|
|
130
|
+
* a "section" or a "subsection".
|
|
131
|
+
* Default is "section" (false). Turn into "true" for "subsection"
|
|
132
|
+
*/
|
|
133
|
+
subsection: {
|
|
134
|
+
type: Boolean,
|
|
135
|
+
default: !1
|
|
136
|
+
},
|
|
137
|
+
/**
|
|
138
|
+
* Sets the HTML DOM element.
|
|
139
|
+
* @values h1, h2, h3, h4, h5, h6, div, p, span
|
|
140
|
+
*/
|
|
141
|
+
el: {
|
|
142
|
+
type: u.props.el.type,
|
|
143
|
+
required: !0,
|
|
144
|
+
validator: (s) => Object.values(i).includes(s)
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
setup(s) {
|
|
148
|
+
const t = s, e = f(), o = a(() => !t.subsection), r = d(e), n = a(() => ({
|
|
149
|
+
"b-form-layout-title--subsection": t.subsection
|
|
150
|
+
}));
|
|
151
|
+
return { __sfc: !0, slots: e, props: t, isSection: o, hasSlot: r, conditionalClasses: n, BentoTypography: u, BentoTypographyElement: i, BentoTypographyVariant: b };
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
var j = function() {
|
|
155
|
+
var t = this, e = t._self._c, o = t._self._setupProxy;
|
|
156
|
+
return e("div", { staticClass: "b-form-layout-title", class: o.conditionalClasses }, [e(o.BentoTypography, { attrs: { el: t.el, variant: o.BentoTypographyVariant.TITLE, medium: o.isSection } }, [t._t("default")], 2), o.hasSlot("description") ? e(o.BentoTypography, { staticClass: "b-form-layout-title__description", attrs: { el: o.BentoTypographyElement.SPAN, wide: "" } }, [t._t("description")], 2) : t._e()], 1);
|
|
157
|
+
}, w = [], z = /* @__PURE__ */ l(
|
|
158
|
+
Y,
|
|
159
|
+
j,
|
|
160
|
+
w,
|
|
161
|
+
!1,
|
|
162
|
+
null,
|
|
163
|
+
"3a056bf8",
|
|
164
|
+
null,
|
|
165
|
+
null
|
|
166
|
+
);
|
|
167
|
+
const tt = z.exports;
|
|
168
|
+
export {
|
|
169
|
+
Q as BentoFormLayout,
|
|
170
|
+
X as BentoFormLayoutFieldTip,
|
|
171
|
+
Z as BentoFormLayoutGroup,
|
|
172
|
+
tt as BentoFormLayoutTitle
|
|
173
|
+
};
|
|
174
|
+
//# sourceMappingURL=form-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-layout.js","sources":["../src/components/form-layout/form-layout.vue","../src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.ts","../src/components/form-layout/components/form-layout-group/form-layout-group.vue","../src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert\n v-if=\"hasSlot('error-message')\"\n class=\"b-form-layout__error-message\"\n :type=\"BentoAlertTypeOption.CRITICAL\"\n >\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert, BentoAlertTypeOption } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert :variant=\"BentoAlertVariant.TIP\" :type=\"BentoAlertTypeOption.WARNING\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoAlert, BentoAlertTypeOption, BentoAlertVariant } from '@/components/alert';\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","import { computed, onMounted, Ref } from 'vue';\nimport { BentoLayoutGroupProportions } from '../form-layout-group.types';\n\n/**\n * Calculates the CSS classes based on the percentage\n * for each one of the layouts in format `##-##` or `##`.\n *\n * It receives a layout of type @see BentoLayoutGroupProportions to\n * generate the class and apply it to the children of the @see BentoFormLayoutGroup component\n *\n * @param {Ref<BentoLayoutGroupProportions>} layoutProp Layout string in the format `##` or `##-##`\n * @param {Ref<HTMLElement>} formLayoutGroupRef Reference to an HTML element of type BentoFormLayoutGroup\n */\nexport const useFormLayoutGroupPercentage = (\n layoutProp: Ref<BentoLayoutGroupProportions>,\n formLayoutGroupRef: Ref<HTMLElement>\n) => {\n // Split the `##-##` format into individual values [##, ##]\n const getLayoutValues = layout => layout.split?.('-').map(value => parseInt(value, 10));\n const layout = computed(() => getLayoutValues(layoutProp.value));\n\n onMounted(() => {\n // Apply class to every immediate child\n const layoutClassName = formLayoutGroupRef.value.classList[0];\n const immediateChildren = formLayoutGroupRef.value.querySelectorAll(`.${layoutClassName} > *`); // Get immediate children\n immediateChildren.forEach((child, index) => {\n child.classList.add(`${layoutClassName}--${layout.value[index] || '100'}`); // 100% default\n });\n });\n};\n","<template>\n <div ref=\"formLayoutGroup\" class=\"b-form-layout-group\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { defineProps, PropType, ref, toRef } from 'vue';\n import { useFormLayoutGroupPercentage } from './composable/use-form-layout-group-percentage';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n },\n });\n\n const formLayoutGroup = ref(null);\n useFormLayoutGroupPercentage(toRef(props, 'layout'), formLayoutGroup);\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" :variant=\"BentoTypographyVariant.TITLE\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography\n v-if=\"hasSlot('description')\"\n class=\"b-form-layout-title__description\"\n :el=\"BentoTypographyElement.SPAN\"\n wide\n >\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * An element of type @see BentoTypographyElement must always be provided\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection :el=\"BentoTypographyElement.H2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","__default__$2","useFormLayoutGroupPercentage","layoutProp","formLayoutGroupRef","getLayoutValues","layout2","_a","value","layout","onMounted","layoutClassName","child","index","__default__$1","formLayoutGroup","ref","__default__","isSection","conditionalClasses"],"mappings":";;;;;;;AA0FI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;iBA1DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAeAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;qBCbAK,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;qBCzBSC,IAAA,CAAAC,GAAAC,MAAA;AAKT,QAAAC,IAAA,CAAAC,MAAA;;AAAA,YAAAC,IAAAD,EAAA,UAAA,gBAAAC,EAAA,KAAAD,GAAA,KAAA,IAAA,CAAAE,MAAA,SAAAA,GAAA,EAAA;AAAA,KACAC,IAAAd,EAAA,MAAAU,EAAAF,EAAA,KAAA,CAAA;AAEA,EAAAO,EAAA,MAAA;AAEI,UAAAC,IAAAP,EAAA,MAAA,UAAA,CAAA;AAEA,IADAA,EAAA,MAAA,iBAAA,IAAAO,OAAA,EACA,QAAA,CAAAC,GAAAC,MAAA;AACI,MAAAD,EAAA,UAAA,IAAA,GAAAD,MAAAF,EAAA,MAAAI,CAAA,KAAA,OAAA;AAAA,IAAyE,CAAA;AAAA,EAC5E,CAAA;AAET,GCoCIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAzBAC,IAAAC,EAAA,IAAA;AACA,WAAAd,EAAAF,EAAAJ,GAAA,QAAA,GAAAmB,CAAA;;;;;;;;;;;;;;;;qBCoCAE,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDA3B,IAAAC,EAAA,GAyBA2B,IAAAvB,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACA6B,IAAAxB,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;"}
|
package/dist/header.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as E, computed as T } from "vue";
|
|
2
2
|
import { BentoInfoIcon as A } from "./info-icon.js";
|
|
3
3
|
import { u as C } from "./chunks/use-has-slot.068222e6.js";
|
|
4
|
-
import { B as U, a as v, b as D } from "./chunks/index.
|
|
4
|
+
import { B as U, a as v, b as D } from "./chunks/index.56858f4e.js";
|
|
5
5
|
import { u as X } from "./chunks/i18n.155748d6.js";
|
|
6
6
|
import { c as p, a as B } from "./chunks/index.86453263.js";
|
|
7
7
|
import { r as u, t as s, e as _, g as b, d as H, f as P } from "./chunks/index.f55fdc32.js";
|
|
8
8
|
import { e as R } from "./chunks/index.fdf12170.js";
|
|
9
|
-
import { B as Y } from "./chunks/button-actions.
|
|
9
|
+
import { B as Y } from "./chunks/button-actions.bd397c79.js";
|
|
10
10
|
import { n as w } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
11
|
-
import "./assets/
|
|
11
|
+
import "./assets/index16.css";
|
|
12
12
|
function F(t, e) {
|
|
13
13
|
u(2, arguments);
|
|
14
14
|
var a = s(t), n = s(e), f = a.getFullYear() - n.getFullYear(), r = a.getMonth() - n.getMonth();
|
package/dist/index.js
CHANGED
|
@@ -1,61 +1,63 @@
|
|
|
1
1
|
var B = Object.defineProperty;
|
|
2
2
|
var i = (t, e, o) => e in t ? B(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
|
-
var
|
|
3
|
+
var r = (t, e, o) => (i(t, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
4
|
import "./chunks/index.af05ced4.js";
|
|
5
5
|
import { reactive as m } from "vue";
|
|
6
6
|
import { g as s } from "./chunks/unique-id.a2a2b458.js";
|
|
7
|
-
import { BentoAlert as
|
|
8
|
-
import { B as b, b as E, a as
|
|
9
|
-
import { BentoColumnOverflow as P, BentoDataGrid as
|
|
7
|
+
import { BentoAlert as C, BentoAlertEvent as S, BentoAlertTypeOption as h, BentoAlertVariant as D } from "./alert.js";
|
|
8
|
+
import { B as b, b as E, a as L } from "./chunks/button.d0c9527d.js";
|
|
9
|
+
import { BentoColumnOverflow as P, BentoDataGrid as F, BentoDatagridAriaSortValue as k, BentoDatagridEvent as G, BentoDatagridSortDirection as w, BentoDatagridStyleState as V } from "./data-grid.js";
|
|
10
10
|
import { BentoCard as A, BentoCardBackground as O, BentoCardTitleSize as R } from "./card.js";
|
|
11
11
|
import { BentoDatePicker as N, BentoDatePickerEvent as q } from "./date-picker.js";
|
|
12
|
-
import { B as U, a as K } from "./chunks/index.
|
|
13
|
-
import { B as Y, u as H } from "./chunks/dropdown.
|
|
12
|
+
import { B as U, a as K } from "./chunks/index.10aaf539.js";
|
|
13
|
+
import { B as Y, u as H } from "./chunks/dropdown.c05678d0.js";
|
|
14
14
|
import { BentoDropdownAvatar as j, BentoDropdownCountry as J, BentoDropdownCurrency as Q, BentoDropdownPaymentMethod as X, BentoDropdownTag as Z } from "./dropdown.js";
|
|
15
|
-
import { B as te, b as oe, a as
|
|
15
|
+
import { B as te, b as oe, a as ne } from "./chunks/checkbox.f8457c93.js";
|
|
16
16
|
import { BentoClickOutside as ae } from "./click-outside.js";
|
|
17
17
|
import { BentoCodeSnippet as ie, BentoCodeSnippetEvent as me, BentoCodeSnippetSupportedLanguage as se, BentoCodeSnippetVariant as pe } from "./code-snippet.js";
|
|
18
|
-
import { BentoCountry as
|
|
19
|
-
import { BentoCurrency as Te, BentoCurrencyISOCode as
|
|
20
|
-
import { B as
|
|
21
|
-
import { BentoDivider as
|
|
22
|
-
import { BentoFilterBar as Le, BentoFilterBarEvent as
|
|
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 { B as
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import { B as
|
|
55
|
-
import {
|
|
18
|
+
import { BentoCountry as ue, BentoCountryCode as le, BentoCountryVariant as fe, useCountryCapital as xe, useCountryName as ye, useCountryPhoneCode as ce } from "./country.js";
|
|
19
|
+
import { BentoCurrency as Te, BentoCurrencyISOCode as Ce } from "./currency.js";
|
|
20
|
+
import { B as he, a as De } from "./chunks/index.73d50fa6.js";
|
|
21
|
+
import { BentoDivider as be } from "./divider.js";
|
|
22
|
+
import { BentoFilterBar as Le, BentoFilterBarEvent as Ie, BentoFilterEvent as Pe, BentoFilterItemType as Fe } from "./filter-bar.js";
|
|
23
|
+
import { BentoFormLayout as Ge, BentoFormLayoutFieldTip as we, BentoFormLayoutGroup as Ve, BentoFormLayoutTitle as Me } from "./form-layout.js";
|
|
24
|
+
import { BentoInfoIcon as Oe } from "./info-icon.js";
|
|
25
|
+
import { BentoInputField as _e, BentoInputFieldElementPosition as Ne, BentoInputFieldEvent as qe, BentoInputFieldStateClass as ze, BentoInputFieldType as Ue, BentoInputFieldVariant as Ke } from "./input-field.js";
|
|
26
|
+
import { BentoLoadingIndicator as Ye, BentoLoadingIndicatorEvent as He } from "./loading-indicator.js";
|
|
27
|
+
import { BentoLink as je, BentoLinkVariant as Je } from "./link.js";
|
|
28
|
+
import { BentoMenu as Xe, BentoMenuEvent as Ze } from "./menu.js";
|
|
29
|
+
import { BentoModal as tt, BentoModalColumnLayoutVariant as ot, BentoModalDialogType as nt, BentoModalEvent as rt, BentoModalRole as at, BentoModalSize as Bt, BentoModalVariant as it } from "./modal.js";
|
|
30
|
+
import { BentoHeader as st } from "./header.js";
|
|
31
|
+
import { BentoPagination as dt } from "./pagination.js";
|
|
32
|
+
import { BentoPaymentMethod as lt, BentoPaymentMethodType as ft } from "./payment-method.js";
|
|
33
|
+
import { BentoPopover as yt, BentoPopoverPositions as ct } from "./popover.js";
|
|
34
|
+
import { BentoRadioGroup as Tt, BentoRadioGroupVariant as Ct } from "./radio-group.js";
|
|
35
|
+
import { BentoSearchBar as ht, BentoSearchBarEvent as Dt, BentoSearchBarInternalEvent as vt } from "./search-bar.js";
|
|
36
|
+
import { BentoSegmentedControl as Et, BentoSegmentedControlEvent as Lt } from "./segmented-control.js";
|
|
37
|
+
import { BentoSidepanel as Pt, BentoSidepanelAnimation as Ft, BentoSidepanelEvent as kt, BentoSidepanelPage as Gt } from "./sidepanel.js";
|
|
38
|
+
import { BentoStatus as Vt, BentoStatusVariant as Mt } from "./status.js";
|
|
39
|
+
import { B as Ot, a as Rt } from "./chunks/index.0cf00b47.js";
|
|
40
|
+
import { BentoSummaryGrid as Nt, BentoSummaryGridItemAmount as qt, BentoSummaryGridItemCustom as zt, BentoSummaryGridItemNumeric as Ut, BentoSummaryGridItemPercentage as Kt, BentoSummaryGridItemSize as Wt, BentoSummaryGridItemText as Yt, BentoSummaryGridItemTrendDirection as Ht } from "./summary-grid.js";
|
|
41
|
+
import { BentoTab as jt, BentoTabs as Jt } from "./tabs.js";
|
|
42
|
+
import { BentoTag as Xt, BentoTagVariant as Zt } from "./tag.js";
|
|
43
|
+
import { BentoTextarea as to } from "./textarea.js";
|
|
44
|
+
import { BentoTimeline as no, BentoTimelineGapUnit as ro, BentoTimelineItem as ao, BentoTimelineItemVariant as Bo, BentoTimelineShowMorePlacement as io } from "./timeline.js";
|
|
45
|
+
import { BentoToast as so } from "./toast.js";
|
|
46
|
+
import { u as uo } from "./chunks/toastController.0e01443d.js";
|
|
47
|
+
import { BentoToggle as fo, BentoToggleLabelPosition as xo, BentoTogglePropClass as yo } from "./toggle.js";
|
|
48
|
+
import { B as go, a as To, c as Co, b as So } from "./chunks/index.56858f4e.js";
|
|
49
|
+
import { B as Do, c as vo, a as bo, b as Eo } from "./chunks/button-actions.bd397c79.js";
|
|
50
|
+
import { B as Io, a as Po } from "./chunks/loading-button.1c201f87.js";
|
|
51
|
+
import { b as ko, b as Go } from "./chunks/calendar.0ae43a96.js";
|
|
52
|
+
import { BentoCheckboxGroup as Vo, BentoCheckboxGroupVariant as Mo } from "./checkbox.js";
|
|
53
|
+
import { D as Oo } from "./chunks/date-input.9186a0bf.js";
|
|
54
|
+
import { a as _o, B as No } from "./chunks/debounce.f8d92e44.js";
|
|
55
|
+
import { a as zo, b as Uo } from "./chunks/listbox.116ed0c1.js";
|
|
56
|
+
import { B as Wo } from "./chunks/directive.0408e565.js";
|
|
57
|
+
import { b as Ho, B as $o, a as jo } from "./chunks/tooltip.2aff4fa6.js";
|
|
56
58
|
class p {
|
|
57
59
|
constructor() {
|
|
58
|
-
|
|
60
|
+
r(this, "_state");
|
|
59
61
|
this._state = m({ queue: [] });
|
|
60
62
|
}
|
|
61
63
|
get state() {
|
|
@@ -65,20 +67,20 @@ class p {
|
|
|
65
67
|
this._state.queue.splice(this._state.queue.indexOf(e), 1);
|
|
66
68
|
}
|
|
67
69
|
addToast(e) {
|
|
68
|
-
const o = s("toast"),
|
|
70
|
+
const o = s("toast"), n = {
|
|
69
71
|
...e,
|
|
70
72
|
id: o,
|
|
71
|
-
dismiss: () => this.dismissToast(
|
|
73
|
+
dismiss: () => this.dismissToast(n)
|
|
72
74
|
};
|
|
73
|
-
return this._state.queue.push(
|
|
74
|
-
dismiss: () => this.dismissToast(
|
|
75
|
+
return this._state.queue.push(n), {
|
|
76
|
+
dismiss: () => this.dismissToast(n)
|
|
75
77
|
};
|
|
76
78
|
}
|
|
77
79
|
}
|
|
78
|
-
var
|
|
80
|
+
var d = /* @__PURE__ */ ((t) => (t.LEGACY = "b-legacy-theme", t.STYLEGUIDE = "b-styleguide-theme", t.BENTO = "", t))(d || {});
|
|
79
81
|
const a = (t) => {
|
|
80
82
|
document.body.classList.add(t);
|
|
81
|
-
},
|
|
83
|
+
}, u = {
|
|
82
84
|
install: async (t, e) => {
|
|
83
85
|
e != null && e.withToast && (t.prototype.$bentoToastController = new p()), (e == null ? void 0 : e.theme) === "b-legacy-theme" ? (a(
|
|
84
86
|
"b-legacy-theme"
|
|
@@ -88,53 +90,53 @@ const a = (t) => {
|
|
|
88
90
|
/* STYLEGUIDE */
|
|
89
91
|
), 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");
|
|
90
92
|
}
|
|
91
|
-
},
|
|
93
|
+
}, c = u;
|
|
92
94
|
export {
|
|
93
|
-
|
|
95
|
+
C as BentoAlert,
|
|
94
96
|
S as BentoAlertEvent,
|
|
95
97
|
h as BentoAlertTypeOption,
|
|
96
98
|
D as BentoAlertVariant,
|
|
97
99
|
b as BentoButton,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
Do as BentoButtonActions,
|
|
101
|
+
vo as BentoButtonActionsLayout,
|
|
102
|
+
bo as BentoButtonActionsLayoutBasic,
|
|
103
|
+
Eo as BentoButtonActionsLayoutExtended,
|
|
102
104
|
E as BentoButtonPropClass,
|
|
103
|
-
|
|
105
|
+
L as BentoButtonVariant,
|
|
104
106
|
A as BentoCard,
|
|
105
107
|
O as BentoCardBackground,
|
|
106
108
|
R as BentoCardTitleSize,
|
|
107
109
|
te as BentoCheckbox,
|
|
108
110
|
oe as BentoCheckboxEvent,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
Vo as BentoCheckboxGroup,
|
|
112
|
+
Mo as BentoCheckboxGroupVariant,
|
|
113
|
+
ne as BentoCheckboxState,
|
|
112
114
|
ae as BentoClickOutside,
|
|
113
|
-
|
|
115
|
+
Wo as BentoClickOutsideDirective,
|
|
114
116
|
ie as BentoCodeSnippet,
|
|
115
117
|
me as BentoCodeSnippetEvent,
|
|
116
118
|
se as BentoCodeSnippetSupportedLanguage,
|
|
117
119
|
pe as BentoCodeSnippetVariant,
|
|
118
120
|
P as BentoColumnOverflow,
|
|
119
|
-
|
|
121
|
+
ue as BentoCountry,
|
|
120
122
|
le as BentoCountryCode,
|
|
121
123
|
fe as BentoCountryVariant,
|
|
122
124
|
Te as BentoCurrency,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
Ce as BentoCurrencyISOCode,
|
|
126
|
+
F as BentoDataGrid,
|
|
127
|
+
k as BentoDatagridAriaSortValue,
|
|
128
|
+
G as BentoDatagridEvent,
|
|
129
|
+
w as BentoDatagridSortDirection,
|
|
128
130
|
V as BentoDatagridStyleState,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
+
he as BentoDate,
|
|
132
|
+
De as BentoDateFormat,
|
|
131
133
|
N as BentoDatePicker,
|
|
132
134
|
q as BentoDatePickerEvent,
|
|
133
|
-
|
|
135
|
+
ko as BentoDatePickerFirstDayOfWeek,
|
|
134
136
|
U as BentoDateRangePicker,
|
|
135
137
|
K as BentoDateRangePickerEvent,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
+
Go as BentoDateRangePickerFirstDayOfWeek,
|
|
139
|
+
be as BentoDivider,
|
|
138
140
|
Y as BentoDropdown,
|
|
139
141
|
j as BentoDropdownAvatar,
|
|
140
142
|
J as BentoDropdownCountry,
|
|
@@ -142,89 +144,96 @@ export {
|
|
|
142
144
|
X as BentoDropdownPaymentMethod,
|
|
143
145
|
Z as BentoDropdownTag,
|
|
144
146
|
Le as BentoFilterBar,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
_e as
|
|
155
|
-
Ne as
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
tt as
|
|
173
|
-
ot as
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
Tt as
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
Ft as
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
Ot as
|
|
198
|
-
Rt as
|
|
199
|
-
Nt as
|
|
200
|
-
qt as
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
Xt as
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
so as
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
147
|
+
Ie as BentoFilterBarEvent,
|
|
148
|
+
Pe as BentoFilterEvent,
|
|
149
|
+
Fe as BentoFilterItemType,
|
|
150
|
+
Ge as BentoFormLayout,
|
|
151
|
+
we as BentoFormLayoutFieldTip,
|
|
152
|
+
Ve as BentoFormLayoutGroup,
|
|
153
|
+
Me as BentoFormLayoutTitle,
|
|
154
|
+
st as BentoHeader,
|
|
155
|
+
Oe as BentoInfoIcon,
|
|
156
|
+
_e as BentoInputField,
|
|
157
|
+
Ne as BentoInputFieldElementPosition,
|
|
158
|
+
qe as BentoInputFieldEvent,
|
|
159
|
+
ze as BentoInputFieldStateClass,
|
|
160
|
+
Ue as BentoInputFieldType,
|
|
161
|
+
Ke as BentoInputFieldVariant,
|
|
162
|
+
_o as BentoKeyboardNavigationDirective,
|
|
163
|
+
No as BentoKeyboardNavigationKeyDownEvent,
|
|
164
|
+
je as BentoLink,
|
|
165
|
+
Je as BentoLinkVariant,
|
|
166
|
+
zo as BentoListboxEvent,
|
|
167
|
+
Uo as BentoListboxLazyLoadType,
|
|
168
|
+
Io as BentoLoadingButton,
|
|
169
|
+
Po as BentoLoadingButtonState,
|
|
170
|
+
Ye as BentoLoadingIndicator,
|
|
171
|
+
He as BentoLoadingIndicatorEvent,
|
|
172
|
+
Xe as BentoMenu,
|
|
173
|
+
Ze as BentoMenuEvent,
|
|
174
|
+
tt as BentoModal,
|
|
175
|
+
ot as BentoModalColumnLayoutVariant,
|
|
176
|
+
nt as BentoModalDialogType,
|
|
177
|
+
rt as BentoModalEvent,
|
|
178
|
+
at as BentoModalRole,
|
|
179
|
+
Bt as BentoModalSize,
|
|
180
|
+
it as BentoModalVariant,
|
|
181
|
+
dt as BentoPagination,
|
|
182
|
+
lt as BentoPaymentMethod,
|
|
183
|
+
ft as BentoPaymentMethodType,
|
|
184
|
+
yt as BentoPopover,
|
|
185
|
+
ct as BentoPopoverPositions,
|
|
186
|
+
Tt as BentoRadioGroup,
|
|
187
|
+
Ct as BentoRadioGroupVariant,
|
|
188
|
+
ht as BentoSearchBar,
|
|
189
|
+
Dt as BentoSearchBarEvent,
|
|
190
|
+
vt as BentoSearchBarInternalEvent,
|
|
191
|
+
Et as BentoSegmentedControl,
|
|
192
|
+
Lt as BentoSegmentedControlEvent,
|
|
193
|
+
Pt as BentoSidepanel,
|
|
194
|
+
Ft as BentoSidepanelAnimation,
|
|
195
|
+
kt as BentoSidepanelEvent,
|
|
196
|
+
Gt as BentoSidepanelPage,
|
|
197
|
+
Vt as BentoStatus,
|
|
198
|
+
Mt as BentoStatusVariant,
|
|
199
|
+
Ot as BentoStructuredList,
|
|
200
|
+
Rt as BentoStructuredListItem,
|
|
201
|
+
Nt as BentoSummaryGrid,
|
|
202
|
+
qt as BentoSummaryGridItemAmount,
|
|
203
|
+
zt as BentoSummaryGridItemCustom,
|
|
204
|
+
Ut as BentoSummaryGridItemNumeric,
|
|
205
|
+
Kt as BentoSummaryGridItemPercentage,
|
|
206
|
+
Wt as BentoSummaryGridItemSize,
|
|
207
|
+
Yt as BentoSummaryGridItemText,
|
|
208
|
+
Ht as BentoSummaryGridItemTrendDirection,
|
|
209
|
+
jt as BentoTab,
|
|
210
|
+
Jt as BentoTabs,
|
|
211
|
+
Xt as BentoTag,
|
|
212
|
+
Zt as BentoTagVariant,
|
|
213
|
+
to as BentoTextarea,
|
|
214
|
+
d as BentoTheme,
|
|
215
|
+
no as BentoTimeline,
|
|
216
|
+
ro as BentoTimelineGapUnit,
|
|
217
|
+
ao as BentoTimelineItem,
|
|
218
|
+
Bo as BentoTimelineItemVariant,
|
|
219
|
+
io as BentoTimelineShowMorePlacement,
|
|
220
|
+
so as BentoToast,
|
|
221
|
+
fo as BentoToggle,
|
|
222
|
+
xo as BentoToggleLabelPosition,
|
|
223
|
+
yo as BentoTogglePropClass,
|
|
224
|
+
Ho as BentoTooltipDirective,
|
|
225
|
+
$o as BentoTooltipPosition,
|
|
226
|
+
jo as BentoTooltipState,
|
|
227
|
+
go as BentoTypography,
|
|
228
|
+
To as BentoTypographyElement,
|
|
229
|
+
Co as BentoTypographyModifier,
|
|
230
|
+
So as BentoTypographyVariant,
|
|
231
|
+
Oo as DateFormat,
|
|
232
|
+
c as default,
|
|
233
|
+
uo as useBentoToastController,
|
|
224
234
|
xe as useCountryCapital,
|
|
225
|
-
ce as useCountryFlag,
|
|
226
235
|
ye as useCountryName,
|
|
227
|
-
|
|
236
|
+
ce as useCountryPhoneCode,
|
|
228
237
|
H as useSearchBarFilter
|
|
229
238
|
};
|
|
230
239
|
//# sourceMappingURL=index.js.map
|