@ironsource/shared-ui 1.4.2-test.7 → 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 (206) 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/FilterDropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  17. package/FiltersPanel.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  18. package/FloatingToolbar.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/appIcon/AppIcon.vue.d.ts +1 -1
  37. package/components/appIcon/AppIcon.vue.js +3 -3
  38. package/components/appIcon/index.d.ts +1 -1
  39. package/components/appTrigger/AppTrigger.vue.d.ts +6 -1
  40. package/components/appTrigger/AppTrigger.vue.js +49 -39
  41. package/components/appTrigger/index.d.ts +12 -1
  42. package/components/autocompleteDropdown/AutocompleteDropdown.vue.d.ts +6 -1
  43. package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +20 -19
  44. package/components/autocompleteDropdown/AutocompleteInput.vue.d.ts +6 -1
  45. package/components/autocompleteDropdown/AutocompleteInput.vue.js +19 -13
  46. package/components/autocompleteDropdown/GroupOption.vue.d.ts +1 -1
  47. package/components/autocompleteDropdown/GroupOption.vue.js +3 -4
  48. package/components/autocompleteDropdown/index.d.ts +12 -1
  49. package/components/banner/Banner.vue.d.ts +10 -1
  50. package/components/banner/Banner.vue.js +24 -13
  51. package/components/banner/index.d.ts +10 -1
  52. package/components/button/Button.vue.d.ts +6 -1
  53. package/components/button/Button.vue.js +17 -15
  54. package/components/button/ButtonBase.vue.d.ts +1 -1
  55. package/components/button/ButtonBase.vue.js +11 -12
  56. package/components/button/IconButton.vue.d.ts +1 -1
  57. package/components/button/IconButton.vue.js +5 -5
  58. package/components/button/ScrollButton.vue.d.ts +1 -1
  59. package/components/button/ScrollButton.vue.js +8 -9
  60. package/components/button/index.d.ts +20 -9
  61. package/components/checkbox/Checkbox.vue.d.ts +6 -1
  62. package/components/checkbox/Checkbox.vue.js +33 -28
  63. package/components/checkbox/index.d.ts +12 -1
  64. package/components/chip/Chip.vue.d.ts +6 -1
  65. package/components/chip/Chip.vue.js +16 -11
  66. package/components/chip/index.d.ts +12 -1
  67. package/components/datePicker/DatePicker.vue.d.ts +6 -1
  68. package/components/datePicker/DatePicker.vue.js +22 -17
  69. package/components/datePicker/DatePickerMonth.vue.d.ts +6 -1
  70. package/components/datePicker/DatePickerMonth.vue.js +9 -7
  71. package/components/datePicker/index.d.ts +12 -1
  72. package/components/dateRange/CalendarMonth.vue.d.ts +6 -1
  73. package/components/dateRange/CalendarMonth.vue.js +58 -41
  74. package/components/dateRange/DateRange.vue.d.ts +6 -1
  75. package/components/dateRange/DateRange.vue.js +72 -61
  76. package/components/dateRange/DateRangePicker.vue.d.ts +6 -1
  77. package/components/dateRange/index.d.ts +12 -1
  78. package/components/dialog/Dialog.vue.d.ts +6 -1
  79. package/components/dialog/Dialog.vue.js +49 -34
  80. package/components/dialog/index.d.ts +12 -1
  81. package/components/dropdown/Dropdown.vue.d.ts +6 -1
  82. package/components/dropdown/Dropdown.vue.js +112 -88
  83. package/components/dropdown/Label.vue.d.ts +1 -1
  84. package/components/dropdown/Label.vue.js +3 -4
  85. package/components/dropdown/Option.vue.d.ts +1 -1
  86. package/components/dropdown/Option.vue.js +16 -17
  87. package/components/dropdown/SearchInput.vue.d.ts +1 -1
  88. package/components/dropdown/SearchInput.vue.js +6 -6
  89. package/components/dropdown/index.d.ts +409 -1
  90. package/components/emptyState/EmptyState.vue.d.ts +1 -1
  91. package/components/emptyState/EmptyState.vue.js +19 -21
  92. package/components/emptyState/index.d.ts +4 -4
  93. package/components/filterDropdown/AddFilterButton.vue.d.ts +3 -1
  94. package/components/filterDropdown/AddFilterButton.vue.js +11 -9
  95. package/components/filterDropdown/FilterDropdown.vue.d.ts +6 -1
  96. package/components/filterDropdown/FilterDropdown.vue.js +21 -20
  97. package/components/filterDropdown/index.d.ts +19 -2
  98. package/components/filtersPanel/FilterSearchInput.vue.d.ts +1 -1
  99. package/components/filtersPanel/FilterSearchInput.vue.js +7 -7
  100. package/components/filtersPanel/FiltersPanel.vue.d.ts +6 -1
  101. package/components/filtersPanel/FiltersPanel.vue.js +15 -12
  102. package/components/filtersPanel/index.d.ts +1 -1
  103. package/components/floatingToolbar/FloatingToolbar.vue.d.ts +1 -1
  104. package/components/floatingToolbar/FloatingToolbar.vue.js +3 -3
  105. package/components/floatingToolbar/index.d.ts +1 -1
  106. package/components/icon/Icon.vue.d.ts +1 -1
  107. package/components/icon/Icon.vue.js +4 -5
  108. package/components/icon/icons/index.d.ts +0 -3
  109. package/components/icon/icons/index.vue.js +0 -3
  110. package/components/icon/index.d.ts +1 -4
  111. package/components/icon/storyComponents/Code.vue.d.ts +1 -1
  112. package/components/icon/storyComponents/IconWrapper.vue.d.ts +1 -1
  113. package/components/icon/storyComponents/Page.vue.d.ts +1 -1
  114. package/components/includeExclude/IncludeExclude.vue.d.ts +6 -14
  115. package/components/includeExclude/IncludeExclude.vue.js +123 -187
  116. package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +1 -1
  117. package/components/includeExclude/IncludeExcludeAppHeader.vue.js +22 -24
  118. package/components/includeExclude/IncludeExcludeAppTrigger.vue.d.ts +1 -1
  119. package/components/includeExclude/IncludeExcludeAppTrigger.vue.js +19 -22
  120. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +1 -1
  121. package/components/includeExclude/IncludeExcludeChipFilter.vue.js +40 -42
  122. package/components/includeExclude/IncludeExcludeOption.vue.d.ts +1 -1
  123. package/components/includeExclude/IncludeExcludeOption.vue.js +21 -22
  124. package/components/includeExclude/includeExcludeMocks.d.ts +0 -12
  125. package/components/includeExclude/index.d.ts +28 -32
  126. package/components/includeExclude/index.vue.js +0 -3
  127. package/components/input/DollarInput.vue.d.ts +2 -2
  128. package/components/input/DollarInput.vue.js +3 -4
  129. package/components/input/Input.vue.d.ts +11 -1
  130. package/components/input/Input.vue.js +87 -64
  131. package/components/input/PasswordInput.vue.d.ts +2 -2
  132. package/components/input/PasswordInput.vue.js +3 -4
  133. package/components/input/PercentageInput.vue.d.ts +2 -2
  134. package/components/input/PercentageInput.vue.js +3 -4
  135. package/components/input/index.d.ts +36 -2
  136. package/components/menu/Menu.vue.d.ts +6 -1
  137. package/components/menu/Menu.vue.js +10 -8
  138. package/components/menu/index.d.ts +12 -1
  139. package/components/menuItem/MenuItem.vue.d.ts +1 -1
  140. package/components/menuItem/MenuItem.vue.js +3 -4
  141. package/components/menuItem/index.d.ts +1 -1
  142. package/components/popover/Popover.vue.d.ts +6 -1
  143. package/components/popover/Popover.vue.js +11 -9
  144. package/components/popover/index.d.ts +12 -1
  145. package/components/radioButton/RadioButton.vue.d.ts +6 -1
  146. package/components/radioButton/RadioButton.vue.js +24 -17
  147. package/components/radioButton/RadioGroup.vue.d.ts +6 -1
  148. package/components/radioButton/RadioGroup.vue.js +12 -8
  149. package/components/radioButton/index.d.ts +24 -2
  150. package/components/radioButton/useRadio.d.ts +1 -1
  151. package/components/search/Search.vue.d.ts +6 -1
  152. package/components/search/Search.vue.js +27 -21
  153. package/components/search/index.d.ts +12 -1
  154. package/components/skeleton/Skeleton.vue.d.ts +1 -1
  155. package/components/skeleton/Skeleton.vue.js +2 -2
  156. package/components/skeleton/index.d.ts +1 -1
  157. package/components/snackbar/Snackbar.vue.d.ts +1 -1
  158. package/components/snackbar/Snackbar.vue.js +26 -26
  159. package/components/switch/Switch.vue.d.ts +6 -1
  160. package/components/switch/Switch.vue.js +24 -16
  161. package/components/switch/index.d.ts +12 -1
  162. package/components/table/Table.types.d.ts +0 -1
  163. package/components/table/Table.vue.d.ts +6 -11
  164. package/components/table/Table.vue.js +80 -79
  165. package/components/table/TableHeaderSorter.vue.d.ts +1 -1
  166. package/components/table/TableHeaderSorter.vue.js +4 -4
  167. package/components/table/index.d.ts +12 -23
  168. package/components/table-cells/Editable.vue.d.ts +1 -1
  169. package/components/table-cells/Editable.vue.js +4 -4
  170. package/components/table-cells/index.d.ts +1 -1
  171. package/components/tabs/Tabs.vue.d.ts +6 -1
  172. package/components/tabs/Tabs.vue.js +29 -25
  173. package/components/tabs/index.d.ts +12 -1
  174. package/components/textArea/TextArea.vue.d.ts +6 -1
  175. package/components/textArea/TextArea.vue.js +32 -26
  176. package/components/textArea/index.d.ts +12 -1
  177. package/components/toggle/Toggle.vue.d.ts +11 -1
  178. package/components/toggle/Toggle.vue.js +48 -32
  179. package/components/toggle/index.d.ts +23 -1
  180. package/components/tooltip/TextWithTitleContent.vue.d.ts +16 -3
  181. package/components/tooltip/TextWithTitleContent.vue.js +17 -13
  182. package/components/tooltip/Tooltip.vue.d.ts +6 -1
  183. package/components/tooltip/Tooltip.vue.js +18 -15
  184. package/components/tooltip/index.d.ts +12 -1
  185. package/components/tooltip/storybookComponents/CustomTooltip.vue.d.ts +1 -1
  186. package/components/typography/Heading.vue.d.ts +6 -1
  187. package/components/typography/Heading.vue.js +10 -7
  188. package/components/typography/Text.vue.d.ts +6 -1
  189. package/components/typography/Text.vue.js +10 -6
  190. package/components/typography/index.d.ts +24 -2
  191. package/consts/regex.d.ts +1 -0
  192. package/consts/regex.vue.js +3 -0
  193. package/consts/style.d.ts +1 -0
  194. package/consts/style.vue.js +3 -0
  195. package/index.vue.js +3 -4
  196. package/package.json +4 -5
  197. package/testids/index.d.ts +146 -0
  198. package/testids/index.vue.js +170 -0
  199. package/utils/style.d.ts +1 -0
  200. package/utils/style.vue.js +5 -0
  201. package/IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_true_lang.css +0 -1
  202. package/components/icon/icons/TableEdit.vue.d.ts +0 -2
  203. package/components/icon/icons/TableEdit.vue.js +0 -24
  204. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.d.ts +0 -43
  205. package/components/includeExclude/IncludeExcludeOptionDraggable.vue.js +0 -123
  206. package/components/table/Pagination.vue.d.ts +0 -43
@@ -4,6 +4,11 @@ declare const TabsTypes: () => 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<"fill" | "fix">;
9
14
  } & {
@@ -32,6 +37,11 @@ declare const TabsTypes: () => 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<"fill" | "fix">;
37
47
  } & {
@@ -56,6 +66,7 @@ declare const TabsTypes: () => import("vue").DefineComponent<{
56
66
  "onUpdate:selectedTab"?: (tabId: string | number) => any;
57
67
  }, {
58
68
  size: "md" | "sm" | "lg" | "xl";
69
+ testId: string;
59
70
  variant: "fill" | "fix";
60
71
  tabsList: {
61
72
  id: string | number;
@@ -63,6 +74,6 @@ declare const TabsTypes: () => import("vue").DefineComponent<{
63
74
  iconName: string;
64
75
  disabled?: boolean;
65
76
  }[];
66
- }, {}>[];
77
+ }>[];
67
78
  export { default as Tabs } from './Tabs.vue';
68
79
  export { TabsTypes };
@@ -5,6 +5,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
5
5
  label?: string;
6
6
  feedbackHelpText?: string;
7
7
  feedbackErrorText?: string;
8
+ testId?: string;
8
9
  }>, {
9
10
  modelValue: string;
10
11
  placeholder: string;
@@ -12,6 +13,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
12
13
  label: string;
13
14
  feedbackHelpText: string;
14
15
  feedbackErrorText: string;
16
+ testId: string;
15
17
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
18
  "update:modelValue": (value: string) => void;
17
19
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -21,6 +23,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
21
23
  label?: string;
22
24
  feedbackHelpText?: string;
23
25
  feedbackErrorText?: string;
26
+ testId?: string;
24
27
  }>, {
25
28
  modelValue: string;
26
29
  placeholder: string;
@@ -28,16 +31,18 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
28
31
  label: string;
29
32
  feedbackHelpText: string;
30
33
  feedbackErrorText: string;
34
+ testId: string;
31
35
  }>>> & {
32
36
  "onUpdate:modelValue"?: (value: string) => any;
33
37
  }, {
34
38
  label: string;
39
+ testId: string;
35
40
  disabled: boolean;
36
41
  modelValue: string;
37
42
  placeholder: string;
38
43
  feedbackHelpText: string;
39
44
  feedbackErrorText: string;
40
- }, {}>;
45
+ }>;
41
46
  export default _default;
42
47
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
48
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,19 +1,17 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, createVNode, unref, withCtx, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from 'vue';
2
- import '../typography/Heading.vue.js';
1
+ import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from 'vue';
2
+ import { TextAreaTestIdModifiers } from '../../testids/index.vue.js';
3
+ /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
3
4
  import Text from '../typography/Text.vue.js';
4
- /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
5
-
5
+ /* empty css */
6
6
  import "../../TextArea.vue_vue_type_style_index_0_scoped_true_lang.css";
7
- const _hoisted_1 = {
8
- key: 0,
9
- class: "label-container"
10
- };
11
- const _hoisted_2 = ["value", "placeholder", "disabled"];
12
- const _hoisted_3 = {
7
+ const _hoisted_1 = ["data-testid"];
8
+ const _hoisted_2 = ["data-testid"];
9
+ const _hoisted_3 = ["value", "placeholder", "disabled", "data-testid"];
10
+ const _hoisted_4 = {
13
11
  key: 1,
14
12
  class: "extra-text-container"
15
13
  };
16
- const _sfc_main = defineComponent({
14
+ const _sfc_main = /* @__PURE__ */ defineComponent({
17
15
  __name: "TextArea",
18
16
  props: {
19
17
  modelValue: { default: "" },
@@ -21,7 +19,8 @@ const _sfc_main = defineComponent({
21
19
  disabled: { type: Boolean, default: false },
22
20
  label: { default: "" },
23
21
  feedbackHelpText: { default: "" },
24
- feedbackErrorText: { default: "" }
22
+ feedbackErrorText: { default: "" },
23
+ testId: { default: "" }
25
24
  },
26
25
  emits: ["update:modelValue"],
27
26
  setup(__props, { emit }) {
@@ -30,38 +29,45 @@ const _sfc_main = defineComponent({
30
29
  };
31
30
  return (_ctx, _cache) => {
32
31
  return openBlock(), createElementBlock("div", {
33
- class: normalizeClass({ "textarea-with-label-container": true, disabled: _ctx.disabled })
32
+ class: normalizeClass({ "textarea-with-label-container": true, disabled: __props.disabled }),
33
+ "data-testid": `${__props.testId}-${unref(TextAreaTestIdModifiers).WRAPPER}`
34
34
  }, [
35
- _ctx.label ? (openBlock(), createElementBlock("div", _hoisted_1, [
35
+ __props.label ? (openBlock(), createElementBlock("div", {
36
+ key: 0,
37
+ class: "label-container",
38
+ "data-testid": `${__props.testId}-${unref(TextAreaTestIdModifiers).LABEL}`
39
+ }, [
36
40
  createVNode(unref(Text), { class: "label" }, {
37
41
  default: withCtx(() => [
38
- createTextVNode(toDisplayString(_ctx.label), 1)
42
+ createTextVNode(toDisplayString(__props.label), 1)
39
43
  ]),
40
44
  _: 1
41
45
  })
42
- ])) : createCommentVNode("", true),
46
+ ], 8, _hoisted_2)) : createCommentVNode("", true),
43
47
  createElementVNode("textarea", {
44
48
  class: "textarea",
45
- value: _ctx.modelValue,
46
- placeholder: _ctx.placeholder,
47
- disabled: _ctx.disabled,
49
+ value: __props.modelValue,
50
+ placeholder: __props.placeholder,
51
+ disabled: __props.disabled,
52
+ "data-testid": `${__props.testId}-${unref(TextAreaTestIdModifiers).FIELD}`,
48
53
  onInput: handleInput
49
- }, null, 40, _hoisted_2),
50
- _ctx.feedbackErrorText || _ctx.feedbackHelpText ? (openBlock(), createElementBlock("div", _hoisted_3, [
54
+ }, null, 40, _hoisted_3),
55
+ __props.feedbackErrorText || __props.feedbackHelpText ? (openBlock(), createElementBlock("div", _hoisted_4, [
51
56
  createVNode(unref(Text), {
52
- class: normalizeClass({ [_ctx.feedbackErrorText ? "error" : "help"]: true }),
57
+ class: normalizeClass({ [__props.feedbackErrorText ? "error" : "help"]: true }),
58
+ "data-testid": `${__props.testId}-${unref(TextAreaTestIdModifiers).TEXT}`,
53
59
  size: "caption"
54
60
  }, {
55
61
  default: withCtx(() => [
56
- createTextVNode(toDisplayString(_ctx.feedbackErrorText || _ctx.feedbackHelpText), 1)
62
+ createTextVNode(toDisplayString(__props.feedbackErrorText || __props.feedbackHelpText), 1)
57
63
  ]),
58
64
  _: 1
59
- }, 8, ["class"])
65
+ }, 8, ["class", "data-testid"])
60
66
  ])) : createCommentVNode("", true)
61
- ], 2);
67
+ ], 10, _hoisted_1);
62
68
  };
63
69
  }
64
70
  });
65
- var TextArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-78bc849c"]]);
71
+ var TextArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6197672e"]]);
66
72
 
67
73
  export { TextArea as default };
@@ -4,6 +4,11 @@ declare const TextAreaTypes: () => 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
  disabled: {
8
13
  type: import("vue").PropType<boolean>;
9
14
  } & {
@@ -37,6 +42,11 @@ declare const TextAreaTypes: () => import("vue").DefineComponent<{
37
42
  } & {
38
43
  default: string;
39
44
  };
45
+ testId: {
46
+ type: import("vue").PropType<string>;
47
+ } & {
48
+ default: string;
49
+ };
40
50
  disabled: {
41
51
  type: import("vue").PropType<boolean>;
42
52
  } & {
@@ -66,11 +76,12 @@ declare const TextAreaTypes: () => import("vue").DefineComponent<{
66
76
  "onUpdate:modelValue"?: (value: string) => any;
67
77
  }, {
68
78
  label: string;
79
+ testId: string;
69
80
  disabled: boolean;
70
81
  modelValue: string;
71
82
  placeholder: string;
72
83
  feedbackHelpText: string;
73
84
  feedbackErrorText: string;
74
- }, {}>[];
85
+ }>[];
75
86
  export { default as TextArea } from './TextArea.vue';
76
87
  export { TextAreaTypes };
@@ -5,14 +5,18 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
5
5
  errorText?: string;
6
6
  helperText?: string;
7
7
  isDisabled?: boolean;
8
+ isLoading?: boolean;
8
9
  color?: string;
10
+ testId?: string;
9
11
  }>, {
10
12
  activeText: any;
11
13
  inactiveText: any;
12
14
  errorText: any;
13
15
  helperText: any;
14
16
  isDisabled: boolean;
17
+ isLoading: boolean;
15
18
  color: string;
19
+ testId: string;
16
20
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
21
  "update:modelValue": (value: boolean) => void;
18
22
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -22,24 +26,30 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
22
26
  errorText?: string;
23
27
  helperText?: string;
24
28
  isDisabled?: boolean;
29
+ isLoading?: boolean;
25
30
  color?: string;
31
+ testId?: string;
26
32
  }>, {
27
33
  activeText: any;
28
34
  inactiveText: any;
29
35
  errorText: any;
30
36
  helperText: any;
31
37
  isDisabled: boolean;
38
+ isLoading: boolean;
32
39
  color: string;
40
+ testId: string;
33
41
  }>>> & {
34
42
  "onUpdate:modelValue"?: (value: boolean) => any;
35
43
  }, {
44
+ testId: string;
36
45
  helperText: string;
37
46
  color: string;
47
+ isLoading: boolean;
38
48
  errorText: string;
39
49
  activeText: string;
40
50
  inactiveText: string;
41
51
  isDisabled: boolean;
42
- }, {}>;
52
+ }>;
43
53
  export default _default;
44
54
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
45
55
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,18 +1,15 @@
1
- import { defineComponent, useCssVars, openBlock, createElementBlock, createElementVNode, normalizeClass, createVNode, unref, withCtx, createTextVNode, toDisplayString, createBlock, createCommentVNode, pushScopeId, popScopeId } from 'vue';
2
- import '../typography/Heading.vue.js';
1
+ import { defineComponent, useCssVars, openBlock, createElementBlock, createElementVNode, unref, normalizeClass, createCommentVNode, createVNode, withCtx, createTextVNode, toDisplayString, createBlock } from 'vue';
2
+ import { ToggleTestIdModifiers } from '../../testids/index.vue.js';
3
+ /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
3
4
  import Text from '../typography/Text.vue.js';
4
5
  import { COLORS } from '../../consts/colors.vue.js';
5
- /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
6
-
6
+ /* empty css */
7
7
  import "../../Toggle.vue_vue_type_style_index_0_scoped_true_lang.css";
8
- const _withScopeId = (n) => (pushScopeId("data-v-6627e5c5"), n = n(), popScopeId(), n);
9
- const _hoisted_1 = { class: "toggle-wrap" };
10
- const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "toggle-head" }, null, -1));
11
- const _hoisted_3 = [
12
- _hoisted_2
13
- ];
14
- const _hoisted_4 = ["disabled", "checked"];
15
- const _sfc_main = defineComponent({
8
+ const _hoisted_1 = ["data-testid"];
9
+ const _hoisted_2 = ["data-testid"];
10
+ const _hoisted_3 = { class: "toggle-head" };
11
+ const _hoisted_4 = ["disabled", "checked", "data-testid"];
12
+ const _sfc_main = /* @__PURE__ */ defineComponent({
16
13
  __name: "Toggle",
17
14
  props: {
18
15
  modelValue: { type: Boolean },
@@ -21,13 +18,15 @@ const _sfc_main = defineComponent({
21
18
  errorText: { default: void 0 },
22
19
  helperText: { default: void 0 },
23
20
  isDisabled: { type: Boolean, default: false },
24
- color: { default: COLORS.PRIMARY_500 }
21
+ isLoading: { type: Boolean, default: false },
22
+ color: { default: COLORS.PRIMARY_500 },
23
+ testId: { default: "" }
25
24
  },
26
25
  emits: ["update:modelValue"],
27
26
  setup(__props, { emit }) {
28
27
  const props = __props;
29
28
  useCssVars((_ctx) => ({
30
- "a1fed734": _ctx.color
29
+ "189a2944": __props.color
31
30
  }));
32
31
  const toggleValue = () => {
33
32
  if (props.isDisabled)
@@ -36,54 +35,71 @@ const _sfc_main = defineComponent({
36
35
  };
37
36
  return (_ctx, _cache) => {
38
37
  return openBlock(), createElementBlock("div", null, [
39
- createElementVNode("div", _hoisted_1, [
38
+ createElementVNode("div", {
39
+ class: "toggle-wrap",
40
+ "data-testid": `${__props.testId}-${unref(ToggleTestIdModifiers).WRAPPER}`
41
+ }, [
40
42
  createElementVNode("div", {
41
- class: normalizeClass(["toggle-body", { "toggle-active": _ctx.modelValue, "toggle-disabled": _ctx.isDisabled }]),
43
+ class: normalizeClass(["toggle-body", { "toggle-active": __props.modelValue, "toggle-disabled": __props.isDisabled }]),
44
+ "data-testid": `${__props.testId}-${unref(ToggleTestIdModifiers).BODY}`,
42
45
  onClick: toggleValue
43
- }, _hoisted_3, 2),
46
+ }, [
47
+ createElementVNode("div", _hoisted_3, [
48
+ __props.isLoading ? (openBlock(), createElementBlock("span", {
49
+ key: 0,
50
+ class: normalizeClass(["loader", {
51
+ "loader-active": __props.modelValue
52
+ }])
53
+ }, null, 2)) : createCommentVNode("", true)
54
+ ])
55
+ ], 10, _hoisted_2),
44
56
  createElementVNode("input", {
45
57
  type: "checkbox",
46
- disabled: _ctx.isDisabled,
47
- checked: _ctx.modelValue,
58
+ disabled: __props.isDisabled,
59
+ checked: __props.modelValue,
60
+ "data-testid": `${__props.testId}-${unref(ToggleTestIdModifiers).FIELD}`,
48
61
  class: "checkbox"
49
62
  }, null, 8, _hoisted_4),
50
63
  createVNode(unref(Text), {
51
64
  size: "sm",
52
65
  "is-truncated": "",
53
- class: normalizeClass(["item-text", { "text-disabled": _ctx.isDisabled }])
66
+ class: normalizeClass(["item-text", { "text-disabled": __props.isDisabled }]),
67
+ "test-id": `${__props.testId}-${unref(ToggleTestIdModifiers).TEXT}`
54
68
  }, {
55
69
  default: withCtx(() => [
56
- createTextVNode(toDisplayString(_ctx.modelValue ? _ctx.activeText : _ctx.inactiveText), 1)
70
+ createTextVNode(toDisplayString(__props.modelValue ? __props.activeText : __props.inactiveText), 1)
57
71
  ]),
58
72
  _: 1
59
- }, 8, ["class"])
60
- ]),
73
+ }, 8, ["class", "test-id"])
74
+ ], 8, _hoisted_1),
61
75
  createElementVNode("div", null, [
62
- _ctx.helperText ? (openBlock(), createBlock(unref(Text), {
76
+ __props.helperText ? (openBlock(), createBlock(unref(Text), {
63
77
  key: 0,
64
78
  size: "caption",
65
- class: "helper-text"
79
+ class: "helper-text",
80
+ "test-id": `${__props.testId}-${unref(ToggleTestIdModifiers).HELPER_TEXT}`
66
81
  }, {
67
82
  default: withCtx(() => [
68
- createTextVNode(toDisplayString(_ctx.helperText), 1)
83
+ createTextVNode(toDisplayString(__props.helperText), 1)
69
84
  ]),
70
85
  _: 1
71
- })) : createCommentVNode("", true),
72
- _ctx.errorText ? (openBlock(), createBlock(unref(Text), {
86
+ }, 8, ["test-id"])) : createCommentVNode("", true),
87
+ __props.errorText ? (openBlock(), createBlock(unref(Text), {
73
88
  key: 1,
74
89
  size: "caption",
75
- class: normalizeClass(["error-text", { "error-and-help": !!_ctx.helperText }])
90
+ class: normalizeClass(["error-text", { "error-and-help": !!__props.helperText }]),
91
+ "test-id": `${__props.testId}-${unref(ToggleTestIdModifiers).ERROR_TEXT}`
76
92
  }, {
77
93
  default: withCtx(() => [
78
- createTextVNode(toDisplayString(_ctx.errorText), 1)
94
+ createTextVNode(toDisplayString(__props.errorText), 1)
79
95
  ]),
80
96
  _: 1
81
- }, 8, ["class"])) : createCommentVNode("", true)
97
+ }, 8, ["class", "test-id"])) : createCommentVNode("", true)
82
98
  ])
83
99
  ]);
84
100
  };
85
101
  }
86
102
  });
87
- var Toggle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6627e5c5"]]);
103
+ var Toggle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6b2024eb"]]);
88
104
 
89
105
  export { Toggle as default };
@@ -1,4 +1,9 @@
1
1
  declare const ToggleTypes: () => import("vue").DefineComponent<{
2
+ testId: {
3
+ type: import("vue").PropType<string>;
4
+ } & {
5
+ default: string;
6
+ };
2
7
  modelValue: {
3
8
  type: import("vue").PropType<boolean>;
4
9
  required: true;
@@ -13,6 +18,11 @@ declare const ToggleTypes: () => import("vue").DefineComponent<{
13
18
  } & {
14
19
  default: string;
15
20
  };
21
+ isLoading: {
22
+ type: import("vue").PropType<boolean>;
23
+ } & {
24
+ default: boolean;
25
+ };
16
26
  errorText: {
17
27
  type: import("vue").PropType<string>;
18
28
  } & {
@@ -36,6 +46,11 @@ declare const ToggleTypes: () => import("vue").DefineComponent<{
36
46
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
47
  "update:modelValue": (value: boolean) => void;
38
48
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
49
+ testId: {
50
+ type: import("vue").PropType<string>;
51
+ } & {
52
+ default: string;
53
+ };
39
54
  modelValue: {
40
55
  type: import("vue").PropType<boolean>;
41
56
  required: true;
@@ -50,6 +65,11 @@ declare const ToggleTypes: () => import("vue").DefineComponent<{
50
65
  } & {
51
66
  default: string;
52
67
  };
68
+ isLoading: {
69
+ type: import("vue").PropType<boolean>;
70
+ } & {
71
+ default: boolean;
72
+ };
53
73
  errorText: {
54
74
  type: import("vue").PropType<string>;
55
75
  } & {
@@ -73,12 +93,14 @@ declare const ToggleTypes: () => import("vue").DefineComponent<{
73
93
  }>> & {
74
94
  "onUpdate:modelValue"?: (value: boolean) => any;
75
95
  }, {
96
+ testId: string;
76
97
  helperText: string;
77
98
  color: string;
99
+ isLoading: boolean;
78
100
  errorText: string;
79
101
  activeText: string;
80
102
  inactiveText: string;
81
103
  isDisabled: boolean;
82
- }, {}>[];
104
+ }>[];
83
105
  export { default as Toggle } from './Toggle.vue';
84
106
  export { ToggleTypes };
@@ -1,10 +1,18 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  text: string;
3
3
  header: string;
4
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ testId?: string;
5
+ }>, {
6
+ testId: string;
7
+ }>, {}, 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<{
5
8
  text: string;
6
9
  header: string;
7
- }>>>, {}, {}>;
10
+ testId?: string;
11
+ }>, {
12
+ testId: string;
13
+ }>>>, {
14
+ testId: string;
15
+ }>;
8
16
  export default _default;
9
17
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
18
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -15,3 +23,8 @@ type __VLS_TypePropsToRuntimeProps<T> = {
15
23
  required: true;
16
24
  };
17
25
  };
26
+ type __VLS_WithDefaults<P, D> = {
27
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
28
+ default: D[K];
29
+ } : P[K];
30
+ };
@@ -1,49 +1,53 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, createTextVNode, toDisplayString } from 'vue';
2
- import '../typography/Heading.vue.js';
2
+ import { TooltipTestIdModifiers } from '../../testids/index.vue.js';
3
+ /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
3
4
  import Text from '../typography/Text.vue.js';
4
- /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
5
-
5
+ /* empty css */
6
6
  import "../../TextWithTitleContent.vue_vue_type_style_index_0_scoped_true_lang.css";
7
7
  const _hoisted_1 = { class: "content-wrap" };
8
8
  const _hoisted_2 = { class: "content-header" };
9
9
  const _hoisted_3 = { class: "content-body" };
10
- const _sfc_main = defineComponent({
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  __name: "TextWithTitleContent",
12
12
  props: {
13
- text: {},
14
- header: {}
13
+ text: null,
14
+ header: null,
15
+ testId: { default: "" }
15
16
  },
16
17
  setup(__props) {
18
+ const props = __props;
17
19
  return (_ctx, _cache) => {
18
20
  return openBlock(), createElementBlock("div", _hoisted_1, [
19
21
  createElementVNode("div", _hoisted_2, [
20
22
  createVNode(unref(Text), {
21
23
  size: "md",
22
24
  "is-truncated": false,
23
- strong: ""
25
+ strong: "",
26
+ "test-id": `${props.testId}-${unref(TooltipTestIdModifiers).TEXT}`
24
27
  }, {
25
28
  default: withCtx(() => [
26
- createTextVNode(toDisplayString(_ctx.header), 1)
29
+ createTextVNode(toDisplayString(__props.header), 1)
27
30
  ]),
28
31
  _: 1
29
- })
32
+ }, 8, ["test-id"])
30
33
  ]),
31
34
  createElementVNode("div", _hoisted_3, [
32
35
  createVNode(unref(Text), {
33
36
  size: "xs",
34
37
  "is-truncated": false,
35
- strong: ""
38
+ strong: "",
39
+ "test-id": `${props.testId}-${unref(TooltipTestIdModifiers).TEXT}`
36
40
  }, {
37
41
  default: withCtx(() => [
38
- createTextVNode(toDisplayString(_ctx.text), 1)
42
+ createTextVNode(toDisplayString(__props.text), 1)
39
43
  ]),
40
44
  _: 1
41
- })
45
+ }, 8, ["test-id"])
42
46
  ])
43
47
  ]);
44
48
  };
45
49
  }
46
50
  });
47
- var TextWithTitleContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5b51333e"]]);
51
+ var TextWithTitleContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-aef63464"]]);
48
52
 
49
53
  export { TextWithTitleContent as default };
@@ -7,6 +7,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
7
7
  placement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
8
8
  theme?: string;
9
9
  disabled?: boolean;
10
+ testId?: string;
10
11
  }>, {
11
12
  text: any;
12
13
  header: any;
@@ -16,6 +17,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
16
17
  placement: string;
17
18
  theme: string;
18
19
  disabled: boolean;
20
+ testId: string;
19
21
  }>, {}, 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<{
20
22
  text?: string;
21
23
  header?: string;
@@ -25,6 +27,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
25
27
  placement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
26
28
  theme?: string;
27
29
  disabled?: boolean;
30
+ testId?: string;
28
31
  }>, {
29
32
  text: any;
30
33
  header: any;
@@ -34,16 +37,18 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
34
37
  placement: string;
35
38
  theme: string;
36
39
  disabled: boolean;
40
+ testId: string;
37
41
  }>>>, {
38
42
  header: string;
39
43
  text: string;
44
+ testId: string;
40
45
  theme: string;
41
46
  delay: number;
42
47
  triggers: ("hover" | "click" | "focus" | "touch")[];
43
48
  forceShowWithTruncate: boolean;
44
49
  placement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
45
50
  disabled: boolean;
46
- }, {}>;
51
+ }>;
47
52
  export default _default;
48
53
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
49
54
  type __VLS_TypePropsToRuntimeProps<T> = {