@5ive-souls/controls 0.0.7 → 0.0.8
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/5ive-souls-controls-0.0.8.tgz +0 -0
- package/dist/chunk-3-BsGkNFUP.js +13 -0
- package/dist/components/EventCalender/MonthPicker.js +1 -1
- package/dist/components/EventCalender/YearPicker.js +1 -1
- package/dist/components/Grid/ResizableGridCell/ResizableGridCell.js +20 -20
- package/dist/components/Section/Section.js +269 -251
- package/dist/components/Wizard/Wizard.js +1 -1
- package/dist/main.d.ts +5 -1
- package/package.json +1 -1
- package/dist/5ive-souls-controls-0.0.7.tgz +0 -0
- package/dist/chunk-3-CMb_cR4A.js +0 -11
|
Binary file
|
|
@@ -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-
|
|
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-
|
|
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
|
|
2
|
-
import { makeStyles as
|
|
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
|
|
4
|
+
import { FlexBoxItem as M } from "../../FlexBox/FlexBoxItem/FlexBoxItem.js";
|
|
5
5
|
import "../../FlexBox/FlexBoxItemResizer/FlexBoxItemResizer.js";
|
|
6
|
-
import { GridCell as
|
|
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 =
|
|
11
|
+
const D = y({
|
|
12
12
|
root: {
|
|
13
|
-
backgroundColor:
|
|
14
|
-
borderRadius:
|
|
13
|
+
backgroundColor: s.colorBrandBackground,
|
|
14
|
+
borderRadius: s.borderRadiusMedium,
|
|
15
15
|
":hover": {
|
|
16
|
-
backgroundColor:
|
|
16
|
+
backgroundColor: s.colorBrandBackgroundHover
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
vertical: {
|
|
20
20
|
cursor: "row-resize",
|
|
21
|
-
height:
|
|
21
|
+
height: s.spacingVerticalXS
|
|
22
22
|
},
|
|
23
23
|
horizontal: {
|
|
24
24
|
cursor: "col-resize",
|
|
25
|
-
width:
|
|
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,
|
|
29
|
-
const r = d.current,
|
|
30
|
-
o && o.classList.add("unselectable"),
|
|
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:
|
|
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:
|
|
39
|
-
|
|
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),
|
|
42
|
+
n && n.grid && n.grid.classList.remove("unselectable"), r.releasePointerCapture(i.pointerId), p(void 0);
|
|
43
43
|
};
|
|
44
44
|
return /* @__PURE__ */ u(
|
|
45
|
-
|
|
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__ */
|
|
54
|
-
/* @__PURE__ */ u(
|
|
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
|
|
2
|
-
import { makeStyles as
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import { FlexBox as
|
|
6
|
-
import { FlexBoxItem as
|
|
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
|
|
9
|
-
import { SectionUtils as
|
|
10
|
-
import {
|
|
11
|
-
|
|
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
|
-
},
|
|
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
|
-
},
|
|
31
|
-
...
|
|
32
|
-
...
|
|
33
|
-
},
|
|
31
|
+
}, A = {
|
|
32
|
+
...ze,
|
|
33
|
+
...ke
|
|
34
|
+
}, le = m.createContext(void 0), De = {
|
|
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
|
-
|
|
39
|
-
function
|
|
39
|
+
le.Provider;
|
|
40
|
+
function Oe() {
|
|
40
41
|
var e;
|
|
41
|
-
return (e =
|
|
42
|
+
return (e = m.useContext(le)) !== null && e !== void 0 ? e : De;
|
|
42
43
|
}
|
|
43
|
-
function
|
|
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
|
|
51
|
-
const r =
|
|
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
|
|
55
|
+
return W(() => {
|
|
55
56
|
r.current = e;
|
|
56
57
|
}, [
|
|
57
58
|
e
|
|
58
|
-
]),
|
|
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
|
|
66
|
-
const e =
|
|
66
|
+
function Le() {
|
|
67
|
+
const e = m.useRef(!0);
|
|
67
68
|
return e.current ? (e.current = !1, !0) : e.current;
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
-
return
|
|
70
|
+
function Be() {
|
|
71
|
+
return m.useReducer((e) => e + 1, 0)[1];
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
+
function Ue(...e) {
|
|
73
74
|
"use no memo";
|
|
74
|
-
const r =
|
|
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
|
|
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
|
|
104
|
+
const Ye = {
|
|
104
105
|
fill: "forwards"
|
|
105
|
-
},
|
|
106
|
+
}, Ve = {
|
|
106
107
|
duration: 1
|
|
107
108
|
};
|
|
108
|
-
function
|
|
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
|
|
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:
|
|
116
|
-
...
|
|
117
|
-
...
|
|
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 &&
|
|
120
|
+
...d && C
|
|
120
121
|
};
|
|
121
122
|
try {
|
|
122
|
-
const s = n.animate(
|
|
123
|
+
const s = n.animate(y, w);
|
|
123
124
|
if (r)
|
|
124
125
|
s == null || s.persist();
|
|
125
126
|
else {
|
|
126
|
-
const R =
|
|
127
|
-
var
|
|
128
|
-
Object.assign((
|
|
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((
|
|
138
|
-
|
|
138
|
+
l.forEach((h) => {
|
|
139
|
+
h.playbackRate = c;
|
|
139
140
|
});
|
|
140
141
|
},
|
|
141
|
-
setMotionEndCallbacks(c,
|
|
142
|
-
const p = l.map((
|
|
143
|
-
|
|
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
|
-
|
|
149
|
+
h();
|
|
149
150
|
});
|
|
150
151
|
},
|
|
151
152
|
isRunning() {
|
|
152
|
-
return l.some((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
|
|
185
|
-
const [e, r] =
|
|
186
|
-
return
|
|
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
|
-
]),
|
|
194
|
+
]), m.useCallback((i, u, d) => typeof i.animate == "function" ? o(i, u, d) : {
|
|
194
195
|
setMotionEndCallbacks(c) {
|
|
195
|
-
n.current = c, r((
|
|
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
|
|
217
|
+
function He() {
|
|
217
218
|
"use no memo";
|
|
218
|
-
return process.env.NODE_ENV === "test" ?
|
|
219
|
+
return process.env.NODE_ENV === "test" ? Ge() : de();
|
|
219
220
|
}
|
|
220
|
-
function
|
|
221
|
-
const r =
|
|
222
|
-
return
|
|
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
|
|
239
|
-
function
|
|
240
|
-
const { targetDocument: e } =
|
|
239
|
+
const qe = "screen and (prefers-reduced-motion: reduce)";
|
|
240
|
+
function We() {
|
|
241
|
+
const { targetDocument: e } = Oe();
|
|
241
242
|
var r;
|
|
242
|
-
const n = (r = e == null ? void 0 : e.defaultView) !== null && r !== void 0 ? r : null, o =
|
|
243
|
-
return
|
|
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(
|
|
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: {} },
|
|
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
|
|
268
|
-
function
|
|
269
|
-
if (
|
|
270
|
-
|
|
271
|
-
var e = 60103, r = 60106, n = 60107, o = 60108, i = 60114, u = 60109, d = 60110, l = 60112, c = 60113,
|
|
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"),
|
|
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
|
|
279
|
-
switch (
|
|
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
|
|
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
|
|
293
|
+
case f:
|
|
293
294
|
case p:
|
|
294
295
|
case u:
|
|
295
296
|
return t;
|
|
296
297
|
default:
|
|
297
|
-
return
|
|
298
|
+
return g;
|
|
298
299
|
}
|
|
299
300
|
}
|
|
300
301
|
case r:
|
|
301
|
-
return
|
|
302
|
+
return g;
|
|
302
303
|
}
|
|
303
304
|
}
|
|
304
305
|
}
|
|
305
|
-
var
|
|
306
|
-
return
|
|
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() {
|
|
307
308
|
return !1;
|
|
308
|
-
},
|
|
309
|
+
}, v.isConcurrentMode = function() {
|
|
309
310
|
return !1;
|
|
310
|
-
},
|
|
311
|
+
}, v.isContextConsumer = function(t) {
|
|
311
312
|
return R(t) === d;
|
|
312
|
-
},
|
|
313
|
+
}, v.isContextProvider = function(t) {
|
|
313
314
|
return R(t) === u;
|
|
314
|
-
},
|
|
315
|
+
}, v.isElement = function(t) {
|
|
315
316
|
return typeof t == "object" && t !== null && t.$$typeof === e;
|
|
316
|
-
},
|
|
317
|
+
}, v.isForwardRef = function(t) {
|
|
317
318
|
return R(t) === l;
|
|
318
|
-
},
|
|
319
|
+
}, v.isFragment = function(t) {
|
|
319
320
|
return R(t) === n;
|
|
320
|
-
},
|
|
321
|
-
return R(t) ===
|
|
322
|
-
},
|
|
321
|
+
}, v.isLazy = function(t) {
|
|
322
|
+
return R(t) === f;
|
|
323
|
+
}, v.isMemo = function(t) {
|
|
323
324
|
return R(t) === p;
|
|
324
|
-
},
|
|
325
|
+
}, v.isPortal = function(t) {
|
|
325
326
|
return R(t) === r;
|
|
326
|
-
},
|
|
327
|
+
}, v.isProfiler = function(t) {
|
|
327
328
|
return R(t) === i;
|
|
328
|
-
},
|
|
329
|
+
}, v.isStrictMode = function(t) {
|
|
329
330
|
return R(t) === o;
|
|
330
|
-
},
|
|
331
|
+
}, v.isSuspense = function(t) {
|
|
331
332
|
return R(t) === c;
|
|
332
|
-
},
|
|
333
|
-
return typeof t == "string" || typeof t == "function" || t === n || t === i || t ===
|
|
334
|
-
},
|
|
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
|
|
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
|
|
346
|
-
function
|
|
347
|
-
return
|
|
348
|
-
var e = 60103, r = 60106, n = 60107, o = 60108, i = 60114, u = 60109, d = 60110, l = 60112, c = 60113,
|
|
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"),
|
|
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
|
|
355
|
-
return !!(typeof a == "string" || typeof a == "function" || a === n || a === i || a ===
|
|
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
|
|
358
|
+
function M(a) {
|
|
358
359
|
if (typeof a == "object" && a !== null) {
|
|
359
|
-
var
|
|
360
|
-
switch (
|
|
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
|
|
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
|
|
376
|
+
case f:
|
|
376
377
|
case p:
|
|
377
378
|
case u:
|
|
378
379
|
return ne;
|
|
379
380
|
default:
|
|
380
|
-
return
|
|
381
|
+
return Q;
|
|
381
382
|
}
|
|
382
383
|
}
|
|
383
384
|
case r:
|
|
384
|
-
return
|
|
385
|
+
return Q;
|
|
385
386
|
}
|
|
386
387
|
}
|
|
387
388
|
}
|
|
388
|
-
var
|
|
389
|
-
function
|
|
390
|
-
return
|
|
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;
|
|
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
|
|
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
|
|
396
|
-
return
|
|
396
|
+
function H(a) {
|
|
397
|
+
return M(a) === d;
|
|
397
398
|
}
|
|
398
|
-
function
|
|
399
|
-
return
|
|
400
|
-
}
|
|
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
|
|
403
|
+
return typeof a == "object" && a !== null && a.$$typeof === e;
|
|
406
404
|
}
|
|
407
405
|
function Ee(a) {
|
|
408
|
-
return
|
|
406
|
+
return M(a) === l;
|
|
409
407
|
}
|
|
410
408
|
function he(a) {
|
|
411
|
-
return
|
|
409
|
+
return M(a) === n;
|
|
410
|
+
}
|
|
411
|
+
function Re(a) {
|
|
412
|
+
return M(a) === f;
|
|
412
413
|
}
|
|
413
414
|
function Ce(a) {
|
|
414
|
-
return
|
|
415
|
+
return M(a) === p;
|
|
415
416
|
}
|
|
416
|
-
function
|
|
417
|
-
return
|
|
417
|
+
function ge(a) {
|
|
418
|
+
return M(a) === r;
|
|
418
419
|
}
|
|
419
420
|
function Se(a) {
|
|
420
|
-
return
|
|
421
|
+
return M(a) === i;
|
|
421
422
|
}
|
|
422
423
|
function ye(a) {
|
|
423
|
-
return
|
|
424
|
+
return M(a) === o;
|
|
424
425
|
}
|
|
425
426
|
function Me(a) {
|
|
426
|
-
return
|
|
427
|
+
return M(a) === c;
|
|
427
428
|
}
|
|
428
|
-
|
|
429
|
-
}()),
|
|
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;
|
|
430
|
+
}()), E;
|
|
430
431
|
}
|
|
431
|
-
process.env.NODE_ENV === "production" ? ee.exports =
|
|
432
|
-
var
|
|
433
|
-
function
|
|
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 =
|
|
436
|
-
if (typeof r.type == "string" ||
|
|
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
|
|
449
|
-
|
|
450
|
-
const
|
|
449
|
+
const fe = m.createContext(void 0);
|
|
450
|
+
fe.Provider;
|
|
451
|
+
const Je = () => {
|
|
451
452
|
var e;
|
|
452
|
-
return (e =
|
|
453
|
-
},
|
|
454
|
-
function
|
|
455
|
-
const n =
|
|
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
|
|
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
|
|
468
|
-
function
|
|
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
|
-
...
|
|
473
|
+
...m.useContext(et),
|
|
473
474
|
...r
|
|
474
|
-
}, i =
|
|
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
476
|
appear: u,
|
|
476
|
-
params:
|
|
477
|
+
params: w,
|
|
477
478
|
skipMotions: i
|
|
478
|
-
}),
|
|
479
|
+
}), N = He(), _ = Le(), z = We(), k = J((t) => {
|
|
479
480
|
p == null || p(null, {
|
|
480
481
|
direction: t
|
|
481
482
|
});
|
|
482
|
-
}), O = J((t) => {
|
|
483
|
-
m == null || m(null, {
|
|
484
|
-
direction: t
|
|
485
|
-
}), t === "exit" && y && (s(!1), c == null || c());
|
|
486
483
|
}), D = J((t) => {
|
|
487
|
-
|
|
484
|
+
h == null || h(null, {
|
|
485
|
+
direction: t
|
|
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
|
|
492
|
-
|
|
492
|
+
return W(() => {
|
|
493
|
+
P.current = {
|
|
493
494
|
appear: u,
|
|
494
|
-
params:
|
|
495
|
+
params: w,
|
|
495
496
|
skipMotions: i
|
|
496
497
|
};
|
|
497
|
-
}),
|
|
498
|
+
}), W(
|
|
498
499
|
() => {
|
|
499
|
-
const t =
|
|
500
|
+
const t = M.current;
|
|
500
501
|
if (!t)
|
|
501
502
|
return;
|
|
502
|
-
let
|
|
503
|
-
function
|
|
504
|
-
|
|
503
|
+
let g;
|
|
504
|
+
function $() {
|
|
505
|
+
g && (U && g.isRunning() || (g.cancel(), T.current = void 0));
|
|
505
506
|
}
|
|
506
|
-
const
|
|
507
|
+
const L = typeof e == "function" ? e({
|
|
507
508
|
element: t,
|
|
508
|
-
...
|
|
509
|
-
}) : e,
|
|
510
|
-
if (
|
|
511
|
-
return
|
|
512
|
-
const
|
|
513
|
-
return
|
|
514
|
-
isReducedMotion:
|
|
515
|
-
}),
|
|
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(() => D(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
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
O,
|
|
524
|
-
k,
|
|
521
|
+
N,
|
|
522
|
+
T,
|
|
523
|
+
z,
|
|
525
524
|
D,
|
|
526
|
-
|
|
525
|
+
k,
|
|
526
|
+
I,
|
|
527
|
+
S
|
|
527
528
|
]
|
|
528
|
-
),
|
|
529
|
-
ref:
|
|
529
|
+
), b ? m.cloneElement(R, {
|
|
530
|
+
ref: O
|
|
530
531
|
}) : null;
|
|
531
532
|
}, {
|
|
532
533
|
// Heads up!
|
|
533
534
|
// Always normalize it to a function to simplify types
|
|
534
|
-
[
|
|
535
|
+
[nt]: typeof e == "function" ? e : () => e
|
|
535
536
|
});
|
|
536
537
|
}
|
|
537
|
-
const
|
|
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
|
-
},
|
|
545
|
-
const { sizeName: u, overflowName: d, toSize: l } =
|
|
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
|
-
},
|
|
566
|
-
const { sizeName: d, overflowName: l, toSize: c } =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
594
|
-
const { paddingStart: u, paddingEnd: d, marginStart: l, marginEnd: c } =
|
|
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:
|
|
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" && (
|
|
609
|
-
},
|
|
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
|
-
},
|
|
624
|
+
}, pe = ({
|
|
624
625
|
// enter
|
|
625
|
-
enterSizeDuration: e =
|
|
626
|
+
enterSizeDuration: e = A.durationNormal,
|
|
626
627
|
enterOpacityDuration: r = e,
|
|
627
|
-
enterEasing: n =
|
|
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:
|
|
635
|
-
const
|
|
636
|
-
|
|
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
|
-
|
|
643
|
+
ce({
|
|
643
644
|
direction: "enter",
|
|
644
645
|
orientation: p,
|
|
645
646
|
duration: e,
|
|
646
647
|
easing: n
|
|
647
648
|
})
|
|
648
649
|
];
|
|
649
|
-
|
|
650
|
-
...
|
|
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
|
|
659
|
-
return
|
|
659
|
+
const S = [];
|
|
660
|
+
return h && S.push(ue({
|
|
660
661
|
direction: "exit",
|
|
661
662
|
duration: u,
|
|
662
663
|
easing: d
|
|
663
|
-
})),
|
|
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
|
-
}),
|
|
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:
|
|
677
|
-
exit:
|
|
677
|
+
enter: f,
|
|
678
|
+
exit: S
|
|
678
679
|
};
|
|
679
|
-
}, te = ({ enterDuration: e =
|
|
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
|
-
|
|
683
|
+
pe({
|
|
683
684
|
enterSizeDuration: e,
|
|
684
685
|
enterEasing: r,
|
|
685
686
|
exitSizeDuration: n,
|
|
686
687
|
exitEasing: o
|
|
687
688
|
})
|
|
688
|
-
),
|
|
689
|
-
|
|
690
|
-
enterDuration:
|
|
689
|
+
), st = K(te());
|
|
690
|
+
K(te({
|
|
691
|
+
enterDuration: A.durationFast
|
|
691
692
|
}));
|
|
692
|
-
|
|
693
|
-
enterDuration:
|
|
693
|
+
K(te({
|
|
694
|
+
enterDuration: A.durationSlower
|
|
694
695
|
}));
|
|
695
|
-
|
|
696
|
-
enterSizeDuration:
|
|
697
|
-
enterOpacityDuration:
|
|
698
|
-
enterDelay:
|
|
699
|
-
exitDelay:
|
|
700
|
-
enterEasing:
|
|
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
|
|
703
|
+
const ct = Te({
|
|
703
704
|
root: {
|
|
704
|
-
backgroundColor:
|
|
705
|
+
backgroundColor: B.colorNeutralBackground1,
|
|
705
706
|
boxSizing: "border-box",
|
|
706
707
|
overflow: "hidden"
|
|
707
708
|
},
|
|
708
709
|
default: {
|
|
709
|
-
border: "1px solid " +
|
|
710
|
-
borderRadius:
|
|
711
|
-
boxShadow:
|
|
712
|
-
transitionDuration:
|
|
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:
|
|
717
|
-
border: "1px solid " +
|
|
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
|
-
}),
|
|
734
|
-
var
|
|
735
|
-
const { children: r, icon: n, header: o, collapsible: i,
|
|
736
|
-
let
|
|
737
|
-
(
|
|
738
|
-
const T =
|
|
739
|
-
y || (T.height = "fit-content");
|
|
740
|
-
const
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
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 || (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, {});
|
|
747
|
+
let P = q.SectionHeader;
|
|
748
|
+
e.collapseDirection == "horizontal" && (y || (P = V(P, C.collapsedHorizontalHeader)));
|
|
749
|
+
const N = (z) => {
|
|
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;
|
|
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: O, onClick: N }) })
|
|
748
766
|
] }) }),
|
|
749
|
-
(n || o || i) && /* @__PURE__ */
|
|
750
|
-
/* @__PURE__ */
|
|
751
|
-
!
|
|
752
|
-
|
|
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
|
-
|
|
774
|
+
ut.displayName = "Section";
|
|
757
775
|
export {
|
|
758
|
-
|
|
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-
|
|
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`
|
|
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
|
Binary file
|
package/dist/chunk-3-CMb_cR4A.js
DELETED
|
@@ -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
|
-
};
|