indicator-ui 1.1.79 → 1.1.80

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.
package/dist/index.js CHANGED
@@ -21180,8 +21180,8 @@ function Sse(r) {
21180
21180
  close: L,
21181
21181
  toggle: V,
21182
21182
  applyPosition: M,
21183
- isOpenRef: d,
21184
21183
  isOpen: f,
21184
+ isOpenRef: d,
21185
21185
  register: v
21186
21186
  };
21187
21187
  }
@@ -21320,31 +21320,34 @@ function Eq(r) {
21320
21320
  return pe(() => (document.addEventListener("focusin", c), () => document.removeEventListener("focusin", c)), []), { onOpen: u, onClose: d };
21321
21321
  }
21322
21322
  function xse(r) {
21323
- const { panelRef: e, backdropRef: t, closeOnEscKeyDown: n = !0, closeOnClickOutside: i = !0, enter: o, leave: s } = r, c = U(!1), {
21324
- requestZIndex: u,
21325
- releaseZIndex: d,
21326
- getChildrenModalsElementsRefs: f,
21327
- registerModalPortal: h
21328
- } = h8([e, t]), p = G(() => f(), [f]), [_, g] = yt(void 0), { onLeave: y, onEnter: v } = wq({ leave: s, enter: o, panelRef: e, backdropRef: t }), { applyPosition: C } = bq({ backdropRef: t, options: { zIndex: _() } }), { onOpen: S, onClose: x } = Eq({
21323
+ const { panelRef: e, backdropRef: t, closeOnEscKeyDown: n = !0, closeOnClickOutside: i = !0, enter: o, leave: s } = r, c = U(!1), [u, d] = Re(!1), f = T((L) => {
21324
+ c.current = L, d(L);
21325
+ }, [d]), {
21326
+ requestZIndex: h,
21327
+ releaseZIndex: p,
21328
+ getChildrenModalsElementsRefs: _,
21329
+ registerModalPortal: g
21330
+ } = h8([e, t]), y = G(() => _(), [_]), [v, C] = yt(void 0), { onLeave: S, onEnter: x } = wq({ leave: s, enter: o, panelRef: e, backdropRef: t }), { applyPosition: E } = bq({ backdropRef: t, options: { zIndex: v() } }), { onOpen: b, onClose: D } = Eq({
21329
21331
  panelRef: e,
21330
21332
  isOpenRef: c,
21331
- childrenModalsElementsRefs: p
21332
- }), E = Ke(async () => {
21333
- const M = u();
21334
- g(M), C({ zIndex: M }), c.current = !0, await v(), S();
21335
- }), b = Ke(async () => (c.current = !1, x(), d(), y())), D = Ke(async () => c.current ? b() : E());
21336
- return kq({ closeModal: b, closeOnEscKeyDown: n, backdropRef: t }), vq({
21337
- closeModal: b,
21333
+ childrenModalsElementsRefs: y
21334
+ }), M = Ke(async () => {
21335
+ const L = h();
21336
+ C(L), E({ zIndex: L }), f(!0), await x(), b();
21337
+ }), A = Ke(async () => (f(!1), D(), p(), S())), F = Ke(async () => c.current ? A() : M());
21338
+ return kq({ closeModal: A, closeOnEscKeyDown: n, backdropRef: t }), vq({
21339
+ closeModal: A,
21338
21340
  panelRef: e,
21339
21341
  isOpenRef: c,
21340
21342
  closeOnClickOutside: i,
21341
- childrenModalsElementsRefs: p
21343
+ childrenModalsElementsRefs: y
21342
21344
  }), {
21343
- open: E,
21344
- close: b,
21345
- toggle: D,
21345
+ open: M,
21346
+ close: A,
21347
+ toggle: F,
21346
21348
  isOpenRef: c,
21347
- register: h
21349
+ isOpen: u,
21350
+ register: g
21348
21351
  };
21349
21352
  }
21350
21353
  function Sq(r) {
@@ -19,8 +19,8 @@ export declare function useAnchoredModalController(props: PropsType): {
19
19
  } & {
20
20
  zIndex?: number;
21
21
  }) => void;
22
- isOpenRef: React.RefObject<boolean>;
23
22
  isOpen: boolean;
23
+ isOpenRef: React.RefObject<boolean>;
24
24
  register: import('../../federation/modalInstanceContext').RegisterModal;
25
25
  };
26
26
  export {};
@@ -11,6 +11,7 @@ export declare function useDialogModalController(props: PropsType): {
11
11
  close: () => Promise<unknown>;
12
12
  toggle: () => Promise<unknown>;
13
13
  isOpenRef: React.RefObject<boolean>;
14
+ isOpen: boolean;
14
15
  register: import('../../federation/modalInstanceContext').RegisterModal;
15
16
  };
16
17
  export {};
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "react-components",
12
12
  "ui-kit"
13
13
  ],
14
- "version": "1.1.79",
14
+ "version": "1.1.80",
15
15
  "exports": {
16
16
  ".": {
17
17
  "types": "./dist/types/index.d.ts",