@adyen/bento-vue3 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useKeyboardNavigator/useKeyboardNavigator.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useScroller/useScroller.d.ts +6 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +23 -422
- package/dist/@types/packages/vue2/src/components/divider/divider.vue.d.ts +1 -5
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/input-field/input-field.types.d.ts +1 -3
- package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +9 -0
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +4 -4
- package/dist/alert.js +58 -59
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/cross.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/field-label.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/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/index46.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/assets/listbox.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +2 -2
- package/dist/checkbox.js +5 -5
- package/dist/chunks/arrow-left.81a91b8f.js +29 -0
- package/dist/chunks/arrow-left.81a91b8f.js.map +1 -0
- package/dist/chunks/{base-modal.3dcf8376.js → base-modal.a629cb32.js} +3 -3
- package/dist/chunks/{base-modal.3dcf8376.js.map → base-modal.a629cb32.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.3f52ea2d.js → button-actions-with-menu.f6dfb14d.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.3f52ea2d.js.map → button-actions-with-menu.f6dfb14d.js.map} +1 -1
- package/dist/chunks/{calendar.d4ab387d.js → calendar.fa7712e8.js} +2 -2
- package/dist/chunks/{calendar.d4ab387d.js.map → calendar.fa7712e8.js.map} +1 -1
- package/dist/chunks/{checkbox.03c4b0fe.js → checkbox.731dc0ab.js} +71 -72
- package/dist/chunks/checkbox.731dc0ab.js.map +1 -0
- package/dist/chunks/checkmark-circle-fill.c45a999d.js +44 -0
- package/dist/chunks/checkmark-circle-fill.c45a999d.js.map +1 -0
- package/dist/chunks/checkmark-small.c79220d9.js +29 -0
- package/dist/chunks/checkmark-small.c79220d9.js.map +1 -0
- package/dist/chunks/checkmark.eb3c7a06.js +29 -0
- package/dist/chunks/checkmark.eb3c7a06.js.map +1 -0
- package/dist/chunks/chevron-left.4ee92950.js +52 -0
- package/dist/chunks/chevron-left.4ee92950.js.map +1 -0
- package/dist/chunks/chevron-up.46afb34c.js +52 -0
- package/dist/chunks/chevron-up.46afb34c.js.map +1 -0
- package/dist/chunks/{controls-group.807b5fb0.js → controls-group.d6543674.js} +2 -2
- package/dist/chunks/{controls-group.807b5fb0.js.map → controls-group.d6543674.js.map} +1 -1
- package/dist/chunks/{copy.28bd4298.js → copy.330d594e.js} +36 -37
- package/dist/chunks/copy.330d594e.js.map +1 -0
- package/dist/chunks/cross-circle-fill.1abec1a2.js +44 -0
- package/dist/chunks/cross-circle-fill.1abec1a2.js.map +1 -0
- package/dist/chunks/cross.26509efc.js +29 -0
- package/dist/chunks/cross.26509efc.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.74c4584a.js → dropdown-default-textbox.4108b289.js} +63 -58
- package/dist/chunks/{dropdown-default-textbox.74c4584a.js.map → dropdown-default-textbox.4108b289.js.map} +1 -1
- package/dist/chunks/{dropdown.502e1f5c.js → dropdown.63de9aac.js} +209 -201
- package/dist/chunks/dropdown.63de9aac.js.map +1 -0
- package/dist/chunks/field-label.3c19a29a.js +146 -0
- package/dist/chunks/field-label.3c19a29a.js.map +1 -0
- package/dist/chunks/{fixed-scroller.92bb77a6.js → fixed-scroller.bced60dd.js} +2 -2
- package/dist/chunks/{fixed-scroller.92bb77a6.js.map → fixed-scroller.bced60dd.js.map} +1 -1
- package/dist/chunks/{index.cf0d3be3.js → index.4d2a13e1.js} +2 -2
- package/dist/chunks/{index.cf0d3be3.js.map → index.4d2a13e1.js.map} +1 -1
- package/dist/chunks/{index.d2542c6a.js → index.73ed22a7.js} +145 -150
- package/dist/chunks/index.73ed22a7.js.map +1 -0
- package/dist/chunks/{index.7262642e.js → index.85832db5.js} +3 -3
- package/dist/chunks/{index.7262642e.js.map → index.85832db5.js.map} +1 -1
- package/dist/chunks/{index.abb2a1d5.js → index.89dfe209.js} +2 -2
- package/dist/chunks/{index.abb2a1d5.js.map → index.89dfe209.js.map} +1 -1
- package/dist/chunks/{index.726e2f3c.js → index.98174339.js} +4 -4
- package/dist/chunks/{index.726e2f3c.js.map → index.98174339.js.map} +1 -1
- package/dist/chunks/{index.e9156fe3.js → index.c6fecf1c.js} +7 -7
- package/dist/chunks/{index.e9156fe3.js.map → index.c6fecf1c.js.map} +1 -1
- package/dist/chunks/{index.b043371e.js → index.edcaf766.js} +5 -5
- package/dist/chunks/{index.b043371e.js.map → index.edcaf766.js.map} +1 -1
- package/dist/chunks/info-filled.e591599f.js +67 -0
- package/dist/chunks/info-filled.e591599f.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.5b00c85f.js → listbox-option-tag.b1eb32bd.js} +2 -2
- package/dist/chunks/{listbox-option-tag.5b00c85f.js.map → listbox-option-tag.b1eb32bd.js.map} +1 -1
- package/dist/chunks/{listbox.d07c24e6.js → listbox.ac43f8ab.js} +39 -36
- package/dist/chunks/{listbox.d07c24e6.js.map → listbox.ac43f8ab.js.map} +1 -1
- package/dist/chunks/{loading-button.ad7cfaee.js → loading-button.4b88e24d.js} +3 -3
- package/dist/chunks/{loading-button.ad7cfaee.js.map → loading-button.4b88e24d.js.map} +1 -1
- package/dist/chunks/refresh.bd60f6a8.js +29 -0
- package/dist/chunks/refresh.bd60f6a8.js.map +1 -0
- package/dist/chunks/search.ade93bda.js +44 -0
- package/dist/chunks/search.ade93bda.js.map +1 -0
- package/dist/chunks/{tooltip.054d2eb6.js → tooltip.27c32d36.js} +2 -2
- package/dist/chunks/{tooltip.054d2eb6.js.map → tooltip.27c32d36.js.map} +1 -1
- package/dist/code-snippet.js +425 -428
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +1 -1
- package/dist/data-grid.js +1080 -1140
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +6 -6
- package/dist/date-range-picker.js +2 -2
- package/dist/divider.js +9 -26
- package/dist/divider.js.map +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/empty-state.js +1 -1
- package/dist/filter-bar.js +1035 -836
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +2 -2
- package/dist/index.js +12 -12
- package/dist/info-icon.js +38 -39
- package/dist/info-icon.js.map +1 -1
- package/dist/input-field.js +105 -107
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +7 -7
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal.js +1 -1
- package/dist/pagination.js +149 -157
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +2 -2
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +3 -3
- package/dist/search-bar.js +4 -4
- package/dist/segmented-control.js +3 -3
- package/dist/sidepanel.js +4 -4
- package/dist/status.js +1 -1
- package/dist/stepper.js +78 -79
- package/dist/stepper.js.map +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +2 -2
- package/dist/tabs.js +2 -2
- package/dist/tag.js +2 -2
- package/dist/textarea.js +46 -47
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +92 -93
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +2 -2
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +86 -87
- package/dist/tutorial.js.map +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/assets/arrow-left.css +0 -1
- package/dist/assets/checkmark-circle-fill.css +0 -1
- package/dist/assets/checkmark-small.css +0 -1
- package/dist/assets/checkmark.css +0 -1
- package/dist/assets/chevron-left.css +0 -1
- package/dist/assets/chevron-up.css +0 -1
- package/dist/assets/cross-circle-fill.css +0 -1
- package/dist/assets/info-filled.css +0 -1
- package/dist/assets/refresh.css +0 -1
- package/dist/assets/search.css +0 -1
- package/dist/chunks/arrow-left.cdbcc128.js +0 -30
- package/dist/chunks/arrow-left.cdbcc128.js.map +0 -1
- package/dist/chunks/checkbox.03c4b0fe.js.map +0 -1
- package/dist/chunks/checkmark-circle-fill.e6b84561.js +0 -45
- package/dist/chunks/checkmark-circle-fill.e6b84561.js.map +0 -1
- package/dist/chunks/checkmark-small.3e93a119.js +0 -30
- package/dist/chunks/checkmark-small.3e93a119.js.map +0 -1
- package/dist/chunks/checkmark.83e4f1e0.js +0 -30
- package/dist/chunks/checkmark.83e4f1e0.js.map +0 -1
- package/dist/chunks/chevron-left.2fd6b083.js +0 -54
- package/dist/chunks/chevron-left.2fd6b083.js.map +0 -1
- package/dist/chunks/chevron-up.9bf21068.js +0 -54
- package/dist/chunks/chevron-up.9bf21068.js.map +0 -1
- package/dist/chunks/copy.28bd4298.js.map +0 -1
- package/dist/chunks/cross-circle-fill.0feb37b3.js +0 -45
- package/dist/chunks/cross-circle-fill.0feb37b3.js.map +0 -1
- package/dist/chunks/cross.5c36a670.js +0 -30
- package/dist/chunks/cross.5c36a670.js.map +0 -1
- package/dist/chunks/dropdown.502e1f5c.js.map +0 -1
- package/dist/chunks/field-label.61679178.js +0 -132
- package/dist/chunks/field-label.61679178.js.map +0 -1
- package/dist/chunks/index.d2542c6a.js.map +0 -1
- package/dist/chunks/info-filled.514a2db6.js +0 -69
- package/dist/chunks/info-filled.514a2db6.js.map +0 -1
- package/dist/chunks/refresh.c38c9eee.js +0 -30
- package/dist/chunks/refresh.c38c9eee.js.map +0 -1
- package/dist/chunks/search.d18f9657.js +0 -45
- package/dist/chunks/search.d18f9657.js.map +0 -1
|
@@ -1,52 +1,51 @@
|
|
|
1
|
-
import { openBlock as a, createElementBlock as g, mergeProps as F, toDisplayString as A, createCommentVNode as t,
|
|
2
|
-
import { B as
|
|
3
|
-
import { C as
|
|
1
|
+
import { openBlock as a, createElementBlock as g, mergeProps as F, toDisplayString as A, createCommentVNode as t, createElementVNode as L, defineComponent as X, toRefs as M, computed as o, ref as x, resolveComponent as y, normalizeClass as ee, createBlock as i, withCtx as _, renderSlot as R, createTextVNode as P } from "vue";
|
|
2
|
+
import { B as ae } from "./index.75f3672e.js";
|
|
3
|
+
import { C as oe } from "./checkmark-small.c79220d9.js";
|
|
4
4
|
import { _ as Y } from "./_plugin-vue_export-helper.dad06003.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
5
|
+
import { u as le } from "./use-default-slot-validator.1169c221.js";
|
|
6
|
+
import { u as re } from "./use-has-slot.4d98bf29.js";
|
|
7
7
|
import { g as O } from "./unique-id.a2a2b458.js";
|
|
8
8
|
import { g as D } from "./get-slot-text.bead058f.js";
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { E as
|
|
9
|
+
import { u as te } from "./i18n.6c402773.js";
|
|
10
|
+
import { u as se } from "./aria-label.ac9651a5.js";
|
|
11
|
+
import { E as ne } from "./field-label.3c19a29a.js";
|
|
12
12
|
import "../assets/checkbox.css";
|
|
13
13
|
var u = /* @__PURE__ */ ((e) => (e.UNCHECKED = "unchecked", e.DISABLED = "disabled", e.ERROR = "error", e.READONLY = "readonly", e))(u || {}), d = /* @__PURE__ */ ((e) => (e.UPDATE = "update:model-value", e.INPUT = "input", e))(d || {});
|
|
14
14
|
let q = 0;
|
|
15
|
-
const
|
|
15
|
+
const ie = {
|
|
16
16
|
beforeCreate() {
|
|
17
17
|
this.uuid = q.toString(), q += 1;
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, de = { key: 0 }, ce = /* @__PURE__ */ L("path", {
|
|
20
20
|
fill: "#00112C",
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, null, -1));
|
|
25
|
-
function me(e, n, c, l, m, f) {
|
|
21
|
+
d: "M4.25 7.25H11.75V8.75H4.25V7.25Z"
|
|
22
|
+
}, null, -1);
|
|
23
|
+
function ue(e, s, c, l, p, h) {
|
|
26
24
|
return a(), g("svg", F({ role: "img" }, e.$attrs, {
|
|
25
|
+
class: "ui-assets-icons-16",
|
|
27
26
|
xmlns: "http://www.w3.org/2000/svg",
|
|
28
27
|
width: "16",
|
|
29
28
|
height: "16",
|
|
30
29
|
fill: "none"
|
|
31
30
|
}), [
|
|
32
|
-
e.$attrs["svg-title"] ? (a(), g("title",
|
|
33
|
-
|
|
31
|
+
e.$attrs["svg-title"] ? (a(), g("title", de, A(e.$attrs["svg-title"]), 1)) : t("", !0),
|
|
32
|
+
ce
|
|
34
33
|
], 16);
|
|
35
34
|
}
|
|
36
|
-
const
|
|
35
|
+
const be = /* @__PURE__ */ Y(ie, [["render", ue]]), H = {
|
|
37
36
|
"en-US": {
|
|
38
37
|
ariaLabelFallback: "Checkbox",
|
|
39
38
|
optional: "optional",
|
|
40
39
|
required: "required"
|
|
41
40
|
}
|
|
42
|
-
},
|
|
41
|
+
}, me = X({
|
|
43
42
|
name: "bento-checkbox",
|
|
44
43
|
i18n: { messages: H },
|
|
45
44
|
components: {
|
|
46
|
-
BentoTypography:
|
|
47
|
-
ErrorMessage:
|
|
48
|
-
CheckmarkSmallIcon:
|
|
49
|
-
MinusSmallIcon:
|
|
45
|
+
BentoTypography: ae,
|
|
46
|
+
ErrorMessage: ne,
|
|
47
|
+
CheckmarkSmallIcon: oe,
|
|
48
|
+
MinusSmallIcon: be
|
|
50
49
|
},
|
|
51
50
|
model: { prop: "modelValue" },
|
|
52
51
|
props: {
|
|
@@ -108,32 +107,32 @@ const fe = /* @__PURE__ */ Y(ce, [["render", me], ["__scopeId", "data-v-f5e2bac7
|
|
|
108
107
|
optional: { type: Boolean, default: !1 }
|
|
109
108
|
},
|
|
110
109
|
emits: [d.UPDATE, d.INPUT],
|
|
111
|
-
setup(e, { attrs:
|
|
112
|
-
const { t:
|
|
113
|
-
|
|
114
|
-
const
|
|
110
|
+
setup(e, { attrs: s, emit: c, slots: l }) {
|
|
111
|
+
const { t: p } = te({ messages: H }), h = O("description"), f = O("error"), k = re(l), { disabled: n, indeterminate: C, modelValue: r, readonly: $, value: E } = M(e), B = D(l)("default"), N = D(l)("description");
|
|
112
|
+
le("bento-checkbox", l.default, l.description);
|
|
113
|
+
const S = o(() => Array.isArray(r.value)), v = o(() => S.value ? r.value.some((b) => b === E.value) : r.value), I = o(() => !v.value && C.value), w = o(
|
|
115
114
|
() => !e.disabled && !e.readonly && (e.hasError || !!e.errorMessage)
|
|
116
115
|
), U = o(() => !e.disabled && !e.readonly && !!e.errorMessage), K = o(
|
|
117
116
|
() => I.value ? "mixed" : `${!!v.value}`
|
|
118
117
|
), z = o(
|
|
119
|
-
() => `${U.value ?
|
|
120
|
-
), G =
|
|
118
|
+
() => `${U.value ? f : ""} ${B && N ? h : ""}`.trim() || null
|
|
119
|
+
), G = x(s["aria-label"]), { ariaLabel: Z } = M(e), j = se({
|
|
121
120
|
ariaLabel: G.value,
|
|
122
121
|
// TODO: take this line away when the aria-label props is removed
|
|
123
122
|
label: Z,
|
|
124
|
-
defaultFallback: k("default") ? D(l)("default") :
|
|
125
|
-
}), J = o(() =>
|
|
126
|
-
[`b-checkbox--${u.DISABLED}`]:
|
|
127
|
-
[`b-checkbox--${u.READONLY}`]:
|
|
123
|
+
defaultFallback: k("default") ? D(l)("default") : p("ariaLabelFallback")
|
|
124
|
+
}), J = o(() => w.value), Q = o(() => ({
|
|
125
|
+
[`b-checkbox--${u.DISABLED}`]: n.value,
|
|
126
|
+
[`b-checkbox--${u.READONLY}`]: $.value
|
|
128
127
|
})), W = o(() => ({
|
|
129
128
|
[`b-checkbox__outline--${u.UNCHECKED}`]: !v.value && !I.value,
|
|
130
|
-
[`b-checkbox__outline--${u.ERROR}`]:
|
|
131
|
-
[`b-checkbox__outline--${u.READONLY}`]:
|
|
129
|
+
[`b-checkbox__outline--${u.ERROR}`]: w.value,
|
|
130
|
+
[`b-checkbox__outline--${u.READONLY}`]: $.value
|
|
132
131
|
}));
|
|
133
132
|
return {
|
|
134
133
|
// Values
|
|
135
|
-
descriptionId:
|
|
136
|
-
errorId:
|
|
134
|
+
descriptionId: h,
|
|
135
|
+
errorId: f,
|
|
137
136
|
ariaChecked: K,
|
|
138
137
|
ariaDescribedBy: z,
|
|
139
138
|
ariaInvalid: J,
|
|
@@ -141,41 +140,41 @@ const fe = /* @__PURE__ */ Y(ce, [["render", me], ["__scopeId", "data-v-f5e2bac7
|
|
|
141
140
|
conditionalClass: Q,
|
|
142
141
|
conditionalClassOutline: W,
|
|
143
142
|
defaultSlotValue: B,
|
|
144
|
-
descriptionSlotValue:
|
|
145
|
-
isCheckboxGroup:
|
|
143
|
+
descriptionSlotValue: N,
|
|
144
|
+
isCheckboxGroup: S,
|
|
146
145
|
isChecked: v,
|
|
147
146
|
isIndeterminate: I,
|
|
148
147
|
shouldShowErrorMessage: U,
|
|
149
148
|
// Methods
|
|
150
149
|
hasSlot: k,
|
|
151
|
-
onChange: (
|
|
152
|
-
if (
|
|
150
|
+
onChange: (b) => {
|
|
151
|
+
if (n.value)
|
|
153
152
|
return;
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
156
|
-
const
|
|
157
|
-
|
|
153
|
+
const V = b.target.checked;
|
|
154
|
+
if (S.value) {
|
|
155
|
+
const m = [...r.value], T = m.indexOf(E.value);
|
|
156
|
+
T === -1 ? m.push(E.value) : m.splice(T, 1), c(d.UPDATE, m), c(d.INPUT, m);
|
|
158
157
|
} else
|
|
159
|
-
c(d.UPDATE,
|
|
158
|
+
c(d.UPDATE, V), c(d.INPUT, V);
|
|
160
159
|
},
|
|
161
|
-
onClick: (
|
|
162
|
-
|
|
160
|
+
onClick: (b) => {
|
|
161
|
+
$.value && b.preventDefault();
|
|
163
162
|
},
|
|
164
|
-
t:
|
|
163
|
+
t: p
|
|
165
164
|
};
|
|
166
165
|
}
|
|
167
166
|
});
|
|
168
|
-
const
|
|
167
|
+
const pe = { class: "b-checkbox__input-container" }, he = ["aria-label", "aria-checked", "aria-describedby", "aria-invalid", "checked", "disabled", ".indeterminate", "value", "aria-readonly"], fe = {
|
|
169
168
|
key: 0,
|
|
170
169
|
class: "b-checkbox__text"
|
|
171
170
|
};
|
|
172
|
-
function
|
|
173
|
-
const
|
|
171
|
+
function ke(e, s, c, l, p, h) {
|
|
172
|
+
const f = y("checkmark-small-icon"), k = y("minus-small-icon"), n = y("bento-typography"), C = y("error-message");
|
|
174
173
|
return a(), g("label", {
|
|
175
|
-
class:
|
|
174
|
+
class: ee(["b-checkbox", e.conditionalClass])
|
|
176
175
|
}, [
|
|
177
|
-
L("div",
|
|
178
|
-
e.isChecked ? (a(), i(
|
|
176
|
+
L("div", pe, [
|
|
177
|
+
e.isChecked ? (a(), i(f, {
|
|
179
178
|
key: 0,
|
|
180
179
|
class: "b-checkbox__icon",
|
|
181
180
|
"svg-title": "checked"
|
|
@@ -201,34 +200,34 @@ function ye(e, n, c, l, m, f) {
|
|
|
201
200
|
value: e.value,
|
|
202
201
|
class: e.conditionalClassOutline,
|
|
203
202
|
"aria-readonly": e.readonly,
|
|
204
|
-
onChange:
|
|
205
|
-
onClick:
|
|
206
|
-
}), null, 16,
|
|
203
|
+
onChange: s[0] || (s[0] = (...r) => e.onChange && e.onChange(...r)),
|
|
204
|
+
onClick: s[1] || (s[1] = (...r) => e.onClick && e.onClick(...r))
|
|
205
|
+
}), null, 16, he)
|
|
207
206
|
]),
|
|
208
|
-
e.hasSlot("default") || e.shouldShowErrorMessage ? (a(), g("span",
|
|
209
|
-
e.hasSlot("default") ? (a(), i(
|
|
207
|
+
e.hasSlot("default") || e.shouldShowErrorMessage ? (a(), g("span", fe, [
|
|
208
|
+
e.hasSlot("default") ? (a(), i(n, {
|
|
210
209
|
key: 0,
|
|
211
210
|
class: "b-checkbox__label",
|
|
212
211
|
el: "span",
|
|
213
212
|
variant: "body"
|
|
214
213
|
}, {
|
|
215
|
-
default:
|
|
216
|
-
|
|
217
|
-
e.optional ? (a(), i(
|
|
214
|
+
default: _(() => [
|
|
215
|
+
R(e.$slots, "default", {}, void 0, !0),
|
|
216
|
+
e.optional ? (a(), i(n, {
|
|
218
217
|
key: 0,
|
|
219
218
|
class: "b-checkbox__text-requirement",
|
|
220
219
|
el: "span"
|
|
221
220
|
}, {
|
|
222
|
-
default:
|
|
221
|
+
default: _(() => [
|
|
223
222
|
P(" (" + A(e.t("optional")) + ") ", 1)
|
|
224
223
|
]),
|
|
225
224
|
_: 1
|
|
226
|
-
})) : e.required ? (a(), i(
|
|
225
|
+
})) : e.required ? (a(), i(n, {
|
|
227
226
|
key: 1,
|
|
228
227
|
class: "b-checkbox__text-requirement",
|
|
229
228
|
el: "span"
|
|
230
229
|
}, {
|
|
231
|
-
default:
|
|
230
|
+
default: _(() => [
|
|
232
231
|
P(" (" + A(e.t("required")) + ") ", 1)
|
|
233
232
|
]),
|
|
234
233
|
_: 1
|
|
@@ -236,15 +235,15 @@ function ye(e, n, c, l, m, f) {
|
|
|
236
235
|
]),
|
|
237
236
|
_: 3
|
|
238
237
|
})) : t("", !0),
|
|
239
|
-
e.hasSlot("default") && e.hasSlot("description") ? (a(), i(
|
|
238
|
+
e.hasSlot("default") && e.hasSlot("description") ? (a(), i(n, {
|
|
240
239
|
key: 1,
|
|
241
240
|
id: e.descriptionId,
|
|
242
241
|
class: "b-checkbox__description",
|
|
243
242
|
el: "span",
|
|
244
243
|
variant: "body"
|
|
245
244
|
}, {
|
|
246
|
-
default:
|
|
247
|
-
|
|
245
|
+
default: _(() => [
|
|
246
|
+
R(e.$slots, "description", {}, void 0, !0)
|
|
248
247
|
]),
|
|
249
248
|
_: 3
|
|
250
249
|
}, 8, ["id"])) : t("", !0),
|
|
@@ -256,10 +255,10 @@ function ye(e, n, c, l, m, f) {
|
|
|
256
255
|
])) : t("", !0)
|
|
257
256
|
], 2);
|
|
258
257
|
}
|
|
259
|
-
const
|
|
258
|
+
const Ne = /* @__PURE__ */ Y(me, [["render", ke], ["__scopeId", "data-v-f70246b6"]]);
|
|
260
259
|
export {
|
|
261
|
-
|
|
260
|
+
Ne as B,
|
|
262
261
|
u as a,
|
|
263
262
|
d as b
|
|
264
263
|
};
|
|
265
|
-
//# sourceMappingURL=checkbox.
|
|
264
|
+
//# sourceMappingURL=checkbox.731dc0ab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.731dc0ab.js","sources":["../../../vue2/src/components/checkbox/checkbox.types.ts","../../../vue2/node_modules/@adyen/ui-assets-icons-16/dist/vue/minus-small.vue","../../../vue2/src/components/checkbox/checkbox.vue"],"sourcesContent":["export type BentoMultiCheckboxType = Array<string | number>;\nexport type BentoCheckboxType = boolean | BentoMultiCheckboxType;\n\nexport enum BentoCheckboxState {\n UNCHECKED = 'unchecked',\n DISABLED = 'disabled',\n ERROR = 'error',\n READONLY = 'readonly',\n}\n\nexport enum BentoCheckboxEvent {\n UPDATE = 'update:model-value',\n INPUT = 'input',\n}\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M4.25 7.25H11.75V8.75H4.25V7.25Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <label class=\"b-checkbox\" :class=\"conditionalClass\">\n <div class=\"b-checkbox__input-container\">\n <!-- Don't change order because it matters for CSS. Icons first -->\n <checkmark-small-icon v-if=\"isChecked\" class=\"b-checkbox__icon\" svg-title=\"checked\" />\n <minus-small-icon v-if=\"isIndeterminate\" class=\"b-checkbox__icon\" svg-title=\"intermediate\" />\n <input\n ref=\"input\"\n role=\"checkbox\"\n class=\"b-checkbox__outline\"\n type=\"checkbox\"\n v-bind=\"$attrs\"\n :aria-label=\"computedAriaLabel\"\n :aria-checked=\"ariaChecked\"\n :aria-describedby=\"ariaDescribedBy\"\n :aria-invalid=\"ariaInvalid\"\n :checked=\"isChecked\"\n :disabled=\"disabled\"\n :indeterminate.prop=\"isIndeterminate\"\n :value=\"value\"\n :class=\"conditionalClassOutline\"\n :aria-readonly=\"readonly\"\n @change=\"onChange\"\n @click=\"onClick\"\n />\n </div>\n <span v-if=\"hasSlot('default') || shouldShowErrorMessage\" class=\"b-checkbox__text\">\n <bento-typography v-if=\"hasSlot('default')\" class=\"b-checkbox__label\" el=\"span\" variant=\"body\">\n <slot></slot>\n <bento-typography v-if=\"optional\" class=\"b-checkbox__text-requirement\" el=\"span\">\n ({{ t('optional') }})\n </bento-typography>\n <bento-typography v-else-if=\"required\" class=\"b-checkbox__text-requirement\" el=\"span\">\n ({{ t('required') }})\n </bento-typography>\n </bento-typography>\n <bento-typography\n v-if=\"hasSlot('default') && hasSlot('description')\"\n :id=\"descriptionId\"\n class=\"b-checkbox__description\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"description\"></slot>\n </bento-typography>\n <error-message v-if=\"shouldShowErrorMessage\" :id=\"errorId\" :error-message=\"errorMessage\" />\n </span>\n </label>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, ref, toRefs } from 'vue';\n import {\n BentoCheckboxEvent,\n BentoCheckboxState,\n BentoCheckboxType,\n BentoMultiCheckboxType,\n } from './checkbox.types';\n import { BentoTypography } from '@/components/typography';\n import { ErrorMessage } from '@/components/internal/error-message';\n import type { HTMLAttributes } from 'vue/types/jsx';\n import CheckmarkSmallIcon from '@adyen/ui-assets-icons-16/vue/checkmark-small';\n import MinusSmallIcon from '@adyen/ui-assets-icons-16/vue/minus-small';\n import { useDefaultSlotValidator, useHasSlot } from '@/composables';\n import { generateUid } from '@/utils/ts/unique-id';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n import { useI18n } from '@/utils/ts/i18n';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { BentoCheckboxGroupItems } from './components/checkbox-group/checkbox-group.types';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n /**\n * Checkboxes are used to make a binary choice about an option.\n * The label tag area is also clickable.\n *\n * @usage\n * import { BentoCheckbox } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoCheckbox },\n * template: `\n * <bento-checkbox>\n * Label text\n * <template #description>Sub label text</template>\n * </bento-checkbox>\n * `,\n * }\n */\n export default defineComponent({\n name: 'bento-checkbox',\n i18n: { messages },\n components: {\n BentoTypography,\n ErrorMessage,\n CheckmarkSmallIcon,\n MinusSmallIcon,\n },\n model: { prop: 'modelValue' },\n props: {\n /**\n * The value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n *\n * In the case of multiple checkboxes this value is used as a unique key.\n */\n value: { type: [String, Number], default: null },\n\n /**\n * When handling a single checkbox with a singular state, use a boolean.\n *\n * When handling multiple checkboxes, use an array of keys.\n * These keys exist as a set \"value\" prop for each checkbox.\n */\n modelValue: {\n type: [Boolean, Array] as PropType<BentoCheckboxType | BentoCheckboxGroupItems>,\n default: false,\n },\n\n /**\n * Setting this property to true will disable the checkbox in your form.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Highlights the checkbox is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Setting this property to true will set the checkbox to read only state.\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Setting this property to true will show the checkbox in error state.\n */\n hasError: { type: Boolean, default: false },\n\n /**\n * Renders the checkbox in an error state with an error message.\n */\n errorMessage: { type: String, default: null },\n\n /**\n * The :indeterminate CSS pseudo-class represents any form element\n * whose state is indeterminate, such as checkboxes which have their HTML indeterminate attribute\n * set to true, radio buttons which are members of a group in which all radio buttons are unchecked,\n * and indeterminate <progress> elements. https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate\n * This property lets you control the input.indeterminate native property.\n */\n indeterminate: { type: Boolean, default: false },\n\n /**\n * @deprecated from version 2.0.0. Use the aria-label attribute instead.\n */\n /**\n * Accessible name for the radio button component. It is strongly recommended to pas this value in case this component is used without a label.\n */\n ariaLabel: { type: String, default: null },\n\n /**\n * Highlights the checkbox is optional.\n */\n optional: { type: Boolean, default: false },\n },\n emits: [BentoCheckboxEvent.UPDATE, BentoCheckboxEvent.INPUT],\n setup(props, { attrs, emit, slots }) {\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const descriptionId = generateUid('description');\n const errorId = generateUid('error');\n const hasSlot = useHasSlot(slots);\n\n const { disabled, indeterminate, modelValue, readonly, value } = toRefs(props);\n\n const defaultSlotValue = getSlotText(slots)('default');\n const descriptionSlotValue = getSlotText(slots)('description');\n\n useDefaultSlotValidator('bento-checkbox', slots.default, slots.description);\n\n const isCheckboxGroup = computed(() => Array.isArray(modelValue.value));\n const isChecked = computed(() => {\n if (!isCheckboxGroup.value) {\n return modelValue.value as boolean;\n }\n\n return (modelValue.value as BentoMultiCheckboxType).some(item => item === value.value);\n });\n const isIndeterminate = computed(() => !isChecked.value && indeterminate.value);\n\n const shouldShowError = computed(\n () => !props.disabled && !props.readonly && (props.hasError || !!props.errorMessage)\n );\n const shouldShowErrorMessage = computed(() => !props.disabled && !props.readonly && !!props.errorMessage);\n\n // ARIA fields\n const ariaChecked = computed<HTMLAttributes['aria-checked']>(() =>\n isIndeterminate.value ? 'mixed' : `${!!isChecked.value}`\n );\n\n const ariaDescribedBy = computed<HTMLAttributes['aria-describedby']>(\n () =>\n `${shouldShowErrorMessage.value ? errorId : ''} ${\n defaultSlotValue && descriptionSlotValue ? descriptionId : ''\n }`.trim() || null\n );\n\n const ariaLabelAttribute = ref(attrs['aria-label']);\n const { ariaLabel } = toRefs(props);\n const computedAriaLabel = useAriaLabel({\n ariaLabel: ariaLabelAttribute.value as string,\n // TODO: take this line away when the aria-label props is removed\n label: ariaLabel,\n defaultFallback: hasSlot('default')\n ? (getSlotText(slots)('default') as string)\n : t('ariaLabelFallback'),\n });\n\n const ariaInvalid = computed<HTMLAttributes['aria-invalid']>(() => shouldShowError.value);\n\n const conditionalClass = computed(() => ({\n [`b-checkbox--${BentoCheckboxState.DISABLED}`]: disabled.value,\n [`b-checkbox--${BentoCheckboxState.READONLY}`]: readonly.value,\n }));\n const conditionalClassOutline = computed(() => ({\n [`b-checkbox__outline--${BentoCheckboxState.UNCHECKED}`]: !isChecked.value && !isIndeterminate.value,\n [`b-checkbox__outline--${BentoCheckboxState.ERROR}`]: shouldShowError.value,\n [`b-checkbox__outline--${BentoCheckboxState.READONLY}`]: readonly.value,\n }));\n\n // readonly attr doesn't work with checkbox, so we need to manually ignore the click instead\n const onClick = (event: Event) => {\n if (readonly.value) {\n event.preventDefault();\n }\n };\n\n const onChange = (event: Event) => {\n if (disabled.value) {\n return;\n }\n\n const newValue: boolean = (event.target as HTMLInputElement).checked;\n\n if (isCheckboxGroup.value) {\n const newCheckedList = [...(modelValue.value as BentoMultiCheckboxType)];\n const index = newCheckedList.indexOf(value.value);\n\n if (index === -1) {\n newCheckedList.push(value.value);\n } else {\n newCheckedList.splice(index, 1);\n }\n emit(BentoCheckboxEvent.UPDATE, newCheckedList);\n emit(BentoCheckboxEvent.INPUT, newCheckedList);\n } else {\n emit(BentoCheckboxEvent.UPDATE, newValue);\n emit(BentoCheckboxEvent.INPUT, newValue);\n }\n };\n\n return {\n // Values\n descriptionId,\n errorId,\n ariaChecked,\n ariaDescribedBy,\n ariaInvalid,\n computedAriaLabel,\n conditionalClass,\n conditionalClassOutline,\n defaultSlotValue,\n descriptionSlotValue,\n isCheckboxGroup,\n isChecked,\n isIndeterminate,\n shouldShowErrorMessage,\n\n // Methods\n hasSlot,\n onChange,\n onClick,\n\n t,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./checkbox.scss\" />\n"],"names":["BentoCheckboxState","BentoCheckboxState2","BentoCheckboxEvent","BentoCheckboxEvent2","uuid","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1$1","toDisplayString","_sfc_main","defineComponent","messages","BentoTypography","ErrorMessage","CheckmarkSmallIcon","MinusSmallIcon","props","attrs","emit","slots","t","useI18n","descriptionId","generateUid","errorId","hasSlot","useHasSlot","disabled","indeterminate","modelValue","readonly","value","toRefs","defaultSlotValue","getSlotText","descriptionSlotValue","useDefaultSlotValidator","isCheckboxGroup","computed","isChecked","item","isIndeterminate","shouldShowError","shouldShowErrorMessage","ariaChecked","ariaDescribedBy","ariaLabelAttribute","ref","ariaLabel","computedAriaLabel","useAriaLabel","ariaInvalid","conditionalClass","conditionalClassOutline","event","newValue","newCheckedList","index","createBlock","_component_checkmark_small_icon","createCommentVNode","_component_minus_small_icon","createElementVNode","_cache","args","_hoisted_3","_component_bento_typography","renderSlot","_component_error_message"],"mappings":";;;;;;;;;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SACAA,EAAA,WAAA,YAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,SAAA,sBACAA,EAAA,QAAA,SAFQA,IAAAD,KAAA,CAAA,CAAA;ACLR,IAAAE,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;;EARkM,MAAA;AAAA,EAAe,GAAA;;;AAAzN,SAAAC,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;6BAAYH,EAAA,GAAAC,EAAA,SAAAG,IAAAC,EAAAF,EAAA,OAAA,WAAA,CAAA,GAAA,CAAA;;;;;;;;;;GCwFjIG,KAAAC,EAAA;A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A,YAAAH,EAAA,GAAAuD,EAAAQ,GAAA;AAAA,YAFmD,KAAA;AAAA,YAAI,OAAA;AAAA;;;;;YAG7C,GAAA;AAAA,UAAA,CAAA,KAAA5D,EAAA,YAAAH,EAAA,GAAAuD,EAAAQ,GAAA;AAAA,YAA8C,KAAA;AAAA,YAAI,OAAA;AAAA;;;;;;;;;MAKzE,CAAA,KAAAN,EAAA,IAAA,EAAA;AAAA,MAOStD,EAAA,QAAA,SAAA,KAAAA,EAAA,QAAA,aAAA,KAAAH,EAAA,GAAAuD,EAAAQ,GAAA;AAAA,QANG,KAAA;AAAA,QACb,IAAA5D,EAAA;AAAA,QACF,OAAA;AAAA,QACI,IAAA;AAAA;;;;;;MAIU,GAAA,GAAA,CAAA,IAAA,CAAA,KAAAsD,EAAA,IAAA,EAAA;AAAA,MAAsEtD,EAAA,0BAAAH,EAAA,GAAAuD,EAAAU,GAAA;AAAA,QAAlC,KAAA;AAAA,QAAG,IAAA9D,EAAA;AAAA;;;;;;","x_google_ignoreList":[1]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { openBlock as i, createElementBlock as s, mergeProps as l, toDisplayString as c, createCommentVNode as r, createElementVNode as t } from "vue";
|
|
2
|
+
import { _ as n } from "./_plugin-vue_export-helper.dad06003.js";
|
|
3
|
+
import "../assets/cross.css";
|
|
4
|
+
let o = 0;
|
|
5
|
+
const _ = {
|
|
6
|
+
beforeCreate() {
|
|
7
|
+
this.uuid = o.toString(), o += 1;
|
|
8
|
+
}
|
|
9
|
+
}, a = { key: 0 }, d = ["clip-path"], h = /* @__PURE__ */ t("path", {
|
|
10
|
+
fill: "#00112C",
|
|
11
|
+
d: "M0.25 8C0.25 3.71979 3.71979 0.25 8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8ZM11.0001 4.93945L7.0001 8.93946L5.00011 6.93947L3.93945 8.00013L7.00011 11.0608L12.0608 6.00011L11.0001 4.93945Z"
|
|
12
|
+
}, null, -1), u = [
|
|
13
|
+
h
|
|
14
|
+
], p = ["id"], f = /* @__PURE__ */ t("rect", {
|
|
15
|
+
width: "16",
|
|
16
|
+
height: "16",
|
|
17
|
+
fill: "#fff"
|
|
18
|
+
}, null, -1), m = [
|
|
19
|
+
f
|
|
20
|
+
];
|
|
21
|
+
function g(e, C, k, $, v, w) {
|
|
22
|
+
return i(), s("svg", l({ role: "img" }, e.$attrs, {
|
|
23
|
+
class: "ui-assets-icons-16",
|
|
24
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
25
|
+
width: "16",
|
|
26
|
+
height: "16",
|
|
27
|
+
fill: "none"
|
|
28
|
+
}), [
|
|
29
|
+
e.$attrs["svg-title"] ? (i(), s("title", a, c(e.$attrs["svg-title"]), 1)) : r("", !0),
|
|
30
|
+
t("g", {
|
|
31
|
+
"clip-path": "url(#uia-icons-16-checkmark_circle_fill__a" + e.uuid + ")"
|
|
32
|
+
}, u, 8, d),
|
|
33
|
+
t("defs", null, [
|
|
34
|
+
t("clipPath", {
|
|
35
|
+
id: "uia-icons-16-checkmark_circle_fill__a" + e.uuid
|
|
36
|
+
}, m, 8, p)
|
|
37
|
+
])
|
|
38
|
+
], 16);
|
|
39
|
+
}
|
|
40
|
+
const B = /* @__PURE__ */ n(_, [["render", g]]);
|
|
41
|
+
export {
|
|
42
|
+
B as C
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=checkmark-circle-fill.c45a999d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkmark-circle-fill.c45a999d.js","sources":["../../../vue2/node_modules/@adyen/ui-assets-icons-16/dist/vue/checkmark-circle-fill.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><g :clip-path=\"'url(#uia-icons-16-checkmark_circle_fill__a' + uuid + ')'\"><path fill=\"#00112C\" d=\"M0.25 8C0.25 3.71979 3.71979 0.25 8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8ZM11.0001 4.93945L7.0001 8.93946L5.00011 6.93947L3.93945 8.00013L7.00011 11.0608L12.0608 6.00011L11.0001 4.93945Z\"/></g><defs><clipPath :id=\"'uia-icons-16-checkmark_circle_fill__a' + uuid\"><rect width=\"16\" height=\"16\" fill=\"#fff\"/></clipPath></defs></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n"],"names":["uuid","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1","toDisplayString"],"mappings":";;;AAKI,IAAAA,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;;EAR4Q,MAAA;AAAA,EAAe,GAAA;;;;EAAuV,OAAA;AAAA,EAAW,QAAA;AAAA,EAAY,MAAA;;;;;AAAjpB,SAAAC,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;6BAAYH,EAAA,GAAAC,EAAA,SAAAG,GAAAC,EAAAF,EAAA,OAAA,WAAA,CAAA,GAAA,CAAA;;MAAuE,aAAA,+CAAAA,EAAA,OAAA;AAAA;;;QAAwX,IAAA,0CAAAA,EAAA;AAAA;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as o, mergeProps as r, toDisplayString as n, createCommentVNode as i, createElementVNode as l } from "vue";
|
|
2
|
+
import { _ as a } from "./_plugin-vue_export-helper.dad06003.js";
|
|
3
|
+
import "../assets/cross.css";
|
|
4
|
+
let s = 0;
|
|
5
|
+
const c = {
|
|
6
|
+
beforeCreate() {
|
|
7
|
+
this.uuid = s.toString(), s += 1;
|
|
8
|
+
}
|
|
9
|
+
}, m = { key: 0 }, _ = /* @__PURE__ */ l("path", {
|
|
10
|
+
fill: "#00112C",
|
|
11
|
+
d: "M12.0608 6.00011L11.0001 4.93945L7.00011 8.93945L5.00011 6.93945L3.93945 8.00011L7.00011 11.0608L12.0608 6.00011Z"
|
|
12
|
+
}, null, -1);
|
|
13
|
+
function p(t, d, u, g, h, f) {
|
|
14
|
+
return e(), o("svg", r({ role: "img" }, t.$attrs, {
|
|
15
|
+
class: "ui-assets-icons-16",
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
+
width: "16",
|
|
18
|
+
height: "16",
|
|
19
|
+
fill: "none"
|
|
20
|
+
}), [
|
|
21
|
+
t.$attrs["svg-title"] ? (e(), o("title", m, n(t.$attrs["svg-title"]), 1)) : i("", !0),
|
|
22
|
+
_
|
|
23
|
+
], 16);
|
|
24
|
+
}
|
|
25
|
+
const v = /* @__PURE__ */ a(c, [["render", p]]);
|
|
26
|
+
export {
|
|
27
|
+
v as C
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=checkmark-small.c79220d9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkmark-small.c79220d9.js","sources":["../../../vue2/node_modules/@adyen/ui-assets-icons-16/dist/vue/checkmark-small.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M12.0608 6.00011L11.0001 4.93945L7.00011 8.93945L5.00011 6.93945L3.93945 8.00011L7.00011 11.0608L12.0608 6.00011Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n"],"names":["uuid","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1","toDisplayString"],"mappings":";;;AAKI,IAAAA,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;;EARkM,MAAA;AAAA,EAAe,GAAA;;;AAAzN,SAAAC,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;6BAAYH,EAAA,GAAAC,EAAA,SAAAG,GAAAC,EAAAF,EAAA,OAAA,WAAA,CAAA,GAAA,CAAA;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as o, mergeProps as r, toDisplayString as n, createCommentVNode as i, createElementVNode as a } from "vue";
|
|
2
|
+
import { _ as c } from "./_plugin-vue_export-helper.dad06003.js";
|
|
3
|
+
import "../assets/cross.css";
|
|
4
|
+
let s = 0;
|
|
5
|
+
const l = {
|
|
6
|
+
beforeCreate() {
|
|
7
|
+
this.uuid = s.toString(), s += 1;
|
|
8
|
+
}
|
|
9
|
+
}, _ = { key: 0 }, m = /* @__PURE__ */ a("path", {
|
|
10
|
+
fill: "#00112C",
|
|
11
|
+
d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z"
|
|
12
|
+
}, null, -1);
|
|
13
|
+
function p(t, d, u, g, h, f) {
|
|
14
|
+
return e(), o("svg", r({ role: "img" }, t.$attrs, {
|
|
15
|
+
class: "ui-assets-icons-16",
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
+
width: "16",
|
|
18
|
+
height: "16",
|
|
19
|
+
fill: "none"
|
|
20
|
+
}), [
|
|
21
|
+
t.$attrs["svg-title"] ? (e(), o("title", _, n(t.$attrs["svg-title"]), 1)) : i("", !0),
|
|
22
|
+
m
|
|
23
|
+
], 16);
|
|
24
|
+
}
|
|
25
|
+
const v = /* @__PURE__ */ c(l, [["render", p]]);
|
|
26
|
+
export {
|
|
27
|
+
v as C
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=checkmark.eb3c7a06.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkmark.eb3c7a06.js","sources":["../../../vue2/node_modules/@adyen/ui-assets-icons-16/dist/vue/checkmark.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n"],"names":["uuid","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1","toDisplayString"],"mappings":";;;AAKI,IAAAA,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;;EARkM,MAAA;AAAA,EAAe,GAAA;;;AAAzN,SAAAC,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;6BAAYH,EAAA,GAAAC,EAAA,SAAAG,GAAAC,EAAAF,EAAA,OAAA,WAAA,CAAA,GAAA,CAAA;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as s, mergeProps as r, toDisplayString as i, createCommentVNode as l, createElementVNode as a } from "vue";
|
|
2
|
+
import { _ } from "./_plugin-vue_export-helper.dad06003.js";
|
|
3
|
+
import "../assets/cross.css";
|
|
4
|
+
let o = 0;
|
|
5
|
+
const p = {
|
|
6
|
+
beforeCreate() {
|
|
7
|
+
this.uuid = o.toString(), o += 1;
|
|
8
|
+
}
|
|
9
|
+
}, $ = { key: 0 }, f = /* @__PURE__ */ a("path", {
|
|
10
|
+
fill: "#00112C",
|
|
11
|
+
d: "M4.43945 12.9999L9.43945 7.99988L4.43945 2.99988L5.50011 1.93922L11.5608 7.99988L5.50011 14.0605L4.43945 12.9999Z"
|
|
12
|
+
}, null, -1);
|
|
13
|
+
function m(t, c, h, u, d, g) {
|
|
14
|
+
return e(), s("svg", r({ role: "img" }, t.$attrs, {
|
|
15
|
+
class: "ui-assets-icons-16",
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
+
width: "16",
|
|
18
|
+
height: "16",
|
|
19
|
+
fill: "none"
|
|
20
|
+
}), [
|
|
21
|
+
t.$attrs["svg-title"] ? (e(), s("title", $, i(t.$attrs["svg-title"]), 1)) : l("", !0),
|
|
22
|
+
f
|
|
23
|
+
], 16);
|
|
24
|
+
}
|
|
25
|
+
const S = /* @__PURE__ */ _(p, [["render", m]]);
|
|
26
|
+
let n = 0;
|
|
27
|
+
const v = {
|
|
28
|
+
beforeCreate() {
|
|
29
|
+
this.uuid = n.toString(), n += 1;
|
|
30
|
+
}
|
|
31
|
+
}, L = { key: 0 }, w = /* @__PURE__ */ a("path", {
|
|
32
|
+
fill: "#00112C",
|
|
33
|
+
d: "M11.5606 3.00011L6.56056 8.00011L11.5606 13.0001L10.4999 14.0608L4.43924 8.00011L10.4999 1.93945L11.5606 3.00011Z"
|
|
34
|
+
}, null, -1);
|
|
35
|
+
function C(t, c, h, u, d, g) {
|
|
36
|
+
return e(), s("svg", r({ role: "img" }, t.$attrs, {
|
|
37
|
+
class: "ui-assets-icons-16",
|
|
38
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
39
|
+
width: "16",
|
|
40
|
+
height: "16",
|
|
41
|
+
fill: "none"
|
|
42
|
+
}), [
|
|
43
|
+
t.$attrs["svg-title"] ? (e(), s("title", L, i(t.$attrs["svg-title"]), 1)) : l("", !0),
|
|
44
|
+
w
|
|
45
|
+
], 16);
|
|
46
|
+
}
|
|
47
|
+
const b = /* @__PURE__ */ _(v, [["render", C]]);
|
|
48
|
+
export {
|
|
49
|
+
b as C,
|
|
50
|
+
S as a
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=chevron-left.4ee92950.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chevron-left.4ee92950.js","sources":["../../../vue2/node_modules/@adyen/ui-assets-icons-16/dist/vue/chevron-right.vue","../../../vue2/node_modules/@adyen/ui-assets-icons-16/dist/vue/chevron-left.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M4.43945 12.9999L9.43945 7.99988L4.43945 2.99988L5.50011 1.93922L11.5608 7.99988L5.50011 14.0605L4.43945 12.9999Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M11.5606 3.00011L6.56056 8.00011L11.5606 13.0001L10.4999 14.0608L4.43924 8.00011L10.4999 1.93945L11.5606 3.00011Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n"],"names":["uuid$1","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1$1","toDisplayString","uuid","_hoisted_1"],"mappings":";;;AAKI,IAAAA,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;;EARkM,MAAA;AAAA,EAAe,GAAA;;;AAAzN,SAAAC,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;6BAAYH,EAAA,GAAAC,EAAA,SAAAG,GAAAC,EAAAF,EAAA,OAAA,WAAA,CAAA,GAAA,CAAA;;;;;ACGjI,IAAAG,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;;EARkM,MAAA;AAAA,EAAe,GAAA;;;AAAzN,SAAAN,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;6BAAYH,EAAA,GAAAC,EAAA,SAAAM,GAAAF,EAAAF,EAAA,OAAA,WAAA,CAAA,GAAA,CAAA;;;;;","x_google_ignoreList":[0,1]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { openBlock as e, createElementBlock as s, mergeProps as r, toDisplayString as i, createCommentVNode as l, createElementVNode as a } from "vue";
|
|
2
|
+
import { _ } from "./_plugin-vue_export-helper.dad06003.js";
|
|
3
|
+
import "../assets/cross.css";
|
|
4
|
+
let o = 0;
|
|
5
|
+
const g = {
|
|
6
|
+
beforeCreate() {
|
|
7
|
+
this.uuid = o.toString(), o += 1;
|
|
8
|
+
}
|
|
9
|
+
}, $ = { key: 0 }, m = /* @__PURE__ */ a("path", {
|
|
10
|
+
fill: "#00112C",
|
|
11
|
+
d: "M2.99988 4.43923L7.99988 9.43923L12.9999 4.43923L14.0605 5.49989L7.99988 11.5605L1.93922 5.49989L2.99988 4.43923Z"
|
|
12
|
+
}, null, -1);
|
|
13
|
+
function v(t, c, p, u, d, h) {
|
|
14
|
+
return e(), s("svg", r({ role: "img" }, t.$attrs, {
|
|
15
|
+
class: "ui-assets-icons-16",
|
|
16
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
+
width: "16",
|
|
18
|
+
height: "16",
|
|
19
|
+
fill: "none"
|
|
20
|
+
}), [
|
|
21
|
+
t.$attrs["svg-title"] ? (e(), s("title", $, i(t.$attrs["svg-title"]), 1)) : l("", !0),
|
|
22
|
+
m
|
|
23
|
+
], 16);
|
|
24
|
+
}
|
|
25
|
+
const D = /* @__PURE__ */ _(g, [["render", v]]);
|
|
26
|
+
let n = 0;
|
|
27
|
+
const f = {
|
|
28
|
+
beforeCreate() {
|
|
29
|
+
this.uuid = n.toString(), n += 1;
|
|
30
|
+
}
|
|
31
|
+
}, w = { key: 0 }, L = /* @__PURE__ */ a("path", {
|
|
32
|
+
fill: "#00112C",
|
|
33
|
+
d: "M12.9999 11.5605L7.99989 6.56055L2.99988 11.5605L1.93922 10.4999L7.99989 4.43923L14.0605 10.4999L12.9999 11.5605Z"
|
|
34
|
+
}, null, -1);
|
|
35
|
+
function C(t, c, p, u, d, h) {
|
|
36
|
+
return e(), s("svg", r({ role: "img" }, t.$attrs, {
|
|
37
|
+
class: "ui-assets-icons-16",
|
|
38
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
39
|
+
width: "16",
|
|
40
|
+
height: "16",
|
|
41
|
+
fill: "none"
|
|
42
|
+
}), [
|
|
43
|
+
t.$attrs["svg-title"] ? (e(), s("title", w, i(t.$attrs["svg-title"]), 1)) : l("", !0),
|
|
44
|
+
L
|
|
45
|
+
], 16);
|
|
46
|
+
}
|
|
47
|
+
const S = /* @__PURE__ */ _(f, [["render", C]]);
|
|
48
|
+
export {
|
|
49
|
+
D as C,
|
|
50
|
+
S as a
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=chevron-up.46afb34c.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chevron-up.46afb34c.js","sources":["../../../vue2/node_modules/@adyen/ui-assets-icons-16/dist/vue/chevron-down.vue","../../../vue2/node_modules/@adyen/ui-assets-icons-16/dist/vue/chevron-up.vue"],"sourcesContent":["\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M2.99988 4.43923L7.99988 9.43923L12.9999 4.43923L14.0605 5.49989L7.99988 11.5605L1.93922 5.49989L2.99988 4.43923Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><path fill=\"#00112C\" d=\"M12.9999 11.5605L7.99989 6.56055L2.99988 11.5605L1.93922 10.4999L7.99989 4.43923L14.0605 10.4999L12.9999 11.5605Z\"/></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n"],"names":["uuid$1","openBlock","createElementBlock","mergeProps","_ctx","_hoisted_1$1","toDisplayString","uuid","_hoisted_1"],"mappings":";;;AAKI,IAAAA,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;;EARkM,MAAA;AAAA,EAAe,GAAA;;;AAAzN,SAAAC,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;6BAAYH,EAAA,GAAAC,EAAA,SAAAG,GAAAC,EAAAF,EAAA,OAAA,WAAA,CAAA,GAAA,CAAA;;;;;ACGjI,IAAAG,IAAA;;EAGI,eAAA;8BAEIA,KAAA;AAAA;;EARkM,MAAA;AAAA,EAAe,GAAA;;;AAAzN,SAAAN,EAAA,GAAAC,EAAA,OAAAC,EAAA,EAAA,MAAA,MAAA,GAAAC,EAAA,QAAA;AAAA,IAAgC,OAAA;AAAA,IAA2B,OAAA;AAAA,IAAmC,OAAA;AAAA,IAAW,QAAA;AAAA,IAAY,MAAA;AAAA;6BAAYH,EAAA,GAAAC,EAAA,SAAAM,GAAAF,EAAAF,EAAA,OAAA,WAAA,CAAA,GAAA,CAAA;;;;;","x_google_ignoreList":[0,1]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, useAttrs as y, computed as a, openBlock as r, createElementBlock as h, normalizeClass as s, unref as o, createElementVNode as m, createBlock as i, createCommentVNode as n, withCtx as g, createTextVNode as _, toDisplayString as w, renderSlot as x } from "vue";
|
|
2
2
|
import { d as B, B as C } from "./index.75f3672e.js";
|
|
3
|
-
import { F as S } from "./field-label.
|
|
3
|
+
import { F as S } from "./field-label.3c19a29a.js";
|
|
4
4
|
import { _ as L } from "./_plugin-vue_export-helper.dad06003.js";
|
|
5
5
|
import "../assets/controls-group.css";
|
|
6
6
|
const v = ["form", "disabled", "aria-describedby"], T = {}, k = /* @__PURE__ */ f({
|
|
@@ -92,4 +92,4 @@ const V = /* @__PURE__ */ L(k, [["__scopeId", "data-v-8b58353f"]]);
|
|
|
92
92
|
export {
|
|
93
93
|
V as C
|
|
94
94
|
};
|
|
95
|
-
//# sourceMappingURL=controls-group.
|
|
95
|
+
//# sourceMappingURL=controls-group.d6543674.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controls-group.
|
|
1
|
+
{"version":3,"file":"controls-group.d6543674.js","sources":["../../../vue2/src/components/internal/controls-group/controls-group.vue"],"sourcesContent":["<template>\n <fieldset\n class=\"b-controls-group\"\n :class=\"conditionalClasses\"\n :form=\"form\"\n :disabled=\"disabled\"\n :aria-describedby=\"ariaAttributes['aria-describedby']\"\n >\n <legend class=\"b-controls-group__label-container\" :class=\"legendConditionalClasses\">\n <field-label\n v-if=\"label\"\n class=\"b-controls-group__label\"\n :label=\"label\"\n :tooltip-text=\"tooltipText\"\n :optional=\"optional\"\n :required=\"required\"\n />\n <bento-typography v-if=\"description\" class=\"b-controls-group__description\" el=\"span\">\n {{ description }}\n </bento-typography>\n </legend>\n <slot />\n </fieldset>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useAttrs } from 'vue';\n import { BentoTypography } from '@/components/typography';\n import { FieldLabel } from '@/components/internal/field-label';\n import { deprecate } from '@/utils/ts/deprecate';\n\n const attrs = useAttrs();\n\n const props = defineProps({\n /**\n * Descriptive supporting text visbile underneath the label.\n */\n description: { type: String, default: null },\n\n /**\n * Sets all child controls of the <fieldset> as disabled.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * The value of the id attribute of a <form> element the <fieldset> is to part of, even if it is not inside the form itself.\n */\n form: { type: String, default: null },\n\n /**\n * Shows/hides the group label.\n */\n hideLabel: { type: Boolean, default: null },\n\n /**\n * The name associated with the group. Required for accessibility purposes.\n * The label is shown when `hideLabel` is set to `true` or if `description` is passed\n */\n label: { type: String, required: true },\n\n /**\n * Indicates the field is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * Indicates the field is required.\n */\n required: { type: Boolean, default: false },\n\n /**\n * Tooltip message.\n */\n tooltipText: { type: String, default: null },\n });\n\n const ariaAttributes = computed(() => ({\n 'aria-describedby': attrs['aria-describedby']?.toString() as string,\n }));\n\n const conditionalClasses = computed(() => ({\n 'b-controls-group--disabled': props.disabled,\n }));\n\n const legendConditionalClasses = computed(() => {\n const isLabelAndDescriptionPresent = props.label && props.description;\n const shouldShowLabel = isLabelAndDescriptionPresent || props.hideLabel === false;\n\n return {\n 'b-controls-group__label-container--hidden': !shouldShowLabel,\n };\n });\n\n // eslint-disable-next-line eqeqeq -- Needs to show deprecate message when hideLabel is not set and no description available\n const hasNoPropsDefined = !props.description && props.hideLabel == undefined;\n if (hasNoPropsDefined) {\n deprecate(\n `The property \\`label\\` will always be rendered by default.`,\n `After version 2.0.0, the label will be shown by default.\n To continue hiding the label set \\`:hide-label=\"true\"\\`. Up until version 2.0.0, to display the label set \\`hide-label=\"false\"\\`.\n \\`label\\` will always be rendered when \\`description\\` is passed alongside with \\`label\\``,\n `2.0.0`\n );\n }\n</script>\n\n<script lang=\"ts\">\n /**\n * A controls group components should be used whenever it is necessary to group a set of controls (i.e. radio buttons or checkboxes)\n * This component conforms to the official WAI-ARIA guidelines for grouping controls: https://www.w3.org/WAI/tutorials/forms/grouping/\n *\n * NOTE: This component should not be used by itself but more implemented by other exported components\n * @example\n * import { ControlsGroup, BentoCheckbox } from '@adyen/bento-vue2/';\n *\n * export default {\n * components: { ControlsGroup, RadioButton },\n * template: `\n * <controls-group\n * label=\"Your group label\"\n * description=\"Description\"\n * >\n * <radio-button\n * disabled\n * value=\"inputRadio\"\n * >\n * Label text\n * </radio-button>\n * <radio-button\n * value=\"inputRadio\"\n * >\n * Another label text\n * </radio-button>\n * </controls-group>\n * `\n * };\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./controls-group.scss\" />\n"],"names":["__default__","attrs","useAttrs","ariaAttributes","computed","_a","conditionalClasses","props","legendConditionalClasses","deprecate"],"mappings":";;;;;oDAyIIA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA1GAC,IAAAC,EAAA,GA6CAC,IAAAC,EAAA,MAAA;;AAAA;AAAA,QAAuC,qBAAAC,IAAAJ,EAAA,kBAAA,MAAA,gBAAAI,EAAA;AAAA,MACqB;AAAA,KAAA,GAG5DC,IAAAF,EAAA,OAAA;AAAA,MAA2C,8BAAAG,EAAA;AAAA,IACH,EAAA,GAGxCC,IAAAJ,EAAA,OAII;AAAA,MAAO,6CAAA,EAHPG,EAAA,SAAAA,EAAA,eACAA,EAAA,cAAA;AAAA,IAGkD,EAClD;AAKJ,WADA,CAAAA,EAAA,eAAAA,EAAA,aAAA,QAEIE;AAAA,MAAA;AAAA,MACI;AAAA,MACA;AAAA,IAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|