@adyen/bento-vue2 1.20.1 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -0
- package/dist/@types/components.d.ts +8 -0
- package/dist/@types/packages/core/src/components/button/button.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/button/components/toggle-button/toggle-button.vue.d.ts +6 -5
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +16 -21
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +21 -1
- package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +14 -3
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/modal/components/modal-page/modal-page.vue.d.ts +91 -0
- package/dist/@types/packages/vue2/src/components/modal/index.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/modal/modal.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/modal/modal.types.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +14 -3
- package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.vue.d.ts +145 -0
- package/dist/@types/packages/vue2/src/components/selection-card/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/selection-card/selection-card.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/selection-card/selection-card.types.d.ts +22 -0
- package/dist/@types/packages/vue2/src/components/selection-card/selection-card.vue.d.ts +90 -0
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +6 -6
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/checkbox-input.css +1 -0
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -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/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index49.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/radio-input.css +1 -0
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +32 -31
- package/dist/button.js.map +1 -1
- package/dist/card.js +3 -3
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.d3f27fe6.js → base-button.1e390a82.js} +2 -2
- package/dist/chunks/{base-button.d3f27fe6.js.map → base-button.1e390a82.js.map} +1 -1
- package/dist/chunks/base-modal.7ce3f321.js +372 -0
- package/dist/chunks/base-modal.7ce3f321.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.4e274e5d.js → button-actions-with-menu.2722f4ab.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.4e274e5d.js.map → button-actions-with-menu.2722f4ab.js.map} +1 -1
- package/dist/chunks/{button-actions.98e96aa6.js → button-actions.6bdcc584.js} +3 -3
- package/dist/chunks/{button-actions.98e96aa6.js.map → button-actions.6bdcc584.js.map} +1 -1
- package/dist/chunks/{button.27948f1c.js → button.ff51261f.js} +18 -18
- package/dist/chunks/button.ff51261f.js.map +1 -0
- package/dist/chunks/{calendar.943ea7c3.js → calendar.7517c117.js} +4 -4
- package/dist/chunks/{calendar.943ea7c3.js.map → calendar.7517c117.js.map} +1 -1
- package/dist/chunks/checkbox-input.4c4e4c2e.js +123 -0
- package/dist/chunks/checkbox-input.4c4e4c2e.js.map +1 -0
- package/dist/chunks/checkbox.a52d6e60.js +160 -0
- package/dist/chunks/checkbox.a52d6e60.js.map +1 -0
- package/dist/chunks/{controls-group.02abd743.js → controls-group.aee628f6.js} +3 -3
- package/dist/chunks/{controls-group.02abd743.js.map → controls-group.aee628f6.js.map} +1 -1
- package/dist/chunks/{copy.a9f87101.js → copy.4374d1ea.js} +4 -4
- package/dist/chunks/{copy.a9f87101.js.map → copy.4374d1ea.js.map} +1 -1
- package/dist/chunks/dialog-page.f3412ccd.js +133 -0
- package/dist/chunks/dialog-page.f3412ccd.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.b4f19086.js → dropdown-default-textbox.cf662c3b.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.b4f19086.js.map → dropdown-default-textbox.cf662c3b.js.map} +1 -1
- package/dist/chunks/{dropdown.9abc124c.js → dropdown.321135c2.js} +14 -14
- package/dist/chunks/{dropdown.9abc124c.js.map → dropdown.321135c2.js.map} +1 -1
- package/dist/chunks/{error-message.3d436de3.js → error-message.14f59b8b.js} +2 -2
- package/dist/chunks/{error-message.3d436de3.js.map → error-message.14f59b8b.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.c430a595.js → fixed-scroller.22f64181.js} +2 -2
- package/dist/chunks/{fixed-scroller.c430a595.js.map → fixed-scroller.22f64181.js.map} +1 -1
- package/dist/chunks/{footer-actions.74983707.js → footer-actions.8e51e4db.js} +4 -4
- package/dist/chunks/{footer-actions.74983707.js.map → footer-actions.8e51e4db.js.map} +1 -1
- package/dist/chunks/{index.3a8caa8d.js → index.07828192.js} +26 -26
- package/dist/chunks/{index.3a8caa8d.js.map → index.07828192.js.map} +1 -1
- package/dist/chunks/{index.a2095588.js → index.08658e31.js} +3 -3
- package/dist/chunks/{index.a2095588.js.map → index.08658e31.js.map} +1 -1
- package/dist/chunks/{index.af17c8ac.js → index.0c759683.js} +2 -2
- package/dist/chunks/{index.af17c8ac.js.map → index.0c759683.js.map} +1 -1
- package/dist/chunks/{index.985d9d31.js → index.20767d8d.js} +3 -3
- package/dist/chunks/{index.985d9d31.js.map → index.20767d8d.js.map} +1 -1
- package/dist/chunks/{index.d080a0e6.js → index.277bd4f5.js} +7 -7
- package/dist/chunks/{index.d080a0e6.js.map → index.277bd4f5.js.map} +1 -1
- package/dist/chunks/{index.2f00afab.js → index.3df55152.js} +2 -2
- package/dist/chunks/{index.2f00afab.js.map → index.3df55152.js.map} +1 -1
- package/dist/chunks/{index.54eb824c.js → index.53296886.js} +3 -3
- package/dist/chunks/{index.54eb824c.js.map → index.53296886.js.map} +1 -1
- package/dist/chunks/{index.dd7d8418.js → index.97c75b08.js} +166 -165
- package/dist/chunks/index.97c75b08.js.map +1 -0
- package/dist/chunks/{index.de9a552e.js → index.cb0b1e9f.js} +6 -6
- package/dist/chunks/{index.de9a552e.js.map → index.cb0b1e9f.js.map} +1 -1
- package/dist/chunks/{index.211ea795.js → index.d60dd2ec.js} +6 -6
- package/dist/chunks/{index.211ea795.js.map → index.d60dd2ec.js.map} +1 -1
- package/dist/chunks/{index.900d8b24.js → index.f9665634.js} +2 -2
- package/dist/chunks/{index.900d8b24.js.map → index.f9665634.js.map} +1 -1
- package/dist/chunks/{index.25de3ab8.js → index.fd90ffde.js} +2 -2
- package/dist/chunks/{index.25de3ab8.js.map → index.fd90ffde.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.37da51ba.js → listbox-option-tag.f10b8b2d.js} +3 -3
- package/dist/chunks/{listbox-option-tag.37da51ba.js.map → listbox-option-tag.f10b8b2d.js.map} +1 -1
- package/dist/chunks/{listbox.a142458a.js → listbox.a5623620.js} +5 -5
- package/dist/chunks/{listbox.a142458a.js.map → listbox.a5623620.js.map} +1 -1
- package/dist/chunks/{loading-button.2c3d9afc.js → loading-button.cc8dcafe.js} +2 -2
- package/dist/chunks/{loading-button.2c3d9afc.js.map → loading-button.cc8dcafe.js.map} +1 -1
- package/dist/chunks/radio-input.c6550a9c.js +83 -0
- package/dist/chunks/radio-input.c6550a9c.js.map +1 -0
- package/dist/chunks/{tooltip.0459eb5c.js → tooltip.85b7cefc.js} +3 -3
- package/dist/chunks/{tooltip.0459eb5c.js.map → tooltip.85b7cefc.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 +1 -1
- package/dist/date-picker.js +18 -18
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +6 -6
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +729 -731
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +4 -4
- package/dist/index.js +195 -188
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +4 -4
- package/dist/internal.js +8 -8
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +6 -6
- package/dist/modal.js +108 -73
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +73 -146
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +2 -2
- package/dist/segmented-control.js +3 -3
- package/dist/selection-card.js +251 -0
- package/dist/selection-card.js.map +1 -0
- package/dist/sidepanel.js +6 -6
- 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 +3 -3
- package/dist/tag.js +3 -3
- package/dist/textarea.js +56 -55
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +7 -7
- package/dist/toast.js +3 -3
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +6 -6
- package/dist/typography.js +1 -1
- package/dist/web-types.json +465 -33
- package/package.json +3 -4
- package/dist/chunks/arrow-left.2db60716.js +0 -26
- package/dist/chunks/arrow-left.2db60716.js.map +0 -1
- package/dist/chunks/base-modal.cc448ad3.js +0 -203
- package/dist/chunks/base-modal.cc448ad3.js.map +0 -1
- package/dist/chunks/button.27948f1c.js.map +0 -1
- package/dist/chunks/checkbox.2c2a1f90.js +0 -275
- package/dist/chunks/checkbox.2c2a1f90.js.map +0 -1
- package/dist/chunks/dialog-page.0e787c2d.js +0 -113
- package/dist/chunks/dialog-page.0e787c2d.js.map +0 -1
- package/dist/chunks/index.dd7d8418.js.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as y, useAttrs as m, useSlots as v, computed as i } from "vue";
|
|
2
|
-
import { B as S } from "./index.
|
|
2
|
+
import { B as S } from "./index.3df55152.js";
|
|
3
3
|
import { u as E } from "./use-has-slot.fbeb19ec.js";
|
|
4
|
-
import { B as g, a as
|
|
5
|
-
import { n as
|
|
4
|
+
import { B as g, a as R } from "./index.53296886.js";
|
|
5
|
+
import { n as C } from "./_plugin-vue2_normalizer.71e2aa87.js";
|
|
6
6
|
import "../assets/button.css";
|
|
7
|
-
var l = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.SECONDARY = "secondary", e.TERTIARY = "tertiary", e))(l || {}), s = /* @__PURE__ */ ((e) => (e.CONDENSED = "condensed", e.DESTRUCTIVE = "critical", e.DISABLED = "disabled", e.ICON_ONLY = "icon-only", e.INVERSE = "inverse", e))(s || {});
|
|
8
|
-
const
|
|
7
|
+
var l = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.SECONDARY = "secondary", e.TERTIARY = "tertiary", e.TERTIARY_WITH_BACKGROUND = "tertiary-with-background", e))(l || {}), s = /* @__PURE__ */ ((e) => (e.CONDENSED = "condensed", e.DESTRUCTIVE = "critical", e.DISABLED = "disabled", e.ICON_ONLY = "icon-only", e.INVERSE = "inverse", e))(s || {});
|
|
8
|
+
const T = {
|
|
9
9
|
name: "bento-button"
|
|
10
|
-
},
|
|
11
|
-
...
|
|
10
|
+
}, D = /* @__PURE__ */ y({
|
|
11
|
+
...T,
|
|
12
12
|
props: {
|
|
13
13
|
/**
|
|
14
14
|
* Reduces sizing of button
|
|
@@ -40,7 +40,7 @@ const D = {
|
|
|
40
40
|
},
|
|
41
41
|
/**
|
|
42
42
|
* Types of flavour of Button
|
|
43
|
-
* @values primary, secondary, tertiary
|
|
43
|
+
* @values primary, secondary, tertiary, tertiary-with-background
|
|
44
44
|
*/
|
|
45
45
|
variant: {
|
|
46
46
|
type: String,
|
|
@@ -50,18 +50,18 @@ const D = {
|
|
|
50
50
|
},
|
|
51
51
|
emits: ["blur", "click", "focus", "keydown.esc"],
|
|
52
52
|
setup(e, { emit: n }) {
|
|
53
|
-
const t = e, o = m(), r = v(),
|
|
54
|
-
var a,
|
|
53
|
+
const t = e, o = m(), r = v(), p = E(r), c = i(() => (t == null ? void 0 : t.link) !== void 0 ? g : "button"), u = i(() => {
|
|
54
|
+
var a, _;
|
|
55
55
|
return {
|
|
56
56
|
"aria-controls": (a = o["aria-controls"]) == null ? void 0 : a.toString(),
|
|
57
|
-
"aria-expanded": (
|
|
57
|
+
"aria-expanded": (_ = o["aria-expanded"]) == null ? void 0 : _.toString()
|
|
58
58
|
};
|
|
59
59
|
}), b = i(
|
|
60
60
|
() => c.value === "button" ? {
|
|
61
61
|
...u.value,
|
|
62
62
|
disabled: t.disabled,
|
|
63
63
|
type: t.type
|
|
64
|
-
} : { ...t.link, disableTypography: !0, variant:
|
|
64
|
+
} : { ...t.link, disableTypography: !0, variant: R.DEFAULT, isButton: !0 }
|
|
65
65
|
), d = i(() => ({
|
|
66
66
|
[`b-button--${t.variant}${t.critical ? `-${s.DESTRUCTIVE}` : ""}`]: !0
|
|
67
67
|
})), f = i(() => ({
|
|
@@ -71,23 +71,23 @@ const D = {
|
|
|
71
71
|
[`b-button--${s.ICON_ONLY}`]: !r.default,
|
|
72
72
|
[`b-button--${s.INVERSE}`]: t.inverse
|
|
73
73
|
}));
|
|
74
|
-
return { __sfc: !0, props: t, emit: n, attrs: o, slots: r, hasSlot:
|
|
74
|
+
return { __sfc: !0, props: t, emit: n, attrs: o, slots: r, hasSlot: p, componentType: c, ariaAttributes: u, componentProps: b, variantClass: d, conditionalClasses: f, onClickButton: (a) => {
|
|
75
75
|
t.disabled ? (a.preventDefault(), a.stopPropagation()) : n("click", a);
|
|
76
76
|
}, BentoTypography: S };
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
-
var
|
|
79
|
+
var h = function() {
|
|
80
80
|
var n = this, t = n._self._c, o = n._self._setupProxy;
|
|
81
81
|
return t(o.componentType, n._b({ tag: "component", staticClass: "b-button", class: o.conditionalClasses, on: { "!click": function(r) {
|
|
82
82
|
return o.onClickButton.apply(null, arguments);
|
|
83
83
|
} } }, "component", o.componentProps, !1), [o.hasSlot("iconLeft") ? t("span", { staticClass: "b-button__icon-left", attrs: { "data-testid": "icon-button-left" } }, [n._t("iconLeft")], 2) : n._e(), o.hasSlot("default") ? t(o.BentoTypography, { staticClass: "b-button__label", attrs: { el: "span", variant: "body", stronger: "" } }, [n._t("default")], 2) : n._e(), o.hasSlot("iconRight") ? t("span", { staticClass: "b-button__icon-right", attrs: { "data-testid": "icon-button-right" } }, [n._t("iconRight")], 2) : n._e()], 1);
|
|
84
|
-
},
|
|
84
|
+
}, k = [], I = /* @__PURE__ */ C(
|
|
85
|
+
D,
|
|
85
86
|
h,
|
|
86
87
|
k,
|
|
87
|
-
T,
|
|
88
88
|
!1,
|
|
89
89
|
null,
|
|
90
|
-
"
|
|
90
|
+
"e8437ed6",
|
|
91
91
|
null,
|
|
92
92
|
null
|
|
93
93
|
);
|
|
@@ -97,4 +97,4 @@ export {
|
|
|
97
97
|
x as a,
|
|
98
98
|
s as b
|
|
99
99
|
};
|
|
100
|
-
//# sourceMappingURL=button.
|
|
100
|
+
//# sourceMappingURL=button.ff51261f.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.ff51261f.js","sources":["../../../core/src/components/button/button.types.ts","../../src/components/button/button.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoButtonVariant {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n TERTIARY = 'tertiary',\n TERTIARY_WITH_BACKGROUND = 'tertiary-with-background',\n}\n\nexport enum BentoButtonPropClass {\n CONDENSED = 'condensed',\n DESTRUCTIVE = 'critical',\n DISABLED = 'disabled',\n ICON_ONLY = 'icon-only',\n INVERSE = 'inverse',\n}\n\nexport interface BentoButtonProps {\n condensed?: boolean;\n critical?: boolean;\n disabled?: boolean;\n inverse?: boolean;\n variant?: BentoButtonVariant | `${BentoButtonVariant}`;\n type?: string;\n link?: object;\n}\n","<template>\n <component\n :is=\"componentType\"\n v-bind=\"componentProps\"\n class=\"b-button\"\n :class=\"conditionalClasses\"\n @click.capture=\"onClickButton\"\n >\n <span v-if=\"hasSlot('iconLeft')\" class=\"b-button__icon-left\" data-testid=\"icon-button-left\">\n <slot name=\"iconLeft\" />\n </span>\n <bento-typography v-if=\"hasSlot('default')\" el=\"span\" variant=\"body\" stronger class=\"b-button__label\">\n <slot />\n </bento-typography>\n <span v-if=\"hasSlot('iconRight')\" class=\"b-button__icon-right\" data-testid=\"icon-button-right\">\n <slot name=\"iconRight\" />\n </span>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, useAttrs, useSlots } from 'vue';\n import { BentoButtonPropClass, BentoButtonVariant } from '@/core/components/button/button.types';\n import { BentoTypography } from '@/components/typography';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n import { Booleanish } from '@/types/prop-types';\n import type { RouterLinkProps } from 'vue-router/types/router';\n import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'vue/types/jsx';\n import { BentoLink, BentoLinkVariant } from '@/components/link';\n\n // TODO: replace all this code when migrated to Vue 3 is complete as this is the only\n // current way to extend the `router-link` component in Vue 2 and Vue Router 3\n export interface LinkProps extends RouterLinkProps, AnchorHTMLAttributes {\n // eslint-disable-next-line vue/require-default-prop\n args?: { props: RouterLinkProps };\n\n /**\n * Set the rendered link to a regular external anchor link.\n */\n external: boolean;\n }\n\n const props = defineProps({\n /**\n * Reduces sizing of button\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Displays button as critical\n */\n critical: { type: Boolean, default: false },\n\n /**\n * Disables button functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Sets color set to inverse\n */\n inverse: { type: Boolean, default: false },\n\n /**\n * Object containing props passed on to the BentoLink component. @see BentoLink documentation for which properties you can pass.\n */\n link: { type: Object, default: undefined },\n\n /**\n * The default behavior of the button.\n * Possible values are: 'button', 'reset', 'submit'\n */\n type: {\n type: String as PropType<ButtonHTMLAttributes['type']>,\n default: 'button',\n },\n\n /**\n * Types of flavour of Button\n * @values primary, secondary, tertiary, tertiary-with-background\n */\n variant: {\n type: String as PropType<BentoButtonVariant | `${BentoButtonVariant}`>,\n default: BentoButtonVariant.PRIMARY,\n validator: (value: BentoButtonVariant) => Object.values(BentoButtonVariant).includes(value),\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur');\n\n /**\n * Emitted when the button is clicked\n */\n (e: 'click', event: MouseEvent);\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus');\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: 'keydown.esc');\n }>();\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const componentType = computed(() => {\n if (props?.link !== undefined) {\n return BentoLink;\n }\n return 'button';\n });\n const ariaAttributes = computed(() => ({\n 'aria-controls': attrs['aria-controls']?.toString() as string,\n 'aria-expanded': attrs['aria-expanded']?.toString() as Booleanish,\n }));\n\n const componentProps = computed(() =>\n componentType.value === 'button'\n ? {\n ...ariaAttributes.value,\n disabled: props.disabled,\n type: props.type,\n }\n : { ...props.link, disableTypography: true, variant: BentoLinkVariant.DEFAULT, isButton: true }\n );\n\n const variantClass = computed(() => ({\n [`b-button--${props.variant}${props.critical ? `-${BentoButtonPropClass.DESTRUCTIVE}` : ''}`]: true,\n }));\n\n const conditionalClasses = computed(() => ({\n ...variantClass.value,\n [`b-button--${BentoButtonPropClass.CONDENSED}`]: props.condensed,\n [`b-button--${BentoButtonPropClass.DISABLED}`]: props.disabled,\n [`b-button--${BentoButtonPropClass.ICON_ONLY}`]: !slots.default,\n [`b-button--${BentoButtonPropClass.INVERSE}`]: props.inverse,\n }));\n\n const onClickButton = (e: MouseEvent) => {\n if (!props.disabled) {\n emit('click', e);\n } else {\n e.preventDefault();\n e.stopPropagation();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Button component for all the various types of bento buttons.\n *\n * @example\n * import { BentoButton } from '@adyen/bento-vue2';\n * import { CheckMarkIcon } from '@adyen/ui-assets-icons-16';\n *\n * export default {\n * components: { BentoButton },\n * template: `\n * <bento-button\n * disabled\n * variant=\"secondary\"\n * >\n * <template #iconLeft>\n * <check-mark svg-title=\"checked\" />\n * </template>\n *\n * Button text\n *\n * <template #iconRight>\n * <check-mark svg-title=\"checked\" />\n * </template>\n * </bento-button>\n * `,\n * }\n */\n export default {\n name: 'bento-button',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/button/button.scss\" />\n"],"names":["BentoButtonVariant","BentoButtonVariant2","BentoButtonPropClass","BentoButtonPropClass2","__default__","attrs","useAttrs","slots","useSlots","hasSlot","useHasSlot","componentType","computed","props","BentoLink","ariaAttributes","_a","_b","componentProps","BentoLinkVariant","variantClass","conditionalClasses","e","emit"],"mappings":";;;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,YAAA,aACAA,EAAA,WAAA,YACAA,EAAA,2BAAA,4BAJQA,IAAAD,KAAA,CAAA,CAAA,GAOAE,IAAA,kBAAAC,OACRA,EAAA,YAAA,aACAA,EAAA,cAAA,YACAA,EAAA,WAAA,YACAA,EAAA,YAAA,aACAA,EAAA,UAAA,WALQA,IAAAD,KAAA,CAAA,CAAA;AC+KR,MAAAE,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA7EAC,IAAAC,EAAA,GACAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,EAAA,OACIC,KAAA,gBAAAA,EAAA,UAAA,SACIC,IAEJ,QAAO,GAEXC,IAAAH,EAAA,MAAA;;AAAA;AAAA,QAAuC,kBAAAI,IAAAX,EAAA,eAAA,MAAA,gBAAAW,EAAA;AAAA,QACe,kBAAAC,IAAAZ,EAAA,eAAA,MAAA,gBAAAY,EAAA;AAAA,MACA;AAAA,KAAA,GAGtDC,IAAAN;AAAA,MAAuB,MAAAD,EAAA,UAAA,WAAA;AAAA,QAEb,GAAAI,EAAA;AAAA,QACsB,UAAAF,EAAA;AAAA,QACF,MAAAA,EAAA;AAAA,MACJ,IAAA,EAAA,GAAAA,EAAA,MAAA,mBAAA,IAAA,SAAAM,EAAA,SAAA,UAAA,GAAA;AAAA,IAE4E,GAGtGC,IAAAR,EAAA,OAAA;AAAA,MAAqC,CAAA,aAAAC,EAAA,UAAAA,EAAA,WAAA,IAAAX,EAAA,gBAAA,IAAA,GAAA;AAAA,IAC8D,EAAA,GAGnGmB,IAAAT,EAAA,OAAA;AAAA,MAA2C,GAAAQ,EAAA;AAAA,MACvB,CAAA,aAAAlB,EAAA,WAAA,GAAAW,EAAA;AAAA,MACuC,CAAA,aAAAX,EAAA,UAAA,GAAAW,EAAA;AAAA,MACD,CAAA,aAAAX,EAAA,WAAA,GAAA,CAAAK,EAAA;AAAA,MACE,CAAA,aAAAL,EAAA,SAAA,GAAAW,EAAA;AAAA,IACH,EAAA;0LAGzD,CAAAS,MAAA;AACI,MAAAT,EAAA,YAGIS,EAAA,eAAA,GACAA,EAAA,gBAAA,KAHAC,EAAA,SAAAD,CAAA;AAAA,IAIJ;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as le, computed as M, ref as F, watch as V, nextTick as Oe, toRef as L, reactive as ye } from "vue";
|
|
2
2
|
import { r as k, t as N, g as fe, e as oe, d as Ne, f as Se } from "./index.f55fdc32.js";
|
|
3
|
-
import { t as T, B as ke, a as Ee, f as ve } from "./index.
|
|
3
|
+
import { t as T, B as ke, a as Ee, f as ve } from "./index.0c759683.js";
|
|
4
4
|
import { e as ue } from "./index.d80206ed.js";
|
|
5
|
-
import { a as Me } from "./button.
|
|
6
|
-
import { B as be } from "./index.
|
|
5
|
+
import { a as Me } from "./button.ff51261f.js";
|
|
6
|
+
import { B as be } from "./index.3df55152.js";
|
|
7
7
|
import { u as we } from "./i18n.eb5b985b.js";
|
|
8
8
|
import { g as Te } from "./unique-id.a2a2b458.js";
|
|
9
9
|
import { C as Ie, a as pe } from "./chevron-left.5edf02ac.js";
|
|
@@ -910,4 +910,4 @@ export {
|
|
|
910
910
|
W as s,
|
|
911
911
|
nt as u
|
|
912
912
|
};
|
|
913
|
-
//# sourceMappingURL=calendar.
|
|
913
|
+
//# sourceMappingURL=calendar.7517c117.js.map
|