@ironsource/shared-ui 2.0.0-rc.6 → 2.0.0-rc.7

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 (182) hide show
  1. package/ButtonV4.vue_vue_type_style_index_0_scoped_3fd2281b_lang.css +1 -0
  2. package/Checkbox.vue_vue_type_style_index_0_scoped_58dedb90_lang.css +1 -0
  3. package/CheckboxV4.vue_vue_type_style_index_0_scoped_ee3e6d82_lang.css +1 -0
  4. package/DataGrid.vue_vue_type_style_index_0_scoped_7a670808_lang.css +1 -0
  5. package/Dropdown.vue_vue_type_style_index_0_scoped_e8324d12_lang.css +1 -0
  6. package/FilterDropdown.vue_vue_type_style_index_0_scoped_1320b13b_lang.css +1 -0
  7. package/FilterSearchInput.vue_vue_type_style_index_0_scoped_51006ea0_lang.css +1 -0
  8. package/FiltersPanel.vue_vue_type_style_index_0_scoped_9d2f3413_lang.css +1 -0
  9. package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +1 -0
  10. package/IncludeExclude.vue_vue_type_style_index_0_scoped_2a01a791_lang.css +1 -0
  11. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_85bff8f4_lang.css +1 -0
  12. package/IncludeExcludeOption.vue_vue_type_style_index_0_scoped_91bc7787_lang.css +1 -0
  13. package/Label.vue_vue_type_style_index_0_scoped_48e00c04_lang.css +1 -0
  14. package/Option.vue_vue_type_style_index_0_scoped_3d6ce2fc_lang.css +1 -0
  15. package/OptionV4.vue_vue_type_style_index_0_scoped_92add735_lang.css +1 -0
  16. package/RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css +1 -0
  17. package/RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css +1 -0
  18. package/RadioGroup.vue_vue_type_style_index_0_scoped_3071ef24_lang.css +1 -0
  19. package/RadioGroupV4.vue_vue_type_style_index_0_scoped_f8e8cbab_lang.css +1 -0
  20. package/SearchInput.vue_vue_type_style_index_0_scoped_b256f8ef_lang.css +1 -0
  21. package/Snackbar.vue_vue_type_style_index_0_scoped_cec4f8e5_lang.css +1 -0
  22. package/SnackbarV4.vue_vue_type_style_index_0_scoped_48311746_lang.css +1 -0
  23. package/components/autocompleteDropdown/AutocompleteDropdown.vue2.js +3 -3
  24. package/components/button/common/ButtonSuper.vue.d.ts +6 -6
  25. package/components/button/v3/Button.vue.d.ts +6 -6
  26. package/components/button/v4/ButtonV4.vue.d.ts +11 -6
  27. package/components/button/v4/ButtonV4.vue.js +3 -3
  28. package/components/button/v4/ButtonV4.vue2.js +13 -10
  29. package/components/button/v4/index.d.ts +34 -15
  30. package/components/checkbox/common/Checkbox.common.d.ts +11 -0
  31. package/components/checkbox/common/Checkbox.common.js +32 -0
  32. package/components/checkbox/v3/Checkbox.vue.js +7 -0
  33. package/components/checkbox/v3/Checkbox.vue2.js +99 -0
  34. package/components/checkbox/{icons → v3/icons}/checked.vue.js +1 -1
  35. package/components/checkbox/{icons → v3/icons}/indeterminate.vue.js +1 -1
  36. package/components/checkbox/{icons → v3/icons}/unchecked.vue.js +1 -1
  37. package/components/checkbox/v4/CheckboxV4.vue.d.ts +53 -0
  38. package/components/checkbox/v4/CheckboxV4.vue.js +7 -0
  39. package/components/checkbox/v4/CheckboxV4.vue2.js +107 -0
  40. package/components/checkbox/v4/icons/CheckedDisabledState.vue.js +38 -0
  41. package/components/checkbox/v4/icons/CheckedState.vue.d.ts +2 -0
  42. package/components/checkbox/v4/icons/CheckedState.vue.js +38 -0
  43. package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.d.ts +2 -0
  44. package/components/checkbox/v4/icons/IndeterminateDisabledState.vue.js +40 -0
  45. package/components/checkbox/v4/icons/IndeterminateState.vue.d.ts +2 -0
  46. package/components/checkbox/v4/icons/IndeterminateState.vue.js +40 -0
  47. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.d.ts +2 -0
  48. package/components/checkbox/v4/icons/UncheckedDisabledState.vue.js +31 -0
  49. package/components/checkbox/v4/icons/UncheckedState.vue.d.ts +2 -0
  50. package/components/checkbox/v4/icons/UncheckedState.vue.js +31 -0
  51. package/components/checkbox/v4/index.d.ts +152 -0
  52. package/components/checkbox/v4/index.js +6 -0
  53. package/components/dropdown/v3/Dropdown.vue.js +2 -2
  54. package/components/dropdown/v3/Dropdown.vue2.js +3 -3
  55. package/components/dropdown/v3/Label.vue.js +7 -0
  56. package/components/dropdown/{common → v3}/Label.vue2.js +2 -2
  57. package/components/dropdown/v3/Option.vue.js +7 -0
  58. package/components/dropdown/{common → v3}/Option.vue2.js +3 -3
  59. package/components/dropdown/{common → v3}/SearchInput.vue.js +2 -2
  60. package/components/dropdown/{common → v3}/SearchInput.vue2.js +2 -2
  61. package/components/dropdown/v3/index.d.ts +3 -3
  62. package/components/dropdown/v3/index.js +3 -3
  63. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  64. package/components/dropdown/v4/OptionV4.vue2.js +2 -2
  65. package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
  66. package/components/emptyState/v3/index.d.ts +7 -7
  67. package/components/filterDropdown/FilterDropdown.vue.d.ts +1 -1
  68. package/components/filterDropdown/FilterDropdown.vue.js +2 -2
  69. package/components/filterDropdown/FilterDropdown.vue2.js +4 -4
  70. package/components/filterDropdown/index.d.ts +2 -2
  71. package/components/filtersPanel/v3/FilterSearchInput.vue.d.ts +2 -0
  72. package/components/filtersPanel/v3/FilterSearchInput.vue.js +7 -0
  73. package/components/filtersPanel/{FilterSearchInput.vue2.js → v3/FilterSearchInput.vue2.js} +6 -6
  74. package/components/filtersPanel/v3/FiltersPanel.vue.js +7 -0
  75. package/components/filtersPanel/{FiltersPanel.vue2.js → v3/FiltersPanel.vue2.js} +1 -1
  76. package/components/filtersPanel/v4/FiltersPanelV4.vue.d.ts +44 -0
  77. package/components/filtersPanel/v4/FiltersPanelV4.vue.js +7 -0
  78. package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +23 -0
  79. package/components/filtersPanel/v4/index.d.ts +101 -0
  80. package/components/filtersPanel/v4/index.js +6 -0
  81. package/components/filtersPanel/v4/storyConsts.d.ts +20 -0
  82. package/components/icon/icons/FiltersSearch.vue.d.ts +2 -0
  83. package/components/icon/v3/icons/index.d.ts +3 -0
  84. package/components/icon/v3/icons/index.js +3 -0
  85. package/components/icon/v3/index.d.ts +3 -0
  86. package/components/includeExclude/IncludeExclude.vue.js +3 -3
  87. package/components/includeExclude/IncludeExclude.vue2.js +2 -2
  88. package/components/includeExclude/IncludeExcludeDragDrop.vue.js +3 -3
  89. package/components/includeExclude/IncludeExcludeDragDrop.vue2.js +2 -2
  90. package/components/includeExclude/IncludeExcludeOption.vue.js +5 -5
  91. package/components/includeExclude/IncludeExcludeOption.vue2.js +2 -2
  92. package/components/radioButton/common/radioGroup.common.d.ts +3 -0
  93. package/components/radioButton/common/radioGroup.common.js +26 -0
  94. package/components/radioButton/v3/RadioButton.vue.js +7 -0
  95. package/components/radioButton/v3/RadioButton.vue2.js +79 -0
  96. package/components/radioButton/v3/RadioGroup.vue.js +7 -0
  97. package/components/radioButton/v3/RadioGroup.vue2.js +29 -0
  98. package/components/radioButton/v4/RadioButtonV4.vue.d.ts +59 -0
  99. package/components/radioButton/v4/RadioButtonV4.vue.js +7 -0
  100. package/components/radioButton/v4/RadioButtonV4.vue2.js +67 -0
  101. package/components/radioButton/v4/RadioGroupV4.vue.d.ts +61 -0
  102. package/components/radioButton/v4/RadioGroupV4.vue.js +7 -0
  103. package/components/radioButton/v4/RadioGroupV4.vue2.js +29 -0
  104. package/components/radioButton/v4/index.d.ts +334 -0
  105. package/components/radioButton/v4/index.js +8 -0
  106. package/components/snackbar/common/notify.d.ts +3 -0
  107. package/components/snackbar/common/notify.js +82 -0
  108. package/components/snackbar/common/snackbar.common.d.ts +11 -0
  109. package/components/snackbar/common/snackbar.common.js +51 -0
  110. package/components/snackbar/v3/Snackbar.vue.js +7 -0
  111. package/components/snackbar/v3/Snackbar.vue2.js +129 -0
  112. package/components/snackbar/v3/index.d.ts +3 -0
  113. package/components/snackbar/v3/index.js +10 -0
  114. package/components/snackbar/v4/SnackbarV4.vue.d.ts +186 -0
  115. package/components/snackbar/v4/SnackbarV4.vue.js +7 -0
  116. package/components/snackbar/v4/SnackbarV4.vue2.js +137 -0
  117. package/components/snackbar/v4/index.d.ts +4 -0
  118. package/components/snackbar/v4/index.js +11 -0
  119. package/components/table/v4/DataGrid.vue.js +2 -2
  120. package/components/table/v4/DataGrid.vue2.js +28 -29
  121. package/index.d.ts +1255 -34
  122. package/index.js +145 -152
  123. package/package.json +40 -15
  124. package/testids/index.d.ts +8 -0
  125. package/testids/index.js +14 -13
  126. package/ButtonV4.vue_vue_type_style_index_0_scoped_43578f8c_lang.css +0 -1
  127. package/Checkbox.vue_vue_type_style_index_0_scoped_518c02d0_lang.css +0 -1
  128. package/DataGrid.vue_vue_type_style_index_0_scoped_f080f37f_lang.css +0 -1
  129. package/Dropdown.vue_vue_type_style_index_0_scoped_0114904e_lang.css +0 -1
  130. package/FilterDropdown.vue_vue_type_style_index_0_scoped_b25c5605_lang.css +0 -1
  131. package/FilterSearchInput.vue_vue_type_style_index_0_scoped_9198bf4e_lang.css +0 -1
  132. package/FiltersPanel.vue_vue_type_style_index_0_scoped_2996b384_lang.css +0 -1
  133. package/IncludeExclude.vue_vue_type_style_index_0_scoped_2c9debd6_lang.css +0 -1
  134. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_ff32d111_lang.css +0 -1
  135. package/IncludeExcludeOption.vue_vue_type_style_index_0_scoped_4a87e4fd_lang.css +0 -1
  136. package/Label.vue_vue_type_style_index_0_scoped_5faaafce_lang.css +0 -1
  137. package/Option.vue_vue_type_style_index_0_scoped_2432f13f_lang.css +0 -1
  138. package/OptionV4.vue_vue_type_style_index_0_scoped_b879fe79_lang.css +0 -1
  139. package/RadioButton.vue_vue_type_style_index_0_scoped_f5d3359c_lang.css +0 -1
  140. package/RadioGroup.vue_vue_type_style_index_0_scoped_50bc6963_lang.css +0 -1
  141. package/SearchInput.vue_vue_type_style_index_0_scoped_0b1ea2f6_lang.css +0 -1
  142. package/Snackbar.vue_vue_type_style_index_0_scoped_d14230ca_lang.css +0 -1
  143. package/components/checkbox/Checkbox.vue.js +0 -7
  144. package/components/checkbox/Checkbox.vue2.js +0 -97
  145. package/components/dropdown/common/Label.vue.js +0 -7
  146. package/components/dropdown/common/Option.vue.js +0 -7
  147. package/components/filtersPanel/FilterSearchInput.vue.js +0 -7
  148. package/components/filtersPanel/FiltersPanel.vue.js +0 -7
  149. package/components/radioButton/RadioButton.vue.js +0 -7
  150. package/components/radioButton/RadioButton.vue2.js +0 -82
  151. package/components/radioButton/RadioGroup.vue.js +0 -7
  152. package/components/radioButton/RadioGroup.vue2.js +0 -44
  153. package/components/snackbar/Snackbar.vue.js +0 -7
  154. package/components/snackbar/Snackbar.vue2.js +0 -150
  155. package/components/snackbar/index.d.ts +0 -3
  156. package/components/snackbar/index.js +0 -6
  157. package/components/snackbar/notify.js +0 -84
  158. /package/components/checkbox/{Checkbox.vue.d.ts → v3/Checkbox.vue.d.ts} +0 -0
  159. /package/components/checkbox/{icons → v3/icons}/checked.vue.d.ts +0 -0
  160. /package/components/checkbox/{icons → v3/icons}/indeterminate.vue.d.ts +0 -0
  161. /package/components/checkbox/{icons → v3/icons}/unchecked.vue.d.ts +0 -0
  162. /package/components/checkbox/{index.d.ts → v3/index.d.ts} +0 -0
  163. /package/components/checkbox/{index.js → v3/index.js} +0 -0
  164. /package/components/{filtersPanel/FilterSearchInput.vue.d.ts → checkbox/v4/icons/CheckedDisabledState.vue.d.ts} +0 -0
  165. /package/components/dropdown/{common → v3}/Label.vue.d.ts +0 -0
  166. /package/components/dropdown/{common → v3}/Option.vue.d.ts +0 -0
  167. /package/components/dropdown/{common → v3}/SearchInput.vue.d.ts +0 -0
  168. /package/components/filtersPanel/{Filter.d.ts → v3/Filter.d.ts} +0 -0
  169. /package/components/filtersPanel/{index.d.ts → v3/index.d.ts} +0 -0
  170. /package/components/filtersPanel/{index.js → v3/index.js} +0 -0
  171. /package/components/filtersPanel/{useHiddenFilter.d.ts → v3/useHiddenFilter.d.ts} +0 -0
  172. /package/components/filtersPanel/{useHiddenFilter.js → v3/useHiddenFilter.js} +0 -0
  173. /package/components/radioButton/{useRadio.d.ts → common/useRadio.d.ts} +0 -0
  174. /package/components/radioButton/{useRadio.js → common/useRadio.js} +0 -0
  175. /package/components/radioButton/{RadioButton.vue.d.ts → v3/RadioButton.vue.d.ts} +0 -0
  176. /package/components/radioButton/{RadioGroup.vue.d.ts → v3/RadioGroup.vue.d.ts} +0 -0
  177. /package/components/radioButton/{index.d.ts → v3/index.d.ts} +0 -0
  178. /package/components/radioButton/{index.js → v3/index.js} +0 -0
  179. /package/components/snackbar/{notify.d.ts → common/notify_old.d.ts} +0 -0
  180. /package/components/snackbar/{snackbar.types.d.ts → common/snackbar.types.d.ts} +0 -0
  181. /package/components/snackbar/{snackbar.types.js → common/snackbar.types.js} +0 -0
  182. /package/components/snackbar/{Snackbar.vue.d.ts → v3/Snackbar.vue.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  import o from "./IncludeExcludeDragDrop.vue2.js";
2
2
  /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_ff32d111_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ff32d111"]]);
3
+ // import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_85bff8f4_lang.css"; //*');
4
+ const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-85bff8f4"]]);
5
5
  export {
6
- p as default
6
+ r as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_ff32d111_lang.css"; import { defineComponent as Re, computed as p, ref as c, watch as H, provide as Ae, openBlock as i, createBlock as O, unref as l, withCtx as h, createElementVNode as s, renderSlot as v, normalizeClass as N, createTextVNode as C, toDisplayString as le, createCommentVNode as f, createVNode as g, Transition as Pe, createElementBlock as u, mergeProps as w, Fragment as U, renderList as W, toRaw as S, isRef as $e, nextTick as Ee } from "vue";
1
+ import "../../IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_85bff8f4_lang.css"; import { defineComponent as Re, computed as p, ref as c, watch as H, provide as Ae, openBlock as i, createBlock as O, unref as l, withCtx as h, createElementVNode as s, renderSlot as v, normalizeClass as N, createTextVNode as C, toDisplayString as le, createCommentVNode as f, createVNode as g, Transition as Pe, createElementBlock as u, mergeProps as w, Fragment as U, renderList as W, toRaw as S, isRef as $e, nextTick as Ee } from "vue";
2
2
  import "../popover/Popover.vue2.js";
3
3
  import G from "../button/v3/Button.vue.js";
4
4
  import "../button/v3/IconButton.vue.js";
@@ -6,7 +6,7 @@ import "../button/v3/ScrollButton.vue.js";
6
6
  import Fe from "../search/v3/Search.vue.js";
7
7
  import "../typography/Heading.vue.js";
8
8
  import te from "../typography/Text.vue.js";
9
- import ze from "../checkbox/Checkbox.vue.js";
9
+ import ze from "../checkbox/v3/Checkbox.vue.js";
10
10
  import b from "../skeleton/Skeleton.vue.js";
11
11
  import He from "../emptyState/v3/EmptyState.vue.js";
12
12
  import { useToggle as Ne } from "../../composables/useToggle.js";
@@ -1,7 +1,7 @@
1
- import e from "./IncludeExcludeOption.vue2.js";
2
- /* empty css */import o from "../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../IncludeExcludeOption.vue_vue_type_style_index_0_scoped_4a87e4fd_lang.css"; //*');
4
- const d = /* @__PURE__ */ o(e, [["__scopeId", "data-v-4a87e4fd"]]);
1
+ import o from "./IncludeExcludeOption.vue2.js";
2
+ /* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../IncludeExcludeOption.vue_vue_type_style_index_0_scoped_91bc7787_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-91bc7787"]]);
5
5
  export {
6
- d as default
6
+ p as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import "../../IncludeExcludeOption.vue_vue_type_style_index_0_scoped_4a87e4fd_lang.css"; import { defineComponent as E, ref as N, computed as v, openBlock as o, createElementBlock as a, normalizeClass as k, unref as e, createElementVNode as m, createBlock as p, createCommentVNode as n, renderSlot as x, createVNode as c, withCtx as d, createTextVNode as h, toDisplayString as y, withModifiers as T } from "vue";
1
+ import "../../IncludeExcludeOption.vue_vue_type_style_index_0_scoped_91bc7787_lang.css"; import { defineComponent as E, ref as N, computed as v, openBlock as o, createElementBlock as a, normalizeClass as k, unref as e, createElementVNode as m, createBlock as p, createCommentVNode as n, renderSlot as x, createVNode as c, withCtx as d, createTextVNode as h, toDisplayString as y, withModifiers as T } from "vue";
2
2
  import "../typography/Heading.vue.js";
3
3
  import C from "../typography/Text.vue.js";
4
4
  import { useIncludeExcludeContext as z } from "./IncludeExcludeContext.js";
5
5
  import { useId as S } from "../../composables/useId.js";
6
- import V from "../checkbox/Checkbox.vue.js";
6
+ import V from "../checkbox/v3/Checkbox.vue.js";
7
7
  import "../tooltip/v3/Tooltip.vue.js";
8
8
  import D from "../icon/v3/Icon.vue.js";
9
9
  import { NOOP as M } from "@vue/shared";
@@ -0,0 +1,3 @@
1
+ export declare const radioGroupCommon: (props: any, emit: any) => {
2
+ radioGroupRef: import("vue").Ref<HTMLDivElement>;
3
+ };
@@ -0,0 +1,26 @@
1
+ import { ref as m, onMounted as u, computed as s, provide as f, reactive as p, toRefs as l, nextTick as v } from "vue";
2
+ import { useId as y } from "../../../composables/useId.js";
3
+ import { radioGroupKey as h } from "./useRadio.js";
4
+ const b = (e, r) => {
5
+ const a = y(), t = m(), c = (o) => {
6
+ r("update:modelValue", o), v(() => r("change", o));
7
+ };
8
+ u(() => {
9
+ const o = t.value?.querySelectorAll("[type=radio]"), n = o[0];
10
+ !Array.from(o).some((i) => i.checked) && n && (n.tabIndex = 0);
11
+ });
12
+ const d = s(() => e.name || a.value);
13
+ return f(
14
+ h,
15
+ p({
16
+ ...l(e),
17
+ changeEvent: c,
18
+ name: d
19
+ })
20
+ ), {
21
+ radioGroupRef: t
22
+ };
23
+ };
24
+ export {
25
+ b as radioGroupCommon
26
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./RadioButton.vue2.js";
2
+ /* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css"; //*');
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3c6b715c"]]);
5
+ export {
6
+ s as default
7
+ };
@@ -0,0 +1,79 @@
1
+ import "../../../RadioButton.vue_vue_type_style_index_0_scoped_3c6b715c_lang.css"; import { defineComponent as E, openBlock as n, createElementBlock as I, normalizeClass as b, unref as e, createElementVNode as r, withDirectives as y, mergeProps as i, isRef as C, vModelRadio as N, renderSlot as g, createVNode as w, withCtx as u, createTextVNode as m, toDisplayString as f, createBlock as v, createCommentVNode as R } from "vue";
2
+ import c from "../../typography/Text.vue.js";
3
+ import { useRadio as z } from "../common/useRadio.js";
4
+ import { RadioTestIdModifiers as o } from "../../../testids/index.js";
5
+ import { useTestIdAttrs as A } from "../../../utils/testIds.js";
6
+ const D = { class: "wrapper" }, L = ["value", "name", "disabled"], O = /* @__PURE__ */ E({
7
+ __name: "RadioButton",
8
+ props: {
9
+ label: { default: "" },
10
+ name: { default: "" },
11
+ helperText: { default: "" },
12
+ errorText: { default: "" },
13
+ modelValue: { default: void 0 },
14
+ testId: { default: "" }
15
+ },
16
+ emits: ["update:modelValue", "change"],
17
+ setup(t, { emit: V }) {
18
+ const p = t, { radioRef: h, focus: x, disabled: T, modelValue: a, radioGroup: k } = z(
19
+ p,
20
+ V
21
+ ), d = A(p.testId, o);
22
+ return (B, l) => (n(), I("label", {
23
+ class: b(["radio-button", { "radio-button--disabled": e(T) }])
24
+ }, [
25
+ r("span", D, [
26
+ y(r("input", i({
27
+ ref_key: "radioRef",
28
+ ref: h,
29
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => C(a) ? a.value = s : null),
30
+ value: t.label,
31
+ name: t.name || e(k)?.name,
32
+ type: "radio",
33
+ disabled: e(T)
34
+ }, e(d)[e(o).FIELD], {
35
+ onFocus: l[1] || (l[1] = (s) => x.value = !0),
36
+ onBlur: l[2] || (l[2] = (s) => x.value = !1)
37
+ }), null, 16, L), [
38
+ [N, e(a)]
39
+ ]),
40
+ r("span", {
41
+ class: b([{ "circle--selected": e(a) === t.label }, "circle"])
42
+ }, null, 2)
43
+ ]),
44
+ r("span", i({ class: "label" }, e(d)[e(o).LABEL]), [
45
+ g(B.$slots, "default", {}, () => [
46
+ w(c, { "is-truncated": "" }, {
47
+ default: u(() => [
48
+ m(f(t.label), 1)
49
+ ]),
50
+ _: 1
51
+ })
52
+ ], !0),
53
+ !t.errorText && t.helperText ? (n(), v(c, {
54
+ key: 0,
55
+ class: "helper-text--text helper-text",
56
+ size: "caption"
57
+ }, {
58
+ default: u(() => [
59
+ m(f(t.helperText), 1)
60
+ ]),
61
+ _: 1
62
+ })) : R("", !0),
63
+ t.errorText ? (n(), v(c, i({
64
+ key: 1,
65
+ size: "caption",
66
+ class: "helper-text--error helper-text"
67
+ }, e(d)[e(o).ERROR_TEXT]), {
68
+ default: u(() => [
69
+ m(f(t.errorText), 1)
70
+ ]),
71
+ _: 1
72
+ }, 16)) : R("", !0)
73
+ ], 16)
74
+ ], 2));
75
+ }
76
+ });
77
+ export {
78
+ O as default
79
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./RadioGroup.vue2.js";
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../RadioGroup.vue_vue_type_style_index_0_scoped_3071ef24_lang.css"; //*');
4
+ const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-3071ef24"]]);
5
+ export {
6
+ t as default
7
+ };
@@ -0,0 +1,29 @@
1
+ import "../../../RadioGroup.vue_vue_type_style_index_0_scoped_3071ef24_lang.css"; import { defineComponent as u, openBlock as n, createElementBlock as p, mergeProps as f, unref as r, renderSlot as i } from "vue";
2
+ import { RadioTestIdModifiers as t } from "../../../testids/index.js";
3
+ import { radioGroupCommon as m } from "../common/radioGroup.common.js";
4
+ import { useTestIdAttrs as c } from "../../../utils/testIds.js";
5
+ const _ = /* @__PURE__ */ u({
6
+ __name: "RadioGroup",
7
+ props: {
8
+ name: { default: "" },
9
+ disabled: { type: Boolean, default: !1 },
10
+ modelValue: null,
11
+ row: { type: Boolean, default: !1 },
12
+ testId: { default: "" }
13
+ },
14
+ emits: ["update:modelValue", "change"],
15
+ setup(e, { emit: a }) {
16
+ const o = e, d = c(o.testId, t), { radioGroupRef: s } = m(o, a);
17
+ return (l, g) => (n(), p("div", f({
18
+ ref_key: "radioGroupRef",
19
+ ref: s,
20
+ class: [{ "radio-group--row": e.row }, "radio-group"],
21
+ role: "radiogroup"
22
+ }, r(d)[r(t).GROUP]), [
23
+ i(l.$slots, "default", {}, void 0, !0)
24
+ ], 16));
25
+ }
26
+ });
27
+ export {
28
+ _ as default
29
+ };
@@ -0,0 +1,59 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ value: unknown;
3
+ label: string;
4
+ name?: string;
5
+ modelValue?: string;
6
+ testId?: string;
7
+ }>, {
8
+ label: string;
9
+ name: string;
10
+ modelValue: any;
11
+ testId: string;
12
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ "update:modelValue": (...args: any[]) => void;
14
+ change: (...args: any[]) => void;
15
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
16
+ value: unknown;
17
+ label: string;
18
+ name?: string;
19
+ modelValue?: string;
20
+ testId?: string;
21
+ }>, {
22
+ label: string;
23
+ name: string;
24
+ modelValue: any;
25
+ testId: string;
26
+ }>>> & {
27
+ onChange?: (...args: any[]) => any;
28
+ "onUpdate:modelValue"?: (...args: any[]) => any;
29
+ }, {
30
+ name: string;
31
+ label: string;
32
+ testId: string;
33
+ modelValue: string;
34
+ }>, {
35
+ default?(_: {}): any;
36
+ }>;
37
+ export default _default;
38
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
39
+ type __VLS_TypePropsToRuntimeProps<T> = {
40
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
41
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
42
+ } : {
43
+ type: import('vue').PropType<T[K]>;
44
+ required: true;
45
+ };
46
+ };
47
+ type __VLS_WithDefaults<P, D> = {
48
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
49
+ default: D[K];
50
+ }> : P[K];
51
+ };
52
+ type __VLS_Prettify<T> = {
53
+ [K in keyof T]: T[K];
54
+ } & {};
55
+ type __VLS_WithTemplateSlots<T, S> = T & {
56
+ new (): {
57
+ $slots: S;
58
+ };
59
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./RadioButtonV4.vue2.js";
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css"; //*');
4
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-14be812e"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,67 @@
1
+ import "../../../RadioButtonV4.vue_vue_type_style_index_0_scoped_14be812e_lang.css"; import { defineComponent as h, ref as y, inject as g, computed as n, openBlock as I, createElementBlock as R, normalizeClass as p, unref as e, createElementVNode as r, withDirectives as E, mergeProps as v, isRef as k, vModelRadio as B, renderSlot as T, createVNode as w, withCtx as x, createTextVNode as A, toDisplayString as C } from "vue";
2
+ import D from "../../typography/v4/Typography.vue.js";
3
+ import { radioGroupKey as G } from "../common/useRadio.js";
4
+ import { RadioTestIdModifiers as u } from "../../../testids/index.js";
5
+ import { useTestIdAttrs as L } from "../../../utils/testIds.js";
6
+ const N = { class: "wrapper" }, M = ["value", "name", "disabled"], P = /* @__PURE__ */ h({
7
+ __name: "RadioButtonV4",
8
+ props: {
9
+ value: null,
10
+ label: { default: "" },
11
+ name: { default: "" },
12
+ modelValue: { default: void 0 },
13
+ testId: { default: "" }
14
+ },
15
+ emits: ["update:modelValue", "change"],
16
+ setup(t, { emit: b }) {
17
+ const l = t, c = L(l.testId, u), i = y(), a = g(G, void 0), m = n(() => !!a), o = n(() => a?.disabled), d = n({
18
+ get() {
19
+ return m.value ? a?.modelValue : l.modelValue;
20
+ },
21
+ set(s) {
22
+ m.value ? a?.changeEvent(s) : b("update:modelValue", s), i.value && (i.value.checked = l.modelValue === l.value);
23
+ }
24
+ });
25
+ return (s, f) => (I(), R("label", {
26
+ class: p(["radio-button", { "radio-button--disabled": e(o) }])
27
+ }, [
28
+ r("span", N, [
29
+ E(r("input", v({
30
+ ref_key: "radioRef",
31
+ ref: i,
32
+ "onUpdate:modelValue": f[0] || (f[0] = (V) => k(d) ? d.value = V : null),
33
+ value: t.value,
34
+ name: t.name || e(a)?.name,
35
+ type: "radio",
36
+ disabled: e(o)
37
+ }, e(c)[e(u).FIELD]), null, 16, M), [
38
+ [B, e(d)]
39
+ ]),
40
+ r("span", {
41
+ class: p(["circle", {
42
+ "circle--selected": e(d) === t.value,
43
+ "circle--disabled": e(o)
44
+ }])
45
+ }, null, 2)
46
+ ]),
47
+ r("span", v({
48
+ class: ["label", { "label--disabled": e(o) }]
49
+ }, e(c)[e(u).LABEL]), [
50
+ T(s.$slots, "default", {}, () => [
51
+ w(e(D), {
52
+ variant: "body2",
53
+ "is-truncated": ""
54
+ }, {
55
+ default: x(() => [
56
+ A(C(t.label), 1)
57
+ ]),
58
+ _: 1
59
+ })
60
+ ], !0)
61
+ ], 16)
62
+ ], 2));
63
+ }
64
+ });
65
+ export {
66
+ P as default
67
+ };
@@ -0,0 +1,61 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ name?: string;
3
+ disabled?: boolean;
4
+ modelValue: string;
5
+ row?: boolean;
6
+ testId?: string;
7
+ }>, {
8
+ disabled: boolean;
9
+ label: string;
10
+ name: string;
11
+ row: boolean;
12
+ testId: string;
13
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ "update:modelValue": (...args: any[]) => void;
15
+ change: (...args: any[]) => void;
16
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
+ name?: string;
18
+ disabled?: boolean;
19
+ modelValue: string;
20
+ row?: boolean;
21
+ testId?: string;
22
+ }>, {
23
+ disabled: boolean;
24
+ label: string;
25
+ name: string;
26
+ row: boolean;
27
+ testId: string;
28
+ }>>> & {
29
+ onChange?: (...args: any[]) => any;
30
+ "onUpdate:modelValue"?: (...args: any[]) => any;
31
+ }, {
32
+ name: string;
33
+ testId: string;
34
+ disabled: boolean;
35
+ row: boolean;
36
+ }>, {
37
+ default?(_: {}): any;
38
+ }>;
39
+ export default _default;
40
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
41
+ type __VLS_TypePropsToRuntimeProps<T> = {
42
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
43
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
44
+ } : {
45
+ type: import('vue').PropType<T[K]>;
46
+ required: true;
47
+ };
48
+ };
49
+ type __VLS_WithDefaults<P, D> = {
50
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
51
+ default: D[K];
52
+ }> : P[K];
53
+ };
54
+ type __VLS_Prettify<T> = {
55
+ [K in keyof T]: T[K];
56
+ } & {};
57
+ type __VLS_WithTemplateSlots<T, S> = T & {
58
+ new (): {
59
+ $slots: S;
60
+ };
61
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./RadioGroupV4.vue2.js";
2
+ /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../RadioGroupV4.vue_vue_type_style_index_0_scoped_f8e8cbab_lang.css"; //*');
4
+ const t = /* @__PURE__ */ e(o, [["__scopeId", "data-v-f8e8cbab"]]);
5
+ export {
6
+ t as default
7
+ };
@@ -0,0 +1,29 @@
1
+ import "../../../RadioGroupV4.vue_vue_type_style_index_0_scoped_f8e8cbab_lang.css"; import { defineComponent as u, openBlock as n, createElementBlock as p, mergeProps as f, unref as r, renderSlot as i } from "vue";
2
+ import { RadioTestIdModifiers as t } from "../../../testids/index.js";
3
+ import { radioGroupCommon as m } from "../common/radioGroup.common.js";
4
+ import { useTestIdAttrs as c } from "../../../utils/testIds.js";
5
+ const _ = /* @__PURE__ */ u({
6
+ __name: "RadioGroupV4",
7
+ props: {
8
+ name: { default: "" },
9
+ disabled: { type: Boolean, default: !1 },
10
+ modelValue: null,
11
+ row: { type: Boolean, default: !1 },
12
+ testId: { default: "" }
13
+ },
14
+ emits: ["update:modelValue", "change"],
15
+ setup(e, { emit: a }) {
16
+ const o = e, d = c(o.testId, t), { radioGroupRef: s } = m(o, a);
17
+ return (l, g) => (n(), p("div", f({
18
+ ref_key: "radioGroupRef",
19
+ ref: s,
20
+ class: [{ "radio-group--row": e.row }, "radio-group"],
21
+ role: "radiogroup"
22
+ }, r(d)[r(t).GROUP]), [
23
+ i(l.$slots, "default", {}, void 0, !0)
24
+ ], 16));
25
+ }
26
+ });
27
+ export {
28
+ _ as default
29
+ };