@ironsource/shared-ui 2.1.11-rc.32 → 2.1.11-rc.33

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.
@@ -0,0 +1 @@
1
+ .button-trigger.open[data-v-853b18b2]{background:var(--action-selected);outline:2px solid var(--action-active);outline-offset:-2px;transition:outline 0s}.button-trigger.open[data-v-853b18b2]:hover{background:var(--action-selected)}.button-trigger .label-wrapper[data-v-853b18b2]{display:block;width:100%}.button-trigger .label-wrapper .label[data-v-853b18b2]{white-space:nowrap}
@@ -8,6 +8,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
8
8
  startIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
9
9
  hideEndIcon?: boolean;
10
10
  testId?: string;
11
+ maxWidth?: string;
12
+ withTooltip?: boolean;
13
+ tooltipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
11
14
  }>, {
12
15
  variant: string;
13
16
  size: string;
@@ -17,6 +20,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
17
20
  startIconType: string;
18
21
  hideEndIcon: boolean;
19
22
  testId: string;
23
+ maxWidth: string;
24
+ withTooltip: boolean;
25
+ tooltipPlacement: string;
20
26
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
27
  click: () => void;
22
28
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
@@ -29,6 +35,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
29
35
  startIconType?: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
30
36
  hideEndIcon?: boolean;
31
37
  testId?: string;
38
+ maxWidth?: string;
39
+ withTooltip?: boolean;
40
+ tooltipPlacement?: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
32
41
  }>, {
33
42
  variant: string;
34
43
  size: string;
@@ -38,13 +47,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
38
47
  startIconType: string;
39
48
  hideEndIcon: boolean;
40
49
  testId: string;
50
+ maxWidth: string;
51
+ withTooltip: boolean;
52
+ tooltipPlacement: string;
41
53
  }>>> & {
42
54
  onClick?: () => any;
43
55
  }, {
44
56
  testId: string;
45
57
  variant: "text" | "outlined";
58
+ withTooltip: boolean;
59
+ tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
46
60
  disabled: boolean;
47
61
  size: "small" | "medium";
62
+ maxWidth: string;
48
63
  open: boolean;
49
64
  startIconName: string;
50
65
  startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
@@ -1,7 +1,7 @@
1
1
  import o from "./ButtonDropdownTrigger.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_f9a13e27_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-f9a13e27"]]);
2
+ /* empty css */import t from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_853b18b2_lang.css"; //*');
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-853b18b2"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,9 +1,10 @@
1
- import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_f9a13e27_lang.css"; import { defineComponent as l, openBlock as o, createBlock as i, unref as d, normalizeClass as r, withCtx as s, renderSlot as c, createElementVNode as u, toDisplayString as m } from "vue";
2
- import f from "../../button/v4/ButtonV4.vue.js";
1
+ import "../../../ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_853b18b2_lang.css"; import { defineComponent as n, openBlock as i, createBlock as d, unref as r, normalizeClass as c, withCtx as a, renderSlot as u, createElementVNode as m, normalizeStyle as s, createVNode as f, createTextVNode as p, toDisplayString as y } from "vue";
2
+ import b from "../../button/v4/ButtonV4.vue.js";
3
3
  import "../../button/v4/IconButtonV4.vue.js";
4
4
  import "../../button/v4/ButtonGroup.vue.js";
5
5
  import "../../button/v4/ToggleButtonGroupAB.vue.js";
6
- const b = { class: "label" }, p = /* @__PURE__ */ l({
6
+ import h from "../../typography/v4/Typography.vue.js";
7
+ const z = /* @__PURE__ */ n({
7
8
  __name: "ButtonDropdownTrigger",
8
9
  props: {
9
10
  label: null,
@@ -14,26 +15,46 @@ const b = { class: "label" }, p = /* @__PURE__ */ l({
14
15
  startIconName: { default: null },
15
16
  startIconType: { default: "regular" },
16
17
  hideEndIcon: { type: Boolean, default: !1 },
17
- testId: { default: "" }
18
+ testId: { default: "" },
19
+ maxWidth: { default: "" },
20
+ withTooltip: { type: Boolean, default: !0 },
21
+ tooltipPlacement: { default: "top" }
18
22
  },
19
23
  emits: ["click"],
20
- setup(e, { emit: a }) {
21
- return (n, t) => (o(), i(d(f), {
22
- class: r(["button-trigger", { open: e.open }]),
23
- disabled: e.disabled,
24
+ setup(t, { emit: l }) {
25
+ return (o, e) => (i(), d(r(b), {
26
+ class: c(["button-trigger", { open: t.open }]),
27
+ disabled: t.disabled,
24
28
  color: "default",
25
- variant: e.variant,
26
- size: e.size,
27
- "start-icon-name": e.startIconName,
28
- "start-icon-type": e.startIconType,
29
- "end-icon-name": e.hideEndIcon ? null : "caret-down",
30
- content: e.label,
31
- "test-id": e.testId,
32
- onClick: t[0] || (t[0] = (y) => a("click"))
29
+ variant: t.variant,
30
+ size: t.size,
31
+ "start-icon-name": t.startIconName,
32
+ "start-icon-type": t.startIconType,
33
+ "end-icon-name": t.hideEndIcon ? null : "caret-down",
34
+ content: t.label,
35
+ "test-id": t.testId,
36
+ onClick: e[0] || (e[0] = (w) => l("click"))
33
37
  }, {
34
- default: s(() => [
35
- c(n.$slots, "default", {}, () => [
36
- u("div", b, m(e.label), 1)
38
+ default: a(() => [
39
+ u(o.$slots, "default", {}, () => [
40
+ m("div", {
41
+ style: s({ maxWidth: t.maxWidth }),
42
+ class: "label-wrapper"
43
+ }, [
44
+ f(h, {
45
+ variant: "button",
46
+ class: "label",
47
+ "is-truncated": "",
48
+ "with-tooltip": t.withTooltip,
49
+ "tooltip-text": t.label,
50
+ "tooltip-placement": t.tooltipPlacement
51
+ }, {
52
+ default: a(() => [
53
+ p(y(t.label), 1)
54
+ ]),
55
+ _: 1
56
+ }, 8, ["with-tooltip", "tooltip-text", "tooltip-placement"])
57
+ ], 4)
37
58
  ], !0)
38
59
  ]),
39
60
  _: 3
@@ -41,5 +62,5 @@ const b = { class: "label" }, p = /* @__PURE__ */ l({
41
62
  }
42
63
  });
43
64
  export {
44
- p as default
65
+ z as default
45
66
  };
package/index.d.ts CHANGED
@@ -18021,8 +18021,11 @@ declare const _default: {
18021
18021
  $props: Partial<{
18022
18022
  testId: string;
18023
18023
  variant: "text" | "outlined";
18024
+ withTooltip: boolean;
18025
+ tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
18024
18026
  disabled: boolean;
18025
18027
  size: "small" | "medium";
18028
+ maxWidth: string;
18026
18029
  open: boolean;
18027
18030
  startIconName: string;
18028
18031
  startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
@@ -18040,6 +18043,14 @@ declare const _default: {
18040
18043
  type: import("vue").PropType<"text" | "outlined">;
18041
18044
  default: string;
18042
18045
  };
18046
+ withTooltip: {
18047
+ type: import("vue").PropType<boolean>;
18048
+ default: boolean;
18049
+ };
18050
+ tooltipPlacement: {
18051
+ type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
18052
+ default: string;
18053
+ };
18043
18054
  disabled: {
18044
18055
  type: import("vue").PropType<boolean>;
18045
18056
  default: boolean;
@@ -18048,6 +18059,10 @@ declare const _default: {
18048
18059
  type: import("vue").PropType<"small" | "medium">;
18049
18060
  default: string;
18050
18061
  };
18062
+ maxWidth: {
18063
+ type: import("vue").PropType<string>;
18064
+ default: string;
18065
+ };
18051
18066
  open: {
18052
18067
  type: import("vue").PropType<boolean>;
18053
18068
  default: boolean;
@@ -18066,7 +18081,7 @@ declare const _default: {
18066
18081
  };
18067
18082
  }>> & {
18068
18083
  onClick?: () => any;
18069
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "variant" | "disabled" | "size" | "open" | "startIconName" | "startIconType" | "hideEndIcon">;
18084
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "testId" | "variant" | "withTooltip" | "tooltipPlacement" | "disabled" | "size" | "maxWidth" | "open" | "startIconName" | "startIconType" | "hideEndIcon">;
18070
18085
  $attrs: {
18071
18086
  [x: string]: unknown;
18072
18087
  };
@@ -18093,6 +18108,14 @@ declare const _default: {
18093
18108
  type: import("vue").PropType<"text" | "outlined">;
18094
18109
  default: string;
18095
18110
  };
18111
+ withTooltip: {
18112
+ type: import("vue").PropType<boolean>;
18113
+ default: boolean;
18114
+ };
18115
+ tooltipPlacement: {
18116
+ type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
18117
+ default: string;
18118
+ };
18096
18119
  disabled: {
18097
18120
  type: import("vue").PropType<boolean>;
18098
18121
  default: boolean;
@@ -18101,6 +18124,10 @@ declare const _default: {
18101
18124
  type: import("vue").PropType<"small" | "medium">;
18102
18125
  default: string;
18103
18126
  };
18127
+ maxWidth: {
18128
+ type: import("vue").PropType<string>;
18129
+ default: string;
18130
+ };
18104
18131
  open: {
18105
18132
  type: import("vue").PropType<boolean>;
18106
18133
  default: boolean;
@@ -18124,8 +18151,11 @@ declare const _default: {
18124
18151
  }, string, {
18125
18152
  testId: string;
18126
18153
  variant: "text" | "outlined";
18154
+ withTooltip: boolean;
18155
+ tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
18127
18156
  disabled: boolean;
18128
18157
  size: "small" | "medium";
18158
+ maxWidth: string;
18129
18159
  open: boolean;
18130
18160
  startIconName: string;
18131
18161
  startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
@@ -18163,6 +18193,14 @@ declare const _default: {
18163
18193
  type: import("vue").PropType<"text" | "outlined">;
18164
18194
  default: string;
18165
18195
  };
18196
+ withTooltip: {
18197
+ type: import("vue").PropType<boolean>;
18198
+ default: boolean;
18199
+ };
18200
+ tooltipPlacement: {
18201
+ type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
18202
+ default: string;
18203
+ };
18166
18204
  disabled: {
18167
18205
  type: import("vue").PropType<boolean>;
18168
18206
  default: boolean;
@@ -18171,6 +18209,10 @@ declare const _default: {
18171
18209
  type: import("vue").PropType<"small" | "medium">;
18172
18210
  default: string;
18173
18211
  };
18212
+ maxWidth: {
18213
+ type: import("vue").PropType<string>;
18214
+ default: string;
18215
+ };
18174
18216
  open: {
18175
18217
  type: import("vue").PropType<boolean>;
18176
18218
  default: boolean;
@@ -18206,6 +18248,14 @@ declare const _default: {
18206
18248
  type: import("vue").PropType<"text" | "outlined">;
18207
18249
  default: string;
18208
18250
  };
18251
+ withTooltip: {
18252
+ type: import("vue").PropType<boolean>;
18253
+ default: boolean;
18254
+ };
18255
+ tooltipPlacement: {
18256
+ type: import("vue").PropType<"top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end">;
18257
+ default: string;
18258
+ };
18209
18259
  disabled: {
18210
18260
  type: import("vue").PropType<boolean>;
18211
18261
  default: boolean;
@@ -18214,6 +18264,10 @@ declare const _default: {
18214
18264
  type: import("vue").PropType<"small" | "medium">;
18215
18265
  default: string;
18216
18266
  };
18267
+ maxWidth: {
18268
+ type: import("vue").PropType<string>;
18269
+ default: string;
18270
+ };
18217
18271
  open: {
18218
18272
  type: import("vue").PropType<boolean>;
18219
18273
  default: boolean;
@@ -18237,8 +18291,11 @@ declare const _default: {
18237
18291
  }, string, {
18238
18292
  testId: string;
18239
18293
  variant: "text" | "outlined";
18294
+ withTooltip: boolean;
18295
+ tooltipPlacement: "top" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
18240
18296
  disabled: boolean;
18241
18297
  size: "small" | "medium";
18298
+ maxWidth: string;
18242
18299
  open: boolean;
18243
18300
  startIconName: string;
18244
18301
  startIconType: "fill" | "bold" | "regular" | "branded" | "ad-unit" | "ab-test" | "ad-networks" | "ad-networks/flat" | "content-rate";
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './MenuItem.vue_vue_type_style_index_0_scoped_67e53b85_lang.css';
1
+ import './AddFilterButton.vue_vue_type_style_index_0_scoped_fd98af08_lang.css';
2
2
  import { AppTriggerTypes as ro } from "./components/appTrigger/index.js";
3
3
  import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
4
4
  import { MenuItemTypes as po } from "./components/menuItem/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.11-rc.32",
3
+ "version": "2.1.11-rc.33",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- .button-trigger.open[data-v-f9a13e27]{background:var(--action-selected);outline:2px solid var(--action-active);outline-offset:-2px;transition:outline 0s}.button-trigger.open[data-v-f9a13e27]:hover{background:var(--action-selected)}.button-trigger .label[data-v-f9a13e27]{white-space:nowrap}