@adyen/bento-vue3 1.9.0 → 1.10.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/button/button.vue.d.ts +23 -2455
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +14 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +33 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns-types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +21 -4
- package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +54 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +81 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useSelector.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +5 -2
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +15 -5
- package/dist/@types/packages/vue2/src/components/divider/divider.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +15 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +11 -1
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +84 -12
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +20 -0
- package/dist/@types/packages/vue2/src/components/internal/copy/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +51 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/listbox-single-select-category.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-multi-level-items/use-multi-level-items.d.ts +6 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +11 -2
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +316 -3
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +3 -4
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +15 -2
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +15 -10
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -0
- package/dist/@types/packages/vue2/src/types/elements.d.ts +2 -1
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +5 -5
- package/dist/alert.js +24 -24
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/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/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/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/assets/loading-button.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +56 -45
- package/dist/button.js.map +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +72 -53
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/{base-button.aa085dfa.js → base-button.dfc0e32e.js} +2 -2
- package/dist/chunks/{base-button.aa085dfa.js.map → base-button.dfc0e32e.js.map} +1 -1
- package/dist/chunks/{base-modal.a629cb32.js → base-modal.8b323292.js} +86 -86
- package/dist/chunks/base-modal.8b323292.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.f6dfb14d.js → button-actions-with-menu.044fe230.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.f6dfb14d.js.map → button-actions-with-menu.044fe230.js.map} +1 -1
- package/dist/chunks/button.6ca5cd14.js +118 -0
- package/dist/chunks/button.6ca5cd14.js.map +1 -0
- package/dist/chunks/{calendar.fa7712e8.js → calendar.b3c15dcd.js} +4 -4
- package/dist/chunks/{calendar.fa7712e8.js.map → calendar.b3c15dcd.js.map} +1 -1
- package/dist/chunks/checkbox.979b1aa4.js +278 -0
- package/dist/chunks/checkbox.979b1aa4.js.map +1 -0
- package/dist/chunks/{controls-group.d6543674.js → controls-group.2f6cbb21.js} +21 -17
- package/dist/chunks/controls-group.2f6cbb21.js.map +1 -0
- package/dist/chunks/copy.0fed8f42.js +145 -0
- package/dist/chunks/copy.0fed8f42.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.4108b289.js → dropdown-default-textbox.839fe6f7.js} +25 -25
- package/dist/chunks/dropdown-default-textbox.839fe6f7.js.map +1 -0
- package/dist/chunks/{dropdown.63de9aac.js → dropdown.014ae3e3.js} +370 -331
- package/dist/chunks/dropdown.014ae3e3.js.map +1 -0
- package/dist/chunks/{field-label.3c19a29a.js → field-label.085966f6.js} +5 -5
- package/dist/chunks/{field-label.3c19a29a.js.map → field-label.085966f6.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.bced60dd.js → fixed-scroller.96019461.js} +2 -2
- package/dist/chunks/{fixed-scroller.bced60dd.js.map → fixed-scroller.96019461.js.map} +1 -1
- package/dist/chunks/{footer-actions.cefaf1e2.js → footer-actions.52d5a453.js} +3 -3
- package/dist/chunks/{footer-actions.cefaf1e2.js.map → footer-actions.52d5a453.js.map} +1 -1
- package/dist/chunks/{index.75f3672e.js → index.10c545e2.js} +2 -2
- package/dist/chunks/{index.75f3672e.js.map → index.10c545e2.js.map} +1 -1
- package/dist/chunks/{index.4d2a13e1.js → index.4e3fb264.js} +2 -2
- package/dist/chunks/{index.4d2a13e1.js.map → index.4e3fb264.js.map} +1 -1
- package/dist/chunks/{index.89dfe209.js → index.5596079e.js} +2 -2
- package/dist/chunks/{index.89dfe209.js.map → index.5596079e.js.map} +1 -1
- package/dist/chunks/index.785d9829.js +21 -0
- package/dist/chunks/index.785d9829.js.map +1 -0
- package/dist/chunks/{index.85832db5.js → index.791fdd7d.js} +3 -3
- package/dist/chunks/{index.85832db5.js.map → index.791fdd7d.js.map} +1 -1
- package/dist/chunks/{index.0ee895e0.js → index.934e5485.js} +2 -2
- package/dist/chunks/{index.0ee895e0.js.map → index.934e5485.js.map} +1 -1
- package/dist/chunks/index.9424976e.js +622 -0
- package/dist/chunks/index.9424976e.js.map +1 -0
- package/dist/chunks/index.99d2c4e5.js +168 -0
- package/dist/chunks/index.99d2c4e5.js.map +1 -0
- package/dist/chunks/{index.98174339.js → index.a875e4b3.js} +5 -5
- package/dist/chunks/{index.98174339.js.map → index.a875e4b3.js.map} +1 -1
- package/dist/chunks/{index.c6fecf1c.js → index.fd70b861.js} +28 -28
- package/dist/chunks/{index.c6fecf1c.js.map → index.fd70b861.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.b1eb32bd.js → listbox-option-tag.854fcb0d.js} +3 -3
- package/dist/chunks/{listbox-option-tag.b1eb32bd.js.map → listbox-option-tag.854fcb0d.js.map} +1 -1
- package/dist/chunks/listbox.963589af.js +1419 -0
- package/dist/chunks/listbox.963589af.js.map +1 -0
- package/dist/chunks/{loading-button.4b88e24d.js → loading-button.09fa0115.js} +19 -19
- package/dist/chunks/{loading-button.4b88e24d.js.map → loading-button.09fa0115.js.map} +1 -1
- package/dist/chunks/{tooltip.27c32d36.js → tooltip.65868eae.js} +15 -15
- package/dist/chunks/tooltip.65868eae.js.map +1 -0
- package/dist/chunks/use-has-slot.4d98bf29.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 +1287 -983
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +20 -20
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +2 -10
- package/dist/divider.js.map +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/empty-state.js +23 -23
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +553 -541
- 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 +3 -3
- package/dist/index.js +73 -72
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +4 -4
- package/dist/internal.js +17 -15
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal.js +67 -64
- 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 +69 -67
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +8 -8
- package/dist/segmented-control.js +3 -3
- 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 +3 -3
- package/dist/tag.js +3 -3
- package/dist/textarea.js +173 -161
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +244 -237
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +3 -3
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +5 -5
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +2 -2
- package/dist/chunks/base-modal.a629cb32.js.map +0 -1
- package/dist/chunks/button.82ed953e.js +0 -148
- package/dist/chunks/button.82ed953e.js.map +0 -1
- package/dist/chunks/checkbox.731dc0ab.js +0 -264
- package/dist/chunks/checkbox.731dc0ab.js.map +0 -1
- package/dist/chunks/controls-group.d6543674.js.map +0 -1
- package/dist/chunks/copy.330d594e.js +0 -126
- package/dist/chunks/copy.330d594e.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.4108b289.js.map +0 -1
- package/dist/chunks/dropdown.63de9aac.js.map +0 -1
- package/dist/chunks/index.73ed22a7.js +0 -594
- package/dist/chunks/index.73ed22a7.js.map +0 -1
- package/dist/chunks/index.edcaf766.js +0 -150
- package/dist/chunks/index.edcaf766.js.map +0 -1
- package/dist/chunks/listbox.ac43f8ab.js +0 -1309
- package/dist/chunks/listbox.ac43f8ab.js.map +0 -1
- package/dist/chunks/tooltip.27c32d36.js.map +0 -1
package/dist/radio-group.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { B as
|
|
3
|
-
import { u as
|
|
4
|
-
import { g as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
1
|
+
import { defineComponent as D, toRefs as U, computed as r, resolveComponent as E, openBlock as i, createElementBlock as C, normalizeClass as A, createElementVNode as w, createBlock as v, withCtx as u, renderSlot as S, createCommentVNode as h, toRef as $, watch as P, createVNode as q, Fragment as H, renderList as z, createSlots as F, createTextVNode as L, toDisplayString as R } from "vue";
|
|
2
|
+
import { B as G, d as Y } from "./chunks/index.10c545e2.js";
|
|
3
|
+
import { u as Z } from "./chunks/aria-label.ac9651a5.js";
|
|
4
|
+
import { g as B } from "./chunks/unique-id.a2a2b458.js";
|
|
5
|
+
import { u as j } from "./chunks/use-default-slot-validator.1169c221.js";
|
|
6
|
+
import { u as M } from "./chunks/use-has-slot.4d98bf29.js";
|
|
7
7
|
import { g as T } from "./chunks/get-slot-text.bead058f.js";
|
|
8
|
-
import { _ as
|
|
9
|
-
import { u as
|
|
10
|
-
import { C as
|
|
11
|
-
import { E as
|
|
12
|
-
import "./assets/
|
|
13
|
-
var
|
|
14
|
-
const
|
|
8
|
+
import { _ as V } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
9
|
+
import { u as J } from "./chunks/use-form-layout-loading.d03e5d48.js";
|
|
10
|
+
import { C as K } from "./chunks/controls-group.2f6cbb21.js";
|
|
11
|
+
import { E as Q } from "./chunks/field-label.085966f6.js";
|
|
12
|
+
import "./assets/index31.css";
|
|
13
|
+
var _ = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e))(_ || {}), I = /* @__PURE__ */ ((e) => (e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e))(I || {}), p = /* @__PURE__ */ ((e) => (e.UPDATE = "update:model-value", e.INPUT = "input", e))(p || {});
|
|
14
|
+
const W = D({
|
|
15
15
|
name: "radio-button",
|
|
16
|
-
components: { BentoTypography:
|
|
16
|
+
components: { BentoTypography: G },
|
|
17
17
|
props: {
|
|
18
18
|
/**
|
|
19
19
|
* Disable the radio button (optional)
|
|
@@ -52,49 +52,49 @@ const Q = N({
|
|
|
52
52
|
required: !0
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
emits: [
|
|
56
|
-
setup(e, { slots: o, emit:
|
|
57
|
-
const { value: f } =
|
|
58
|
-
|
|
55
|
+
emits: [p.UPDATE],
|
|
56
|
+
setup(e, { slots: o, emit: c }) {
|
|
57
|
+
const { value: f } = U(e), m = B("radio-button"), s = B("description"), t = T(o)("default"), n = T(o)("description");
|
|
58
|
+
j("radio-button", o.default, o.description);
|
|
59
59
|
const y = r(() => ({
|
|
60
|
-
[`b-radio-button--${
|
|
61
|
-
[`b-radio-button--${
|
|
60
|
+
[`b-radio-button--${_.DISABLED}`]: e.disabled,
|
|
61
|
+
[`b-radio-button--${_.READONLY}`]: e.readonly
|
|
62
62
|
})), a = r(() => ({
|
|
63
|
-
[`b-radio-button__input--${
|
|
64
|
-
})),
|
|
63
|
+
[`b-radio-button__input--${_.ERROR}`]: e.hasError
|
|
64
|
+
})), l = Z({
|
|
65
65
|
ariaLabel: T(o)("default"),
|
|
66
66
|
label: f.value
|
|
67
67
|
}), d = r(() => e.hasError), k = r(() => e.value === e.modelValue), g = () => {
|
|
68
|
-
!e.disabled && !e.readonly && p
|
|
69
|
-
},
|
|
68
|
+
!e.disabled && !e.readonly && c(p.UPDATE, e.value);
|
|
69
|
+
}, N = (b) => {
|
|
70
70
|
e.readonly && b.preventDefault();
|
|
71
71
|
};
|
|
72
72
|
return {
|
|
73
73
|
// Values
|
|
74
|
-
ariaLabel:
|
|
74
|
+
ariaLabel: l,
|
|
75
75
|
ariaInvalid: d,
|
|
76
76
|
isChecked: k,
|
|
77
77
|
defaultSlotValue: t,
|
|
78
|
-
descriptionSlotValue:
|
|
78
|
+
descriptionSlotValue: n,
|
|
79
79
|
conditionalClassContainer: y,
|
|
80
80
|
conditionalClassInput: a,
|
|
81
81
|
radioButtonId: m,
|
|
82
82
|
descriptionId: s,
|
|
83
83
|
// Methods
|
|
84
|
-
hasSlot:
|
|
84
|
+
hasSlot: M(o),
|
|
85
85
|
onChange: g,
|
|
86
|
-
onClick:
|
|
86
|
+
onClick: N
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
-
const
|
|
91
|
-
function
|
|
90
|
+
const X = ["id", "aria-checked", "aria-label", "aria-invalid", "aria-describedby", "checked", "disabled", "aria-readonly", "value"], x = ["for"];
|
|
91
|
+
function ee(e, o, c, f, m, s) {
|
|
92
92
|
const t = E("bento-typography");
|
|
93
93
|
return i(), C("div", {
|
|
94
|
-
class:
|
|
94
|
+
class: A(["b-radio-button", e.conditionalClassContainer]),
|
|
95
95
|
"data-testid": "radio-button-container"
|
|
96
96
|
}, [
|
|
97
|
-
|
|
97
|
+
w("input", {
|
|
98
98
|
id: e.radioButtonId,
|
|
99
99
|
"aria-checked": e.isChecked,
|
|
100
100
|
"aria-label": e.ariaLabel,
|
|
@@ -105,11 +105,11 @@ function x(e, o, p, f, m, s) {
|
|
|
105
105
|
"aria-readonly": e.readonly ? e.readonly : void 0,
|
|
106
106
|
value: e.value,
|
|
107
107
|
type: "radio",
|
|
108
|
-
class:
|
|
108
|
+
class: A(["b-radio-button__input", e.conditionalClassInput]),
|
|
109
109
|
role: "radio",
|
|
110
|
-
onClick: o[0] || (o[0] = (...
|
|
111
|
-
onChange: o[1] || (o[1] = (...
|
|
112
|
-
}, null, 42,
|
|
110
|
+
onClick: o[0] || (o[0] = (...n) => e.onClick && e.onClick(...n)),
|
|
111
|
+
onChange: o[1] || (o[1] = (...n) => e.onChange && e.onChange(...n))
|
|
112
|
+
}, null, 42, X),
|
|
113
113
|
e.hasSlot("default") ? (i(), C("label", {
|
|
114
114
|
key: 0,
|
|
115
115
|
for: e.radioButtonId,
|
|
@@ -148,12 +148,12 @@ function x(e, o, p, f, m, s) {
|
|
|
148
148
|
]),
|
|
149
149
|
_: 3
|
|
150
150
|
})) : h("", !0)
|
|
151
|
-
], 8,
|
|
151
|
+
], 8, x)) : h("", !0)
|
|
152
152
|
], 2);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
155
|
-
name:
|
|
156
|
-
components: { ControlsGroup:
|
|
154
|
+
const oe = /* @__PURE__ */ V(W, [["render", ee], ["__scopeId", "data-v-70c50aa0"]]), O = "bento-radio-group", ae = D({
|
|
155
|
+
name: O,
|
|
156
|
+
components: { ControlsGroup: K, ErrorMessage: Q, RadioButton: oe },
|
|
157
157
|
model: { prop: "modelValue" },
|
|
158
158
|
props: {
|
|
159
159
|
/**
|
|
@@ -216,26 +216,26 @@ const ee = /* @__PURE__ */ U(Q, [["render", x], ["__scopeId", "data-v-70c50aa0"]
|
|
|
216
216
|
*/
|
|
217
217
|
variant: {
|
|
218
218
|
type: String,
|
|
219
|
-
default:
|
|
220
|
-
validator: (e) => Object.values(
|
|
219
|
+
default: I.VERTICAL,
|
|
220
|
+
validator: (e) => Object.values(I).includes(e)
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
|
-
emits: [
|
|
224
|
-
setup(e, { slots: o, emit:
|
|
225
|
-
const f =
|
|
223
|
+
emits: [p.UPDATE, p.INPUT],
|
|
224
|
+
setup(e, { slots: o, emit: c }) {
|
|
225
|
+
const f = $(e, "modelValue"), m = B("error"), { isReadOnly: s } = J($(e, "readonly")), t = M(o), n = r(
|
|
226
226
|
() => !e.disabled && !s.value && (!!e.errorMessage || e.hasError)
|
|
227
227
|
), y = r(() => !e.disabled && !s.value && !!e.errorMessage), a = r(() => ({
|
|
228
|
-
"b-radio-group__buttons--horizontal": e.variant ===
|
|
229
|
-
})),
|
|
230
|
-
p
|
|
228
|
+
"b-radio-group__buttons--horizontal": e.variant === I.HORIZONTAL
|
|
229
|
+
})), l = r(() => e.variant === "vertical"), d = r(() => t("content")), k = r(() => (d == null ? void 0 : d.value) && (l == null ? void 0 : l.value)), g = r(() => (d == null ? void 0 : d.value) && !(l != null && l.value)), N = (b) => {
|
|
230
|
+
c(p.UPDATE, b), c(p.INPUT, b);
|
|
231
231
|
};
|
|
232
|
-
return e.hasError &&
|
|
232
|
+
return e.hasError && Y(
|
|
233
233
|
'BentoRadioGroup "hasError" property',
|
|
234
234
|
`Use the BentoRadioGroup "errorMessage" property instead to indicate that there is a modifier error.
|
|
235
235
|
Having the field as "undefined" will hide/remove the error.
|
|
236
236
|
<bento-radio-group errorMessage="Error message text" />`,
|
|
237
237
|
"2.0.0"
|
|
238
|
-
),
|
|
238
|
+
), P(
|
|
239
239
|
g,
|
|
240
240
|
(b) => {
|
|
241
241
|
if (b)
|
|
@@ -246,29 +246,31 @@ const ee = /* @__PURE__ */ U(Q, [["render", x], ["__scopeId", "data-v-70c50aa0"]
|
|
|
246
246
|
}
|
|
247
247
|
), {
|
|
248
248
|
// Values
|
|
249
|
+
COMPONENT_NAME: O,
|
|
249
250
|
inputValue: f,
|
|
250
251
|
errorId: m,
|
|
251
252
|
isReadOnly: s,
|
|
252
|
-
shouldShowError:
|
|
253
|
+
shouldShowError: n,
|
|
253
254
|
shouldShowErrorMessage: y,
|
|
254
255
|
conditionalClasses: a,
|
|
255
256
|
contentSlotAvailable: k,
|
|
256
|
-
isVertical:
|
|
257
|
+
isVertical: l,
|
|
257
258
|
shouldShowSlotError: g,
|
|
258
259
|
hasContentSlot: d,
|
|
259
260
|
hasSlot: t,
|
|
260
261
|
// Methods
|
|
261
|
-
onInput:
|
|
262
|
+
onInput: N
|
|
262
263
|
};
|
|
263
264
|
}
|
|
264
265
|
});
|
|
265
|
-
const
|
|
266
|
-
function
|
|
267
|
-
const t = E("radio-button"),
|
|
268
|
-
return i(), C("div",
|
|
269
|
-
|
|
270
|
-
class:
|
|
266
|
+
const re = { class: "b-radio-group" };
|
|
267
|
+
function te(e, o, c, f, m, s) {
|
|
268
|
+
const t = E("radio-button"), n = E("controls-group"), y = E("error-message");
|
|
269
|
+
return i(), C("div", re, [
|
|
270
|
+
q(n, {
|
|
271
|
+
class: A(["b-radio-group__buttons", e.conditionalClasses]),
|
|
271
272
|
"aria-describedby": e.shouldShowErrorMessage ? e.errorId : "",
|
|
273
|
+
"component-name": e.COMPONENT_NAME,
|
|
272
274
|
description: e.description,
|
|
273
275
|
disabled: e.disabled,
|
|
274
276
|
form: e.formId,
|
|
@@ -279,7 +281,7 @@ function re(e, o, p, f, m, s) {
|
|
|
279
281
|
"tooltip-text": e.tooltipText
|
|
280
282
|
}, {
|
|
281
283
|
default: u(() => [
|
|
282
|
-
(i(!0), C(
|
|
284
|
+
(i(!0), C(H, null, z(e.items, (a) => (i(), v(t, {
|
|
283
285
|
key: a.value,
|
|
284
286
|
"model-value": e.inputValue,
|
|
285
287
|
value: a.value,
|
|
@@ -287,16 +289,16 @@ function re(e, o, p, f, m, s) {
|
|
|
287
289
|
readonly: e.isReadOnly || a.readonly,
|
|
288
290
|
"has-error": e.shouldShowError || a.hasError,
|
|
289
291
|
"onUpdate:modelValue": e.onInput
|
|
290
|
-
},
|
|
292
|
+
}, F({
|
|
291
293
|
default: u(() => [
|
|
292
|
-
R(
|
|
294
|
+
L(R(a.label) + " ", 1)
|
|
293
295
|
]),
|
|
294
296
|
_: 2
|
|
295
297
|
}, [
|
|
296
298
|
a.description ? {
|
|
297
299
|
name: "description",
|
|
298
300
|
fn: u(() => [
|
|
299
|
-
R(
|
|
301
|
+
L(R(a.description), 1)
|
|
300
302
|
]),
|
|
301
303
|
key: "0"
|
|
302
304
|
} : void 0,
|
|
@@ -310,7 +312,7 @@ function re(e, o, p, f, m, s) {
|
|
|
310
312
|
]), 1032, ["model-value", "value", "disabled", "readonly", "has-error", "onUpdate:modelValue"]))), 128))
|
|
311
313
|
]),
|
|
312
314
|
_: 3
|
|
313
|
-
}, 8, ["aria-describedby", "class", "description", "disabled", "form", "label", "optional", "required", "hide-label", "tooltip-text"]),
|
|
315
|
+
}, 8, ["aria-describedby", "component-name", "class", "description", "disabled", "form", "label", "optional", "required", "hide-label", "tooltip-text"]),
|
|
314
316
|
e.shouldShowErrorMessage ? (i(), v(y, {
|
|
315
317
|
key: 0,
|
|
316
318
|
id: e.errorId,
|
|
@@ -319,9 +321,9 @@ function re(e, o, p, f, m, s) {
|
|
|
319
321
|
}, null, 8, ["id", "error-message"])) : h("", !0)
|
|
320
322
|
]);
|
|
321
323
|
}
|
|
322
|
-
const
|
|
324
|
+
const ye = /* @__PURE__ */ V(ae, [["render", te], ["__scopeId", "data-v-a3a9124f"]]);
|
|
323
325
|
export {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
+
ye as BentoRadioGroup,
|
|
327
|
+
I as BentoRadioGroupVariant
|
|
326
328
|
};
|
|
327
329
|
//# sourceMappingURL=radio-group.js.map
|
package/dist/radio-group.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.js","sources":["../../vue2/src/components/radio-group/components/radio-button/radio-button.types.ts","../../vue2/src/components/radio-group/radio-group.types.ts","../../vue2/src/components/radio-group/components/radio-button/radio-button.vue","../../vue2/src/components/radio-group/radio-group.vue"],"sourcesContent":["export enum BentoRadioButtonStateClass {\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n","/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoRadioGroupVariant {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\nexport interface BentoRadioGroupItem {\n value: string | number;\n label: string;\n description?: string;\n disabled?: boolean;\n readonly?: boolean;\n hasError?: boolean;\n}\n\nexport type BentoRadioGroupItems = Array<BentoRadioGroupItem>;\n\nexport enum BentoRadioGroupEvent {\n UPDATE = 'update:model-value',\n INPUT = 'input',\n}\n","<template>\n <div class=\"b-radio-button\" data-testid=\"radio-button-container\" :class=\"conditionalClassContainer\">\n <input\n :id=\"radioButtonId\"\n :aria-checked=\"isChecked\"\n :aria-label=\"ariaLabel\"\n :aria-invalid=\"ariaInvalid\"\n :aria-describedby=\"hasSlot('description') ? descriptionId : ''\"\n :checked=\"isChecked\"\n :disabled=\"disabled\"\n :aria-readonly=\"readonly ? readonly : undefined\"\n :value=\"value\"\n type=\"radio\"\n class=\"b-radio-button__input\"\n :class=\"conditionalClassInput\"\n role=\"radio\"\n @click=\"onClick\"\n @change=\"onChange\"\n />\n <label v-if=\"hasSlot('default')\" :for=\"radioButtonId\" class=\"b-radio-button__label-container\">\n <bento-typography v-if=\"hasSlot('default')\" class=\"b-radio-button__label\" el=\"span\" variant=\"body\">\n <slot></slot>\n </bento-typography>\n <bento-typography\n v-if=\"hasSlot('default') && hasSlot('description')\"\n :id=\"descriptionId\"\n class=\"b-radio-button__description\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"description\"></slot>\n </bento-typography>\n <bento-typography v-if=\"hasSlot('content') && isChecked\" class=\"b-radio-button__content\" el=\"div\">\n <slot name=\"content\"></slot>\n </bento-typography>\n </label>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n import type { HTMLAttributes } from 'vue/types/jsx';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { generateUid } from '@/utils/ts/unique-id';\n import { computed, ComputedRef, defineComponent, toRefs } from 'vue';\n import { useDefaultSlotValidator, useHasSlot } from '@/composables';\n import { BentoRadioButtonStateClass } from './radio-button.types';\n import { BentoRadioGroupEvent } from '../../radio-group.types';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n\n /**\n * Radio buttons are used when two or more options are mutually exclusive,\n * the user can only select a single option from a list of pre-defined options.\n * The label tag area is also clickable.\n * Only to be used internally.\n *\n * @usage\n * import { RadioButton } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { RadioButton },\n * template: `\n * <radio-button\n * disabled\n * value=\"inputRadio\"\n * >\n * Label text\n * <template #description>Description text below label</template>\n * </radio-button>\n * `,\n * }\n */\n export default defineComponent({\n name: 'radio-button',\n components: { BentoTypography },\n props: {\n /**\n * Disable the radio button (optional)\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * Shows radio-button in error state (optional)\n */\n hasError: {\n type: Boolean,\n default: false,\n },\n /**\n * This property should not be used directly.\n * It will be used by v-model directive on radio component.\n */\n modelValue: {\n type: [String, Number],\n default: null,\n },\n /**\n * Sets the radio button to readonly (optional)\n */\n readonly: {\n type: Boolean,\n default: false,\n },\n /**\n * Indicates the value of the input that will be returned when it's checked\n */\n value: {\n type: [String, Number],\n required: true,\n },\n },\n emits: [BentoRadioGroupEvent.UPDATE],\n setup(props, { slots, emit }) {\n const { value } = toRefs(props);\n const radioButtonId = generateUid('radio-button');\n const descriptionId = generateUid('description');\n\n const defaultSlotValue = getSlotText(slots)('default');\n const descriptionSlotValue = getSlotText(slots)('description');\n\n useDefaultSlotValidator('radio-button', slots.default, slots.description);\n\n const conditionalClassContainer = computed(() => ({\n [`b-radio-button--${BentoRadioButtonStateClass.DISABLED}`]: props.disabled,\n [`b-radio-button--${BentoRadioButtonStateClass.READONLY}`]: props.readonly,\n }));\n const conditionalClassInput = computed(() => ({\n [`b-radio-button__input--${BentoRadioButtonStateClass.ERROR}`]: props.hasError,\n }));\n\n const ariaLabel = useAriaLabel({\n ariaLabel: getSlotText(slots)('default'),\n label: value.value as string,\n });\n const ariaInvalid = computed<HTMLAttributes['aria-invalid']>(() => props.hasError);\n\n const isChecked: ComputedRef<boolean> = computed(() => props.value === props.modelValue);\n\n const onChange = () => {\n if (!props.disabled && !props.readonly) {\n emit(BentoRadioGroupEvent.UPDATE, props.value);\n }\n };\n\n // readonly attr doesn't work with radio button, so we need to manually ignore the click instead\n const onClick = event => {\n if (props.readonly) {\n event.preventDefault();\n }\n };\n\n return {\n // Values\n ariaLabel,\n ariaInvalid,\n isChecked,\n defaultSlotValue,\n descriptionSlotValue,\n conditionalClassContainer,\n conditionalClassInput,\n radioButtonId,\n descriptionId,\n\n // Methods\n hasSlot: useHasSlot(slots),\n onChange,\n onClick,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-button.scss\" />\n","<template>\n <div class=\"b-radio-group\">\n <controls-group\n class=\"b-radio-group__buttons\"\n :aria-describedby=\"shouldShowErrorMessage ? errorId : ''\"\n :class=\"conditionalClasses\"\n :description=\"description\"\n :disabled=\"disabled\"\n :form=\"formId\"\n :label=\"label\"\n :optional=\"optional\"\n :required=\"required\"\n :hide-label=\"hideLabel\"\n :tooltip-text=\"tooltipText\"\n >\n <radio-button\n v-for=\"item in items\"\n :key=\"item.value\"\n :model-value=\"inputValue\"\n :value=\"item.value\"\n :disabled=\"disabled || item.disabled\"\n :readonly=\"isReadOnly || item.readonly\"\n :has-error=\"shouldShowError || item.hasError\"\n @update:model-value=\"onInput\"\n >\n {{ item.label }}\n <template v-if=\"item.description\" #description>{{ item.description }}</template>\n <template v-if=\"contentSlotAvailable\" #content>\n <slot name=\"content\"></slot>\n </template>\n </radio-button>\n </controls-group>\n <error-message\n v-if=\"shouldShowErrorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-radio-group__error-message\"\n />\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, toRef, watch } from 'vue';\n import { ControlsGroup, ErrorMessage } from '@/components/internal';\n import RadioButton from './components/radio-button/radio-button.vue';\n import { useHasSlot } from '@/composables';\n import { generateUid } from '@/utils/ts/unique-id';\n import { deprecate } from '@/utils/ts/deprecate';\n import { BentoRadioGroupEvent, BentoRadioGroupItems, BentoRadioGroupVariant } from './radio-group.types';\n import { useFormLayoutFieldLoading } from '@/composables/use-form-layout-loading/use-form-layout-loading';\n\n /**\n * A radio group component should be used whenever it is necessary to use a set of radio buttons\n * This component conforms to the official WAI-ARIA guidelines for grouping controls: https://www.w3.org/WAI/tutorials/forms/grouping/\n *\n * import { BentoRadioGroup } from '@adyen/bento-vue2/';\n *\n * export default {\n * components: { BentoRadioGroup },\n * template: `\n * <bento-radio-group\n * label=\"Your group label\"\n * :items=\"[\n * { value: 1, label: 'Your label' },\n * { value: 2, label: 'Another label', description: 'Your descriptive sub label' },\n * ]\"\n * variant=\"horizontal\"\n * />\n * `\n * };\n */\n export default defineComponent({\n name: 'bento-radio-group',\n components: { ControlsGroup, ErrorMessage, RadioButton },\n model: { prop: 'modelValue' },\n props: {\n /**\n * Descriptive supporting text visbile underneath the label.\n */\n description: { type: String, default: null },\n\n /**\n * If set to true, renders all radio-buttons in the group in a disabled state.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * If string is passed, all radio-buttons in an error state and renders the string beneath the buttons.\n */\n errorMessage: { type: String, default: null },\n\n /**\n * The form id the radio group is associated with. Defaults to null, as a radio group can also be used standalone.\n */\n formId: { type: String, default: null },\n\n /**\n * If set to true, renders all radio-buttons in the group in an error state.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n hasError: { type: Boolean, default: false },\n\n /**\n * Shows/hides the group label.\n */\n hideLabel: { type: Boolean, default: null },\n\n /**\n * The radio group's items.\n */\n items: { type: Array as PropType<BentoRadioGroupItems>, required: true },\n\n /**\n * The name associated with the group. Required for accessibility purposes.\n */\n label: { type: String, required: true },\n\n /**\n * Determines the initially selected value of the group. Corresponds to the BentoRadioButtonItem's value.\n * Defaults to no value selected.\n */\n modelValue: { type: [Number, String, null], default: null },\n\n /**\n * Indicates the field is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * If set to true, renders all radio-buttons in the group in a readonly state.\n */\n readonly: { 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 * The radio group's layout. It can be vertical or horizontal. Defaults to vertical.\n */\n variant: {\n type: String as PropType<BentoRadioGroupVariant | `${BentoRadioGroupVariant}`>,\n default: BentoRadioGroupVariant.VERTICAL,\n validator: (value: BentoRadioGroupVariant) => Object.values(BentoRadioGroupVariant).includes(value),\n },\n },\n emits: [BentoRadioGroupEvent.UPDATE, BentoRadioGroupEvent.INPUT],\n setup(props, { slots, emit }) {\n const inputValue = toRef(props, 'modelValue');\n const errorId = generateUid('error');\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n const hasSlot = useHasSlot(slots);\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.hasError)\n );\n const shouldShowErrorMessage = computed(() => !props.disabled && !isReadOnly.value && !!props.errorMessage);\n\n const conditionalClasses = computed(() => ({\n 'b-radio-group__buttons--horizontal': props.variant === BentoRadioGroupVariant.HORIZONTAL,\n }));\n\n // Content slot logic\n const isVertical = computed(() => props.variant === 'vertical');\n const hasContentSlot = computed(() => hasSlot('content'));\n const contentSlotAvailable = computed(() => hasContentSlot?.value && isVertical?.value);\n const shouldShowSlotError = computed(() => hasContentSlot?.value && !isVertical?.value);\n\n const onInput = value => {\n emit(BentoRadioGroupEvent.UPDATE, value);\n emit(BentoRadioGroupEvent.INPUT, value);\n };\n\n if (props.hasError) {\n deprecate(\n 'BentoRadioGroup \"hasError\" property',\n `Use the BentoRadioGroup \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-radio-group errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n watch(\n shouldShowSlotError,\n newVal => {\n if (newVal) {\n throw new Error('The content slot is only available for the vertical radio group layout');\n }\n },\n {\n immediate: true,\n }\n );\n\n return {\n // Values\n inputValue,\n errorId,\n isReadOnly,\n shouldShowError,\n shouldShowErrorMessage,\n conditionalClasses,\n contentSlotAvailable,\n isVertical,\n shouldShowSlotError,\n hasContentSlot,\n hasSlot,\n\n // Methods\n onInput,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-group.scss\" />\n"],"names":["BentoRadioButtonStateClass","BentoRadioButtonStateClass2","BentoRadioGroupVariant","BentoRadioGroupVariant2","BentoRadioGroupEvent","BentoRadioGroupEvent2","_sfc_main$1","defineComponent","BentoTypography","props","slots","emit","value","toRefs","radioButtonId","generateUid","descriptionId","defaultSlotValue","getSlotText","descriptionSlotValue","useDefaultSlotValidator","conditionalClassContainer","computed","conditionalClassInput","ariaLabel","useAriaLabel","ariaInvalid","isChecked","onChange","onClick","event","useHasSlot","openBlock","createElementBlock","normalizeClass","_ctx","createElementVNode","_cache","args","_hoisted_1$1","createCommentVNode","createBlock","_component_bento_typography","_sfc_main","ControlsGroup","ErrorMessage","RadioButton","inputValue","toRef","errorId","isReadOnly","useFormLayoutFieldLoading","hasSlot","shouldShowError","shouldShowErrorMessage","conditionalClasses","isVertical","hasContentSlot","contentSlotAvailable","shouldShowSlotError","onInput","deprecate","watch","newVal","_hoisted_1","createVNode","_component_controls_group","Fragment","renderList","item","_component_radio_button","createSlots","withCtx","_component_error_message"],"mappings":";;;;;;;;;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAA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AAzNQ,SAAA5B,EAAA,GAAAC,EAAA,OAAA+B,IAAA;AAAA,IAEQC,EAAAC,GAAA;AAAA,MADW,OAAAhC,EAAA,CAAA,0BAAAC,EAAA,kBAAA,CAAA;AAAA,MAEM,oBAAAA,EAAA,yBAAAA,EAAA,UAAA;AAAA,MACN,aAAAA,EAAA;AAAA,MACN,UAAAA,EAAA;AAAA,MACL,MAAAA,EAAA;AAAA,MACG,OAAAA,EAAA;AAAA,MACA,UAAAA,EAAA;AAAA,MACE,UAAAA,EAAA;AAAA,MACA,cAAAA,EAAA;AAAA,MAGY,gBAAAA,EAAA;AAAA,IAAA,GAAA;AAAA;SACfH,EAAA,EAAA,GAAAC,EAAAkC,GAAA,MAAAC,EAAAjC,EAAA,OAAA,CAAAkC,OACLrC,EAAA,GAAAS,EAAA6B,GAAA;AAAA,UAAuB,KAAAD,EAAA;AAAA,UAChB,eAAAlC,EAAA;AAAA,UACG,OAAAkC,EAAA;AAAA,UACA,UAAAlC,EAAA,YAAAkC,EAAA;AAAA,UACC,UAAAlC,EAAA,cAAAkC,EAAA;AAAA,UACS,aAAAlC,EAAA,mBAAAkC,EAAA;AAAA,UAEL,uBAAAlC,EAAA;AAAA,QAAA,GAAAoC,EAAA;AAAA;;;UACA,GAAA;AAAA,QAAA,GAAA;AAAA;;;;;;UACA,IAAA;AAAA;YACZ,MAAA;AAAA,YAAA,IAAAC,EAAA,MAAA;AAAA;;;;;;MAKF,GAAA;AAAA,IAAA,GAAA,GAAA,CAAA,oBAAA,SAAA,eAAA,YAAA,QAAA,SAAA,YAAA,YAAA,cAAA,cAAA,CAAA;AAAA,IAIRrC,EAAA,0BAAAH,EAAA,GAAAS,EAAAgC,GAAA;AAAA,MAHc,KAAA;AAAA,MACX,IAAAtC,EAAA;AAAA,MACK,iBAAAA,EAAA;AAAA;;;;;"}
|
|
1
|
+
{"version":3,"file":"radio-group.js","sources":["../../vue2/src/components/radio-group/components/radio-button/radio-button.types.ts","../../vue2/src/components/radio-group/radio-group.types.ts","../../vue2/src/components/radio-group/components/radio-button/radio-button.vue","../../vue2/src/components/radio-group/radio-group.vue"],"sourcesContent":["export enum BentoRadioButtonStateClass {\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n","/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoRadioGroupVariant {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n\nexport interface BentoRadioGroupItem {\n value: string | number;\n label: string;\n description?: string;\n disabled?: boolean;\n readonly?: boolean;\n hasError?: boolean;\n}\n\nexport type BentoRadioGroupItems = Array<BentoRadioGroupItem>;\n\nexport enum BentoRadioGroupEvent {\n UPDATE = 'update:model-value',\n INPUT = 'input',\n}\n","<template>\n <div class=\"b-radio-button\" data-testid=\"radio-button-container\" :class=\"conditionalClassContainer\">\n <input\n :id=\"radioButtonId\"\n :aria-checked=\"isChecked\"\n :aria-label=\"ariaLabel\"\n :aria-invalid=\"ariaInvalid\"\n :aria-describedby=\"hasSlot('description') ? descriptionId : ''\"\n :checked=\"isChecked\"\n :disabled=\"disabled\"\n :aria-readonly=\"readonly ? readonly : undefined\"\n :value=\"value\"\n type=\"radio\"\n class=\"b-radio-button__input\"\n :class=\"conditionalClassInput\"\n role=\"radio\"\n @click=\"onClick\"\n @change=\"onChange\"\n />\n <label v-if=\"hasSlot('default')\" :for=\"radioButtonId\" class=\"b-radio-button__label-container\">\n <bento-typography v-if=\"hasSlot('default')\" class=\"b-radio-button__label\" el=\"span\" variant=\"body\">\n <slot></slot>\n </bento-typography>\n <bento-typography\n v-if=\"hasSlot('default') && hasSlot('description')\"\n :id=\"descriptionId\"\n class=\"b-radio-button__description\"\n el=\"span\"\n variant=\"body\"\n >\n <slot name=\"description\"></slot>\n </bento-typography>\n <bento-typography v-if=\"hasSlot('content') && isChecked\" class=\"b-radio-button__content\" el=\"div\">\n <slot name=\"content\"></slot>\n </bento-typography>\n </label>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { BentoTypography } from '@/components/typography';\n import type { HTMLAttributes } from 'vue/types/jsx';\n import { useAriaLabel } from '@/utils/ts/aria-label';\n import { generateUid } from '@/utils/ts/unique-id';\n import { computed, ComputedRef, defineComponent, toRefs } from 'vue';\n import { useDefaultSlotValidator, useHasSlot } from '@/composables';\n import { BentoRadioButtonStateClass } from './radio-button.types';\n import { BentoRadioGroupEvent } from '../../radio-group.types';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n\n /**\n * Radio buttons are used when two or more options are mutually exclusive,\n * the user can only select a single option from a list of pre-defined options.\n * The label tag area is also clickable.\n * Only to be used internally.\n *\n * @usage\n * import { RadioButton } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { RadioButton },\n * template: `\n * <radio-button\n * disabled\n * value=\"inputRadio\"\n * >\n * Label text\n * <template #description>Description text below label</template>\n * </radio-button>\n * `,\n * }\n */\n export default defineComponent({\n name: 'radio-button',\n components: { BentoTypography },\n props: {\n /**\n * Disable the radio button (optional)\n */\n disabled: {\n type: Boolean,\n default: false,\n },\n /**\n * Shows radio-button in error state (optional)\n */\n hasError: {\n type: Boolean,\n default: false,\n },\n /**\n * This property should not be used directly.\n * It will be used by v-model directive on radio component.\n */\n modelValue: {\n type: [String, Number],\n default: null,\n },\n /**\n * Sets the radio button to readonly (optional)\n */\n readonly: {\n type: Boolean,\n default: false,\n },\n /**\n * Indicates the value of the input that will be returned when it's checked\n */\n value: {\n type: [String, Number],\n required: true,\n },\n },\n emits: [BentoRadioGroupEvent.UPDATE],\n setup(props, { slots, emit }) {\n const { value } = toRefs(props);\n const radioButtonId = generateUid('radio-button');\n const descriptionId = generateUid('description');\n\n const defaultSlotValue = getSlotText(slots)('default');\n const descriptionSlotValue = getSlotText(slots)('description');\n\n useDefaultSlotValidator('radio-button', slots.default, slots.description);\n\n const conditionalClassContainer = computed(() => ({\n [`b-radio-button--${BentoRadioButtonStateClass.DISABLED}`]: props.disabled,\n [`b-radio-button--${BentoRadioButtonStateClass.READONLY}`]: props.readonly,\n }));\n const conditionalClassInput = computed(() => ({\n [`b-radio-button__input--${BentoRadioButtonStateClass.ERROR}`]: props.hasError,\n }));\n\n const ariaLabel = useAriaLabel({\n ariaLabel: getSlotText(slots)('default'),\n label: value.value as string,\n });\n const ariaInvalid = computed<HTMLAttributes['aria-invalid']>(() => props.hasError);\n\n const isChecked: ComputedRef<boolean> = computed(() => props.value === props.modelValue);\n\n const onChange = () => {\n if (!props.disabled && !props.readonly) {\n emit(BentoRadioGroupEvent.UPDATE, props.value);\n }\n };\n\n // readonly attr doesn't work with radio button, so we need to manually ignore the click instead\n const onClick = event => {\n if (props.readonly) {\n event.preventDefault();\n }\n };\n\n return {\n // Values\n ariaLabel,\n ariaInvalid,\n isChecked,\n defaultSlotValue,\n descriptionSlotValue,\n conditionalClassContainer,\n conditionalClassInput,\n radioButtonId,\n descriptionId,\n\n // Methods\n hasSlot: useHasSlot(slots),\n onChange,\n onClick,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-button.scss\" />\n","<template>\n <div class=\"b-radio-group\">\n <controls-group\n class=\"b-radio-group__buttons\"\n :aria-describedby=\"shouldShowErrorMessage ? errorId : ''\"\n :component-name=\"COMPONENT_NAME\"\n :class=\"conditionalClasses\"\n :description=\"description\"\n :disabled=\"disabled\"\n :form=\"formId\"\n :label=\"label\"\n :optional=\"optional\"\n :required=\"required\"\n :hide-label=\"hideLabel\"\n :tooltip-text=\"tooltipText\"\n >\n <radio-button\n v-for=\"item in items\"\n :key=\"item.value\"\n :model-value=\"inputValue\"\n :value=\"item.value\"\n :disabled=\"disabled || item.disabled\"\n :readonly=\"isReadOnly || item.readonly\"\n :has-error=\"shouldShowError || item.hasError\"\n @update:model-value=\"onInput\"\n >\n {{ item.label }}\n <template v-if=\"item.description\" #description>{{ item.description }}</template>\n <template v-if=\"contentSlotAvailable\" #content>\n <slot name=\"content\"></slot>\n </template>\n </radio-button>\n </controls-group>\n <error-message\n v-if=\"shouldShowErrorMessage\"\n :id=\"errorId\"\n :error-message=\"errorMessage\"\n class=\"b-radio-group__error-message\"\n />\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType, toRef, watch } from 'vue';\n import { ControlsGroup, ErrorMessage } from '@/components/internal';\n import RadioButton from './components/radio-button/radio-button.vue';\n import { useHasSlot } from '@/composables';\n import { generateUid } from '@/utils/ts/unique-id';\n import { deprecate } from '@/utils/ts/deprecate';\n import { BentoRadioGroupEvent, BentoRadioGroupItems, BentoRadioGroupVariant } from './radio-group.types';\n import { useFormLayoutFieldLoading } from '@/composables/use-form-layout-loading/use-form-layout-loading';\n\n /**\n * The name of the component to be used in the Vue devtools and console warnings.\n */\n const COMPONENT_NAME = 'bento-radio-group';\n\n /**\n * A radio group component should be used whenever it is necessary to use a set of radio buttons\n * This component conforms to the official WAI-ARIA guidelines for grouping controls: https://www.w3.org/WAI/tutorials/forms/grouping/\n *\n * import { BentoRadioGroup } from '@adyen/bento-vue2/';\n *\n * export default {\n * components: { BentoRadioGroup },\n * template: `\n * <bento-radio-group\n * label=\"Your group label\"\n * :items=\"[\n * { value: 1, label: 'Your label' },\n * { value: 2, label: 'Another label', description: 'Your descriptive sub label' },\n * ]\"\n * variant=\"horizontal\"\n * />\n * `\n * };\n */\n export default defineComponent({\n name: COMPONENT_NAME,\n components: { ControlsGroup, ErrorMessage, RadioButton },\n model: { prop: 'modelValue' },\n props: {\n /**\n * Descriptive supporting text visbile underneath the label.\n */\n description: { type: String, default: null },\n\n /**\n * If set to true, renders all radio-buttons in the group in a disabled state.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * If string is passed, all radio-buttons in an error state and renders the string beneath the buttons.\n */\n errorMessage: { type: String, default: null },\n\n /**\n * The form id the radio group is associated with. Defaults to null, as a radio group can also be used standalone.\n */\n formId: { type: String, default: null },\n\n /**\n * If set to true, renders all radio-buttons in the group in an error state.\n *\n * @deprecated Use \"errorMessage\" prop instead\n */\n hasError: { type: Boolean, default: false },\n\n /**\n * Shows/hides the group label.\n */\n hideLabel: { type: Boolean, default: null },\n\n /**\n * The radio group's items.\n */\n items: { type: Array as PropType<BentoRadioGroupItems>, required: true },\n\n /**\n * The name associated with the group. Required for accessibility purposes.\n */\n label: { type: String, required: true },\n\n /**\n * Determines the initially selected value of the group. Corresponds to the BentoRadioButtonItem's value.\n * Defaults to no value selected.\n */\n modelValue: { type: [Number, String, null], default: null },\n\n /**\n * Indicates the field is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * If set to true, renders all radio-buttons in the group in a readonly state.\n */\n readonly: { 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 * The radio group's layout. It can be vertical or horizontal. Defaults to vertical.\n */\n variant: {\n type: String as PropType<BentoRadioGroupVariant | `${BentoRadioGroupVariant}`>,\n default: BentoRadioGroupVariant.VERTICAL,\n validator: (value: BentoRadioGroupVariant) => Object.values(BentoRadioGroupVariant).includes(value),\n },\n },\n emits: [BentoRadioGroupEvent.UPDATE, BentoRadioGroupEvent.INPUT],\n setup(props, { slots, emit }) {\n const inputValue = toRef(props, 'modelValue');\n const errorId = generateUid('error');\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\n const hasSlot = useHasSlot(slots);\n\n const shouldShowError = computed(\n () => !props.disabled && !isReadOnly.value && (!!props.errorMessage || props.hasError)\n );\n const shouldShowErrorMessage = computed(() => !props.disabled && !isReadOnly.value && !!props.errorMessage);\n\n const conditionalClasses = computed(() => ({\n 'b-radio-group__buttons--horizontal': props.variant === BentoRadioGroupVariant.HORIZONTAL,\n }));\n\n // Content slot logic\n const isVertical = computed(() => props.variant === 'vertical');\n const hasContentSlot = computed(() => hasSlot('content'));\n const contentSlotAvailable = computed(() => hasContentSlot?.value && isVertical?.value);\n const shouldShowSlotError = computed(() => hasContentSlot?.value && !isVertical?.value);\n\n const onInput = value => {\n emit(BentoRadioGroupEvent.UPDATE, value);\n emit(BentoRadioGroupEvent.INPUT, value);\n };\n\n if (props.hasError) {\n deprecate(\n 'BentoRadioGroup \"hasError\" property',\n `Use the BentoRadioGroup \"errorMessage\" property instead to indicate that there is a modifier error.\n Having the field as \"undefined\" will hide/remove the error.\n <bento-radio-group errorMessage=\"Error message text\" />`,\n '2.0.0'\n );\n }\n\n watch(\n shouldShowSlotError,\n newVal => {\n if (newVal) {\n throw new Error('The content slot is only available for the vertical radio group layout');\n }\n },\n {\n immediate: true,\n }\n );\n\n return {\n // Values\n COMPONENT_NAME,\n inputValue,\n errorId,\n isReadOnly,\n shouldShowError,\n shouldShowErrorMessage,\n conditionalClasses,\n contentSlotAvailable,\n isVertical,\n shouldShowSlotError,\n hasContentSlot,\n hasSlot,\n\n // Methods\n onInput,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-group.scss\" />\n"],"names":["BentoRadioButtonStateClass","BentoRadioButtonStateClass2","BentoRadioGroupVariant","BentoRadioGroupVariant2","BentoRadioGroupEvent","BentoRadioGroupEvent2","_sfc_main$1","defineComponent","BentoTypography","props","slots","emit","value","toRefs","radioButtonId","generateUid","descriptionId","defaultSlotValue","getSlotText","descriptionSlotValue","useDefaultSlotValidator","conditionalClassContainer","computed","conditionalClassInput","ariaLabel","useAriaLabel","ariaInvalid","isChecked","onChange","onClick","event","useHasSlot","openBlock","createElementBlock","normalizeClass","_ctx","createElementVNode","_cache","args","_hoisted_1$1","createCommentVNode","createBlock","_component_bento_typography","COMPONENT_NAME","_sfc_main","ControlsGroup","ErrorMessage","RadioButton","inputValue","toRef","errorId","isReadOnly","useFormLayoutFieldLoading","hasSlot","shouldShowError","shouldShowErrorMessage","conditionalClasses","isVertical","hasContentSlot","contentSlotAvailable","shouldShowSlotError","onInput","deprecate","watch","newVal","_hoisted_1","createVNode","_component_controls_group","Fragment","renderList","item","_component_radio_button","createSlots","withCtx","_component_error_message"],"mappings":";;;;;;;;;;;;AAAY,IAAAA,I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/dist/search-bar.js
CHANGED
|
@@ -2,11 +2,11 @@ import { defineComponent as v, ref as i, watch as y, openBlock as C, createEleme
|
|
|
2
2
|
import { d as I } from "./chunks/debounce.b5ef6acf.js";
|
|
3
3
|
import { u as E } from "./chunks/i18n.6c402773.js";
|
|
4
4
|
import { BentoInputField as x } from "./input-field.js";
|
|
5
|
-
import { S as
|
|
6
|
-
import { C as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { u as O } from "./chunks/dropdown.
|
|
9
|
-
import "./assets/
|
|
5
|
+
import { S as F } from "./chunks/search.ade93bda.js";
|
|
6
|
+
import { C as P } from "./chunks/cross-circle-fill.1abec1a2.js";
|
|
7
|
+
import { _ as T } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
8
|
+
import { u as O } from "./chunks/dropdown.014ae3e3.js";
|
|
9
|
+
import "./assets/index37.css";
|
|
10
10
|
var m = /* @__PURE__ */ ((e) => (e.CLEAR = "clear", e.ESCAPE = "escape-pressed", e.INPUT = "input", e.UPDATE = "update:search-term", e))(m || {}), k = /* @__PURE__ */ ((e) => (e.CLEAR = "search-clear", e.INPUT = "search-input", e.UPDATE = "update:search-term", e))(k || {});
|
|
11
11
|
const h = {
|
|
12
12
|
"en-US": {
|
|
@@ -71,7 +71,7 @@ const h = {
|
|
|
71
71
|
onEscapePressed: d[0] || (d[0] = (w) => t(r(m).ESCAPE))
|
|
72
72
|
}, g({
|
|
73
73
|
defaultIconBefore: u(() => [
|
|
74
|
-
o(r(
|
|
74
|
+
o(r(F), {
|
|
75
75
|
"svg-title": r(n)("search"),
|
|
76
76
|
"aria-hidden": "true"
|
|
77
77
|
}, null, 8, ["svg-title"])
|
|
@@ -89,7 +89,7 @@ const h = {
|
|
|
89
89
|
onKeypress: p(c, ["enter"]),
|
|
90
90
|
onKeyup: p(c, ["space"])
|
|
91
91
|
}, [
|
|
92
|
-
o(r(
|
|
92
|
+
o(r(P), {
|
|
93
93
|
"svg-title": r(n)("clearSearch")
|
|
94
94
|
}, null, 8, ["svg-title"])
|
|
95
95
|
], 40, N)
|
|
@@ -100,7 +100,7 @@ const h = {
|
|
|
100
100
|
]));
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
|
-
const G = /* @__PURE__ */
|
|
103
|
+
const G = /* @__PURE__ */ T(L, [["__scopeId", "data-v-0d0b35ee"]]);
|
|
104
104
|
export {
|
|
105
105
|
G as BentoSearchBar,
|
|
106
106
|
k as BentoSearchBarEvent,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as B, ref as m, computed as b, resolveComponent as v, openBlock as r, createElementBlock as g, normalizeClass as w, createElementVNode as W, createBlock as $, createCommentVNode as y, createVNode as T, withCtx as A, createTextVNode as D, toDisplayString as N, toRef as U, toRefs as E, onMounted as q, resolveDirective as F, Fragment as R, renderList as P, withDirectives as z } from "vue";
|
|
2
|
-
import { B as M } from "./chunks/index.
|
|
2
|
+
import { B as M } from "./chunks/index.10c545e2.js";
|
|
3
3
|
import { g as O } from "./chunks/unique-id.a2a2b458.js";
|
|
4
4
|
import { C as j } from "./chunks/checkmark.eb3c7a06.js";
|
|
5
5
|
import { _ as L } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
6
|
-
import { b as G } from "./chunks/tooltip.
|
|
6
|
+
import { b as G } from "./chunks/tooltip.65868eae.js";
|
|
7
7
|
import { u as H } from "./chunks/i18n.6c402773.js";
|
|
8
8
|
import { u as J } from "./chunks/aria-label.ac9651a5.js";
|
|
9
9
|
import { o as K } from "./chunks/resize.a041304d.js";
|
|
10
|
-
import "./assets/
|
|
10
|
+
import "./assets/index39.css";
|
|
11
11
|
const Q = B({
|
|
12
12
|
name: "bento-segmented-control-button",
|
|
13
13
|
components: { BentoTypography: M, CheckmarkIcon: j },
|
package/dist/sidepanel.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as H, ref as u, inject as x, onUnmounted as W, computed as r, watch as b, openBlock as E, createBlock as $, Transition as X, unref as s, withCtx as f, withDirectives as Z, createElementVNode as w, normalizeClass as B, createVNode as v, createCommentVNode as R, createTextVNode as ee, toDisplayString as ae, renderSlot as K, createElementBlock as V, vShow as te, nextTick as U, toRefs as se, provide as G, withKeys as le, withModifiers as ne } from "vue";
|
|
2
|
-
import { a as j } from "./chunks/button.
|
|
3
|
-
import { B as F } from "./chunks/index.
|
|
4
|
-
import { F as ie } from "./chunks/footer-actions.
|
|
2
|
+
import { a as j } from "./chunks/button.6ca5cd14.js";
|
|
3
|
+
import { B as F } from "./chunks/index.10c545e2.js";
|
|
4
|
+
import { F as ie } from "./chunks/footer-actions.52d5a453.js";
|
|
5
5
|
import { A as oe } from "./chunks/arrow-left.81a91b8f.js";
|
|
6
6
|
import { u as J } from "./chunks/i18n.6c402773.js";
|
|
7
7
|
import { _ as M } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
8
|
-
import { B as ue } from "./chunks/index.
|
|
8
|
+
import { B as ue } from "./chunks/index.4e3fb264.js";
|
|
9
9
|
import { C as re } from "./chunks/cross.26509efc.js";
|
|
10
|
-
import "./assets/
|
|
10
|
+
import "./assets/index3.css";
|
|
11
11
|
var h = /* @__PURE__ */ ((e) => (e.UPDATE_ACTIVE_PAGE = "update:active-page", e.UPDATE_IS_OPEN = "update:is-open", e))(h || {}), T = /* @__PURE__ */ ((e) => (e.TRANSITION_LEVEL_DEEPER = "b-sidepanel-page__animation--level-deeper", e.TRANSITION_LEVEL_UPPER = "b-sidepanel-page__animation--level-upper", e))(T || {});
|
|
12
12
|
const Y = Symbol("sidepanel registerPage injection key"), z = Symbol("sidepanel config data injection key"), q = {
|
|
13
13
|
"en-US": {
|
package/dist/status.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as n, computed as r, resolveComponent as a, openBlock as l, createElementBlock as c, createElementVNode as p, normalizeClass as _, createVNode as d, withCtx as i, renderSlot as u } from "vue";
|
|
2
|
-
import { B as m } from "./chunks/index.
|
|
2
|
+
import { B as m } from "./chunks/index.10c545e2.js";
|
|
3
3
|
import { _ as b } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
4
|
-
import "./assets/
|
|
4
|
+
import "./assets/index40.css";
|
|
5
5
|
var t = /* @__PURE__ */ ((e) => (e.BLUE = "blue", e.GREEN = "green", e.GREY = "grey", e.ORANGE = "orange", e.RED = "red", e.YELLOW = "yellow", e))(t || {});
|
|
6
6
|
const y = n({
|
|
7
7
|
name: "bento-status",
|
package/dist/stepper.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as K, ref as i, computed as a, watch as $, provide as Z, readonly as se, openBlock as d, createElementBlock as S, withDirectives as M, mergeProps as U, unref as s, toHandlers as ne, renderSlot as V, createVNode as A, withCtx as x, createTextVNode as j, toDisplayString as P, createCommentVNode as ae, createElementVNode as G, useSlots as oe, inject as le, onMounted as ue, normalizeClass as re, createBlock as z, Fragment as ie, vShow as pe } from "vue";
|
|
2
|
-
import { B as w } from "./chunks/index.
|
|
2
|
+
import { B as w } from "./chunks/index.10c545e2.js";
|
|
3
3
|
import { B as N, a as ce } from "./chunks/keyboard-navigation.ca47dfa8.js";
|
|
4
4
|
import { u as de } from "./chunks/i18n.6c402773.js";
|
|
5
5
|
import { _ as H } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
6
|
-
import { B as ve } from "./chunks/base-button.
|
|
6
|
+
import { B as ve } from "./chunks/base-button.dfc0e32e.js";
|
|
7
7
|
import { C as _e } from "./chunks/checkmark-small.c79220d9.js";
|
|
8
|
-
import "./assets/
|
|
8
|
+
import "./assets/index32.css";
|
|
9
9
|
const be = (o) => {
|
|
10
10
|
function v(r) {
|
|
11
11
|
return ({ detail: u }) => {
|
package/dist/structured-list.js
CHANGED
package/dist/summary-grid.js
CHANGED
|
@@ -4,10 +4,10 @@ import { S as q } from "./chunks/summary-grid.keys.1d1028c2.js";
|
|
|
4
4
|
import { G as U } from "./chunks/grid-layout.c2fe3057.js";
|
|
5
5
|
import { _ } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
6
6
|
import { BentoInfoIcon as Y } from "./info-icon.js";
|
|
7
|
-
import { B as W, a as V } from "./chunks/index.
|
|
7
|
+
import { B as W, a as V } from "./chunks/index.10c545e2.js";
|
|
8
8
|
import { BentoTag as X, BentoTagVariant as L } from "./tag.js";
|
|
9
|
-
import { C as F } from "./chunks/copy.
|
|
10
|
-
import "./assets/
|
|
9
|
+
import { C as F } from "./chunks/copy.0fed8f42.js";
|
|
10
|
+
import "./assets/index43.css";
|
|
11
11
|
const H = S({
|
|
12
12
|
name: "bento-summary-grid",
|
|
13
13
|
components: { GridLayout: U },
|
package/dist/tabs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as w, toRefs as S, ref as v, provide as m, computed as k, inject as I, onUnmounted as L, withDirectives as N, openBlock as u, createElementBlock as p, renderSlot as A, vShow as C, watch as V, nextTick as X, resolveComponent as g, createVNode as y, withCtx as E, createElementVNode as f, Fragment as Y, renderList as F, normalizeClass as O, withKeys as G, createTextVNode as J, toDisplayString as U, createCommentVNode as j } from "vue";
|
|
2
2
|
import { E as q, T as $, a as B } from "./chunks/tabs.keys.358742f2.js";
|
|
3
3
|
import { _ as K } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
4
|
-
import { B as z } from "./chunks/index.
|
|
4
|
+
import { B as z } from "./chunks/index.10c545e2.js";
|
|
5
5
|
import { g as P } from "./chunks/unique-id.a2a2b458.js";
|
|
6
|
-
import { F as H } from "./chunks/fixed-scroller.
|
|
7
|
-
import "./assets/
|
|
6
|
+
import { F as H } from "./chunks/fixed-scroller.96019461.js";
|
|
7
|
+
import "./assets/index38.css";
|
|
8
8
|
const M = w({
|
|
9
9
|
props: {
|
|
10
10
|
/**
|
package/dist/tag.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as d, computed as o, resolveComponent as p, resolveDirective as m, withDirectives as _, openBlock as b, createElementBlock as v, normalizeClass as f, createVNode as g, withCtx as h, createTextVNode as y, toDisplayString as E } from "vue";
|
|
2
|
-
import { B as C } from "./chunks/index.
|
|
3
|
-
import { b as S } from "./chunks/tooltip.
|
|
2
|
+
import { B as C } from "./chunks/index.10c545e2.js";
|
|
3
|
+
import { b as S } from "./chunks/tooltip.65868eae.js";
|
|
4
4
|
import { u as x } from "./chunks/aria-label.ac9651a5.js";
|
|
5
5
|
import { g as c } from "./chunks/get-slot-text.bead058f.js";
|
|
6
6
|
import { _ as $ } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
7
|
-
import "./assets/
|
|
7
|
+
import "./assets/index33.css";
|
|
8
8
|
var n = /* @__PURE__ */ ((e) => (e.GREY = "grey", e.BLUE = "blue", e.GREEN = "green", e.ORANGE = "orange", e.RED = "red", e.WHITE = "white", e))(n || {});
|
|
9
9
|
const w = d({
|
|
10
10
|
name: "bento-tag",
|