@ironsource/shared-ui 1.4.3 → 2.0.0-rc.1

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 (179) 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/ButtonBase.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  8. package/ButtonV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
  9. package/CalendarMonth.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  10. package/Chip.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  11. package/ChipV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
  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/Dropdown.vue_vue_type_style_index_1_lang.css +1 -1
  16. package/DropdownV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
  17. package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -0
  18. package/Editable.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  19. package/EmptyState.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  20. package/FilterDropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  21. package/FilterSearchInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  22. package/FloatingToolbar.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  23. package/GroupOption.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  24. package/IconButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  25. package/IncludeExclude.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  26. package/IncludeExcludeAppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  27. package/IncludeExcludeChipFilter.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  28. package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  29. package/IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  30. package/Input.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  31. package/Label.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  32. package/Menu.vue_vue_type_style_index_1_lang.css +1 -1
  33. package/MenuItem.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  34. package/Option.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  35. package/Popover.vue_vue_type_style_index_0_lang.css +1 -1
  36. package/README.md +1 -1
  37. package/ScrollButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  38. package/Search.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  39. package/SearchInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  40. package/SearchV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
  41. package/Snackbar.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  42. package/Switch.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  43. package/SwitchV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
  44. package/Table.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  45. package/Table.vue_vue_type_style_index_1_lang.css +1 -1
  46. package/Tabs.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  47. package/TextArea.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  48. package/Toggle.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
  49. package/Typography.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
  50. package/commonCssVariables.scss +623 -0
  51. package/components/ThemeWrapper/ThemeStrore.d.ts +4 -0
  52. package/components/ThemeWrapper/ThemeWrapper.vue.d.ts +15 -0
  53. package/components/appTrigger/AppTrigger.vue.js +4 -4
  54. package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +4 -3
  55. package/components/autocompleteDropdown/AutocompleteInput.vue.js +2 -2
  56. package/components/autocompleteDropdown/GroupOption.vue.js +2 -2
  57. package/components/button/common/ButtonBase.vue.d.ts +48 -0
  58. package/components/button/{ButtonBase.vue.js → common/ButtonBase.vue.js} +7 -7
  59. package/components/button/{Button.vue.d.ts → common/ButtonSuper.vue.d.ts} +3 -3
  60. package/components/button/{ButtonBase.vue.d.ts → v3/Button.vue.d.ts} +20 -4
  61. package/components/button/v3/Button.vue.js +102 -0
  62. package/components/button/{IconButton.vue.js → v3/IconButton.vue.js} +7 -7
  63. package/components/button/{ScrollButton.vue.js → v3/ScrollButton.vue.js} +6 -6
  64. package/components/button/v3/index.d.ts +79 -0
  65. package/components/button/v4/ButtonV4.vue.d.ts +57 -0
  66. package/components/button/v4/ButtonV4.vue.js +99 -0
  67. package/components/button/{index.d.ts → v4/index.d.ts} +33 -76
  68. package/components/button/v4/index.vue.js +6 -0
  69. package/components/checkbox/Checkbox.vue.d.ts +1 -1
  70. package/components/checkbox/index.d.ts +9 -9
  71. package/components/chip/{Chip.vue.js → v3/Chip.vue.js} +5 -5
  72. package/components/chip/v4/ChipV4.vue.d.ts +48 -0
  73. package/components/chip/v4/ChipV4.vue.js +76 -0
  74. package/components/chip/v4/index.d.ts +63 -0
  75. package/components/chip/v4/index.vue.js +6 -0
  76. package/components/dateRange/CalendarMonth.vue.js +3 -3
  77. package/components/dateRange/DateRange.vue.js +4 -4
  78. package/components/dialog/Dialog.vue.d.ts +1 -1
  79. package/components/dialog/Dialog.vue.js +8 -7
  80. package/components/dialog/index.d.ts +11 -11
  81. package/components/dropdown/common/Dropdown.common.d.ts +36 -0
  82. package/components/dropdown/common/Dropdown.common.vue.js +456 -0
  83. package/components/dropdown/{Label.vue.js → common/Label.vue.js} +5 -5
  84. package/components/dropdown/{Option.vue.js → common/Option.vue.js} +7 -7
  85. package/components/dropdown/{SearchInput.vue.js → common/SearchInput.vue.js} +8 -7
  86. package/components/dropdown/{Dropdown.vue.d.ts → v3/Dropdown.vue.d.ts} +15 -5
  87. package/components/dropdown/v3/Dropdown.vue.js +391 -0
  88. package/components/dropdown/{index.d.ts → v3/index.d.ts} +42 -20
  89. package/components/dropdown/v3/index.vue.js +12 -0
  90. package/components/dropdown/v4/DropdownV4.vue.d.ts +223 -0
  91. package/components/dropdown/v4/DropdownV4.vue.js +408 -0
  92. package/components/dropdown/v4/index.d.ts +433 -0
  93. package/components/dropdown/v4/index.vue.js +6 -0
  94. package/components/emptyState/EmptyState.vue.d.ts +1 -1
  95. package/components/emptyState/EmptyState.vue.js +4 -4
  96. package/components/emptyState/index.d.ts +11 -11
  97. package/components/filterDropdown/AddFilterButton.vue.js +2 -2
  98. package/components/filterDropdown/FilterDropdown.vue.js +5 -4
  99. package/components/filtersPanel/Filter.d.ts +1 -1
  100. package/components/filtersPanel/FilterSearchInput.vue.js +6 -6
  101. package/components/floatingToolbar/FloatingToolbar.vue.js +6 -5
  102. package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
  103. package/components/includeExclude/IncludeExclude.vue.js +4 -4
  104. package/components/includeExclude/IncludeExcludeAppHeader.vue.js +2 -2
  105. package/components/includeExclude/IncludeExcludeAppTrigger.vue.js +4 -4
  106. package/components/includeExclude/IncludeExcludeChipFilter.vue.js +3 -3
  107. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
  108. package/components/includeExclude/IncludeExcludeDragDrop.vue.js +4 -4
  109. package/components/includeExclude/index.d.ts +22 -22
  110. package/components/input/Input.vue.d.ts +2 -2
  111. package/components/input/Input.vue.js +4 -4
  112. package/components/input/index.d.ts +16 -16
  113. package/components/menu/Menu.vue.d.ts +1 -1
  114. package/components/menu/index.d.ts +5 -5
  115. package/components/search/common/Search.common.d.ts +9 -0
  116. package/components/search/common/Search.common.vue.js +52 -0
  117. package/components/search/{Search.vue.js → v3/Search.vue.js} +19 -46
  118. package/components/search/{index.d.ts → v3/index.d.ts} +3 -3
  119. package/components/search/v4/SearchV4.vue.d.ts +51 -0
  120. package/components/search/v4/SearchV4.vue.js +70 -0
  121. package/components/search/v4/index.d.ts +72 -0
  122. package/components/search/v4/index.vue.js +6 -0
  123. package/components/snackbar/Snackbar.vue.d.ts +1 -1
  124. package/components/snackbar/Snackbar.vue.js +6 -5
  125. package/components/switch/{Switch.vue.js → v3/Switch.vue.js} +5 -5
  126. package/components/switch/v4/SwitchV4.vue.d.ts +37 -0
  127. package/components/switch/v4/SwitchV4.vue.js +87 -0
  128. package/components/switch/v4/index.d.ts +46 -0
  129. package/components/switch/v4/index.vue.js +6 -0
  130. package/components/table/Table.vue.js +3 -3
  131. package/components/table-cells/Editable.vue.js +1 -1
  132. package/components/tooltip/Tooltip.vue.d.ts +1 -1
  133. package/components/tooltip/index.d.ts +5 -5
  134. package/components/typography/index.d.ts +9 -9
  135. package/components/typography/v4/Typography.vue.d.ts +34 -0
  136. package/components/typography/v4/Typography.vue.js +68 -0
  137. package/components/typography/v4/index.d.ts +23 -0
  138. package/components/typography/v4/index.vue.js +6 -0
  139. package/design-foundation.stories/border-radius/BorderRadiusData.d.ts +5 -0
  140. package/design-foundation.stories/border-radius/BorderRadiusWrapper.vue.d.ts +4 -0
  141. package/design-foundation.stories/border-radius/index.d.ts +1 -0
  142. package/design-foundation.stories/colors/ColorsData.d.ts +114 -0
  143. package/design-foundation.stories/colors/ColorsStoryWrapper.vue.d.ts +3 -0
  144. package/design-foundation.stories/colors/index.d.ts +1 -0
  145. package/design-foundation.stories/elevations/ElevationStoryWrapper.vue.d.ts +4 -0
  146. package/design-foundation.stories/elevations/ElevationsData.d.ts +10 -0
  147. package/design-foundation.stories/elevations/index.d.ts +1 -0
  148. package/design-foundation.stories/typography/TypographyData.d.ts +7 -0
  149. package/design-foundation.stories/typography/TypographyStoryWrapper.vue.d.ts +3 -0
  150. package/design-foundation.stories/typography/index.d.ts +1 -0
  151. package/index.d.ts +1532 -5
  152. package/index.vue.js +28 -16
  153. package/package.json +39 -14
  154. package/styleguide.scss +77 -78
  155. package/styles/v4/border-radius.css +8 -0
  156. package/styles/v4/colors.css +100 -0
  157. package/styles/v4/elevations.css +10 -0
  158. package/styles/v4/fonts.css +1 -0
  159. package/styles/v4/fonts.css.map +1 -0
  160. package/styles/v4/fonts.scss +258 -0
  161. package/components/button/Button.vue.js +0 -65
  162. package/components/dropdown/Dropdown.vue.js +0 -785
  163. package/components/dropdown/index.vue.js +0 -12
  164. /package/components/button/{IconButton.vue.d.ts → v3/IconButton.vue.d.ts} +0 -0
  165. /package/components/button/{ScrollButton.vue.d.ts → v3/ScrollButton.vue.d.ts} +0 -0
  166. /package/components/button/{index.vue.js → v3/index.vue.js} +0 -0
  167. /package/components/chip/{Chip.vue.d.ts → v3/Chip.vue.d.ts} +0 -0
  168. /package/components/chip/{index.d.ts → v3/index.d.ts} +0 -0
  169. /package/components/chip/{index.vue.js → v3/index.vue.js} +0 -0
  170. /package/components/dropdown/{DropdownContext.d.ts → common/DropdownContext.d.ts} +0 -0
  171. /package/components/dropdown/{DropdownContext.vue.js → common/DropdownContext.vue.js} +0 -0
  172. /package/components/dropdown/{Label.vue.d.ts → common/Label.vue.d.ts} +0 -0
  173. /package/components/dropdown/{Option.vue.d.ts → common/Option.vue.d.ts} +0 -0
  174. /package/components/dropdown/{SearchInput.vue.d.ts → common/SearchInput.vue.d.ts} +0 -0
  175. /package/components/search/{Search.vue.d.ts → v3/Search.vue.d.ts} +0 -0
  176. /package/components/search/{index.vue.js → v3/index.vue.js} +0 -0
  177. /package/components/switch/{Switch.vue.d.ts → v3/Switch.vue.d.ts} +0 -0
  178. /package/components/switch/{index.d.ts → v3/index.d.ts} +0 -0
  179. /package/components/switch/{index.vue.js → v3/index.vue.js} +0 -0
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, computed, ref, watch, provide, openBlock, createBlock, unref, withCtx, createElementVNode, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, Transition, createElementBlock, normalizeClass, mergeProps, Fragment, renderList, toRaw, nextTick } from 'vue';
2
2
  import _sfc_main$1 from '../popover/Popover.vue.js';
3
- import Button from '../button/Button.vue.js';
3
+ import Button from '../button/v3/Button.vue.js';
4
4
  /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
5
5
  import { IncludeExcludeTestIdModifiers } from '../../testids/index.vue.js';
6
6
  /* empty css */import Text from '../typography/Text.vue.js';
7
- /* empty css *//* empty css *//* empty css */import 'floating-vue';
8
- /* empty css *//* empty css */import Search from '../search/Search.vue.js';
7
+ /* empty css *//* empty css *//* empty css */import 'floating-vue';
8
+ /* empty css *//* empty css */import Search from '../search/v3/Search.vue.js';
9
9
  import Checkbox from '../checkbox/Checkbox.vue.js';
10
10
  import Skeleton from '../skeleton/Skeleton.vue.js';
11
11
  import EmptyState from '../emptyState/EmptyState.vue.js';
@@ -559,6 +559,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
559
559
  };
560
560
  }
561
561
  });
562
- var IncludeExclude = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-63d6a000"]]);
562
+ var IncludeExclude = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b08ff240"]]);
563
563
 
564
564
  export { IncludeExclude as default };
@@ -5,11 +5,11 @@ import { useSearch } from '../../composables/useSearch.vue.js';
5
5
  import IncludeExclude from './IncludeExclude.vue.js';
6
6
  import 'floating-vue';
7
7
  /* empty css *//* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
8
- /* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import '@vueuse/core';
8
+ /* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import '@vueuse/core';
9
9
  import 'vuedraggable';
10
10
  /* empty css */import IncludeExcludeOption from './IncludeExcludeOption.vue.js';
11
11
  /* empty css */import IncludeExcludeAppTrigger from './IncludeExcludeAppTrigger.vue.js';
12
- /* empty css *//* empty css *//* empty css */
12
+ /* empty css *//* empty css *//* empty css */
13
13
  import "../../IncludeExcludeAppHeader.vue_vue_type_style_index_0_scoped_true_lang.css";
14
14
  const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  __name: "IncludeExcludeAppHeader",
@@ -1,10 +1,10 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createElementVNode, createBlock, createCommentVNode, createVNode, withCtx, createTextVNode, toDisplayString } from 'vue';
2
- import Icon from '../icon/Icon.vue.js';
3
2
  /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
4
3
  import Text from '../typography/Text.vue.js';
5
- /* empty css *//* empty css */import IconButton from '../button/IconButton.vue.js';
4
+ import Icon from '../icon/Icon.vue.js';
5
+ /* empty css */import IconButton from '../button/v3/IconButton.vue.js';
6
6
  import _sfc_main$1 from '../tooltip/Tooltip.vue.js';
7
- /* empty css */import AppIcon from '../appIcon/AppIcon.vue.js';
7
+ /* empty css */import AppIcon from '../appIcon/AppIcon.vue.js';
8
8
  /* empty css */
9
9
  import "../../IncludeExcludeAppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css";
10
10
  const _hoisted_1 = { class: "include-exclude-trigger-left-image" };
@@ -168,6 +168,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
168
168
  };
169
169
  }
170
170
  });
171
- var IncludeExcludeAppTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-103f63a6"]]);
171
+ var IncludeExcludeAppTrigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-168ad4b0"]]);
172
172
 
173
173
  export { IncludeExcludeAppTrigger as default };
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, isRef, withCtx, renderSlot, createVNode, createTextVNode, toDisplayString, createSlots, createElementVNode } from 'vue';
2
2
  import Icon from '../icon/Icon.vue.js';
3
- import Chip from '../chip/Chip.vue.js';
3
+ import Chip from '../chip/v3/Chip.vue.js';
4
4
  import { useSearch } from '../../composables/useSearch.vue.js';
5
5
  import IncludeExclude from './IncludeExclude.vue.js';
6
6
  import 'floating-vue';
7
7
  /* empty css *//* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
8
- /* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import '@vueuse/core';
8
+ /* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import '@vueuse/core';
9
9
  import 'vuedraggable';
10
10
  /* empty css */import IncludeExcludeOption from './IncludeExcludeOption.vue.js';
11
11
  /* empty css *//* empty css *//* empty css *//* empty css *//* empty css */
@@ -152,6 +152,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
152
152
  };
153
153
  }
154
154
  });
155
- var IncludeExcludeChipFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a97a34d2"]]);
155
+ var IncludeExcludeChipFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-566f7125"]]);
156
156
 
157
157
  export { IncludeExcludeChipFilter as default };
@@ -93,13 +93,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
93
93
  loading: boolean;
94
94
  placement: Placement;
95
95
  disabled: boolean;
96
+ hasSubtitle: boolean;
96
97
  searchPlaceholder: string;
97
98
  isOnTop: boolean;
98
99
  distance: number;
99
100
  autoFocus: boolean;
100
101
  defaultOpen: boolean;
101
102
  onSearch: (option: any, term: string) => boolean;
102
- hasSubtitle: boolean;
103
103
  titleText: string;
104
104
  showClearAll: boolean;
105
105
  alwayesOpen: boolean;
@@ -1,10 +1,10 @@
1
1
  import { defineComponent, computed, ref, watch, provide, openBlock, createBlock, unref, withCtx, createElementVNode, renderSlot, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, createVNode, Transition, createElementBlock, mergeProps, Fragment, renderList, toRaw, isRef, nextTick } from 'vue';
2
2
  import _sfc_main$1 from '../popover/Popover.vue.js';
3
- import Button from '../button/Button.vue.js';
3
+ import Button from '../button/v3/Button.vue.js';
4
4
  /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
5
5
  /* empty css */import Text from '../typography/Text.vue.js';
6
- /* empty css *//* empty css *//* empty css */import 'floating-vue';
7
- /* empty css *//* empty css */import Search from '../search/Search.vue.js';
6
+ /* empty css *//* empty css *//* empty css */import 'floating-vue';
7
+ /* empty css *//* empty css */import Search from '../search/v3/Search.vue.js';
8
8
  import Checkbox from '../checkbox/Checkbox.vue.js';
9
9
  import Skeleton from '../skeleton/Skeleton.vue.js';
10
10
  import EmptyState from '../emptyState/EmptyState.vue.js';
@@ -605,6 +605,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
605
605
  };
606
606
  }
607
607
  });
608
- var IncludeExcludeDragDrop = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-22459799"]]);
608
+ var IncludeExcludeDragDrop = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-678a4af9"]]);
609
609
 
610
610
  export { IncludeExcludeDragDrop as default };
@@ -34,6 +34,11 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
34
34
  type: import("vue").PropType<unknown>;
35
35
  required: true;
36
36
  };
37
+ hasSubtitle: {
38
+ type: import("vue").PropType<boolean>;
39
+ } & {
40
+ default: boolean;
41
+ };
37
42
  searchPlaceholder: {
38
43
  type: import("vue").PropType<string>;
39
44
  } & {
@@ -67,11 +72,6 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
67
72
  } & {
68
73
  default: () => true;
69
74
  };
70
- hasSubtitle: {
71
- type: import("vue").PropType<boolean>;
72
- } & {
73
- default: boolean;
74
- };
75
75
  titleText: {
76
76
  type: import("vue").PropType<string>;
77
77
  } & {
@@ -132,6 +132,11 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
132
132
  type: import("vue").PropType<unknown>;
133
133
  required: true;
134
134
  };
135
+ hasSubtitle: {
136
+ type: import("vue").PropType<boolean>;
137
+ } & {
138
+ default: boolean;
139
+ };
135
140
  searchPlaceholder: {
136
141
  type: import("vue").PropType<string>;
137
142
  } & {
@@ -165,11 +170,6 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
165
170
  } & {
166
171
  default: () => true;
167
172
  };
168
- hasSubtitle: {
169
- type: import("vue").PropType<boolean>;
170
- } & {
171
- default: boolean;
172
- };
173
173
  titleText: {
174
174
  type: import("vue").PropType<string>;
175
175
  } & {
@@ -206,13 +206,13 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
206
206
  loading: boolean;
207
207
  placement: import("floating-vue").Placement;
208
208
  disabled: boolean;
209
+ hasSubtitle: boolean;
209
210
  searchPlaceholder: string;
210
211
  isOnTop: boolean;
211
212
  distance: number;
212
213
  autoFocus: boolean;
213
214
  defaultOpen: boolean;
214
215
  onSearch: (option: any, term: string) => boolean;
215
- hasSubtitle: boolean;
216
216
  titleText: string;
217
217
  showClearAll: boolean;
218
218
  alwayesOpen: boolean;
@@ -242,6 +242,11 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
242
242
  type: import("vue").PropType<unknown>;
243
243
  required: true;
244
244
  };
245
+ hasSubtitle: {
246
+ type: import("vue").PropType<boolean>;
247
+ } & {
248
+ default: boolean;
249
+ };
245
250
  searchPlaceholder: {
246
251
  type: import("vue").PropType<string>;
247
252
  } & {
@@ -275,11 +280,6 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
275
280
  } & {
276
281
  default: () => true;
277
282
  };
278
- hasSubtitle: {
279
- type: import("vue").PropType<boolean>;
280
- } & {
281
- default: boolean;
282
- };
283
283
  titleText: {
284
284
  type: import("vue").PropType<string>;
285
285
  } & {
@@ -349,6 +349,11 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
349
349
  type: import("vue").PropType<unknown>;
350
350
  required: true;
351
351
  };
352
+ hasSubtitle: {
353
+ type: import("vue").PropType<boolean>;
354
+ } & {
355
+ default: boolean;
356
+ };
352
357
  searchPlaceholder: {
353
358
  type: import("vue").PropType<string>;
354
359
  } & {
@@ -382,11 +387,6 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
382
387
  } & {
383
388
  default: () => true;
384
389
  };
385
- hasSubtitle: {
386
- type: import("vue").PropType<boolean>;
387
- } & {
388
- default: boolean;
389
- };
390
390
  titleText: {
391
391
  type: import("vue").PropType<string>;
392
392
  } & {
@@ -434,13 +434,13 @@ declare const IncludeExcludeTypes: () => (import("vue").DefineComponent<{
434
434
  loading: boolean;
435
435
  placement: import("floating-vue").Placement;
436
436
  disabled: boolean;
437
+ hasSubtitle: boolean;
437
438
  searchPlaceholder: string;
438
439
  isOnTop: boolean;
439
440
  distance: number;
440
441
  autoFocus: boolean;
441
442
  defaultOpen: boolean;
442
443
  onSearch: (option: any, term: string) => boolean;
443
- hasSubtitle: boolean;
444
444
  titleText: string;
445
445
  showClearAll: boolean;
446
446
  alwayesOpen: boolean;
@@ -79,9 +79,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
79
79
  }>>> & {
80
80
  "onUpdate:modelValue"?: (value: string | number) => any;
81
81
  }, {
82
- size: 'sm' | 'lg';
83
- label: string;
84
82
  type: 'text' | 'number' | 'password';
83
+ label: string;
84
+ size: 'sm' | 'lg';
85
85
  testId: string;
86
86
  disabled: boolean;
87
87
  modelValue: string | number;
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, ref, computed, onMounted, nextTick, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, toDisplayString, createBlock, createCommentVNode, createElementVNode, renderSlot, mergeProps, withKeys, withModifiers } from 'vue';
2
- import Icon from '../icon/Icon.vue.js';
3
2
  import { InputTestIdModifiers } from '../../testids/index.vue.js';
4
3
  /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
5
4
  import Text from '../typography/Text.vue.js';
6
- /* empty css *//* empty css */import IconButton from '../button/IconButton.vue.js';
5
+ import Icon from '../icon/Icon.vue.js';
6
+ /* empty css */import IconButton from '../button/v3/IconButton.vue.js';
7
7
  import _sfc_main$1 from '../tooltip/Tooltip.vue.js';
8
- /* empty css */import { useEditableContext } from '../table-cells/EditableContext.vue.js';
8
+ /* empty css */import { useEditableContext } from '../table-cells/EditableContext.vue.js';
9
9
  import '@vueuse/core';
10
10
  /* empty css */import { REGEX_NUMBER_INPUT } from '../../consts/regex.vue.js';
11
11
  /* empty css */
@@ -254,6 +254,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
254
254
  };
255
255
  }
256
256
  });
257
- var Input = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1ccecdef"]]);
257
+ var Input = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6e6469d3"]]);
258
258
 
259
259
  export { Input as default };
@@ -3,8 +3,8 @@ import DollarInput from './DollarInput.vue';
3
3
  import PercentageInput from './PercentageInput.vue';
4
4
  import PasswordInput from './PasswordInput.vue';
5
5
  declare const InputTypes: () => (import("vue").DefineComponent<{
6
- size: {
7
- type: import("vue").PropType<"sm" | "lg">;
6
+ type: {
7
+ type: import("vue").PropType<"number" | "text" | "password">;
8
8
  } & {
9
9
  default: string;
10
10
  };
@@ -13,8 +13,8 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
13
13
  } & {
14
14
  default: string;
15
15
  };
16
- type: {
17
- type: import("vue").PropType<"number" | "text" | "password">;
16
+ size: {
17
+ type: import("vue").PropType<"sm" | "lg">;
18
18
  } & {
19
19
  default: string;
20
20
  };
@@ -96,8 +96,8 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
96
96
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
97
97
  "update:modelValue": (value: string | number) => void;
98
98
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
99
- size: {
100
- type: import("vue").PropType<"sm" | "lg">;
99
+ type: {
100
+ type: import("vue").PropType<"number" | "text" | "password">;
101
101
  } & {
102
102
  default: string;
103
103
  };
@@ -106,8 +106,8 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
106
106
  } & {
107
107
  default: string;
108
108
  };
109
- type: {
110
- type: import("vue").PropType<"number" | "text" | "password">;
109
+ size: {
110
+ type: import("vue").PropType<"sm" | "lg">;
111
111
  } & {
112
112
  default: string;
113
113
  };
@@ -189,9 +189,9 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
189
189
  }>> & {
190
190
  "onUpdate:modelValue"?: (value: string | number) => any;
191
191
  }, {
192
- size: "sm" | "lg";
193
- label: string;
194
192
  type: "number" | "text" | "password";
193
+ label: string;
194
+ size: "sm" | "lg";
195
195
  testId: string;
196
196
  disabled: boolean;
197
197
  modelValue: string | number;
@@ -211,15 +211,15 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
211
211
  ref: {
212
212
  type: import("vue").PropType<import("vue").VNodeRef>;
213
213
  };
214
- size: {
215
- type: import("vue").PropType<"sm" | "lg">;
216
- };
217
214
  label: {
218
215
  type: import("vue").PropType<string>;
219
216
  };
220
217
  style: {
221
218
  type: import("vue").PropType<unknown>;
222
219
  };
220
+ size: {
221
+ type: import("vue").PropType<"sm" | "lg">;
222
+ };
223
223
  testId: {
224
224
  type: import("vue").PropType<string>;
225
225
  };
@@ -330,15 +330,15 @@ declare const InputTypes: () => (import("vue").DefineComponent<{
330
330
  ref: {
331
331
  type: import("vue").PropType<import("vue").VNodeRef>;
332
332
  };
333
- size: {
334
- type: import("vue").PropType<"sm" | "lg">;
335
- };
336
333
  label: {
337
334
  type: import("vue").PropType<string>;
338
335
  };
339
336
  style: {
340
337
  type: import("vue").PropType<unknown>;
341
338
  };
339
+ size: {
340
+ type: import("vue").PropType<"sm" | "lg">;
341
+ };
342
342
  testId: {
343
343
  type: import("vue").PropType<string>;
344
344
  };
@@ -27,8 +27,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
27
27
  skidding: number;
28
28
  testId: string;
29
29
  }>>>, {
30
- testId: string;
31
30
  theme: string;
31
+ testId: string;
32
32
  isOnTop: boolean;
33
33
  distance: number;
34
34
  skidding: number;
@@ -1,10 +1,10 @@
1
1
  declare const MenuTypes: () => import("vue").DefineComponent<{
2
- testId: {
2
+ theme: {
3
3
  type: import("vue").PropType<string>;
4
4
  } & {
5
5
  default: string;
6
6
  };
7
- theme: {
7
+ testId: {
8
8
  type: import("vue").PropType<string>;
9
9
  } & {
10
10
  default: string;
@@ -30,12 +30,12 @@ declare const MenuTypes: () => import("vue").DefineComponent<{
30
30
  default: string;
31
31
  };
32
32
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
- testId: {
33
+ theme: {
34
34
  type: import("vue").PropType<string>;
35
35
  } & {
36
36
  default: string;
37
37
  };
38
- theme: {
38
+ testId: {
39
39
  type: import("vue").PropType<string>;
40
40
  } & {
41
41
  default: string;
@@ -61,8 +61,8 @@ declare const MenuTypes: () => import("vue").DefineComponent<{
61
61
  default: string;
62
62
  };
63
63
  }>>, {
64
- testId: string;
65
64
  theme: string;
65
+ testId: string;
66
66
  isOnTop: boolean;
67
67
  distance: number;
68
68
  skidding: number;
@@ -0,0 +1,9 @@
1
+ export declare const searchCommon: (props: any, emit: any) => {
2
+ showLeftIcon: import("vue").ComputedRef<boolean>;
3
+ updateValue: (e: Event) => void;
4
+ showRightIcon: import("vue").ComputedRef<boolean>;
5
+ showClear: import("vue").ComputedRef<boolean>;
6
+ rightIcon: import("vue").ComputedRef<"cancel" | "search">;
7
+ onRightIconClick: () => void;
8
+ inputRef: import("vue").Ref<HTMLInputElement>;
9
+ };
@@ -0,0 +1,52 @@
1
+ import { ref, computed } from 'vue';
2
+
3
+ const searchCommon = (props, emit) => {
4
+ const inputRef = ref();
5
+ const updateValue = (e) => {
6
+ emit("update:modelValue", e.target.value);
7
+ };
8
+ const clearValue = () => {
9
+ emit("update:modelValue", "");
10
+ focusOnInput();
11
+ };
12
+ const onRightIconClick = () => {
13
+ if (showClear.value) {
14
+ clearValue();
15
+ } else {
16
+ focusOnInput();
17
+ }
18
+ };
19
+ const focusOnInput = () => inputRef.value.focus();
20
+ const showClear = computed(() => {
21
+ return props.modelValue !== "";
22
+ });
23
+ const inline = computed(() => {
24
+ return props.variant === "inline-table";
25
+ });
26
+ const transparent = computed(() => {
27
+ return props.variant === "transparent";
28
+ });
29
+ const showRightIcon = computed(() => {
30
+ if (inline.value || transparent.value) {
31
+ showClear.value;
32
+ }
33
+ return showClear.value;
34
+ });
35
+ const showLeftIcon = computed(() => {
36
+ return transparent.value || inline.value;
37
+ });
38
+ const rightIcon = computed(() => {
39
+ return showClear.value ? "cancel" : "search";
40
+ });
41
+ return {
42
+ showLeftIcon,
43
+ updateValue,
44
+ showRightIcon,
45
+ showClear,
46
+ rightIcon,
47
+ onRightIconClick,
48
+ inputRef
49
+ };
50
+ };
51
+
52
+ export { searchCommon };
@@ -1,9 +1,10 @@
1
- import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, unref, createBlock, createCommentVNode, createElementVNode } from 'vue';
2
- import Icon from '../icon/Icon.vue.js';
3
- import { SearchTestIdModifiers } from '../../testids/index.vue.js';
4
- /* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
1
+ import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, createBlock, createCommentVNode, createElementVNode } from 'vue';
2
+ import Icon from '../../icon/Icon.vue.js';
3
+ import { SearchTestIdModifiers } from '../../../testids/index.vue.js';
4
+ import { searchCommon } from '../common/Search.common.vue.js';
5
+ /* empty css */import _export_sfc from '../../../_virtual/plugin-vue_export-helper.vue.js';
5
6
 
6
- import "../../Search.vue_vue_type_style_index_0_scoped_true_lang.css";
7
+ import "../../../Search.vue_vue_type_style_index_0_scoped_true_lang.css";
7
8
  const _hoisted_1 = ["data-testid"];
8
9
  const _hoisted_2 = ["value", "placeholder", "disabled", "data-testid"];
9
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -19,43 +20,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
20
  emits: ["update:modelValue"],
20
21
  setup(__props, { expose, emit }) {
21
22
  const props = __props;
22
- const inputRef = ref();
23
- const updateValue = (e) => {
24
- emit("update:modelValue", e.target.value);
25
- };
26
- const clearValue = () => {
27
- emit("update:modelValue", "");
28
- focusOnInput();
29
- };
30
- const onRightIconClick = () => {
31
- if (showClear.value) {
32
- clearValue();
33
- } else {
34
- focusOnInput();
35
- }
36
- };
37
- const focusOnInput = () => inputRef.value.focus();
38
- const showClear = computed(() => {
39
- return props.modelValue !== "";
40
- });
41
- const inline = computed(() => {
42
- return props.variant === "inline-table";
43
- });
44
- const transparent = computed(() => {
45
- return props.variant === "transparent";
46
- });
47
- const showRightIcon = computed(() => {
48
- if (inline.value || transparent.value) {
49
- showClear.value;
50
- }
51
- return showClear.value;
52
- });
53
- const showLeftIcon = computed(() => {
54
- return transparent.value || inline.value;
55
- });
56
- const rightIcon = computed(() => {
57
- return showClear.value ? "cancel" : "search";
58
- });
23
+ const {
24
+ showLeftIcon,
25
+ updateValue,
26
+ showRightIcon,
27
+ showClear,
28
+ rightIcon,
29
+ onRightIconClick,
30
+ inputRef
31
+ } = searchCommon(props, emit);
59
32
  expose({
60
33
  inputRef
61
34
  });
@@ -78,7 +51,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
78
51
  placeholder: __props.placeholder,
79
52
  disabled: __props.disabled,
80
53
  "data-testid": `${__props.testId}-${unref(SearchTestIdModifiers).FIELD}`,
81
- onInput: updateValue
54
+ onInput: _cache[0] || (_cache[0] = (...args) => unref(updateValue) && unref(updateValue)(...args))
82
55
  }, null, 42, _hoisted_2),
83
56
  unref(showRightIcon) ? (openBlock(), createBlock(unref(Icon), {
84
57
  key: 1,
@@ -86,12 +59,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
86
59
  name: unref(rightIcon),
87
60
  "font-size": "sm",
88
61
  "data-testid": `${__props.testId}-${unref(SearchTestIdModifiers).CLOSE}`,
89
- onClick: onRightIconClick
90
- }, null, 8, ["class", "name", "data-testid"])) : createCommentVNode("", true)
62
+ onClick: unref(onRightIconClick)
63
+ }, null, 8, ["class", "name", "data-testid", "onClick"])) : createCommentVNode("", true)
91
64
  ], 10, _hoisted_1);
92
65
  };
93
66
  }
94
67
  });
95
- var Search = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3550fe6c"]]);
68
+ var Search = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5ec84660"]]);
96
69
 
97
70
  export { Search as default };
@@ -10,7 +10,7 @@ declare const SearchTypes: () => import("vue").DefineComponent<{
10
10
  default: string;
11
11
  };
12
12
  variant: {
13
- type: import("vue").PropType<"default" | "inline-table" | "transparent">;
13
+ type: import("vue").PropType<"default" | "transparent" | "inline-table">;
14
14
  } & {
15
15
  default: string;
16
16
  };
@@ -43,7 +43,7 @@ declare const SearchTypes: () => import("vue").DefineComponent<{
43
43
  default: string;
44
44
  };
45
45
  variant: {
46
- type: import("vue").PropType<"default" | "inline-table" | "transparent">;
46
+ type: import("vue").PropType<"default" | "transparent" | "inline-table">;
47
47
  } & {
48
48
  default: string;
49
49
  };
@@ -65,7 +65,7 @@ declare const SearchTypes: () => import("vue").DefineComponent<{
65
65
  }, {
66
66
  size: "md" | "sm";
67
67
  testId: string;
68
- variant: "default" | "inline-table" | "transparent";
68
+ variant: "default" | "transparent" | "inline-table";
69
69
  disabled: boolean;
70
70
  }>[];
71
71
  export { default as Search } from './Search.vue';