@5ive-souls/controls 0.0.8 → 0.0.9

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.
@@ -31,15 +31,15 @@ const ze = {
31
31
  }, A = {
32
32
  ...ze,
33
33
  ...ke
34
- }, le = m.createContext(void 0), De = {
34
+ }, le = m.createContext(void 0), Oe = {
35
35
  // eslint-disable-next-line @nx/workspace-no-restricted-globals -- expected ignore ( SSR friendly acquisition of globals )
36
36
  targetDocument: typeof document == "object" ? document : void 0,
37
37
  dir: "ltr"
38
38
  };
39
39
  le.Provider;
40
- function Oe() {
40
+ function De() {
41
41
  var e;
42
- return (e = m.useContext(le)) !== null && e !== void 0 ? e : De;
42
+ return (e = m.useContext(le)) !== null && e !== void 0 ? e : Oe;
43
43
  }
44
44
  function $e() {
45
45
  return (
@@ -238,7 +238,7 @@ function je(e) {
238
238
  }
239
239
  const qe = "screen and (prefers-reduced-motion: reduce)";
240
240
  function We() {
241
- const { targetDocument: e } = Oe();
241
+ const { targetDocument: e } = De();
242
242
  var r;
243
243
  const n = (r = e == null ? void 0 : e.defaultView) !== null && r !== void 0 ? r : null, o = m.useRef(!1), i = m.useCallback(() => o.current, []);
244
244
  return W(() => {
@@ -303,8 +303,8 @@ function Ke() {
303
303
  }
304
304
  }
305
305
  }
306
- var T = u, M = e, O = l, P = n, N = f, _ = p, z = r, k = i, D = o, I = c;
307
- return v.ContextConsumer = d, v.ContextProvider = T, v.Element = M, v.ForwardRef = O, v.Fragment = P, v.Lazy = N, v.Memo = _, v.Portal = z, v.Profiler = k, v.StrictMode = D, v.Suspense = I, v.isAsyncMode = function() {
306
+ var T = u, M = e, D = l, P = n, N = f, _ = p, z = r, k = i, O = o, I = c;
307
+ return v.ContextConsumer = d, v.ContextProvider = T, v.Element = M, v.ForwardRef = D, v.Fragment = P, v.Lazy = N, v.Memo = _, v.Portal = z, v.Profiler = k, v.StrictMode = O, v.Suspense = I, v.isAsyncMode = function() {
308
308
  return !1;
309
309
  }, v.isConcurrentMode = function() {
310
310
  return !1;
@@ -386,7 +386,7 @@ function Xe() {
386
386
  }
387
387
  }
388
388
  }
389
- var O = d, P = u, N = e, _ = l, z = n, k = f, D = p, I = r, t = i, g = o, $ = c, L = !1, U = !1;
389
+ var D = d, P = u, N = e, _ = l, z = n, k = f, O = p, I = r, t = i, g = o, $ = c, L = !1, U = !1;
390
390
  function F(a) {
391
391
  return L || (L = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
392
392
  }
@@ -426,7 +426,7 @@ function Xe() {
426
426
  function Me(a) {
427
427
  return M(a) === c;
428
428
  }
429
- E.ContextConsumer = O, E.ContextProvider = P, E.Element = N, E.ForwardRef = _, E.Fragment = z, E.Lazy = k, E.Memo = D, E.Portal = I, E.Profiler = t, E.StrictMode = g, E.Suspense = $, E.isAsyncMode = F, E.isConcurrentMode = Y, E.isContextConsumer = H, E.isContextProvider = X, E.isElement = ve, E.isForwardRef = Ee, E.isFragment = he, E.isLazy = Re, E.isMemo = Ce, E.isPortal = ge, E.isProfiler = Se, E.isStrictMode = ye, E.isSuspense = Me, E.isValidElementType = T, E.typeOf = M;
429
+ E.ContextConsumer = D, E.ContextProvider = P, E.Element = N, E.ForwardRef = _, E.Fragment = z, E.Lazy = k, E.Memo = O, E.Portal = I, E.Profiler = t, E.StrictMode = g, E.Suspense = $, E.isAsyncMode = F, E.isConcurrentMode = Y, E.isContextConsumer = H, E.isContextProvider = X, E.isElement = ve, E.isForwardRef = Ee, E.isFragment = he, E.isLazy = Re, E.isMemo = Ce, E.isPortal = ge, E.isProfiler = Se, E.isStrictMode = ye, E.isSuspense = Me, E.isValidElementType = T, E.typeOf = M;
430
430
  }()), E;
431
431
  }
432
432
  process.env.NODE_ENV === "production" ? ee.exports = Ke() : ee.exports = Xe();
@@ -472,7 +472,7 @@ function K(e) {
472
472
  const o = {
473
473
  ...m.useContext(et),
474
474
  ...r
475
- }, i = Je() === "skip", { appear: u, children: d, imperativeRef: l, onExit: c, onMotionFinish: h, onMotionStart: p, onMotionCancel: f, visible: S, unmountOnExit: C, ...y } = o, w = y, [b, s] = tt(S, C), R = Ze(d), T = je(l), M = m.useRef(), O = Ue(M, R.ref), P = m.useRef({
475
+ }, i = Je() === "skip", { appear: u, children: d, imperativeRef: l, onExit: c, onMotionFinish: h, onMotionStart: p, onMotionCancel: f, visible: S, unmountOnExit: C, ...y } = o, w = y, [b, s] = tt(S, C), R = Ze(d), T = je(l), M = m.useRef(), D = Ue(M, R.ref), P = m.useRef({
476
476
  appear: u,
477
477
  params: w,
478
478
  skipMotions: i
@@ -480,7 +480,7 @@ function K(e) {
480
480
  p == null || p(null, {
481
481
  direction: t
482
482
  });
483
- }), D = J((t) => {
483
+ }), O = J((t) => {
484
484
  h == null || h(null, {
485
485
  direction: t
486
486
  }), t === "exit" && C && (s(!1), c == null || c());
@@ -513,7 +513,7 @@ function K(e) {
513
513
  const F = S ? L.enter : L.exit, Y = S ? "enter" : "exit", H = !P.current.appear && _, X = P.current.skipMotions;
514
514
  return H || k(Y), g = N(t, F, {
515
515
  isReducedMotion: z()
516
- }), H ? (g.finish(), $) : (T.current = g, g.setMotionEndCallbacks(() => D(Y), () => I(Y)), X && g.finish(), $);
516
+ }), H ? (g.finish(), $) : (T.current = g, g.setMotionEndCallbacks(() => O(Y), () => I(Y)), X && g.finish(), $);
517
517
  },
518
518
  // Excluding `isFirstMount` from deps to prevent re-triggering the animation on subsequent renders
519
519
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -521,13 +521,13 @@ function K(e) {
521
521
  N,
522
522
  T,
523
523
  z,
524
- D,
524
+ O,
525
525
  k,
526
526
  I,
527
527
  S
528
528
  ]
529
529
  ), b ? m.cloneElement(R, {
530
- ref: O
530
+ ref: D
531
531
  }) : null;
532
532
  }, {
533
533
  // Heads up!
@@ -742,13 +742,13 @@ const ct = Te({
742
742
  let R = V(q.Section, C.root, d);
743
743
  (l || (_ = e.cellProps) != null && _.resizable) && (R = V(R, C.fill)), (p == null || p == "default") && (R = V(R, C.default));
744
744
  const T = ie.buildSectionStyles(e), M = ie.buildSectionContentStyles(e);
745
- y || (e.collapseDirection == "horizontal" ? (T.height = "100%", T.width = "50px", T.maxWidth = "50px") : T.height = "fit-content");
746
- const O = u == "horizontal" ? y ? /* @__PURE__ */ x(Ae, {}) : /* @__PURE__ */ x(Ie, {}) : y ? /* @__PURE__ */ x(Ne, {}) : /* @__PURE__ */ x(_e, {});
745
+ y || (u == "horizontal" ? (T.height = "100%", T.width = "50px", T.maxWidth = "50px") : T.height = "fit-content");
746
+ const D = u == "horizontal" ? y ? /* @__PURE__ */ x(Ae, {}) : /* @__PURE__ */ x(Ie, {}) : y ? /* @__PURE__ */ x(Ne, {}) : /* @__PURE__ */ x(_e, {});
747
747
  let P = q.SectionHeader;
748
- e.collapseDirection == "horizontal" && (y || (P = V(P, C.collapsedHorizontalHeader)));
748
+ u == "horizontal" && (y || (P = V(P, C.collapsedHorizontalHeader)));
749
749
  const N = (z) => {
750
750
  if (e.cellProps) {
751
- const { column: k, row: D } = e.cellProps, I = u == "horizontal", t = z.currentTarget.closest("." + q.Grid), g = I ? k : D;
751
+ const { column: k, row: O } = e.cellProps, I = u == "horizontal", t = z.currentTarget.closest("." + q.Grid), g = I ? k : O;
752
752
  if (y) {
753
753
  const F = (I ? t.style.gridTemplateColumns : t.style.gridTemplateRows).split(" ")[g - 1];
754
754
  s(F);
@@ -762,7 +762,7 @@ const ct = Te({
762
762
  /* @__PURE__ */ x(G, { className: P, children: /* @__PURE__ */ Z(oe, { fill: !0, alignItems: "center", horizontal: !0, children: [
763
763
  n && /* @__PURE__ */ x(G, { padding: 8, children: n }),
764
764
  /* @__PURE__ */ x(G, { grow: 1, children: o && o }),
765
- i && /* @__PURE__ */ x(G, { children: /* @__PURE__ */ x(be, { appearance: "transparent", icon: O, onClick: N }) })
765
+ i && /* @__PURE__ */ x(G, { children: /* @__PURE__ */ x(be, { appearance: "transparent", icon: D, onClick: N }) })
766
766
  ] }) }),
767
767
  (n || o || i) && /* @__PURE__ */ x(xe, { className: C.divider }),
768
768
  /* @__PURE__ */ x(G, { className: q.SectionContent, grow: 1, style: M, children: /* @__PURE__ */ x(st, { visible: y, children: /* @__PURE__ */ Z("div", { className: V(C.fill, C.content), children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5ive-souls/controls",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Collection of react components built on the Fluent UI framework.",
5
5
  "keywords": [
6
6
  "react",