@adyen/bento-vue3 1.6.0 → 1.6.1
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/accordion.js +2 -2
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.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/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/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- 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/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +100 -89
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.90687c75.js → base-button.4b5ab17e.js} +2 -2
- package/dist/chunks/{base-button.90687c75.js.map → base-button.4b5ab17e.js.map} +1 -1
- package/dist/chunks/{base-modal.c956b084.js → base-modal.53a229ac.js} +4 -4
- package/dist/chunks/{base-modal.c956b084.js.map → base-modal.53a229ac.js.map} +1 -1
- package/dist/chunks/{button.9d72e2d7.js → button.975d0bb8.js} +2 -2
- package/dist/chunks/{button.9d72e2d7.js.map → button.975d0bb8.js.map} +1 -1
- package/dist/chunks/{calendar.e7db78d0.js → calendar.cc37ac1f.js} +4 -4
- package/dist/chunks/{calendar.e7db78d0.js.map → calendar.cc37ac1f.js.map} +1 -1
- package/dist/chunks/{checkbox.ecbb4f0c.js → checkbox.67ceb148.js} +3 -3
- package/dist/chunks/{checkbox.ecbb4f0c.js.map → checkbox.67ceb148.js.map} +1 -1
- package/dist/chunks/{controls-group.34f1f82a.js → controls-group.7214dc7f.js} +2 -2
- package/dist/chunks/{controls-group.34f1f82a.js.map → controls-group.7214dc7f.js.map} +1 -1
- package/dist/chunks/{copy.aaec57b6.js → copy.7a73d1fd.js} +3 -3
- package/dist/chunks/{copy.aaec57b6.js.map → copy.7a73d1fd.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.88a42e9b.js → dropdown-default-textbox.0f878a8d.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.88a42e9b.js.map → dropdown-default-textbox.0f878a8d.js.map} +1 -1
- package/dist/chunks/{dropdown.6a484461.js → dropdown.7a104ce3.js} +5 -5
- package/dist/chunks/{dropdown.6a484461.js.map → dropdown.7a104ce3.js.map} +1 -1
- package/dist/chunks/{error-message.11e1fa1f.js → error-message.b91afffc.js} +2 -2
- package/dist/chunks/{error-message.11e1fa1f.js.map → error-message.b91afffc.js.map} +1 -1
- package/dist/chunks/{footer-actions.a65cb2e3.js → footer-actions.13f19a22.js} +3 -3
- package/dist/chunks/{footer-actions.a65cb2e3.js.map → footer-actions.13f19a22.js.map} +1 -1
- package/dist/chunks/{index.84f6360f.js → index.1dc4ebae.js} +8 -8
- package/dist/chunks/{index.84f6360f.js.map → index.1dc4ebae.js.map} +1 -1
- package/dist/chunks/{index.424e2ea4.js → index.4c951e0d.js} +6 -6
- package/dist/chunks/{index.424e2ea4.js.map → index.4c951e0d.js.map} +1 -1
- package/dist/chunks/{index.655b761f.js → index.536bcb56.js} +2 -2
- package/dist/chunks/{index.655b761f.js.map → index.536bcb56.js.map} +1 -1
- package/dist/chunks/{index.bc9e0cde.js → index.6700224a.js} +2 -2
- package/dist/chunks/{index.bc9e0cde.js.map → index.6700224a.js.map} +1 -1
- package/dist/chunks/{index.9fc54b60.js → index.7f24db66.js} +2 -2
- package/dist/chunks/{index.9fc54b60.js.map → index.7f24db66.js.map} +1 -1
- package/dist/chunks/{index.754349ff.js → index.d68847b0.js} +2 -2
- package/dist/chunks/{index.754349ff.js.map → index.d68847b0.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.ea9f377f.js → listbox-option-tag.0f31ecb2.js} +3 -3
- package/dist/chunks/{listbox-option-tag.ea9f377f.js.map → listbox-option-tag.0f31ecb2.js.map} +1 -1
- package/dist/chunks/{listbox.a7255ce1.js → listbox.0f25778d.js} +4 -4
- package/dist/chunks/{listbox.a7255ce1.js.map → listbox.0f25778d.js.map} +1 -1
- package/dist/chunks/{loading-button.fb1f20a3.js → loading-button.6523a015.js} +2 -2
- package/dist/chunks/{loading-button.fb1f20a3.js.map → loading-button.6523a015.js.map} +1 -1
- package/dist/chunks/{tooltip.6af06509.js → tooltip.b5391514.js} +2 -2
- package/dist/chunks/{tooltip.6af06509.js.map → tooltip.b5391514.js.map} +1 -1
- package/dist/code-snippet.js +7 -7
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +7 -7
- package/dist/date-picker.js +7 -7
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +13 -13
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +67 -62
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +2 -2
- package/dist/index.js +14 -14
- package/dist/info-icon.js +2 -2
- package/dist/input-field.js +4 -4
- package/dist/internal.js +8 -8
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +4 -4
- package/dist/modal.js +3 -3
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +3 -3
- package/dist/popper-container.js +2 -2
- package/dist/radio-group.js +4 -4
- package/dist/search-bar.js +2 -2
- package/dist/segmented-control.js +4 -4
- package/dist/sidepanel.js +5 -5
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +2 -2
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +5 -5
- package/dist/toast.js +3 -3
- package/dist/toggle.js +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +2 -2
package/dist/filter-bar.js
CHANGED
|
@@ -2,12 +2,12 @@ import { defineComponent as q, useSlots as Ct, useAttrs as gt, computed as b, re
|
|
|
2
2
|
import { _ as L } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
3
3
|
import { BentoPopover as Le } from "./popover.js";
|
|
4
4
|
import { B as It } from "./chunks/directive.0408e565.js";
|
|
5
|
-
import { B as Tt } from "./chunks/tooltip.
|
|
5
|
+
import { B as Tt } from "./chunks/tooltip.b5391514.js";
|
|
6
6
|
import { u as re } from "./chunks/i18n.6c402773.js";
|
|
7
7
|
import { g as Ee } from "./chunks/unique-id.a2a2b458.js";
|
|
8
|
-
import { B as ce, d as Et } from "./chunks/index.
|
|
8
|
+
import { B as ce, d as Et } from "./chunks/index.7f24db66.js";
|
|
9
9
|
import { u as Qe } from "./chunks/aria-label.ac9651a5.js";
|
|
10
|
-
import { B as Xe, a as Oe } from "./chunks/base-button.
|
|
10
|
+
import { B as Xe, a as Oe } from "./chunks/base-button.4b5ab17e.js";
|
|
11
11
|
import { g as xe } from "./chunks/get-slot-text.bead058f.js";
|
|
12
12
|
import { u as et } from "./chunks/use-has-slot.4d98bf29.js";
|
|
13
13
|
import { a as tt, C as lt } from "./chunks/chevron-up.9bf21068.js";
|
|
@@ -16,24 +16,24 @@ import { BentoInputField as nt } from "./input-field.js";
|
|
|
16
16
|
import { BentoSearchBar as he, BentoSearchBarEvent as de } from "./search-bar.js";
|
|
17
17
|
import { u as Pt } from "./chunks/toastController.0b01d2e8.js";
|
|
18
18
|
import { BentoModal as kt } from "./modal.js";
|
|
19
|
-
import { e as Vt } from "./chunks/base-modal.
|
|
20
|
-
import { a as Rt } from "./chunks/button.
|
|
21
|
-
import { B as Lt, u as at } from "./chunks/dropdown.
|
|
22
|
-
import { g as Ot } from "./chunks/index.
|
|
19
|
+
import { e as Vt } from "./chunks/base-modal.53a229ac.js";
|
|
20
|
+
import { a as Rt } from "./chunks/button.975d0bb8.js";
|
|
21
|
+
import { B as Lt, u as at } from "./chunks/dropdown.7a104ce3.js";
|
|
22
|
+
import { g as Ot } from "./chunks/index.6700224a.js";
|
|
23
23
|
import { BentoDivider as ot } from "./divider.js";
|
|
24
24
|
import { BentoDatePicker as Nt } from "./date-picker.js";
|
|
25
|
-
import { f as se } from "./chunks/index.
|
|
25
|
+
import { f as se } from "./chunks/index.d68847b0.js";
|
|
26
26
|
import { e as ae, d as st, f as it } from "./chunks/index.f55fdc32.js";
|
|
27
|
-
import { C as wt, i as Mt } from "./chunks/calendar.
|
|
28
|
-
import { B as Ht, D as qt, i as Ne } from "./chunks/index.
|
|
27
|
+
import { C as wt, i as Mt } from "./chunks/calendar.cc37ac1f.js";
|
|
28
|
+
import { B as Ht, D as qt, i as Ne } from "./chunks/index.1dc4ebae.js";
|
|
29
29
|
import { D as we } from "./chunks/date-input.9186a0bf.js";
|
|
30
30
|
import { BentoButtonActions as Kt } from "./button.js";
|
|
31
|
-
import { B as jt } from "./chunks/listbox.
|
|
32
|
-
import { B as Yt, L as rt } from "./chunks/listbox-option-tag.
|
|
31
|
+
import { B as jt } from "./chunks/listbox.0f25778d.js";
|
|
32
|
+
import { B as Yt, L as rt } from "./chunks/listbox-option-tag.0f31ecb2.js";
|
|
33
33
|
import { BentoCountry as zt } from "./country.js";
|
|
34
34
|
import { u as Jt } from "./chunks/useCountryItems.e83ef8f0.js";
|
|
35
35
|
import { BentoPaymentMethod as Gt } from "./payment-method.js";
|
|
36
|
-
import "./assets/
|
|
36
|
+
import "./assets/index42.css";
|
|
37
37
|
const Zt = { class: "b-filter-bar-button__container" }, Wt = { class: "b-filter-bar-button__label-container" }, Qt = {
|
|
38
38
|
key: 1,
|
|
39
39
|
class: "b-filter-bar-button__chevron"
|
package/dist/focus-trap.js
CHANGED
package/dist/form-layout.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as d, useSlots as b, computed as u, provide as
|
|
2
|
-
import { BentoAlert as
|
|
3
|
-
import { u as
|
|
4
|
-
import { F as
|
|
1
|
+
import { defineComponent as d, useSlots as b, computed as u, provide as E, toRef as $, openBlock as i, createBlock as v, resolveDynamicComponent as N, unref as r, withCtx as _, renderSlot as l, createCommentVNode as g, createElementBlock as p, createElementVNode as L, createVNode as B, onMounted as O, ref as S, normalizeClass as C } from "vue";
|
|
2
|
+
import { BentoAlert as T } from "./alert.js";
|
|
3
|
+
import { u as F } from "./chunks/use-has-slot.4d98bf29.js";
|
|
4
|
+
import { F as k } from "./chunks/form-layout.types.a7a1438d.js";
|
|
5
5
|
import { _ as m } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
6
|
-
import { B as y, c as
|
|
7
|
-
import "./assets/
|
|
8
|
-
const
|
|
6
|
+
import { B as y, c as G } from "./chunks/index.7f24db66.js";
|
|
7
|
+
import "./assets/index19.css";
|
|
8
|
+
const A = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "b-form-layout__actions-container"
|
|
11
|
-
},
|
|
12
|
-
...
|
|
11
|
+
}, w = { class: "b-form-layout__actions" }, V = { class: "b-form-layout__actions" }, D = {}, P = /* @__PURE__ */ d({
|
|
12
|
+
...D,
|
|
13
13
|
__name: "form-layout",
|
|
14
14
|
props: {
|
|
15
15
|
/**
|
|
@@ -23,29 +23,29 @@ const G = {
|
|
|
23
23
|
loading: { type: Boolean, default: !1 }
|
|
24
24
|
},
|
|
25
25
|
setup(t) {
|
|
26
|
-
const
|
|
27
|
-
return
|
|
26
|
+
const e = t, s = b(), n = F(s), o = u(() => e.form ? "form" : "div"), c = u(() => n("actions-left") || n("actions-right"));
|
|
27
|
+
return E(k, $(e, "loading")), (a, f) => (i(), v(N(r(o)), {
|
|
28
28
|
class: "b-form-layout",
|
|
29
29
|
role: "form"
|
|
30
30
|
}, {
|
|
31
31
|
default: _(() => [
|
|
32
|
-
|
|
32
|
+
r(n)("error-message") ? (i(), v(r(T), {
|
|
33
33
|
key: 0,
|
|
34
34
|
class: "b-form-layout__error-message",
|
|
35
35
|
type: "critical"
|
|
36
36
|
}, {
|
|
37
37
|
description: _(() => [
|
|
38
|
-
|
|
38
|
+
l(a.$slots, "error-message", {}, void 0, !0)
|
|
39
39
|
]),
|
|
40
40
|
_: 3
|
|
41
41
|
})) : g("", !0),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
L("div",
|
|
45
|
-
|
|
42
|
+
l(a.$slots, "default", {}, void 0, !0),
|
|
43
|
+
r(c) ? (i(), p("div", A, [
|
|
44
|
+
L("div", w, [
|
|
45
|
+
l(a.$slots, "actions-left", {}, void 0, !0)
|
|
46
46
|
]),
|
|
47
47
|
L("div", V, [
|
|
48
|
-
|
|
48
|
+
l(a.$slots, "actions-right", {}, void 0, !0)
|
|
49
49
|
])
|
|
50
50
|
])) : g("", !0)
|
|
51
51
|
]),
|
|
@@ -53,8 +53,8 @@ const G = {
|
|
|
53
53
|
}));
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
const
|
|
57
|
-
...
|
|
56
|
+
const ot = /* @__PURE__ */ m(P, [["__scopeId", "data-v-f0c8b741"]]), R = ["warning", "critical", "highlight", "success"], q = { class: "b-form-layout-field-tip" }, x = {}, M = /* @__PURE__ */ d({
|
|
57
|
+
...x,
|
|
58
58
|
__name: "form-layout-field-tip",
|
|
59
59
|
props: {
|
|
60
60
|
/**
|
|
@@ -64,25 +64,25 @@ const tt = /* @__PURE__ */ m(D, [["__scopeId", "data-v-f0c8b741"]]), P = ["warni
|
|
|
64
64
|
type: {
|
|
65
65
|
type: String,
|
|
66
66
|
default: "highlight",
|
|
67
|
-
validator: (t) =>
|
|
67
|
+
validator: (t) => R.includes(t)
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
setup(t) {
|
|
71
|
-
return (
|
|
72
|
-
|
|
73
|
-
B(
|
|
71
|
+
return (e, s) => (i(), p("div", q, [
|
|
72
|
+
l(e.$slots, "default", {}, void 0, !0),
|
|
73
|
+
B(r(T), {
|
|
74
74
|
variant: "tip",
|
|
75
75
|
type: t.type
|
|
76
76
|
}, {
|
|
77
77
|
description: _(() => [
|
|
78
|
-
|
|
78
|
+
l(e.$slots, "message", {}, void 0, !0)
|
|
79
79
|
]),
|
|
80
80
|
_: 3
|
|
81
81
|
}, 8, ["type"])
|
|
82
82
|
]));
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
|
-
const
|
|
85
|
+
const st = /* @__PURE__ */ m(M, [["__scopeId", "data-v-16c7e9c2"]]), h = [
|
|
86
86
|
"100",
|
|
87
87
|
"50",
|
|
88
88
|
"33",
|
|
@@ -93,21 +93,26 @@ const ot = /* @__PURE__ */ m(x, [["__scopeId", "data-v-16c7e9c2"]]), h = [
|
|
|
93
93
|
"25-75",
|
|
94
94
|
"50-50",
|
|
95
95
|
"33-33-33"
|
|
96
|
-
],
|
|
97
|
-
|
|
96
|
+
], U = 100;
|
|
97
|
+
function Y(t, e, s) {
|
|
98
|
+
t.parentNode.insertBefore(e, t), e.appendChild(t), e.classList.add(s);
|
|
99
|
+
}
|
|
100
|
+
const j = (t, e) => {
|
|
101
|
+
const s = (o) => {
|
|
98
102
|
var c;
|
|
99
|
-
return (c =
|
|
100
|
-
},
|
|
101
|
-
() => h.includes(t.value) ?
|
|
103
|
+
return (c = o.split) == null ? void 0 : c.call(o, "-").map((a) => parseInt(a, 10));
|
|
104
|
+
}, n = u(
|
|
105
|
+
() => h.includes(t.value) ? s(t.value) : U
|
|
102
106
|
);
|
|
103
|
-
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
|
|
107
|
+
O(() => {
|
|
108
|
+
const o = e.value.classList[0];
|
|
109
|
+
e.value.querySelectorAll(`.${o} > *`).forEach((a, f) => {
|
|
110
|
+
const I = `${o}--${n.value[f] || "100"}`;
|
|
111
|
+
Y(a, document.createElement("div"), I);
|
|
107
112
|
});
|
|
108
113
|
});
|
|
109
|
-
},
|
|
110
|
-
...
|
|
114
|
+
}, z = {}, H = /* @__PURE__ */ d({
|
|
115
|
+
...z,
|
|
111
116
|
__name: "form-layout-group",
|
|
112
117
|
props: {
|
|
113
118
|
/**
|
|
@@ -140,24 +145,24 @@ const ot = /* @__PURE__ */ m(x, [["__scopeId", "data-v-16c7e9c2"]]), h = [
|
|
|
140
145
|
}
|
|
141
146
|
},
|
|
142
147
|
setup(t) {
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
const
|
|
148
|
+
const e = t, s = S(null);
|
|
149
|
+
j($(e, "layout"), s);
|
|
150
|
+
const n = u(() => ({
|
|
146
151
|
// Transform into column if the layout is unsopprted
|
|
147
152
|
// "form-layout.scss" depends on this class
|
|
148
|
-
"b-form-layout-group--column": !h.includes(
|
|
153
|
+
"b-form-layout-group--column": !h.includes(e.layout)
|
|
149
154
|
}));
|
|
150
|
-
return (
|
|
155
|
+
return (o, c) => (i(), p("div", {
|
|
151
156
|
ref_key: "formLayoutGroup",
|
|
152
|
-
ref:
|
|
153
|
-
class:
|
|
157
|
+
ref: s,
|
|
158
|
+
class: C(["b-form-layout-group", r(n)])
|
|
154
159
|
}, [
|
|
155
|
-
|
|
160
|
+
l(o.$slots, "default", {}, void 0, !0)
|
|
156
161
|
], 2));
|
|
157
162
|
}
|
|
158
163
|
});
|
|
159
|
-
const
|
|
160
|
-
...
|
|
164
|
+
const at = /* @__PURE__ */ m(H, [["__scopeId", "data-v-f602fe24"]]), J = {}, K = /* @__PURE__ */ d({
|
|
165
|
+
...J,
|
|
161
166
|
__name: "form-layout-title",
|
|
162
167
|
props: {
|
|
163
168
|
/**
|
|
@@ -176,45 +181,45 @@ const et = /* @__PURE__ */ m(j, [["__scopeId", "data-v-f602fe24"]]), z = {}, H =
|
|
|
176
181
|
el: {
|
|
177
182
|
type: y.props.el.type,
|
|
178
183
|
required: !0,
|
|
179
|
-
validator: (t) => Object.values(
|
|
184
|
+
validator: (t) => Object.values(G).includes(t)
|
|
180
185
|
}
|
|
181
186
|
},
|
|
182
187
|
setup(t) {
|
|
183
|
-
const
|
|
184
|
-
"b-form-layout-title--subsection":
|
|
188
|
+
const e = t, s = b(), n = u(() => !e.subsection), o = F(s), c = u(() => ({
|
|
189
|
+
"b-form-layout-title--subsection": e.subsection
|
|
185
190
|
}));
|
|
186
|
-
return (
|
|
187
|
-
class:
|
|
191
|
+
return (a, f) => (i(), p("div", {
|
|
192
|
+
class: C(["b-form-layout-title", r(c)])
|
|
188
193
|
}, [
|
|
189
|
-
B(
|
|
194
|
+
B(r(y), {
|
|
190
195
|
el: t.el,
|
|
191
196
|
variant: "title",
|
|
192
|
-
medium:
|
|
197
|
+
medium: r(n)
|
|
193
198
|
}, {
|
|
194
199
|
default: _(() => [
|
|
195
|
-
|
|
200
|
+
l(a.$slots, "default", {}, void 0, !0)
|
|
196
201
|
]),
|
|
197
202
|
_: 3
|
|
198
203
|
}, 8, ["el", "medium"]),
|
|
199
|
-
|
|
204
|
+
r(o)("description") ? (i(), v(r(y), {
|
|
200
205
|
key: 0,
|
|
201
206
|
class: "b-form-layout-title__description",
|
|
202
207
|
el: "span",
|
|
203
208
|
wide: ""
|
|
204
209
|
}, {
|
|
205
210
|
default: _(() => [
|
|
206
|
-
|
|
211
|
+
l(a.$slots, "description", {}, void 0, !0)
|
|
207
212
|
]),
|
|
208
213
|
_: 3
|
|
209
214
|
})) : g("", !0)
|
|
210
215
|
], 2));
|
|
211
216
|
}
|
|
212
217
|
});
|
|
213
|
-
const
|
|
218
|
+
const rt = /* @__PURE__ */ m(K, [["__scopeId", "data-v-fbc939de"]]);
|
|
214
219
|
export {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
220
|
+
ot as BentoFormLayout,
|
|
221
|
+
st as BentoFormLayoutFieldTip,
|
|
222
|
+
at as BentoFormLayoutGroup,
|
|
223
|
+
rt as BentoFormLayoutTitle
|
|
219
224
|
};
|
|
220
225
|
//# sourceMappingURL=form-layout.js.map
|
package/dist/form-layout.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-layout.js","sources":["../../vue2/src/components/form-layout/form-layout.vue","../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../../vue2/src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.ts","../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue","../../vue2/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 v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\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 } 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","import { BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n });\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","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","import { computed, onMounted, Ref } from 'vue';\nimport { BentoLayoutGroupProportions } from '../form-layout-group.types';\n\nconst DEFAULT_PROPORTION = 100;\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 // Split the values only if the are in BentoLayoutGroupProportions, otherwise return 100%\n const layout = computed(() =>\n BentoLayoutGroupProportions.includes(layoutProp.value) ? getLayoutValues(layoutProp.value) : DEFAULT_PROPORTION\n );\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\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, 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 * '33-33-33'\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 validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n const formLayoutGroup = ref(null);\n useFormLayoutGroupPercentage(toRef(props, 'layout'), formLayoutGroup);\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsopprted\n // \"form-layout.scss\" depends on this class\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n }));\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=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\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 } 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 * One of the values provided in @see BentoTypographyElement must always be provided as a string\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=\"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","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","DEFAULT_PROPORTION","useFormLayoutGroupPercentage","layoutProp","formLayoutGroupRef","getLayoutValues","layout2","_a","value","layout","onMounted","layoutClassName","child","index","__default__$1","formLayoutGroup","ref","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;;;;qFAsFIA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEC5CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,6CCiDHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qECxCGC,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCpBAC,IAAA,KAYaC,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,KAEAC,IAAAjB;AAAA,IAAe,MAAAQ,EAAA,SAAAG,EAAA,KAAA,IAAAE,EAAAF,EAAA,KAAA,IAAAF;AAAA,EACkF;AAGjG,EAAAS,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,GCuCIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA/BAC,IAAAC,EAAA,IAAA;AACA,IAAAd,EAAAL,EAAAJ,GAAA,QAAA,GAAAsB,CAAA;AAEA,UAAAE,IAAAzB,EAAA,OAAA;AAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA,IAG0C,EAAA;;;;;;;;;;qECwBrFyB,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDA/B,IAAAC,EAAA,GAyBA+B,IAAA3B,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACA8B,IAAAzB,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"form-layout.js","sources":["../../vue2/src/components/form-layout/form-layout.vue","../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../../vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../../vue2/src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.ts","../../vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue","../../vue2/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 v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\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 } 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","import { BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n });\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","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","import { computed, onMounted, Ref } from 'vue';\nimport { BentoLayoutGroupProportions } from '../form-layout-group.types';\n\nconst DEFAULT_PROPORTION = 100;\n\n/**\n * Wraps a FormLayoutGroup child inside a \"div\" container.\n * This helps preventing the components from re-writing the classes or styles.\n * @param {Element} child - Child element to be wrapped\n * @param {HTMLDivElement} container - Container in which the child will be wrapped into\n * @param {string} containerClass - FormLayoutGroup layout percentage class\n */\nfunction wrapInsideContainer(child: Element, container: HTMLDivElement, containerClass: string) {\n // Insert container above the child\n child.parentNode.insertBefore(container, child);\n // Move child to the container\n container.appendChild(child);\n // Apply layout class\n container.classList.add(containerClass);\n}\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 // Split the values only if the are in BentoLayoutGroupProportions, otherwise return 100%\n const layout = computed(() =>\n BentoLayoutGroupProportions.includes(layoutProp.value) ? getLayoutValues(layoutProp.value) : DEFAULT_PROPORTION\n );\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\n immediateChildren.forEach((child, index) => {\n const containerClass = `${layoutClassName}--${layout.value[index] || '100'}`; // 100% default\n wrapInsideContainer(child, document.createElement('div'), containerClass);\n });\n });\n};\n","<template>\n <div ref=\"formLayoutGroup\" class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, 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 * '33-33-33'\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 validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n const formLayoutGroup = ref(null);\n useFormLayoutGroupPercentage(toRef(props, 'layout'), formLayoutGroup);\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsopprted\n // \"form-layout.scss\" depends on this class\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n }));\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=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\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 } 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 * One of the values provided in @see BentoTypographyElement must always be provided as a string\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=\"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","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","DEFAULT_PROPORTION","wrapInsideContainer","child","container","containerClass","useFormLayoutGroupPercentage","layoutProp","formLayoutGroupRef","getLayoutValues","layout2","_a","value","layout","onMounted","layoutClassName","index","__default__$1","formLayoutGroup","ref","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;;;;qFAsFIA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEC5CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,6CCiDHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qECxCGC,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCpBAC,IAAA;AASA,SAAAC,EAAAC,GAAAC,GAAAC,GAAA;AAEI,EAAAF,EAAA,WAAA,aAAAC,GAAAD,CAAA,GAEAC,EAAA,YAAAD,CAAA,GAEAC,EAAA,UAAA,IAAAC,CAAA;AACJ;AAYa,MAAAC,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,KAEAC,IAAArB;AAAA,IAAe,MAAAQ,EAAA,SAAAO,EAAA,KAAA,IAAAE,EAAAF,EAAA,KAAA,IAAAN;AAAA,EACkF;AAGjG,EAAAa,EAAA,MAAA;AAEI,UAAAC,IAAAP,EAAA,MAAA,UAAA,CAAA;AAGA,IAFAA,EAAA,MAAA,iBAAA,IAAAO,OAAA,EAEA,QAAA,CAAAZ,GAAAa,MAAA;AACI,YAAAX,IAAA,GAAAU,MAAAF,EAAA,MAAAG,CAAA,KAAA;AACA,MAAAd,EAAAC,GAAA,SAAA,cAAA,KAAA,GAAAE,CAAA;AAAA,IAAwE,CAAA;AAAA,EAC3E,CAAA;AAET,GCqBIY,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA/BAC,IAAAC,EAAA,IAAA;AACA,IAAAb,EAAAT,EAAAJ,GAAA,QAAA,GAAAyB,CAAA;AAEA,UAAAE,IAAA5B,EAAA,OAAA;AAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA,IAG0C,EAAA;;;;;;;;;;qECwBrF4B,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDAlC,IAAAC,EAAA,GAyBAkC,IAAA9B,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACAiC,IAAA5B,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/header.js
CHANGED
|
@@ -4,12 +4,12 @@ import { BentoButtonActions as W } from "./button.js";
|
|
|
4
4
|
import { _ as P } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
5
5
|
import { BentoInfoIcon as q } from "./info-icon.js";
|
|
6
6
|
import { u as z } from "./chunks/use-has-slot.4d98bf29.js";
|
|
7
|
-
import { B as F, c as O, a as j } from "./chunks/index.
|
|
7
|
+
import { B as F, c as O, a as j } from "./chunks/index.7f24db66.js";
|
|
8
8
|
import { u as J } from "./chunks/i18n.6c402773.js";
|
|
9
9
|
import { c as b, a as K } from "./chunks/index.86453263.js";
|
|
10
10
|
import { r as d, t as c, e as N, g as w, d as Q, f as Z } from "./chunks/index.f55fdc32.js";
|
|
11
11
|
import { e as ee } from "./chunks/index.fdf12170.js";
|
|
12
|
-
import "./assets/
|
|
12
|
+
import "./assets/index20.css";
|
|
13
13
|
function te(e, n) {
|
|
14
14
|
d(2, arguments);
|
|
15
15
|
var o = c(e), t = c(n), r = o.getFullYear() - t.getFullYear(), a = o.getMonth() - t.getMonth();
|
package/dist/index.js
CHANGED
|
@@ -5,20 +5,20 @@ import { reactive as C, defineComponent as b, computed as k, openBlock as a, cre
|
|
|
5
5
|
import { g as E } from "./chunks/unique-id.a2a2b458.js";
|
|
6
6
|
import { BentoAccordion as K, BentoAccordionItem as Q } from "./accordion.js";
|
|
7
7
|
import { BentoAlert as H, BentoAlertEvent as j, BentoAlertTypeOption as J, BentoAlertVariant as X } from "./alert.js";
|
|
8
|
-
import { a as Z, b as ee, B as te } from "./chunks/button.
|
|
8
|
+
import { a as Z, b as ee, B as te } from "./chunks/button.975d0bb8.js";
|
|
9
9
|
import { BentoCard as ne, BentoCardBackground as re, BentoCardTitleSize as ae } from "./card.js";
|
|
10
10
|
import { BentoColumnOverflow as Be, BentoDataGrid as se, BentoDatagridAriaSortValue as me, BentoDatagridEvent as pe, BentoDatagridSortDirection as le, BentoDatagridStyleState as de } from "./data-grid.js";
|
|
11
11
|
import { BentoDatePicker as fe, BentoDatePickerEvent as ce } from "./date-picker.js";
|
|
12
|
-
import { B as xe, a as ge } from "./chunks/index.
|
|
13
|
-
import { B as Se, u as he } from "./chunks/dropdown.
|
|
12
|
+
import { B as xe, a as ge } from "./chunks/index.1dc4ebae.js";
|
|
13
|
+
import { B as Se, u as he } from "./chunks/dropdown.7a104ce3.js";
|
|
14
14
|
import { BentoDropdownAvatar as be, BentoDropdownCountry as ke, BentoDropdownCurrency as ve, BentoDropdownPaymentMethod as De, BentoDropdownTag as Ee } from "./dropdown.js";
|
|
15
15
|
import { BentoDivider as Le } from "./divider.js";
|
|
16
|
-
import { B as _e, b as Fe, a as Ve } from "./chunks/checkbox.
|
|
16
|
+
import { B as _e, b as Fe, a as Ve } from "./chunks/checkbox.67ceb148.js";
|
|
17
17
|
import { BentoClickOutside as Ge } from "./click-outside.js";
|
|
18
18
|
import { BentoCodeSnippet as Me, BentoCodeSnippetEvent as Oe, BentoCodeSnippetSupportedLanguage as $e, BentoCodeSnippetVariant as Re } from "./code-snippet.js";
|
|
19
19
|
import { BentoCountry as Ne, BentoCountryCode as qe, BentoCountryVariant as ze, useCountryCapital as Ke, useCountryName as Qe, useCountryPhoneCode as We } from "./country.js";
|
|
20
20
|
import { BentoCurrency as je, BentoCurrencyISOCode as Je } from "./currency.js";
|
|
21
|
-
import { B as Ye, a as Ze } from "./chunks/index.
|
|
21
|
+
import { B as Ye, a as Ze } from "./chunks/index.d68847b0.js";
|
|
22
22
|
import { BentoEmptyState as tt, BentoEmptyStateImage as ot, BentoEmptyStateImageVariant as nt, BentoEmptyStateVariant as rt } from "./empty-state.js";
|
|
23
23
|
import { BentoFilterBar as it, BentoFilterBarEvent as Bt, BentoFilterEvent as st, BentoFilterItemType as mt } from "./filter-bar.js";
|
|
24
24
|
import { BentoFormLayout as lt, BentoFormLayoutFieldTip as dt, BentoFormLayoutGroup as ut, BentoFormLayoutTitle as ft } from "./form-layout.js";
|
|
@@ -27,7 +27,7 @@ import { BentoInputField as gt, BentoInputFieldElementPosition as Tt, BentoInput
|
|
|
27
27
|
import { BentoLoadingIndicator as vt, BentoLoadingIndicatorEvent as Dt } from "./loading-indicator.js";
|
|
28
28
|
import { BentoMenu as It, BentoMenuEvent as Lt } from "./menu.js";
|
|
29
29
|
import { BentoModal as _t } from "./modal.js";
|
|
30
|
-
import { b as Vt, d as wt, e as Gt, c as At, a as Mt, B as Ot } from "./chunks/base-modal.
|
|
30
|
+
import { b as Vt, d as wt, e as Gt, c as At, a as Mt, B as Ot } from "./chunks/base-modal.53a229ac.js";
|
|
31
31
|
import { BentoHeader as Rt } from "./header.js";
|
|
32
32
|
import { BentoPagination as Nt } from "./pagination.js";
|
|
33
33
|
import { BentoPaymentMethod as zt, BentoPaymentMethodType as Kt } from "./payment-method.js";
|
|
@@ -37,7 +37,7 @@ import { BentoSearchBar as Zt, BentoSearchBarEvent as eo, BentoSearchBarInternal
|
|
|
37
37
|
import { BentoSegmentedControl as no, BentoSegmentedControlEvent as ro } from "./segmented-control.js";
|
|
38
38
|
import { BentoStatus as io, BentoStatusVariant as Bo } from "./status.js";
|
|
39
39
|
import { BentoStep as mo, BentoStepper as po, BentoStepperTypeOption as lo, BentoStepperVariantOption as uo } from "./stepper.js";
|
|
40
|
-
import { B as co, a as yo } from "./chunks/index.
|
|
40
|
+
import { B as co, a as yo } from "./chunks/index.4c951e0d.js";
|
|
41
41
|
import { BentoSummaryGrid as go, BentoSummaryGridItemAmount as To, BentoSummaryGridItemCustom as So, BentoSummaryGridItemNumeric as ho, BentoSummaryGridItemPercentage as Co, BentoSummaryGridItemSize as bo, BentoSummaryGridItemText as ko, BentoSummaryGridItemTrendDirection as vo } from "./summary-grid.js";
|
|
42
42
|
import { BentoTab as Eo, BentoTabs as Io } from "./tabs.js";
|
|
43
43
|
import { BentoTag as Po, BentoTagVariant as _o } from "./tag.js";
|
|
@@ -46,21 +46,21 @@ import { BentoTimeline as Go, BentoTimelineGapUnit as Ao, BentoTimelineItem as M
|
|
|
46
46
|
import { BentoToast as Uo } from "./toast.js";
|
|
47
47
|
import { u as qo } from "./chunks/toastController.0b01d2e8.js";
|
|
48
48
|
import { BentoToggle as Ko, BentoToggleLabelPosition as Qo, BentoTogglePropClass as Wo } from "./toggle.js";
|
|
49
|
-
import { B as c } from "./chunks/index.
|
|
50
|
-
import { c as jo, b as Jo, a as Xo } from "./chunks/index.
|
|
49
|
+
import { B as c } from "./chunks/index.7f24db66.js";
|
|
50
|
+
import { c as jo, b as Jo, a as Xo } from "./chunks/index.7f24db66.js";
|
|
51
51
|
import { D as Zo } from "./chunks/date-input.9186a0bf.js";
|
|
52
52
|
import { a as tn, B as on } from "./chunks/keyboard-navigation.ca47dfa8.js";
|
|
53
|
-
import { a as rn, b as an } from "./chunks/listbox.
|
|
53
|
+
import { a as rn, b as an } from "./chunks/listbox.0f25778d.js";
|
|
54
54
|
import { B as sn } from "./chunks/directive.0408e565.js";
|
|
55
|
-
import { b as pn, B as ln, a as dn } from "./chunks/tooltip.
|
|
55
|
+
import { b as pn, B as ln, a as dn } from "./chunks/tooltip.b5391514.js";
|
|
56
56
|
import { BentoButtonActions as fn, BentoButtonActionsLayout as cn, BentoButtonActionsLayoutBasic as yn, BentoButtonActionsLayoutExtended as xn } from "./button.js";
|
|
57
|
-
import { B as Tn, a as Sn } from "./chunks/loading-button.
|
|
58
|
-
import { b as Cn, b as bn } from "./chunks/calendar.
|
|
57
|
+
import { B as Tn, a as Sn } from "./chunks/loading-button.6523a015.js";
|
|
58
|
+
import { b as Cn, b as bn } from "./chunks/calendar.cc37ac1f.js";
|
|
59
59
|
import { BentoCheckboxGroup as vn, BentoCheckboxGroupVariant as Dn } from "./checkbox.js";
|
|
60
60
|
import { BentoLinkVariant as d } from "./link.js";
|
|
61
61
|
import { RouterLink as y } from "vue-router";
|
|
62
62
|
import { _ as I } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
63
|
-
import "./assets/
|
|
63
|
+
import "./assets/index14.css";
|
|
64
64
|
class L {
|
|
65
65
|
constructor() {
|
|
66
66
|
f(this, "_state");
|
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 b, resolveComponent as $, 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.b5391514.js";
|
|
4
4
|
import { _ as c } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
5
|
-
import "./assets/
|
|
5
|
+
import "./assets/index21.css";
|
|
6
6
|
let r = 0;
|
|
7
7
|
const P = {
|
|
8
8
|
beforeCreate() {
|
package/dist/input-field.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as re, useAttrs as ne, useSlots as le, ref as I, toRef as se, computed as n, toRefs as ue, openBlock as d, createBlock as u, unref as t, normalizeClass as pe, withCtx as c, createElementBlock as f, createVNode as B, renderSlot as b, createTextVNode as q, toDisplayString as G, createCommentVNode as o, createElementVNode as x, withModifiers as z, mergeProps as N, withKeys as ce } from "vue";
|
|
2
|
-
import { d as fe, B as y } from "./chunks/index.
|
|
2
|
+
import { d as fe, B as y } from "./chunks/index.7f24db66.js";
|
|
3
3
|
import { u as be } from "./chunks/use-has-slot.4d98bf29.js";
|
|
4
4
|
import { u as ye } from "./chunks/use-form-layout-loading.d03e5d48.js";
|
|
5
5
|
import { g as A } from "./chunks/unique-id.a2a2b458.js";
|
|
6
6
|
import { u as ve } from "./chunks/i18n.6c402773.js";
|
|
7
|
-
import { B as j, a as W } from "./chunks/dropdown.
|
|
7
|
+
import { B as j, a as W } from "./chunks/dropdown.7a104ce3.js";
|
|
8
8
|
import { g as me } from "./chunks/get-slot-text.bead058f.js";
|
|
9
9
|
import { u as De } from "./chunks/aria-label.ac9651a5.js";
|
|
10
|
-
import { E as _e } from "./chunks/error-message.
|
|
10
|
+
import { E as _e } from "./chunks/error-message.b91afffc.js";
|
|
11
11
|
import { _ as we } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
12
|
-
import "./assets/
|
|
12
|
+
import "./assets/index39.css";
|
|
13
13
|
var v = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PAYMENT_METHOD = "payment-method", e.STATIC_VALUE = "static-value", e.DROPDOWN = "dropdown", e))(v || {}), l = /* @__PURE__ */ ((e) => (e.START = "start", e.END = "end", e))(l || {}), m = /* @__PURE__ */ ((e) => (e.CONDENSED = "condensed", e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e.SMALL_PADDING_LEFT = "small-padding-left", e.SMALL_PADDING_RIGHT = "small-padding-right", e))(m || {}), R = /* @__PURE__ */ ((e) => (e.SEARCH = "search", e.TEXT = "text", e.NUMBER = "number", e))(R || {}), Ae = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.ESCAPE_PRESSED = "escape-pressed", e.UPDATE_DROPDOWN = "update:dropdown", e.DROPDOWN_INPUT = "dropdown-input", e.FOCUS = "focus", e.CHANGE = "change", e.BLUR = "blur", e.KEYDOWN = "keydown", e))(Ae || {});
|
|
14
14
|
const Y = {
|
|
15
15
|
"en-US": {
|
package/dist/internal.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { B as P, L as Q } from "./chunks/listbox-option-tag.
|
|
2
|
-
import { C as Z, a as ee, b as te } from "./chunks/calendar.
|
|
3
|
-
import { C as re } from "./chunks/copy.
|
|
4
|
-
import { C as ae } from "./chunks/controls-group.
|
|
5
|
-
import { E as ne } from "./chunks/error-message.
|
|
1
|
+
import { B as P, L as Q } from "./chunks/listbox-option-tag.0f31ecb2.js";
|
|
2
|
+
import { C as Z, a as ee, b as te } from "./chunks/calendar.cc37ac1f.js";
|
|
3
|
+
import { C as re } from "./chunks/copy.7a73d1fd.js";
|
|
4
|
+
import { C as ae } from "./chunks/controls-group.7214dc7f.js";
|
|
5
|
+
import { E as ne } from "./chunks/error-message.b91afffc.js";
|
|
6
6
|
import { ref as n, computed as a, defineComponent as W, openBlock as x, createElementBlock as g, createElementVNode as B, normalizeStyle as w, unref as t, renderSlot as E, createVNode as h, withCtx as R, createCommentVNode as L } from "vue";
|
|
7
|
-
import { a as S } from "./chunks/button.
|
|
7
|
+
import { a as S } from "./chunks/button.975d0bb8.js";
|
|
8
8
|
import { u as V } from "./chunks/i18n.6c402773.js";
|
|
9
9
|
import { C as G, a as I } from "./chunks/chevron-right.aef416c6.js";
|
|
10
10
|
import { _ as O } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
11
11
|
import { G as ie, a as fe } from "./chunks/grid-layout.7c919507.js";
|
|
12
|
-
import { B as de } from "./chunks/listbox.
|
|
13
|
-
import "./assets/
|
|
12
|
+
import { B as de } from "./chunks/listbox.0f25778d.js";
|
|
13
|
+
import "./assets/index13.css";
|
|
14
14
|
const A = ({
|
|
15
15
|
contentRef: C,
|
|
16
16
|
containerRef: f,
|
package/dist/link.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as g, computed as b, useAttrs as h, openBlock as a, createElementBlock as v, mergeProps as y, unref as e, createBlock as n, withCtx as i, renderSlot as r } from "vue";
|
|
2
2
|
import { RouterLink as T } from "vue-router";
|
|
3
|
-
import { B as k } from "./chunks/index.
|
|
3
|
+
import { B as k } from "./chunks/index.7f24db66.js";
|
|
4
4
|
import { _ as B } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
5
|
-
import "./assets/
|
|
5
|
+
import "./assets/index22.css";
|
|
6
6
|
var l = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.QUIET = "quiet", t))(l || {});
|
|
7
7
|
const E = ["href", "title", "target"], U = {
|
|
8
8
|
name: "bento-link",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t, onMounted as i, onUnmounted as l, computed as s, openBlock as d, createElementBlock as r, normalizeClass as c } from "vue";
|
|
2
2
|
import { _ } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
3
|
-
import "./assets/
|
|
3
|
+
import "./assets/index35.css";
|
|
4
4
|
var e = /* @__PURE__ */ ((a) => (a.START = "loading-start", a.END = "loading-end", a))(e || {});
|
|
5
5
|
const p = t({
|
|
6
6
|
name: "bento-loading-indicator",
|
package/dist/menu.js
CHANGED
|
@@ -2,12 +2,12 @@ import { openBlock as m, createElementBlock as k, mergeProps as V, toDisplayStri
|
|
|
2
2
|
import { _ as S } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
3
3
|
import { g as F } from "./chunks/unique-id.a2a2b458.js";
|
|
4
4
|
import { B as me } from "./chunks/directive.0408e565.js";
|
|
5
|
-
import { a as pe } from "./chunks/button.
|
|
5
|
+
import { a as pe } from "./chunks/button.975d0bb8.js";
|
|
6
6
|
import { BentoPopover as fe, BentoPopoverPositions as H } from "./popover.js";
|
|
7
7
|
import { a as ve, C as A } from "./chunks/chevron-right.aef416c6.js";
|
|
8
|
-
import { B as _e, a as q } from "./chunks/base-button.
|
|
9
|
-
import { B as be } from "./chunks/index.
|
|
10
|
-
import "./assets/
|
|
8
|
+
import { B as _e, a as q } from "./chunks/base-button.4b5ab17e.js";
|
|
9
|
+
import { B as be } from "./chunks/index.7f24db66.js";
|
|
10
|
+
import "./assets/index36.css";
|
|
11
11
|
let U = 0;
|
|
12
12
|
const ye = {
|
|
13
13
|
beforeCreate() {
|
package/dist/modal.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as S, onMounted as E, resolveComponent as v, openBlock as m, createBlock as p, mergeProps as M, createSlots as $, withCtx as l, renderSlot as a, createVNode as z, toRefs as R, computed as b, createTextVNode as q, toDisplayString as P, useAttrs as I, watch as F, resolveDynamicComponent as j } from "vue";
|
|
2
|
-
import { f as T, b as B, e as f, d as c, c as G, B as C, a as L } from "./chunks/base-modal.
|
|
2
|
+
import { f as T, b as B, e as f, d as c, c as G, B as C, a as L } from "./chunks/base-modal.53a229ac.js";
|
|
3
3
|
import { u as A } from "./chunks/use-has-slot.4d98bf29.js";
|
|
4
|
-
import { F as U } from "./chunks/footer-actions.
|
|
4
|
+
import { F as U } from "./chunks/footer-actions.13f19a22.js";
|
|
5
5
|
import { _ as O } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
6
|
-
import { B as h } from "./chunks/button.
|
|
6
|
+
import { B as h } from "./chunks/button.975d0bb8.js";
|
|
7
7
|
import { u as K } from "./chunks/i18n.6c402773.js";
|
|
8
8
|
import { BentoButtonActions as W } from "./button.js";
|
|
9
9
|
const Y = S({
|
package/dist/pagination.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as y, ref as A, computed as m, resolveComponent as u, openBlock as o, createElementBlock as _, createVNode as p, withCtx as c, createBlock as P, resolveDynamicComponent as E, mergeProps as C, createSlots as U, createTextVNode as N, toDisplayString as h, createCommentVNode as $, pushScopeId as T, popScopeId as w, createElementVNode as d, toRefs as V, normalizeClass as j } from "vue";
|
|
2
2
|
import { u as J } from "./chunks/aria-label.ac9651a5.js";
|
|
3
|
-
import { B as R } from "./chunks/index.
|
|
4
|
-
import { B as F } from "./chunks/dropdown.
|
|
3
|
+
import { B as R } from "./chunks/index.7f24db66.js";
|
|
4
|
+
import { B as F } from "./chunks/dropdown.7a104ce3.js";
|
|
5
5
|
import { g as M } from "./chunks/unique-id.a2a2b458.js";
|
|
6
6
|
import { g as D, a as Z } from "./chunks/i18n.6c402773.js";
|
|
7
7
|
import { _ as f } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
8
|
-
import { a as K } from "./chunks/button.
|
|
9
|
-
import "./assets/
|
|
8
|
+
import { a as K } from "./chunks/button.975d0bb8.js";
|
|
9
|
+
import "./assets/index44.css";
|
|
10
10
|
const q = {
|
|
11
11
|
"en-US": {
|
|
12
12
|
showingItems: "Showing {itemCount} items",
|