@ironsource/shared-ui 2.1.6-rc.14 → 2.1.6-rc.16

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 (42) hide show
  1. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_71c3ab74_lang.css +1 -0
  2. package/Dropdown.vue_vue_type_style_index_0_scoped_aaa8c4bb_lang.css +1 -0
  3. package/DropdownV4.vue_vue_type_style_index_0_scoped_77f8bdb6_lang.css +1 -0
  4. package/InlineCopy.vue_vue_type_style_index_0_scoped_6a7b3795_lang.css +1 -0
  5. package/OptionV4.vue_vue_type_style_index_0_scoped_7f8f35a1_lang.css +1 -0
  6. package/TextField.vue_vue_type_style_index_0_scoped_a6457440_lang.css +1 -0
  7. package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +1 -0
  8. package/components/dropdown/common/Dropdown.common.js +20 -20
  9. package/components/dropdown/v3/Dropdown.vue.d.ts +4 -0
  10. package/components/dropdown/v3/Dropdown.vue.js +4 -4
  11. package/components/dropdown/v3/Dropdown.vue2.js +32 -32
  12. package/components/dropdown/v3/index.d.ts +13 -1
  13. package/components/dropdown/v4/AppDropdownTrigger.vue.js +2 -2
  14. package/components/dropdown/v4/AppDropdownTrigger.vue2.js +1 -1
  15. package/components/dropdown/v4/DropdownV4.vue.d.ts +14 -0
  16. package/components/dropdown/v4/DropdownV4.vue.js +2 -2
  17. package/components/dropdown/v4/DropdownV4.vue2.js +61 -57
  18. package/components/dropdown/v4/OptionV4.vue.d.ts +11 -0
  19. package/components/dropdown/v4/OptionV4.vue.js +2 -2
  20. package/components/dropdown/v4/OptionV4.vue2.js +62 -45
  21. package/components/dropdown/v4/index.d.ts +92 -3
  22. package/components/inlineCopy/InlineCopy.vue.d.ts +6 -2
  23. package/components/inlineCopy/InlineCopy.vue.js +3 -3
  24. package/components/inlineCopy/InlineCopy.vue2.js +23 -22
  25. package/components/inlineCopy/index.d.ts +6 -2
  26. package/components/input/v4/TextField.vue.d.ts +5 -0
  27. package/components/input/v4/TextField.vue.js +3 -3
  28. package/components/input/v4/TextField.vue2.js +21 -19
  29. package/components/input/v4/index.d.ts +20 -1
  30. package/components/tooltip/v4/TooltipV4.vue.d.ts +6 -2
  31. package/components/tooltip/v4/TooltipV4.vue.js +2 -2
  32. package/components/tooltip/v4/TooltipV4.vue2.js +21 -19
  33. package/components/tooltip/v4/index.d.ts +17 -5
  34. package/index.d.ts +270 -22
  35. package/package.json +1 -1
  36. package/AppDropdownTrigger.vue_vue_type_style_index_0_scoped_0267d003_lang.css +0 -1
  37. package/Dropdown.vue_vue_type_style_index_0_scoped_d4f8e790_lang.css +0 -1
  38. package/DropdownV4.vue_vue_type_style_index_0_scoped_0968078f_lang.css +0 -1
  39. package/InlineCopy.vue_vue_type_style_index_0_scoped_ff9f4a0f_lang.css +0 -1
  40. package/OptionV4.vue_vue_type_style_index_0_scoped_b8375219_lang.css +0 -1
  41. package/TextField.vue_vue_type_style_index_0_scoped_22c12586_lang.css +0 -1
  42. package/TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css +0 -1
@@ -26,6 +26,7 @@ declare const TextFieldTypes: () => ({
26
26
  showApply: boolean;
27
27
  inlineError: boolean;
28
28
  inlineErrorText: string;
29
+ inlineErrorTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
29
30
  feedbackText: string;
30
31
  feedbackVariant: "success" | "warning" | "error";
31
32
  showFeedbackTextIcon: boolean;
@@ -119,6 +120,10 @@ declare const TextFieldTypes: () => ({
119
120
  type: import("vue").PropType<string>;
120
121
  default: string;
121
122
  };
123
+ inlineErrorTextPlacement: {
124
+ type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
125
+ default: string;
126
+ };
122
127
  feedbackText: {
123
128
  type: import("vue").PropType<string>;
124
129
  default: string;
@@ -138,7 +143,7 @@ declare const TextFieldTypes: () => ({
138
143
  }>> & {
139
144
  "onUpdate:modelValue"?: (value: string | number) => any;
140
145
  onApply?: () => any;
141
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "label" | "disabled" | "size" | "mandatory" | "testId" | "hoverHelpText" | "hoverHelpTextPlacement" | "maxLength" | "modelValue" | "placeholder" | "viewOnly" | "labelDirection" | "autoFocus" | "hideNumberArrows" | "step" | "onlyDigits" | "prefix" | "suffix" | "showApply" | "inlineError" | "inlineErrorText" | "feedbackText" | "feedbackVariant" | "showFeedbackTextIcon" | "feedbackPositionAbsolute">;
146
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "label" | "disabled" | "size" | "mandatory" | "testId" | "hoverHelpText" | "hoverHelpTextPlacement" | "maxLength" | "modelValue" | "placeholder" | "viewOnly" | "labelDirection" | "autoFocus" | "hideNumberArrows" | "step" | "onlyDigits" | "prefix" | "suffix" | "showApply" | "inlineError" | "inlineErrorText" | "inlineErrorTextPlacement" | "feedbackText" | "feedbackVariant" | "showFeedbackTextIcon" | "feedbackPositionAbsolute">;
142
147
  $attrs: {
143
148
  [x: string]: unknown;
144
149
  };
@@ -241,6 +246,10 @@ declare const TextFieldTypes: () => ({
241
246
  type: import("vue").PropType<string>;
242
247
  default: string;
243
248
  };
249
+ inlineErrorTextPlacement: {
250
+ type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
251
+ default: string;
252
+ };
244
253
  feedbackText: {
245
254
  type: import("vue").PropType<string>;
246
255
  default: string;
@@ -288,6 +297,7 @@ declare const TextFieldTypes: () => ({
288
297
  showApply: boolean;
289
298
  inlineError: boolean;
290
299
  inlineErrorText: string;
300
+ inlineErrorTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
291
301
  feedbackText: string;
292
302
  feedbackVariant: "success" | "warning" | "error";
293
303
  showFeedbackTextIcon: boolean;
@@ -401,6 +411,10 @@ declare const TextFieldTypes: () => ({
401
411
  type: import("vue").PropType<string>;
402
412
  default: string;
403
413
  };
414
+ inlineErrorTextPlacement: {
415
+ type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
416
+ default: string;
417
+ };
404
418
  feedbackText: {
405
419
  type: import("vue").PropType<string>;
406
420
  default: string;
@@ -515,6 +529,10 @@ declare const TextFieldTypes: () => ({
515
529
  type: import("vue").PropType<string>;
516
530
  default: string;
517
531
  };
532
+ inlineErrorTextPlacement: {
533
+ type: import("vue").PropType<"auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end">;
534
+ default: string;
535
+ };
518
536
  feedbackText: {
519
537
  type: import("vue").PropType<string>;
520
538
  default: string;
@@ -562,6 +580,7 @@ declare const TextFieldTypes: () => ({
562
580
  showApply: boolean;
563
581
  inlineError: boolean;
564
582
  inlineErrorText: string;
583
+ inlineErrorTextPlacement: "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
565
584
  feedbackText: string;
566
585
  feedbackVariant: "success" | "warning" | "error";
567
586
  showFeedbackTextIcon: boolean;
@@ -23,7 +23,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
23
23
  testId: string;
24
24
  distance: string;
25
25
  container: string;
26
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
26
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
+ show: () => void;
28
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
27
29
  text?: string;
28
30
  header?: string;
29
31
  delay?: number;
@@ -47,7 +49,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
47
49
  testId: string;
48
50
  distance: string;
49
51
  container: string;
50
- }>>>, {
52
+ }>>> & {
53
+ onShow?: () => any;
54
+ }, {
51
55
  header: string;
52
56
  text: string;
53
57
  theme: string;
@@ -1,8 +1,8 @@
1
1
  import o from "./TooltipV4.vue2.js";
2
2
  /* empty css *//* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css"; //*');
3
+ // import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css"; //*');
4
4
  // import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; //');
5
- const l = /* @__PURE__ */ _(o, [["__scopeId", "data-v-25809092"]]);
5
+ const l = /* @__PURE__ */ _(o, [["__scopeId", "data-v-fcdb9d02"]]);
6
6
  export {
7
7
  l as default
8
8
  };
@@ -1,14 +1,14 @@
1
- import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_25809092_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as c, openBlock as l, createBlock as d, unref as t, mergeProps as m, withCtx as r, renderSlot as f, createTextVNode as u, toDisplayString as h, createElementVNode as p } from "vue";
2
- import y from "./TextWithTitleContent.vue.js";
3
- import { Tooltip as T } from "floating-vue";
1
+ import "../../../TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css"; import "../../../TooltipV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as h, openBlock as l, createBlock as d, unref as t, mergeProps as f, withCtx as r, renderSlot as u, createTextVNode as p, toDisplayString as y, createElementVNode as T } from "vue";
2
+ import g from "./TextWithTitleContent.vue.js";
3
+ import { Tooltip as x } from "floating-vue";
4
4
  import { TooltipTestIdModifiers as i } from "../../../testids/index.js";
5
- import g from "../../typography/v4/Typography.vue.js";
6
- import { tooltipCommon as x } from "../common/Tooltip.common.js";
7
- import { useTestIdAttrs as v } from "../../../utils/testIds.js";
8
- const b = {
5
+ import v from "../../typography/v4/Typography.vue.js";
6
+ import { tooltipCommon as b } from "../common/Tooltip.common.js";
7
+ import { useTestIdAttrs as w } from "../../../utils/testIds.js";
8
+ const I = {
9
9
  ref: "container",
10
10
  class: "container"
11
- }, $ = /* @__PURE__ */ c({
11
+ }, D = /* @__PURE__ */ h({
12
12
  __name: "TooltipV4",
13
13
  props: {
14
14
  text: { default: null },
@@ -23,9 +23,10 @@ const b = {
23
23
  distance: { default: "10" },
24
24
  container: { default: "body" }
25
25
  },
26
- setup(e) {
27
- const n = e, { textForDisplay: o } = x(n), s = v(n.testId, i);
28
- return (a, I) => (l(), d(t(T), m({ ...a.$props, ...t(s)[t(i).TRIGGER] }, {
26
+ emits: ["show"],
27
+ setup(e, { emit: c }) {
28
+ const n = e, { textForDisplay: o } = b(n), s = w(n.testId, i);
29
+ return (a, m) => (l(), d(t(x), f({ ...a.$props, ...t(s)[t(i).TRIGGER] }, {
29
30
  theme: e.theme,
30
31
  "no-auto-focus": "",
31
32
  triggers: e.triggers,
@@ -35,28 +36,29 @@ const b = {
35
36
  "popper-class": [e.theme, e.placement, "v4-tooltip"],
36
37
  class: ["v4-tooltip"],
37
38
  distance: e.distance,
38
- "auto-hide": ""
39
+ "auto-hide": "",
40
+ onApplyShow: m[0] || (m[0] = (k) => c("show"))
39
41
  }), {
40
42
  popper: r(() => [
41
- f(a.$slots, "tooltip", { text: t(o) }, () => [
42
- e.header ? (l(), d(y, {
43
+ u(a.$slots, "tooltip", { text: t(o) }, () => [
44
+ e.header ? (l(), d(g, {
43
45
  key: 1,
44
46
  text: e.text,
45
47
  header: e.header
46
- }, null, 8, ["text", "header"])) : (l(), d(t(g), m({
48
+ }, null, 8, ["text", "header"])) : (l(), d(t(v), f({
47
49
  key: 0,
48
50
  variant: "body2"
49
51
  }, t(s)[t(i).TEXT]), {
50
52
  default: r(() => [
51
- u(h(t(o)), 1)
53
+ p(y(t(o)), 1)
52
54
  ]),
53
55
  _: 1
54
56
  }, 16))
55
57
  ], !0)
56
58
  ]),
57
59
  default: r(() => [
58
- p("div", b, [
59
- f(a.$slots, "default", {}, void 0, !0)
60
+ T("div", I, [
61
+ u(a.$slots, "default", {}, void 0, !0)
60
62
  ], 512)
61
63
  ]),
62
64
  _: 3
@@ -64,5 +66,5 @@ const b = {
64
66
  }
65
67
  });
66
68
  export {
67
- $ as default
69
+ D as default
68
70
  };
@@ -60,7 +60,9 @@ declare const TooltipTypes: () => ({
60
60
  type: import("vue").PropType<string | number>;
61
61
  default: string;
62
62
  };
63
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "disabled" | "testId" | "container" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "distance">;
63
+ }>> & {
64
+ onShow?: () => any;
65
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "header" | "text" | "theme" | "disabled" | "testId" | "container" | "delay" | "triggers" | "forceShowWithTruncate" | "placement" | "distance">;
64
66
  $attrs: {
65
67
  [x: string]: unknown;
66
68
  };
@@ -72,7 +74,7 @@ declare const TooltipTypes: () => ({
72
74
  }>;
73
75
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
74
76
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
75
- $emit: (event: string, ...args: any[]) => void;
77
+ $emit: (event: "show") => void;
76
78
  $el: any;
77
79
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
78
80
  header: {
@@ -119,7 +121,11 @@ declare const TooltipTypes: () => ({
119
121
  type: import("vue").PropType<string | number>;
120
122
  default: string;
121
123
  };
122
- }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
124
+ }>> & {
125
+ onShow?: () => any;
126
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
127
+ show: () => void;
128
+ }, string, {
123
129
  header: string;
124
130
  text: string;
125
131
  theme: string;
@@ -196,7 +202,9 @@ declare const TooltipTypes: () => ({
196
202
  type: import("vue").PropType<string | number>;
197
203
  default: string;
198
204
  };
199
- }>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
205
+ }>> & {
206
+ onShow?: () => any;
207
+ } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
200
208
  __isFragment?: never;
201
209
  __isTeleport?: never;
202
210
  __isSuspense?: never;
@@ -245,7 +253,11 @@ declare const TooltipTypes: () => ({
245
253
  type: import("vue").PropType<string | number>;
246
254
  default: string;
247
255
  };
248
- }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
256
+ }>> & {
257
+ onShow?: () => any;
258
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
259
+ show: () => void;
260
+ }, string, {
249
261
  header: string;
250
262
  text: string;
251
263
  theme: string;