@ironsource/shared-ui 2.1.3-rc.9 → 2.1.3

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 (117) hide show
  1. package/Alert.vue_vue_type_style_index_0_scoped_d6680a72_lang.css +1 -0
  2. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_2e91704b_lang.css +1 -0
  3. package/AppHeader.vue_vue_type_style_index_0_scoped_8ffac784_lang.css +1 -0
  4. package/Autocomplete.vue_vue_type_style_index_0_scoped_429e5745_lang.css +1 -0
  5. package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_23e22560_lang.css +1 -0
  6. package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +1 -0
  7. package/DataGrid.vue_vue_type_style_index_0_scoped_bddb537c_lang.css +1 -0
  8. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_c3033d90_lang.css +1 -0
  9. package/DialogV4.vue_vue_type_style_index_0_scoped_ea9275e6_lang.css +1 -0
  10. package/DropdownV4.vue_vue_type_style_index_0_scoped_24014c62_lang.css +1 -0
  11. package/FormCard.vue_vue_type_style_index_0_scoped_fa761e4d_lang.css +1 -0
  12. package/FormRow.vue_vue_type_style_index_0_scoped_fc3897fd_lang.css +1 -0
  13. package/HelpIcon.vue_vue_type_style_index_0_scoped_7a611779_lang.css +1 -0
  14. package/OptionV4.vue_vue_type_style_index_0_scoped_cae6bfd4_lang.css +1 -0
  15. package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +1 -0
  16. package/TextField.vue_vue_type_style_index_0_scoped_95e25718_lang.css +1 -0
  17. package/components/alert/Alert.vue.d.ts +14 -7
  18. package/components/alert/Alert.vue.js +2 -2
  19. package/components/alert/Alert.vue2.js +30 -29
  20. package/components/alert/index.d.ts +176 -38
  21. package/components/appHeader/AppHeader.vue.d.ts +5 -0
  22. package/components/appHeader/AppHeader.vue.js +2 -2
  23. package/components/appHeader/AppHeader.vue2.js +49 -37
  24. package/components/appHeader/index.d.ts +9 -0
  25. package/components/autocomplete/Autocomplete.vue.d.ts +140 -0
  26. package/components/autocomplete/Autocomplete.vue.js +7 -0
  27. package/components/autocomplete/Autocomplete.vue2.js +99 -0
  28. package/components/autocomplete/index.d.ts +459 -0
  29. package/components/autocomplete/index.js +6 -0
  30. package/components/button/v4/ButtonV4.vue2.js +90 -1
  31. package/components/checkbox/v3/index.d.ts +12 -12
  32. package/components/checkbox/v4/index.d.ts +12 -12
  33. package/components/chip/v3/Chip.vue.d.ts +1 -1
  34. package/components/chip/v3/index.d.ts +20 -20
  35. package/components/chip/v4/ChipV4.vue.d.ts +1 -1
  36. package/components/chip/v4/index.d.ts +20 -20
  37. package/components/dialog/v4/DialogV4.vue.js +4 -4
  38. package/components/dialog/v4/DialogV4.vue2.js +2 -2
  39. package/components/dialog/v4/index.d.ts +16 -16
  40. package/components/dropdown/common/Dropdown.common.d.ts +1 -0
  41. package/components/dropdown/common/Dropdown.common.js +34 -33
  42. package/components/dropdown/v3/Dropdown.vue.d.ts +11 -11
  43. package/components/dropdown/v3/index.d.ts +159 -159
  44. package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +4 -4
  45. package/components/dropdown/v4/AppDropdownTrigger.vue.js +3 -3
  46. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +31 -31
  47. package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +71 -0
  48. package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +7 -0
  49. package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +36 -0
  50. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.d.ts +66 -0
  51. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +7 -0
  52. package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +50 -0
  53. package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +1 -1
  54. package/components/dropdown/v4/DefaultDropdownTrigger.vue.d.ts +7 -7
  55. package/components/dropdown/v4/DefaultDropdownTrigger.vue.js +2 -2
  56. package/components/dropdown/v4/DefaultDropdownTrigger.vue2.js +1 -1
  57. package/components/dropdown/v4/DropdownV4.vue.d.ts +29 -22
  58. package/components/dropdown/v4/DropdownV4.vue.js +3 -3
  59. package/components/dropdown/v4/DropdownV4.vue2.js +143 -130
  60. package/components/dropdown/v4/OptionV4.vue.js +3 -3
  61. package/components/dropdown/v4/OptionV4.vue2.js +96 -86
  62. package/components/dropdown/v4/dropdownStoryArgs.d.ts +9 -0
  63. package/components/dropdown/v4/index.d.ts +705 -610
  64. package/components/dropdown/v4/index.js +16 -10
  65. package/components/filterDropdown/index.d.ts +8 -8
  66. package/components/forms/FormCard.vue.js +3 -3
  67. package/components/forms/FormCard.vue2.js +1 -1
  68. package/components/forms/FormRow.vue.js +2 -2
  69. package/components/forms/FormRow.vue2.js +9 -9
  70. package/components/includeExclude/IncludeExclude.vue.d.ts +3 -3
  71. package/components/includeExclude/IncludeExcludeAppHeader.vue.d.ts +2 -2
  72. package/components/includeExclude/IncludeExcludeChipFilter.vue.d.ts +3 -3
  73. package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +3 -3
  74. package/components/includeExclude/index.d.ts +168 -168
  75. package/components/input/v3/Input.vue.d.ts +3 -3
  76. package/components/input/v3/index.d.ts +82 -82
  77. package/components/input/v4/TextField.vue.d.ts +6 -6
  78. package/components/input/v4/TextField.vue.js +3 -3
  79. package/components/input/v4/TextField.vue2.js +2 -2
  80. package/components/input/v4/index.d.ts +115 -115
  81. package/components/multibar/MultiBarMenu.vue2.js +13 -11
  82. package/components/table/common/Table.types.d.ts +3 -0
  83. package/components/table/v4/DataGrid.vue.d.ts +2 -2
  84. package/components/table/v4/DataGrid.vue.js +3 -3
  85. package/components/table/v4/DataGrid.vue2.js +147 -137
  86. package/components/table/v4/DataGridMenu.vue2.js +13 -11
  87. package/components/table/v4/HelpIcon.vue.d.ts +40 -0
  88. package/components/table/v4/HelpIcon.vue.js +7 -0
  89. package/components/table/v4/HelpIcon.vue2.js +32 -0
  90. package/components/table/v4/index.d.ts +39 -39
  91. package/components/table-cells/v4/EditableV4.vue.d.ts +1 -1
  92. package/components/table-cells/v4/index.d.ts +20 -20
  93. package/components/tabs/v4/TabsV4.vue.js +4 -4
  94. package/components/tabs/v4/TabsV4.vue2.js +4 -4
  95. package/components/textArea/v4/TextAreaV4.vue.d.ts +3 -3
  96. package/components/textArea/v4/index.d.ts +23 -23
  97. package/components/toggle/v3/Toggle.vue.d.ts +1 -1
  98. package/components/toggle/v3/index.d.ts +9 -9
  99. package/components/toggle/v4/ToggleV4.vue.d.ts +1 -1
  100. package/components/toggle/v4/index.d.ts +28 -28
  101. package/index.d.ts +2216 -1922
  102. package/index.js +74 -70
  103. package/package.json +5 -3
  104. package/testids/index.d.ts +3 -1
  105. package/testids/index.js +10 -10
  106. package/Alert.vue_vue_type_style_index_0_scoped_203b6bd1_lang.css +0 -1
  107. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_5d9c6052_lang.css +0 -1
  108. package/AppHeader.vue_vue_type_style_index_0_scoped_95908b8d_lang.css +0 -1
  109. package/DataGrid.vue_vue_type_style_index_0_scoped_4baf9e57_lang.css +0 -1
  110. package/DefaultDropdownTrigger.vue_vue_type_style_index_0_scoped_f0c4710f_lang.css +0 -1
  111. package/DialogV4.vue_vue_type_style_index_0_scoped_7422cf08_lang.css +0 -1
  112. package/DropdownV4.vue_vue_type_style_index_0_scoped_78c1497e_lang.css +0 -1
  113. package/FormCard.vue_vue_type_style_index_0_scoped_276bd901_lang.css +0 -1
  114. package/FormRow.vue_vue_type_style_index_0_scoped_c5265707_lang.css +0 -1
  115. package/OptionV4.vue_vue_type_style_index_0_scoped_d2743070_lang.css +0 -1
  116. package/TabsV4.vue_vue_type_style_index_0_scoped_bab86b0a_lang.css +0 -1
  117. package/TextField.vue_vue_type_style_index_0_scoped_dca4c102_lang.css +0 -1
@@ -1,18 +1,19 @@
1
- import "../../../OptionV4.vue_vue_type_style_index_0_scoped_d2743070_lang.css"; import { defineComponent as $, openBlock as n, createElementBlock as o, normalizeClass as y, unref as t, createElementVNode as d, createBlock as k, createCommentVNode as l, renderSlot as m, createVNode as r, withCtx as b, createTextVNode as g, toDisplayString as h, withModifiers as T } from "vue";
1
+ import "../../../OptionV4.vue_vue_type_style_index_0_scoped_cae6bfd4_lang.css"; import { defineComponent as B, openBlock as o, createBlock as r, unref as i, withCtx as m, createElementVNode as a, normalizeClass as b, createCommentVNode as l, createElementBlock as s, renderSlot as u, createVNode as f, createTextVNode as g, toDisplayString as k, withModifiers as $ } from "vue";
2
2
  import "../../typography/Heading.vue.js";
3
- import p from "../../typography/Text.vue.js";
4
- import x from "../../checkbox/v4/CheckboxV4.vue.js";
5
- import v from "../../icon/v4/IconV4.vue.js";
6
- import { NOOP as z } from "@vue/shared";
7
- import { optionCommon as N } from "../common/Option.common.js";
8
- import V from "../../typography/v4/Typography.vue.js";
9
- const w = {
3
+ import I from "../../typography/Text.vue.js";
4
+ import z from "../../checkbox/v4/CheckboxV4.vue.js";
5
+ import h from "../../icon/v4/IconV4.vue.js";
6
+ import { NOOP as N } from "@vue/shared";
7
+ import { optionCommon as V } from "../common/Option.common.js";
8
+ import w from "../../typography/v4/Typography.vue.js";
9
+ import O from "../../tooltip/v4/TooltipV4.vue.js";
10
+ const S = {
10
11
  key: 1,
11
12
  class: "image"
12
- }, O = ["src"], S = {
13
+ }, j = ["src"], E = {
13
14
  key: 2,
14
15
  class: "start-icon"
15
- }, I = { class: "text-container" }, E = { key: 0 }, H = /* @__PURE__ */ $({
16
+ }, M = { class: "text-container" }, P = { key: 0 }, R = /* @__PURE__ */ B({
16
17
  __name: "OptionV4",
17
18
  props: {
18
19
  option: { default: null },
@@ -28,85 +29,94 @@ const w = {
28
29
  iconType: { default: "regular" }
29
30
  },
30
31
  setup(e) {
31
- const K = e, { selected: s, isMulti: c, id: C, onClick: B, api: u } = N(K);
32
- return (i, a) => (n(), o("div", {
33
- ref: "el",
34
- class: y(["item-container", {
35
- "item-container--disabled": e.disabled,
36
- "item-container--active": e.nameKey ? !1 : e.active,
37
- "item-container--selected": t(s),
38
- "item-container--multi": t(c)
39
- }])
40
- }, [
41
- d("div", {
42
- class: y(["item", {
43
- "item--multi": t(c),
44
- "item--with-icon": i.$slots["icon-start"] || i.$slots.image
45
- }])
46
- }, [
47
- t(c) ? (n(), k(t(x), {
48
- key: 0,
49
- id: t(C).toString(),
50
- tabindex: "-1",
51
- class: "checkbox",
52
- size: "sm",
53
- "is-checked": t(s),
54
- "is-indeterminate": e.isIndeterminate && !e.option,
55
- onClick: a[0] || (a[0] = (f) => e.disabled ? t(z)() : t(B)(f))
56
- }, null, 8, ["id", "is-checked", "is-indeterminate"])) : l("", !0),
57
- i.$slots.image || e.imageKey ? (n(), o("div", w, [
58
- m(i.$slots, "image", {}, () => [
59
- e.imageKey ? (n(), o("img", {
32
+ const p = e, { selected: c, isMulti: d, id: v, onClick: x, api: y } = V(p), K = (t) => t && typeof t == "object" && "optionTooltipText" in t ? t.optionTooltipText : "", C = (t) => t && typeof t == "object" && "optionTooltipTestId" in t ? t.optionTooltipTestId : null;
33
+ return (t, n) => (o(), r(i(O), {
34
+ text: K(e.option),
35
+ "test-id": C(e.option),
36
+ class: "tooltip-option"
37
+ }, {
38
+ default: m(() => [
39
+ a("div", {
40
+ ref: "el",
41
+ class: b(["item-container", {
42
+ "item-container--disabled": e.disabled,
43
+ "item-container--active": e.nameKey ? !1 : e.active,
44
+ "item-container--selected": i(c),
45
+ "item-container--multi": i(d)
46
+ }])
47
+ }, [
48
+ a("div", {
49
+ class: b(["item", {
50
+ "item--multi": i(d),
51
+ "item--with-icon": t.$slots["icon-start"] || t.$slots.image
52
+ }])
53
+ }, [
54
+ i(d) ? (o(), r(i(z), {
60
55
  key: 0,
61
- src: e.option[e.imageKey]
62
- }, null, 8, O)) : l("", !0)
63
- ], !0)
64
- ])) : l("", !0),
65
- i.$slots["icon-start"] || e.iconKey ? (n(), o("div", S, [
66
- m(i.$slots, "icon-start", {}, () => [
67
- r(t(v), {
68
- type: e.iconType,
69
- name: e.option[e.iconKey],
70
- size: e.iconType === "regular" ? "20px" : "16px"
71
- }, null, 8, ["type", "name", "size"])
72
- ], !0)
73
- ])) : l("", !0),
74
- d("div", I, [
75
- r(t(V), { variant: "body2" }, {
76
- default: b(() => [
77
- m(i.$slots, "default", {}, () => [
78
- g(h(e.option[e.nameKey]), 1)
56
+ id: i(v).toString(),
57
+ tabindex: "-1",
58
+ class: "checkbox",
59
+ size: "sm",
60
+ "is-checked": i(c),
61
+ "is-indeterminate": e.isIndeterminate && !e.option,
62
+ onClick: n[0] || (n[0] = (T) => e.disabled ? i(N)() : i(x)(T))
63
+ }, null, 8, ["id", "is-checked", "is-indeterminate"])) : l("", !0),
64
+ t.$slots.image || e.imageKey ? (o(), s("div", S, [
65
+ u(t.$slots, "image", {}, () => [
66
+ e.imageKey ? (o(), s("img", {
67
+ key: 0,
68
+ src: e.option[e.imageKey]
69
+ }, null, 8, j)) : l("", !0)
79
70
  ], !0)
80
- ]),
81
- _: 3
82
- }),
83
- e.subtitle ? (n(), k(t(p), {
84
- key: 0,
85
- class: "subtitle",
86
- size: "xs"
87
- }, {
88
- default: b(() => [
89
- g(h(e.subtitle), 1)
90
- ]),
91
- _: 1
92
- })) : l("", !0)
93
- ])
94
- ], 2),
95
- t(u).clearable && t(s) ? (n(), o("div", E, [
96
- d("button", {
97
- class: "clear-button",
98
- onClick: a[1] || (a[1] = T((f) => t(u).clearSelection(), ["prevent", "stop"]))
99
- }, [
100
- r(t(v), {
101
- name: "close",
102
- width: "8",
103
- height: 8
104
- })
105
- ])
106
- ])) : l("", !0)
107
- ], 2));
71
+ ])) : l("", !0),
72
+ t.$slots["icon-start"] || e.iconKey ? (o(), s("div", E, [
73
+ u(t.$slots, "icon-start", {}, () => [
74
+ f(i(h), {
75
+ type: e.iconType,
76
+ name: e.option[e.iconKey],
77
+ size: e.iconType === "regular" ? "20px" : "16px"
78
+ }, null, 8, ["type", "name", "size"])
79
+ ], !0)
80
+ ])) : l("", !0),
81
+ a("div", M, [
82
+ f(i(w), { variant: "body2" }, {
83
+ default: m(() => [
84
+ u(t.$slots, "default", {}, () => [
85
+ g(k(e.option[e.nameKey]), 1)
86
+ ], !0)
87
+ ]),
88
+ _: 3
89
+ }),
90
+ e.subtitle ? (o(), r(i(I), {
91
+ key: 0,
92
+ class: "subtitle",
93
+ size: "xs"
94
+ }, {
95
+ default: m(() => [
96
+ g(k(e.subtitle), 1)
97
+ ]),
98
+ _: 1
99
+ })) : l("", !0)
100
+ ])
101
+ ], 2),
102
+ i(y).clearable && i(c) ? (o(), s("div", P, [
103
+ a("button", {
104
+ class: "clear-button",
105
+ onClick: n[1] || (n[1] = $((T) => i(y).clearSelection(), ["prevent", "stop"]))
106
+ }, [
107
+ f(i(h), {
108
+ name: "close",
109
+ width: "8",
110
+ height: 8
111
+ })
112
+ ])
113
+ ])) : l("", !0)
114
+ ], 2)
115
+ ]),
116
+ _: 3
117
+ }, 8, ["text", "test-id"]));
108
118
  }
109
119
  });
110
120
  export {
111
- H as default
121
+ R as default
112
122
  };
@@ -234,6 +234,15 @@ export declare const dropDownStoryArgs: {
234
234
  category: string;
235
235
  };
236
236
  };
237
+ disabledOptionKey: {
238
+ control: {
239
+ type: string;
240
+ };
241
+ description: string;
242
+ table: {
243
+ category: string;
244
+ };
245
+ };
237
246
  theme: {
238
247
  control: {
239
248
  type: string;