@ironsource/shared-ui 2.1.11-rc.17 → 2.1.11-rc.18

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
+ div[data-v-052bc376]{display:block}
@@ -1,8 +1,8 @@
1
1
  import o from "./PopoverV4.vue2.js";
2
2
  /* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_68002589_lang.css"; //*');
3
+ // import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_052bc376_lang.css"; //*');
4
4
  // import "../../../PopoverV4.vue_vue_type_style_index_1_lang.css"; //');
5
- const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-68002589"]]);
5
+ const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-052bc376"]]);
6
6
  export {
7
7
  r as default
8
8
  };
@@ -1,7 +1,7 @@
1
- import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_68002589_lang.css"; import "../../../PopoverV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as g, watch as d, openBlock as i, createBlock as k, unref as o, withCtx as s, createElementBlock as v, renderSlot as p, createCommentVNode as h, createElementVNode as C } from "vue";
2
- import { Dropdown as y } from "floating-vue";
3
- import { popoverCommon as B } from "../common/Popover.common.js";
4
- const w = ["data-testid"], E = /* @__PURE__ */ g({
1
+ import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_052bc376_lang.css"; import "../../../PopoverV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as k, watch as l, openBlock as p, createBlock as h, unref as i, withCtx as u, createElementBlock as y, renderSlot as g, createCommentVNode as B, createElementVNode as C } from "vue";
2
+ import { Dropdown as w } from "floating-vue";
3
+ import { popoverCommon as $ } from "../common/Popover.common.js";
4
+ const O = ["data-testid"], H = /* @__PURE__ */ k({
5
5
  __name: "PopoverV4",
6
6
  props: {
7
7
  isOpen: { type: Boolean, default: !1 },
@@ -15,51 +15,57 @@ const w = ["data-testid"], E = /* @__PURE__ */ g({
15
15
  popperClass: { default: "" }
16
16
  },
17
17
  emits: ["isOpen"],
18
- setup(e, { expose: l, emit: u }) {
19
- const c = e, { popup: f, open: t, toggle: n, triggerRef: m } = B();
20
- return d(t, () => {
21
- u("isOpen", t.value);
22
- }), d(
23
- () => c.isOpen,
24
- (a) => {
25
- n(a);
18
+ setup(e, { expose: f, emit: m }) {
19
+ const a = e, { popup: c, open: t, toggle: d, triggerRef: v } = $();
20
+ l(t, () => {
21
+ m("isOpen", t.value);
22
+ }), l(
23
+ () => a.isOpen,
24
+ (o) => {
25
+ d(o);
26
26
  }
27
- ), l({
28
- toggle: n
29
- }), (a, r) => (i(), k(o(y), {
27
+ );
28
+ const n = (o) => {
29
+ a.trigger === o && (t.value = !t.value);
30
+ };
31
+ return f({
32
+ toggle: d
33
+ }), (o, r) => (p(), h(i(w), {
30
34
  theme: "custom-popover",
31
35
  placement: e.placement,
32
- shown: !!o(t),
36
+ shown: !!i(t),
33
37
  triggers: e.trigger === "managed" ? [] : [e.trigger],
34
38
  "auto-hide": e.autoHide,
35
39
  distance: e.distance,
36
40
  skidding: e.skidding,
37
41
  "popper-class": [e.popperClass, "v4-popover__popper light-theme-v4"]
38
42
  }, {
39
- popper: s(() => [
40
- o(t) ? (i(), v("div", {
43
+ popper: u(() => [
44
+ i(t) ? (p(), y("div", {
41
45
  key: 0,
42
46
  ref_key: "popup",
43
- ref: f,
47
+ ref: c,
44
48
  class: "menu-popup",
45
49
  "data-testid": e.testId
46
50
  }, [
47
- p(a.$slots, "content", {}, void 0, !0)
48
- ], 8, w)) : h("", !0)
51
+ g(o.$slots, "content", {}, void 0, !0)
52
+ ], 8, O)) : B("", !0)
49
53
  ]),
50
- default: s(() => [
54
+ default: u(() => [
51
55
  C("div", {
52
56
  ref_key: "triggerRef",
53
- ref: m,
54
- onClick: r[0] || (r[0] = (O) => o(n)(!o(t)))
57
+ ref: v,
58
+ onClick: r[0] || (r[0] = (s) => n("click")),
59
+ onMouseenter: r[1] || (r[1] = (s) => n("hover")),
60
+ onMouseleave: r[2] || (r[2] = (s) => n("hover"))
55
61
  }, [
56
- p(a.$slots, "trigger", {}, void 0, !0)
57
- ], 512)
62
+ g(o.$slots, "trigger", {}, void 0, !0)
63
+ ], 544)
58
64
  ]),
59
65
  _: 3
60
66
  }, 8, ["placement", "shown", "triggers", "auto-hide", "distance", "skidding", "popper-class"]));
61
67
  }
62
68
  });
63
69
  export {
64
- E as default
70
+ H as default
65
71
  };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './FloatingToolbar.vue_vue_type_style_index_0_scoped_04d485be_lang.css';
1
+ import './AppIcon.vue_vue_type_style_index_0_scoped_56ba337c_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.17",
3
+ "version": "2.1.11-rc.18",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"
@@ -1 +0,0 @@
1
- div[data-v-68002589]{display:block}