@leaflink/stash 43.5.2 → 44.0.0-beta.10

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 (245) hide show
  1. package/README.md +107 -39
  2. package/assets/illustrations/FileUpload/document.svg +1 -17
  3. package/dist/ActionsDropdown.js +25 -25
  4. package/dist/ActionsDropdown.js.map +1 -1
  5. package/dist/AddressSelect.js +12 -11
  6. package/dist/AddressSelect.js.map +1 -1
  7. package/dist/Alert.js +9 -9
  8. package/dist/Alert.js.map +1 -1
  9. package/dist/AppNavigationItem.js +22 -22
  10. package/dist/AppNavigationItem.js.map +1 -1
  11. package/dist/AppSidebar.js +11 -11
  12. package/dist/AppSidebar.js.map +1 -1
  13. package/dist/AppTopbar.js +12 -12
  14. package/dist/Avatar.js +12 -12
  15. package/dist/Avatar.js.map +1 -1
  16. package/dist/Backdrop.js +1 -1
  17. package/dist/Backdrop.js.map +1 -1
  18. package/dist/Badge.js +12 -12
  19. package/dist/Badge.js.map +1 -1
  20. package/dist/Badge.vue.d.ts +1 -1
  21. package/dist/Button.js +1 -1
  22. package/dist/Button.js.map +1 -1
  23. package/dist/Button.vue_used_vue_type_style_index_0_lang.module-63d31dc0.js +17 -0
  24. package/dist/Button.vue_used_vue_type_style_index_0_lang.module-63d31dc0.js.map +1 -0
  25. package/dist/ButtonGroup.js +28 -28
  26. package/dist/ButtonGroup.js.map +1 -1
  27. package/dist/Card.js +3 -3
  28. package/dist/Card.js.map +1 -1
  29. package/dist/CardHeader.js +3 -3
  30. package/dist/CardMedia.js +1 -1
  31. package/dist/CardMedia.js.map +1 -1
  32. package/dist/Carousel.js +260 -248
  33. package/dist/Carousel.js.map +1 -1
  34. package/dist/Checkbox.js +58 -46
  35. package/dist/Checkbox.js.map +1 -1
  36. package/dist/Checkbox.vue.d.ts +2 -0
  37. package/dist/Checkbox.vue_used_vue_type_style_index_0_lang.module-fa8d9c06.js +9 -0
  38. package/dist/Checkbox.vue_used_vue_type_style_index_0_lang.module-fa8d9c06.js.map +1 -0
  39. package/dist/ChevronToggle.js +1 -1
  40. package/dist/Chip.js +1 -1
  41. package/dist/Chip.js.map +1 -1
  42. package/dist/ConfirmationCodeInput.js +21 -21
  43. package/dist/ConfirmationCodeInput.js.map +1 -1
  44. package/dist/ContextSwitcher.js +6 -5
  45. package/dist/ContextSwitcher.js.map +1 -1
  46. package/dist/Copy.js +1 -1
  47. package/dist/CurrencyInput.js +2 -2
  48. package/dist/DataView.js +1 -1
  49. package/dist/DataViewFilters.js +7 -7
  50. package/dist/DataViewFilters.js.map +1 -1
  51. package/dist/DataViewSortButton.js +47 -38
  52. package/dist/DataViewSortButton.js.map +1 -1
  53. package/dist/DataViewToolbar.js +4 -4
  54. package/dist/DataViewToolbar.js.map +1 -1
  55. package/dist/DatePicker.js +12 -15
  56. package/dist/DatePicker.js.map +1 -1
  57. package/dist/DescriptionListTerm.js +8 -8
  58. package/dist/DescriptionListTerm.js.map +1 -1
  59. package/dist/Dialog.js +46 -46
  60. package/dist/Dialog.js.map +1 -1
  61. package/dist/Divider.js +9 -9
  62. package/dist/Divider.js.map +1 -1
  63. package/dist/Dropdown.js +17 -17
  64. package/dist/Dropdown.js.map +1 -1
  65. package/dist/EmptyState.js +1 -1
  66. package/dist/EmptyState.js.map +1 -1
  67. package/dist/Expand.js +1 -1
  68. package/dist/{Expand.vue_vue_type_script_setup_true_lang-5fe03d51.js → Expand.vue_vue_type_script_setup_true_lang-1751f4a6.js} +14 -15
  69. package/dist/Expand.vue_vue_type_script_setup_true_lang-1751f4a6.js.map +1 -0
  70. package/dist/Field.js +2 -2
  71. package/dist/Field.vue.d.ts +1 -1
  72. package/dist/{Field.vue_vue_type_script_setup_true_lang-475832fe.js → Field.vue_vue_type_script_setup_true_lang-42ba3c5a.js} +5 -5
  73. package/dist/Field.vue_vue_type_script_setup_true_lang-42ba3c5a.js.map +1 -0
  74. package/dist/FileUpload.js +49 -47
  75. package/dist/FileUpload.js.map +1 -1
  76. package/dist/FilterChip.js +20 -20
  77. package/dist/FilterChip.js.map +1 -1
  78. package/dist/FilterDrawerItem.js +4 -4
  79. package/dist/FilterDrawerItem.js.map +1 -1
  80. package/dist/FilterDropdown.js +19 -19
  81. package/dist/FilterDropdown.js.map +1 -1
  82. package/dist/FilterSelect.js +27 -27
  83. package/dist/FilterSelect.js.map +1 -1
  84. package/dist/Filters.js +51 -50
  85. package/dist/Filters.js.map +1 -1
  86. package/dist/HttpError.js +28 -28
  87. package/dist/HttpError.js.map +1 -1
  88. package/dist/IconLabel.js +17 -17
  89. package/dist/IconLabel.js.map +1 -1
  90. package/dist/IconLabel.vue.d.ts +1 -1
  91. package/dist/Illustration.js +10 -60
  92. package/dist/Illustration.js.map +1 -1
  93. package/dist/Illustration.vue_vue_type_script_setup_true_lang-d6a94e17.js +56 -0
  94. package/dist/Illustration.vue_vue_type_script_setup_true_lang-d6a94e17.js.map +1 -0
  95. package/dist/Image.js +67 -72
  96. package/dist/Image.js.map +1 -1
  97. package/dist/InlineEdit.js +3 -3
  98. package/dist/InlineEdit.js.map +1 -1
  99. package/dist/Input.js +43 -43
  100. package/dist/Input.js.map +1 -1
  101. package/dist/InputOptions.js +34 -33
  102. package/dist/InputOptions.js.map +1 -1
  103. package/dist/Label.js +1 -1
  104. package/dist/Label.vue.d.ts +13 -2
  105. package/dist/Label.vue_vue_type_script_setup_true_lang-4b02087f.js +38 -0
  106. package/dist/Label.vue_vue_type_script_setup_true_lang-4b02087f.js.map +1 -0
  107. package/dist/ListItem.js +16 -15
  108. package/dist/ListItem.js.map +1 -1
  109. package/dist/ListItemCell.js +9 -9
  110. package/dist/ListItemCell.js.map +1 -1
  111. package/dist/ListView.js +143 -139
  112. package/dist/ListView.js.map +1 -1
  113. package/dist/Loading.js +17 -10
  114. package/dist/Loading.js.map +1 -1
  115. package/dist/Loading.vue_used_vue_type_style_index_0_lang.module-ef5a3bc6.js +8 -0
  116. package/dist/Loading.vue_used_vue_type_style_index_0_lang.module-ef5a3bc6.js.map +1 -0
  117. package/dist/Menu.js +1 -1
  118. package/dist/Menu.js.map +1 -1
  119. package/dist/MenuItem.js +20 -14
  120. package/dist/MenuItem.js.map +1 -1
  121. package/dist/Metric.js +4 -4
  122. package/dist/Metric.js.map +1 -1
  123. package/dist/Modal.js +21 -21
  124. package/dist/Modal.js.map +1 -1
  125. package/dist/Modals.js +13 -13
  126. package/dist/Modals.js.map +1 -1
  127. package/dist/Module.js +2 -2
  128. package/dist/Module.js.map +1 -1
  129. package/dist/ModuleContent.js +2 -2
  130. package/dist/ModuleContent.js.map +1 -1
  131. package/dist/ModuleFooter.js +11 -11
  132. package/dist/ModuleFooter.js.map +1 -1
  133. package/dist/ModuleHeader.js +6 -6
  134. package/dist/ModuleHeader.js.map +1 -1
  135. package/dist/ObfuscateText.js +30 -32
  136. package/dist/ObfuscateText.js.map +1 -1
  137. package/dist/ObfuscateText.vue.d.ts +1 -1
  138. package/dist/PageContent.js +9 -9
  139. package/dist/PageContent.js.map +1 -1
  140. package/dist/PageHeader.js +24 -24
  141. package/dist/PageHeader.js.map +1 -1
  142. package/dist/PageNavigation.js +3 -3
  143. package/dist/PageNavigation.js.map +1 -1
  144. package/dist/Paginate.js +1 -1
  145. package/dist/Paginate.js.map +1 -1
  146. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-18343da7.js +11 -0
  147. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-18343da7.js.map +1 -0
  148. package/dist/QuickAction.js +20 -17
  149. package/dist/QuickAction.js.map +1 -1
  150. package/dist/Radio.js +30 -15
  151. package/dist/Radio.js.map +1 -1
  152. package/dist/RadioGroup.js +177 -148
  153. package/dist/RadioGroup.js.map +1 -1
  154. package/dist/RadioNew.js +118 -91
  155. package/dist/RadioNew.js.map +1 -1
  156. package/dist/SearchBar.js +27 -27
  157. package/dist/SearchBar.js.map +1 -1
  158. package/dist/Select.js +189 -188
  159. package/dist/Select.js.map +1 -1
  160. package/dist/SelectStatus.js +22 -21
  161. package/dist/SelectStatus.js.map +1 -1
  162. package/dist/Step.js +37 -37
  163. package/dist/Step.js.map +1 -1
  164. package/dist/Switch.js +44 -36
  165. package/dist/Switch.js.map +1 -1
  166. package/dist/Tab.js +3 -2
  167. package/dist/Tab.js.map +1 -1
  168. package/dist/{Tab.vue_vue_type_script_setup_true_lang-b810bee8.js → Tab.vue_vue_type_script_setup_true_lang-69d1b046.js} +23 -22
  169. package/dist/Tab.vue_vue_type_script_setup_true_lang-69d1b046.js.map +1 -0
  170. package/dist/Table.js +23 -22
  171. package/dist/Table.js.map +1 -1
  172. package/dist/Table.keys-cf93df19.js +27 -0
  173. package/dist/{Table.keys-1ebe4ecb.js.map → Table.keys-cf93df19.js.map} +1 -1
  174. package/dist/TableCell.js +24 -23
  175. package/dist/TableCell.js.map +1 -1
  176. package/dist/TableHeaderCell.js +37 -36
  177. package/dist/TableHeaderCell.js.map +1 -1
  178. package/dist/TableHeaderRow.js +13 -12
  179. package/dist/TableHeaderRow.js.map +1 -1
  180. package/dist/TableRow.js +36 -34
  181. package/dist/TableRow.js.map +1 -1
  182. package/dist/Tabs.js +2 -2
  183. package/dist/{Tabs.vue_used_vue_type_style_index_0_lang.module-4f247ed7.js → Tabs.vue_used_vue_type_style_index_0_lang.module-2a131332.js} +26 -26
  184. package/dist/Tabs.vue_used_vue_type_style_index_0_lang.module-2a131332.js.map +1 -0
  185. package/dist/Textarea.js +61 -53
  186. package/dist/Textarea.js.map +1 -1
  187. package/dist/Toast.js +23 -23
  188. package/dist/Toast.js.map +1 -1
  189. package/dist/components.css +1 -1
  190. package/dist/constants.d.ts +33 -26
  191. package/dist/constants.js +56 -41
  192. package/dist/constants.js.map +1 -1
  193. package/dist/index.js +21 -20
  194. package/dist/index.js.map +1 -1
  195. package/dist/storage.js +3 -2
  196. package/dist/storage.js.map +1 -1
  197. package/dist/tailwind-base.d.ts +16 -16
  198. package/dist/tailwind-base.js +16 -6
  199. package/dist/tailwind-base.js.map +1 -1
  200. package/dist/useGoogleMaps.js.map +1 -1
  201. package/dist/utils/helpers.js +37 -37
  202. package/dist/utils/helpers.js.map +1 -1
  203. package/dist/utils/storage.js +30 -29
  204. package/dist/utils/storage.js.map +1 -1
  205. package/package.json +2 -2
  206. package/styles/_core.scss +49 -1
  207. package/styles/backwards-compat.css +1467 -106
  208. package/styles/base.css +537 -22
  209. package/tailwind-base.ts +6 -1
  210. package/dist/Button.vue_used_vue_type_style_index_0_lang.module-b77978d6.js +0 -17
  211. package/dist/Button.vue_used_vue_type_style_index_0_lang.module-b77978d6.js.map +0 -1
  212. package/dist/Checkbox.vue_vue_type_style_index_0_scoped_0d7e7fd0_lang-4ed993c7.js +0 -2
  213. package/dist/Checkbox.vue_vue_type_style_index_0_scoped_0d7e7fd0_lang-4ed993c7.js.map +0 -1
  214. package/dist/Expand.vue_vue_type_script_setup_true_lang-5fe03d51.js.map +0 -1
  215. package/dist/Field.vue_vue_type_script_setup_true_lang-475832fe.js.map +0 -1
  216. package/dist/Label.vue_vue_type_script_setup_true_lang-1d29d98a.js +0 -37
  217. package/dist/Label.vue_vue_type_script_setup_true_lang-1d29d98a.js.map +0 -1
  218. package/dist/Loading.vue_vue_type_style_index_0_scoped_bb8d5f15_lang-4ed993c7.js +0 -2
  219. package/dist/Loading.vue_vue_type_style_index_0_scoped_bb8d5f15_lang-4ed993c7.js.map +0 -1
  220. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js +0 -11
  221. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js.map +0 -1
  222. package/dist/Tab.vue_vue_type_script_setup_true_lang-b810bee8.js.map +0 -1
  223. package/dist/Table.keys-1ebe4ecb.js +0 -27
  224. package/dist/Tabs.vue_used_vue_type_style_index_0_lang.module-4f247ed7.js.map +0 -1
  225. package/styles/_base.scss +0 -493
  226. package/styles/components/_all.scss +0 -14
  227. package/styles/components/_box.scss +0 -13
  228. package/styles/components/_item-list.scss +0 -78
  229. package/styles/components/_sidebar.scss +0 -404
  230. package/styles/components/_top-header.scss +0 -219
  231. package/styles/elements/_all.scss +0 -15
  232. package/styles/elements/_buttons.scss +0 -235
  233. package/styles/elements/_forms.scss +0 -300
  234. package/styles/elements/_links.scss +0 -32
  235. package/styles/elements/_lists.scss +0 -31
  236. package/styles/elements/_misc.scss +0 -16
  237. package/styles/elements/_tables.scss +0 -80
  238. package/styles/elements/_tooltips.scss +0 -110
  239. package/styles/main.scss +0 -38
  240. package/styles/utility/_all.scss +0 -12
  241. package/styles/utility/_animations.scss +0 -103
  242. package/styles/utility/_display.scss +0 -167
  243. package/styles/utility/_grid.scss +0 -200
  244. package/styles/utility/_icons.scss +0 -31
  245. package/styles/utility/_transitions.scss +0 -110
@@ -1,150 +1,179 @@
1
- import { defineComponent as y, inject as x, openBlock as r, createElementBlock as n, Fragment as w, renderList as V, unref as e, normalizeClass as v, createElementVNode as d, toDisplayString as h, provide as g, computed as b, createBlock as B, withCtx as T, renderSlot as R, resolveDynamicComponent as C } from "vue";
2
- import E from "lodash-es/uniqueId";
3
- import { _ as G } from "./Field.vue_vue_type_script_setup_true_lang-475832fe.js";
4
- import { R as $ } from "./RadioGroup.keys-974818d6.js";
5
- import { _ as k } from "./_plugin-vue_export-helper-dad06003.js";
6
- import "./Label.vue_vue_type_script_setup_true_lang-1d29d98a.js";
1
+ import { defineComponent as $, inject as x, useCssModule as k, openBlock as l, createElementBlock as n, normalizeClass as _, unref as e, Fragment as V, renderList as B, createElementVNode as r, toDisplayString as h, provide as g, computed as v, createBlock as C, withCtx as M, renderSlot as T, resolveDynamicComponent as E } from "vue";
2
+ import G from "lodash-es/uniqueId";
3
+ import { _ as O } from "./Field.vue_vue_type_script_setup_true_lang-42ba3c5a.js";
4
+ import { R as y } from "./RadioGroup.keys-974818d6.js";
5
+ import { _ as R } from "./_plugin-vue_export-helper-dad06003.js";
6
+ import "./Label.vue_vue_type_script_setup_true_lang-4b02087f.js";
7
7
  import "./locale.js";
8
8
  import "lodash-es/get";
9
- const O = { class: "root flex" }, W = ["id", "name", "value", "checked", "disabled"], j = ["for"], q = /* @__PURE__ */ y({
9
+ const W = ["id", "name", "value", "checked", "disabled"], j = ["for"], q = /* @__PURE__ */ $({
10
10
  __name: "VariantButton",
11
11
  setup(u) {
12
- const i = x($.key);
13
- if (!i)
12
+ const o = x(y.key);
13
+ if (!o)
14
14
  throw new Error("VariantButton must be used with a RadioGroup instance.");
15
- const { name: a, disabled: p, fullWidth: m, modelValue: l, options: o, update: s } = i;
16
- return (I, c) => (r(), n("div", O, [
17
- (r(!0), n(w, null, V(e(o), (t) => (r(), n("div", {
18
- key: `${e(a)}-${t.id}`,
19
- class: v([{ "w-full": e(m) }])
15
+ const { name: t, disabled: f, fullWidth: w, modelValue: s, options: i, update: d } = o, p = k();
16
+ return (I, c) => (l(), n("div", {
17
+ class: _(["tw-flex", e(p).root])
18
+ }, [
19
+ (l(!0), n(V, null, B(e(i), (a) => (l(), n("div", {
20
+ key: `${e(t)}-${a.id}`,
21
+ class: _([{ "tw-w-full": e(w) }])
20
22
  }, [
21
- d("input", {
22
- id: `${e(a)}-${t.id}`,
23
- class: "sr-only",
23
+ r("input", {
24
+ id: `${e(t)}-${a.id}`,
25
+ class: "tw-sr-only",
24
26
  type: "radio",
25
- name: e(a),
26
- value: t.value,
27
- checked: e(l) === t.value,
28
- disabled: e(p) || t.disabled,
27
+ name: e(t),
28
+ value: a.value,
29
+ checked: e(s) === a.value,
30
+ disabled: e(f) || a.disabled,
29
31
  onInput: c[0] || (c[0] = //@ts-ignore
30
- (...f) => e(s) && e(s)(...f))
32
+ (...b) => e(d) && e(d)(...b))
31
33
  }, null, 40, W),
32
- d("label", {
33
- for: `${e(a)}-${t.id}`
34
- }, h(t.text), 9, j)
34
+ r("label", {
35
+ for: `${e(t)}-${a.id}`
36
+ }, h(a.text), 9, j)
35
37
  ], 2))), 128))
36
- ]));
38
+ ], 2));
37
39
  }
38
- });
39
- const S = /* @__PURE__ */ k(q, [["__scopeId", "data-v-e8a24f17"]]), D = { class: "root flex flex-wrap tw-my-1.5" }, L = ["id", "name", "value", "checked", "disabled"], N = ["for"], z = /* @__PURE__ */ y({
40
+ }), S = "_root_1bamn_2", D = {
41
+ root: S
42
+ }, L = {
43
+ $style: D
44
+ }, N = /* @__PURE__ */ R(q, [["__cssModules", L]]), z = ["id", "name", "value", "checked", "disabled"], A = ["for"], F = /* @__PURE__ */ $({
40
45
  __name: "VariantChip",
41
46
  setup(u) {
42
- const i = x($.key);
43
- if (!i)
47
+ const o = x(y.key);
48
+ if (!o)
44
49
  throw new Error("VariantChip must be used with a RadioGroup instance.");
45
- const { name: a, disabled: p, fullWidth: m, modelValue: l, options: o, update: s } = i;
46
- return (I, c) => (r(), n("div", D, [
47
- (r(!0), n(w, null, V(e(o), (t) => (r(), n("div", {
48
- key: `${e(a)}-${t.id}`,
49
- class: v([{ "w-full": e(m) }])
50
+ const { name: t, disabled: f, fullWidth: w, modelValue: s, options: i, update: d } = o, p = k();
51
+ return (I, c) => (l(), n("div", {
52
+ class: _(["tw-my-1.5 tw-flex tw-flex-wrap", e(p).root])
53
+ }, [
54
+ (l(!0), n(V, null, B(e(i), (a) => (l(), n("div", {
55
+ key: `${e(t)}-${a.id}`,
56
+ class: _([{ "tw-w-full": e(w) }])
50
57
  }, [
51
- d("input", {
52
- id: `${e(a)}-${t.id}`,
53
- class: "sr-only",
58
+ r("input", {
59
+ id: `${e(t)}-${a.id}`,
60
+ class: "tw-sr-only",
54
61
  type: "radio",
55
- name: e(a),
56
- value: t.value,
57
- checked: e(l) === t.value,
58
- disabled: e(p) || t.disabled,
62
+ name: e(t),
63
+ value: a.value,
64
+ checked: e(s) === a.value,
65
+ disabled: e(f) || a.disabled,
59
66
  onInput: c[0] || (c[0] = //@ts-ignore
60
- (...f) => e(s) && e(s)(...f))
61
- }, null, 40, L),
62
- d("label", {
63
- for: `${e(a)}-${t.id}`
64
- }, h(t.text), 9, N)
67
+ (...b) => e(d) && e(d)(...b))
68
+ }, null, 40, z),
69
+ r("label", {
70
+ for: `${e(t)}-${a.id}`
71
+ }, h(a.text), 9, A)
65
72
  ], 2))), 128))
66
- ]));
73
+ ], 2));
67
74
  }
68
- });
69
- const A = /* @__PURE__ */ k(z, [["__scopeId", "data-v-b4b020c6"]]), F = { class: "root flex flex-wrap" }, J = ["id", "name", "value", "checked", "disabled"], M = ["for"], P = /* @__PURE__ */ y({
75
+ }), J = "_root_kagur_2", P = {
76
+ root: J
77
+ }, U = {
78
+ $style: P
79
+ }, H = /* @__PURE__ */ R(F, [["__cssModules", U]]), K = ["id", "name", "value", "checked", "disabled"], Q = ["for"], X = /* @__PURE__ */ $({
70
80
  __name: "VariantRadio",
71
81
  setup(u) {
72
- const i = x($.key);
73
- if (!i)
82
+ const o = x(y.key);
83
+ if (!o)
74
84
  throw new Error("VariantRadio must be used with a RadioGroup instance.");
75
- const { name: a, disabled: p, fullWidth: m, modelValue: l, options: o, update: s } = i;
76
- return (I, c) => (r(), n("div", F, [
77
- (r(!0), n(w, null, V(e(o), (t) => (r(), n("div", {
78
- key: `${e(a)}-${t.id}`,
79
- class: v([{ "w-full": e(m) }])
85
+ const { name: t, disabled: f, fullWidth: w, modelValue: s, options: i, update: d } = o, p = k();
86
+ return (I, c) => (l(), n("div", {
87
+ class: _(["tw-flex tw-flex-wrap", e(p).root])
88
+ }, [
89
+ (l(!0), n(V, null, B(e(i), (a) => (l(), n("div", {
90
+ key: `${e(t)}-${a.id}`,
91
+ class: _([{ "tw-w-full": e(w) }])
80
92
  }, [
81
- d("input", {
82
- id: `${e(a)}-${t.id}`,
93
+ r("input", {
94
+ id: `${e(t)}-${a.id}`,
83
95
  type: "radio",
84
- name: e(a),
85
- value: t.value,
86
- checked: e(l) === t.value,
87
- disabled: e(p) || t.disabled,
96
+ name: e(t),
97
+ value: a.value,
98
+ checked: e(s) === a.value,
99
+ disabled: e(f) || a.disabled,
88
100
  onInput: c[0] || (c[0] = //@ts-ignore
89
- (...f) => e(s) && e(s)(...f))
90
- }, null, 40, J),
91
- d("label", {
92
- for: `${e(a)}-${t.id}`
93
- }, h(t.text), 9, M)
101
+ (...b) => e(d) && e(d)(...b))
102
+ }, null, 40, K),
103
+ r("label", {
104
+ for: `${e(t)}-${a.id}`
105
+ }, h(a.text), 9, Q)
94
106
  ], 2))), 128))
95
- ]));
107
+ ], 2));
96
108
  }
97
- });
98
- const U = /* @__PURE__ */ k(P, [["__scopeId", "data-v-1962fcc7"]]), H = { class: "root flex flex-wrap" }, K = ["for"], Q = ["id", "name", "value", "checked", "disabled"], X = { class: "color-ice-900 tw-m-0" }, Y = { class: "color-ice-700 tw-m-0" }, Z = /* @__PURE__ */ y({
109
+ }), Y = "_root_11y1n_2", Z = {
110
+ root: Y
111
+ }, ee = {
112
+ $style: Z
113
+ }, te = /* @__PURE__ */ R(X, [["__cssModules", ee]]), ae = ["for"], se = ["id", "name", "value", "checked", "disabled"], le = { class: "tw-m-0 tw-text-ice-900" }, oe = { class: "tw-m-0 tw-text-ice-700" }, re = /* @__PURE__ */ $({
99
114
  __name: "VariantTile",
100
115
  setup(u) {
101
- const i = x($.key);
102
- if (!i)
116
+ const o = x(y.key);
117
+ if (!o)
103
118
  throw new Error("VariantTile must be used with a RadioGroup instance.");
104
- const { name: a, disabled: p, fullWidth: m, modelValue: l, options: o, update: s } = i;
105
- return (I, c) => (r(), n("div", H, [
106
- (r(!0), n(w, null, V(e(o), (t) => (r(), n("label", {
107
- key: `${e(a)}-${t.id}`,
108
- class: v(["tile-container", { "w-full": e(m) }]),
109
- for: `${e(a)}-${t.id}`
119
+ const { name: t, disabled: f, fullWidth: w, modelValue: s, options: i, update: d } = o, p = k();
120
+ return (I, c) => (l(), n("div", {
121
+ class: _(["tw-flex tw-flex-wrap", e(p).root])
122
+ }, [
123
+ (l(!0), n(V, null, B(e(i), (a) => (l(), n("label", {
124
+ key: `${e(t)}-${a.id}`,
125
+ class: _([e(p)["tile-container"], { "tw-w-full": e(w) }]),
126
+ for: `${e(t)}-${a.id}`
110
127
  }, [
111
- d("div", {
112
- class: v(["tile-header border flex", {
113
- "border-blue-500 bg-blue-100 color-ice-900": e(l) === t.value,
114
- "border-ice-500 bg-ice-100 color-ice-700": e(l) !== t.value
115
- }])
128
+ r("div", {
129
+ class: _(["tw-flex tw-border", [
130
+ e(p)["tile-header"],
131
+ {
132
+ "tw-border-blue-500 tw-bg-blue-100 tw-text-ice-900": e(s) === a.value,
133
+ "tw-border-ice-500 tw-bg-ice-100 tw-text-ice-700": e(s) !== a.value
134
+ }
135
+ ]])
116
136
  }, [
117
- d("input", {
118
- id: `${e(a)}-${t.id}`,
119
- class: "sr-only",
137
+ r("input", {
138
+ id: `${e(t)}-${a.id}`,
139
+ class: "tw-sr-only",
120
140
  type: "radio",
121
- name: e(a),
122
- value: t.value,
123
- checked: e(l) === t.value,
124
- disabled: e(p) || t.disabled,
141
+ name: e(t),
142
+ value: a.value,
143
+ checked: e(s) === a.value,
144
+ disabled: e(f) || a.disabled,
125
145
  onInput: c[0] || (c[0] = //@ts-ignore
126
- (...f) => e(s) && e(s)(...f))
127
- }, null, 40, Q),
128
- d("div", null, [
129
- d("span", null, h(t.text), 1)
146
+ (...b) => e(d) && e(d)(...b))
147
+ }, null, 40, se),
148
+ r("div", null, [
149
+ r("span", null, h(a.text), 1)
130
150
  ])
131
151
  ], 2),
132
- d("div", {
133
- class: v(["tile-body border-r border-b border-l", {
134
- "border-ice-500": e(l) !== t.value,
135
- "border-blue-500": e(l) === t.value
136
- }])
152
+ r("div", {
153
+ class: _(["tw-border-x tw-border-b", [
154
+ e(p)["tile-body"],
155
+ {
156
+ "tw-border-ice-500": e(s) !== a.value,
157
+ "tw-border-blue-500": e(s) === a.value
158
+ }
159
+ ]])
137
160
  }, [
138
- d("p", X, h(t.subTitle), 1),
139
- d("p", Y, h(t.subText), 1)
161
+ r("p", le, h(a.subTitle), 1),
162
+ r("p", oe, h(a.subText), 1)
140
163
  ], 2)
141
- ], 10, K))), 128))
142
- ]));
164
+ ], 10, ae))), 128))
165
+ ], 2));
143
166
  }
144
- });
145
- const ee = /* @__PURE__ */ k(Z, [["__scopeId", "data-v-e6997760"]]);
146
- var _ = /* @__PURE__ */ ((u) => (u.Radio = "radio", u.Button = "button", u.Chip = "chip", u.Tile = "tile", u))(_ || {});
147
- const ne = /* @__PURE__ */ y({
167
+ }), ie = "_root_1sppn_2", de = {
168
+ root: ie,
169
+ "tile-container": "_tile-container_1sppn_23",
170
+ "tile-header": "_tile-header_1sppn_30",
171
+ "tile-body": "_tile-body_1sppn_31"
172
+ }, ne = {
173
+ $style: de
174
+ }, ue = /* @__PURE__ */ R(re, [["__cssModules", ne]]);
175
+ var m = /* @__PURE__ */ ((u) => (u.Radio = "radio", u.Button = "button", u.Chip = "chip", u.Tile = "tile", u))(m || {});
176
+ const he = /* @__PURE__ */ $({
148
177
  __name: "RadioGroup",
149
178
  props: {
150
179
  name: { default: void 0 },
@@ -162,59 +191,59 @@ const ne = /* @__PURE__ */ y({
162
191
  showOptionalInLabel: { type: Boolean }
163
192
  },
164
193
  emits: ["update:modelValue"],
165
- setup(u, { emit: i }) {
166
- const a = u, p = {
167
- [_.Button]: S,
168
- [_.Chip]: A,
169
- [_.Radio]: U,
170
- [_.Tile]: ee
194
+ setup(u, { emit: o }) {
195
+ const t = u, f = {
196
+ [m.Button]: N,
197
+ [m.Chip]: H,
198
+ [m.Radio]: te,
199
+ [m.Tile]: ue
171
200
  };
172
- function m(o) {
173
- i("update:modelValue", o.target.value);
201
+ function w(i) {
202
+ o("update:modelValue", i.target.value);
174
203
  }
175
- const l = E("radio-group-field-error-");
176
- return g($.key, {
177
- name: b(() => a.name),
178
- disabled: b(() => a.disabled),
179
- fullWidth: b(() => a.fullWidth),
180
- modelValue: b(() => a.modelValue),
181
- options: b(() => a.options),
182
- variant: b(() => a.variant),
183
- update: m
184
- }), (o, s) => (r(), B(G, {
185
- class: v([
204
+ const s = G("radio-group-field-error-");
205
+ return g(y.key, {
206
+ name: v(() => t.name),
207
+ disabled: v(() => t.disabled),
208
+ fullWidth: v(() => t.fullWidth),
209
+ modelValue: v(() => t.modelValue),
210
+ options: v(() => t.options),
211
+ variant: v(() => t.variant),
212
+ update: w
213
+ }), (i, d) => (l(), C(O, {
214
+ class: _([
186
215
  {
187
- "tw-flex": !a.options,
188
- "tw-flex-wrap": !a.options && (a.variant === e(_).Chip || a.variant === e(_).Radio),
189
- "tw-gap-x-1.5 tw-gap-y-3": !a.options && a.variant === e(_).Chip,
190
- "tw-gap-6": !a.options && (a.variant === e(_).Radio || a.variant === e(_).Tile)
216
+ "tw-flex": !t.options,
217
+ "tw-flex-wrap": !t.options && (t.variant === e(m).Chip || t.variant === e(m).Radio),
218
+ "tw-gap-x-1.5 tw-gap-y-3": !t.options && t.variant === e(m).Chip,
219
+ "tw-gap-6": !t.options && (t.variant === e(m).Radio || t.variant === e(m).Tile)
191
220
  }
192
221
  ]),
193
- "aria-errormessage": e(l),
194
- "aria-invalid": !!a.errorText,
222
+ "aria-errormessage": e(s),
223
+ "aria-invalid": !!t.errorText,
195
224
  role: "radiogroup",
196
225
  fieldset: "",
197
- label: a.label,
198
- "add-bottom-space": a.addBottomSpace,
199
- "error-id": e(l),
200
- "error-text": a.errorText,
201
- "hint-text": a.hintText,
202
- "show-optional-in-label": a.showOptionalInLabel,
203
- "is-required": a.isRequired,
204
- "is-read-only": a.isReadOnly
226
+ label: t.label,
227
+ "add-bottom-space": t.addBottomSpace,
228
+ "error-id": e(s),
229
+ "error-text": t.errorText,
230
+ "hint-text": t.hintText,
231
+ "show-optional-in-label": t.showOptionalInLabel,
232
+ "is-required": t.isRequired,
233
+ "is-read-only": t.isReadOnly
205
234
  }, {
206
- default: T(() => [
207
- a.options ? R(o.$slots, "default", { key: 0 }, () => [
208
- (r(), B(C(p[a.variant])))
209
- ]) : R(o.$slots, "default", { key: 1 })
235
+ default: M(() => [
236
+ t.options ? T(i.$slots, "default", { key: 0 }, () => [
237
+ (l(), C(E(f[t.variant])))
238
+ ]) : T(i.$slots, "default", { key: 1 })
210
239
  ]),
211
240
  _: 3
212
241
  }, 8, ["class", "aria-errormessage", "aria-invalid", "label", "add-bottom-space", "error-id", "error-text", "hint-text", "show-optional-in-label", "is-required", "is-read-only"]));
213
242
  }
214
243
  });
215
244
  export {
216
- $ as RADIO_GROUP_INJECTION,
217
- _ as RadioGroupVariant,
218
- ne as default
245
+ y as RADIO_GROUP_INJECTION,
246
+ m as RadioGroupVariant,
247
+ he as default
219
248
  };
220
249
  //# sourceMappingURL=RadioGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.js","sources":["../src/components/RadioGroup/components/VariantButton.vue","../src/components/RadioGroup/components/VariantChip.vue","../src/components/RadioGroup/components/VariantRadio.vue","../src/components/RadioGroup/components/VariantTile.vue","../src/components/RadioGroup/RadioGroup.types.ts","../src/components/RadioGroup/RadioGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { inject } from 'vue';\n\n import { RADIO_GROUP_INJECTION } from '../RadioGroup.keys';\n\n const radioGroupInjection = inject(RADIO_GROUP_INJECTION.key);\n\n if (!radioGroupInjection) {\n throw new Error('VariantButton must be used with a RadioGroup instance.');\n }\n\n const { name, disabled, fullWidth, modelValue, options, update } = radioGroupInjection;\n</script>\n\n<template>\n <div class=\"root flex\">\n <div v-for=\"option in options\" :key=\"`${name}-${option.id}`\" :class=\"[{ 'w-full': fullWidth }]\">\n <input\n :id=\"`${name}-${option.id}`\"\n class=\"sr-only\"\n type=\"radio\"\n :name=\"name\"\n :value=\"option.value\"\n :checked=\"modelValue === option.value\"\n :disabled=\"disabled || option.disabled\"\n @input=\"update\"\n />\n <label :for=\"`${name}-${option.id}`\">\n {{ option.text }}\n </label>\n </div>\n </div>\n</template>\n\n<style scoped>\n .root label {\n padding: 8px 30px;\n border: 1px solid var(--color-ice);\n font-weight: var(--font-weight-semibold);\n color: var(--color-ice-700);\n cursor: pointer;\n transition: all 0.2s;\n user-select: none;\n display: block;\n text-align: center;\n }\n\n .root > div:first-child label {\n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n }\n\n .root > div:last-child label {\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n\n .root > div:not(:first-child) label {\n margin-left: -1px;\n }\n\n .root > div:not(:last-child) label {\n border-right-color: transparent;\n }\n\n .root input:disabled ~ label {\n background-color: var(--color-ice-200);\n color: var(--color-ice);\n cursor: auto;\n }\n\n .root input:not(:checked, :disabled) ~ label:hover {\n border-color: var(--color-blue);\n color: var(--color-blue);\n z-index: 1;\n position: relative;\n }\n\n .root input:checked:not(:disabled) ~ label {\n border-color: var(--color-blue);\n color: var(--color-blue);\n background-color: var(--color-blue-100);\n z-index: 1;\n position: relative;\n }\n</style>\n","<script setup lang=\"ts\">\n import { inject } from 'vue';\n\n import { RADIO_GROUP_INJECTION } from '../RadioGroup.keys';\n\n const radioGroupInjection = inject(RADIO_GROUP_INJECTION.key);\n\n if (!radioGroupInjection) {\n throw new Error('VariantChip must be used with a RadioGroup instance.');\n }\n\n const { name, disabled, fullWidth, modelValue, options, update } = radioGroupInjection;\n</script>\n\n<template>\n <div class=\"root flex flex-wrap tw-my-1.5\">\n <div v-for=\"option in options\" :key=\"`${name}-${option.id}`\" :class=\"[{ 'w-full': fullWidth }]\">\n <input\n :id=\"`${name}-${option.id}`\"\n class=\"sr-only\"\n type=\"radio\"\n :name=\"name\"\n :value=\"option.value\"\n :checked=\"modelValue === option.value\"\n :disabled=\"disabled || option.disabled\"\n @input=\"update\"\n />\n <label :for=\"`${name}-${option.id}`\">\n {{ option.text }}\n </label>\n </div>\n </div>\n</template>\n\n<style scoped>\n .root {\n gap: var(--ll-space-3);\n }\n\n .root label {\n padding: var(--ll-space-1) var(--ll-space-2);\n border: 1px solid var(--color-ice);\n font-weight: var(--font-weight-normal);\n color: var(--color-ice-900);\n cursor: pointer;\n transition: all 0.2s;\n user-select: none;\n border-radius: 9999px;\n white-space: nowrap;\n }\n\n .root input:disabled ~ label {\n background-color: var(--color-ice-200);\n color: var(--color-ice);\n cursor: auto;\n }\n\n .root input:checked:not(:disabled) ~ label {\n border-color: var(--color-blue);\n color: var(--color-white);\n background-color: var(--color-blue);\n font-weight: var(--font-weight-bold);\n }\n\n .root input:not(:checked, :disabled) ~ label:hover {\n border-color: var(--color-blue);\n }\n</style>\n","<script setup lang=\"ts\">\n import { inject } from 'vue';\n\n import { RADIO_GROUP_INJECTION } from '../RadioGroup.keys';\n\n const radioGroupInjection = inject(RADIO_GROUP_INJECTION.key);\n\n if (!radioGroupInjection) {\n throw new Error('VariantRadio must be used with a RadioGroup instance.');\n }\n\n const { name, disabled, fullWidth, modelValue, options, update } = radioGroupInjection;\n</script>\n\n<template>\n <div class=\"root flex flex-wrap\">\n <div v-for=\"option in options\" :key=\"`${name}-${option.id}`\" :class=\"[{ 'w-full': fullWidth }]\">\n <input\n :id=\"`${name}-${option.id}`\"\n type=\"radio\"\n :name=\"name\"\n :value=\"option.value\"\n :checked=\"modelValue === option.value\"\n :disabled=\"disabled || option.disabled\"\n @input=\"update\"\n />\n <label :for=\"`${name}-${option.id}`\">\n {{ option.text }}\n </label>\n </div>\n </div>\n</template>\n\n<style scoped>\n .root {\n gap: var(--ll-space-3);\n }\n\n .root label {\n font-weight: var(--font-weight-medium);\n user-select: none;\n cursor: pointer;\n padding: 0 var(--ll-space-2);\n }\n\n .root input {\n appearance: none;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n border: 1px solid var(--color-ice);\n transition: all 0.2s;\n position: relative;\n cursor: pointer;\n top: 5px;\n }\n\n .root input:checked {\n background-image: radial-gradient(var(--color-blue) 50%, transparent 54%);\n }\n\n .root input:disabled {\n background: #eef2f4;\n }\n\n .root input:disabled ~ label {\n cursor: auto;\n }\n\n .root input:disabled:checked {\n background-image: radial-gradient(var(--color-ice) 50%, transparent 54%);\n }\n\n .root input:hover:not(:disabled) {\n border-color: var(--color-blue);\n }\n\n .root input:hover:not(:disabled) ~ label {\n color: var(--color-ice-900);\n }\n\n .root input:not(:disabled) ~ label:hover {\n color: var(--color-ice-900);\n }\n</style>\n","<script setup lang=\"ts\">\n import { inject } from 'vue';\n\n import { RADIO_GROUP_INJECTION } from '../RadioGroup.keys';\n\n const radioGroupInjection = inject(RADIO_GROUP_INJECTION.key);\n\n if (!radioGroupInjection) {\n throw new Error('VariantTile must be used with a RadioGroup instance.');\n }\n\n const { name, disabled, fullWidth, modelValue, options, update } = radioGroupInjection;\n</script>\n\n<template>\n <div class=\"root flex flex-wrap\">\n <label\n v-for=\"option in options\"\n :key=\"`${name}-${option.id}`\"\n class=\"tile-container\"\n :class=\"{ 'w-full': fullWidth }\"\n :for=\"`${name}-${option.id}`\"\n >\n <div\n class=\"tile-header border flex\"\n :class=\"{\n 'border-blue-500 bg-blue-100 color-ice-900': modelValue === option.value,\n 'border-ice-500 bg-ice-100 color-ice-700': modelValue !== option.value,\n }\"\n >\n <input\n :id=\"`${name}-${option.id}`\"\n class=\"sr-only\"\n type=\"radio\"\n :name=\"name\"\n :value=\"option.value\"\n :checked=\"modelValue === option.value\"\n :disabled=\"disabled || option.disabled\"\n @input=\"update\"\n />\n <div>\n <span>\n {{ option.text }}\n </span>\n </div>\n </div>\n <div\n class=\"tile-body border-r border-b border-l\"\n :class=\"{\n 'border-ice-500': modelValue !== option.value,\n 'border-blue-500': modelValue === option.value,\n }\"\n >\n <p class=\"color-ice-900 tw-m-0\">{{ option.subTitle }}</p>\n <p class=\"color-ice-700 tw-m-0\">{{ option.subText }}</p>\n </div>\n </label>\n </div>\n</template>\n\n<style scoped>\n .root {\n gap: var(--ll-space-3);\n }\n\n .root label {\n cursor: pointer;\n user-select: none;\n }\n\n .root input:disabled ~ label {\n cursor: auto;\n }\n\n .root input:hover:not(:disabled) ~ label {\n color: var(--color-ice-900);\n }\n\n .root input:not(:disabled) ~ label:hover {\n color: var(--color-ice-900);\n }\n\n .root label.tile-container {\n border-radius: var(--border-radius);\n display: flex;\n flex: 1;\n flex-direction: column;\n }\n\n .tile-header,\n .tile-body {\n transition: all 0.2s;\n }\n\n .tile-header {\n border-radius: var(--border-radius) var(--border-radius) 0 0;\n padding: var(--ll-space-2) 0;\n }\n\n .root label.tile-container:hover .tile-header {\n background-color: var(--color-blue-100) !important;\n border-color: var(--color-blue) !important;\n color: var(--color-ice-900) !important;\n transition: all 0.2s;\n }\n\n .tile-body {\n border-radius: 0 0 var(--border-radius) var(--border-radius);\n background-color: var(--color-white);\n padding: var(--ll-space-3);\n display: flex;\n flex-direction: column;\n }\n\n .root label.tile-container:hover .tile-body {\n border-color: var(--color-blue) !important;\n transition: all 0.2s;\n }\n\n .root input {\n appearance: none;\n background-color: var(--color-white);\n border-radius: 50%;\n width: 20px;\n height: 20px;\n border: 1px solid var(--color-ice);\n transition: all 0.2s;\n position: relative;\n cursor: pointer;\n top: 2px;\n }\n\n .root input ~ div {\n font-weight: var(--font-weight-medium);\n user-select: none;\n cursor: pointer;\n padding: 0 var(--ll-space-2);\n }\n\n .root input:disabled {\n background: #eef2f4;\n }\n\n .root input:checked {\n background-image: radial-gradient(var(--color-blue) 50%, transparent 54%);\n }\n\n .root label.tile-container input {\n margin-left: var(--ll-space-2);\n }\n\n .root input:disabled:checked {\n background-image: radial-gradient(var(--color-ice) 50%, transparent 54%);\n }\n\n @media screen and (width <= 640px) {\n .root {\n flex-direction: column;\n }\n }\n</style>\n","import { ComputedRef } from 'vue';\n\nexport enum RadioGroupVariant {\n Radio = 'radio',\n Button = 'button',\n Chip = 'chip',\n Tile = 'tile',\n}\n\nexport type RadioGroupVariants = `${RadioGroupVariant}`;\n\n/**\n * An individual radio `<input>` within a RadioGroup instance\n */\nexport interface RadioGroupOption {\n /**\n * Disables the RadioGroupOption if truthy\n */\n disabled?: boolean;\n\n /**\n * The unique identifier for the option\n */\n id: string;\n\n /**\n * The text to be displayed for the option\n */\n text: string;\n\n /**\n * The value of the option. Used for the modelValue of the RadioGroup.\n */\n value: string;\n\n /**\n * The subtitle for tile variant\n */\n subTitle?: string;\n\n /**\n * The subtext for tile variant\n */\n subText?: string;\n}\n\n/**\n * Properties and utilities provided to children of a RadioGroup instance\n */\nexport interface RadioGroupInjection {\n /**\n * This type should match RadioGroupProps['disabled']\n */\n disabled: ComputedRef<boolean | undefined>;\n\n /**\n * This type should match RadioGroupProps['fullWidth']\n */\n fullWidth: ComputedRef<boolean | undefined>;\n\n /**\n * This type should match RadioGroupProps['modelValue']\n */\n modelValue: ComputedRef<string | undefined>;\n\n /**\n * This type should match RadioGroupProps['name']\n */\n name: ComputedRef<string | undefined>;\n\n /**\n * This type should match RadioGroupProps['options']\n */\n options: ComputedRef<RadioGroupOption[] | undefined>;\n\n /**\n * Triggered when the user changes their selection; updates the v-model.\n */\n update: (e: Event) => void;\n\n /**\n * This type should match RadioGroupProps['variant']\n * @default 'radio'\n */\n variant: ComputedRef<RadioGroupVariants | undefined>;\n}\n","<script lang=\"ts\">\n import { RadioGroupOption, RadioGroupVariant, RadioGroupVariants } from './RadioGroup.types';\n\n export * from './RadioGroup.keys';\n export * from './RadioGroup.types';\n\n export interface RadioGroupProps {\n /**\n * Passed to the \"name\" attribute of the `<input>` elements within the RadioGroup.\n */\n name?: string;\n\n /**\n * Deprecated - Compose your radio group with the `Radio` component instead\n * @deprecated\n */\n options?: RadioGroupOption[];\n\n modelValue?: RadioGroupOption['value'];\n\n /**\n * @defaultValue 'radio'\n */\n variant?: RadioGroupVariants;\n\n /**\n * Whether the entire group should be disabled\n */\n disabled?: boolean;\n\n /**\n * Whether the group should expand to the parent's width\n */\n fullWidth?: boolean;\n\n /**\n * Adds spacing under the field that is consistent whether or not hint/error text is displayed.\n */\n addBottomSpace?: boolean;\n\n /**\n * Error text to display. Replaces `hintText` (if provided) & adds error styling.\n */\n errorText?: string;\n\n /**\n * Displays text below the input; hidden when the isReadOnly prop is truthy.\n */\n hintText?: string;\n\n /**\n * Whether it's a readonly field.\n */\n isReadOnly?: boolean;\n\n /**\n * Whether the field is required.\n */\n isRequired?: boolean;\n\n /**\n * Label to render above the input.\n */\n label?: string;\n\n /**\n * Show \"(optional)\" to the right of the label text\n */\n showOptionalInLabel?: boolean;\n }\n</script>\n\n<script setup lang=\"ts\">\n import uniqueId from 'lodash-es/uniqueId';\n import { computed, provide } from 'vue';\n\n import Field from '../Field/Field.vue';\n import VariantButton from './components/VariantButton.vue';\n import VariantChip from './components/VariantChip.vue';\n import VariantRadio from './components/VariantRadio.vue';\n import VariantTile from './components/VariantTile.vue';\n import { RADIO_GROUP_INJECTION } from './RadioGroup.keys';\n\n const variantComponentsMap = {\n [RadioGroupVariant.Button]: VariantButton,\n [RadioGroupVariant.Chip]: VariantChip,\n [RadioGroupVariant.Radio]: VariantRadio,\n [RadioGroupVariant.Tile]: VariantTile,\n };\n\n const props = withDefaults(defineProps<RadioGroupProps>(), {\n variant: 'radio',\n disabled: false,\n fullWidth: false,\n errorText: undefined,\n hintText: undefined,\n label: undefined,\n modelValue: undefined,\n name: undefined,\n options: undefined,\n });\n\n const emit =\n defineEmits<{\n /**\n * Occurs when the user selects a radio option. Also, it enables v-model usage on the component.\n */\n (e: 'update:modelValue', value: RadioGroupOption['value']): void;\n }>();\n\n function update(e: Event) {\n emit('update:modelValue', (e.target as HTMLInputElement).value);\n }\n\n const errorId = uniqueId('radio-group-field-error-');\n\n provide(RADIO_GROUP_INJECTION.key, {\n name: computed(() => props.name),\n disabled: computed(() => props.disabled),\n fullWidth: computed(() => props.fullWidth),\n modelValue: computed(() => props.modelValue),\n options: computed(() => props.options),\n variant: computed(() => props.variant),\n update,\n });\n</script>\n\n<template>\n <Field\n :class=\"[\n {\n 'tw-flex': !props.options,\n 'tw-flex-wrap':\n !props.options && (props.variant === RadioGroupVariant.Chip || props.variant === RadioGroupVariant.Radio),\n 'tw-gap-x-1.5 tw-gap-y-3': !props.options && props.variant === RadioGroupVariant.Chip,\n 'tw-gap-6':\n !props.options && (props.variant === RadioGroupVariant.Radio || props.variant === RadioGroupVariant.Tile),\n },\n ]\"\n :aria-errormessage=\"errorId\"\n :aria-invalid=\"!!props.errorText\"\n role=\"radiogroup\"\n fieldset\n :label=\"props.label\"\n :add-bottom-space=\"props.addBottomSpace\"\n :error-id=\"errorId\"\n :error-text=\"props.errorText\"\n :hint-text=\"props.hintText\"\n :show-optional-in-label=\"props.showOptionalInLabel\"\n :is-required=\"props.isRequired\"\n :is-read-only=\"props.isReadOnly\"\n >\n <slot v-if=\"props.options\">\n <component :is=\"variantComponentsMap[props.variant]\" />\n </slot>\n <slot v-else></slot>\n </Field>\n</template>\n"],"names":["radioGroupInjection","inject","RADIO_GROUP_INJECTION","name","disabled","fullWidth","modelValue","options","update","RadioGroupVariant","variantComponentsMap","VariantButton","VariantChip","VariantRadio","VariantTile","e","emit","errorId","uniqueId","provide","computed","props"],"mappings":";;;;;;;;;;;AAKQ,UAAAA,IAAsBC,EAAOC,EAAsB,GAAG;AAE5D,QAAI,CAACF;AACG,YAAA,IAAI,MAAM,wDAAwD;AAG1E,UAAM,EAAE,MAAAG,GAAM,UAAAC,GAAU,WAAAC,GAAW,YAAAC,GAAY,SAAAC,GAAS,QAAAC,EAAW,IAAAR;;;;;;;;;;;;;;;;;;;;;;;;;;;ACN7D,UAAAA,IAAsBC,EAAOC,EAAsB,GAAG;AAE5D,QAAI,CAACF;AACG,YAAA,IAAI,MAAM,sDAAsD;AAGxE,UAAM,EAAE,MAAAG,GAAM,UAAAC,GAAU,WAAAC,GAAW,YAAAC,GAAY,SAAAC,GAAS,QAAAC,EAAW,IAAAR;;;;;;;;;;;;;;;;;;;;;;;;;;;ACN7D,UAAAA,IAAsBC,EAAOC,EAAsB,GAAG;AAE5D,QAAI,CAACF;AACG,YAAA,IAAI,MAAM,uDAAuD;AAGzE,UAAM,EAAE,MAAAG,GAAM,UAAAC,GAAU,WAAAC,GAAW,YAAAC,GAAY,SAAAC,GAAS,QAAAC,EAAW,IAAAR;;;;;;;;;;;;;;;;;;;;;;;;;;ACN7D,UAAAA,IAAsBC,EAAOC,EAAsB,GAAG;AAE5D,QAAI,CAACF;AACG,YAAA,IAAI,MAAM,sDAAsD;AAGxE,UAAM,EAAE,MAAAG,GAAM,UAAAC,GAAU,WAAAC,GAAW,YAAAC,GAAY,SAAAC,GAAS,QAAAC,EAAW,IAAAR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACTzD,IAAAS,sBAAAA,OACVA,EAAA,QAAQ,SACRA,EAAA,SAAS,UACTA,EAAA,OAAO,QACPA,EAAA,OAAO,QAJGA,IAAAA,KAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;iBCiFJC,IAAuB;AAAA,MAC3B,CAACD,EAAkB,MAAM,GAAGE;AAAA,MAC5B,CAACF,EAAkB,IAAI,GAAGG;AAAA,MAC1B,CAACH,EAAkB,KAAK,GAAGI;AAAA,MAC3B,CAACJ,EAAkB,IAAI,GAAGK;AAAA,IAAA;AAuB5B,aAASN,EAAOO,GAAU;AACnB,MAAAC,EAAA,qBAAsBD,EAAE,OAA4B,KAAK;AAAA,IAChE;AAEM,UAAAE,IAAUC,EAAS,0BAA0B;AAEnD,WAAAC,EAAQjB,EAAsB,KAAK;AAAA,MACjC,MAAMkB,EAAS,MAAMC,EAAM,IAAI;AAAA,MAC/B,UAAUD,EAAS,MAAMC,EAAM,QAAQ;AAAA,MACvC,WAAWD,EAAS,MAAMC,EAAM,SAAS;AAAA,MACzC,YAAYD,EAAS,MAAMC,EAAM,UAAU;AAAA,MAC3C,SAASD,EAAS,MAAMC,EAAM,OAAO;AAAA,MACrC,SAASD,EAAS,MAAMC,EAAM,OAAO;AAAA,MACrC,QAAAb;AAAA,IAAA,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"RadioGroup.js","sources":["../src/components/RadioGroup/components/VariantButton.vue","../src/components/RadioGroup/components/VariantChip.vue","../src/components/RadioGroup/components/VariantRadio.vue","../src/components/RadioGroup/components/VariantTile.vue","../src/components/RadioGroup/RadioGroup.types.ts","../src/components/RadioGroup/RadioGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { inject, useCssModule } from 'vue';\n\n import { RADIO_GROUP_INJECTION } from '../RadioGroup.keys';\n\n const radioGroupInjection = inject(RADIO_GROUP_INJECTION.key);\n\n if (!radioGroupInjection) {\n throw new Error('VariantButton must be used with a RadioGroup instance.');\n }\n\n const { name, disabled, fullWidth, modelValue, options, update } = radioGroupInjection;\n const classes = useCssModule();\n</script>\n\n<template>\n <div class=\"tw-flex\" :class=\"classes.root\">\n <div v-for=\"option in options\" :key=\"`${name}-${option.id}`\" :class=\"[{ 'tw-w-full': fullWidth }]\">\n <input\n :id=\"`${name}-${option.id}`\"\n class=\"tw-sr-only\"\n type=\"radio\"\n :name=\"name\"\n :value=\"option.value\"\n :checked=\"modelValue === option.value\"\n :disabled=\"disabled || option.disabled\"\n @input=\"update\"\n />\n <label :for=\"`${name}-${option.id}`\">\n {{ option.text }}\n </label>\n </div>\n </div>\n</template>\n\n<style module>\n .root label {\n padding: 8px 30px;\n border: 1px solid var(--color-ice-500);\n font-weight: theme('fontWeight.semibold');\n color: var(--color-ice-700);\n cursor: pointer;\n transition: all 0.2s;\n user-select: none;\n display: block;\n text-align: center;\n }\n\n .root > div:first-child label {\n border-top-left-radius: theme('borderRadius.DEFAULT');\n border-bottom-left-radius: theme('borderRadius.DEFAULT');\n }\n\n .root > div:last-child label {\n border-top-right-radius: theme('borderRadius.DEFAULT');\n border-bottom-right-radius: theme('borderRadius.DEFAULT');\n }\n\n .root > div:not(:first-child) label {\n margin-left: -1px;\n }\n\n .root > div:not(:last-child) label {\n border-right-color: transparent;\n }\n\n .root input:disabled ~ label {\n background-color: var(--color-ice-200);\n color: var(--color-ice-500);\n cursor: auto;\n }\n\n .root input:not(:checked, :disabled) ~ label:hover {\n border-color: var(--color-blue-500);\n color: var(--color-blue-500);\n z-index: 1;\n position: relative;\n }\n\n .root input:checked:not(:disabled) ~ label {\n border-color: var(--color-blue-500);\n color: var(--color-blue-500);\n background-color: var(--color-blue-100);\n z-index: 1;\n position: relative;\n }\n</style>\n","<script setup lang=\"ts\">\n import { inject, useCssModule } from 'vue';\n\n import { RADIO_GROUP_INJECTION } from '../RadioGroup.keys';\n\n const radioGroupInjection = inject(RADIO_GROUP_INJECTION.key);\n\n if (!radioGroupInjection) {\n throw new Error('VariantChip must be used with a RadioGroup instance.');\n }\n\n const { name, disabled, fullWidth, modelValue, options, update } = radioGroupInjection;\n const classes = useCssModule();\n</script>\n\n<template>\n <div class=\"tw-my-1.5 tw-flex tw-flex-wrap\" :class=\"classes.root\">\n <div v-for=\"option in options\" :key=\"`${name}-${option.id}`\" :class=\"[{ 'tw-w-full': fullWidth }]\">\n <input\n :id=\"`${name}-${option.id}`\"\n class=\"tw-sr-only\"\n type=\"radio\"\n :name=\"name\"\n :value=\"option.value\"\n :checked=\"modelValue === option.value\"\n :disabled=\"disabled || option.disabled\"\n @input=\"update\"\n />\n <label :for=\"`${name}-${option.id}`\">\n {{ option.text }}\n </label>\n </div>\n </div>\n</template>\n\n<style module>\n .root {\n gap: theme('spacing.6');\n }\n\n .root label {\n padding: theme('spacing[1.5]') theme('spacing.3');\n border: 1px solid var(--color-ice-500);\n font-weight: theme('fontWeight.normal');\n color: var(--color-ice-900);\n cursor: pointer;\n transition: all 0.2s;\n user-select: none;\n border-radius: 9999px;\n white-space: nowrap;\n }\n\n .root input:disabled ~ label {\n background-color: var(--color-ice-200);\n color: var(--color-ice-500);\n cursor: auto;\n }\n\n .root input:checked:not(:disabled) ~ label {\n border-color: var(--color-blue-500);\n color: var(--color-white);\n background-color: var(--color-blue-500);\n font-weight: theme('fontWeight.bold');\n }\n\n .root input:not(:checked, :disabled) ~ label:hover {\n border-color: var(--color-blue-500);\n }\n</style>\n","<script setup lang=\"ts\">\n import { inject, useCssModule } from 'vue';\n\n import { RADIO_GROUP_INJECTION } from '../RadioGroup.keys';\n\n const radioGroupInjection = inject(RADIO_GROUP_INJECTION.key);\n\n if (!radioGroupInjection) {\n throw new Error('VariantRadio must be used with a RadioGroup instance.');\n }\n\n const { name, disabled, fullWidth, modelValue, options, update } = radioGroupInjection;\n const classes = useCssModule();\n</script>\n\n<template>\n <div class=\"tw-flex tw-flex-wrap\" :class=\"classes.root\">\n <div v-for=\"option in options\" :key=\"`${name}-${option.id}`\" :class=\"[{ 'tw-w-full': fullWidth }]\">\n <input\n :id=\"`${name}-${option.id}`\"\n type=\"radio\"\n :name=\"name\"\n :value=\"option.value\"\n :checked=\"modelValue === option.value\"\n :disabled=\"disabled || option.disabled\"\n @input=\"update\"\n />\n <label :for=\"`${name}-${option.id}`\">\n {{ option.text }}\n </label>\n </div>\n </div>\n</template>\n\n<style module>\n .root {\n gap: theme('spacing.6');\n }\n\n .root label {\n font-weight: theme('fontWeight.medium');\n user-select: none;\n cursor: pointer;\n padding: 0 theme('spacing.3');\n }\n\n .root input {\n appearance: none;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n border: 1px solid var(--color-ice-500);\n transition: all 0.2s;\n position: relative;\n cursor: pointer;\n top: 5px;\n }\n\n .root input:checked {\n background-image: radial-gradient(var(--color-blue-500) 50%, transparent 54%);\n }\n\n .root input:disabled {\n background: #eef2f4;\n }\n\n .root input:disabled ~ label {\n cursor: auto;\n }\n\n .root input:disabled:checked {\n background-image: radial-gradient(var(--color-ice-500) 50%, transparent 54%);\n }\n\n .root input:hover:not(:disabled) {\n border-color: var(--color-blue-500);\n }\n\n .root input:hover:not(:disabled) ~ label {\n color: var(--color-ice-900);\n }\n\n .root input:not(:disabled) ~ label:hover {\n color: var(--color-ice-900);\n }\n</style>\n","<script setup lang=\"ts\">\n import { inject, useCssModule } from 'vue';\n\n import { RADIO_GROUP_INJECTION } from '../RadioGroup.keys';\n\n const radioGroupInjection = inject(RADIO_GROUP_INJECTION.key);\n\n if (!radioGroupInjection) {\n throw new Error('VariantTile must be used with a RadioGroup instance.');\n }\n\n const { name, disabled, fullWidth, modelValue, options, update } = radioGroupInjection;\n const classes = useCssModule();\n</script>\n\n<template>\n <div class=\"tw-flex tw-flex-wrap\" :class=\"classes.root\">\n <label\n v-for=\"option in options\"\n :key=\"`${name}-${option.id}`\"\n :class=\"[classes['tile-container'], { 'tw-w-full': fullWidth }]\"\n :for=\"`${name}-${option.id}`\"\n >\n <div\n class=\"tw-flex tw-border\"\n :class=\"[\n classes['tile-header'],\n {\n 'tw-border-blue-500 tw-bg-blue-100 tw-text-ice-900': modelValue === option.value,\n 'tw-border-ice-500 tw-bg-ice-100 tw-text-ice-700': modelValue !== option.value,\n },\n ]\"\n >\n <input\n :id=\"`${name}-${option.id}`\"\n class=\"tw-sr-only\"\n type=\"radio\"\n :name=\"name\"\n :value=\"option.value\"\n :checked=\"modelValue === option.value\"\n :disabled=\"disabled || option.disabled\"\n @input=\"update\"\n />\n <div>\n <span>\n {{ option.text }}\n </span>\n </div>\n </div>\n <div\n class=\"tw-border-x tw-border-b\"\n :class=\"[\n classes['tile-body'],\n {\n 'tw-border-ice-500': modelValue !== option.value,\n 'tw-border-blue-500': modelValue === option.value,\n },\n ]\"\n >\n <p class=\"tw-m-0 tw-text-ice-900\">{{ option.subTitle }}</p>\n <p class=\"tw-m-0 tw-text-ice-700\">{{ option.subText }}</p>\n </div>\n </label>\n </div>\n</template>\n\n<style module>\n .root {\n gap: theme('spacing.6');\n }\n\n .root label {\n cursor: pointer;\n user-select: none;\n }\n\n .root input:disabled ~ label {\n cursor: auto;\n }\n\n .root input:hover:not(:disabled) ~ label {\n color: var(--color-ice-900);\n }\n\n .root input:not(:disabled) ~ label:hover {\n color: var(--color-ice-900);\n }\n\n .root label.tile-container {\n border-radius: theme('borderRadius.DEFAULT');\n display: flex;\n flex: 1;\n flex-direction: column;\n }\n\n .tile-header,\n .tile-body {\n transition: all 0.2s;\n }\n\n .tile-header {\n border-radius: theme('borderRadius.DEFAULT') theme('borderRadius.DEFAULT') 0 0;\n padding: theme('spacing.3') 0;\n }\n\n .root label.tile-container:hover .tile-header {\n background-color: var(--color-blue-100) !important;\n border-color: var(--color-blue-500) !important;\n color: var(--color-ice-900) !important;\n transition: all 0.2s;\n }\n\n .tile-body {\n border-radius: 0 0 theme('borderRadius.DEFAULT') theme('borderRadius.DEFAULT');\n background-color: var(--color-white);\n padding: theme('spacing.6');\n display: flex;\n flex-direction: column;\n }\n\n .root label.tile-container:hover .tile-body {\n border-color: var(--color-blue-500) !important;\n transition: all 0.2s;\n }\n\n .root input {\n appearance: none;\n background-color: var(--color-white);\n border-radius: 50%;\n width: 20px;\n height: 20px;\n border: 1px solid var(--color-ice-500);\n transition: all 0.2s;\n position: relative;\n cursor: pointer;\n top: 2px;\n }\n\n .root input ~ div {\n font-weight: theme('fontWeight.medium');\n user-select: none;\n cursor: pointer;\n padding: 0 theme('spacing.3');\n }\n\n .root input:disabled {\n background: #eef2f4;\n }\n\n .root input:checked {\n background-image: radial-gradient(var(--color-blue-500) 50%, transparent 54%);\n }\n\n .root label.tile-container input {\n margin-left: theme('spacing.3');\n }\n\n .root input:disabled:checked {\n background-image: radial-gradient(var(--color-ice-500) 50%, transparent 54%);\n }\n\n @media screen and (width <= 640px) {\n .root {\n flex-direction: column;\n }\n }\n</style>\n","import { ComputedRef } from 'vue';\n\nexport enum RadioGroupVariant {\n Radio = 'radio',\n Button = 'button',\n Chip = 'chip',\n Tile = 'tile',\n}\n\nexport type RadioGroupVariants = `${RadioGroupVariant}`;\n\n/**\n * An individual radio `<input>` within a RadioGroup instance\n */\nexport interface RadioGroupOption {\n /**\n * Disables the RadioGroupOption if truthy\n */\n disabled?: boolean;\n\n /**\n * The unique identifier for the option\n */\n id: string;\n\n /**\n * The text to be displayed for the option\n */\n text: string;\n\n /**\n * The value of the option. Used for the modelValue of the RadioGroup.\n */\n value: string;\n\n /**\n * The subtitle for tile variant\n */\n subTitle?: string;\n\n /**\n * The subtext for tile variant\n */\n subText?: string;\n}\n\n/**\n * Properties and utilities provided to children of a RadioGroup instance\n */\nexport interface RadioGroupInjection {\n /**\n * This type should match RadioGroupProps['disabled']\n */\n disabled: ComputedRef<boolean | undefined>;\n\n /**\n * This type should match RadioGroupProps['fullWidth']\n */\n fullWidth: ComputedRef<boolean | undefined>;\n\n /**\n * This type should match RadioGroupProps['modelValue']\n */\n modelValue: ComputedRef<string | undefined>;\n\n /**\n * This type should match RadioGroupProps['name']\n */\n name: ComputedRef<string | undefined>;\n\n /**\n * This type should match RadioGroupProps['options']\n */\n options: ComputedRef<RadioGroupOption[] | undefined>;\n\n /**\n * Triggered when the user changes their selection; updates the v-model.\n */\n update: (e: Event) => void;\n\n /**\n * This type should match RadioGroupProps['variant']\n * @default 'radio'\n */\n variant: ComputedRef<RadioGroupVariants | undefined>;\n}\n","<script lang=\"ts\">\n import { RadioGroupOption, RadioGroupVariant, RadioGroupVariants } from './RadioGroup.types';\n\n export * from './RadioGroup.keys';\n export * from './RadioGroup.types';\n\n export interface RadioGroupProps {\n /**\n * Passed to the \"name\" attribute of the `<input>` elements within the RadioGroup.\n */\n name?: string;\n\n /**\n * Deprecated - Compose your radio group with the `Radio` component instead\n * @deprecated\n */\n options?: RadioGroupOption[];\n\n modelValue?: RadioGroupOption['value'];\n\n /**\n * @defaultValue 'radio'\n */\n variant?: RadioGroupVariants;\n\n /**\n * Whether the entire group should be disabled\n */\n disabled?: boolean;\n\n /**\n * Whether the group should expand to the parent's width\n */\n fullWidth?: boolean;\n\n /**\n * Adds spacing under the field that is consistent whether or not hint/error text is displayed.\n */\n addBottomSpace?: boolean;\n\n /**\n * Error text to display. Replaces `hintText` (if provided) & adds error styling.\n */\n errorText?: string;\n\n /**\n * Displays text below the input; hidden when the isReadOnly prop is truthy.\n */\n hintText?: string;\n\n /**\n * Whether it's a readonly field.\n */\n isReadOnly?: boolean;\n\n /**\n * Whether the field is required.\n */\n isRequired?: boolean;\n\n /**\n * Label to render above the input.\n */\n label?: string;\n\n /**\n * Show \"(optional)\" to the right of the label text\n */\n showOptionalInLabel?: boolean;\n }\n</script>\n\n<script setup lang=\"ts\">\n import uniqueId from 'lodash-es/uniqueId';\n import { computed, provide } from 'vue';\n\n import Field from '../Field/Field.vue';\n import VariantButton from './components/VariantButton.vue';\n import VariantChip from './components/VariantChip.vue';\n import VariantRadio from './components/VariantRadio.vue';\n import VariantTile from './components/VariantTile.vue';\n import { RADIO_GROUP_INJECTION } from './RadioGroup.keys';\n\n const variantComponentsMap = {\n [RadioGroupVariant.Button]: VariantButton,\n [RadioGroupVariant.Chip]: VariantChip,\n [RadioGroupVariant.Radio]: VariantRadio,\n [RadioGroupVariant.Tile]: VariantTile,\n };\n\n const props = withDefaults(defineProps<RadioGroupProps>(), {\n variant: 'radio',\n disabled: false,\n fullWidth: false,\n errorText: undefined,\n hintText: undefined,\n label: undefined,\n modelValue: undefined,\n name: undefined,\n options: undefined,\n });\n\n const emit =\n defineEmits<{\n /**\n * Occurs when the user selects a radio option. Also, it enables v-model usage on the component.\n */\n (e: 'update:modelValue', value: RadioGroupOption['value']): void;\n }>();\n\n function update(e: Event) {\n emit('update:modelValue', (e.target as HTMLInputElement).value);\n }\n\n const errorId = uniqueId('radio-group-field-error-');\n\n provide(RADIO_GROUP_INJECTION.key, {\n name: computed(() => props.name),\n disabled: computed(() => props.disabled),\n fullWidth: computed(() => props.fullWidth),\n modelValue: computed(() => props.modelValue),\n options: computed(() => props.options),\n variant: computed(() => props.variant),\n update,\n });\n</script>\n\n<template>\n <Field\n :class=\"[\n {\n 'tw-flex': !props.options,\n 'tw-flex-wrap':\n !props.options && (props.variant === RadioGroupVariant.Chip || props.variant === RadioGroupVariant.Radio),\n 'tw-gap-x-1.5 tw-gap-y-3': !props.options && props.variant === RadioGroupVariant.Chip,\n 'tw-gap-6':\n !props.options && (props.variant === RadioGroupVariant.Radio || props.variant === RadioGroupVariant.Tile),\n },\n ]\"\n :aria-errormessage=\"errorId\"\n :aria-invalid=\"!!props.errorText\"\n role=\"radiogroup\"\n fieldset\n :label=\"props.label\"\n :add-bottom-space=\"props.addBottomSpace\"\n :error-id=\"errorId\"\n :error-text=\"props.errorText\"\n :hint-text=\"props.hintText\"\n :show-optional-in-label=\"props.showOptionalInLabel\"\n :is-required=\"props.isRequired\"\n :is-read-only=\"props.isReadOnly\"\n >\n <slot v-if=\"props.options\">\n <component :is=\"variantComponentsMap[props.variant]\" />\n </slot>\n <slot v-else></slot>\n </Field>\n</template>\n"],"names":["radioGroupInjection","inject","RADIO_GROUP_INJECTION","name","disabled","fullWidth","modelValue","options","update","classes","useCssModule","RadioGroupVariant","variantComponentsMap","VariantButton","VariantChip","VariantRadio","VariantTile","e","emit","errorId","uniqueId","provide","computed","props"],"mappings":";;;;;;;;;;;AAKQ,UAAAA,IAAsBC,EAAOC,EAAsB,GAAG;AAE5D,QAAI,CAACF;AACG,YAAA,IAAI,MAAM,wDAAwD;AAG1E,UAAM,EAAE,MAAAG,GAAM,UAAAC,GAAU,WAAAC,GAAW,YAAAC,GAAY,SAAAC,GAAS,QAAAC,EAAW,IAAAR,GAC7DS,IAAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACPV,UAAAV,IAAsBC,EAAOC,EAAsB,GAAG;AAE5D,QAAI,CAACF;AACG,YAAA,IAAI,MAAM,sDAAsD;AAGxE,UAAM,EAAE,MAAAG,GAAM,UAAAC,GAAU,WAAAC,GAAW,YAAAC,GAAY,SAAAC,GAAS,QAAAC,EAAW,IAAAR,GAC7DS,IAAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACPV,UAAAV,IAAsBC,EAAOC,EAAsB,GAAG;AAE5D,QAAI,CAACF;AACG,YAAA,IAAI,MAAM,uDAAuD;AAGzE,UAAM,EAAE,MAAAG,GAAM,UAAAC,GAAU,WAAAC,GAAW,YAAAC,GAAY,SAAAC,GAAS,QAAAC,EAAW,IAAAR,GAC7DS,IAAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACPV,UAAAV,IAAsBC,EAAOC,EAAsB,GAAG;AAE5D,QAAI,CAACF;AACG,YAAA,IAAI,MAAM,sDAAsD;AAGxE,UAAM,EAAE,MAAAG,GAAM,UAAAC,GAAU,WAAAC,GAAW,YAAAC,GAAY,SAAAC,GAAS,QAAAC,EAAW,IAAAR,GAC7DS,IAAUC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACVN,IAAAC,sBAAAA,OACVA,EAAA,QAAQ,SACRA,EAAA,SAAS,UACTA,EAAA,OAAO,QACPA,EAAA,OAAO,QAJGA,IAAAA,KAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;iBCiFJC,IAAuB;AAAA,MAC3B,CAACD,EAAkB,MAAM,GAAGE;AAAA,MAC5B,CAACF,EAAkB,IAAI,GAAGG;AAAA,MAC1B,CAACH,EAAkB,KAAK,GAAGI;AAAA,MAC3B,CAACJ,EAAkB,IAAI,GAAGK;AAAA,IAAA;AAuB5B,aAASR,EAAOS,GAAU;AACnB,MAAAC,EAAA,qBAAsBD,EAAE,OAA4B,KAAK;AAAA,IAChE;AAEM,UAAAE,IAAUC,EAAS,0BAA0B;AAEnD,WAAAC,EAAQnB,EAAsB,KAAK;AAAA,MACjC,MAAMoB,EAAS,MAAMC,EAAM,IAAI;AAAA,MAC/B,UAAUD,EAAS,MAAMC,EAAM,QAAQ;AAAA,MACvC,WAAWD,EAAS,MAAMC,EAAM,SAAS;AAAA,MACzC,YAAYD,EAAS,MAAMC,EAAM,UAAU;AAAA,MAC3C,SAASD,EAAS,MAAMC,EAAM,OAAO;AAAA,MACrC,SAASD,EAAS,MAAMC,EAAM,OAAO;AAAA,MACrC,QAAAf;AAAA,IAAA,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}