@adyen/bento-vue3 1.2.0 → 1.3.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 (223) hide show
  1. package/dist/@types/components.d.ts +12 -0
  2. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  3. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +76 -30
  4. package/dist/@types/packages/vue2/src/components/country/composables/index.d.ts +0 -1
  5. package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +1 -2
  6. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +11 -1
  7. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +11 -1
  8. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2 -1
  9. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +0 -2
  10. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +10 -0
  11. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/index.d.ts +1 -0
  12. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.d.ts +3 -0
  13. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.types.d.ts +1 -0
  14. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/form-layout-group.vue.d.ts +23 -0
  15. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-group/index.d.ts +1 -0
  16. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/form-layout-title.vue.d.ts +33 -0
  17. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-title/index.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/form-layout/components/index.d.ts +3 -0
  19. package/dist/@types/packages/vue2/src/components/form-layout/form-layout.types.d.ts +1 -0
  20. package/dist/@types/packages/vue2/src/components/form-layout/form-layout.vue.d.ts +33 -0
  21. package/dist/@types/packages/vue2/src/components/form-layout/index.d.ts +2 -0
  22. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +2 -1
  23. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +53 -22
  24. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +3 -3
  25. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +51 -44
  26. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +3 -3
  27. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +4 -12
  28. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +50 -4
  29. package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +5 -3
  30. package/dist/@types/packages/vue2/src/components/sidepanel/components/sidepanel-page.vue.d.ts +68 -0
  31. package/dist/@types/packages/vue2/src/components/sidepanel/index.d.ts +3 -0
  32. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.keys.d.ts +2 -0
  33. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.types.d.ts +21 -0
  34. package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.vue.d.ts +46 -0
  35. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
  36. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +2 -1
  37. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +1 -1
  38. package/dist/@types/packages/vue2/src/composables/index.d.ts +1 -0
  39. package/dist/@types/packages/vue2/src/composables/use-form-layout-loading/use-form-layout-loading.d.ts +4 -0
  40. package/dist/@types/packages/vue2/src/index.d.ts +2 -0
  41. package/dist/@types/packages/vue2/src/utils/ts/dev-environment.d.ts +1 -0
  42. package/dist/accordion.js +1 -1
  43. package/dist/alert.js +3 -3
  44. package/dist/assets/arrow-left.css +1 -0
  45. package/dist/assets/base-button.css +1 -1
  46. package/dist/assets/button.css +1 -1
  47. package/dist/assets/calendar.css +1 -1
  48. package/dist/assets/checkbox.css +1 -1
  49. package/dist/assets/controls-group.css +1 -1
  50. package/dist/assets/copy.css +1 -1
  51. package/dist/assets/dropdown-default-textbox.css +1 -1
  52. package/dist/assets/dropdown.css +1 -1
  53. package/dist/assets/error-message.css +1 -1
  54. package/dist/assets/footer-actions.css +1 -0
  55. package/dist/assets/grid-layout.css +1 -1
  56. package/dist/assets/index.css +1 -1
  57. package/dist/assets/index10.css +1 -1
  58. package/dist/assets/index11.css +1 -1
  59. package/dist/assets/index12.css +1 -1
  60. package/dist/assets/index13.css +1 -1
  61. package/dist/assets/index14.css +1 -1
  62. package/dist/assets/index15.css +1 -1
  63. package/dist/assets/index16.css +1 -1
  64. package/dist/assets/index17.css +1 -1
  65. package/dist/assets/index18.css +1 -1
  66. package/dist/assets/index19.css +1 -1
  67. package/dist/assets/index2.css +1 -1
  68. package/dist/assets/index20.css +1 -1
  69. package/dist/assets/index21.css +1 -1
  70. package/dist/assets/index22.css +1 -1
  71. package/dist/assets/index23.css +1 -1
  72. package/dist/assets/index24.css +1 -1
  73. package/dist/assets/index25.css +1 -1
  74. package/dist/assets/index26.css +1 -1
  75. package/dist/assets/index27.css +1 -1
  76. package/dist/assets/index28.css +1 -1
  77. package/dist/assets/index29.css +1 -1
  78. package/dist/assets/index3.css +1 -1
  79. package/dist/assets/index30.css +1 -1
  80. package/dist/assets/index31.css +1 -1
  81. package/dist/assets/index32.css +1 -1
  82. package/dist/assets/index33.css +1 -1
  83. package/dist/assets/index34.css +1 -1
  84. package/dist/assets/index35.css +1 -1
  85. package/dist/assets/index36.css +1 -1
  86. package/dist/assets/index37.css +1 -1
  87. package/dist/assets/index38.css +1 -1
  88. package/dist/assets/index39.css +1 -1
  89. package/dist/assets/index4.css +1 -1
  90. package/dist/assets/index40.css +1 -1
  91. package/dist/assets/index41.css +1 -0
  92. package/dist/assets/index42.css +1 -0
  93. package/dist/assets/index5.css +1 -1
  94. package/dist/assets/index6.css +1 -1
  95. package/dist/assets/index7.css +1 -1
  96. package/dist/assets/index8.css +1 -1
  97. package/dist/assets/index9.css +1 -1
  98. package/dist/assets/listbox-option-tag.css +1 -1
  99. package/dist/assets/listbox.css +1 -1
  100. package/dist/assets/loading-button.css +1 -1
  101. package/dist/assets/tooltip.css +1 -1
  102. package/dist/avatar-image.js +1 -1
  103. package/dist/badge.js +1 -1
  104. package/dist/button.js +3 -3
  105. package/dist/card.js +3 -3
  106. package/dist/checkbox.js +111 -97
  107. package/dist/checkbox.js.map +1 -1
  108. package/dist/chunks/arrow-left.cdbcc128.js +30 -0
  109. package/dist/chunks/arrow-left.cdbcc128.js.map +1 -0
  110. package/dist/chunks/{base-button.4a56c2fb.js → base-button.20be08da.js} +2 -2
  111. package/dist/chunks/{base-button.4a56c2fb.js.map → base-button.20be08da.js.map} +1 -1
  112. package/dist/chunks/{button-actions.a6e541ad.js → button-actions.54e28e75.js} +2 -2
  113. package/dist/chunks/{button-actions.a6e541ad.js.map → button-actions.54e28e75.js.map} +1 -1
  114. package/dist/chunks/{button.1f630b6e.js → button.e1c39f66.js} +2 -2
  115. package/dist/chunks/{button.1f630b6e.js.map → button.e1c39f66.js.map} +1 -1
  116. package/dist/chunks/{calendar.08885a56.js → calendar.09b683b3.js} +6 -6
  117. package/dist/chunks/calendar.09b683b3.js.map +1 -0
  118. package/dist/chunks/{checkbox.cfb8b8df.js → checkbox.a404069b.js} +3 -3
  119. package/dist/chunks/{checkbox.cfb8b8df.js.map → checkbox.a404069b.js.map} +1 -1
  120. package/dist/chunks/controls-group.60fb2a86.js +136 -0
  121. package/dist/chunks/controls-group.60fb2a86.js.map +1 -0
  122. package/dist/chunks/{copy.1ce0203e.js → copy.2cf5e6c3.js} +3 -3
  123. package/dist/chunks/{copy.1ce0203e.js.map → copy.2cf5e6c3.js.map} +1 -1
  124. package/dist/chunks/{dropdown-default-textbox.dd77bb42.js → dropdown-default-textbox.203e747f.js} +54 -51
  125. package/dist/chunks/dropdown-default-textbox.203e747f.js.map +1 -0
  126. package/dist/chunks/{dropdown.f9997464.js → dropdown.8b415aac.js} +188 -185
  127. package/dist/chunks/dropdown.8b415aac.js.map +1 -0
  128. package/dist/chunks/{error-message.b88bb75a.js → error-message.ddfe8ea5.js} +2 -2
  129. package/dist/chunks/{error-message.b88bb75a.js.map → error-message.ddfe8ea5.js.map} +1 -1
  130. package/dist/chunks/footer-actions.0f640f87.js +106 -0
  131. package/dist/chunks/footer-actions.0f640f87.js.map +1 -0
  132. package/dist/chunks/form-layout.types.a7a1438d.js +5 -0
  133. package/dist/chunks/form-layout.types.a7a1438d.js.map +1 -0
  134. package/dist/chunks/{index.361c61d3.js → index.13949709.js} +2 -2
  135. package/dist/chunks/{index.361c61d3.js.map → index.13949709.js.map} +1 -1
  136. package/dist/chunks/index.222d29b0.js +120 -0
  137. package/dist/chunks/index.222d29b0.js.map +1 -0
  138. package/dist/chunks/{index.64b7b3cc.js → index.3da90517.js} +6 -6
  139. package/dist/chunks/{index.64b7b3cc.js.map → index.3da90517.js.map} +1 -1
  140. package/dist/chunks/{index.96001b1d.js → index.aa34e363.js} +3 -3
  141. package/dist/chunks/{index.96001b1d.js.map → index.aa34e363.js.map} +1 -1
  142. package/dist/chunks/{index.b46a5047.js → index.c9225c3b.js} +260 -253
  143. package/dist/chunks/{index.b46a5047.js.map → index.c9225c3b.js.map} +1 -1
  144. package/dist/chunks/{index.7dd953ea.js → index.d27367cd.js} +2 -2
  145. package/dist/chunks/{index.7dd953ea.js.map → index.d27367cd.js.map} +1 -1
  146. package/dist/chunks/{listbox-option-tag.73661a5d.js → listbox-option-tag.5ae8b79b.js} +3 -3
  147. package/dist/chunks/{listbox-option-tag.73661a5d.js.map → listbox-option-tag.5ae8b79b.js.map} +1 -1
  148. package/dist/chunks/{listbox.7b5e0eee.js → listbox.0c7c4e5e.js} +339 -339
  149. package/dist/chunks/listbox.0c7c4e5e.js.map +1 -0
  150. package/dist/chunks/loading-button.61d8ebe5.js +109 -0
  151. package/dist/chunks/loading-button.61d8ebe5.js.map +1 -0
  152. package/dist/chunks/{tooltip.53290a34.js → tooltip.835d9b52.js} +2 -2
  153. package/dist/chunks/tooltip.835d9b52.js.map +1 -0
  154. package/dist/chunks/use-form-layout-loading.d03e5d48.js +12 -0
  155. package/dist/chunks/use-form-layout-loading.d03e5d48.js.map +1 -0
  156. package/dist/code-snippet.js +6 -6
  157. package/dist/code-snippet.js.map +1 -1
  158. package/dist/country.js +559 -595
  159. package/dist/country.js.map +1 -1
  160. package/dist/currency.js +1 -1
  161. package/dist/data-grid.js +682 -702
  162. package/dist/data-grid.js.map +1 -1
  163. package/dist/date-picker.js +82 -75
  164. package/dist/date-picker.js.map +1 -1
  165. package/dist/date-range-picker.js +2 -2
  166. package/dist/date.js +1 -1
  167. package/dist/divider.js +1 -1
  168. package/dist/dropdown.js +67 -62
  169. package/dist/dropdown.js.map +1 -1
  170. package/dist/filter-bar.js +446 -442
  171. package/dist/filter-bar.js.map +1 -1
  172. package/dist/focus-trap.js +1 -1
  173. package/dist/form-layout.js +188 -0
  174. package/dist/form-layout.js.map +1 -0
  175. package/dist/header.js +3 -3
  176. package/dist/index.js +191 -187
  177. package/dist/index.js.map +1 -1
  178. package/dist/info-icon.js +2 -2
  179. package/dist/input-field.js +123 -121
  180. package/dist/input-field.js.map +1 -1
  181. package/dist/internal.js +6 -6
  182. package/dist/link.js +2 -2
  183. package/dist/loading-indicator.js +1 -1
  184. package/dist/menu.js +4 -4
  185. package/dist/modal.js +266 -397
  186. package/dist/modal.js.map +1 -1
  187. package/dist/pagination.js +4 -4
  188. package/dist/payment-method.js +2 -2
  189. package/dist/popover.js +4 -4
  190. package/dist/popper-container.js +2 -2
  191. package/dist/radio-group.js +127 -124
  192. package/dist/radio-group.js.map +1 -1
  193. package/dist/search-bar.js +2 -2
  194. package/dist/segmented-control.js +4 -4
  195. package/dist/sidepanel.js +279 -0
  196. package/dist/sidepanel.js.map +1 -0
  197. package/dist/status.js +2 -2
  198. package/dist/structured-list.js +1 -1
  199. package/dist/summary-grid.js +3 -3
  200. package/dist/tabs.js +7 -7
  201. package/dist/tabs.js.map +1 -1
  202. package/dist/tag.js +3 -3
  203. package/dist/textarea.js +97 -95
  204. package/dist/textarea.js.map +1 -1
  205. package/dist/timeline.js +8 -8
  206. package/dist/timeline.js.map +1 -1
  207. package/dist/toast.js +3 -3
  208. package/dist/toggle.js +2 -2
  209. package/dist/typography.js +1 -1
  210. package/dist/web-types.json +1 -1
  211. package/package.json +14 -7
  212. package/dist/@types/packages/vue2/src/components/country/composables/useCountryFlag.d.ts +0 -2
  213. package/dist/chunks/calendar.08885a56.js.map +0 -1
  214. package/dist/chunks/controls-group.806da9bd.js +0 -75
  215. package/dist/chunks/controls-group.806da9bd.js.map +0 -1
  216. package/dist/chunks/dropdown-default-textbox.dd77bb42.js.map +0 -1
  217. package/dist/chunks/dropdown.f9997464.js.map +0 -1
  218. package/dist/chunks/index.ebf5f6cf.js +0 -119
  219. package/dist/chunks/index.ebf5f6cf.js.map +0 -1
  220. package/dist/chunks/listbox.7b5e0eee.js.map +0 -1
  221. package/dist/chunks/loading-button.426d89b9.js +0 -113
  222. package/dist/chunks/loading-button.426d89b9.js.map +0 -1
  223. package/dist/chunks/tooltip.53290a34.js.map +0 -1
@@ -1,18 +1,19 @@
1
- import { defineComponent as B, toRefs as R, computed as l, resolveComponent as f, openBlock as n, createElementBlock as h, normalizeClass as E, createElementVNode as L, createBlock as v, withCtx as p, renderSlot as C, createCommentVNode as y, toRef as N, createVNode as O, Fragment as M, renderList as U, createSlots as w, createTextVNode as S, toDisplayString as I } from "vue";
2
- import { B as P, b as G, a as H, d as Y } from "./chunks/index.ebf5f6cf.js";
3
- import { u as q } from "./chunks/aria-label.ac9651a5.js";
4
- import { g as _ } from "./chunks/unique-id.a2a2b458.js";
1
+ import { defineComponent as V, toRefs as $, computed as d, resolveComponent as y, openBlock as l, createElementBlock as h, normalizeClass as E, createElementVNode as N, createBlock as v, withCtx as b, renderSlot as C, createCommentVNode as f, toRef as B, createVNode as O, Fragment as M, renderList as U, createSlots as q, createTextVNode as _, toDisplayString as I } from "vue";
2
+ import { B as w, b as P, a as G, d as H } from "./chunks/index.222d29b0.js";
3
+ import { u as Y } from "./chunks/aria-label.ac9651a5.js";
4
+ import { g as S } from "./chunks/unique-id.a2a2b458.js";
5
5
  import { u as z } from "./chunks/use-has-slot.068222e6.js";
6
- import { u as Z } from "./chunks/use-default-slot-validator.83d977a1.js";
7
- import { g as j } from "./chunks/get-slot-text.2db867f8.js";
8
- import { _ as V } from "./chunks/_plugin-vue_export-helper.dad06003.js";
9
- import { C as F } from "./chunks/controls-group.806da9bd.js";
10
- import { E as J } from "./chunks/error-message.b88bb75a.js";
11
- import "./assets/index19.css";
6
+ import { u as F } from "./chunks/use-default-slot-validator.83d977a1.js";
7
+ import { g as Z } from "./chunks/get-slot-text.2db867f8.js";
8
+ import { _ as k } 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 J } from "./chunks/controls-group.60fb2a86.js";
11
+ import { E as K } from "./chunks/error-message.ddfe8ea5.js";
12
+ import "./assets/index8.css";
12
13
  var m = /* @__PURE__ */ ((e) => (e.DISABLED = "disabled", e.READONLY = "readonly", e.ERROR = "error", e))(m || {}), g = /* @__PURE__ */ ((e) => (e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e))(g || {}), c = /* @__PURE__ */ ((e) => (e.UPDATE = "update:model-value", e))(c || {});
13
- const K = B({
14
+ const Q = V({
14
15
  name: "radio-button",
15
- components: { BentoTypography: P },
16
+ components: { BentoTypography: w },
16
17
  props: {
17
18
  /**
18
19
  * Disable the radio button (optional)
@@ -52,50 +53,50 @@ const K = B({
52
53
  }
53
54
  },
54
55
  emits: [c.UPDATE],
55
- setup(e, { slots: o, emit: i }) {
56
- const d = z(o), { value: u } = R(e), b = _("radio-button"), t = _("description"), a = d("default"), s = d("description");
57
- Z("radio-button", a, s);
58
- const r = l(() => ({
56
+ setup(e, { slots: a, emit: u }) {
57
+ const i = z(a), { value: n } = $(e), p = S("radio-button"), t = S("description"), r = i("default"), s = i("description");
58
+ F("radio-button", r, s);
59
+ const o = d(() => ({
59
60
  [`b-radio-button--${m.DISABLED}`]: e.disabled,
60
61
  [`b-radio-button--${m.READONLY}`]: e.readonly
61
- })), k = l(() => ({
62
+ })), T = d(() => ({
62
63
  [`b-radio-button__input--${m.ERROR}`]: e.hasError
63
- })), T = q({
64
- ariaLabel: j(o)("default"),
65
- label: u.value
66
- }), A = l(() => e.hasError), D = l(() => e.value === e.modelValue);
64
+ })), A = Y({
65
+ ariaLabel: Z(a)("default"),
66
+ label: n.value
67
+ }), L = d(() => e.hasError), R = d(() => e.value === e.modelValue);
67
68
  return {
68
69
  // Values
69
- ariaLabel: T,
70
- ariaInvalid: A,
71
- isChecked: D,
72
- defaultSlotValue: a,
70
+ ariaLabel: A,
71
+ ariaInvalid: L,
72
+ isChecked: R,
73
+ defaultSlotValue: r,
73
74
  descriptionSlotValue: s,
74
- conditionalClassContainer: r,
75
- conditionalClassInput: k,
76
- radioButtonId: b,
75
+ conditionalClassContainer: o,
76
+ conditionalClassInput: T,
77
+ radioButtonId: p,
77
78
  descriptionId: t,
78
79
  // Events
79
80
  onChange: () => {
80
- !e.disabled && !e.readonly && i(c.UPDATE, e.value);
81
+ !e.disabled && !e.readonly && u(c.UPDATE, e.value);
81
82
  },
82
- onClick: ($) => {
83
- e.readonly && $.preventDefault();
83
+ onClick: (D) => {
84
+ e.readonly && D.preventDefault();
84
85
  },
85
86
  // Enums
86
- BentoTypographyVariant: G,
87
- BentoTypographyElement: H
87
+ BentoTypographyVariant: P,
88
+ BentoTypographyElement: G
88
89
  };
89
90
  }
90
91
  });
91
- const Q = ["id", "aria-checked", "aria-label", "aria-invalid", "aria-describedby", "checked", "disabled", "aria-readonly", "value"], W = ["for"];
92
- function X(e, o, i, d, u, b) {
93
- const t = f("bento-typography");
94
- return n(), h("div", {
92
+ const W = ["id", "aria-checked", "aria-label", "aria-invalid", "aria-describedby", "checked", "disabled", "aria-readonly", "value"], X = ["for"];
93
+ function x(e, a, u, i, n, p) {
94
+ const t = y("bento-typography");
95
+ return l(), h("div", {
95
96
  class: E(["b-radio-button", e.conditionalClassContainer]),
96
97
  "data-testid": "radio-button-container"
97
98
  }, [
98
- L("input", {
99
+ N("input", {
99
100
  id: e.radioButtonId,
100
101
  "aria-checked": e.isChecked,
101
102
  "aria-label": e.ariaLabel,
@@ -103,108 +104,104 @@ function X(e, o, i, d, u, b) {
103
104
  "aria-describedby": e.descriptionSlotValue ? e.descriptionId : "",
104
105
  checked: e.isChecked,
105
106
  disabled: e.disabled,
106
- "aria-readonly": e.readonly,
107
+ "aria-readonly": e.readonly ? e.readonly : void 0,
107
108
  value: e.value,
108
109
  type: "radio",
109
110
  class: E(["b-radio-button__input", e.conditionalClassInput]),
110
111
  role: "radio",
111
- onClick: o[0] || (o[0] = (...a) => e.onClick && e.onClick(...a)),
112
- onChange: o[1] || (o[1] = (...a) => e.onChange && e.onChange(...a))
113
- }, null, 42, Q),
114
- e.defaultSlotValue ? (n(), h("label", {
112
+ onClick: a[0] || (a[0] = (...r) => e.onClick && e.onClick(...r)),
113
+ onChange: a[1] || (a[1] = (...r) => e.onChange && e.onChange(...r))
114
+ }, null, 42, W),
115
+ e.defaultSlotValue ? (l(), h("label", {
115
116
  key: 0,
116
117
  for: e.radioButtonId,
117
118
  class: "b-radio-button__label-container"
118
119
  }, [
119
- e.defaultSlotValue ? (n(), v(t, {
120
+ e.defaultSlotValue ? (l(), v(t, {
120
121
  key: 0,
121
122
  class: "b-radio-button__label",
122
123
  el: e.BentoTypographyElement.SPAN,
123
124
  variant: e.BentoTypographyVariant.BODY
124
125
  }, {
125
- default: p(() => [
126
+ default: b(() => [
126
127
  C(e.$slots, "default", {}, void 0, !0)
127
128
  ]),
128
129
  _: 3
129
- }, 8, ["el", "variant"])) : y("", !0),
130
- e.defaultSlotValue && e.descriptionSlotValue ? (n(), v(t, {
130
+ }, 8, ["el", "variant"])) : f("", !0),
131
+ e.defaultSlotValue && e.descriptionSlotValue ? (l(), v(t, {
131
132
  key: 1,
132
133
  id: e.descriptionId,
133
134
  class: "b-radio-button__description",
134
135
  el: e.BentoTypographyElement.SPAN,
135
136
  variant: e.BentoTypographyVariant.BODY
136
137
  }, {
137
- default: p(() => [
138
+ default: b(() => [
138
139
  C(e.$slots, "description", {}, void 0, !0)
139
140
  ]),
140
141
  _: 3
141
- }, 8, ["id", "el", "variant"])) : y("", !0)
142
- ], 8, W)) : y("", !0)
142
+ }, 8, ["id", "el", "variant"])) : f("", !0)
143
+ ], 8, X)) : f("", !0)
143
144
  ], 2);
144
145
  }
145
- const x = /* @__PURE__ */ V(K, [["render", X], ["__scopeId", "data-v-0b2af9b7"]]), ee = B({
146
+ const ee = /* @__PURE__ */ k(Q, [["render", x], ["__scopeId", "data-v-9bb45ebc"]]), oe = V({
146
147
  name: "bento-radio-group",
147
- components: { ControlsGroup: F, ErrorMessage: J, RadioButton: x },
148
+ components: { ControlsGroup: J, ErrorMessage: K, RadioButton: ee },
148
149
  props: {
150
+ /**
151
+ * Descriptive supporting text visbile underneath the label.
152
+ */
153
+ description: { type: String, default: null },
149
154
  /**
150
155
  * If set to true, renders all radio-buttons in the group in a disabled state.
151
156
  */
152
- disabled: {
153
- type: Boolean,
154
- default: !1
155
- },
157
+ disabled: { type: Boolean, default: !1 },
156
158
  /**
157
159
  * If string is passed, all radio-buttons in an error state and renders the string beneath the buttons.
158
160
  */
159
- errorMessage: {
160
- type: String,
161
- default: null
162
- },
161
+ errorMessage: { type: String, default: null },
163
162
  /**
164
163
  * The form id the radio group is associated with. Defaults to null, as a radio group can also be used standalone.
165
164
  */
166
- formId: {
167
- type: String,
168
- default: null
169
- },
165
+ formId: { type: String, default: null },
170
166
  /**
171
167
  * If set to true, renders all radio-buttons in the group in an error state.
172
168
  *
173
169
  * @deprecated Use "errorMessage" prop instead
174
170
  */
175
- hasError: {
176
- type: Boolean,
177
- default: !1
178
- },
171
+ hasError: { type: Boolean, default: !1 },
172
+ /**
173
+ * Shows/hides the group label.
174
+ */
175
+ hideLabel: { type: Boolean, default: null },
179
176
  /**
180
177
  * The radio group's items.
181
178
  */
182
- items: {
183
- type: Array,
184
- required: !0
185
- },
179
+ items: { type: Array, required: !0 },
186
180
  /**
187
181
  * The name associated with the group. Required for accessibility purposes.
188
182
  */
189
- label: {
190
- type: String,
191
- required: !0
192
- },
183
+ label: { type: String, required: !0 },
184
+ /**
185
+ * Determines the initially selected value of the group. Corresponds to the BentoRadioButtonItem's value.
186
+ * Defaults to no value selected.
187
+ */
188
+ modelValue: { type: [Number, String, null], default: null },
189
+ /**
190
+ * Indicates the field is optional.
191
+ */
192
+ optional: { type: Boolean, default: !1 },
193
193
  /**
194
194
  * If set to true, renders all radio-buttons in the group in a readonly state.
195
195
  */
196
- readonly: {
197
- type: Boolean,
198
- default: !1
199
- },
196
+ readonly: { type: Boolean, default: !1 },
200
197
  /**
201
- * Determines the initially selected value of the group. Corresponds to the BentoRadioButtonItem's value.
202
- * Defaults to no value selected.
198
+ * Indicates the field is required.
203
199
  */
204
- modelValue: {
205
- type: [Number, String, null],
206
- default: null
207
- },
200
+ required: { type: Boolean, default: !1 },
201
+ /**
202
+ * Tooltip message.
203
+ */
204
+ tooltipText: { type: String, default: null },
208
205
  /**
209
206
  * The radio group's layout. It can be vertical or horizontal. Defaults to vertical.
210
207
  */
@@ -215,15 +212,15 @@ const x = /* @__PURE__ */ V(K, [["render", X], ["__scopeId", "data-v-0b2af9b7"]]
215
212
  }
216
213
  },
217
214
  emits: [c.UPDATE],
218
- setup(e, { emit: o }) {
219
- const i = N(e, "modelValue"), d = _("error"), u = l(
220
- () => !e.disabled && !e.readonly && (!!e.errorMessage || e.hasError)
221
- ), b = l(() => !e.disabled && !e.readonly && !!e.errorMessage), t = l(() => ({
215
+ setup(e, { emit: a }) {
216
+ const u = B(e, "modelValue"), i = S("error"), { isReadOnly: n } = j(B(e, "readonly")), p = d(
217
+ () => !e.disabled && !n.value && (!!e.errorMessage || e.hasError)
218
+ ), t = d(() => !e.disabled && !n.value && !!e.errorMessage), r = d(() => ({
222
219
  "b-radio-group__buttons--horizontal": e.variant === g.HORIZONTAL
223
- })), a = (s) => {
224
- o(c.UPDATE, s);
220
+ })), s = (o) => {
221
+ a(c.UPDATE, o);
225
222
  };
226
- return e.hasError && Y(
223
+ return e.hasError && H(
227
224
  'BentoRadioGroup "hasError" property',
228
225
  `Use the BentoRadioGroup "errorMessage" property instead to indicate that there is a modifier error.
229
226
  Having the field as "undefined" will hide/remove the error.
@@ -231,64 +228,70 @@ const x = /* @__PURE__ */ V(K, [["render", X], ["__scopeId", "data-v-0b2af9b7"]]
231
228
  "2.0.0"
232
229
  ), {
233
230
  // Values
234
- inputValue: i,
235
- errorId: d,
236
- shouldShowError: u,
237
- shouldShowErrorMessage: b,
238
- conditionalClasses: t,
231
+ inputValue: u,
232
+ errorId: i,
233
+ isReadOnly: n,
234
+ shouldShowError: p,
235
+ shouldShowErrorMessage: t,
236
+ conditionalClasses: r,
239
237
  // Methods
240
- onInput: a
238
+ onInput: s
241
239
  };
242
240
  }
243
241
  });
244
- const oe = { class: "b-radio-group" };
245
- function ae(e, o, i, d, u, b) {
246
- const t = f("radio-button"), a = f("controls-group"), s = f("error-message");
247
- return n(), h("div", oe, [
248
- O(a, {
242
+ const ae = { class: "b-radio-group" };
243
+ function re(e, a, u, i, n, p) {
244
+ const t = y("radio-button"), r = y("controls-group"), s = y("error-message");
245
+ return l(), h("div", ae, [
246
+ O(r, {
249
247
  class: E(["b-radio-group__buttons", e.conditionalClasses]),
250
- form: e.formId,
248
+ "aria-describedby": e.shouldShowErrorMessage ? e.errorId : "",
249
+ description: e.description,
251
250
  disabled: e.disabled,
251
+ form: e.formId,
252
252
  label: e.label,
253
- "aria-describedby": e.shouldShowErrorMessage ? e.errorId : ""
253
+ optional: e.optional,
254
+ required: e.required,
255
+ "hide-label": e.hideLabel,
256
+ "tooltip-text": e.tooltipText
254
257
  }, {
255
- default: p(() => [
256
- (n(!0), h(M, null, U(e.items, (r) => (n(), v(t, {
257
- key: r.value,
258
+ default: b(() => [
259
+ (l(!0), h(M, null, U(e.items, (o) => (l(), v(t, {
260
+ key: o.value,
258
261
  "model-value": e.inputValue,
259
- value: r.value,
260
- disabled: e.disabled || r.disabled,
261
- readonly: e.readonly || r.readonly,
262
- "has-error": e.shouldShowError || r.hasError,
262
+ value: o.value,
263
+ disabled: e.disabled || o.disabled,
264
+ readonly: e.isReadOnly || o.readonly,
265
+ "has-error": e.shouldShowError || o.hasError,
263
266
  "onUpdate:modelValue": e.onInput
264
- }, w({
265
- default: p(() => [
266
- S(I(r.label) + " ", 1)
267
+ }, q({
268
+ default: b(() => [
269
+ _(I(o.label) + " ", 1)
267
270
  ]),
268
271
  _: 2
269
272
  }, [
270
- r.description ? {
273
+ o.description ? {
271
274
  name: "description",
272
- fn: p(() => [
273
- S(I(r.description), 1)
275
+ fn: b(() => [
276
+ _(I(o.description), 1)
274
277
  ]),
275
278
  key: "0"
276
279
  } : void 0
277
280
  ]), 1032, ["model-value", "value", "disabled", "readonly", "has-error", "onUpdate:modelValue"]))), 128))
278
281
  ]),
279
282
  _: 1
280
- }, 8, ["class", "form", "disabled", "label", "aria-describedby"]),
281
- e.shouldShowErrorMessage ? (n(), v(s, {
283
+ }, 8, ["aria-describedby", "class", "description", "disabled", "form", "label", "optional", "required", "hide-label", "tooltip-text"]),
284
+ e.shouldShowErrorMessage ? (l(), v(s, {
282
285
  key: 0,
283
286
  id: e.errorId,
284
287
  "error-message": e.errorMessage,
285
288
  class: "b-radio-group__error-message"
286
- }, null, 8, ["id", "error-message"])) : y("", !0)
289
+ }, null, 8, ["id", "error-message"])) : f("", !0)
287
290
  ]);
288
291
  }
289
- const ye = /* @__PURE__ */ V(ee, [["render", ae], ["__scopeId", "data-v-ee6a8007"]]);
292
+ const ge = /* @__PURE__ */ k(oe, [["render", re], ["__scopeId", "data-v-e54cc3b5"]]);
290
293
  export {
291
- ye as BentoRadioGroup,
294
+ ge as BentoRadioGroup,
292
295
  g as BentoRadioGroupVariant
293
296
  };
294
297
  //# 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/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","export 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}\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=\"descriptionSlotValue ? descriptionId : ''\"\n :checked=\"isChecked\"\n :disabled=\"disabled\"\n :aria-readonly=\"readonly\"\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=\"defaultSlotValue\" :for=\"radioButtonId\" class=\"b-radio-button__label-container\">\n <bento-typography\n v-if=\"defaultSlotValue\"\n class=\"b-radio-button__label\"\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.BODY\"\n >\n <slot></slot>\n </bento-typography>\n <bento-typography\n v-if=\"defaultSlotValue && descriptionSlotValue\"\n :id=\"descriptionId\"\n class=\"b-radio-button__description\"\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.BODY\"\n >\n <slot name=\"description\"></slot>\n </bento-typography>\n </label>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } 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 hasSlot = useHasSlot(slots);\n const { value } = toRefs(props);\n const radioButtonId = generateUid('radio-button');\n const descriptionId = generateUid('description');\n\n const defaultSlotValue = hasSlot('default');\n const descriptionSlotValue = hasSlot('description');\n\n useDefaultSlotValidator('radio-button', defaultSlotValue, descriptionSlotValue);\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 // Events\n onChange,\n onClick,\n\n // Enums\n BentoTypographyVariant,\n BentoTypographyElement,\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 :class=\"conditionalClasses\"\n :form=\"formId\"\n :disabled=\"disabled\"\n :label=\"label\"\n :aria-describedby=\"shouldShowErrorMessage ? errorId : ''\"\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=\"readonly || 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 </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 } from 'vue';\n import { ControlsGroup, ErrorMessage } from '@/components/internal';\n import RadioButton from './components/radio-button/radio-button.vue';\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\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, BentoRadioGroupVariant } 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=\"BentoRadioGroupVariant.HORIZONTAL\"\n * />\n * `\n * };\n */\n export default defineComponent({\n name: 'bento-radio-group',\n components: { ControlsGroup, ErrorMessage, RadioButton },\n props: {\n /**\n * If set to true, renders all radio-buttons in the group in a disabled state.\n */\n disabled: {\n type: Boolean,\n 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: {\n type: String,\n 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: {\n type: String,\n 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: {\n type: Boolean,\n default: false,\n },\n /**\n * The radio group's items.\n */\n items: {\n type: Array as PropType<BentoRadioGroupItems>,\n required: true,\n },\n /**\n * The name associated with the group. Required for accessibility purposes.\n */\n label: {\n type: String,\n required: true,\n },\n /**\n * If set to true, renders all radio-buttons in the group in a readonly state.\n */\n readonly: {\n type: Boolean,\n default: false,\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, null],\n 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],\n setup(props, { emit }) {\n const inputValue = toRef(props, 'modelValue');\n const errorId = generateUid('error');\n\n const shouldShowError = computed(\n () => !props.disabled && !props.readonly && (!!props.errorMessage || props.hasError)\n );\n const shouldShowErrorMessage = computed(() => !props.disabled && !props.readonly && !!props.errorMessage);\n\n const conditionalClasses = computed(() => ({\n 'b-radio-group__buttons--horizontal': props.variant === BentoRadioGroupVariant.HORIZONTAL,\n }));\n\n const onInput = value => {\n emit(BentoRadioGroupEvent.UPDATE, 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 return {\n // Values\n inputValue,\n errorId,\n shouldShowError,\n shouldShowErrorMessage,\n conditionalClasses,\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","hasSlot","useHasSlot","value","toRefs","radioButtonId","generateUid","descriptionId","defaultSlotValue","descriptionSlotValue","useDefaultSlotValidator","conditionalClassContainer","computed","conditionalClassInput","ariaLabel","useAriaLabel","getSlotText","ariaInvalid","isChecked","event","BentoTypographyVariant","BentoTypographyElement","openBlock","createElementBlock","normalizeClass","_ctx","createElementVNode","_cache","args","_hoisted_1$1","createCommentVNode","createBlock","_component_bento_typography","_sfc_main","ControlsGroup","ErrorMessage","RadioButton","inputValue","toRef","errorId","shouldShowError","shouldShowErrorMessage","conditionalClasses","onInput","deprecate","_hoisted_1","createVNode","_component_controls_group","Fragment","renderList","item","_component_radio_button","createSlots","_component_error_message"],"mappings":";;;;;;;;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SAHQA,IAAAD,KAAA,CAAA,CAAA,GCAAE,IAAA,kBAAAC,OACRA,EAAA,aAAA,cACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,CAAA,GAgBAE,IAAA,kBAAAC,OACRA,EAAA,SAAA,sBADQA,IAAAD,KAAA,CAAA,CAAA;AC0DR,MAAAE,IAAAC,EAAA;AAAA,EAA+B,MAAA;AAAA,EACrB,YAAA,EAAA,iBAAAC,EAAA;AAAA,EACwB,OAAA;AAAA;AAAA;AAAA;AAAA,IACvB,UAAA;AAAA,MAIO,MAAA;AAAA,MACA,SAAA;AAAA,IACG;AAAA;AAAA;AAAA;AAAA,IACb,UAAA;AAAA,MAIU,MAAA;AAAA,MACA,SAAA;AAAA,IACG;AAAA;AAAA;AAAA;AAAA;AAAA,IACb,YAAA;AAAA,MAKY,MAAA,CAAA,QAAA,MAAA;AAAA,MACa,SAAA;AAAA,IACZ;AAAA;AAAA;AAAA;AAAA,IACb,UAAA;AAAA,MAIU,MAAA;AAAA,MACA,SAAA;AAAA,IACG;AAAA;AAAA;AAAA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AAzB,EAAA,mBAAAyB,EAAA;AAAA,UAEL,uBAAAzB,EAAA;AAAA,QAAA,GAAA2B,EAAA;AAAA;;;UACA,GAAA;AAAA,QAAA,GAAA;AAAA;;;;;;;;;MAId,GAAA;AAAA,IAAA,GAAA,GAAA,CAAA,SAAA,QAAA,YAAA,SAAA,kBAAA,CAAA;AAAA,IAIR3B,EAAA,0BAAAH,EAAA,GAAAS,EAAAsB,GAAA;AAAA,MAHc,KAAA;AAAA,MACX,IAAA5B,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","export 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}\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=\"descriptionSlotValue ? 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=\"defaultSlotValue\" :for=\"radioButtonId\" class=\"b-radio-button__label-container\">\n <bento-typography\n v-if=\"defaultSlotValue\"\n class=\"b-radio-button__label\"\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.BODY\"\n >\n <slot></slot>\n </bento-typography>\n <bento-typography\n v-if=\"defaultSlotValue && descriptionSlotValue\"\n :id=\"descriptionId\"\n class=\"b-radio-button__description\"\n :el=\"BentoTypographyElement.SPAN\"\n :variant=\"BentoTypographyVariant.BODY\"\n >\n <slot name=\"description\"></slot>\n </bento-typography>\n </label>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } 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 hasSlot = useHasSlot(slots);\n const { value } = toRefs(props);\n const radioButtonId = generateUid('radio-button');\n const descriptionId = generateUid('description');\n\n const defaultSlotValue = hasSlot('default');\n const descriptionSlotValue = hasSlot('description');\n\n useDefaultSlotValidator('radio-button', defaultSlotValue, descriptionSlotValue);\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 // Events\n onChange,\n onClick,\n\n // Enums\n BentoTypographyVariant,\n BentoTypographyElement,\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 </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 } from 'vue';\n import { ControlsGroup, ErrorMessage } from '@/components/internal';\n import RadioButton from './components/radio-button/radio-button.vue';\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, BentoRadioGroupVariant } 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=\"BentoRadioGroupVariant.HORIZONTAL\"\n * />\n * `\n * };\n */\n export default defineComponent({\n name: 'bento-radio-group',\n components: { ControlsGroup, ErrorMessage, RadioButton },\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],\n setup(props, { emit }) {\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 const onInput = value => {\n emit(BentoRadioGroupEvent.UPDATE, 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 return {\n // Values\n inputValue,\n errorId,\n isReadOnly,\n shouldShowError,\n shouldShowErrorMessage,\n conditionalClasses,\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","hasSlot","useHasSlot","value","toRefs","radioButtonId","generateUid","descriptionId","defaultSlotValue","descriptionSlotValue","useDefaultSlotValidator","conditionalClassContainer","computed","conditionalClassInput","ariaLabel","useAriaLabel","getSlotText","ariaInvalid","isChecked","event","BentoTypographyVariant","BentoTypographyElement","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","shouldShowError","shouldShowErrorMessage","conditionalClasses","onInput","deprecate","_hoisted_1","createVNode","_component_controls_group","Fragment","renderList","item","_component_radio_button","createSlots","_component_error_message"],"mappings":";;;;;;;;;;;;AAAY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,WAAA,YACAA,EAAA,WAAA,YACAA,EAAA,QAAA,SAHQA,IAAAD,KAAA,CAAA,CAAA,GCAAE,IAAA,kBAAAC,OACRA,EAAA,aAAA,cACAA,EAAA,WAAA,YAFQA,IAAAD,KAAA,CAAA,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AA,CAAA;AAAA,IAIR7B,EAAA,0BAAAH,EAAA,GAAAS,EAAAwB,GAAA;AAAA,MAHc,KAAA;AAAA,MACX,IAAA9B,EAAA;AAAA,MACK,iBAAAA,EAAA;AAAA;;;;;"}
@@ -4,8 +4,8 @@ import { d as T } from "./chunks/debounce.f8d92e44.js";
4
4
  import { S as A } from "./chunks/search.d18f9657.js";
5
5
  import { C as P } from "./chunks/cross-circle-fill.0feb37b3.js";
6
6
  import { _ as g } from "./chunks/_plugin-vue_export-helper.dad06003.js";
7
- import { u as z } from "./chunks/dropdown.f9997464.js";
8
- import "./assets/index27.css";
7
+ import { u as z } from "./chunks/dropdown.8b415aac.js";
8
+ import "./assets/index19.css";
9
9
  var n = /* @__PURE__ */ ((e) => (e.CLEAR = "clear", e.ESCAPE = "escape-pressed", e.INPUT = "input", e.UPDATE = "update:search-term", e))(n || {}), F = /* @__PURE__ */ ((e) => (e.CLEAR = "search-clear", e.INPUT = "search-input", e.UPDATE = "update:search-term", e))(F || {});
10
10
  const N = {
11
11
  "en-US": {
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as C, computed as u, resolveComponent as c, openBlock as a, createElementBlock as m, normalizeClass as y, createElementVNode as k, createBlock as b, createCommentVNode as g, createVNode as I, withCtx as S, createTextVNode as $, toDisplayString as w, toRef as T, ref as v, onMounted as N, onUnmounted as E, Fragment as U, renderList as D } from "vue";
2
- import { B as W, a as q, b as A } from "./chunks/index.ebf5f6cf.js";
2
+ import { B as W, a as q, b as A } from "./chunks/index.222d29b0.js";
3
3
  import { g as B } from "./chunks/unique-id.a2a2b458.js";
4
- import { C as P } from "./chunks/listbox.7b5e0eee.js";
4
+ import { C as P } from "./chunks/listbox.0c7c4e5e.js";
5
5
  import { _ as V } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
- import { B as H } from "./chunks/dropdown.f9997464.js";
7
- import "./assets/index28.css";
6
+ import { B as H } from "./chunks/dropdown.8b415aac.js";
7
+ import "./assets/index6.css";
8
8
  const L = C({
9
9
  name: "bento-segmented-control-button",
10
10
  components: { BentoTypography: W, CheckmarkIcon: P },