@ironsource/shared-ui 1.4.2-rc.16 → 1.4.2-rc.18

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 (121) 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/Dropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  15. package/FilterDropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  16. package/FiltersPanel.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  17. package/Heading.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  18. package/Input.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  19. package/Menu.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  20. package/RadioButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  21. package/RadioGroup.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  22. package/Search.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  23. package/Switch.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  24. package/Table.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  25. package/Tabs.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  26. package/Text.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  27. package/TextArea.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  28. package/TextWithTitleContent.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  29. package/Toggle.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  30. package/components/appTrigger/AppTrigger.vue.d.ts +5 -0
  31. package/components/appTrigger/AppTrigger.vue.js +29 -16
  32. package/components/appTrigger/index.d.ts +11 -0
  33. package/components/autocompleteDropdown/AutocompleteDropdown.vue.d.ts +5 -0
  34. package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +7 -4
  35. package/components/autocompleteDropdown/AutocompleteInput.vue.d.ts +5 -0
  36. package/components/autocompleteDropdown/AutocompleteInput.vue.js +12 -6
  37. package/components/autocompleteDropdown/index.d.ts +11 -0
  38. package/components/banner/Banner.vue.d.ts +9 -0
  39. package/components/banner/Banner.vue.js +20 -9
  40. package/components/banner/index.d.ts +9 -0
  41. package/components/button/Button.vue.d.ts +5 -0
  42. package/components/button/Button.vue.js +6 -4
  43. package/components/button/index.d.ts +11 -0
  44. package/components/checkbox/Checkbox.vue.d.ts +5 -0
  45. package/components/checkbox/Checkbox.vue.js +20 -14
  46. package/components/checkbox/index.d.ts +11 -0
  47. package/components/chip/Chip.vue.d.ts +5 -0
  48. package/components/chip/Chip.vue.js +11 -6
  49. package/components/chip/index.d.ts +11 -0
  50. package/components/datePicker/DatePicker.vue.d.ts +5 -0
  51. package/components/datePicker/DatePicker.vue.js +11 -6
  52. package/components/datePicker/DatePickerMonth.vue.d.ts +5 -0
  53. package/components/datePicker/DatePickerMonth.vue.js +5 -3
  54. package/components/datePicker/index.d.ts +11 -0
  55. package/components/dateRange/CalendarMonth.vue.d.ts +5 -0
  56. package/components/dateRange/CalendarMonth.vue.js +39 -21
  57. package/components/dateRange/DateRange.vue.d.ts +5 -0
  58. package/components/dateRange/DateRange.vue.js +49 -36
  59. package/components/dateRange/DateRangePicker.vue.d.ts +5 -0
  60. package/components/dateRange/index.d.ts +11 -0
  61. package/components/dialog/Dialog.vue.d.ts +5 -0
  62. package/components/dialog/Dialog.vue.js +38 -23
  63. package/components/dialog/index.d.ts +11 -0
  64. package/components/dropdown/Dropdown.vue.d.ts +1 -1
  65. package/components/dropdown/Dropdown.vue.js +41 -32
  66. package/components/dropdown/index.d.ts +11 -11
  67. package/components/filterDropdown/AddFilterButton.vue.d.ts +2 -0
  68. package/components/filterDropdown/AddFilterButton.vue.js +6 -4
  69. package/components/filterDropdown/FilterDropdown.vue.d.ts +5 -0
  70. package/components/filterDropdown/FilterDropdown.vue.js +8 -5
  71. package/components/filterDropdown/index.d.ts +17 -0
  72. package/components/filtersPanel/FiltersPanel.vue.d.ts +5 -0
  73. package/components/filtersPanel/FiltersPanel.vue.js +7 -4
  74. package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
  75. package/components/includeExclude/IncludeExclude.vue.js +1 -1
  76. package/components/includeExclude/index.d.ts +11 -11
  77. package/components/input/Input.vue.d.ts +5 -0
  78. package/components/input/Input.vue.js +44 -31
  79. package/components/input/index.d.ts +17 -0
  80. package/components/menu/Menu.vue.d.ts +5 -0
  81. package/components/menu/Menu.vue.js +6 -4
  82. package/components/menu/index.d.ts +11 -0
  83. package/components/popover/Popover.vue.d.ts +5 -0
  84. package/components/popover/Popover.vue.js +5 -3
  85. package/components/popover/index.d.ts +11 -0
  86. package/components/radioButton/RadioButton.vue.d.ts +5 -0
  87. package/components/radioButton/RadioButton.vue.js +15 -8
  88. package/components/radioButton/RadioGroup.vue.d.ts +5 -0
  89. package/components/radioButton/RadioGroup.vue.js +9 -5
  90. package/components/radioButton/index.d.ts +22 -0
  91. package/components/search/Search.vue.d.ts +5 -0
  92. package/components/search/Search.vue.js +13 -7
  93. package/components/search/index.d.ts +11 -0
  94. package/components/switch/Switch.vue.d.ts +5 -0
  95. package/components/switch/Switch.vue.js +17 -9
  96. package/components/switch/index.d.ts +11 -0
  97. package/components/table/Table.vue.d.ts +5 -0
  98. package/components/table/Table.vue.js +58 -36
  99. package/components/table/index.d.ts +11 -0
  100. package/components/tabs/Tabs.vue.d.ts +5 -0
  101. package/components/tabs/Tabs.vue.js +20 -15
  102. package/components/tabs/index.d.ts +11 -0
  103. package/components/textArea/TextArea.vue.d.ts +5 -0
  104. package/components/textArea/TextArea.vue.js +23 -16
  105. package/components/textArea/index.d.ts +11 -0
  106. package/components/toggle/Toggle.vue.d.ts +5 -0
  107. package/components/toggle/Toggle.vue.js +29 -18
  108. package/components/toggle/index.d.ts +11 -0
  109. package/components/tooltip/TextWithTitleContent.vue.d.ts +16 -3
  110. package/components/tooltip/TextWithTitleContent.vue.js +11 -6
  111. package/components/tooltip/Tooltip.vue.d.ts +5 -0
  112. package/components/tooltip/Tooltip.vue.js +8 -4
  113. package/components/tooltip/index.d.ts +11 -0
  114. package/components/typography/Heading.vue.d.ts +5 -0
  115. package/components/typography/Heading.vue.js +7 -4
  116. package/components/typography/Text.vue.d.ts +5 -0
  117. package/components/typography/Text.vue.js +8 -4
  118. package/components/typography/index.d.ts +22 -0
  119. package/package.json +1 -1
  120. package/testids/index.d.ts +142 -10
  121. package/testids/index.vue.js +163 -11
@@ -3,17 +3,20 @@ import Icon from '../icon/Icon.vue.js';
3
3
  import Text from '../typography/Text.vue.js';
4
4
  import { useDropdownContext } from '../dropdown/DropdownContext.vue.js';
5
5
  import { DEFAULT_PLACEHOLDER } from './consts.vue.js';
6
+ import { AutocompleteInputTestIdModifiers } from '../../testids/index.vue.js';
6
7
  /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
7
8
 
8
9
  import "../../AutocompleteInput.vue_vue_type_style_index_0_scoped_true_lang.css";
9
- const _hoisted_1 = ["onClick"];
10
- const _hoisted_2 = ["value", "placeholder"];
10
+ const _hoisted_1 = ["data-testid", "onClick"];
11
+ const _hoisted_2 = ["data-testid"];
12
+ const _hoisted_3 = ["value", "placeholder", "data-testid"];
11
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
14
  __name: "AutocompleteInput",
13
15
  props: {
14
16
  value: { default: () => [] },
15
17
  displayValue: { type: Function, default: (option) => option.toString() },
16
- placeholder: { default: DEFAULT_PLACEHOLDER }
18
+ placeholder: { default: DEFAULT_PLACEHOLDER },
19
+ testId: { default: "" }
17
20
  },
18
21
  emits: ["remove", "search"],
19
22
  setup(__props, { expose, emit }) {
@@ -49,11 +52,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
52
  return (_ctx, _cache) => {
50
53
  return openBlock(), createElementBlock("div", {
51
54
  class: normalizeClass(["autocomplete-input", { "autocomplete-input--focused": unref(isOpen) }]),
55
+ "data-testid": `${__props.testId}-${unref(AutocompleteInputTestIdModifiers).WRAPPER}`,
52
56
  onClick: withModifiers(onContainerClick, ["stop"])
53
57
  }, [
54
58
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.value, (option, index) => {
55
59
  return openBlock(), createElementBlock("div", {
56
60
  key: index,
61
+ "data-testid": `${__props.testId}-${unref(AutocompleteInputTestIdModifiers).SELECTED_OPTION}-${index}`,
57
62
  class: "autocomplete-input__option"
58
63
  }, [
59
64
  renderSlot(_ctx.$slots, "option", { option }, () => [
@@ -73,7 +78,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
73
78
  "font-size": "sm",
74
79
  onClick: withModifiers(($event) => removeOption(option), ["stop"])
75
80
  }, null, 8, ["onClick"])
76
- ]);
81
+ ], 8, _hoisted_2);
77
82
  }), 128)),
78
83
  createElementVNode("input", {
79
84
  ref_key: "inputEl",
@@ -82,12 +87,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
82
87
  type: "text",
83
88
  value: unref(api).query.value,
84
89
  placeholder: __props.placeholder,
90
+ "data-testid": `${__props.testId}-${unref(AutocompleteInputTestIdModifiers).SEARCH_FIELD}`,
85
91
  onInput: onSearch
86
- }, null, 40, _hoisted_2)
92
+ }, null, 40, _hoisted_3)
87
93
  ], 10, _hoisted_1);
88
94
  };
89
95
  }
90
96
  });
91
- var AutocompleteInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0e10ff6d"]]);
97
+ var AutocompleteInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b95f1c9c"]]);
92
98
 
93
99
  export { AutocompleteInput as default };
@@ -1,4 +1,9 @@
1
1
  declare const AutocompleteDropdownTypes: () => import("vue").DefineComponent<{
2
+ testId: {
3
+ type: import("vue").PropType<string>;
4
+ } & {
5
+ default: string;
6
+ };
2
7
  selected: {
3
8
  type: import("vue").PropType<unknown[]>;
4
9
  } & {
@@ -35,6 +40,11 @@ declare const AutocompleteDropdownTypes: () => import("vue").DefineComponent<{
35
40
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
41
  "update:selected": (value: unknown) => void;
37
42
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ testId: {
44
+ type: import("vue").PropType<string>;
45
+ } & {
46
+ default: string;
47
+ };
38
48
  selected: {
39
49
  type: import("vue").PropType<unknown[]>;
40
50
  } & {
@@ -71,6 +81,7 @@ declare const AutocompleteDropdownTypes: () => import("vue").DefineComponent<{
71
81
  }>> & {
72
82
  "onUpdate:selected"?: (value: unknown) => any;
73
83
  }, {
84
+ testId: string;
74
85
  selected: unknown[];
75
86
  options: unknown[];
76
87
  placeholder: string;
@@ -7,6 +7,10 @@ declare const _default: import("vue").DefineComponent<{
7
7
  type: () => 'sm' | 'md' | 'lg';
8
8
  default: string;
9
9
  };
10
+ testId: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
10
14
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
15
  type: {
12
16
  type: () => 'success' | 'error' | 'info' | 'warning';
@@ -16,8 +20,13 @@ declare const _default: import("vue").DefineComponent<{
16
20
  type: () => 'sm' | 'md' | 'lg';
17
21
  default: string;
18
22
  };
23
+ testId: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
19
27
  }>>, {
20
28
  type: "error" | "info" | "success" | "warning";
29
+ testId: string;
21
30
  iconSize: "md" | "sm" | "lg";
22
31
  }>;
23
32
  export default _default;
@@ -1,13 +1,14 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, unref, withCtx, renderSlot, pushScopeId, popScopeId } from 'vue';
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, unref, createBlock, withCtx, renderSlot, pushScopeId, popScopeId } from 'vue';
2
2
  import Icon from '../icon/Icon.vue.js';
3
+ import { BannerTestIdModifiers } 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 "../../Banner.vue_vue_type_style_index_0_scoped_true_lang.css";
6
- const _withScopeId = (n) => (pushScopeId("data-v-36d41da7"), n = n(), popScopeId(), n);
7
+ const _withScopeId = (n) => (pushScopeId("data-v-1a74058c"), n = n(), popScopeId(), n);
7
8
  const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "left-border" }, null, -1));
8
- const _hoisted_2 = { class: "content-wrapper" };
9
+ const _hoisted_2 = ["data-testid"];
9
10
  const _hoisted_3 = { class: "icon-container" };
10
- const _hoisted_4 = { class: "content" };
11
+ const _hoisted_4 = ["data-testid"];
11
12
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
13
  __name: "Banner",
13
14
  props: {
@@ -18,6 +19,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18
19
  iconSize: {
19
20
  type: String,
20
21
  default: "md"
22
+ },
23
+ testId: {
24
+ type: String,
25
+ default: ""
21
26
  }
22
27
  },
23
28
  setup(__props) {
@@ -28,7 +33,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
33
  class: normalizeClass(["banner", `banner-type-${__props.type}`])
29
34
  }, [
30
35
  _hoisted_1,
31
- createElementVNode("div", _hoisted_2, [
36
+ createElementVNode("div", {
37
+ class: "content-wrapper",
38
+ "data-testid": `${__props.testId}-${unref(BannerTestIdModifiers).WRAPPER}`
39
+ }, [
32
40
  createElementVNode("div", _hoisted_3, [
33
41
  _ctx.$slots.icon ? (openBlock(), createBlock(unref(Icon), {
34
42
  key: 0,
@@ -45,14 +53,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
53
  "font-size": __props.iconSize
46
54
  }, null, 8, ["name", "class", "font-size"]))
47
55
  ]),
48
- createElementVNode("div", _hoisted_4, [
56
+ createElementVNode("div", {
57
+ class: "content",
58
+ "data-testid": `${__props.testId}-${unref(BannerTestIdModifiers).CONTENT}`
59
+ }, [
49
60
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
50
- ])
51
- ])
61
+ ], 8, _hoisted_4)
62
+ ], 8, _hoisted_2)
52
63
  ], 2);
53
64
  };
54
65
  }
55
66
  });
56
- var Banner = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-36d41da7"]]);
67
+ var Banner = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1a74058c"]]);
57
68
 
58
69
  export { Banner as default };
@@ -7,6 +7,10 @@ declare const BannerTypes: () => import("vue").DefineComponent<{
7
7
  type: () => "md" | "sm" | "lg";
8
8
  default: string;
9
9
  };
10
+ testId: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
10
14
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
15
  type: {
12
16
  type: () => "error" | "info" | "success" | "warning";
@@ -16,8 +20,13 @@ declare const BannerTypes: () => import("vue").DefineComponent<{
16
20
  type: () => "md" | "sm" | "lg";
17
21
  default: string;
18
22
  };
23
+ testId: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
19
27
  }>>, {
20
28
  type: "error" | "info" | "success" | "warning";
29
+ testId: string;
21
30
  iconSize: "md" | "sm" | "lg";
22
31
  }>[];
23
32
  export { default as Banner } from './Banner.vue';
@@ -3,20 +3,25 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
3
3
  leftIconName?: IconName;
4
4
  rightIconName?: IconName;
5
5
  size?: 'sm' | 'md' | 'lg';
6
+ testId?: string;
6
7
  }>, {
7
8
  leftIconName: any;
8
9
  rightIconName: any;
9
10
  size: string;
11
+ testId: string;
10
12
  }>, {}, 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<{
11
13
  leftIconName?: IconName;
12
14
  rightIconName?: IconName;
13
15
  size?: 'sm' | 'md' | 'lg';
16
+ testId?: string;
14
17
  }>, {
15
18
  leftIconName: any;
16
19
  rightIconName: any;
17
20
  size: string;
21
+ testId: string;
18
22
  }>>>, {
19
23
  size: 'sm' | 'md' | 'lg';
24
+ testId: string;
20
25
  leftIconName: IconName;
21
26
  rightIconName: IconName;
22
27
  }>;
@@ -10,7 +10,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  props: {
11
11
  leftIconName: { default: null },
12
12
  rightIconName: { default: null },
13
- size: { default: "md" }
13
+ size: { default: "md" },
14
+ testId: { default: "" }
14
15
  },
15
16
  setup(__props) {
16
17
  const props = __props;
@@ -24,7 +25,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
25
  "with-right-icon": !!__props.rightIconName
25
26
  }
26
27
  ],
27
- size: __props.size
28
+ size: __props.size,
29
+ "data-testid": props.testId
28
30
  }, _ctx.$attrs), createSlots({
29
31
  default: withCtx(() => [
30
32
  createElementVNode("div", {
@@ -54,10 +56,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54
56
  ]),
55
57
  key: "0"
56
58
  } : void 0
57
- ]), 1040, ["class", "size"]);
59
+ ]), 1040, ["class", "size", "data-testid"]);
58
60
  };
59
61
  }
60
62
  });
61
- var Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8e54ca3e"]]);
63
+ var Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-195cffac"]]);
62
64
 
63
65
  export { Button as default };
@@ -7,6 +7,11 @@ declare const ButtonTypes: () => (import("vue").DefineComponent<{
7
7
  } & {
8
8
  default: string;
9
9
  };
10
+ testId: {
11
+ type: import("vue").PropType<string>;
12
+ } & {
13
+ default: string;
14
+ };
10
15
  leftIconName: {
11
16
  type: import("vue").PropType<"search" | "link" | "filter" | "a" | "b" | "style" | "image" | "switch" | "a-2" | "ab-test" | "ab-test-2" | "a-circle" | "account-balance-wallet" | "account-circle" | "account-circle-outline" | "add" | "analytics" | "android" | "angle-down" | "angle-left" | "angle-right" | "angle-up" | "app-store" | "area-chart" | "arrow-back" | "arrow-downward" | "arrow-forward" | "arrow-left" | "arrow-right" | "arrow-sort-down" | "arrow-sort-up" | "arrow-upward" | "auto-awesome" | "auto-mode" | "autorenew" | "b-2" | "b-circle" | "banner" | "bidding" | "bidding-2" | "block" | "border-color" | "bug" | "bullhorn" | "bullseye-arrow" | "cached" | "calendar" | "calendar-today" | "cancel" | "chart-bar" | "chart-line" | "chart-mixed" | "check" | "check-bold" | "close" | "close-bold" | "computer-mouse" | "copy-to-clipboard" | "widgets-flat-squares" | "adjust" | "copy-to-clipboard-filled" | "cube" | "cube-background" | "marketing" | "create" | "creative" | "cross" | "crown-fill" | "cup" | "cup-a" | "cup-b" | "delete" | "diamond" | "dots" | "download" | "download-2" | "download-done" | "drag-indicator" | "ecpi" | "email" | "email-envelope" | "error" | "eye" | "favorite-border" | "filter-list" | "frame" | "fullscreen" | "fullscreen-exit" | "functions" | "gamepad-alt" | "games" | "gavel" | "gift" | "git-hub" | "globe-stand" | "google-play" | "group" | "hand-pointer" | "hands" | "heartbeat" | "help" | "help-outline" | "history" | "ios" | "image-not-supported" | "image-slash" | "import-export" | "import-export-2" | "importent" | "info" | "info-outline" | "insights" | "interstitial" | "ios-14" | "js" | "landscape" | "launch" | "levelplay" | "limit-circle" | "limit-octagon" | "loading-clean" | "lock" | "lock-open" | "login" | "logout" | "military-tech" | "mix" | "mix-2" | "mobile-landscape" | "mobile-portrait" | "money-check" | "more-horiz" | "more-vert" | "mouse" | "mouse-pointer" | "moving-up" | "notifications-none" | "offerwall" | "palyable" | "paper-plane-off" | "paper-plane" | "pause" | "pause-circle-filled" | "pause-circle-outline" | "phone-iphone" | "photo" | "photo-2" | "play-arrow" | "play-circle-filled-white" | "play-circle-outline" | "qrcode" | "quick-ab" | "quick-ab-2" | "react" | "redo" | "refresh" | "remove" | "replay" | "rewarded-video" | "rocket-launch" | "rotate" | "route" | "sack-dollar" | "schedule" | "search-bold" | "share" | "slack" | "sports-esports" | "star" | "star-fill" | "status-banner" | "status-interstitial" | "status-offerwall" | "status-rewarded-video" | "stop-circle-filled" | "stop-circle-outline" | "success" | "success-full" | "tablet-landscape" | "tablet-mac" | "tablet-portrait" | "texture" | "theme-dark" | "theme-light" | "timelapse" | "timeline" | "trending-down" | "trending-flat" | "trending-up" | "tune" | "two-tone-banner" | "two-tone-interstitial" | "two-tone-offerwall" | "two-tone-rewarded-video" | "undo" | "unfold-less" | "unfold-more" | "vertical-align-top" | "vertical-align-top-2" | "vibration" | "video-round" | "view-carousel" | "visibility" | "visibility-off" | "visibility-off-strok" | "visibility-strok" | "volume-off" | "volume-up" | "warning" | "warning-2" | "web-app" | "widgets" | "widgets-fill" | "widgetsz" | "wifi-protected-setup" | "native-ad" | "status-native-ad" | "two-tone-native-ad">;
12
17
  } & {
@@ -23,6 +28,11 @@ declare const ButtonTypes: () => (import("vue").DefineComponent<{
23
28
  } & {
24
29
  default: string;
25
30
  };
31
+ testId: {
32
+ type: import("vue").PropType<string>;
33
+ } & {
34
+ default: string;
35
+ };
26
36
  leftIconName: {
27
37
  type: import("vue").PropType<"search" | "link" | "filter" | "a" | "b" | "style" | "image" | "switch" | "a-2" | "ab-test" | "ab-test-2" | "a-circle" | "account-balance-wallet" | "account-circle" | "account-circle-outline" | "add" | "analytics" | "android" | "angle-down" | "angle-left" | "angle-right" | "angle-up" | "app-store" | "area-chart" | "arrow-back" | "arrow-downward" | "arrow-forward" | "arrow-left" | "arrow-right" | "arrow-sort-down" | "arrow-sort-up" | "arrow-upward" | "auto-awesome" | "auto-mode" | "autorenew" | "b-2" | "b-circle" | "banner" | "bidding" | "bidding-2" | "block" | "border-color" | "bug" | "bullhorn" | "bullseye-arrow" | "cached" | "calendar" | "calendar-today" | "cancel" | "chart-bar" | "chart-line" | "chart-mixed" | "check" | "check-bold" | "close" | "close-bold" | "computer-mouse" | "copy-to-clipboard" | "widgets-flat-squares" | "adjust" | "copy-to-clipboard-filled" | "cube" | "cube-background" | "marketing" | "create" | "creative" | "cross" | "crown-fill" | "cup" | "cup-a" | "cup-b" | "delete" | "diamond" | "dots" | "download" | "download-2" | "download-done" | "drag-indicator" | "ecpi" | "email" | "email-envelope" | "error" | "eye" | "favorite-border" | "filter-list" | "frame" | "fullscreen" | "fullscreen-exit" | "functions" | "gamepad-alt" | "games" | "gavel" | "gift" | "git-hub" | "globe-stand" | "google-play" | "group" | "hand-pointer" | "hands" | "heartbeat" | "help" | "help-outline" | "history" | "ios" | "image-not-supported" | "image-slash" | "import-export" | "import-export-2" | "importent" | "info" | "info-outline" | "insights" | "interstitial" | "ios-14" | "js" | "landscape" | "launch" | "levelplay" | "limit-circle" | "limit-octagon" | "loading-clean" | "lock" | "lock-open" | "login" | "logout" | "military-tech" | "mix" | "mix-2" | "mobile-landscape" | "mobile-portrait" | "money-check" | "more-horiz" | "more-vert" | "mouse" | "mouse-pointer" | "moving-up" | "notifications-none" | "offerwall" | "palyable" | "paper-plane-off" | "paper-plane" | "pause" | "pause-circle-filled" | "pause-circle-outline" | "phone-iphone" | "photo" | "photo-2" | "play-arrow" | "play-circle-filled-white" | "play-circle-outline" | "qrcode" | "quick-ab" | "quick-ab-2" | "react" | "redo" | "refresh" | "remove" | "replay" | "rewarded-video" | "rocket-launch" | "rotate" | "route" | "sack-dollar" | "schedule" | "search-bold" | "share" | "slack" | "sports-esports" | "star" | "star-fill" | "status-banner" | "status-interstitial" | "status-offerwall" | "status-rewarded-video" | "stop-circle-filled" | "stop-circle-outline" | "success" | "success-full" | "tablet-landscape" | "tablet-mac" | "tablet-portrait" | "texture" | "theme-dark" | "theme-light" | "timelapse" | "timeline" | "trending-down" | "trending-flat" | "trending-up" | "tune" | "two-tone-banner" | "two-tone-interstitial" | "two-tone-offerwall" | "two-tone-rewarded-video" | "undo" | "unfold-less" | "unfold-more" | "vertical-align-top" | "vertical-align-top-2" | "vibration" | "video-round" | "view-carousel" | "visibility" | "visibility-off" | "visibility-off-strok" | "visibility-strok" | "volume-off" | "volume-up" | "warning" | "warning-2" | "web-app" | "widgets" | "widgets-fill" | "widgetsz" | "wifi-protected-setup" | "native-ad" | "status-native-ad" | "two-tone-native-ad">;
28
38
  } & {
@@ -35,6 +45,7 @@ declare const ButtonTypes: () => (import("vue").DefineComponent<{
35
45
  };
36
46
  }>>, {
37
47
  size: "md" | "sm" | "lg";
48
+ testId: string;
38
49
  leftIconName: "search" | "link" | "filter" | "a" | "b" | "style" | "image" | "switch" | "a-2" | "ab-test" | "ab-test-2" | "a-circle" | "account-balance-wallet" | "account-circle" | "account-circle-outline" | "add" | "analytics" | "android" | "angle-down" | "angle-left" | "angle-right" | "angle-up" | "app-store" | "area-chart" | "arrow-back" | "arrow-downward" | "arrow-forward" | "arrow-left" | "arrow-right" | "arrow-sort-down" | "arrow-sort-up" | "arrow-upward" | "auto-awesome" | "auto-mode" | "autorenew" | "b-2" | "b-circle" | "banner" | "bidding" | "bidding-2" | "block" | "border-color" | "bug" | "bullhorn" | "bullseye-arrow" | "cached" | "calendar" | "calendar-today" | "cancel" | "chart-bar" | "chart-line" | "chart-mixed" | "check" | "check-bold" | "close" | "close-bold" | "computer-mouse" | "copy-to-clipboard" | "widgets-flat-squares" | "adjust" | "copy-to-clipboard-filled" | "cube" | "cube-background" | "marketing" | "create" | "creative" | "cross" | "crown-fill" | "cup" | "cup-a" | "cup-b" | "delete" | "diamond" | "dots" | "download" | "download-2" | "download-done" | "drag-indicator" | "ecpi" | "email" | "email-envelope" | "error" | "eye" | "favorite-border" | "filter-list" | "frame" | "fullscreen" | "fullscreen-exit" | "functions" | "gamepad-alt" | "games" | "gavel" | "gift" | "git-hub" | "globe-stand" | "google-play" | "group" | "hand-pointer" | "hands" | "heartbeat" | "help" | "help-outline" | "history" | "ios" | "image-not-supported" | "image-slash" | "import-export" | "import-export-2" | "importent" | "info" | "info-outline" | "insights" | "interstitial" | "ios-14" | "js" | "landscape" | "launch" | "levelplay" | "limit-circle" | "limit-octagon" | "loading-clean" | "lock" | "lock-open" | "login" | "logout" | "military-tech" | "mix" | "mix-2" | "mobile-landscape" | "mobile-portrait" | "money-check" | "more-horiz" | "more-vert" | "mouse" | "mouse-pointer" | "moving-up" | "notifications-none" | "offerwall" | "palyable" | "paper-plane-off" | "paper-plane" | "pause" | "pause-circle-filled" | "pause-circle-outline" | "phone-iphone" | "photo" | "photo-2" | "play-arrow" | "play-circle-filled-white" | "play-circle-outline" | "qrcode" | "quick-ab" | "quick-ab-2" | "react" | "redo" | "refresh" | "remove" | "replay" | "rewarded-video" | "rocket-launch" | "rotate" | "route" | "sack-dollar" | "schedule" | "search-bold" | "share" | "slack" | "sports-esports" | "star" | "star-fill" | "status-banner" | "status-interstitial" | "status-offerwall" | "status-rewarded-video" | "stop-circle-filled" | "stop-circle-outline" | "success" | "success-full" | "tablet-landscape" | "tablet-mac" | "tablet-portrait" | "texture" | "theme-dark" | "theme-light" | "timelapse" | "timeline" | "trending-down" | "trending-flat" | "trending-up" | "tune" | "two-tone-banner" | "two-tone-interstitial" | "two-tone-offerwall" | "two-tone-rewarded-video" | "undo" | "unfold-less" | "unfold-more" | "vertical-align-top" | "vertical-align-top-2" | "vibration" | "video-round" | "view-carousel" | "visibility" | "visibility-off" | "visibility-off-strok" | "visibility-strok" | "volume-off" | "volume-up" | "warning" | "warning-2" | "web-app" | "widgets" | "widgets-fill" | "widgetsz" | "wifi-protected-setup" | "native-ad" | "status-native-ad" | "two-tone-native-ad";
39
50
  rightIconName: "search" | "link" | "filter" | "a" | "b" | "style" | "image" | "switch" | "a-2" | "ab-test" | "ab-test-2" | "a-circle" | "account-balance-wallet" | "account-circle" | "account-circle-outline" | "add" | "analytics" | "android" | "angle-down" | "angle-left" | "angle-right" | "angle-up" | "app-store" | "area-chart" | "arrow-back" | "arrow-downward" | "arrow-forward" | "arrow-left" | "arrow-right" | "arrow-sort-down" | "arrow-sort-up" | "arrow-upward" | "auto-awesome" | "auto-mode" | "autorenew" | "b-2" | "b-circle" | "banner" | "bidding" | "bidding-2" | "block" | "border-color" | "bug" | "bullhorn" | "bullseye-arrow" | "cached" | "calendar" | "calendar-today" | "cancel" | "chart-bar" | "chart-line" | "chart-mixed" | "check" | "check-bold" | "close" | "close-bold" | "computer-mouse" | "copy-to-clipboard" | "widgets-flat-squares" | "adjust" | "copy-to-clipboard-filled" | "cube" | "cube-background" | "marketing" | "create" | "creative" | "cross" | "crown-fill" | "cup" | "cup-a" | "cup-b" | "delete" | "diamond" | "dots" | "download" | "download-2" | "download-done" | "drag-indicator" | "ecpi" | "email" | "email-envelope" | "error" | "eye" | "favorite-border" | "filter-list" | "frame" | "fullscreen" | "fullscreen-exit" | "functions" | "gamepad-alt" | "games" | "gavel" | "gift" | "git-hub" | "globe-stand" | "google-play" | "group" | "hand-pointer" | "hands" | "heartbeat" | "help" | "help-outline" | "history" | "ios" | "image-not-supported" | "image-slash" | "import-export" | "import-export-2" | "importent" | "info" | "info-outline" | "insights" | "interstitial" | "ios-14" | "js" | "landscape" | "launch" | "levelplay" | "limit-circle" | "limit-octagon" | "loading-clean" | "lock" | "lock-open" | "login" | "logout" | "military-tech" | "mix" | "mix-2" | "mobile-landscape" | "mobile-portrait" | "money-check" | "more-horiz" | "more-vert" | "mouse" | "mouse-pointer" | "moving-up" | "notifications-none" | "offerwall" | "palyable" | "paper-plane-off" | "paper-plane" | "pause" | "pause-circle-filled" | "pause-circle-outline" | "phone-iphone" | "photo" | "photo-2" | "play-arrow" | "play-circle-filled-white" | "play-circle-outline" | "qrcode" | "quick-ab" | "quick-ab-2" | "react" | "redo" | "refresh" | "remove" | "replay" | "rewarded-video" | "rocket-launch" | "rotate" | "route" | "sack-dollar" | "schedule" | "search-bold" | "share" | "slack" | "sports-esports" | "star" | "star-fill" | "status-banner" | "status-interstitial" | "status-offerwall" | "status-rewarded-video" | "stop-circle-filled" | "stop-circle-outline" | "success" | "success-full" | "tablet-landscape" | "tablet-mac" | "tablet-portrait" | "texture" | "theme-dark" | "theme-light" | "timelapse" | "timeline" | "trending-down" | "trending-flat" | "trending-up" | "tune" | "two-tone-banner" | "two-tone-interstitial" | "two-tone-offerwall" | "two-tone-rewarded-video" | "undo" | "unfold-less" | "unfold-more" | "vertical-align-top" | "vertical-align-top-2" | "vibration" | "video-round" | "view-carousel" | "visibility" | "visibility-off" | "visibility-off-strok" | "visibility-strok" | "volume-off" | "volume-up" | "warning" | "warning-2" | "web-app" | "widgets" | "widgets-fill" | "widgetsz" | "wifi-protected-setup" | "native-ad" | "status-native-ad" | "two-tone-native-ad";
40
51
  }> | import("vue").DefineComponent<{
@@ -4,9 +4,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
4
4
  disabled?: boolean;
5
5
  size?: 'sm' | 'md' | 'lg';
6
6
  label?: string;
7
+ testId?: string;
7
8
  }>, {
8
9
  size: string;
9
10
  label: string;
11
+ testId: string;
10
12
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
13
  "update:isChecked": (value: boolean) => void;
12
14
  } & {
@@ -17,15 +19,18 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
17
19
  disabled?: boolean;
18
20
  size?: 'sm' | 'md' | 'lg';
19
21
  label?: string;
22
+ testId?: string;
20
23
  }>, {
21
24
  size: string;
22
25
  label: string;
26
+ testId: string;
23
27
  }>>> & {
24
28
  onClick?: (event: MouseEvent) => any;
25
29
  "onUpdate:isChecked"?: (value: boolean) => any;
26
30
  }, {
27
31
  size: 'sm' | 'md' | 'lg';
28
32
  label: string;
33
+ testId: string;
29
34
  }>;
30
35
  export default _default;
31
36
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,4 +1,5 @@
1
- import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, mergeProps, unref, createVNode, withCtx, createBlock, createCommentVNode, renderSlot, createTextVNode, toDisplayString, pushScopeId, popScopeId } from 'vue';
1
+ import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, mergeProps, createVNode, withCtx, createBlock, createCommentVNode, renderSlot, createTextVNode, toDisplayString, pushScopeId, popScopeId } from 'vue';
2
+ import { CheckboxTestIdModifiers } from '../../testids/index.vue.js';
2
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 Icon from '../icon/Icon.vue.js';
@@ -9,10 +10,11 @@ import useIsFocusVisible from '../../composables/useIsFocusVisible.vue.js';
9
10
  import { useId } from '../../composables/useId.vue.js';
10
11
  /* empty css */
11
12
  import "../../Checkbox.vue_vue_type_style_index_0_scoped_true_lang.css";
12
- const _withScopeId = (n) => (pushScopeId("data-v-2662240e"), n = n(), popScopeId(), n);
13
- const _hoisted_1 = { class: "checkboxes" };
14
- const _hoisted_2 = ["disabled", "checked", ".indeterminate"];
15
- const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "checkbox__inner" }, null, -1));
13
+ const _withScopeId = (n) => (pushScopeId("data-v-53fc4034"), n = n(), popScopeId(), n);
14
+ const _hoisted_1 = ["data-testid"];
15
+ const _hoisted_2 = { class: "checkboxes" };
16
+ const _hoisted_3 = ["disabled", "checked", ".indeterminate", "data-testid"];
17
+ const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { class: "checkbox__inner" }, null, -1));
16
18
  const _sfc_main = /* @__PURE__ */ defineComponent({
17
19
  __name: "Checkbox",
18
20
  props: {
@@ -20,7 +22,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
22
  isIndeterminate: { type: Boolean },
21
23
  disabled: { type: Boolean },
22
24
  size: { default: "md" },
23
- label: { default: "" }
25
+ label: { default: "" },
26
+ testId: { default: "" }
24
27
  },
25
28
  emits: ["update:isChecked", "click"],
26
29
  setup(__props, { emit }) {
@@ -54,9 +57,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54
57
  return (_ctx, _cache) => {
55
58
  return openBlock(), createElementBlock("label", {
56
59
  for: id,
57
- class: normalizeClass([[__props.size, { "focus-visible": isFocusVisible.value, disabled: __props.disabled }], "checkbox"])
60
+ class: normalizeClass([[__props.size, { "focus-visible": isFocusVisible.value, disabled: __props.disabled }], "checkbox"]),
61
+ "data-testid": `${__props.testId}-${unref(CheckboxTestIdModifiers).WRAPPER}`
58
62
  }, [
59
- createElementVNode("span", _hoisted_1, [
63
+ createElementVNode("span", _hoisted_2, [
60
64
  createElementVNode("input", mergeProps(_ctx.$attrs, {
61
65
  id,
62
66
  ref: checkbox.value,
@@ -65,12 +69,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
65
69
  class: "input",
66
70
  ".indeterminate": unref(indeterminate),
67
71
  type: "checkbox",
72
+ "data-testid": `${__props.testId}-${unref(CheckboxTestIdModifiers).FIELD}`,
68
73
  onBlur: handleBlur,
69
74
  onFocus: handleFocus,
70
75
  onClick: _cache[0] || (_cache[0] = ($event) => emit("click", $event)),
71
76
  onInput: updateValue
72
- }), null, 16, _hoisted_2),
73
- _hoisted_3,
77
+ }), null, 16, _hoisted_3),
78
+ _hoisted_4,
74
79
  createVNode(unref(Icon), { "font-size": __props.size }, {
75
80
  default: withCtx(() => [
76
81
  unref(checked) ? (openBlock(), createBlock(Checked, {
@@ -92,7 +97,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
92
97
  __props.label || _ctx.$slots.default ? (openBlock(), createBlock(unref(Text), {
93
98
  key: 0,
94
99
  size: __props.size,
95
- class: "checkbox-text"
100
+ class: "checkbox-text",
101
+ "data-testid": `${__props.testId}-${unref(CheckboxTestIdModifiers).LABEL}`
96
102
  }, {
97
103
  default: withCtx(() => [
98
104
  renderSlot(_ctx.$slots, "default", {}, () => [
@@ -100,11 +106,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
100
106
  ], true)
101
107
  ]),
102
108
  _: 3
103
- }, 8, ["size"])) : createCommentVNode("", true)
104
- ], 2);
109
+ }, 8, ["size", "data-testid"])) : createCommentVNode("", true)
110
+ ], 10, _hoisted_1);
105
111
  };
106
112
  }
107
113
  });
108
- var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2662240e"]]);
114
+ var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-53fc4034"]]);
109
115
 
110
116
  export { Checkbox as default };
@@ -9,6 +9,11 @@ declare const CheckboxTypes: () => import("vue").DefineComponent<{
9
9
  } & {
10
10
  default: string;
11
11
  };
12
+ testId: {
13
+ type: import("vue").PropType<string>;
14
+ } & {
15
+ default: string;
16
+ };
12
17
  disabled: {
13
18
  type: import("vue").PropType<boolean>;
14
19
  };
@@ -34,6 +39,11 @@ declare const CheckboxTypes: () => import("vue").DefineComponent<{
34
39
  } & {
35
40
  default: string;
36
41
  };
42
+ testId: {
43
+ type: import("vue").PropType<string>;
44
+ } & {
45
+ default: string;
46
+ };
37
47
  disabled: {
38
48
  type: import("vue").PropType<boolean>;
39
49
  };
@@ -50,6 +60,7 @@ declare const CheckboxTypes: () => import("vue").DefineComponent<{
50
60
  }, {
51
61
  size: "md" | "sm" | "lg";
52
62
  label: string;
63
+ testId: string;
53
64
  }>[];
54
65
  export { default as Checkbox } from './Checkbox.vue';
55
66
  export { CheckboxTypes };
@@ -3,24 +3,29 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
3
3
  clearable?: boolean;
4
4
  prefix?: string;
5
5
  disabled?: boolean;
6
+ testId?: string;
6
7
  }>, {
7
8
  selected: boolean;
8
9
  clearable: boolean;
9
10
  prefix: any;
10
11
  disabled: boolean;
12
+ testId: string;
11
13
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "cleared"[], "cleared", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
14
  selected?: boolean;
13
15
  clearable?: boolean;
14
16
  prefix?: string;
15
17
  disabled?: boolean;
18
+ testId?: string;
16
19
  }>, {
17
20
  selected: boolean;
18
21
  clearable: boolean;
19
22
  prefix: any;
20
23
  disabled: boolean;
24
+ testId: string;
21
25
  }>>> & {
22
26
  onCleared?: (...args: any[]) => any;
23
27
  }, {
28
+ testId: string;
24
29
  disabled: boolean;
25
30
  selected: boolean;
26
31
  clearable: boolean;
@@ -1,9 +1,10 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, createElementVNode, toDisplayString, createVNode, unref } from 'vue';
1
+ import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createCommentVNode, createElementVNode, toDisplayString, createVNode } from 'vue';
2
2
  import Icon from '../icon/Icon.vue.js';
3
+ import { ChipTestIdModifiers } 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 "../../Chip.vue_vue_type_style_index_0_scoped_true_lang.css";
6
- const _hoisted_1 = ["disabled"];
7
+ const _hoisted_1 = ["disabled", "data-testid"];
7
8
  const _hoisted_2 = {
8
9
  key: 0,
9
10
  class: "icon icon--start"
@@ -16,13 +17,15 @@ const _hoisted_4 = {
16
17
  key: 1,
17
18
  class: "icon icon--end"
18
19
  };
20
+ const _hoisted_5 = ["data-testid"];
19
21
  const _sfc_main = /* @__PURE__ */ defineComponent({
20
22
  __name: "Chip",
21
23
  props: {
22
24
  selected: { type: Boolean, default: false },
23
25
  clearable: { type: Boolean, default: false },
24
26
  prefix: { default: null },
25
- disabled: { type: Boolean, default: false }
27
+ disabled: { type: Boolean, default: false },
28
+ testId: { default: "" }
26
29
  },
27
30
  emits: ["cleared"],
28
31
  setup(__props, { emit }) {
@@ -33,7 +36,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
36
  return (_ctx, _cache) => {
34
37
  return openBlock(), createElementBlock("button", {
35
38
  class: normalizeClass(["chip-container", { selected: __props.selected, disabled: __props.disabled }]),
36
- disabled: __props.disabled
39
+ disabled: __props.disabled,
40
+ "data-testid": `${__props.testId}-${unref(ChipTestIdModifiers).WRAPPER}`
37
41
  }, [
38
42
  _ctx.$slots["icon-start"] ? (openBlock(), createElementBlock("span", _hoisted_2, [
39
43
  renderSlot(_ctx.$slots, "icon-start", {}, void 0, true)
@@ -48,17 +52,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
48
52
  __props.clearable ? (openBlock(), createElementBlock("button", {
49
53
  key: 2,
50
54
  class: "clear-icon",
55
+ "data-testid": `${__props.testId}-${unref(ChipTestIdModifiers).CLEAR}`,
51
56
  onClick: cleared
52
57
  }, [
53
58
  createVNode(unref(Icon), {
54
59
  name: "close-bold",
55
60
  "font-size": "sm"
56
61
  })
57
- ])) : createCommentVNode("", true)
62
+ ], 8, _hoisted_5)) : createCommentVNode("", true)
58
63
  ], 10, _hoisted_1);
59
64
  };
60
65
  }
61
66
  });
62
- var Chip = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-287fd6d1"]]);
67
+ var Chip = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5d0f8d76"]]);
63
68
 
64
69
  export { Chip as default };
@@ -1,4 +1,9 @@
1
1
  declare const ChipTypes: () => import("vue").DefineComponent<{
2
+ testId: {
3
+ type: import("vue").PropType<string>;
4
+ } & {
5
+ default: string;
6
+ };
2
7
  disabled: {
3
8
  type: import("vue").PropType<boolean>;
4
9
  } & {
@@ -20,6 +25,11 @@ declare const ChipTypes: () => import("vue").DefineComponent<{
20
25
  default: any;
21
26
  };
22
27
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "cleared"[], "cleared", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
+ testId: {
29
+ type: import("vue").PropType<string>;
30
+ } & {
31
+ default: string;
32
+ };
23
33
  disabled: {
24
34
  type: import("vue").PropType<boolean>;
25
35
  } & {
@@ -43,6 +53,7 @@ declare const ChipTypes: () => import("vue").DefineComponent<{
43
53
  }>> & {
44
54
  onCleared?: (...args: any[]) => any;
45
55
  }, {
56
+ testId: string;
46
57
  disabled: boolean;
47
58
  selected: boolean;
48
59
  clearable: boolean;
@@ -4,12 +4,14 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
4
4
  allowFutureDates?: boolean;
5
5
  dateFormat?: string;
6
6
  placeholder?: string;
7
+ testId?: string;
7
8
  }>, {
8
9
  uniqueId: number;
9
10
  modelValue: any;
10
11
  dateFormat: string;
11
12
  placeholder: string;
12
13
  allowFutureDates: boolean;
14
+ testId: string;
13
15
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
16
  "update:modelValue": (val: string | Date) => void;
15
17
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -18,15 +20,18 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
18
20
  allowFutureDates?: boolean;
19
21
  dateFormat?: string;
20
22
  placeholder?: string;
23
+ testId?: string;
21
24
  }>, {
22
25
  uniqueId: number;
23
26
  modelValue: any;
24
27
  dateFormat: string;
25
28
  placeholder: string;
26
29
  allowFutureDates: boolean;
30
+ testId: string;
27
31
  }>>> & {
28
32
  "onUpdate:modelValue"?: (val: string | Date) => any;
29
33
  }, {
34
+ testId: string;
30
35
  modelValue: Date | string;
31
36
  placeholder: string;
32
37
  uniqueId: string | number;