@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
@@ -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,15 +70,21 @@ 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;
66
- }, {}> | import("vue").DefineComponent<{
77
+ }> | import("vue").DefineComponent<{
67
78
  name: {
68
79
  type: import("vue").PropType<string>;
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,7 +129,8 @@ 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
+ }>)[];
114
136
  export { RadioButton, RadioGroup, RadioButtonTypes };
@@ -15,6 +15,6 @@ export declare const useRadio: (props: {
15
15
  radioGroup: RadioGroupContext;
16
16
  focus: import("vue").Ref<boolean>;
17
17
  disabled: import("vue").ComputedRef<boolean>;
18
- tabIndex: import("vue").ComputedRef<0 | -1>;
18
+ tabIndex: import("vue").ComputedRef<-1 | 0>;
19
19
  modelValue: import("vue").WritableComputedRef<string>;
20
20
  };
@@ -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,17 +20,20 @@ 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
+ }>;
32
37
  export default _default;
33
38
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
39
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,20 +1,23 @@
1
- import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, createBlock, unref, createCommentVNode, createElementVNode } from 'vue';
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 _sfc_main = defineComponent({
7
+ const _hoisted_1 = ["data-testid"];
8
+ const _hoisted_2 = ["value", "placeholder", "disabled", "data-testid"];
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
10
  __name: "Search",
9
11
  props: {
10
- modelValue: {},
11
- placeholder: {},
12
+ modelValue: null,
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
- setup(__props, { expose: __expose, emit }) {
20
+ setup(__props, { expose, emit }) {
18
21
  const props = __props;
19
22
  const inputRef = ref();
20
23
  const updateValue = (e) => {
@@ -53,14 +56,15 @@ const _sfc_main = defineComponent({
53
56
  const rightIcon = computed(() => {
54
57
  return showClear.value ? "cancel" : "search";
55
58
  });
56
- __expose({
59
+ expose({
57
60
  inputRef
58
61
  });
59
62
  return (_ctx, _cache) => {
60
63
  return openBlock(), createElementBlock("div", {
61
- class: normalizeClass(["search-container", `${_ctx.size}`])
64
+ class: normalizeClass(["search-container", `${__props.size}`]),
65
+ "data-testid": `${__props.testId}-${unref(SearchTestIdModifiers).CONTAINER}`
62
66
  }, [
63
- showLeftIcon.value ? (openBlock(), createBlock(unref(Icon), {
67
+ unref(showLeftIcon) ? (openBlock(), createBlock(unref(Icon), {
64
68
  key: 0,
65
69
  class: "search-left-icon",
66
70
  name: "search-bold",
@@ -69,23 +73,25 @@ const _sfc_main = defineComponent({
69
73
  createElementVNode("input", {
70
74
  ref_key: "inputRef",
71
75
  ref: inputRef,
72
- class: normalizeClass({ [_ctx.variant]: true, activated: _ctx.modelValue !== "" }),
73
- value: _ctx.modelValue,
74
- placeholder: _ctx.placeholder,
75
- disabled: _ctx.disabled,
76
+ class: normalizeClass({ [__props.variant]: true, activated: __props.modelValue !== "" }),
77
+ value: __props.modelValue,
78
+ placeholder: __props.placeholder,
79
+ disabled: __props.disabled,
80
+ "data-testid": `${__props.testId}-${unref(SearchTestIdModifiers).FIELD}`,
76
81
  onInput: updateValue
77
- }, null, 42, _hoisted_1),
78
- showRightIcon.value ? (openBlock(), createBlock(unref(Icon), {
82
+ }, null, 42, _hoisted_2),
83
+ unref(showRightIcon) ? (openBlock(), createBlock(unref(Icon), {
79
84
  key: 1,
80
- class: normalizeClass(["search-right-icon", { "search-right-icon-clear": showClear.value }]),
81
- name: rightIcon.value,
85
+ class: normalizeClass(["search-right-icon", { "search-right-icon-clear": unref(showClear) }]),
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,8 +64,9 @@ 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
+ }>[];
60
71
  export { default as Search } from './Search.vue';
61
72
  export { SearchTypes };
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
4
4
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
5
  round?: boolean;
6
6
  fill?: boolean;
7
- }>>>, {}, {}>;
7
+ }>>>, {}>;
8
8
  export default _default;
9
9
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
10
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -2,7 +2,7 @@ import { defineComponent, openBlock, createElementBlock, normalizeClass, renderS
2
2
  /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
3
3
 
4
4
  import "../../Skeleton.vue_vue_type_style_index_0_scoped_true_lang.css";
5
- const _sfc_main = defineComponent({
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "Skeleton",
7
7
  props: {
8
8
  round: { type: Boolean },
@@ -11,7 +11,7 @@ const _sfc_main = defineComponent({
11
11
  setup(__props) {
12
12
  return (_ctx, _cache) => {
13
13
  return openBlock(), createElementBlock("div", {
14
- class: normalizeClass({ round: _ctx.round, fill: _ctx.fill })
14
+ class: normalizeClass({ round: __props.round, fill: __props.fill })
15
15
  }, [
16
16
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
17
17
  ], 2);
@@ -12,6 +12,6 @@ declare const SkeletonTypes: () => import("vue").DefineComponent<{
12
12
  fill: {
13
13
  type: import("vue").PropType<boolean>;
14
14
  };
15
- }>>, {}, {}>[];
15
+ }>>, {}>[];
16
16
  export { default as Skeleton } from './Skeleton.vue';
17
17
  export { SkeletonTypes };
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
52
52
  zIndex: number;
53
53
  duration: number;
54
54
  showClose: boolean;
55
- }, {}>;
55
+ }>;
56
56
  export default _default;
57
57
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
58
58
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, onMounted, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, createVNode, unref, resolveDynamicComponent, createCommentVNode, toDisplayString, renderSlot, createTextVNode, vShow, withModifiers } from 'vue';
1
+ import { defineComponent, ref, computed, onMounted, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, unref, normalizeStyle, createElementBlock, createVNode, resolveDynamicComponent, createCommentVNode, toDisplayString, renderSlot, createTextVNode, vShow, withModifiers } from 'vue';
2
2
  import { useEventListener, useTimeoutFn } from '@vueuse/core';
3
3
  import Icon from '../icon/Icon.vue.js';
4
4
  import Close from '../icon/icons/Close.vue.js';
@@ -12,18 +12,18 @@ const _hoisted_1 = ["id"];
12
12
  const _hoisted_2 = { class: "container" };
13
13
  const _hoisted_3 = { class: "texts" };
14
14
  const _hoisted_4 = ["innerHTML"];
15
- const _sfc_main = defineComponent({
15
+ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  __name: "Snackbar",
17
17
  props: {
18
- customClass: {},
18
+ customClass: null,
19
19
  dangerouslyUseHTMLString: { type: Boolean },
20
20
  duration: { default: 3e3 },
21
- icon: {},
22
- id: {},
23
- message: {},
24
- offset: {},
25
- onClick: {},
26
- onClose: {},
21
+ icon: null,
22
+ id: null,
23
+ message: null,
24
+ offset: null,
25
+ onClick: null,
26
+ onClose: null,
27
27
  type: { default: null },
28
28
  position: { default: "top-right" },
29
29
  showClose: { type: Boolean, default: true },
@@ -91,64 +91,64 @@ const _sfc_main = defineComponent({
91
91
  return (_ctx, _cache) => {
92
92
  return openBlock(), createBlock(Transition, {
93
93
  name: "snackbar",
94
- onBeforeLeave: _ctx.onClose,
94
+ onBeforeLeave: __props.onClose,
95
95
  onAfterLeave: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("destroy"))
96
96
  }, {
97
97
  default: withCtx(() => [
98
98
  withDirectives(createElementVNode("div", {
99
- id: _ctx.id,
100
- class: normalizeClass(["snackbar", [_ctx.customClass, horizontalClass.value]]),
101
- style: normalizeStyle(positionStyle.value),
99
+ id: __props.id,
100
+ class: normalizeClass(["snackbar", [__props.customClass, unref(horizontalClass)]]),
101
+ style: normalizeStyle(unref(positionStyle)),
102
102
  role: "alert",
103
103
  onMouseenter: clearTimer,
104
104
  onMouseleave: startTimer,
105
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
105
+ onClick: _cache[0] || (_cache[0] = (...args) => __props.onClick && __props.onClick(...args))
106
106
  }, [
107
- iconComponent.value ? (openBlock(), createElementBlock("div", {
107
+ unref(iconComponent) ? (openBlock(), createElementBlock("div", {
108
108
  key: 0,
109
- class: normalizeClass(["start-icon-container", [typeClass.value]])
109
+ class: normalizeClass(["start-icon-container", [unref(typeClass)]])
110
110
  }, [
111
111
  createVNode(unref(Icon), {
112
- "font-size": typeClass.value ? "sm" : "lg"
112
+ "font-size": unref(typeClass) ? "sm" : "lg"
113
113
  }, {
114
114
  default: withCtx(() => [
115
- (openBlock(), createBlock(resolveDynamicComponent(iconComponent.value)))
115
+ (openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent))))
116
116
  ]),
117
117
  _: 1
118
118
  }, 8, ["font-size"])
119
119
  ], 2)) : createCommentVNode("", true),
120
120
  createElementVNode("div", _hoisted_2, [
121
121
  createElementVNode("div", _hoisted_3, [
122
- _ctx.title ? (openBlock(), createBlock(Text, {
122
+ __props.title ? (openBlock(), createBlock(Text, {
123
123
  key: 0,
124
124
  size: "md",
125
125
  strong: "",
126
126
  class: "title",
127
- textContent: toDisplayString(_ctx.title)
127
+ textContent: toDisplayString(__props.title)
128
128
  }, null, 8, ["textContent"])) : createCommentVNode("", true),
129
129
  withDirectives(createElementVNode("div", {
130
130
  class: "message",
131
- style: normalizeStyle(!!_ctx.title ? void 0 : { margin: 0 })
131
+ style: normalizeStyle(!!__props.title ? void 0 : { margin: 0 })
132
132
  }, [
133
133
  renderSlot(_ctx.$slots, "default", {}, () => [
134
- !_ctx.dangerouslyUseHTMLString ? (openBlock(), createBlock(Text, {
134
+ !__props.dangerouslyUseHTMLString ? (openBlock(), createBlock(Text, {
135
135
  key: 0,
136
136
  size: "sm"
137
137
  }, {
138
138
  default: withCtx(() => [
139
- createTextVNode(toDisplayString(_ctx.message), 1)
139
+ createTextVNode(toDisplayString(__props.message), 1)
140
140
  ]),
141
141
  _: 1
142
142
  })) : (openBlock(), createElementBlock("div", {
143
143
  key: 1,
144
- innerHTML: _ctx.message
144
+ innerHTML: __props.message
145
145
  }, null, 8, _hoisted_4))
146
146
  ], true)
147
147
  ], 4), [
148
- [vShow, _ctx.message]
148
+ [vShow, __props.message]
149
149
  ])
150
150
  ]),
151
- _ctx.showClose ? (openBlock(), createBlock(IconButton, {
151
+ __props.showClose ? (openBlock(), createBlock(IconButton, {
152
152
  key: 0,
153
153
  theme: "third",
154
154
  size: "sm",
@@ -2,19 +2,24 @@ 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';
17
- }, {}>;
21
+ testId: string;
22
+ }>;
18
23
  export default _default;
19
24
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
25
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,16 +1,19 @@
1
- import { defineComponent, ref, computed, onMounted, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, 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 _sfc_main = defineComponent({
8
+ const _hoisted_1 = ["data-testid"];
9
+ const _hoisted_2 = ["aria-label", "data-testid", "onClick"];
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
9
11
  __name: "Switch",
10
12
  props: {
11
- options: {},
12
- modelValue: {},
13
- size: { default: "lg" }
13
+ options: null,
14
+ modelValue: null,
15
+ size: { default: "lg" },
16
+ testId: { default: "" }
14
17
  },
15
18
  emits: ["update:modelValue"],
16
19
  setup(__props, { emit }) {
@@ -37,43 +40,48 @@ const _sfc_main = defineComponent({
37
40
  };
38
41
  return (_ctx, _cache) => {
39
42
  return openBlock(), createElementBlock("div", {
40
- class: normalizeClass(["switch", { "switch--lg": _ctx.size === "lg", "switch--sm": _ctx.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",
44
48
  ref: box,
45
- class: normalizeClass(["box", { "box--lg": _ctx.size === "lg", "box--sm": _ctx.size === "sm" }]),
49
+ class: normalizeClass(["box", { "box--lg": __props.size === "lg", "box--sm": __props.size === "sm" }]),
46
50
  style: normalizeStyle({
47
- transform: `translateX(${selectedPosition.value?.left}px)`,
48
- width: selectedPosition.value?.width + "px"
51
+ transform: `translateX(${unref(selectedPosition)?.left}px)`,
52
+ width: unref(selectedPosition)?.width + "px"
49
53
  })
50
54
  }, null, 6),
51
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option, index) => {
55
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
52
56
  return openBlock(), createElementBlock("button", {
53
57
  ref_for: true,
54
58
  ref: skipUnwrap.optionsRefs,
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";
33
- }, {}>[];
43
+ testId: string;
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,8 +84,7 @@ 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;
95
90
  type __VLS_TypePropsToRuntimeProps<T> = {