@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
@@ -1,23 +1,22 @@
1
- import { defineComponent, ref, computed, watch, useSlots, nextTick, toRaw, provide, onMounted, openBlock, createElementBlock, normalizeClass, renderSlot, createVNode, unref, withCtx, Transition, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, createBlock, mergeProps, withModifiers, Fragment, renderList, pushScopeId, popScopeId } from 'vue';
1
+ import { defineComponent, ref, computed, watch, useSlots, nextTick, toRaw, provide, onMounted, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createVNode, withCtx, Transition, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, createBlock, mergeProps, withModifiers, Fragment, renderList, pushScopeId, popScopeId } from 'vue';
2
2
  import Button from '../button/Button.vue.js';
3
- import '../button/IconButton.vue.js';
4
- import '../button/ScrollButton.vue.js';
5
- import Option from './Option.vue.js';
6
3
  import Icon from '../icon/Icon.vue.js';
7
- import Search from '../search/Search.vue.js';
8
- import '../typography/Heading.vue.js';
4
+ import { DropdownTestIdModifiers } from '../../testids/index.vue.js';
5
+ /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
9
6
  import Text from '../typography/Text.vue.js';
7
+ /* empty css *//* empty css *//* empty css */import { Dropdown as Dropdown$1 } from 'floating-vue';
8
+ /* empty css *//* empty css */import Option from './Option.vue.js';
9
+ import Search from '../search/Search.vue.js';
10
10
  import { useToggle } from '../../composables/useToggle.vue.js';
11
11
  import { isObjectInArray } from '../../utils/array.vue.js';
12
12
  import { objectsEqual } from '../../utils/object.vue.js';
13
13
  import { useClamp, useVirtualList, onClickOutside } from '@vueuse/core';
14
- import { Dropdown as Dropdown$1 } from 'floating-vue';
15
14
  import { Mode, Type, DropdownContext } from './DropdownContext.vue.js';
16
- /* empty css *//* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
17
-
15
+ import { pxToRem } from '../../utils/style.vue.js';
16
+ /* empty css *//* empty css */
18
17
  import "../../Dropdown.vue_vue_type_style_index_0_scoped_true_lang.css";import "../../Dropdown.vue_vue_type_style_index_1_lang.css";
19
- const _withScopeId = (n) => (pushScopeId("data-v-49790baa"), n = n(), popScopeId(), n);
20
- const _hoisted_1 = ["tabindex"];
18
+ const _withScopeId = (n) => (pushScopeId("data-v-6b0dd6db"), n = n(), popScopeId(), n);
19
+ const _hoisted_1 = ["tabindex", "data-testid"];
21
20
  const _hoisted_2 = ["disabled", "aria-expanded", "aria-labelledby", "aria-disabled"];
22
21
  const _hoisted_3 = {
23
22
  key: 0,
@@ -28,19 +27,17 @@ const _hoisted_5 = {
28
27
  key: 0,
29
28
  class: "dropdown-title"
30
29
  };
31
- const _hoisted_6 = {
32
- key: 0,
33
- class: "dropdown-title__text"
34
- };
35
- const _hoisted_7 = {
30
+ const _hoisted_6 = ["data-testid"];
31
+ const _hoisted_7 = ["data-testid"];
32
+ const _hoisted_8 = {
36
33
  key: 0,
37
34
  class: "no-result-container"
38
35
  };
39
- const _hoisted_8 = {
36
+ const _hoisted_9 = {
40
37
  key: 1,
41
38
  class: "loader"
42
39
  };
43
- const _hoisted_9 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
40
+ const _hoisted_10 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
44
41
  width: "100",
45
42
  height: "100",
46
43
  viewBox: "0 0 100 100"
@@ -64,16 +61,13 @@ const _hoisted_9 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElem
64
61
  })
65
62
  ])
66
63
  ], -1));
67
- const _hoisted_10 = { key: 2 };
68
- const _hoisted_11 = ["aria-selected", "aria-disabled", "onClick"];
69
- const _hoisted_12 = {
64
+ const _hoisted_11 = { key: 2 };
65
+ const _hoisted_12 = ["aria-selected", "aria-disabled", "onClick"];
66
+ const _hoisted_13 = {
70
67
  key: 0,
71
68
  class: "actions"
72
69
  };
73
- const MULTILINE_LIST_HEIGHT = 48;
74
- const LIST_HEIGHT = 34;
75
- const IS_ON_TOP_PADDING = 8;
76
- const _sfc_main = defineComponent({
70
+ const _sfc_main = /* @__PURE__ */ defineComponent({
77
71
  __name: "Dropdown",
78
72
  props: {
79
73
  modelValue: { default: null },
@@ -101,8 +95,8 @@ const _sfc_main = defineComponent({
101
95
  clearable: { type: Boolean, default: false },
102
96
  error: { default: "" },
103
97
  size: { default: "lg" },
104
- displayValue: {},
105
- options: {},
98
+ displayValue: null,
99
+ options: null,
106
100
  onSearch: { type: Function, default: () => true },
107
101
  theme: { default: "is-dropdown" },
108
102
  container: { default: "body" },
@@ -111,10 +105,11 @@ const _sfc_main = defineComponent({
111
105
  autoSize: { type: Boolean, default: false },
112
106
  disableKeyboardEvents: { type: Boolean, default: false },
113
107
  multiOptionsPlaceholderPrefix: { default: "" },
114
- multiOptionsPlaceholderSuffix: { default: "" }
108
+ multiOptionsPlaceholderSuffix: { default: "" },
109
+ testId: { default: "" }
115
110
  },
116
111
  emits: ["update:selected", "update:isOpen", "closed", "opened", "apply"],
117
- setup(__props, { expose: __expose, emit }) {
112
+ setup(__props, { expose, emit }) {
118
113
  const props = __props;
119
114
  const isSelected = (arr, element) => {
120
115
  if (props.multi) {
@@ -122,6 +117,8 @@ const _sfc_main = defineComponent({
122
117
  }
123
118
  return toRaw(arr) === element;
124
119
  };
120
+ const MULTILINE_LIST_HEIGHT = 48;
121
+ const LIST_HEIGHT = 34;
125
122
  const selectedOptionRef = ref(props.selected);
126
123
  const selectedOption = computed({
127
124
  get() {
@@ -146,6 +143,7 @@ const _sfc_main = defineComponent({
146
143
  const buttonRef = ref(null);
147
144
  const apply = ref(null);
148
145
  const cancel = ref(null);
146
+ const IS_ON_TOP_PADDING = 8;
149
147
  const location = computed(() => {
150
148
  return buttonRef.value?.getBoundingClientRect().height + IS_ON_TOP_PADDING + props.distance;
151
149
  });
@@ -225,13 +223,16 @@ const _sfc_main = defineComponent({
225
223
  );
226
224
  const hasSubtitle = computed(() => optionsIds.value[0]?.hasSubtitle);
227
225
  const isMulti = computed(() => api.mode === Mode.Multi);
226
+ const itemHeight = computed(
227
+ () => hasSubtitle.value ? MULTILINE_LIST_HEIGHT : LIST_HEIGHT
228
+ );
228
229
  const {
229
230
  list: virtualOptions,
230
231
  containerProps,
231
232
  wrapperProps,
232
233
  scrollTo
233
234
  } = useVirtualList(filteredOptions, {
234
- itemHeight: () => hasSubtitle.value ? MULTILINE_LIST_HEIGHT : LIST_HEIGHT
235
+ itemHeight: itemHeight.value
235
236
  });
236
237
  watch(
237
238
  () => props.isOpen,
@@ -509,7 +510,17 @@ const _sfc_main = defineComponent({
509
510
  }
510
511
  }
511
512
  };
512
- __expose({
513
+ const calculateTableHeight = computed(() => {
514
+ const MAX_NUMBER_OF_OPTIONS = 7;
515
+ const PADDING_PX = 8;
516
+ const optionsLength = virtualOptions.value.length;
517
+ const showSelectAllAddition = props.showSelectAll ? 1 : 0;
518
+ const isThereMoreOptionsThenMax = optionsLength > MAX_NUMBER_OF_OPTIONS;
519
+ const numberOfRows = optionsLength + showSelectAllAddition;
520
+ const numToCalculate = isThereMoreOptionsThenMax ? MAX_NUMBER_OF_OPTIONS + 0.5 : numberOfRows;
521
+ return pxToRem(numToCalculate * itemHeight.value + PADDING_PX);
522
+ });
523
+ expose({
513
524
  selectItem: onSelect,
514
525
  scrollTo
515
526
  });
@@ -517,26 +528,28 @@ const _sfc_main = defineComponent({
517
528
  return openBlock(), createElementBlock("div", {
518
529
  ref_key: "el",
519
530
  ref: el,
520
- class: normalizeClass(["dropdown", { "dropdown--disabled": _ctx.disabled }]),
521
- tabindex: _ctx.disabled ? -1 : 0,
531
+ class: normalizeClass(["dropdown", { "dropdown--disabled": __props.disabled }]),
532
+ tabindex: __props.disabled ? -1 : 0,
533
+ "data-testid": `${__props.testId}-${unref(DropdownTestIdModifiers).WRAPPER}`,
522
534
  onKeydown
523
535
  }, [
524
536
  renderSlot(_ctx.$slots, "label", {}, void 0, true),
525
537
  createVNode(unref(Dropdown$1), {
526
- theme: _ctx.theme,
538
+ theme: __props.theme,
527
539
  "popper-class": [
528
- _ctx.popperClass,
529
- _ctx.autoSize ? "v-popper--theme-is-dropdown--auto-size" : null
540
+ __props.popperClass,
541
+ __props.autoSize ? "v-popper--theme-is-dropdown--auto-size" : null
530
542
  ],
531
- placement: _ctx.placement,
532
- skidding: _ctx.isOnTop ? 0 : _ctx.skidding,
533
- distance: _ctx.isOnTop ? -location.value : _ctx.distance,
534
- flip: _ctx.flip,
543
+ placement: __props.placement,
544
+ skidding: __props.isOnTop ? 0 : __props.skidding,
545
+ distance: __props.isOnTop ? -unref(location) : __props.distance,
546
+ flip: __props.flip,
535
547
  triggers: [],
536
548
  shown: !!unref(open),
537
549
  "auto-hide": false,
538
- container: _ctx.container,
539
- "auto-size": _ctx.autoSize
550
+ container: __props.container,
551
+ "auto-size": __props.autoSize,
552
+ "data-testid": `${__props.testId}-${unref(DropdownTestIdModifiers).TRIGGER}`
540
553
  }, {
541
554
  popper: withCtx(() => [
542
555
  createVNode(Transition, null, {
@@ -545,25 +558,30 @@ const _sfc_main = defineComponent({
545
558
  ref_key: "listRef",
546
559
  ref: listRef
547
560
  }, [
548
- _ctx.inlineSearch || _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_5, [
549
- _ctx.title ? (openBlock(), createElementBlock("div", _hoisted_6, [
561
+ __props.inlineSearch || __props.title ? (openBlock(), createElementBlock("div", _hoisted_5, [
562
+ __props.title ? (openBlock(), createElementBlock("div", {
563
+ key: 0,
564
+ class: "dropdown-title__text",
565
+ "data-testid": `${__props.testId}-${unref(DropdownTestIdModifiers).TITLE}`
566
+ }, [
550
567
  createVNode(unref(Text), { strong: "" }, {
551
568
  default: withCtx(() => [
552
- createTextVNode(toDisplayString(_ctx.title), 1)
569
+ createTextVNode(toDisplayString(__props.title), 1)
553
570
  ]),
554
571
  _: 1
555
572
  })
556
- ])) : createCommentVNode("", true),
557
- _ctx.inlineSearch ? (openBlock(), createBlock(unref(Search), {
573
+ ], 8, _hoisted_6)) : createCommentVNode("", true),
574
+ __props.inlineSearch ? (openBlock(), createBlock(unref(Search), {
558
575
  key: 1,
559
576
  modelValue: query.value,
560
577
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => query.value = $event),
561
- placeholder: _ctx.searchPlaceholder,
578
+ placeholder: __props.searchPlaceholder,
562
579
  class: "dropdown-title__search",
563
580
  variant: "transparent",
564
581
  size: "md",
582
+ "test-id": `${__props.testId}-${unref(DropdownTestIdModifiers).SEARCH}`,
565
583
  onKeydown
566
- }, null, 8, ["modelValue", "placeholder"])) : createCommentVNode("", true)
584
+ }, null, 8, ["modelValue", "placeholder", "test-id"])) : createCommentVNode("", true)
567
585
  ])) : createCommentVNode("", true),
568
586
  unref(open) ? (openBlock(), createElementBlock("div", {
569
587
  key: 1,
@@ -572,30 +590,32 @@ const _sfc_main = defineComponent({
572
590
  }, [
573
591
  renderSlot(_ctx.$slots, "input-list", { open: unref(open) }, void 0, true),
574
592
  createElementVNode("div", mergeProps(unref(containerProps), {
575
- class: ["list-container", { "list-container--multi": _ctx.multi }]
593
+ class: ["list-container", { "list-container--multi": __props.multi }],
594
+ style: { height: `${unref(calculateTableHeight)}rem` },
595
+ "data-testid": `${__props.testId}-${unref(DropdownTestIdModifiers).LIST_CONTAINER}`
576
596
  }), [
577
597
  createElementVNode("ul", mergeProps(unref(wrapperProps), {
578
598
  role: "listbox",
579
- class: ["list", { "list--multi": _ctx.multi }]
599
+ class: ["list", { "list--multi": __props.multi }]
580
600
  }), [
581
- !filteredOptions.value.length && !_ctx.loading ? (openBlock(), createElementBlock("li", _hoisted_7, [
601
+ !unref(filteredOptions).length && !__props.loading ? (openBlock(), createElementBlock("li", _hoisted_8, [
582
602
  createVNode(unref(Text), {
583
603
  size: "sm",
584
604
  class: "no-result"
585
605
  }, {
586
606
  default: withCtx(() => [
587
- createTextVNode(toDisplayString(_ctx.noResultsText), 1)
607
+ createTextVNode(toDisplayString(__props.noResultsText), 1)
588
608
  ]),
589
609
  _: 1
590
610
  })
591
611
  ])) : createCommentVNode("", true),
592
- _ctx.loading ? (openBlock(), createElementBlock("li", _hoisted_8, [
612
+ __props.loading ? (openBlock(), createElementBlock("li", _hoisted_9, [
593
613
  createVNode(unref(Icon), {
594
614
  "font-size": "md",
595
615
  class: "loader-icon"
596
616
  }, {
597
617
  default: withCtx(() => [
598
- _hoisted_9
618
+ _hoisted_10
599
619
  ]),
600
620
  _: 1
601
621
  }),
@@ -606,12 +626,12 @@ const _sfc_main = defineComponent({
606
626
  _: 1
607
627
  })
608
628
  ])) : createCommentVNode("", true),
609
- _ctx.showSelectAll ? (openBlock(), createElementBlock("li", _hoisted_10, [
629
+ __props.showSelectAll ? (openBlock(), createElementBlock("li", _hoisted_11, [
610
630
  createVNode(Option, {
611
- "aria-selected": allSelected.value,
612
- "aria-disabled": !!_ctx.disabled,
613
- "selected-prop": allSelected.value,
614
- "is-indeterminate": isIndeterminate.value,
631
+ "aria-selected": unref(allSelected),
632
+ "aria-disabled": !!__props.disabled,
633
+ "selected-prop": unref(allSelected),
634
+ "is-indeterminate": unref(isIndeterminate),
615
635
  "select-all-option": "",
616
636
  onClick: _cache[3] || (_cache[3] = withModifiers(($event) => onSelectAll(), ["stop"]))
617
637
  }, {
@@ -621,49 +641,51 @@ const _sfc_main = defineComponent({
621
641
  _: 1
622
642
  }, 8, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate"])
623
643
  ])) : createCommentVNode("", true),
624
- unref(virtualOptions).length && !_ctx.loading ? (openBlock(true), createElementBlock(Fragment, { key: 3 }, renderList(unref(virtualOptions), ({ data, index }) => {
644
+ unref(virtualOptions).length && !__props.loading ? (openBlock(true), createElementBlock(Fragment, { key: 3 }, renderList(unref(virtualOptions), ({ data, index }) => {
625
645
  return openBlock(), createElementBlock("li", {
626
646
  key: index,
627
- "aria-selected": isSelected(toRaw(selectedOption.value), data),
628
- "aria-disabled": !!_ctx.disabled,
647
+ "aria-selected": isSelected(toRaw(unref(selectedOption)), data),
648
+ "aria-disabled": !!__props.disabled,
629
649
  onClick: withModifiers(() => onSelect(data, index), ["stop"])
630
650
  }, [
631
651
  renderSlot(_ctx.$slots, "default", {
632
652
  option: data,
633
- selected: isSelected(toRaw(selectedOption.value), data),
653
+ selected: isSelected(toRaw(unref(selectedOption)), data),
634
654
  active: toRaw(unref(activeIndex)) === index
635
655
  }, void 0, true)
636
- ], 8, _hoisted_11);
656
+ ], 8, _hoisted_12);
637
657
  }), 128)) : createCommentVNode("", true)
638
658
  ], 16)
639
- ], 16),
640
- _ctx.multi ? (openBlock(), createElementBlock("div", _hoisted_12, [
659
+ ], 16, _hoisted_7),
660
+ __props.multi ? (openBlock(), createElementBlock("div", _hoisted_13, [
641
661
  createVNode(unref(Button), {
642
662
  ref_key: "cancel",
643
663
  ref: cancel,
644
664
  size: "sm",
645
665
  variant: "border",
646
666
  theme: "third",
667
+ "test-id": `${__props.testId}-${unref(DropdownTestIdModifiers).ACTION_CANCEL}`,
647
668
  onClick: onCancel
648
669
  }, {
649
670
  default: withCtx(() => [
650
671
  createTextVNode(" Cancel ")
651
672
  ]),
652
673
  _: 1
653
- }, 512),
674
+ }, 8, ["test-id"]),
654
675
  createVNode(unref(Button), {
655
676
  ref_key: "apply",
656
677
  ref: apply,
657
678
  "data-testid": "mutli-apply",
658
679
  size: "sm",
659
680
  class: "apply-button",
681
+ "test-id": `${__props.testId}-${unref(DropdownTestIdModifiers).ACTION_APPLY}`,
660
682
  onClick: onApply
661
683
  }, {
662
684
  default: withCtx(() => [
663
685
  createTextVNode("Apply ")
664
686
  ]),
665
687
  _: 1
666
- }, 512)
688
+ }, 8, ["test-id"])
667
689
  ])) : createCommentVNode("", true)
668
690
  ], 32)) : createCommentVNode("", true)
669
691
  ], 512)
@@ -675,8 +697,8 @@ const _sfc_main = defineComponent({
675
697
  createElementVNode("div", {
676
698
  class: normalizeClass(["button__container", {
677
699
  "button__container--open": !!unref(open),
678
- [`button__container--${_ctx.size}`]: true,
679
- "button__container--disabled": _ctx.disabled
700
+ [`button__container--${__props.size}`]: true,
701
+ "button__container--disabled": __props.disabled
680
702
  }])
681
703
  }, [
682
704
  _ctx.$slots.input ? (openBlock(), createElementBlock("div", {
@@ -688,23 +710,23 @@ const _sfc_main = defineComponent({
688
710
  }, [
689
711
  renderSlot(_ctx.$slots, "input", {
690
712
  open: unref(open),
691
- value: displayedValue.value,
692
- disabled: _ctx.disabled
713
+ value: unref(displayedValue),
714
+ disabled: __props.disabled
693
715
  }, void 0, true)
694
716
  ], 544)) : createCommentVNode("", true),
695
717
  !_ctx.$slots.input ? (openBlock(), createElementBlock("button", {
696
718
  key: 1,
697
719
  ref_key: "buttonRef",
698
720
  ref: buttonRef,
699
- disabled: _ctx.disabled,
721
+ disabled: __props.disabled,
700
722
  "aria-haspopup": true,
701
723
  "aria-expanded": !!unref(open),
702
724
  "aria-labelledby": labelRef.value?.id,
703
- "aria-disabled": _ctx.disabled,
725
+ "aria-disabled": __props.disabled,
704
726
  class: normalizeClass([{
705
727
  "button--open": !!unref(open),
706
- [`button--${_ctx.size}`]: true,
707
- "button--disabled": _ctx.disabled
728
+ [`button--${__props.size}`]: true,
729
+ "button--disabled": __props.disabled
708
730
  }, "button"]),
709
731
  onKeydown: onButtonKeydown,
710
732
  onClick: _cache[1] || (_cache[1] = ($event) => toggleMenu())
@@ -717,7 +739,7 @@ const _sfc_main = defineComponent({
717
739
  "is-truncated": ""
718
740
  }, {
719
741
  default: withCtx(() => [
720
- createTextVNode(toDisplayString(displayedValue.value), 1)
742
+ createTextVNode(toDisplayString(unref(displayedValue)), 1)
721
743
  ]),
722
744
  _: 1
723
745
  }),
@@ -731,31 +753,33 @@ const _sfc_main = defineComponent({
731
753
  ], 2)
732
754
  ]),
733
755
  _: 3
734
- }, 8, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size"]),
735
- !_ctx.error && _ctx.helperText ? (openBlock(), createBlock(unref(Text), {
756
+ }, 8, ["theme", "popper-class", "placement", "skidding", "distance", "flip", "shown", "container", "auto-size", "data-testid"]),
757
+ !__props.error && __props.helperText ? (openBlock(), createBlock(unref(Text), {
736
758
  key: 0,
737
759
  size: "caption",
738
- class: "helper-text"
760
+ class: "helper-text",
761
+ "test-id": `${__props.testId}-${unref(DropdownTestIdModifiers).HELPER_TEXT}`
739
762
  }, {
740
763
  default: withCtx(() => [
741
- createTextVNode(toDisplayString(_ctx.helperText), 1)
764
+ createTextVNode(toDisplayString(__props.helperText), 1)
742
765
  ]),
743
766
  _: 1
744
- })) : createCommentVNode("", true),
745
- _ctx.error ? (openBlock(), createBlock(unref(Text), {
767
+ }, 8, ["test-id"])) : createCommentVNode("", true),
768
+ __props.error ? (openBlock(), createBlock(unref(Text), {
746
769
  key: 1,
747
770
  size: "caption",
748
- class: "helper-text helper-text--error"
771
+ class: "helper-text helper-text--error",
772
+ "test-id": `${__props.testId}-${unref(DropdownTestIdModifiers).HELPER_TEXT_ERROR}`
749
773
  }, {
750
774
  default: withCtx(() => [
751
- createTextVNode(toDisplayString(_ctx.error), 1)
775
+ createTextVNode(toDisplayString(__props.error), 1)
752
776
  ]),
753
777
  _: 1
754
- })) : createCommentVNode("", true)
778
+ }, 8, ["test-id"])) : createCommentVNode("", true)
755
779
  ], 42, _hoisted_1);
756
780
  };
757
781
  }
758
782
  });
759
- var Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-49790baa"]]);
783
+ var Dropdown = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6b0dd6db"]]);
760
784
 
761
785
  export { Dropdown as default };
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
2
  export default _default;
@@ -1,12 +1,11 @@
1
1
  import { defineComponent, openBlock, createElementBlock, unref, normalizeClass, createVNode, withCtx, renderSlot, createBlock, createTextVNode, createCommentVNode } from 'vue';
2
- import '../typography/Heading.vue.js';
2
+ /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
3
3
  import Text from '../typography/Text.vue.js';
4
4
  import { useDropdownContext } from './DropdownContext.vue.js';
5
5
  import { useId } from '../../composables/useId.vue.js';
6
- /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
7
-
6
+ /* empty css */
8
7
  import "../../Label.vue_vue_type_style_index_0_scoped_true_lang.css";
9
- const _sfc_main = defineComponent({
8
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
9
  __name: "Label",
11
10
  setup(__props) {
12
11
  const id = `is-system-label-${useId().value}`;
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
35
35
  subtitle: string;
36
36
  selectAllOption: boolean;
37
37
  active: boolean;
38
- }, {}>;
38
+ }>;
39
39
  export default _default;
40
40
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
41
41
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,13 +1,12 @@
1
- import { defineComponent, ref, onMounted, onUnmounted, computed, toRaw, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, unref, createCommentVNode, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString, withModifiers } from 'vue';
2
- import '../typography/Heading.vue.js';
1
+ import { defineComponent, ref, onMounted, onUnmounted, computed, toRaw, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, createBlock, createCommentVNode, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString, withModifiers } from 'vue';
2
+ /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
3
3
  import Text from '../typography/Text.vue.js';
4
4
  import { useDropdownContext, Mode } from './DropdownContext.vue.js';
5
5
  import { useId } from '../../composables/useId.vue.js';
6
6
  import Checkbox from '../checkbox/Checkbox.vue.js';
7
7
  import Icon from '../icon/Icon.vue.js';
8
8
  import { NOOP } from '@vue/shared';
9
- /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
10
-
9
+ /* empty css */
11
10
  import "../../Option.vue_vue_type_style_index_0_scoped_true_lang.css";
12
11
  const _hoisted_1 = {
13
12
  key: 1,
@@ -19,7 +18,7 @@ const _hoisted_2 = {
19
18
  };
20
19
  const _hoisted_3 = { class: "text-container" };
21
20
  const _hoisted_4 = { key: 0 };
22
- const _sfc_main = defineComponent({
21
+ const _sfc_main = /* @__PURE__ */ defineComponent({
23
22
  __name: "Option",
24
23
  props: {
25
24
  option: { default: null },
@@ -66,27 +65,27 @@ const _sfc_main = defineComponent({
66
65
  ref_key: "el",
67
66
  ref: el,
68
67
  class: normalizeClass(["item-container", {
69
- "item-container--disabled": _ctx.disabled,
70
- "item-container--active": active.value,
71
- "item-container--selected": selected.value,
72
- "item-container--multi": isMulti.value
68
+ "item-container--disabled": __props.disabled,
69
+ "item-container--active": unref(active),
70
+ "item-container--selected": unref(selected),
71
+ "item-container--multi": unref(isMulti)
73
72
  }])
74
73
  }, [
75
74
  createElementVNode("div", {
76
75
  class: normalizeClass(["item", {
77
- "item--multi": isMulti.value,
76
+ "item--multi": unref(isMulti),
78
77
  "item--with-icon": _ctx.$slots["icon-start"] || _ctx.$slots.image
79
78
  }])
80
79
  }, [
81
- isMulti.value ? (openBlock(), createBlock(unref(Checkbox), {
80
+ unref(isMulti) ? (openBlock(), createBlock(unref(Checkbox), {
82
81
  key: 0,
83
82
  id: unref(id).toString(),
84
83
  tabindex: "-1",
85
84
  class: "checkbox",
86
85
  size: "sm",
87
- "is-checked": selected.value,
88
- "is-indeterminate": _ctx.isIndeterminate && !_ctx.option,
89
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.disabled ? unref(NOOP)() : onClick($event))
86
+ "is-checked": unref(selected),
87
+ "is-indeterminate": __props.isIndeterminate && !__props.option,
88
+ onClick: _cache[0] || (_cache[0] = ($event) => __props.disabled ? unref(NOOP)() : onClick($event))
90
89
  }, null, 8, ["id", "is-checked", "is-indeterminate"])) : createCommentVNode("", true),
91
90
  _ctx.$slots.image ? (openBlock(), createElementBlock("div", _hoisted_1, [
92
91
  renderSlot(_ctx.$slots, "image", {}, void 0, true)
@@ -101,19 +100,19 @@ const _sfc_main = defineComponent({
101
100
  ]),
102
101
  _: 3
103
102
  }),
104
- _ctx.subtitle ? (openBlock(), createBlock(unref(Text), {
103
+ __props.subtitle ? (openBlock(), createBlock(unref(Text), {
105
104
  key: 0,
106
105
  class: "subtitle",
107
106
  size: "xs"
108
107
  }, {
109
108
  default: withCtx(() => [
110
- createTextVNode(toDisplayString(_ctx.subtitle), 1)
109
+ createTextVNode(toDisplayString(__props.subtitle), 1)
111
110
  ]),
112
111
  _: 1
113
112
  })) : createCommentVNode("", true)
114
113
  ])
115
114
  ], 2),
116
- unref(api).clearable && selected.value ? (openBlock(), createElementBlock("div", _hoisted_4, [
115
+ unref(api).clearable && unref(selected) ? (openBlock(), createElementBlock("div", _hoisted_4, [
117
116
  createElementVNode("button", {
118
117
  class: "clear-button",
119
118
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => unref(api).clearSelection(), ["prevent", "stop"]))
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
2
  export default _default;
@@ -10,7 +10,7 @@ const _hoisted_1 = {
10
10
  class: "prefix"
11
11
  };
12
12
  const _hoisted_2 = ["disabled", "placeholder"];
13
- const _sfc_main = defineComponent({
13
+ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  __name: "SearchInput",
15
15
  setup(__props) {
16
16
  const api = useDropdownContext("searchInput");
@@ -63,7 +63,7 @@ const _sfc_main = defineComponent({
63
63
  inputRef: inputEl.value,
64
64
  disabled: unref(api).disabled,
65
65
  change: onChange,
66
- placeholder: placeholder.value
66
+ placeholder: unref(placeholder)
67
67
  }, () => [
68
68
  createElementVNode("div", {
69
69
  class: normalizeClass(["container", {
@@ -73,7 +73,7 @@ const _sfc_main = defineComponent({
73
73
  focused: isFocused.value
74
74
  }])
75
75
  }, [
76
- showPrefix.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
76
+ unref(showPrefix) ? (openBlock(), createElementBlock("div", _hoisted_1, [
77
77
  renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
78
78
  ])) : createCommentVNode("", true),
79
79
  createElementVNode("input", {
@@ -81,7 +81,7 @@ const _sfc_main = defineComponent({
81
81
  ref: inputEl,
82
82
  disabled: unref(api).disabled,
83
83
  class: normalizeClass(["input", { "input--disabled": unref(api).disabled }]),
84
- placeholder: placeholder.value,
84
+ placeholder: unref(placeholder),
85
85
  onFocusin: _cache[0] || (_cache[0] = ($event) => isFocused.value = true),
86
86
  onFocusout: _cache[1] || (_cache[1] = ($event) => isFocused.value = false),
87
87
  onInput: onChange
@@ -90,7 +90,7 @@ const _sfc_main = defineComponent({
90
90
  variant: "colorized",
91
91
  size: "sm",
92
92
  theme: "secondary",
93
- class: normalizeClass(["search-right-icon", { "search-right-icon-clear": showClear.value }]),
93
+ class: normalizeClass(["search-right-icon", { "search-right-icon-clear": unref(showClear) }]),
94
94
  disabled: unref(api).disabled
95
95
  }, {
96
96
  default: withCtx(() => [
@@ -103,7 +103,7 @@ const _sfc_main = defineComponent({
103
103
  unref(api).open.value ? (openBlock(), createBlock(unref(Icon), {
104
104
  key: 1,
105
105
  "font-size": "sm",
106
- name: rightIcon.value,
106
+ name: unref(rightIcon),
107
107
  onClick: onClearClick
108
108
  }, null, 8, ["name"])) : createCommentVNode("", true)
109
109
  ]),