@5ive-souls/controls 0.0.7 → 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.
@@ -0,0 +1,13 @@
1
+ import { c as l } from "./createFluentIcon-CwLxkjIW.js";
2
+ const e = /* @__PURE__ */ l("Checkmark32Filled", "32", ["M29.9 5.14c.48.5.46 1.3-.04 1.77l-19 18a1.25 1.25 0 0 1-1.77-.06L2.34 17.6a1.25 1.25 0 0 1 1.82-1.7l5.9 6.33L28.14 5.09c.5-.47 1.3-.45 1.77.05Z"]), o = /* @__PURE__ */ l("ChevronDoubleDown20Regular", "20", ["M15.85 8.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 9.35a.5.5 0 1 1 .7-.7L10 13.8l5.15-5.16c.2-.2.5-.2.7 0Zm0-4c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 5.35a.5.5 0 1 1 .7-.7L10 9.8l5.15-5.16c.2-.2.5-.2.7 0Z"]), c = /* @__PURE__ */ l("ChevronDoubleLeft20Regular", "20", ["M11.35 15.85a.5.5 0 0 1-.7 0L5.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L6.2 10l5.16 5.15c.2.2.2.5 0 .7Zm4 0a.5.5 0 0 1-.7 0L9.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L10.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]), n = /* @__PURE__ */ l("ChevronDoubleRight20Regular", "20", ["M8.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L13.8 10 8.65 4.85a.5.5 0 0 1 0-.7Zm-4 0c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L9.8 10 4.65 4.85a.5.5 0 0 1 0-.7Z"]), r = /* @__PURE__ */ l("ChevronDoubleUp20Regular", "20", ["M4.15 9.65a.5.5 0 0 0 .7.7L10 5.2l5.15 5.16a.5.5 0 1 0 .7-.7L10.4 4.16a.55.55 0 0 0-.78 0L4.15 9.65Zm0 5a.5.5 0 0 0 .7.7L10 10.2l5.15 5.16a.5.5 0 1 0 .7-.7L10.4 9.16a.55.55 0 0 0-.78 0l-5.46 5.49Z"]), L = /* @__PURE__ */ l("ChevronDown16Filled", "16", ["M3.2 5.74a.75.75 0 0 1 1.06-.04L8 9.23l3.74-3.53a.75.75 0 1 1 1.02 1.1l-4.25 4a.75.75 0 0 1-1.02 0l-4.25-4a.75.75 0 0 1-.04-1.06Z"]), h = /* @__PURE__ */ l("ChevronLeft32Filled", "32", ["M20.88 5.37c.5.48.5 1.28 0 1.76L12.02 16l8.86 8.87a1.25 1.25 0 0 1-1.76 1.76l-9.75-9.75a1.25 1.25 0 0 1 0-1.76l9.75-9.75a1.25 1.25 0 0 1 1.76 0Z"]), t = /* @__PURE__ */ l("ChevronRight32Filled", "32", ["M11.12 26.63a1.25 1.25 0 0 1 0-1.76L19.98 16l-8.86-8.87a1.25 1.25 0 0 1 1.76-1.76l9.75 9.75c.5.48.5 1.28 0 1.76l-9.75 9.75c-.48.5-1.28.5-1.76 0Z"]), s = /* @__PURE__ */ l("ChevronUp16Filled", "16", ["M3.2 10.26c.28.3.76.32 1.06.04L8 6.77l3.74 3.53a.75.75 0 1 0 1.02-1.1l-4.25-4a.75.75 0 0 0-1.02 0l-4.25 4a.75.75 0 0 0-.04 1.06Z"]);
3
+ export {
4
+ h as C,
5
+ t as a,
6
+ e as b,
7
+ L as c,
8
+ s as d,
9
+ c as e,
10
+ n as f,
11
+ r as g,
12
+ o as h
13
+ };
@@ -6,7 +6,7 @@ import { FlexBoxItem as d } from "../FlexBox/FlexBoxItem/FlexBoxItem.js";
6
6
  import "../FlexBox/FlexBoxItemResizer/FlexBoxItemResizer.js";
7
7
  import { eventCalenderContext as z } from "./Context/EventCalenderContext.js";
8
8
  import { U as u, m as C } from "../../Utilities-C0PUcYTL.js";
9
- import { c as x, d as D } from "../../chunk-3-CMb_cR4A.js";
9
+ import { c as x, d as D } from "../../chunk-3-BsGkNFUP.js";
10
10
  const B = b({
11
11
  root: {
12
12
  backgroundColor: h.colorNeutralBackground1,
@@ -5,7 +5,7 @@ import "../FlexBox/FlexBoxItem/FlexBoxItem.js";
5
5
  import "../FlexBox/FlexBoxItemResizer/FlexBoxItemResizer.js";
6
6
  import { eventCalenderContext as p } from "./Context/EventCalenderContext.js";
7
7
  import { Button as n, Text as c } from "@fluentui/react-components";
8
- import { d as m, c as s } from "../../chunk-3-CMb_cR4A.js";
8
+ import { d as m, c as s } from "../../chunk-3-BsGkNFUP.js";
9
9
  const v = () => {
10
10
  const e = t.useContext(p), r = t.useCallback((a) => {
11
11
  e.setDate(new Date(a, e.month, 1));
@@ -1,48 +1,48 @@
1
- import { jsx as u, jsxs as y } from "react/jsx-runtime";
2
- import { makeStyles as k, tokens as l, mergeClasses as g } from "@fluentui/react-components";
1
+ import { jsx as u, jsxs as k } from "react/jsx-runtime";
2
+ import { makeStyles as y, tokens as s, mergeClasses as g } from "@fluentui/react-components";
3
3
  import { FlexBox as B } from "../../FlexBox/FlexBox.js";
4
- import { FlexBoxItem as N } from "../../FlexBox/FlexBoxItem/FlexBoxItem.js";
4
+ import { FlexBoxItem as M } from "../../FlexBox/FlexBoxItem/FlexBoxItem.js";
5
5
  import "../../FlexBox/FlexBoxItemResizer/FlexBoxItemResizer.js";
6
- import { GridCell as M } from "../GridCell/GridCell.js";
6
+ import { GridCell as N } from "../GridCell/GridCell.js";
7
7
  import { ClassNames as H } from "../../ClassNames.js";
8
8
  import S, { useRef as P } from "react";
9
9
  import { ResizeUtils as z } from "../../FlexBox/ResizeUtils.js";
10
10
  import { GridContext as U } from "../GridContext.js";
11
- const D = k({
11
+ const D = y({
12
12
  root: {
13
- backgroundColor: l.colorBrandBackground,
14
- borderRadius: l.borderRadiusMedium,
13
+ backgroundColor: s.colorBrandBackground,
14
+ borderRadius: s.borderRadiusMedium,
15
15
  ":hover": {
16
- backgroundColor: l.colorBrandBackgroundHover
16
+ backgroundColor: s.colorBrandBackgroundHover
17
17
  }
18
18
  },
19
19
  vertical: {
20
20
  cursor: "row-resize",
21
- height: l.spacingVerticalXS
21
+ height: s.spacingVerticalXS
22
22
  },
23
23
  horizontal: {
24
24
  cursor: "col-resize",
25
- width: l.spacingHorizontalXS
25
+ width: s.spacingHorizontalXS
26
26
  }
27
27
  }), E = (e) => {
28
- const { horizontal: t, className: h, gap: x, column: C, row: w, id: G } = e, c = D(), d = P(null), [n, f] = S.useState(), p = S.useContext(U), R = (i) => {
29
- const r = d.current, a = r.parentElement.parentElement, o = a.parentElement;
30
- o && o.classList.add("unselectable"), f({
28
+ const { horizontal: t, className: h, gap: x, column: C, row: w, id: G } = e, c = D(), d = P(null), [n, p] = S.useState(), f = S.useContext(U), R = (i) => {
29
+ const r = d.current, l = r.parentElement.parentElement, o = l.parentElement;
30
+ o && o.classList.add("unselectable"), p({
31
31
  resizer: r,
32
- gridCell: a,
32
+ gridCell: l,
33
33
  grid: o
34
34
  }), r.setPointerCapture(i.pointerId);
35
35
  }, v = (i) => {
36
36
  if (!n)
37
37
  return;
38
- const { grid: r, gridCell: a } = n, o = t ? C : w, m = z.GetGridTemplate(r, a, t, o) + z.GetMouseDelta(i, t), s = t ? p.columns[o - 1] : p.rows[o - 1];
39
- console.log(JSON.stringify(s, null, 4)), !(s.max && m > s.max) && (s.min && m < s.min || z.UpdateLayoutGrid(r, t, o, m + "px"));
38
+ const { grid: r, gridCell: l } = n, o = t ? C : w, m = z.GetGridTemplate(r, l, t, o) + z.GetMouseDelta(i, t), a = t ? f.columns[o - 1] : f.rows[o - 1];
39
+ a.max && m > a.max || a.min && m < a.min || z.UpdateLayoutGrid(r, t, o, m + "px");
40
40
  }, b = (i) => {
41
41
  const r = d.current;
42
- n && n.grid && n.grid.classList.remove("unselectable"), r.releasePointerCapture(i.pointerId), f(void 0);
42
+ n && n.grid && n.grid.classList.remove("unselectable"), r.releasePointerCapture(i.pointerId), p(void 0);
43
43
  };
44
44
  return /* @__PURE__ */ u(
45
- M,
45
+ N,
46
46
  {
47
47
  id: G,
48
48
  column: e.column,
@@ -50,8 +50,8 @@ const D = k({
50
50
  row: e.row,
51
51
  rowSpan: e.rowSpan,
52
52
  className: g(H.GridCellResizer, h),
53
- children: /* @__PURE__ */ y(B, { horizontal: e.horizontal, fill: !0, childrenGap: x, children: [
54
- /* @__PURE__ */ u(N, { grow: 1, style: e.style, children: e.children }),
53
+ children: /* @__PURE__ */ k(B, { horizontal: e.horizontal, fill: !0, childrenGap: x, children: [
54
+ /* @__PURE__ */ u(M, { grow: 1, style: e.style, children: e.children }),
55
55
  /* @__PURE__ */ u(
56
56
  "div",
57
57
  {
@@ -1,14 +1,15 @@
1
- import { jsxs as Q, jsx as P } from "react/jsx-runtime";
2
- import { makeStyles as ge, tokens as N, mergeClasses as q, Button as Te, Divider as be, Spinner as xe } from "@fluentui/react-components";
3
- import * as f from "react";
4
- import Ae from "react";
5
- import { FlexBox as re } from "../FlexBox/FlexBox.js";
6
- import { FlexBoxItem as U } from "../FlexBox/FlexBoxItem/FlexBoxItem.js";
1
+ import { jsxs as Z, jsx as x } from "react/jsx-runtime";
2
+ import { makeStyles as Te, tokens as B, mergeClasses as V, Button as be, Divider as xe, Spinner as we } from "@fluentui/react-components";
3
+ import * as m from "react";
4
+ import re from "react";
5
+ import { FlexBox as oe } from "../FlexBox/FlexBox.js";
6
+ import { FlexBoxItem as G } from "../FlexBox/FlexBoxItem/FlexBoxItem.js";
7
7
  import "../FlexBox/FlexBoxItemResizer/FlexBoxItemResizer.js";
8
- import { ClassNames as Z } from "../ClassNames.js";
9
- import { SectionUtils as oe } from "./SectionUtils.js";
10
- import { e as Pe, f as we } from "../../chunk-3-CMb_cR4A.js";
11
- const Ne = {
8
+ import { ClassNames as q } from "../ClassNames.js";
9
+ import { SectionUtils as ie } from "./SectionUtils.js";
10
+ import { ResizeUtils as Pe } from "../FlexBox/ResizeUtils.js";
11
+ import { e as Ae, f as Ie, g as Ne, h as _e } from "../../chunk-3-BsGkNFUP.js";
12
+ const ze = {
12
13
  durationUltraFast: 50,
13
14
  durationFaster: 100,
14
15
  durationFast: 150,
@@ -17,7 +18,7 @@ const Ne = {
17
18
  durationSlow: 300,
18
19
  durationSlower: 400,
19
20
  durationUltraSlow: 500
20
- }, Ie = {
21
+ }, ke = {
21
22
  curveAccelerateMax: "cubic-bezier(0.9,0.1,1,0.2)",
22
23
  curveAccelerateMid: "cubic-bezier(1,0,1,1)",
23
24
  curveAccelerateMin: "cubic-bezier(0.8,0,0.78,1)",
@@ -27,51 +28,51 @@ const Ne = {
27
28
  curveEasyEaseMax: "cubic-bezier(0.8,0,0.2,1)",
28
29
  curveEasyEase: "cubic-bezier(0.33,0,0.67,1)",
29
30
  curveLinear: "cubic-bezier(0,0,1,1)"
30
- }, x = {
31
- ...Ne,
32
- ...Ie
33
- }, ue = f.createContext(void 0), _e = {
31
+ }, A = {
32
+ ...ze,
33
+ ...ke
34
+ }, le = m.createContext(void 0), Oe = {
34
35
  // eslint-disable-next-line @nx/workspace-no-restricted-globals -- expected ignore ( SSR friendly acquisition of globals )
35
36
  targetDocument: typeof document == "object" ? document : void 0,
36
37
  dir: "ltr"
37
38
  };
38
- ue.Provider;
39
- function ke() {
39
+ le.Provider;
40
+ function De() {
40
41
  var e;
41
- return (e = f.useContext(ue)) !== null && e !== void 0 ? e : _e;
42
+ return (e = m.useContext(le)) !== null && e !== void 0 ? e : Oe;
42
43
  }
43
- function Oe() {
44
+ function $e() {
44
45
  return (
45
46
  /* eslint-disable @nx/workspace-no-restricted-globals -- expected ignore ( SSR friendly acquisition of globals )*/
46
47
  typeof window < "u" && !!(window.document && // eslint-disable-next-line @typescript-eslint/no-deprecated
47
48
  window.document.createElement)
48
49
  );
49
50
  }
50
- const G = Oe() ? f.useLayoutEffect : f.useEffect, J = (e) => {
51
- const r = f.useRef(() => {
51
+ const W = $e() ? m.useLayoutEffect : m.useEffect, J = (e) => {
52
+ const r = m.useRef(() => {
52
53
  throw new Error("Cannot call an event handler while rendering");
53
54
  });
54
- return G(() => {
55
+ return W(() => {
55
56
  r.current = e;
56
57
  }, [
57
58
  e
58
- ]), f.useCallback((...n) => {
59
+ ]), m.useCallback((...n) => {
59
60
  const o = r.current;
60
61
  return o(...n);
61
62
  }, [
62
63
  r
63
64
  ]);
64
65
  };
65
- function De() {
66
- const e = f.useRef(!0);
66
+ function Le() {
67
+ const e = m.useRef(!0);
67
68
  return e.current ? (e.current = !1, !0) : e.current;
68
69
  }
69
- function ze() {
70
- return f.useReducer((e) => e + 1, 0)[1];
70
+ function Be() {
71
+ return m.useReducer((e) => e + 1, 0)[1];
71
72
  }
72
- function $e(...e) {
73
+ function Ue(...e) {
73
74
  "use no memo";
74
- const r = f.useCallback(
75
+ const r = m.useCallback(
75
76
  (n) => {
76
77
  r.current = n;
77
78
  for (const o of e)
@@ -84,7 +85,7 @@ function $e(...e) {
84
85
  );
85
86
  return r;
86
87
  }
87
- function Le(e) {
88
+ function Fe(e) {
88
89
  if (e.playState === "running") {
89
90
  var r;
90
91
  if (e.overallProgress !== void 0) {
@@ -100,32 +101,32 @@ function Le(e) {
100
101
  }
101
102
  return !1;
102
103
  }
103
- const Be = {
104
+ const Ye = {
104
105
  fill: "forwards"
105
- }, Fe = {
106
+ }, Ve = {
106
107
  duration: 1
107
108
  };
108
- function le() {
109
+ function de() {
109
110
  var e;
110
111
  const r = typeof window < "u" && typeof ((e = window.Animation) === null || e === void 0 ? void 0 : e.prototype.persist) == "function";
111
- return f.useCallback((n, o, i) => {
112
+ return m.useCallback((n, o, i) => {
112
113
  const u = Array.isArray(o) ? o : [
113
114
  o
114
115
  ], { isReducedMotion: d } = i, l = u.map((c) => {
115
- const { keyframes: m, reducedMotion: p = Fe, ...v } = c, { keyframes: C = m, ...y } = p, b = d ? C : m, M = {
116
- ...Be,
117
- ...v,
116
+ const { keyframes: h, reducedMotion: p = Ve, ...f } = c, { keyframes: S = h, ...C } = p, y = d ? S : h, w = {
117
+ ...Ye,
118
+ ...f,
118
119
  // Use reduced motion overrides (e.g. duration, easing) when reduced motion is enabled
119
- ...d && y
120
+ ...d && C
120
121
  };
121
122
  try {
122
- const s = n.animate(b, M);
123
+ const s = n.animate(y, w);
123
124
  if (r)
124
125
  s == null || s.persist();
125
126
  else {
126
- const R = b[b.length - 1];
127
- var T;
128
- Object.assign((T = n.style) !== null && T !== void 0 ? T : {}, R);
127
+ const R = y[y.length - 1];
128
+ var b;
129
+ Object.assign((b = n.style) !== null && b !== void 0 ? b : {}, R);
129
130
  }
130
131
  return s;
131
132
  } catch {
@@ -134,22 +135,22 @@ function le() {
134
135
  }).filter((c) => !!c);
135
136
  return {
136
137
  set playbackRate(c) {
137
- l.forEach((m) => {
138
- m.playbackRate = c;
138
+ l.forEach((h) => {
139
+ h.playbackRate = c;
139
140
  });
140
141
  },
141
- setMotionEndCallbacks(c, m) {
142
- const p = l.map((v) => new Promise((C, y) => {
143
- v.onfinish = () => C(), v.oncancel = () => y();
142
+ setMotionEndCallbacks(c, h) {
143
+ const p = l.map((f) => new Promise((S, C) => {
144
+ f.onfinish = () => S(), f.oncancel = () => C();
144
145
  }));
145
146
  Promise.all(p).then(() => {
146
147
  c();
147
148
  }).catch(() => {
148
- m();
149
+ h();
149
150
  });
150
151
  },
151
152
  isRunning() {
152
- return l.some((c) => Le(c));
153
+ return l.some((c) => Fe(c));
153
154
  },
154
155
  cancel: () => {
155
156
  l.forEach((c) => {
@@ -181,18 +182,18 @@ function le() {
181
182
  r
182
183
  ]);
183
184
  }
184
- function Ye() {
185
- const [e, r] = f.useState(0), n = f.useRef(), o = le();
186
- return f.useEffect(() => {
185
+ function Ge() {
186
+ const [e, r] = m.useState(0), n = m.useRef(), o = de();
187
+ return m.useEffect(() => {
187
188
  if (e > 0) {
188
189
  var i;
189
190
  (i = n.current) === null || i === void 0 || i.call(n);
190
191
  }
191
192
  }, [
192
193
  e
193
- ]), f.useCallback((i, u, d) => typeof i.animate == "function" ? o(i, u, d) : {
194
+ ]), m.useCallback((i, u, d) => typeof i.animate == "function" ? o(i, u, d) : {
194
195
  setMotionEndCallbacks(c) {
195
- n.current = c, r((m) => m + 1);
196
+ n.current = c, r((h) => h + 1);
196
197
  },
197
198
  set playbackRate(c) {
198
199
  },
@@ -213,13 +214,13 @@ function Ye() {
213
214
  o
214
215
  ]);
215
216
  }
216
- function Ue() {
217
+ function He() {
217
218
  "use no memo";
218
- return process.env.NODE_ENV === "test" ? Ye() : le();
219
+ return process.env.NODE_ENV === "test" ? Ge() : de();
219
220
  }
220
- function Ve(e) {
221
- const r = f.useRef();
222
- return f.useImperativeHandle(e, () => ({
221
+ function je(e) {
222
+ const r = m.useRef();
223
+ return m.useImperativeHandle(e, () => ({
223
224
  setPlayState: (n) => {
224
225
  if (n === "running") {
225
226
  var o;
@@ -235,15 +236,15 @@ function Ve(e) {
235
236
  }
236
237
  })), r;
237
238
  }
238
- const je = "screen and (prefers-reduced-motion: reduce)";
239
- function qe() {
240
- const { targetDocument: e } = ke();
239
+ const qe = "screen and (prefers-reduced-motion: reduce)";
240
+ function We() {
241
+ const { targetDocument: e } = De();
241
242
  var r;
242
- const n = (r = e == null ? void 0 : e.defaultView) !== null && r !== void 0 ? r : null, o = f.useRef(!1), i = f.useCallback(() => o.current, []);
243
- return G(() => {
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
+ return W(() => {
244
245
  if (n === null || typeof n.matchMedia != "function")
245
246
  return;
246
- const u = n.matchMedia(je);
247
+ const u = n.matchMedia(qe);
247
248
  u.matches && (o.current = !0);
248
249
  const d = (l) => {
249
250
  o.current = l.matches;
@@ -255,7 +256,7 @@ function qe() {
255
256
  n
256
257
  ]), i;
257
258
  }
258
- var ee = { exports: {} }, E = {};
259
+ var ee = { exports: {} }, v = {};
259
260
  /** @license React v17.0.2
260
261
  * react-is.production.min.js
261
262
  *
@@ -264,76 +265,76 @@ var ee = { exports: {} }, E = {};
264
265
  * This source code is licensed under the MIT license found in the
265
266
  * LICENSE file in the root directory of this source tree.
266
267
  */
267
- var ie;
268
- function Ge() {
269
- if (ie) return E;
270
- ie = 1;
271
- var e = 60103, r = 60106, n = 60107, o = 60108, i = 60114, u = 60109, d = 60110, l = 60112, c = 60113, m = 60120, p = 60115, v = 60116, C = 60121, y = 60122, b = 60117, M = 60129, T = 60131;
268
+ var ae;
269
+ function Ke() {
270
+ if (ae) return v;
271
+ ae = 1;
272
+ var e = 60103, r = 60106, n = 60107, o = 60108, i = 60114, u = 60109, d = 60110, l = 60112, c = 60113, h = 60120, p = 60115, f = 60116, S = 60121, C = 60122, y = 60117, w = 60129, b = 60131;
272
273
  if (typeof Symbol == "function" && Symbol.for) {
273
274
  var s = Symbol.for;
274
- e = s("react.element"), r = s("react.portal"), n = s("react.fragment"), o = s("react.strict_mode"), i = s("react.profiler"), u = s("react.provider"), d = s("react.context"), l = s("react.forward_ref"), c = s("react.suspense"), m = s("react.suspense_list"), p = s("react.memo"), v = s("react.lazy"), C = s("react.block"), y = s("react.server.block"), b = s("react.fundamental"), M = s("react.debug_trace_mode"), T = s("react.legacy_hidden");
275
+ e = s("react.element"), r = s("react.portal"), n = s("react.fragment"), o = s("react.strict_mode"), i = s("react.profiler"), u = s("react.provider"), d = s("react.context"), l = s("react.forward_ref"), c = s("react.suspense"), h = s("react.suspense_list"), p = s("react.memo"), f = s("react.lazy"), S = s("react.block"), C = s("react.server.block"), y = s("react.fundamental"), w = s("react.debug_trace_mode"), b = s("react.legacy_hidden");
275
276
  }
276
277
  function R(t) {
277
278
  if (typeof t == "object" && t !== null) {
278
- var S = t.$$typeof;
279
- switch (S) {
279
+ var g = t.$$typeof;
280
+ switch (g) {
280
281
  case e:
281
282
  switch (t = t.type, t) {
282
283
  case n:
283
284
  case i:
284
285
  case o:
285
286
  case c:
286
- case m:
287
+ case h:
287
288
  return t;
288
289
  default:
289
290
  switch (t = t && t.$$typeof, t) {
290
291
  case d:
291
292
  case l:
292
- case v:
293
+ case f:
293
294
  case p:
294
295
  case u:
295
296
  return t;
296
297
  default:
297
- return S;
298
+ return g;
298
299
  }
299
300
  }
300
301
  case r:
301
- return S;
302
+ return g;
302
303
  }
303
304
  }
304
305
  }
305
- var A = u, g = e, $ = l, w = n, I = v, L = p, _ = r, k = i, O = o, D = c;
306
- return E.ContextConsumer = d, E.ContextProvider = A, E.Element = g, E.ForwardRef = $, E.Fragment = w, E.Lazy = I, E.Memo = L, E.Portal = _, E.Profiler = k, E.StrictMode = O, E.Suspense = D, E.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() {
307
308
  return !1;
308
- }, E.isConcurrentMode = function() {
309
+ }, v.isConcurrentMode = function() {
309
310
  return !1;
310
- }, E.isContextConsumer = function(t) {
311
+ }, v.isContextConsumer = function(t) {
311
312
  return R(t) === d;
312
- }, E.isContextProvider = function(t) {
313
+ }, v.isContextProvider = function(t) {
313
314
  return R(t) === u;
314
- }, E.isElement = function(t) {
315
+ }, v.isElement = function(t) {
315
316
  return typeof t == "object" && t !== null && t.$$typeof === e;
316
- }, E.isForwardRef = function(t) {
317
+ }, v.isForwardRef = function(t) {
317
318
  return R(t) === l;
318
- }, E.isFragment = function(t) {
319
+ }, v.isFragment = function(t) {
319
320
  return R(t) === n;
320
- }, E.isLazy = function(t) {
321
- return R(t) === v;
322
- }, E.isMemo = function(t) {
321
+ }, v.isLazy = function(t) {
322
+ return R(t) === f;
323
+ }, v.isMemo = function(t) {
323
324
  return R(t) === p;
324
- }, E.isPortal = function(t) {
325
+ }, v.isPortal = function(t) {
325
326
  return R(t) === r;
326
- }, E.isProfiler = function(t) {
327
+ }, v.isProfiler = function(t) {
327
328
  return R(t) === i;
328
- }, E.isStrictMode = function(t) {
329
+ }, v.isStrictMode = function(t) {
329
330
  return R(t) === o;
330
- }, E.isSuspense = function(t) {
331
+ }, v.isSuspense = function(t) {
331
332
  return R(t) === c;
332
- }, E.isValidElementType = function(t) {
333
- return typeof t == "string" || typeof t == "function" || t === n || t === i || t === M || t === o || t === c || t === m || t === T || typeof t == "object" && t !== null && (t.$$typeof === v || t.$$typeof === p || t.$$typeof === u || t.$$typeof === d || t.$$typeof === l || t.$$typeof === b || t.$$typeof === C || t[0] === y);
334
- }, E.typeOf = R, E;
333
+ }, v.isValidElementType = function(t) {
334
+ return typeof t == "string" || typeof t == "function" || t === n || t === i || t === w || t === o || t === c || t === h || t === b || typeof t == "object" && t !== null && (t.$$typeof === f || t.$$typeof === p || t.$$typeof === u || t.$$typeof === d || t.$$typeof === l || t.$$typeof === y || t.$$typeof === S || t[0] === C);
335
+ }, v.typeOf = R, v;
335
336
  }
336
- var h = {};
337
+ var E = {};
337
338
  /** @license React v17.0.2
338
339
  * react-is.development.js
339
340
  *
@@ -342,22 +343,22 @@ var h = {};
342
343
  * This source code is licensed under the MIT license found in the
343
344
  * LICENSE file in the root directory of this source tree.
344
345
  */
345
- var ae;
346
- function We() {
347
- return ae || (ae = 1, process.env.NODE_ENV !== "production" && function() {
348
- var e = 60103, r = 60106, n = 60107, o = 60108, i = 60114, u = 60109, d = 60110, l = 60112, c = 60113, m = 60120, p = 60115, v = 60116, C = 60121, y = 60122, b = 60117, M = 60129, T = 60131;
346
+ var se;
347
+ function Xe() {
348
+ return se || (se = 1, process.env.NODE_ENV !== "production" && function() {
349
+ var e = 60103, r = 60106, n = 60107, o = 60108, i = 60114, u = 60109, d = 60110, l = 60112, c = 60113, h = 60120, p = 60115, f = 60116, S = 60121, C = 60122, y = 60117, w = 60129, b = 60131;
349
350
  if (typeof Symbol == "function" && Symbol.for) {
350
351
  var s = Symbol.for;
351
- e = s("react.element"), r = s("react.portal"), n = s("react.fragment"), o = s("react.strict_mode"), i = s("react.profiler"), u = s("react.provider"), d = s("react.context"), l = s("react.forward_ref"), c = s("react.suspense"), m = s("react.suspense_list"), p = s("react.memo"), v = s("react.lazy"), C = s("react.block"), y = s("react.server.block"), b = s("react.fundamental"), s("react.scope"), s("react.opaque.id"), M = s("react.debug_trace_mode"), s("react.offscreen"), T = s("react.legacy_hidden");
352
+ e = s("react.element"), r = s("react.portal"), n = s("react.fragment"), o = s("react.strict_mode"), i = s("react.profiler"), u = s("react.provider"), d = s("react.context"), l = s("react.forward_ref"), c = s("react.suspense"), h = s("react.suspense_list"), p = s("react.memo"), f = s("react.lazy"), S = s("react.block"), C = s("react.server.block"), y = s("react.fundamental"), s("react.scope"), s("react.opaque.id"), w = s("react.debug_trace_mode"), s("react.offscreen"), b = s("react.legacy_hidden");
352
353
  }
353
354
  var R = !1;
354
- function A(a) {
355
- return !!(typeof a == "string" || typeof a == "function" || a === n || a === i || a === M || a === o || a === c || a === m || a === T || R || typeof a == "object" && a !== null && (a.$$typeof === v || a.$$typeof === p || a.$$typeof === u || a.$$typeof === d || a.$$typeof === l || a.$$typeof === b || a.$$typeof === C || a[0] === y));
355
+ function T(a) {
356
+ return !!(typeof a == "string" || typeof a == "function" || a === n || a === i || a === w || a === o || a === c || a === h || a === b || R || typeof a == "object" && a !== null && (a.$$typeof === f || a.$$typeof === p || a.$$typeof === u || a.$$typeof === d || a.$$typeof === l || a.$$typeof === y || a.$$typeof === S || a[0] === C));
356
357
  }
357
- function g(a) {
358
+ function M(a) {
358
359
  if (typeof a == "object" && a !== null) {
359
- var X = a.$$typeof;
360
- switch (X) {
360
+ var Q = a.$$typeof;
361
+ switch (Q) {
361
362
  case e:
362
363
  var j = a.type;
363
364
  switch (j) {
@@ -365,75 +366,75 @@ function We() {
365
366
  case i:
366
367
  case o:
367
368
  case c:
368
- case m:
369
+ case h:
369
370
  return j;
370
371
  default:
371
372
  var ne = j && j.$$typeof;
372
373
  switch (ne) {
373
374
  case d:
374
375
  case l:
375
- case v:
376
+ case f:
376
377
  case p:
377
378
  case u:
378
379
  return ne;
379
380
  default:
380
- return X;
381
+ return Q;
381
382
  }
382
383
  }
383
384
  case r:
384
- return X;
385
+ return Q;
385
386
  }
386
387
  }
387
388
  }
388
- var $ = d, w = u, I = e, L = l, _ = n, k = v, O = p, D = r, t = i, S = o, B = c, z = !1, F = !1;
389
- function H(a) {
390
- return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !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
+ function F(a) {
391
+ return L || (L = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
391
392
  }
392
393
  function Y(a) {
393
- return F || (F = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
394
+ return U || (U = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
394
395
  }
395
- function V(a) {
396
- return g(a) === d;
397
- }
398
- function K(a) {
399
- return g(a) === u;
396
+ function H(a) {
397
+ return M(a) === d;
400
398
  }
401
- function pe(a) {
402
- return typeof a == "object" && a !== null && a.$$typeof === e;
399
+ function X(a) {
400
+ return M(a) === u;
403
401
  }
404
402
  function ve(a) {
405
- return g(a) === l;
403
+ return typeof a == "object" && a !== null && a.$$typeof === e;
406
404
  }
407
405
  function Ee(a) {
408
- return g(a) === n;
406
+ return M(a) === l;
409
407
  }
410
408
  function he(a) {
411
- return g(a) === v;
409
+ return M(a) === n;
410
+ }
411
+ function Re(a) {
412
+ return M(a) === f;
412
413
  }
413
414
  function Ce(a) {
414
- return g(a) === p;
415
+ return M(a) === p;
415
416
  }
416
- function Re(a) {
417
- return g(a) === r;
417
+ function ge(a) {
418
+ return M(a) === r;
418
419
  }
419
420
  function Se(a) {
420
- return g(a) === i;
421
+ return M(a) === i;
421
422
  }
422
423
  function ye(a) {
423
- return g(a) === o;
424
+ return M(a) === o;
424
425
  }
425
426
  function Me(a) {
426
- return g(a) === c;
427
+ return M(a) === c;
427
428
  }
428
- h.ContextConsumer = $, h.ContextProvider = w, h.Element = I, h.ForwardRef = L, h.Fragment = _, h.Lazy = k, h.Memo = O, h.Portal = D, h.Profiler = t, h.StrictMode = S, h.Suspense = B, h.isAsyncMode = H, h.isConcurrentMode = Y, h.isContextConsumer = V, h.isContextProvider = K, h.isElement = pe, h.isForwardRef = ve, h.isFragment = Ee, h.isLazy = he, h.isMemo = Ce, h.isPortal = Re, h.isProfiler = Se, h.isStrictMode = ye, h.isSuspense = Me, h.isValidElementType = A, h.typeOf = g;
429
- }()), h;
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
+ }()), E;
430
431
  }
431
- process.env.NODE_ENV === "production" ? ee.exports = Ge() : ee.exports = We();
432
- var He = ee.exports;
433
- function Ke(e) {
432
+ process.env.NODE_ENV === "production" ? ee.exports = Ke() : ee.exports = Xe();
433
+ var Qe = ee.exports;
434
+ function Ze(e) {
434
435
  try {
435
- const r = f.Children.only(e);
436
- if (typeof r.type == "string" || He.isForwardRef(r))
436
+ const r = m.Children.only(e);
437
+ if (typeof r.type == "string" || Qe.isForwardRef(r))
437
438
  return r;
438
439
  } catch {
439
440
  }
@@ -445,104 +446,104 @@ function Ke(e) {
445
446
  "That element element should support ref forwarding i.e. it should be either an intrinsic element (e.g. div) or a component that uses React.forwardRef()."
446
447
  ].join(""));
447
448
  }
448
- const de = f.createContext(void 0);
449
- de.Provider;
450
- const Xe = () => {
449
+ const fe = m.createContext(void 0);
450
+ fe.Provider;
451
+ const Je = () => {
451
452
  var e;
452
- return (e = f.useContext(de)) !== null && e !== void 0 ? e : "default";
453
- }, Qe = f.createContext(void 0);
454
- function Ze(e = !1, r = !1) {
455
- const n = f.useRef(r ? e : !0), o = ze(), i = f.useCallback((u) => {
453
+ return (e = m.useContext(fe)) !== null && e !== void 0 ? e : "default";
454
+ }, et = m.createContext(void 0);
455
+ function tt(e = !1, r = !1) {
456
+ const n = m.useRef(r ? e : !0), o = Be(), i = m.useCallback((u) => {
456
457
  n.current !== u && (n.current = u, o());
457
458
  }, [
458
459
  o
459
460
  ]);
460
- return f.useEffect(() => {
461
+ return m.useEffect(() => {
461
462
  e && (n.current = e);
462
463
  }), [
463
464
  e || n.current,
464
465
  i
465
466
  ];
466
467
  }
467
- const Je = Symbol("MOTION_DEFINITION"), et = Symbol.for("interruptablePresence");
468
- function W(e) {
468
+ const nt = Symbol("MOTION_DEFINITION"), rt = Symbol.for("interruptablePresence");
469
+ function K(e) {
469
470
  return Object.assign((r) => {
470
471
  "use no memo";
471
472
  const o = {
472
- ...f.useContext(Qe),
473
+ ...m.useContext(et),
473
474
  ...r
474
- }, i = Xe() === "skip", { appear: u, children: d, imperativeRef: l, onExit: c, onMotionFinish: m, onMotionStart: p, onMotionCancel: v, visible: C, unmountOnExit: y, ...b } = o, M = b, [T, s] = Ze(C, y), R = Ke(d), A = Ve(l), g = f.useRef(), $ = $e(g, R.ref), w = f.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({
475
476
  appear: u,
476
- params: M,
477
+ params: w,
477
478
  skipMotions: i
478
- }), I = Ue(), L = De(), _ = qe(), k = J((t) => {
479
+ }), N = He(), _ = Le(), z = We(), k = J((t) => {
479
480
  p == null || p(null, {
480
481
  direction: t
481
482
  });
482
483
  }), O = J((t) => {
483
- m == null || m(null, {
484
+ h == null || h(null, {
484
485
  direction: t
485
- }), t === "exit" && y && (s(!1), c == null || c());
486
- }), D = J((t) => {
487
- v == null || v(null, {
486
+ }), t === "exit" && C && (s(!1), c == null || c());
487
+ }), I = J((t) => {
488
+ f == null || f(null, {
488
489
  direction: t
489
490
  });
490
491
  });
491
- return G(() => {
492
- w.current = {
492
+ return W(() => {
493
+ P.current = {
493
494
  appear: u,
494
- params: M,
495
+ params: w,
495
496
  skipMotions: i
496
497
  };
497
- }), G(
498
+ }), W(
498
499
  () => {
499
- const t = g.current;
500
+ const t = M.current;
500
501
  if (!t)
501
502
  return;
502
- let S;
503
- function B() {
504
- S && (F && S.isRunning() || (S.cancel(), A.current = void 0));
503
+ let g;
504
+ function $() {
505
+ g && (U && g.isRunning() || (g.cancel(), T.current = void 0));
505
506
  }
506
- const z = typeof e == "function" ? e({
507
+ const L = typeof e == "function" ? e({
507
508
  element: t,
508
- ...w.current.params
509
- }) : e, F = z[et];
510
- if (F && (S = A.current, S && S.isRunning()))
511
- return S.reverse(), B;
512
- const H = C ? z.enter : z.exit, Y = C ? "enter" : "exit", V = !w.current.appear && L, K = w.current.skipMotions;
513
- return V || k(Y), S = I(t, H, {
514
- isReducedMotion: _()
515
- }), V ? (S.finish(), B) : (A.current = S, S.setMotionEndCallbacks(() => O(Y), () => D(Y)), K && S.finish(), B);
509
+ ...P.current.params
510
+ }) : e, U = L[rt];
511
+ if (U && (g = T.current, g && g.isRunning()))
512
+ return g.reverse(), $;
513
+ const F = S ? L.enter : L.exit, Y = S ? "enter" : "exit", H = !P.current.appear && _, X = P.current.skipMotions;
514
+ return H || k(Y), g = N(t, F, {
515
+ isReducedMotion: z()
516
+ }), H ? (g.finish(), $) : (T.current = g, g.setMotionEndCallbacks(() => O(Y), () => I(Y)), X && g.finish(), $);
516
517
  },
517
518
  // Excluding `isFirstMount` from deps to prevent re-triggering the animation on subsequent renders
518
519
  // eslint-disable-next-line react-hooks/exhaustive-deps
519
520
  [
520
- I,
521
- A,
522
- _,
521
+ N,
522
+ T,
523
+ z,
523
524
  O,
524
525
  k,
525
- D,
526
- C
526
+ I,
527
+ S
527
528
  ]
528
- ), T ? f.cloneElement(R, {
529
- ref: $
529
+ ), b ? m.cloneElement(R, {
530
+ ref: D
530
531
  }) : null;
531
532
  }, {
532
533
  // Heads up!
533
534
  // Always normalize it to a function to simplify types
534
- [Je]: typeof e == "function" ? e : () => e
535
+ [nt]: typeof e == "function" ? e : () => e
535
536
  });
536
537
  }
537
- const fe = (e, r) => {
538
+ const me = (e, r) => {
538
539
  const n = e === "horizontal" ? "maxWidth" : "maxHeight", o = e === "horizontal" ? "overflowX" : "overflowY", u = `${e === "horizontal" ? r.scrollWidth : r.scrollHeight}px`;
539
540
  return {
540
541
  sizeName: n,
541
542
  overflowName: o,
542
543
  toSize: u
543
544
  };
544
- }, tt = ({ orientation: e, duration: r, easing: n, element: o, fromSize: i = "0" }) => {
545
- const { sizeName: u, overflowName: d, toSize: l } = fe(e, o);
545
+ }, ot = ({ orientation: e, duration: r, easing: n, element: o, fromSize: i = "0" }) => {
546
+ const { sizeName: u, overflowName: d, toSize: l } = me(e, o);
546
547
  return {
547
548
  keyframes: [
548
549
  {
@@ -562,8 +563,8 @@ const fe = (e, r) => {
562
563
  duration: r,
563
564
  easing: n
564
565
  };
565
- }, nt = ({ orientation: e, duration: r, easing: n, element: o, delay: i = 0, fromSize: u = "0" }) => {
566
- const { sizeName: d, overflowName: l, toSize: c } = fe(e, o);
566
+ }, it = ({ orientation: e, duration: r, easing: n, element: o, delay: i = 0, fromSize: u = "0" }) => {
567
+ const { sizeName: d, overflowName: l, toSize: c } = me(e, o);
567
568
  return {
568
569
  keyframes: [
569
570
  {
@@ -580,7 +581,7 @@ const fe = (e, r) => {
580
581
  fill: "both",
581
582
  delay: i
582
583
  };
583
- }, rt = (e) => e === "horizontal" ? {
584
+ }, at = (e) => e === "horizontal" ? {
584
585
  paddingStart: "paddingInlineStart",
585
586
  paddingEnd: "paddingInlineEnd",
586
587
  marginStart: "marginInlineStart",
@@ -590,23 +591,23 @@ const fe = (e, r) => {
590
591
  paddingEnd: "paddingBlockEnd",
591
592
  marginStart: "marginBlockStart",
592
593
  marginEnd: "marginBlockEnd"
593
- }, se = ({ direction: e, orientation: r, duration: n, easing: o, delay: i = 0 }) => {
594
- const { paddingStart: u, paddingEnd: d, marginStart: l, marginEnd: c } = rt(r), m = e === "enter" ? 0 : 1, v = {
594
+ }, ce = ({ direction: e, orientation: r, duration: n, easing: o, delay: i = 0 }) => {
595
+ const { paddingStart: u, paddingEnd: d, marginStart: l, marginEnd: c } = at(r), h = e === "enter" ? 0 : 1, f = {
595
596
  keyframes: [
596
597
  {
597
598
  [u]: "0",
598
599
  [d]: "0",
599
600
  [l]: "0",
600
601
  [c]: "0",
601
- offset: m
602
+ offset: h
602
603
  }
603
604
  ],
604
605
  duration: n,
605
606
  easing: o,
606
607
  delay: i
607
608
  };
608
- return e === "exit" && (v.fill = "forwards"), v;
609
- }, ce = ({ direction: e, duration: r, easing: n = x.curveLinear, fromValue: o = 0 }) => {
609
+ return e === "exit" && (f.fill = "forwards"), f;
610
+ }, ue = ({ direction: e, duration: r, easing: n = A.curveLinear, fromValue: o = 0 }) => {
610
611
  const i = [
611
612
  {
612
613
  opacity: o
@@ -620,34 +621,34 @@ const fe = (e, r) => {
620
621
  duration: r,
621
622
  easing: n
622
623
  };
623
- }, me = ({
624
+ }, pe = ({
624
625
  // enter
625
- enterSizeDuration: e = x.durationNormal,
626
+ enterSizeDuration: e = A.durationNormal,
626
627
  enterOpacityDuration: r = e,
627
- enterEasing: n = x.curveEasyEaseMax,
628
+ enterEasing: n = A.curveEasyEaseMax,
628
629
  enterDelay: o = 0,
629
630
  // exit: durations and easing default to enter values for symmetry
630
631
  exitSizeDuration: i = e,
631
632
  exitOpacityDuration: u = r,
632
633
  exitEasing: d = n,
633
634
  exitDelay: l = 0
634
- } = {}) => ({ element: c, animateOpacity: m = !0, orientation: p = "vertical" }) => {
635
- const v = [
636
- tt({
635
+ } = {}) => ({ element: c, animateOpacity: h = !0, orientation: p = "vertical" }) => {
636
+ const f = [
637
+ ot({
637
638
  orientation: p,
638
639
  duration: e,
639
640
  easing: n,
640
641
  element: c
641
642
  }),
642
- se({
643
+ ce({
643
644
  direction: "enter",
644
645
  orientation: p,
645
646
  duration: e,
646
647
  easing: n
647
648
  })
648
649
  ];
649
- m && v.push({
650
- ...ce({
650
+ h && f.push({
651
+ ...ue({
651
652
  direction: "enter",
652
653
  duration: r,
653
654
  easing: n
@@ -655,66 +656,66 @@ const fe = (e, r) => {
655
656
  delay: o,
656
657
  fill: "both"
657
658
  });
658
- const C = [];
659
- return m && C.push(ce({
659
+ const S = [];
660
+ return h && S.push(ue({
660
661
  direction: "exit",
661
662
  duration: u,
662
663
  easing: d
663
- })), C.push(nt({
664
+ })), S.push(it({
664
665
  orientation: p,
665
666
  duration: i,
666
667
  easing: d,
667
668
  element: c,
668
669
  delay: l
669
- }), se({
670
+ }), ce({
670
671
  direction: "exit",
671
672
  orientation: p,
672
673
  duration: i,
673
674
  easing: d,
674
675
  delay: l
675
676
  })), {
676
- enter: v,
677
- exit: C
677
+ enter: f,
678
+ exit: S
678
679
  };
679
- }, te = ({ enterDuration: e = x.durationNormal, enterEasing: r = x.curveEasyEaseMax, exitDuration: n = e, exitEasing: o = r } = {}) => (
680
+ }, te = ({ enterDuration: e = A.durationNormal, enterEasing: r = A.curveEasyEaseMax, exitDuration: n = e, exitEasing: o = r } = {}) => (
680
681
  // Implement a regular collapse as a special case of the delayed collapse,
681
682
  // where the delays are zero, and the size and opacity durations are equal.
682
- me({
683
+ pe({
683
684
  enterSizeDuration: e,
684
685
  enterEasing: r,
685
686
  exitSizeDuration: n,
686
687
  exitEasing: o
687
688
  })
688
- ), ot = W(te());
689
- W(te({
690
- enterDuration: x.durationFast
689
+ ), st = K(te());
690
+ K(te({
691
+ enterDuration: A.durationFast
691
692
  }));
692
- W(te({
693
- enterDuration: x.durationSlower
693
+ K(te({
694
+ enterDuration: A.durationSlower
694
695
  }));
695
- W(me({
696
- enterSizeDuration: x.durationNormal,
697
- enterOpacityDuration: x.durationSlower,
698
- enterDelay: x.durationNormal,
699
- exitDelay: x.durationSlower,
700
- enterEasing: x.curveEasyEase
696
+ K(pe({
697
+ enterSizeDuration: A.durationNormal,
698
+ enterOpacityDuration: A.durationSlower,
699
+ enterDelay: A.durationNormal,
700
+ exitDelay: A.durationSlower,
701
+ enterEasing: A.curveEasyEase
701
702
  }));
702
- const it = ge({
703
+ const ct = Te({
703
704
  root: {
704
- backgroundColor: N.colorNeutralBackground1,
705
+ backgroundColor: B.colorNeutralBackground1,
705
706
  boxSizing: "border-box",
706
707
  overflow: "hidden"
707
708
  },
708
709
  default: {
709
- border: "1px solid " + N.colorNeutralForeground1,
710
- borderRadius: N.borderRadiusMedium,
711
- boxShadow: N.shadow16Brand,
712
- transitionDuration: N.durationNormal,
710
+ border: "1px solid " + B.colorNeutralForeground1,
711
+ borderRadius: B.borderRadiusMedium,
712
+ boxShadow: B.shadow16Brand,
713
+ transitionDuration: B.durationNormal,
713
714
  transitionTimingFunction: "ease",
714
715
  transitionProperty: "box-shadow, border",
715
716
  ":hover": {
716
- boxShadow: N.shadow28Brand,
717
- border: "1px solid " + N.colorBrandForeground2Hover
717
+ boxShadow: B.shadow28Brand,
718
+ border: "1px solid " + B.colorBrandForeground2Hover
718
719
  }
719
720
  },
720
721
  divider: {
@@ -729,31 +730,48 @@ const it = ge({
729
730
  },
730
731
  spinner: {
731
732
  height: "100%"
733
+ },
734
+ collapsedHorizontalHeader: {
735
+ writingMode: "vertical-rl",
736
+ whiteSpace: "nowrap",
737
+ height: "100%"
732
738
  }
733
- }), at = (e) => {
734
- var A;
735
- const { children: r, icon: n, header: o, collapsible: i, className: u, fill: d, ref: l, id: c, appearance: m, isBusy: p, isBusyMessage: v } = e, C = it(), [y, b] = Ae.useState(!0);
736
- let M = q(Z.Section, C.root, u);
737
- (d || (A = e.cellProps) != null && A.resizable) && (M = q(M, C.fill)), (m == null || m == "default") && (M = q(M, C.default));
738
- const T = oe.buildSectionStyles(e), s = oe.buildSectionContentStyles(e);
739
- y || (T.height = "fit-content");
740
- const R = y ? /* @__PURE__ */ P(Pe, {}) : /* @__PURE__ */ P(we, {});
741
- return /* @__PURE__ */ Q(re, { id: c, className: M, style: T, ref: l, role: e.role, children: [
742
- /* @__PURE__ */ P(U, { className: Z.SectionHeader, children: /* @__PURE__ */ Q(re, { fill: !0, horizontal: !0, alignItems: "center", children: [
743
- n && /* @__PURE__ */ P(U, { padding: 8, children: n }),
744
- /* @__PURE__ */ P(U, { grow: 1, children: o && o }),
745
- i && /* @__PURE__ */ P(U, { children: /* @__PURE__ */ P(Te, { appearance: "transparent", icon: R, onClick: () => {
746
- b(!y);
747
- } }) })
739
+ }), ut = (e) => {
740
+ var _;
741
+ const { children: r, icon: n, header: o, collapsible: i, collapseDirection: u, className: d, fill: l, ref: c, id: h, appearance: p, isBusy: f, isBusyMessage: S } = e, C = ct(), [y, w] = re.useState(!0), [b, s] = re.useState();
742
+ let R = V(q.Section, C.root, d);
743
+ (l || (_ = e.cellProps) != null && _.resizable) && (R = V(R, C.fill)), (p == null || p == "default") && (R = V(R, C.default));
744
+ const T = ie.buildSectionStyles(e), M = ie.buildSectionContentStyles(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
+ let P = q.SectionHeader;
748
+ u == "horizontal" && (y || (P = V(P, C.collapsedHorizontalHeader)));
749
+ const N = (z) => {
750
+ if (e.cellProps) {
751
+ const { column: k, row: O } = e.cellProps, I = u == "horizontal", t = z.currentTarget.closest("." + q.Grid), g = I ? k : O;
752
+ if (y) {
753
+ const F = (I ? t.style.gridTemplateColumns : t.style.gridTemplateRows).split(" ")[g - 1];
754
+ s(F);
755
+ }
756
+ const $ = y ? "min-content" : b;
757
+ Pe.UpdateLayoutGrid(t, I, g, $);
758
+ }
759
+ w(!y);
760
+ };
761
+ return /* @__PURE__ */ Z(oe, { id: h, className: R, style: T, ref: c, role: e.role, children: [
762
+ /* @__PURE__ */ x(G, { className: P, children: /* @__PURE__ */ Z(oe, { fill: !0, alignItems: "center", horizontal: !0, children: [
763
+ n && /* @__PURE__ */ x(G, { padding: 8, children: n }),
764
+ /* @__PURE__ */ x(G, { grow: 1, children: o && o }),
765
+ i && /* @__PURE__ */ x(G, { children: /* @__PURE__ */ x(be, { appearance: "transparent", icon: D, onClick: N }) })
748
766
  ] }) }),
749
- (n || o || i) && /* @__PURE__ */ P(be, { className: C.divider }),
750
- /* @__PURE__ */ P(U, { className: Z.SectionContent, grow: 1, style: s, children: /* @__PURE__ */ P(ot, { visible: y, children: /* @__PURE__ */ Q("div", { className: q(C.fill, C.content), children: [
751
- !p && r,
752
- p && /* @__PURE__ */ P(xe, { className: C.spinner, label: v, labelPosition: "below" })
767
+ (n || o || i) && /* @__PURE__ */ x(xe, { className: C.divider }),
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: [
769
+ !f && r,
770
+ f && /* @__PURE__ */ x(we, { className: C.spinner, label: S, labelPosition: "below" })
753
771
  ] }) }) })
754
772
  ] });
755
773
  };
756
- at.displayName = "Section";
774
+ ut.displayName = "Section";
757
775
  export {
758
- at as Section
776
+ ut as Section
759
777
  };
@@ -6,7 +6,7 @@ import { FlexBox as f } from "../FlexBox/FlexBox.js";
6
6
  import { FlexBoxItem as m } from "../FlexBox/FlexBoxItem/FlexBoxItem.js";
7
7
  import "../FlexBox/FlexBoxItemResizer/FlexBoxItemResizer.js";
8
8
  import { Section as H } from "../Section/Section.js";
9
- import { C as J, a as K, b as M } from "../../chunk-3-CMb_cR4A.js";
9
+ import { C as J, a as K, b as M } from "../../chunk-3-BsGkNFUP.js";
10
10
  const O = A({
11
11
  root: {
12
12
  height: "100%",
package/dist/main.d.ts CHANGED
@@ -451,6 +451,10 @@ export declare interface ISectionProps extends IComponentProps {
451
451
  * Determines if the section can be collapsed hiding it's content.
452
452
  */
453
453
  collapsible?: boolean;
454
+ /**
455
+ *
456
+ */
457
+ collapseDirection?: "vertical" | "horizontal";
454
458
  /**
455
459
  * Applies styling to have the section consume 100% of it's parent's height and width.
456
460
  */
@@ -594,7 +598,7 @@ declare interface IWizardStrings {
594
598
  export declare const JumpList: <T extends object>(props: IJumpListProps<T>) => JSX_2.Element;
595
599
 
596
600
  /**
597
- * The `ResizableGridCell` component can be used in place of the `GridCell` compoent to allow the user to resize the row or column the cell resides it.
601
+ * The `ResizableGridCell` component can be used in place of the `GridCell` component to allow the user to resize the row or column the cell resides it.
598
602
  * By default this allows the row to be resized. This can be changed by setting the `horizontal` property to true.
599
603
  *
600
604
  * > At this time there is no way to define a Min or Max size for a row or column.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5ive-souls/controls",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Collection of react components built on the Fluent UI framework.",
5
5
  "keywords": [
6
6
  "react",
Binary file
@@ -1,11 +0,0 @@
1
- import { c as l } from "./createFluentIcon-CwLxkjIW.js";
2
- const e = /* @__PURE__ */ l("Checkmark32Filled", "32", ["M29.9 5.14c.48.5.46 1.3-.04 1.77l-19 18a1.25 1.25 0 0 1-1.77-.06L2.34 17.6a1.25 1.25 0 0 1 1.82-1.7l5.9 6.33L28.14 5.09c.5-.47 1.3-.45 1.77.05Z"]), o = /* @__PURE__ */ l("ChevronDoubleDown20Regular", "20", ["M15.85 8.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 9.35a.5.5 0 1 1 .7-.7L10 13.8l5.15-5.16c.2-.2.5-.2.7 0Zm0-4c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 5.35a.5.5 0 1 1 .7-.7L10 9.8l5.15-5.16c.2-.2.5-.2.7 0Z"]), n = /* @__PURE__ */ l("ChevronDoubleUp20Regular", "20", ["M4.15 9.65a.5.5 0 0 0 .7.7L10 5.2l5.15 5.16a.5.5 0 1 0 .7-.7L10.4 4.16a.55.55 0 0 0-.78 0L4.15 9.65Zm0 5a.5.5 0 0 0 .7.7L10 10.2l5.15 5.16a.5.5 0 1 0 .7-.7L10.4 9.16a.55.55 0 0 0-.78 0l-5.46 5.49Z"]), c = /* @__PURE__ */ l("ChevronDown16Filled", "16", ["M3.2 5.74a.75.75 0 0 1 1.06-.04L8 9.23l3.74-3.53a.75.75 0 1 1 1.02 1.1l-4.25 4a.75.75 0 0 1-1.02 0l-4.25-4a.75.75 0 0 1-.04-1.06Z"]), r = /* @__PURE__ */ l("ChevronLeft32Filled", "32", ["M20.88 5.37c.5.48.5 1.28 0 1.76L12.02 16l8.86 8.87a1.25 1.25 0 0 1-1.76 1.76l-9.75-9.75a1.25 1.25 0 0 1 0-1.76l9.75-9.75a1.25 1.25 0 0 1 1.76 0Z"]), L = /* @__PURE__ */ l("ChevronRight32Filled", "32", ["M11.12 26.63a1.25 1.25 0 0 1 0-1.76L19.98 16l-8.86-8.87a1.25 1.25 0 0 1 1.76-1.76l9.75 9.75c.5.48.5 1.28 0 1.76l-9.75 9.75c-.48.5-1.28.5-1.76 0Z"]), h = /* @__PURE__ */ l("ChevronUp16Filled", "16", ["M3.2 10.26c.28.3.76.32 1.06.04L8 6.77l3.74 3.53a.75.75 0 1 0 1.02-1.1l-4.25-4a.75.75 0 0 0-1.02 0l-4.25 4a.75.75 0 0 0-.04 1.06Z"]);
3
- export {
4
- r as C,
5
- L as a,
6
- e as b,
7
- c,
8
- h as d,
9
- n as e,
10
- o as f
11
- };