@adyen/bento-vue3 1.16.0 → 1.17.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.
Files changed (175) hide show
  1. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.types.d.ts +2 -1
  2. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/index.d.ts +1 -1
  3. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-lazy-loading/use-lazy-loading.d.ts +1 -1
  4. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
  5. package/dist/@types/packages/vue2/src/components/payment-method/composables/index.d.ts +1 -1
  6. package/dist/@types/packages/vue2/src/components/payment-method/composables/use-payment-icon/use-payment-icon.d.ts +4 -0
  7. package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +3 -1
  8. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +3 -6
  9. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +19 -24
  10. package/dist/accordion.js +2 -2
  11. package/dist/action-bar.js +5 -5
  12. package/dist/alert.js +3 -3
  13. package/dist/assets/base-modal.css +1 -1
  14. package/dist/assets/index.css +1 -1
  15. package/dist/assets/index10.css +1 -1
  16. package/dist/assets/index11.css +1 -1
  17. package/dist/assets/index12.css +1 -1
  18. package/dist/assets/index13.css +1 -1
  19. package/dist/assets/index14.css +1 -1
  20. package/dist/assets/index15.css +1 -1
  21. package/dist/assets/index16.css +1 -1
  22. package/dist/assets/index17.css +1 -1
  23. package/dist/assets/index18.css +1 -1
  24. package/dist/assets/index19.css +1 -1
  25. package/dist/assets/index2.css +1 -1
  26. package/dist/assets/index20.css +1 -1
  27. package/dist/assets/index21.css +1 -1
  28. package/dist/assets/index22.css +1 -1
  29. package/dist/assets/index23.css +1 -1
  30. package/dist/assets/index24.css +1 -1
  31. package/dist/assets/index25.css +1 -1
  32. package/dist/assets/index26.css +1 -1
  33. package/dist/assets/index27.css +1 -1
  34. package/dist/assets/index28.css +1 -1
  35. package/dist/assets/index29.css +1 -1
  36. package/dist/assets/index3.css +1 -1
  37. package/dist/assets/index30.css +1 -1
  38. package/dist/assets/index31.css +1 -1
  39. package/dist/assets/index32.css +1 -1
  40. package/dist/assets/index33.css +1 -1
  41. package/dist/assets/index34.css +1 -1
  42. package/dist/assets/index35.css +1 -1
  43. package/dist/assets/index36.css +1 -1
  44. package/dist/assets/index37.css +1 -1
  45. package/dist/assets/index38.css +1 -1
  46. package/dist/assets/index39.css +1 -1
  47. package/dist/assets/index4.css +1 -1
  48. package/dist/assets/index40.css +1 -1
  49. package/dist/assets/index41.css +1 -1
  50. package/dist/assets/index42.css +1 -1
  51. package/dist/assets/index45.css +1 -1
  52. package/dist/assets/index46.css +1 -1
  53. package/dist/assets/index47.css +1 -1
  54. package/dist/assets/index6.css +1 -1
  55. package/dist/assets/index7.css +1 -1
  56. package/dist/assets/index8.css +1 -1
  57. package/dist/assets/index9.css +1 -1
  58. package/dist/avatar-image.js +1 -1
  59. package/dist/badge.js +1 -1
  60. package/dist/button.js +5 -5
  61. package/dist/card.js +2 -2
  62. package/dist/checkbox.js +6 -6
  63. package/dist/checkbox.js.map +1 -1
  64. package/dist/chunks/{base-button.211f3d1b.js → base-button.f412f30f.js} +2 -2
  65. package/dist/chunks/{base-button.211f3d1b.js.map → base-button.f412f30f.js.map} +1 -1
  66. package/dist/chunks/{base-modal.5bd79918.js → base-modal.dd6881d6.js} +5 -5
  67. package/dist/chunks/{base-modal.5bd79918.js.map → base-modal.dd6881d6.js.map} +1 -1
  68. package/dist/chunks/{button-actions-with-menu.cfcfbb17.js → button-actions-with-menu.6139d2c5.js} +3 -3
  69. package/dist/chunks/{button-actions-with-menu.cfcfbb17.js.map → button-actions-with-menu.6139d2c5.js.map} +1 -1
  70. package/dist/chunks/{button.b09b3d53.js → button.5e03cdd9.js} +3 -3
  71. package/dist/chunks/{button.b09b3d53.js.map → button.5e03cdd9.js.map} +1 -1
  72. package/dist/chunks/{calendar.f00c4de3.js → calendar.d26921a5.js} +4 -4
  73. package/dist/chunks/{calendar.f00c4de3.js.map → calendar.d26921a5.js.map} +1 -1
  74. package/dist/chunks/{checkbox.918eb1fe.js → checkbox.c9e6746b.js} +3 -3
  75. package/dist/chunks/{checkbox.918eb1fe.js.map → checkbox.c9e6746b.js.map} +1 -1
  76. package/dist/chunks/{controls-group.cbe5edb3.js → controls-group.bc3debdd.js} +3 -3
  77. package/dist/chunks/{controls-group.cbe5edb3.js.map → controls-group.bc3debdd.js.map} +1 -1
  78. package/dist/chunks/{copy.9e439e01.js → copy.1223d257.js} +4 -4
  79. package/dist/chunks/{copy.9e439e01.js.map → copy.1223d257.js.map} +1 -1
  80. package/dist/chunks/{dropdown-default-textbox.66d3bc87.js → dropdown-default-textbox.2a3c044f.js} +2 -2
  81. package/dist/chunks/{dropdown-default-textbox.66d3bc87.js.map → dropdown-default-textbox.2a3c044f.js.map} +1 -1
  82. package/dist/chunks/{dropdown.70940b5d.js → dropdown.2c6bb85c.js} +7 -7
  83. package/dist/chunks/{dropdown.70940b5d.js.map → dropdown.2c6bb85c.js.map} +1 -1
  84. package/dist/chunks/{error-message.9fb80f82.js → error-message.3cf040a1.js} +2 -2
  85. package/dist/chunks/{error-message.9fb80f82.js.map → error-message.3cf040a1.js.map} +1 -1
  86. package/dist/chunks/{fixed-scroller.db3bc496.js → fixed-scroller.1d3d4983.js} +2 -2
  87. package/dist/chunks/{fixed-scroller.db3bc496.js.map → fixed-scroller.1d3d4983.js.map} +1 -1
  88. package/dist/chunks/{footer-actions.795f3e03.js → footer-actions.92e13b90.js} +3 -3
  89. package/dist/chunks/{footer-actions.795f3e03.js.map → footer-actions.92e13b90.js.map} +1 -1
  90. package/dist/chunks/{index.5499552c.js → index.2c9f87d3.js} +3 -3
  91. package/dist/chunks/{index.5499552c.js.map → index.2c9f87d3.js.map} +1 -1
  92. package/dist/chunks/{index.91d917cd.js → index.32f5c644.js} +5 -5
  93. package/dist/chunks/{index.91d917cd.js.map → index.32f5c644.js.map} +1 -1
  94. package/dist/chunks/{index.a7884b37.js → index.4a6cfd5e.js} +746 -741
  95. package/dist/chunks/index.4a6cfd5e.js.map +1 -0
  96. package/dist/chunks/{index.f3292722.js → index.826ef20b.js} +6 -6
  97. package/dist/chunks/{index.f3292722.js.map → index.826ef20b.js.map} +1 -1
  98. package/dist/chunks/{index.5e2bc547.js → index.888c3d45.js} +2 -2
  99. package/dist/chunks/{index.5e2bc547.js.map → index.888c3d45.js.map} +1 -1
  100. package/dist/chunks/{index.0ed71d90.js → index.b1912d13.js} +3 -3
  101. package/dist/chunks/{index.0ed71d90.js.map → index.b1912d13.js.map} +1 -1
  102. package/dist/chunks/{index.526a5595.js → index.b253d8a2.js} +2 -2
  103. package/dist/chunks/{index.526a5595.js.map → index.b253d8a2.js.map} +1 -1
  104. package/dist/chunks/{index.c388fc64.js → index.e57740ab.js} +2 -2
  105. package/dist/chunks/{index.c388fc64.js.map → index.e57740ab.js.map} +1 -1
  106. package/dist/chunks/{index.1b911fe1.js → index.e97ff2db.js} +132 -125
  107. package/dist/chunks/index.e97ff2db.js.map +1 -0
  108. package/dist/chunks/{index.fff78e34.js → index.eb6f799e.js} +165 -165
  109. package/dist/chunks/index.eb6f799e.js.map +1 -0
  110. package/dist/chunks/{index.93c7dcb9.js → index.ed76cbb3.js} +2 -2
  111. package/dist/chunks/{index.93c7dcb9.js.map → index.ed76cbb3.js.map} +1 -1
  112. package/dist/chunks/{index.7159313f.js → index.f41143c6.js} +3 -3
  113. package/dist/chunks/{index.7159313f.js.map → index.f41143c6.js.map} +1 -1
  114. package/dist/chunks/{listbox-option-tag.109460f7.js → listbox-option-tag.20d2206f.js} +3 -3
  115. package/dist/chunks/{listbox-option-tag.109460f7.js.map → listbox-option-tag.20d2206f.js.map} +1 -1
  116. package/dist/chunks/{listbox.0d3b5112.js → listbox.60318e0a.js} +5 -5
  117. package/dist/chunks/{listbox.0d3b5112.js.map → listbox.60318e0a.js.map} +1 -1
  118. package/dist/chunks/{loading-button.016031ec.js → loading-button.bec0fd63.js} +2 -2
  119. package/dist/chunks/{loading-button.016031ec.js.map → loading-button.bec0fd63.js.map} +1 -1
  120. package/dist/chunks/{tooltip.7b2758bf.js → tooltip.c2233d64.js} +3 -3
  121. package/dist/chunks/{tooltip.7b2758bf.js.map → tooltip.c2233d64.js.map} +1 -1
  122. package/dist/code-snippet.js +7 -7
  123. package/dist/code-snippet.js.map +1 -1
  124. package/dist/country.js +2 -2
  125. package/dist/currency.js +1 -1
  126. package/dist/data-grid.js +1 -1
  127. package/dist/date-picker.js +8 -8
  128. package/dist/date-range-picker.js +2 -2
  129. package/dist/date.js +1 -1
  130. package/dist/divider.js +1 -1
  131. package/dist/dropdown.js +6 -6
  132. package/dist/empty-state.js +3 -3
  133. package/dist/filter-bar.js +18 -18
  134. package/dist/focus-trap.js +1 -1
  135. package/dist/form-layout.js +2 -2
  136. package/dist/header.js +147 -148
  137. package/dist/header.js.map +1 -1
  138. package/dist/index.js +304 -2943
  139. package/dist/index.js.map +1 -1
  140. package/dist/info-icon.js +3 -3
  141. package/dist/input-field.js +4 -4
  142. package/dist/internal.js +7 -7
  143. package/dist/link.js +1 -1
  144. package/dist/loading-indicator.js +1 -1
  145. package/dist/menu.js +1 -1
  146. package/dist/modal.js +5 -5
  147. package/dist/pagination.js +4 -4
  148. package/dist/payment-method.js +50 -48
  149. package/dist/payment-method.js.map +1 -1
  150. package/dist/popover.js +1 -1
  151. package/dist/popper-container.js +1 -1
  152. package/dist/radio-group.js +156 -171
  153. package/dist/radio-group.js.map +1 -1
  154. package/dist/search-bar.js +2 -2
  155. package/dist/secondary-nav.js +2 -2
  156. package/dist/segmented-control.js +3 -3
  157. package/dist/sidepanel.js +5 -5
  158. package/dist/status.js +1 -1
  159. package/dist/stepper.js +3 -3
  160. package/dist/structured-list.js +1 -1
  161. package/dist/summary-grid.js +3 -3
  162. package/dist/tabs.js +3 -3
  163. package/dist/tag.js +3 -3
  164. package/dist/textarea.js +4 -4
  165. package/dist/timeline.js +6 -6
  166. package/dist/toast.js +3 -3
  167. package/dist/toggle.js +1 -1
  168. package/dist/tutorial.js +5 -5
  169. package/dist/typography.js +1 -1
  170. package/dist/web-types.json +1 -1
  171. package/package.json +2 -2
  172. package/dist/@types/packages/vue2/src/components/payment-method/composables/usePaymentIcon.d.ts +0 -3
  173. package/dist/chunks/index.1b911fe1.js.map +0 -1
  174. package/dist/chunks/index.a7884b37.js.map +0 -1
  175. package/dist/chunks/index.fff78e34.js.map +0 -1
@@ -1,25 +1,25 @@
1
- import { defineComponent as $, useSlots as P, toRefs as q, computed as t, openBlock as n, createElementBlock as h, normalizeClass as L, unref as o, createElementVNode as H, createVNode as D, withCtx as b, renderSlot as I, createBlock as E, mergeProps as z, createCommentVNode as f, toRef as R, watch as F, resolveComponent as B, Fragment as G, renderList as j, createSlots as Y, createTextVNode as C, toDisplayString as M } from "vue";
2
- import { u as Z } from "./chunks/use-form-layout-loading.d03e5d48.js";
1
+ import { defineComponent as M, useSlots as $, toRefs as G, computed as t, openBlock as l, createElementBlock as v, normalizeClass as O, unref as e, createElementVNode as H, createVNode as D, withCtx as u, renderSlot as S, createBlock as g, mergeProps as z, createCommentVNode as p, toRef as C, watch as F, Fragment as U, renderList as j, createSlots as P, createTextVNode as V, toDisplayString as x } from "vue";
2
+ import { u as Y } from "./chunks/use-form-layout-loading.d03e5d48.js";
3
3
  import { u as w } from "./chunks/use-has-slot.4d98bf29.js";
4
- import { g as O } from "./chunks/unique-id.a2a2b458.js";
5
- import { B as A, d as J } from "./chunks/index.93c7dcb9.js";
6
- import { C as K } from "./chunks/controls-group.cbe5edb3.js";
7
- import { BentoTag as Q } from "./tag.js";
8
- import { u as W } from "./chunks/aria-label.ac9651a5.js";
9
- import { u as X } from "./chunks/use-default-slot-validator.1169c221.js";
10
- import { g as x } from "./chunks/get-slot-text.bead058f.js";
11
- import { _ as U } from "./chunks/_plugin-vue_export-helper.dad06003.js";
12
- import { E as ee } from "./chunks/error-message.9fb80f82.js";
13
- import "./assets/index30.css";
14
- var N = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e))(N || {});
15
- const oe = ["id", "aria-checked", "aria-label", "aria-invalid", "aria-describedby", "checked", "disabled", "aria-readonly", "value"], ae = ["for"], re = {
4
+ import { g as A } from "./chunks/unique-id.a2a2b458.js";
5
+ import { B as N, d as Z } from "./chunks/index.ed76cbb3.js";
6
+ import { C as J } from "./chunks/controls-group.bc3debdd.js";
7
+ import { BentoTag as K } from "./tag.js";
8
+ import { u as Q } from "./chunks/aria-label.ac9651a5.js";
9
+ import { u as W } from "./chunks/use-default-slot-validator.1169c221.js";
10
+ import { g as X } from "./chunks/get-slot-text.bead058f.js";
11
+ import { _ as q } from "./chunks/_plugin-vue_export-helper.dad06003.js";
12
+ import { E as ee } from "./chunks/error-message.3cf040a1.js";
13
+ import "./assets/index26.css";
14
+ var B = /* @__PURE__ */ ((a) => (a.DISABLED = "disabled", a.READONLY = "readonly", a.ERROR = "error", a))(B || {});
15
+ const ae = ["id", "aria-checked", "aria-label", "aria-invalid", "aria-describedby", "checked", "disabled", "aria-readonly", "value"], oe = ["for"], te = {
16
16
  key: 0,
17
17
  class: "b-radio-button__primary-label"
18
- }, te = {
18
+ }, re = {
19
19
  name: "bento-radio-button",
20
20
  model: { prop: "modelValue" }
21
- }, le = /* @__PURE__ */ $({
22
- ...te,
21
+ }, le = /* @__PURE__ */ M({
22
+ ...re,
23
23
  props: {
24
24
  /**
25
25
  * Disable the radio button (optional)
@@ -55,95 +55,96 @@ const oe = ["id", "aria-checked", "aria-label", "aria-invalid", "aria-describedb
55
55
  }
56
56
  },
57
57
  emits: ["input", "update:model-value"],
58
- setup(e, { emit: y }) {
59
- const a = e, u = P(), d = w(u), { value: c } = q(a), p = O("bento-radio-button"), m = O("description");
60
- X("bento-radio-button", u.default, u.description);
61
- const v = t(() => ({
62
- [`b-radio-button--${N.DISABLED}`]: a.disabled,
63
- [`b-radio-button--${N.READONLY}`]: a.readonly
64
- })), r = t(() => ({
65
- [`b-radio-button__input--${N.ERROR}`]: a.hasError
66
- })), s = W({
67
- ariaLabel: x(u)("default"),
68
- label: c.value
69
- }), i = t(() => a.hasError), g = t(() => a.value === a.modelValue), S = () => {
70
- !a.disabled && !a.readonly && (y("update:model-value", a.value), y("input", a.value));
71
- }, k = (l) => {
72
- a.readonly && l.preventDefault();
58
+ setup(a, { emit: f }) {
59
+ const o = a, c = $(), n = w(c), { value: h } = G(o), _ = A("bento-radio-button"), m = A("description");
60
+ W("bento-radio-button", c.default, c.description);
61
+ const y = t(() => ({
62
+ [`b-radio-button--${B.DISABLED}`]: o.disabled,
63
+ [`b-radio-button--${B.READONLY}`]: o.readonly
64
+ })), I = t(() => ({
65
+ [`b-radio-button__input--${B.ERROR}`]: o.hasError
66
+ })), E = Q({
67
+ ariaLabel: X(c)("default"),
68
+ label: h.value
69
+ }), L = t(() => o.hasError), r = t(() => o.value === o.modelValue), i = () => {
70
+ !o.disabled && !o.readonly && (f("update:model-value", o.value), f("input", o.value));
71
+ }, R = (s) => {
72
+ o.readonly && s.preventDefault();
73
73
  };
74
- return (l, ue) => (n(), h("div", {
75
- class: L(["b-radio-button", o(v)]),
74
+ return (s, T) => (l(), v("div", {
75
+ class: O(["b-radio-button", e(y)]),
76
76
  "data-testid": "radio-button-container"
77
77
  }, [
78
78
  H("input", {
79
- id: o(p),
80
- "aria-checked": o(g),
81
- "aria-label": o(s),
82
- "aria-invalid": o(i),
83
- "aria-describedby": o(d)("description") ? o(m) : "",
84
- checked: o(g),
85
- disabled: e.disabled,
86
- "aria-readonly": e.readonly ? e.readonly : void 0,
87
- value: o(c),
79
+ id: e(_),
80
+ "aria-checked": e(r),
81
+ "aria-label": e(E),
82
+ "aria-invalid": e(L),
83
+ "aria-describedby": e(n)("description") ? e(m) : "",
84
+ checked: e(r),
85
+ disabled: a.disabled,
86
+ "aria-readonly": a.readonly ? a.readonly : void 0,
87
+ value: e(h),
88
88
  type: "radio",
89
- class: L(["b-radio-button__input", o(r)]),
89
+ class: O(["b-radio-button__input", e(I)]),
90
90
  role: "radio",
91
- onClick: k,
92
- onChange: S
93
- }, null, 42, oe),
94
- o(d)("default") ? (n(), h("label", {
91
+ onClick: R,
92
+ onChange: i
93
+ }, null, 42, ae),
94
+ e(n)("default") ? (l(), v("label", {
95
95
  key: 0,
96
- for: o(p),
96
+ for: e(_),
97
97
  class: "b-radio-button__label-container"
98
98
  }, [
99
- o(d)("default") ? (n(), h("span", re, [
100
- D(o(A), {
99
+ e(n)("default") ? (l(), v("span", te, [
100
+ D(e(N), {
101
101
  class: "b-radio-button__label",
102
102
  el: "span",
103
103
  variant: "body"
104
104
  }, {
105
- default: b(() => [
106
- I(l.$slots, "default", {}, void 0, !0)
105
+ default: u(() => [
106
+ S(s.$slots, "default", {}, void 0, !0)
107
107
  ]),
108
108
  _: 3
109
109
  }),
110
- e.tag ? (n(), E(o(Q), z({
110
+ a.tag ? (l(), g(e(K), z({
111
111
  key: 0,
112
112
  class: "b-radio-button__label-tag"
113
- }, e.tag), null, 16)) : f("", !0)
114
- ])) : f("", !0),
115
- o(d)("default") && o(d)("description") ? (n(), E(o(A), {
113
+ }, a.tag), null, 16)) : p("", !0)
114
+ ])) : p("", !0),
115
+ e(n)("default") && e(n)("description") ? (l(), g(e(N), {
116
116
  key: 1,
117
- id: o(m),
117
+ id: e(m),
118
118
  class: "b-radio-button__description",
119
119
  el: "span",
120
120
  variant: "body"
121
121
  }, {
122
- default: b(() => [
123
- I(l.$slots, "description", {}, void 0, !0)
122
+ default: u(() => [
123
+ S(s.$slots, "description", {}, void 0, !0)
124
124
  ]),
125
125
  _: 3
126
- }, 8, ["id"])) : f("", !0),
127
- o(d)("content") && o(g) ? (n(), E(o(A), {
126
+ }, 8, ["id"])) : p("", !0),
127
+ e(n)("content") && e(r) ? (l(), g(e(N), {
128
128
  key: 2,
129
129
  class: "b-radio-button__content",
130
130
  el: "div"
131
131
  }, {
132
- default: b(() => [
133
- I(l.$slots, "content", {}, void 0, !0)
132
+ default: u(() => [
133
+ S(s.$slots, "content", {}, void 0, !0)
134
134
  ]),
135
135
  _: 3
136
- })) : f("", !0)
137
- ], 8, ae)) : f("", !0)
136
+ })) : p("", !0)
137
+ ], 8, oe)) : p("", !0)
138
138
  ], 2));
139
139
  }
140
140
  });
141
- const ne = /* @__PURE__ */ U(le, [["__scopeId", "data-v-d2a07664"]]);
142
- var T = /* @__PURE__ */ ((e) => (e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e))(T || {}), _ = /* @__PURE__ */ ((e) => (e.UPDATE = "update:model-value", e.INPUT = "input", e))(_ || {});
143
- const V = "bento-radio-group", de = $({
144
- name: V,
145
- components: { ControlsGroup: K, ErrorMessage: ee, BentoRadioButton: ne },
146
- model: { prop: "modelValue" },
141
+ const de = /* @__PURE__ */ q(le, [["__scopeId", "data-v-d2a07664"]]);
142
+ var k = /* @__PURE__ */ ((a) => (a.HORIZONTAL = "horizontal", a.VERTICAL = "vertical", a))(k || {});
143
+ const ne = { class: "b-radio-group" }, ie = {
144
+ name: "bento-button-group",
145
+ model: { prop: "modelValue" }
146
+ }, se = /* @__PURE__ */ M({
147
+ ...ie,
147
148
  props: {
148
149
  /**
149
150
  * Descriptive supporting text visbile underneath the label.
@@ -154,7 +155,7 @@ const V = "bento-radio-group", de = $({
154
155
  */
155
156
  disabled: { type: Boolean, default: !1 },
156
157
  /**
157
- * If string is passed, all bento-radio-buttons in an error state and renders the string beneath the buttons.
158
+ * If passed as a prop, all bento-radio-buttons in an error state and renders the string beneath the buttons.
158
159
  */
159
160
  errorMessage: { type: String, default: null },
160
161
  /**
@@ -174,7 +175,10 @@ const V = "bento-radio-group", de = $({
174
175
  /**
175
176
  * The radio group's items.
176
177
  */
177
- items: { type: Array, required: !0 },
178
+ items: {
179
+ type: Array,
180
+ required: !0
181
+ },
178
182
  /**
179
183
  * The name associated with the group. Required for accessibility purposes.
180
184
  */
@@ -183,7 +187,10 @@ const V = "bento-radio-group", de = $({
183
187
  * Determines the initially selected value of the group. Corresponds to the BentoRadioButtonItem's value.
184
188
  * Defaults to no value selected.
185
189
  */
186
- modelValue: { type: [Number, String, null], default: null },
190
+ modelValue: {
191
+ type: [Number, String],
192
+ default: null
193
+ },
187
194
  /**
188
195
  * Indicates the field is optional.
189
196
  */
@@ -205,118 +212,96 @@ const V = "bento-radio-group", de = $({
205
212
  */
206
213
  variant: {
207
214
  type: String,
208
- default: T.VERTICAL,
209
- validator: (e) => Object.values(T).includes(e)
215
+ default: k.VERTICAL,
216
+ validator: (a) => Object.values(k).includes(a)
210
217
  }
211
218
  },
212
- emits: [_.UPDATE, _.INPUT],
213
- setup(e, { slots: y, emit: a }) {
214
- const u = R(e, "modelValue"), d = O("error"), { isReadOnly: c } = Z(R(e, "readonly")), p = w(y), m = t(
215
- () => !e.disabled && !c.value && (!!e.errorMessage || e.hasError)
216
- ), v = t(() => !e.disabled && !c.value && !!e.errorMessage), r = t(() => ({
217
- "b-radio-group__buttons--horizontal": e.variant === T.HORIZONTAL
218
- })), s = t(() => e.variant === "vertical"), i = t(() => p("content")), g = t(() => (i == null ? void 0 : i.value) && (s == null ? void 0 : s.value)), S = t(() => (i == null ? void 0 : i.value) && !(s != null && s.value)), k = (l) => {
219
- a(_.UPDATE, l), a(_.INPUT, l);
219
+ emits: ["input", "update:model-value"],
220
+ setup(a, { emit: f }) {
221
+ const o = a, c = "bento-radio-group", n = $(), h = w(n), _ = C(o, "modelValue"), m = A("error"), { isReadOnly: y } = Y(C(o, "readonly")), I = t(
222
+ () => !o.disabled && !y.value && (!!o.errorMessage || o.hasError)
223
+ ), E = t(() => !o.disabled && !y.value && !!o.errorMessage), L = t(() => ({
224
+ "b-radio-group__buttons--horizontal": o.variant === k.HORIZONTAL
225
+ })), r = t(() => o.variant === "vertical"), i = t(() => h("content")), R = t(() => (i == null ? void 0 : i.value) && (r == null ? void 0 : r.value)), s = t(() => (i == null ? void 0 : i.value) && !(r != null && r.value)), T = (b) => {
226
+ f("update:model-value", b), f("input", b);
220
227
  };
221
- return e.hasError && J(
228
+ return o.hasError && Z(
222
229
  'BentoRadioGroup "hasError" property',
223
230
  `Use the BentoRadioGroup "errorMessage" property instead to indicate that there is a modifier error.
224
231
  Having the field as "undefined" will hide/remove the error.
225
232
  <bento-radio-group errorMessage="Error message text" />`,
226
233
  "2.0.0"
227
234
  ), F(
228
- S,
229
- (l) => {
230
- if (l)
235
+ s,
236
+ (b) => {
237
+ if (b)
231
238
  throw new Error("The content slot is only available for the vertical radio group layout");
232
239
  },
233
240
  {
234
241
  immediate: !0
235
242
  }
236
- ), {
237
- // Values
238
- COMPONENT_NAME: V,
239
- inputValue: u,
240
- errorId: d,
241
- isReadOnly: c,
242
- shouldShowError: m,
243
- shouldShowErrorMessage: v,
244
- conditionalClasses: r,
245
- contentSlotAvailable: g,
246
- isVertical: s,
247
- shouldShowSlotError: S,
248
- hasContentSlot: i,
249
- hasSlot: p,
250
- // Methods
251
- onInput: k
252
- };
243
+ ), (b, ue) => (l(), v("div", ne, [
244
+ D(e(J), {
245
+ class: O(["b-radio-group__buttons", e(L)]),
246
+ "aria-describedby": e(E) ? e(m) : "",
247
+ "component-name": c,
248
+ description: a.description,
249
+ disabled: a.disabled,
250
+ form: a.formId,
251
+ label: a.label,
252
+ optional: a.optional,
253
+ required: a.required,
254
+ "hide-label": a.hideLabel,
255
+ "tooltip-text": a.tooltipText
256
+ }, {
257
+ default: u(() => [
258
+ (l(!0), v(U, null, j(a.items, (d) => (l(), g(e(de), {
259
+ key: d.value,
260
+ "model-value": e(_),
261
+ value: d.value,
262
+ disabled: a.disabled || d.disabled,
263
+ readonly: e(y) || d.readonly,
264
+ "has-error": e(I) || d.hasError,
265
+ tag: d.tag,
266
+ "onUpdate:modelValue": T
267
+ }, P({
268
+ default: u(() => [
269
+ V(x(d.label), 1)
270
+ ]),
271
+ _: 2
272
+ }, [
273
+ d.description ? {
274
+ name: "description",
275
+ fn: u(() => [
276
+ V(x(d.description), 1)
277
+ ]),
278
+ key: "0"
279
+ } : void 0,
280
+ e(R) ? {
281
+ name: "content",
282
+ fn: u(() => [
283
+ S(b.$slots, "content", {}, void 0, !0)
284
+ ]),
285
+ key: "1"
286
+ } : void 0
287
+ ]), 1032, ["model-value", "value", "disabled", "readonly", "has-error", "tag"]))), 128))
288
+ ]),
289
+ _: 3
290
+ }, 8, ["aria-describedby", "class", "description", "disabled", "form", "label", "optional", "required", "hide-label", "tooltip-text"]),
291
+ e(E) ? (l(), g(e(ee), {
292
+ key: 0,
293
+ id: e(m),
294
+ "error-message": a.errorMessage,
295
+ class: "b-radio-group__error-message"
296
+ }, null, 8, ["id", "error-message"])) : p("", !0)
297
+ ]));
253
298
  }
254
299
  });
255
- const se = { class: "b-radio-group" };
256
- function ie(e, y, a, u, d, c) {
257
- const p = B("bento-radio-button"), m = B("controls-group"), v = B("error-message");
258
- return n(), h("div", se, [
259
- D(m, {
260
- class: L(["b-radio-group__buttons", e.conditionalClasses]),
261
- "aria-describedby": e.shouldShowErrorMessage ? e.errorId : "",
262
- "component-name": e.COMPONENT_NAME,
263
- description: e.description,
264
- disabled: e.disabled,
265
- form: e.formId,
266
- label: e.label,
267
- optional: e.optional,
268
- required: e.required,
269
- "hide-label": e.hideLabel,
270
- "tooltip-text": e.tooltipText
271
- }, {
272
- default: b(() => [
273
- (n(!0), h(G, null, j(e.items, (r) => (n(), E(p, {
274
- key: r.value,
275
- "model-value": e.inputValue,
276
- value: r.value,
277
- disabled: e.disabled || r.disabled,
278
- readonly: e.isReadOnly || r.readonly,
279
- "has-error": e.shouldShowError || r.hasError,
280
- tag: r.tag,
281
- "onUpdate:modelValue": e.onInput
282
- }, Y({
283
- default: b(() => [
284
- C(M(r.label), 1)
285
- ]),
286
- _: 2
287
- }, [
288
- r.description ? {
289
- name: "description",
290
- fn: b(() => [
291
- C(M(r.description), 1)
292
- ]),
293
- key: "0"
294
- } : void 0,
295
- e.contentSlotAvailable ? {
296
- name: "content",
297
- fn: b(() => [
298
- I(e.$slots, "content", {}, void 0, !0)
299
- ]),
300
- key: "1"
301
- } : void 0
302
- ]), 1032, ["model-value", "value", "disabled", "readonly", "has-error", "tag", "onUpdate:modelValue"]))), 128))
303
- ]),
304
- _: 3
305
- }, 8, ["aria-describedby", "component-name", "class", "description", "disabled", "form", "label", "optional", "required", "hide-label", "tooltip-text"]),
306
- e.shouldShowErrorMessage ? (n(), E(v, {
307
- key: 0,
308
- id: e.errorId,
309
- "error-message": e.errorMessage,
310
- class: "b-radio-group__error-message"
311
- }, null, 8, ["id", "error-message"])) : f("", !0)
312
- ]);
313
- }
314
- const Ie = /* @__PURE__ */ U(de, [["render", ie], ["__scopeId", "data-v-0e351e7b"]]);
300
+ const Be = /* @__PURE__ */ q(se, [["__scopeId", "data-v-e8ceb1ad"]]);
315
301
  export {
316
- ne as BentoRadioButton,
317
- N as BentoRadioButtonStateClass,
318
- Ie as BentoRadioGroup,
319
- _ as BentoRadioGroupEvent,
320
- T as BentoRadioGroupVariant
302
+ de as BentoRadioButton,
303
+ B as BentoRadioButtonStateClass,
304
+ Be as BentoRadioGroup,
305
+ k as BentoRadioGroupVariant
321
306
  };
322
307
  //# sourceMappingURL=radio-group.js.map
@@ -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/components/radio-button/radio-button.vue","../../vue2/src/components/radio-group/radio-group.types.ts","../../vue2/src/components/radio-group/radio-group.vue"],"sourcesContent":["import type { BentoTag } from '@/components/tag';\n\nexport type BentoRadioButtonValue = string | number;\n\nexport enum BentoRadioButtonStateClass {\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n\nexport type BentoRadioButtonTag = InstanceType<typeof BentoTag>['$props'];\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 <span v-if=\"hasSlot('default')\" class=\"b-radio-button__primary-label\">\n <bento-typography class=\"b-radio-button__label\" el=\"span\" variant=\"body\"><slot /></bento-typography>\n <bento-tag v-if=\"tag\" class=\"b-radio-button__label-tag\" v-bind=\"tag\" />\n </span>\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 setup lang=\"ts\">\n import { BentoTag } from '@/components/tag';\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, PropType, toRefs, useSlots } from 'vue';\n import { useDefaultSlotValidator, useHasSlot } from '@/composables';\n import { BentoRadioButtonStateClass, BentoRadioButtonTag, BentoRadioButtonValue } from './radio-button.types';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const props = defineProps({\n /**\n * Disable the radio button (optional)\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Shows bento-radio-button in error state (optional)\n */\n hasError: { type: Boolean, 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] as PropType<BentoRadioButtonValue>,\n default: null,\n },\n\n /**\n * Sets the radio button to readonly (optional)\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Sets the properties of the BentoTag component that is placed next to the label.\n * {@see BentoTag}\n */\n tag: { type: Object as PropType<BentoRadioButtonTag>, default: undefined },\n\n /**\n * Indicates the value of the input that will be returned when it's checked\n */\n value: {\n type: [String, Number] as PropType<BentoRadioButtonValue>,\n required: true,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the radio button is clicked. Enables Vue2 \"v-model\"\n */\n (e: 'input', value: BentoRadioButtonValue);\n\n /**\n * Emitted when the radio button is clicked. Enables Vue3 \"v-model\"\n */\n (e: 'update:model-value', value: BentoRadioButtonValue);\n }>();\n\n const { value } = toRefs(props);\n const radioButtonId = generateUid('bento-radio-button');\n const descriptionId = generateUid('description');\n\n useDefaultSlotValidator('bento-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('update:model-value', props.value);\n emit('input', 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</script>\n\n<script lang=\"ts\">\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 * @example\n * import { BentoRadioButton } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoRadioButton },\n * template: `\n * <bento-radio-button\n * disabled\n * value=\"inputRadio\"\n * model-value.sync=\"modelValue\"\n * >\n * Label text\n * <template #description>Description text below label</template>\n * <template #content>Content shown when checked</template>\n * </bento-radio-button>\n * `,\n * setup() {\n * const modelValue = ref('anyValue')\n * const value = 'option-value'\n *\n * return {\n * modelValue,\n * value,\n * }\n * }\n * }\n */\n export default {\n name: 'bento-radio-button',\n model: { prop: 'modelValue' },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-button.scss\" />\n","import type { BentoRadioButtonTag } from './components/radio-button';\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}\nexport interface BentoRadioGroupItem {\n value: string | number;\n label: string;\n description?: string;\n disabled?: boolean;\n readonly?: boolean;\n hasError?: boolean;\n tag?: BentoRadioButtonTag;\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-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 <bento-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 :tag=\"item.tag\"\n @update:model-value=\"onInput\"\n >\n <template #default>{{ item.label }}</template>\n <template v-if=\"item.description\" #description>{{ item.description }}</template>\n <template v-if=\"contentSlotAvailable\" #content>\n <slot name=\"content\"></slot>\n </template>\n </bento-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 { BentoRadioButton } from './components/radio-button';\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, BentoRadioButton },\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 bento-radio-buttons in the group in a disabled state.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * If string is passed, all bento-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 bento-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 bento-radio-button 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","__default__","slots","useSlots","hasSlot","useHasSlot","value","toRefs","props","radioButtonId","generateUid","descriptionId","useDefaultSlotValidator","conditionalClassContainer","computed","conditionalClassInput","ariaLabel","useAriaLabel","getSlotText","ariaInvalid","isChecked","onChange","emit","onClick","event","BentoRadioGroupVariant","BentoRadioGroupVariant2","BentoRadioGroupEvent","BentoRadioGroupEvent2","COMPONENT_NAME","_sfc_main","defineComponent","ControlsGroup","ErrorMessage","BentoRadioButton","inputValue","toRef","errorId","isReadOnly","useFormLayoutFieldLoading","shouldShowError","shouldShowErrorMessage","conditionalClasses","isVertical","hasContentSlot","contentSlotAvailable","shouldShowSlotError","onInput","deprecate","watch","newVal","openBlock","createElementBlock","_hoisted_1","createVNode","_component_controls_group","normalizeClass","_ctx","Fragment","renderList","item","createBlock","_component_bento_radio_button","createSlots","withCtx","_component_error_message"],"mappings":";;;;;;;;;;;;;AAIY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SAHQA,IAAAD,KAAA,CAAA,CAAA;;;;GC4KRE,KAAA;AAAA,EAAe,MAAA;AAAA,EACL,OAAA,EAAA,MAAA,aAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAhIAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAqDA,EAAA,OAAAI,EAAA,IAAAC,EAAAC,CAAA,GACAC,IAAAC,EAAA,oBAAA,GACAC,IAAAD,EAAA,aAAA;AAEA,IAAAE,EAAA,sBAAAV,EAAA,SAAAA,EAAA,WAAA;AAEA,UAAAW,IAAAC,EAAA,OAAA;AAAA,MAAkD,CAAA,mBAAAf,EAAA,UAAA,GAAAS,EAAA;AAAA,MACoB,CAAA,mBAAAT,EAAA,UAAA,GAAAS,EAAA;AAAA,IACA,EAAA,GAEtEO,IAAAD,EAAA,OAAA;AAAA,MAA8C,CAAA,0BAAAf,EAAA,OAAA,GAAAS,EAAA;AAAA,IAC4B,EAAA,GAG1EQ,IAAAC,EAAA;AAAA,MAA+B,WAAAC,EAAAhB,CAAA,EAAA,SAAA;AAAA,MACY,OAAAI,EAAA;AAAA,IAC1B,CAAA,GAEjBa,IAAAL,EAAA,MAAAN,EAAA,QAAA,GAEAY,IAAAN,EAAA,MAAAN,EAAA,UAAAA,EAAA,UAAA,GAEAa,IAAA,MAAA;AACI,MAAA,CAAAb,EAAA,YAAA,CAAAA,EAAA,aACIc,EAAA,sBAAAd,EAAA,KAAA,GACAc,EAAA,SAAAd,EAAA,KAAA;AAAA,IACJ,GAIJe,IAAA,CAAAC,MAAA;AACI,MAAAhB,EAAA,YACIgB,EAAA,eAAA;AAAA,IACJ;;;;;;;;;;;;;;;;;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EAAA,cAAAG,EAAA;AAAA,UACE,aAAAH,EAAA,mBAAAG,EAAA;AAAA,UACc,KAAAA,EAAA;AAAA;QAEO,GAAAG,EAAA;AAAA;;;UACnB,GAAA;AAAA,QAAA,GAAA;AAAA;;;;;;UACA,IAAA;AAAA;YACZ,MAAA;AAAA,YAAA,IAAAC,EAAA,MAAA;AAAA;;;;;;MAKF,GAAA;AAAA,IAAA,GAAA,GAAA,CAAA,oBAAA,kBAAA,SAAA,eAAA,YAAA,QAAA,SAAA,YAAA,YAAA,cAAA,cAAA,CAAA;AAAA,IAIRP,EAAA,0BAAAN,EAAA,GAAAU,EAAAI,GAAA;AAAA,MAHc,KAAA;AAAA,MACX,IAAAR,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/components/radio-button/radio-button.vue","../../vue2/src/components/radio-group/radio-group.types.ts","../../vue2/src/components/radio-group/radio-group.vue"],"sourcesContent":["import type { BentoTag } from '@/components/tag';\n\nexport type BentoRadioButtonValue = string | number;\n\nexport enum BentoRadioButtonStateClass {\n DISABLED = 'disabled',\n READONLY = 'readonly',\n ERROR = 'error',\n}\n\nexport type BentoRadioButtonTag = InstanceType<typeof BentoTag>['$props'];\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 <span v-if=\"hasSlot('default')\" class=\"b-radio-button__primary-label\">\n <bento-typography class=\"b-radio-button__label\" el=\"span\" variant=\"body\"><slot /></bento-typography>\n <bento-tag v-if=\"tag\" class=\"b-radio-button__label-tag\" v-bind=\"tag\" />\n </span>\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 setup lang=\"ts\">\n import { BentoTag } from '@/components/tag';\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, PropType, toRefs, useSlots } from 'vue';\n import { useDefaultSlotValidator, useHasSlot } from '@/composables';\n import { BentoRadioButtonStateClass, BentoRadioButtonTag, BentoRadioButtonValue } from './radio-button.types';\n import { getSlotText } from '@/utils/ts/get-slot-text';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n const props = defineProps({\n /**\n * Disable the radio button (optional)\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Shows bento-radio-button in error state (optional)\n */\n hasError: { type: Boolean, 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] as PropType<BentoRadioButtonValue>,\n default: null,\n },\n\n /**\n * Sets the radio button to readonly (optional)\n */\n readonly: { type: Boolean, default: false },\n\n /**\n * Sets the properties of the BentoTag component that is placed next to the label.\n * {@see BentoTag}\n */\n tag: { type: Object as PropType<BentoRadioButtonTag>, default: undefined },\n\n /**\n * Indicates the value of the input that will be returned when it's checked\n */\n value: {\n type: [String, Number] as PropType<BentoRadioButtonValue>,\n required: true,\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the radio button is clicked. Enables Vue2 \"v-model\"\n */\n (e: 'input', value: BentoRadioButtonValue);\n\n /**\n * Emitted when the radio button is clicked. Enables Vue3 \"v-model\"\n */\n (e: 'update:model-value', value: BentoRadioButtonValue);\n }>();\n\n const { value } = toRefs(props);\n const radioButtonId = generateUid('bento-radio-button');\n const descriptionId = generateUid('description');\n\n useDefaultSlotValidator('bento-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('update:model-value', props.value);\n emit('input', 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</script>\n\n<script lang=\"ts\">\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 * @example\n * import { BentoRadioButton } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoRadioButton },\n * template: `\n * <bento-radio-button\n * disabled\n * value=\"inputRadio\"\n * model-value.sync=\"modelValue\"\n * >\n * Label text\n * <template #description>Description text below label</template>\n * <template #content>Content shown when checked</template>\n * </bento-radio-button>\n * `,\n * setup() {\n * const modelValue = ref('anyValue')\n * const value = 'option-value'\n *\n * return {\n * modelValue,\n * value,\n * }\n * }\n * }\n */\n export default {\n name: 'bento-radio-button',\n model: { prop: 'modelValue' },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-button.scss\" />\n","import type { BentoRadioButtonTag, BentoRadioButtonValue } from './components/radio-button';\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 type BentoRadioGroupValue = BentoRadioButtonValue;\n\nexport interface BentoRadioGroupItem {\n value: BentoRadioGroupValue;\n label: string;\n description?: string;\n disabled?: boolean;\n readonly?: boolean;\n hasError?: boolean;\n tag?: BentoRadioButtonTag;\n}\n\nexport type BentoRadioGroupItems = Array<BentoRadioGroupItem>;\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 <bento-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 :tag=\"item.tag\"\n @update:model-value=\"onInput\"\n >\n <template #default>{{ item.label }}</template>\n <template v-if=\"item.description\" #description>{{ item.description }}</template>\n <template v-if=\"contentSlotAvailable\" #content>\n <slot name=\"content\"></slot>\n </template>\n </bento-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 setup lang=\"ts\">\n import { computed, PropType, toRef, useSlots, watch } from 'vue';\n import { ControlsGroup, ErrorMessage } from '@/components/internal';\n import { BentoRadioButton } from './components/radio-button';\n import { useHasSlot } from '@/composables';\n import { generateUid } from '@/utils/ts/unique-id';\n import { deprecate } from '@/utils/ts/deprecate';\n import { BentoRadioGroupItems, BentoRadioGroupValue, 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 const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const emit = defineEmits<{\n /**\n * Emitted when an option inside the group is selected. Enables Vue2 \"v-model\"\n */\n (e: 'input', value: BentoRadioGroupValue);\n\n /**\n * Emitted when an option inside the group is selected. Enables Vue3 \"v-model\"\n */\n (e: 'update:model-value', value: BentoRadioGroupValue);\n }>();\n\n const props = defineProps({\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 bento-radio-buttons in the group in a disabled state.\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * If passed as a prop, all bento-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 bento-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: {\n type: Array as PropType<BentoRadioGroupItems>,\n required: true,\n },\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: {\n type: [Number, String] as PropType<BentoRadioGroupValue>,\n default: null,\n },\n\n /**\n * Indicates the field is optional.\n */\n optional: { type: Boolean, default: false },\n\n /**\n * If set to true, renders all bento-radio-button 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\n const inputValue = toRef(props, 'modelValue');\n const errorId = generateUid('error');\n const { isReadOnly } = useFormLayoutFieldLoading(toRef(props, 'readonly'));\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('update:model-value', value);\n emit('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</script>\n\n<script lang=\"ts\">\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 {\n name: 'bento-button-group',\n model: { prop: 'modelValue' },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./radio-group.scss\" />\n"],"names":["BentoRadioButtonStateClass","BentoRadioButtonStateClass2","__default__$1","slots","useSlots","hasSlot","useHasSlot","value","toRefs","props","radioButtonId","generateUid","descriptionId","useDefaultSlotValidator","conditionalClassContainer","computed","conditionalClassInput","ariaLabel","useAriaLabel","getSlotText","ariaInvalid","isChecked","onChange","emit","onClick","event","BentoRadioGroupVariant","BentoRadioGroupVariant2","__default__","COMPONENT_NAME","inputValue","toRef","errorId","isReadOnly","useFormLayoutFieldLoading","shouldShowError","shouldShowErrorMessage","conditionalClasses","isVertical","hasContentSlot","contentSlotAvailable","shouldShowSlotError","onInput","deprecate","watch","newVal"],"mappings":";;;;;;;;;;;;;AAIY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SAHQA,IAAAD,KAAA,CAAA,CAAA;;;;GC4KRE,KAAA;AAAA,EAAe,MAAA;AAAA,EACL,OAAA,EAAA,MAAA,aAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAhIAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAqDA,EAAA,OAAAI,EAAA,IAAAC,EAAAC,CAAA,GACAC,IAAAC,EAAA,oBAAA,GACAC,IAAAD,EAAA,aAAA;AAEA,IAAAE,EAAA,sBAAAV,EAAA,SAAAA,EAAA,WAAA;AAE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AAwB,MAAA,CAAAN,EAAA,YAAA,CAAAwB,EAAA,UAAA,CAAA,CAAAxB,EAAA,gBAAAA,EAAA;AAAA,IACyD,GAEjF2B,IAAArB,EAAA,MAAA,CAAAN,EAAA,YAAA,CAAAwB,EAAA,SAAA,CAAA,CAAAxB,EAAA,YAAA,GAEA4B,IAAAtB,EAAA,OAAA;AAAA,MAA2C,sCAAAN,EAAA,YAAAiB,EAAA;AAAA,IACwC,EAAA,GAInFY,IAAAvB,EAAA,MAAAN,EAAA,YAAA,UAAA,GACA8B,IAAAxB,EAAA,MAAAV,EAAA,SAAA,CAAA,GACAmC,IAAAzB,EAAA,OAAAwB,KAAA,gBAAAA,EAAA,WAAAD,KAAA,gBAAAA,EAAA,MAAA,GACAG,IAAA1B,EAAA,OAAAwB,KAAA,gBAAAA,EAAA,UAAA,EAAAD,KAAA,QAAAA,EAAA,MAAA,GAEAI,IAAA,CAAAnC,MAAA;AACI,MAAAgB,EAAA,sBAAAhB,CAAA,GACAgB,EAAA,SAAAhB,CAAA;AAAA,IAAmB;AAGvB,WAAAE,EAAA,YACIkC;AAAA,MAAA;AAAA,MACI;AAAA;AAAA;AAAA,MACA;AAAA,IAGA,GAIRC;AAAA,MAAAH;AAAA,MACI,CAAAI,MAAA;AAEI,YAAAA;AACI,gBAAA,IAAA,MAAA,wEAAA;AAAA,MACJ;AAAA,MACJ;AAAA,QACA,WAAA;AAAA,MACe;AAAA,IACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -5,8 +5,8 @@ import { BentoInputField as x } from "./input-field.js";
5
5
  import { S as F } from "./chunks/search.ade93bda.js";
6
6
  import { C as P } from "./chunks/cross-circle-fill.1abec1a2.js";
7
7
  import { _ as T } from "./chunks/_plugin-vue_export-helper.dad06003.js";
8
- import { u as O } from "./chunks/dropdown.70940b5d.js";
9
- import "./assets/index31.css";
8
+ import { u as O } from "./chunks/dropdown.2c6bb85c.js";
9
+ import "./assets/index35.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": {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as v, inject as V, computed as C, openBlock as a, createElementBlock as n, normalizeClass as S, unref as s, createVNode as i, withCtx as m, createTextVNode as p, toDisplayString as f, createElementVNode as g, Fragment as h, renderList as N, ref as B, readonly as $, provide as A, createBlock as b } from "vue";
2
- import { B as k } from "./chunks/index.93c7dcb9.js";
2
+ import { B as k } from "./chunks/index.ed76cbb3.js";
3
3
  import { _ as y } from "./chunks/_plugin-vue_export-helper.dad06003.js";
4
- import "./assets/index32.css";
4
+ import "./assets/index40.css";
5
5
  const x = Symbol("secondary nav state"), E = {}, T = /* @__PURE__ */ v({
6
6
  ...E,
7
7
  __name: "secondary-nav-item",
@@ -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.93c7dcb9.js";
2
+ import { B as M } from "./chunks/index.ed76cbb3.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.7b2758bf.js";
6
+ import { B as G } from "./chunks/tooltip.c2233d64.js";
7
7
  import { u as H } from "./chunks/i18n.f7e6533e.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/index33.css";
10
+ import "./assets/index29.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,15 +1,15 @@
1
1
  import { defineComponent as H, ref as u, inject as $, onUnmounted as X, computed as r, watch as C, openBlock as E, createBlock as K, Transition as Z, unref as t, withCtx as f, withDirectives as ee, createElementVNode as R, normalizeClass as V, createVNode as d, createCommentVNode as U, createTextVNode as ae, toDisplayString as te, renderSlot as J, createElementBlock as x, vShow as se, nextTick as G, toRefs as le, provide as k, withKeys as ne, withModifiers as ie } from "vue";
2
- import { a as Y } from "./chunks/button.b09b3d53.js";
3
- import { B as F } from "./chunks/index.93c7dcb9.js";
4
- import { F as oe } from "./chunks/footer-actions.795f3e03.js";
2
+ import { a as Y } from "./chunks/button.5e03cdd9.js";
3
+ import { B as F } from "./chunks/index.ed76cbb3.js";
4
+ import { F as oe } from "./chunks/footer-actions.92e13b90.js";
5
5
  import { A as ue } from "./chunks/arrow-left.81a91b8f.js";
6
6
  import { a as M, b as j, S as re } from "./chunks/sidepanel.keys.3f8d69c1.js";
7
7
  import { u as z } from "./chunks/i18n.f7e6533e.js";
8
8
  import { _ as q } from "./chunks/_plugin-vue_export-helper.dad06003.js";
9
- import { B as ce } from "./chunks/index.526a5595.js";
9
+ import { B as ce } from "./chunks/index.b253d8a2.js";
10
10
  import { C as de } from "./chunks/cross.26509efc.js";
11
11
  import { g as ve } from "./chunks/unique-id.a2a2b458.js";
12
- import "./assets/index34.css";
12
+ import "./assets/index42.css";
13
13
  var b = /* @__PURE__ */ ((e) => (e.UPDATE_ACTIVE_PAGE = "update:active-page", e.UPDATE_IS_OPEN = "update:is-open", e))(b || {}), I = /* @__PURE__ */ ((e) => (e.TRANSITION_LEVEL_DEEPER = "b-sidepanel-page__animation--level-deeper", e.TRANSITION_LEVEL_UPPER = "b-sidepanel-page__animation--level-upper", e))(I || {});
14
14
  const Q = {
15
15
  "en-US": {
package/dist/status.js CHANGED
@@ -1,5 +1,5 @@
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.93c7dcb9.js";
2
+ import { B as m } from "./chunks/index.ed76cbb3.js";
3
3
  import { _ as b } from "./chunks/_plugin-vue_export-helper.dad06003.js";
4
4
  import "./assets/index43.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 || {});
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.93c7dcb9.js";
2
+ import { B as w } from "./chunks/index.ed76cbb3.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.f7e6533e.js";
5
5
  import { _ as H } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
- import { B as ve } from "./chunks/base-button.211f3d1b.js";
6
+ import { B as ve } from "./chunks/base-button.f412f30f.js";
7
7
  import { C as _e } from "./chunks/checkmark-small.c79220d9.js";
8
- import "./assets/index35.css";
8
+ import "./assets/index33.css";
9
9
  const be = (o) => {
10
10
  function v(r) {
11
11
  return ({ detail: u }) => {