@ironsource/shared-ui 1.4.2-test.9 → 1.4.2

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 (157) hide show
  1. package/AddFilterButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  2. package/AppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  3. package/AutocompleteDropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  4. package/AutocompleteInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  5. package/Banner.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  6. package/Button.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  7. package/CalendarMonth.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  8. package/Checkbox.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  9. package/Chip.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  10. package/DatePicker.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  11. package/DatePickerMonth.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  12. package/DateRange.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  13. package/Dialog.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  14. package/DollarInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  15. package/Dropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  16. package/Editable.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  17. package/FilterDropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  18. package/FiltersPanel.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  19. package/Heading.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  20. package/IncludeExclude.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  21. package/Input.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  22. package/Menu.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  23. package/PasswordInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  24. package/PercentageInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  25. package/README.md +1 -1
  26. package/RadioButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  27. package/RadioGroup.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  28. package/Search.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  29. package/Switch.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  30. package/Table.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  31. package/Tabs.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  32. package/Text.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  33. package/TextArea.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  34. package/TextWithTitleContent.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  35. package/Toggle.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  36. package/components/appTrigger/AppTrigger.vue.d.ts +5 -0
  37. package/components/appTrigger/AppTrigger.vue.js +29 -16
  38. package/components/appTrigger/index.d.ts +11 -0
  39. package/components/autocompleteDropdown/AutocompleteDropdown.vue.d.ts +5 -0
  40. package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +7 -4
  41. package/components/autocompleteDropdown/AutocompleteInput.vue.d.ts +5 -0
  42. package/components/autocompleteDropdown/AutocompleteInput.vue.js +12 -6
  43. package/components/autocompleteDropdown/index.d.ts +11 -0
  44. package/components/banner/Banner.vue.d.ts +9 -0
  45. package/components/banner/Banner.vue.js +20 -9
  46. package/components/banner/index.d.ts +9 -0
  47. package/components/button/Button.vue.d.ts +5 -0
  48. package/components/button/Button.vue.js +6 -4
  49. package/components/button/index.d.ts +17 -6
  50. package/components/checkbox/Checkbox.vue.d.ts +5 -0
  51. package/components/checkbox/Checkbox.vue.js +20 -14
  52. package/components/checkbox/index.d.ts +11 -0
  53. package/components/chip/Chip.vue.d.ts +5 -0
  54. package/components/chip/Chip.vue.js +12 -7
  55. package/components/chip/index.d.ts +11 -0
  56. package/components/datePicker/DatePicker.vue.d.ts +5 -0
  57. package/components/datePicker/DatePicker.vue.js +11 -6
  58. package/components/datePicker/DatePickerMonth.vue.d.ts +5 -0
  59. package/components/datePicker/DatePickerMonth.vue.js +5 -3
  60. package/components/datePicker/index.d.ts +11 -0
  61. package/components/dateRange/CalendarMonth.vue.d.ts +5 -0
  62. package/components/dateRange/CalendarMonth.vue.js +39 -21
  63. package/components/dateRange/DateRange.vue.d.ts +5 -0
  64. package/components/dateRange/DateRange.vue.js +49 -36
  65. package/components/dateRange/DateRangePicker.vue.d.ts +5 -0
  66. package/components/dateRange/index.d.ts +11 -0
  67. package/components/dialog/Dialog.vue.d.ts +5 -0
  68. package/components/dialog/Dialog.vue.js +38 -23
  69. package/components/dialog/index.d.ts +11 -0
  70. package/components/dropdown/Dropdown.vue.d.ts +5 -0
  71. package/components/dropdown/Dropdown.vue.js +62 -35
  72. package/components/dropdown/index.d.ts +11 -0
  73. package/components/emptyState/index.d.ts +3 -3
  74. package/components/filterDropdown/AddFilterButton.vue.d.ts +2 -0
  75. package/components/filterDropdown/AddFilterButton.vue.js +6 -4
  76. package/components/filterDropdown/FilterDropdown.vue.d.ts +5 -0
  77. package/components/filterDropdown/FilterDropdown.vue.js +8 -5
  78. package/components/filterDropdown/index.d.ts +17 -0
  79. package/components/filtersPanel/FiltersPanel.vue.d.ts +5 -0
  80. package/components/filtersPanel/FiltersPanel.vue.js +7 -4
  81. package/components/icon/Icon.vue.js +0 -1
  82. package/components/icon/icons/index.d.ts +0 -3
  83. package/components/icon/icons/index.vue.js +0 -3
  84. package/components/icon/index.d.ts +0 -3
  85. package/components/includeExclude/IncludeExclude.vue.d.ts +5 -13
  86. package/components/includeExclude/IncludeExclude.vue.js +86 -134
  87. package/components/includeExclude/IncludeExcludeAppHeader.vue.js +3 -4
  88. package/components/includeExclude/IncludeExcludeChipFilter.vue.js +2 -2
  89. package/components/includeExclude/includeExcludeMocks.d.ts +0 -12
  90. package/components/includeExclude/index.d.ts +23 -27
  91. package/components/includeExclude/index.vue.js +0 -3
  92. package/components/input/DollarInput.vue.d.ts +1 -1
  93. package/components/input/DollarInput.vue.js +1 -1
  94. package/components/input/Input.vue.d.ts +10 -0
  95. package/components/input/Input.vue.js +61 -35
  96. package/components/input/PasswordInput.vue.d.ts +1 -1
  97. package/components/input/PasswordInput.vue.js +1 -1
  98. package/components/input/PercentageInput.vue.d.ts +1 -1
  99. package/components/input/PercentageInput.vue.js +1 -1
  100. package/components/input/index.d.ts +34 -0
  101. package/components/menu/Menu.vue.d.ts +5 -0
  102. package/components/menu/Menu.vue.js +6 -4
  103. package/components/menu/index.d.ts +11 -0
  104. package/components/popover/Popover.vue.d.ts +5 -0
  105. package/components/popover/Popover.vue.js +5 -3
  106. package/components/popover/index.d.ts +11 -0
  107. package/components/radioButton/RadioButton.vue.d.ts +5 -0
  108. package/components/radioButton/RadioButton.vue.js +15 -8
  109. package/components/radioButton/RadioGroup.vue.d.ts +5 -0
  110. package/components/radioButton/RadioGroup.vue.js +9 -5
  111. package/components/radioButton/index.d.ts +22 -0
  112. package/components/search/Search.vue.d.ts +5 -0
  113. package/components/search/Search.vue.js +13 -7
  114. package/components/search/index.d.ts +11 -0
  115. package/components/switch/Switch.vue.d.ts +5 -0
  116. package/components/switch/Switch.vue.js +17 -9
  117. package/components/switch/index.d.ts +11 -0
  118. package/components/table/Table.types.d.ts +0 -1
  119. package/components/table/Table.vue.d.ts +5 -10
  120. package/components/table/Table.vue.js +56 -52
  121. package/components/table/index.d.ts +11 -22
  122. package/components/table-cells/Editable.vue.js +1 -1
  123. package/components/tabs/Tabs.vue.d.ts +5 -0
  124. package/components/tabs/Tabs.vue.js +20 -15
  125. package/components/tabs/index.d.ts +11 -0
  126. package/components/textArea/TextArea.vue.d.ts +5 -0
  127. package/components/textArea/TextArea.vue.js +23 -16
  128. package/components/textArea/index.d.ts +11 -0
  129. package/components/toggle/Toggle.vue.d.ts +10 -0
  130. package/components/toggle/Toggle.vue.js +37 -20
  131. package/components/toggle/index.d.ts +22 -0
  132. package/components/tooltip/TextWithTitleContent.vue.d.ts +16 -3
  133. package/components/tooltip/TextWithTitleContent.vue.js +11 -6
  134. package/components/tooltip/Tooltip.vue.d.ts +5 -0
  135. package/components/tooltip/Tooltip.vue.js +8 -4
  136. package/components/tooltip/index.d.ts +11 -0
  137. package/components/typography/Heading.vue.d.ts +5 -0
  138. package/components/typography/Heading.vue.js +7 -4
  139. package/components/typography/Text.vue.d.ts +5 -0
  140. package/components/typography/Text.vue.js +8 -4
  141. package/components/typography/index.d.ts +22 -0
  142. package/consts/regex.d.ts +1 -0
  143. package/consts/regex.vue.js +3 -0
  144. package/consts/style.d.ts +1 -0
  145. package/consts/style.vue.js +3 -0
  146. package/index.vue.js +1 -2
  147. package/package.json +4 -5
  148. package/testids/index.d.ts +146 -0
  149. package/testids/index.vue.js +170 -0
  150. package/utils/style.d.ts +1 -0
  151. package/utils/style.vue.js +5 -0
  152. package/IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_true_lang.css +0 -1
  153. package/components/icon/icons/TableEdit.vue.d.ts +0 -2
  154. package/components/icon/icons/TableEdit.vue.js +0 -24
  155. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +0 -43
  156. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.js +0 -122
  157. package/components/table/Pagination.vue.d.ts +0 -43
@@ -7,6 +7,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
7
7
  placement?: Placement;
8
8
  distance?: number;
9
9
  skidding?: number;
10
+ testId?: string;
10
11
  }>, {
11
12
  trigger: string;
12
13
  autoHide: boolean;
@@ -14,6 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
14
15
  placement: string;
15
16
  distance: number;
16
17
  skidding: number;
18
+ testId: string;
17
19
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
20
  open: boolean;
19
21
  autoHide?: boolean;
@@ -22,6 +24,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
22
24
  placement?: Placement;
23
25
  distance?: number;
24
26
  skidding?: number;
27
+ testId?: string;
25
28
  }>, {
26
29
  trigger: string;
27
30
  autoHide: boolean;
@@ -29,7 +32,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
29
32
  placement: string;
30
33
  distance: number;
31
34
  skidding: number;
35
+ testId: string;
32
36
  }>>>, {
37
+ testId: string;
33
38
  placement: Placement;
34
39
  disabled: boolean;
35
40
  distance: number;
@@ -11,7 +11,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  disabled: { type: Boolean, default: false },
12
12
  placement: { default: "bottom-start" },
13
13
  distance: { default: 0 },
14
- skidding: { default: 0 }
14
+ skidding: { default: 0 },
15
+ testId: { default: "" }
15
16
  },
16
17
  setup(__props) {
17
18
  return (_ctx, _cache) => {
@@ -22,7 +23,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
23
  triggers: __props.trigger === "managed" ? [] : [__props.trigger],
23
24
  "auto-hide": __props.autoHide,
24
25
  distance: __props.distance,
25
- skidding: __props.skidding
26
+ skidding: __props.skidding,
27
+ "data-testid": __props.testId
26
28
  }, {
27
29
  popper: withCtx(({ hide }) => [
28
30
  renderSlot(_ctx.$slots, "content", { hide })
@@ -31,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
31
33
  renderSlot(_ctx.$slots, "trigger")
32
34
  ]),
33
35
  _: 3
34
- }, 8, ["placement", "shown", "triggers", "auto-hide", "distance", "skidding"]);
36
+ }, 8, ["placement", "shown", "triggers", "auto-hide", "distance", "skidding", "data-testid"]);
35
37
  };
36
38
  }
37
39
  });
@@ -1,4 +1,9 @@
1
1
  declare const PopoverTypes: () => import("vue").DefineComponent<{
2
+ testId: {
3
+ type: import("vue").PropType<string>;
4
+ } & {
5
+ default: string;
6
+ };
2
7
  placement: {
3
8
  type: import("vue").PropType<import("floating-vue").Placement>;
4
9
  } & {
@@ -34,6 +39,11 @@ declare const PopoverTypes: () => import("vue").DefineComponent<{
34
39
  default: string;
35
40
  };
36
41
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
42
+ testId: {
43
+ type: import("vue").PropType<string>;
44
+ } & {
45
+ default: string;
46
+ };
37
47
  placement: {
38
48
  type: import("vue").PropType<import("floating-vue").Placement>;
39
49
  } & {
@@ -69,6 +79,7 @@ declare const PopoverTypes: () => import("vue").DefineComponent<{
69
79
  default: string;
70
80
  };
71
81
  }>>, {
82
+ testId: string;
72
83
  placement: import("floating-vue").Placement;
73
84
  disabled: boolean;
74
85
  distance: number;
@@ -4,30 +4,35 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
4
4
  helperText?: string;
5
5
  errorText?: string;
6
6
  modelValue?: string;
7
+ testId?: string;
7
8
  }>, {
8
9
  label: string;
9
10
  name: string;
10
11
  helperText: string;
11
12
  errorText: string;
12
13
  modelValue: any;
14
+ testId: string;
13
15
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
14
16
  label: string;
15
17
  name?: string;
16
18
  helperText?: string;
17
19
  errorText?: string;
18
20
  modelValue?: string;
21
+ testId?: string;
19
22
  }>, {
20
23
  label: string;
21
24
  name: string;
22
25
  helperText: string;
23
26
  errorText: string;
24
27
  modelValue: any;
28
+ testId: string;
25
29
  }>>> & {
26
30
  onChange?: (...args: any[]) => any;
27
31
  "onUpdate:modelValue"?: (...args: any[]) => any;
28
32
  }, {
29
33
  name: string;
30
34
  label: string;
35
+ testId: string;
31
36
  modelValue: string;
32
37
  helperText: string;
33
38
  errorText: string;
@@ -1,12 +1,13 @@
1
1
  import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, withDirectives, isRef, vModelRadio, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString, createBlock, createCommentVNode } from 'vue';
2
2
  import Text from '../typography/Text.vue.js';
3
3
  import { useRadio } from './useRadio.vue.js';
4
+ import { RadioTestIdModifiers } from '../../testids/index.vue.js';
4
5
  /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
5
6
 
6
7
  import "../../RadioButton.vue_vue_type_style_index_0_scoped_true_lang.css";
7
8
  const _hoisted_1 = { class: "wrapper" };
8
- const _hoisted_2 = ["value", "name", "disabled"];
9
- const _hoisted_3 = { class: "label" };
9
+ const _hoisted_2 = ["value", "name", "disabled", "data-testid"];
10
+ const _hoisted_3 = ["data-testid"];
10
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
12
  __name: "RadioButton",
12
13
  props: {
@@ -14,7 +15,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
15
  name: { default: "" },
15
16
  helperText: { default: "" },
16
17
  errorText: { default: "" },
17
- modelValue: { default: void 0 }
18
+ modelValue: { default: void 0 },
19
+ testId: { default: "" }
18
20
  },
19
21
  emits: ["update:modelValue", "change"],
20
22
  setup(__props, { emit }) {
@@ -36,6 +38,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
38
  name: __props.name || unref(radioGroup)?.name,
37
39
  type: "radio",
38
40
  disabled: unref(disabled),
41
+ "data-testid": `${__props.testId}-${unref(RadioTestIdModifiers).FIELD}`,
39
42
  onFocus: _cache[1] || (_cache[1] = ($event) => focus.value = true),
40
43
  onBlur: _cache[2] || (_cache[2] = ($event) => focus.value = false)
41
44
  }, null, 40, _hoisted_2), [
@@ -45,7 +48,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
48
  class: normalizeClass([{ "circle--selected": unref(modelValue) === __props.label }, "circle"])
46
49
  }, null, 2)
47
50
  ]),
48
- createElementVNode("span", _hoisted_3, [
51
+ createElementVNode("span", {
52
+ class: "label",
53
+ "data-testid": `${__props.testId}-${unref(RadioTestIdModifiers).LABEL}`
54
+ }, [
49
55
  renderSlot(_ctx.$slots, "default", {}, () => [
50
56
  createVNode(Text, { "is-truncated": "" }, {
51
57
  default: withCtx(() => [
@@ -67,18 +73,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
67
73
  __props.errorText ? (openBlock(), createBlock(Text, {
68
74
  key: 1,
69
75
  size: "caption",
70
- class: "helper-text--error helper-text"
76
+ class: "helper-text--error helper-text",
77
+ "data-testid": `${__props.testId}-${unref(RadioTestIdModifiers).ERROR_TEXT}`
71
78
  }, {
72
79
  default: withCtx(() => [
73
80
  createTextVNode(toDisplayString(__props.errorText), 1)
74
81
  ]),
75
82
  _: 1
76
- })) : createCommentVNode("", true)
77
- ])
83
+ }, 8, ["data-testid"])) : createCommentVNode("", true)
84
+ ], 8, _hoisted_3)
78
85
  ], 2);
79
86
  };
80
87
  }
81
88
  });
82
- var RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2f4e9350"]]);
89
+ var RadioButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5b237369"]]);
83
90
 
84
91
  export { RadioButton as default };
@@ -3,26 +3,31 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
3
3
  disabled?: boolean;
4
4
  modelValue: string;
5
5
  row?: boolean;
6
+ testId?: string;
6
7
  }>, {
7
8
  disabled: boolean;
8
9
  label: string;
9
10
  name: string;
10
11
  row: boolean;
12
+ testId: string;
11
13
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
14
  name?: string;
13
15
  disabled?: boolean;
14
16
  modelValue: string;
15
17
  row?: boolean;
18
+ testId?: string;
16
19
  }>, {
17
20
  disabled: boolean;
18
21
  label: string;
19
22
  name: string;
20
23
  row: boolean;
24
+ testId: string;
21
25
  }>>> & {
22
26
  onChange?: (...args: any[]) => any;
23
27
  "onUpdate:modelValue"?: (...args: any[]) => any;
24
28
  }, {
25
29
  name: string;
30
+ testId: string;
26
31
  disabled: boolean;
27
32
  row: boolean;
28
33
  }>;
@@ -1,16 +1,19 @@
1
- import { defineComponent, ref, onMounted, computed, provide, reactive, toRefs, openBlock, createElementBlock, normalizeClass, renderSlot, nextTick } from 'vue';
1
+ import { defineComponent, ref, onMounted, computed, provide, reactive, toRefs, openBlock, createElementBlock, normalizeClass, unref, renderSlot, nextTick } from 'vue';
2
2
  import { useId } from '../../composables/useId.vue.js';
3
3
  import { radioGroupKey } from './useRadio.vue.js';
4
+ import { RadioTestIdModifiers } from '../../testids/index.vue.js';
4
5
  /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
5
6
 
6
7
  import "../../RadioGroup.vue_vue_type_style_index_0_scoped_true_lang.css";
8
+ const _hoisted_1 = ["data-testid"];
7
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
10
  __name: "RadioGroup",
9
11
  props: {
10
12
  name: { default: "" },
11
13
  disabled: { type: Boolean, default: false },
12
14
  modelValue: null,
13
- row: { type: Boolean, default: false }
15
+ row: { type: Boolean, default: false },
16
+ testId: { default: "" }
14
17
  },
15
18
  emits: ["update:modelValue", "change"],
16
19
  setup(__props, { emit }) {
@@ -44,13 +47,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44
47
  ref_key: "radioGroupRef",
45
48
  ref: radioGroupRef,
46
49
  class: normalizeClass([{ "radio-group--row": __props.row }, "radio-group"]),
47
- role: "radiogroup"
50
+ role: "radiogroup",
51
+ "data-testid": `${__props.testId}-${unref(RadioTestIdModifiers).GROUP}`
48
52
  }, [
49
53
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
50
- ], 2);
54
+ ], 10, _hoisted_1);
51
55
  };
52
56
  }
53
57
  });
54
- var RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-046f75a0"]]);
58
+ var RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5ec84e04"]]);
55
59
 
56
60
  export { RadioGroup as default };
@@ -12,6 +12,11 @@ declare const RadioButtonTypes: () => (import("vue").DefineComponent<{
12
12
  } & {
13
13
  default: string;
14
14
  };
15
+ testId: {
16
+ type: import("vue").PropType<string>;
17
+ } & {
18
+ default: string;
19
+ };
15
20
  modelValue: {
16
21
  type: import("vue").PropType<string>;
17
22
  } & {
@@ -39,6 +44,11 @@ declare const RadioButtonTypes: () => (import("vue").DefineComponent<{
39
44
  } & {
40
45
  default: string;
41
46
  };
47
+ testId: {
48
+ type: import("vue").PropType<string>;
49
+ } & {
50
+ default: string;
51
+ };
42
52
  modelValue: {
43
53
  type: import("vue").PropType<string>;
44
54
  } & {
@@ -60,6 +70,7 @@ declare const RadioButtonTypes: () => (import("vue").DefineComponent<{
60
70
  }, {
61
71
  name: string;
62
72
  label: string;
73
+ testId: string;
63
74
  modelValue: string;
64
75
  helperText: string;
65
76
  errorText: string;
@@ -69,6 +80,11 @@ declare const RadioButtonTypes: () => (import("vue").DefineComponent<{
69
80
  } & {
70
81
  default: string;
71
82
  };
83
+ testId: {
84
+ type: import("vue").PropType<string>;
85
+ } & {
86
+ default: string;
87
+ };
72
88
  disabled: {
73
89
  type: import("vue").PropType<boolean>;
74
90
  } & {
@@ -89,6 +105,11 @@ declare const RadioButtonTypes: () => (import("vue").DefineComponent<{
89
105
  } & {
90
106
  default: string;
91
107
  };
108
+ testId: {
109
+ type: import("vue").PropType<string>;
110
+ } & {
111
+ default: string;
112
+ };
92
113
  disabled: {
93
114
  type: import("vue").PropType<boolean>;
94
115
  } & {
@@ -108,6 +129,7 @@ declare const RadioButtonTypes: () => (import("vue").DefineComponent<{
108
129
  "onUpdate:modelValue"?: (...args: any[]) => any;
109
130
  }, {
110
131
  name: string;
132
+ testId: string;
111
133
  disabled: boolean;
112
134
  row: boolean;
113
135
  }>)[];
@@ -4,10 +4,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
4
4
  variant?: 'default' | 'inline-table' | 'transparent';
5
5
  size?: 'sm' | 'md';
6
6
  disabled?: boolean;
7
+ testId?: string;
7
8
  }>, {
8
9
  variant: string;
9
10
  size: string;
10
11
  disabled: boolean;
12
+ testId: string;
11
13
  }>, {
12
14
  inputRef: import("vue").Ref<HTMLInputElement>;
13
15
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -18,14 +20,17 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
18
20
  variant?: 'default' | 'inline-table' | 'transparent';
19
21
  size?: 'sm' | 'md';
20
22
  disabled?: boolean;
23
+ testId?: string;
21
24
  }>, {
22
25
  variant: string;
23
26
  size: string;
24
27
  disabled: boolean;
28
+ testId: string;
25
29
  }>>> & {
26
30
  "onUpdate:modelValue"?: (value: string) => any;
27
31
  }, {
28
32
  size: 'sm' | 'md';
33
+ testId: string;
29
34
  variant: 'default' | 'inline-table' | 'transparent';
30
35
  disabled: boolean;
31
36
  }>;
@@ -1,9 +1,11 @@
1
1
  import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, unref, createBlock, createCommentVNode, createElementVNode } from 'vue';
2
2
  import Icon from '../icon/Icon.vue.js';
3
+ import { SearchTestIdModifiers } from '../../testids/index.vue.js';
3
4
  /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
4
5
 
5
6
  import "../../Search.vue_vue_type_style_index_0_scoped_true_lang.css";
6
- const _hoisted_1 = ["value", "placeholder", "disabled"];
7
+ const _hoisted_1 = ["data-testid"];
8
+ const _hoisted_2 = ["value", "placeholder", "disabled", "data-testid"];
7
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
10
  __name: "Search",
9
11
  props: {
@@ -11,7 +13,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
13
  placeholder: null,
12
14
  variant: { default: "default" },
13
15
  size: { default: "sm" },
14
- disabled: { type: Boolean, default: false }
16
+ disabled: { type: Boolean, default: false },
17
+ testId: { default: "" }
15
18
  },
16
19
  emits: ["update:modelValue"],
17
20
  setup(__props, { expose, emit }) {
@@ -58,7 +61,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
61
  });
59
62
  return (_ctx, _cache) => {
60
63
  return openBlock(), createElementBlock("div", {
61
- class: normalizeClass(["search-container", `${__props.size}`])
64
+ class: normalizeClass(["search-container", `${__props.size}`]),
65
+ "data-testid": `${__props.testId}-${unref(SearchTestIdModifiers).CONTAINER}`
62
66
  }, [
63
67
  unref(showLeftIcon) ? (openBlock(), createBlock(unref(Icon), {
64
68
  key: 0,
@@ -73,19 +77,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
73
77
  value: __props.modelValue,
74
78
  placeholder: __props.placeholder,
75
79
  disabled: __props.disabled,
80
+ "data-testid": `${__props.testId}-${unref(SearchTestIdModifiers).FIELD}`,
76
81
  onInput: updateValue
77
- }, null, 42, _hoisted_1),
82
+ }, null, 42, _hoisted_2),
78
83
  unref(showRightIcon) ? (openBlock(), createBlock(unref(Icon), {
79
84
  key: 1,
80
85
  class: normalizeClass(["search-right-icon", { "search-right-icon-clear": unref(showClear) }]),
81
86
  name: unref(rightIcon),
82
87
  "font-size": "sm",
88
+ "data-testid": `${__props.testId}-${unref(SearchTestIdModifiers).CLOSE}`,
83
89
  onClick: onRightIconClick
84
- }, null, 8, ["class", "name"])) : createCommentVNode("", true)
85
- ], 2);
90
+ }, null, 8, ["class", "name", "data-testid"])) : createCommentVNode("", true)
91
+ ], 10, _hoisted_1);
86
92
  };
87
93
  }
88
94
  });
89
- var Search = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-925b418c"]]);
95
+ var Search = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3550fe6c"]]);
90
96
 
91
97
  export { Search as default };
@@ -4,6 +4,11 @@ declare const SearchTypes: () => import("vue").DefineComponent<{
4
4
  } & {
5
5
  default: string;
6
6
  };
7
+ testId: {
8
+ type: import("vue").PropType<string>;
9
+ } & {
10
+ default: string;
11
+ };
7
12
  variant: {
8
13
  type: import("vue").PropType<"default" | "inline-table" | "transparent">;
9
14
  } & {
@@ -32,6 +37,11 @@ declare const SearchTypes: () => import("vue").DefineComponent<{
32
37
  } & {
33
38
  default: string;
34
39
  };
40
+ testId: {
41
+ type: import("vue").PropType<string>;
42
+ } & {
43
+ default: string;
44
+ };
35
45
  variant: {
36
46
  type: import("vue").PropType<"default" | "inline-table" | "transparent">;
37
47
  } & {
@@ -54,6 +64,7 @@ declare const SearchTypes: () => import("vue").DefineComponent<{
54
64
  "onUpdate:modelValue"?: (value: string) => any;
55
65
  }, {
56
66
  size: "md" | "sm";
67
+ testId: string;
57
68
  variant: "default" | "inline-table" | "transparent";
58
69
  disabled: boolean;
59
70
  }>[];
@@ -2,18 +2,23 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
2
2
  options: string[];
3
3
  modelValue: string;
4
4
  size?: 'sm' | 'lg';
5
+ testId?: string;
5
6
  }>, {
6
7
  size: string;
8
+ testId: string;
7
9
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
10
  options: string[];
9
11
  modelValue: string;
10
12
  size?: 'sm' | 'lg';
13
+ testId?: string;
11
14
  }>, {
12
15
  size: string;
16
+ testId: string;
13
17
  }>>> & {
14
18
  "onUpdate:modelValue"?: (...args: any[]) => any;
15
19
  }, {
16
20
  size: 'sm' | 'lg';
21
+ testId: string;
17
22
  }>;
18
23
  export default _default;
19
24
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,16 +1,19 @@
1
- import { defineComponent, ref, computed, onMounted, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, unref, Fragment, renderList, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString } from 'vue';
1
+ import { defineComponent, ref, computed, onMounted, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, Fragment, renderList, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString } from 'vue';
2
2
  import { useVModel } from '@vueuse/core';
3
3
  import Text from '../typography/Text.vue.js';
4
+ import { SwitchTestIdModifiers } from '../../testids/index.vue.js';
4
5
  /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
5
6
 
6
7
  import "../../Switch.vue_vue_type_style_index_0_scoped_true_lang.css";
7
- const _hoisted_1 = ["aria-label", "onClick"];
8
+ const _hoisted_1 = ["data-testid"];
9
+ const _hoisted_2 = ["aria-label", "data-testid", "onClick"];
8
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
11
  __name: "Switch",
10
12
  props: {
11
13
  options: null,
12
14
  modelValue: null,
13
- size: { default: "lg" }
15
+ size: { default: "lg" },
16
+ testId: { default: "" }
14
17
  },
15
18
  emits: ["update:modelValue"],
16
19
  setup(__props, { emit }) {
@@ -37,7 +40,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
37
40
  };
38
41
  return (_ctx, _cache) => {
39
42
  return openBlock(), createElementBlock("div", {
40
- class: normalizeClass(["switch", { "switch--lg": __props.size === "lg", "switch--sm": __props.size === "sm" }])
43
+ class: normalizeClass(["switch", { "switch--lg": __props.size === "lg", "switch--sm": __props.size === "sm" }]),
44
+ "data-testid": `${__props.testId}-${unref(SwitchTestIdModifiers).WRAPPER}`
41
45
  }, [
42
46
  createElementVNode("span", {
43
47
  ref_key: "box",
@@ -55,25 +59,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
59
  key: index,
56
60
  "aria-label": option,
57
61
  class: normalizeClass([{ "option--selected": selected.value === index }, "option"]),
62
+ "data-testid": `${__props.testId}-${unref(SwitchTestIdModifiers).BUTTON}`,
58
63
  onClick: ($event) => onClick(option, index)
59
64
  }, [
60
65
  renderSlot(_ctx.$slots, "default", {
61
66
  option,
62
67
  selected: selected.value === index
63
68
  }, () => [
64
- createVNode(Text, { size: "caption" }, {
69
+ createVNode(Text, {
70
+ size: "caption",
71
+ "data-testid": `${__props.testId}-${unref(SwitchTestIdModifiers).TEXT}`
72
+ }, {
65
73
  default: withCtx(() => [
66
74
  createTextVNode(toDisplayString(option), 1)
67
75
  ]),
68
76
  _: 2
69
- }, 1024)
77
+ }, 1032, ["data-testid"])
70
78
  ], true)
71
- ], 10, _hoisted_1);
79
+ ], 10, _hoisted_2);
72
80
  }), 128))
73
- ], 2);
81
+ ], 10, _hoisted_1);
74
82
  };
75
83
  }
76
84
  });
77
- var Switch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3bf80723"]]);
85
+ var Switch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5a16f3a6"]]);
78
86
 
79
87
  export { Switch as default };
@@ -4,6 +4,11 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
4
4
  } & {
5
5
  default: string;
6
6
  };
7
+ testId: {
8
+ type: import("vue").PropType<string>;
9
+ } & {
10
+ default: string;
11
+ };
7
12
  options: {
8
13
  type: import("vue").PropType<string[]>;
9
14
  required: true;
@@ -18,6 +23,11 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
18
23
  } & {
19
24
  default: string;
20
25
  };
26
+ testId: {
27
+ type: import("vue").PropType<string>;
28
+ } & {
29
+ default: string;
30
+ };
21
31
  options: {
22
32
  type: import("vue").PropType<string[]>;
23
33
  required: true;
@@ -30,6 +40,7 @@ declare const SwitchTypes: () => import("vue").DefineComponent<{
30
40
  "onUpdate:modelValue"?: (...args: any[]) => any;
31
41
  }, {
32
42
  size: "sm" | "lg";
43
+ testId: string;
33
44
  }>[];
34
45
  export { default as Switch } from './Switch.vue';
35
46
  export { SwitchTypes };
@@ -6,7 +6,6 @@ export type Column = {
6
6
  isSortable?: boolean;
7
7
  colSpan?: number;
8
8
  width?: number;
9
- isTextRight?: boolean;
10
9
  };
11
10
  export type Section = {
12
11
  id: string;
@@ -6,7 +6,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
6
6
  sections?: Section[];
7
7
  sort: Sort;
8
8
  isSticky?: boolean;
9
- isStickyHeader?: boolean;
10
9
  isLoading?: boolean;
11
10
  emptyStateTitle?: string;
12
11
  emptyStateSubtitle?: string;
@@ -14,10 +13,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
14
13
  infiniteScrollThreshold?: number;
15
14
  rowHeight?: number | ((index: number) => number);
16
15
  loadingRowCount?: number;
17
- defaultScrollPosition?: number;
16
+ testId?: string;
18
17
  }>, {
19
18
  isSticky: boolean;
20
- isStickyHeader: boolean;
21
19
  sections: any;
22
20
  isLoading: boolean;
23
21
  sortOrder: string;
@@ -27,7 +25,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
27
25
  infiniteScrollThreshold: number;
28
26
  rowHeight: number;
29
27
  loadingRowCount: number;
30
- defaultScrollPosition: any;
28
+ testId: string;
31
29
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
30
  "update:sort": (newSort: Sort) => void;
33
31
  } & {
@@ -46,7 +44,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
46
44
  sections?: Section[];
47
45
  sort: Sort;
48
46
  isSticky?: boolean;
49
- isStickyHeader?: boolean;
50
47
  isLoading?: boolean;
51
48
  emptyStateTitle?: string;
52
49
  emptyStateSubtitle?: string;
@@ -54,10 +51,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
54
51
  infiniteScrollThreshold?: number;
55
52
  rowHeight?: number | ((index: number) => number);
56
53
  loadingRowCount?: number;
57
- defaultScrollPosition?: number;
54
+ testId?: string;
58
55
  }>, {
59
56
  isSticky: boolean;
60
- isStickyHeader: boolean;
61
57
  sections: any;
62
58
  isLoading: boolean;
63
59
  sortOrder: string;
@@ -67,7 +63,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
67
63
  infiniteScrollThreshold: number;
68
64
  rowHeight: number;
69
65
  loadingRowCount: number;
70
- defaultScrollPosition: any;
66
+ testId: string;
71
67
  }>>> & {
72
68
  "onUpdate:sort"?: (newSort: Sort) => any;
73
69
  onSaveRow?: (args_0: {
@@ -78,9 +74,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
78
74
  }) => any;
79
75
  onLoadMore?: () => any;
80
76
  }, {
77
+ testId: string;
81
78
  isLoading: boolean;
82
79
  isSticky: boolean;
83
- isStickyHeader: boolean;
84
80
  sections: Section[];
85
81
  emptyStateTitle: string;
86
82
  emptyStateSubtitle: string;
@@ -88,7 +84,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
88
84
  infiniteScrollThreshold: number;
89
85
  rowHeight: number | ((index: number) => number);
90
86
  loadingRowCount: number;
91
- defaultScrollPosition: number;
92
87
  }>;
93
88
  export default _default;
94
89
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;