@orioncactuscorp/ui 1.6.0 → 1.7.0
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/README.md +22 -3
- package/dist/components/Accordion/Accordion.css +1 -1
- package/dist/components/Accordion/Accordion.js +206 -214
- package/dist/components/ActionArea/ActionArea.css +1 -1
- package/dist/components/ActionArea/ActionAreaLayout.css +1 -1
- package/dist/components/BackgroundIconButton/BackgroundIconButton.css +1 -1
- package/dist/components/Badge/Badge.css +1 -1
- package/dist/components/Badge/Badge.js +13 -13
- package/dist/components/Cell/Cell.css +1 -1
- package/dist/components/IconButton/IconButton.css +1 -1
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Loading/Loading.css +1 -1
- package/dist/components/Menu/Menu.css +1 -1
- package/dist/components/Menu/Menu.js +156 -140
- package/dist/components/Modal/Modal.css +1 -1
- package/dist/components/Modal/Modal.js +571 -391
- package/dist/components/Modal/Modal.module.scss.js +58 -38
- package/dist/components/Modal/snapPoints.js +59 -35
- package/dist/components/Modal/useModalDrag.js +754 -579
- package/dist/components/Modal.js +7 -6
- package/dist/components/Skeleton/Skeleton.css +1 -0
- package/dist/components/Skeleton/Skeleton.js +55 -0
- package/dist/components/Skeleton/Skeleton.module.scss.js +16 -0
- package/dist/components/Skeleton.d.ts +6 -0
- package/dist/components/Skeleton.js +4 -0
- package/dist/components/TextButton/TextButton.css +1 -1
- package/dist/components/TextButton/TextButton.js +45 -48
- package/dist/components/internal/DisclosureIndicator.js +39 -0
- package/dist/components/internal/Pressable.js +28 -27
- package/dist/foundations/motion.css +1 -1
- package/dist/foundations/space.css +1 -1
- package/dist/foundations.css +2 -2
- package/dist/index.js +90 -87
- package/dist/react/motion.js +79 -74
- package/dist/styles.css +14 -13
- package/dist/ui/src/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/ui/src/components/Menu/Menu.d.ts +1 -1
- package/dist/ui/src/components/Menu/Menu.d.ts.map +1 -1
- package/dist/ui/src/components/Menu/index.d.ts +1 -1
- package/dist/ui/src/components/Menu/index.d.ts.map +1 -1
- package/dist/ui/src/components/Menu/types.d.ts +6 -2
- package/dist/ui/src/components/Menu/types.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/Modal.d.ts +3 -1
- package/dist/ui/src/components/Modal/Modal.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/contexts.d.ts +2 -0
- package/dist/ui/src/components/Modal/contexts.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/index.d.ts +2 -2
- package/dist/ui/src/components/Modal/index.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/snapPoints.d.ts +7 -10
- package/dist/ui/src/components/Modal/snapPoints.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/types.d.ts +17 -0
- package/dist/ui/src/components/Modal/types.d.ts.map +1 -1
- package/dist/ui/src/components/Modal/useModalDrag.d.ts +2 -1
- package/dist/ui/src/components/Modal/useModalDrag.d.ts.map +1 -1
- package/dist/ui/src/components/Skeleton/Skeleton.d.ts +4 -0
- package/dist/ui/src/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/ui/src/components/Skeleton/index.d.ts +3 -0
- package/dist/ui/src/components/Skeleton/index.d.ts.map +1 -0
- package/dist/ui/src/components/Skeleton/types.d.ts +17 -0
- package/dist/ui/src/components/Skeleton/types.d.ts.map +1 -0
- package/dist/ui/src/components/TextButton/TextButton.d.ts.map +1 -1
- package/dist/ui/src/components/TextButton/types.d.ts +4 -2
- package/dist/ui/src/components/TextButton/types.d.ts.map +1 -1
- package/dist/ui/src/components/internal/DisclosureIndicator.d.ts +10 -0
- package/dist/ui/src/components/internal/DisclosureIndicator.d.ts.map +1 -0
- package/dist/ui/src/components/internal/Pressable.d.ts +8 -1
- package/dist/ui/src/components/internal/Pressable.d.ts.map +1 -1
- package/dist/ui/src/index.d.ts +5 -3
- package/dist/ui/src/index.d.ts.map +1 -1
- package/dist/ui/src/react/motion/index.d.ts +3 -1
- package/dist/ui/src/react/motion/index.d.ts.map +1 -1
- package/dist/ui/src/utils/motion.d.ts +2 -2
- package/dist/ui/src/utils/motion.d.ts.map +1 -1
- package/dist/utils/motion.js +24 -18
- package/dist/vscode/oc-ui-vars.css +6 -4
- package/package.json +1 -1
- package/src/scss/foundations/motion.scss +3 -1
- package/src/scss/foundations/responsive.test.ts +22 -0
- package/src/scss/foundations/space.scss +9 -4
- package/src/scss/mixins/_motion.scss +5 -8
- package/src/scss/mixins/_motion.test.ts +20 -0
package/dist/index.js
CHANGED
|
@@ -4,40 +4,41 @@ import { default as n, ActionAreaButton as d } from "./components/ActionArea/Act
|
|
|
4
4
|
import { default as i, ActionAreaLayoutActionArea as u, ActionAreaLayoutBody as p, ActionAreaLayoutFooter as c, ActionAreaLayout as x } from "./components/ActionArea/ActionAreaLayout.js";
|
|
5
5
|
import { default as s } from "./components/Badge/Badge.js";
|
|
6
6
|
import { default as g } from "./components/Background/Background.js";
|
|
7
|
-
import { default as
|
|
7
|
+
import { default as C } from "./components/Divider/Divider.js";
|
|
8
8
|
import { default as T } from "./components/Loading/Loading.js";
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as R } from "./components/
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as H } from "./components/
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { default as V } from "./components/
|
|
18
|
-
import { default as X } from "./components/
|
|
19
|
-
import { default as Z } from "./components/
|
|
20
|
-
import { default as $ } from "./components/
|
|
21
|
-
import { default as eo } from "./components/TextInput/
|
|
22
|
-
import { default as ro } from "./components/
|
|
23
|
-
import { default as lo } from "./components/TextArea/
|
|
24
|
-
import { default as fo } from "./components/
|
|
25
|
-
import { default as uo } from "./components/Select/
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
9
|
+
import { default as S } from "./components/Skeleton/Skeleton.js";
|
|
10
|
+
import { default as I, CellItem as L } from "./components/Cell/Cell.js";
|
|
11
|
+
import { default as R } from "./components/TextButton/TextButton.js";
|
|
12
|
+
import { default as D } from "./components/IconButton/IconButton.js";
|
|
13
|
+
import { default as H } from "./components/BackgroundIconButton/BackgroundIconButton.js";
|
|
14
|
+
import { default as w } from "./components/Interaction/Interaction.js";
|
|
15
|
+
import { Field as G, FieldControl as N, FieldErrorMessage as P, FieldLabel as j, FieldMessage as q } from "./components/Field/Field.js";
|
|
16
|
+
import { FieldGroup as J, FieldLegend as K, Fieldset as O, FieldsetContent as Q } from "./components/Fieldset/Fieldset.js";
|
|
17
|
+
import { default as V } from "./components/Checkbox/Checkbox.js";
|
|
18
|
+
import { default as X } from "./components/CheckMark/CheckMark.js";
|
|
19
|
+
import { default as Z } from "./components/Radio/Radio.js";
|
|
20
|
+
import { default as $ } from "./components/Switch/Switch.js";
|
|
21
|
+
import { default as eo } from "./components/TextInput/TextInput.js";
|
|
22
|
+
import { default as ro } from "./components/TextInput/TextInputContent.js";
|
|
23
|
+
import { default as lo } from "./components/TextArea/TextArea.js";
|
|
24
|
+
import { default as fo } from "./components/TextArea/TextAreaContent.js";
|
|
25
|
+
import { default as uo } from "./components/Select/Select.js";
|
|
26
|
+
import { default as co } from "./components/Select/SelectContent.js";
|
|
27
|
+
import { MenuContent as mo, MenuItem as so, MenuRoot as Ao, MenuSeparator as go, MenuTrigger as Mo } from "./components/Menu/Menu.js";
|
|
28
|
+
import { default as Bo, AlertAction as To, AlertActionArea as Fo, AlertContent as So, AlertDescription as yo, AlertHeading as Io, AlertRoot as Lo } from "./components/Alert/Alert.js";
|
|
29
|
+
import { default as Ro, AccordionContent as vo, AccordionDescription as Do, AccordionDetails as ho, AccordionItem as Ho, AccordionSummary as bo } from "./components/Accordion/Accordion.js";
|
|
30
|
+
import { default as Eo, ModalBody as Go, ModalClose as No, ModalContent as Po, ModalFooter as jo, ModalHeader as qo, ModalNavigationSection as zo, ModalRoot as Jo, ModalTrigger as Ko } from "./components/Modal/Modal.js";
|
|
31
|
+
import { TooltipContent as Qo, TooltipProvider as Uo, TooltipRoot as Vo, TooltipTrigger as Wo } from "./components/Tooltip/Tooltip.js";
|
|
32
|
+
import { ScrollArea as Yo, ScrollAreaContainer as Zo } from "./components/ScrollArea/ScrollArea.js";
|
|
33
|
+
import { getBreakpoint as $o, getBreakpoints as oe } from "./utils/breakpoints.js";
|
|
34
|
+
import { SvgIcon as te } from "@orioncactuscorp/icons";
|
|
34
35
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
Ro as Accordion,
|
|
37
|
+
vo as AccordionContent,
|
|
38
|
+
Do as AccordionDescription,
|
|
39
|
+
ho as AccordionDetails,
|
|
40
|
+
Ho as AccordionItem,
|
|
41
|
+
bo as AccordionSummary,
|
|
41
42
|
n as ActionArea,
|
|
42
43
|
d as ActionAreaButton,
|
|
43
44
|
i as ActionAreaLayout,
|
|
@@ -45,64 +46,66 @@ export {
|
|
|
45
46
|
p as ActionAreaLayoutBody,
|
|
46
47
|
c as ActionAreaLayoutFooter,
|
|
47
48
|
x as ActionAreaLayoutRoot,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
Bo as Alert,
|
|
50
|
+
To as AlertAction,
|
|
51
|
+
Fo as AlertActionArea,
|
|
52
|
+
So as AlertContent,
|
|
53
|
+
yo as AlertDescription,
|
|
54
|
+
Io as AlertHeading,
|
|
55
|
+
Lo as AlertRoot,
|
|
55
56
|
g as Background,
|
|
56
|
-
|
|
57
|
+
H as BackgroundIconButton,
|
|
57
58
|
s as Badge,
|
|
58
59
|
a as Button,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
60
|
+
I as Cell,
|
|
61
|
+
L as CellItem,
|
|
62
|
+
X as CheckMark,
|
|
63
|
+
V as Checkbox,
|
|
64
|
+
C as Divider,
|
|
65
|
+
G as Field,
|
|
66
|
+
N as FieldControl,
|
|
67
|
+
P as FieldErrorMessage,
|
|
68
|
+
J as FieldGroup,
|
|
69
|
+
j as FieldLabel,
|
|
70
|
+
K as FieldLegend,
|
|
71
|
+
q as FieldMessage,
|
|
72
|
+
O as Fieldset,
|
|
73
|
+
Q as FieldsetContent,
|
|
74
|
+
D as IconButton,
|
|
75
|
+
w as Interaction,
|
|
75
76
|
T as Loading,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
77
|
+
mo as MenuContent,
|
|
78
|
+
so as MenuItem,
|
|
79
|
+
Ao as MenuRoot,
|
|
80
|
+
go as MenuSeparator,
|
|
81
|
+
Mo as MenuTrigger,
|
|
82
|
+
Eo as Modal,
|
|
83
|
+
Go as ModalBody,
|
|
84
|
+
No as ModalClose,
|
|
85
|
+
Po as ModalContent,
|
|
86
|
+
jo as ModalFooter,
|
|
87
|
+
qo as ModalHeader,
|
|
88
|
+
zo as ModalNavigationSection,
|
|
89
|
+
Jo as ModalRoot,
|
|
90
|
+
Ko as ModalTrigger,
|
|
91
|
+
Z as Radio,
|
|
92
|
+
Yo as ScrollArea,
|
|
93
|
+
Zo as ScrollAreaContainer,
|
|
92
94
|
t as SectionHeader,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
lo as
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
eo as
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
95
|
+
uo as Select,
|
|
96
|
+
co as SelectContent,
|
|
97
|
+
S as Skeleton,
|
|
98
|
+
te as SvgIcon,
|
|
99
|
+
$ as Switch,
|
|
100
|
+
lo as TextArea,
|
|
101
|
+
fo as TextAreaContent,
|
|
102
|
+
R as TextButton,
|
|
103
|
+
eo as TextInput,
|
|
104
|
+
ro as TextInputContent,
|
|
105
|
+
Qo as TooltipContent,
|
|
106
|
+
Uo as TooltipProvider,
|
|
107
|
+
Vo as TooltipRoot,
|
|
108
|
+
Wo as TooltipTrigger,
|
|
109
|
+
$o as getBreakpoint,
|
|
110
|
+
oe as getBreakpoints
|
|
108
111
|
};
|
package/dist/react/motion.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as H } from "react/jsx-runtime";
|
|
3
|
-
import { useRef as
|
|
4
|
-
import { createSpringAnimator as
|
|
5
|
-
import { resolveOcMotion as
|
|
6
|
-
const
|
|
7
|
-
function
|
|
3
|
+
import { useRef as i, useState as C, useCallback as q, useEffect as y, useLayoutEffect as st } from "react";
|
|
4
|
+
import { createSpringAnimator as at } from "../utils/spring/animator.js";
|
|
5
|
+
import { resolveOcMotion as ut } from "../utils/motion.js";
|
|
6
|
+
const V = "block-size";
|
|
7
|
+
function lt(t, n) {
|
|
8
8
|
typeof t == "function" ? t(n) : t && (t.current = n);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
const n =
|
|
10
|
+
function A(t) {
|
|
11
|
+
const n = i(t);
|
|
12
12
|
return y(() => {
|
|
13
13
|
n.current = t;
|
|
14
14
|
}, [t]), n;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function dt() {
|
|
17
17
|
const [t, n] = C(() => typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
|
|
18
18
|
return y(() => {
|
|
19
19
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
@@ -21,27 +21,30 @@ function ut() {
|
|
|
21
21
|
return c(), r.addEventListener("change", c), () => r.removeEventListener("change", c);
|
|
22
22
|
}, []), t;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function ft(t) {
|
|
25
25
|
if (!t) return 0;
|
|
26
26
|
const n = t.getBoundingClientRect().height;
|
|
27
27
|
return Math.max(0, n || t.scrollHeight);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function U(t) {
|
|
30
30
|
return t ? Math.max(0, t.getBoundingClientRect().height) : 0;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function mt(t, n) {
|
|
33
|
+
return n === "rendered" ? U(t) : ft(t);
|
|
34
|
+
}
|
|
35
|
+
function j(t) {
|
|
33
36
|
return `${Math.max(0, t).toFixed(3)}px`;
|
|
34
37
|
}
|
|
35
|
-
function
|
|
36
|
-
const r =
|
|
37
|
-
(
|
|
38
|
-
u.current !==
|
|
38
|
+
function ht(t, n) {
|
|
39
|
+
const r = A(n), [c, d] = C(t), u = i(t), f = q(
|
|
40
|
+
(s) => {
|
|
41
|
+
u.current !== s && (u.current = s, d(s), r.current?.(s));
|
|
39
42
|
},
|
|
40
43
|
[r]
|
|
41
44
|
);
|
|
42
45
|
return { motionState: c, setMotionState: f };
|
|
43
46
|
}
|
|
44
|
-
function
|
|
47
|
+
function Mt({
|
|
45
48
|
children: t,
|
|
46
49
|
className: n = "",
|
|
47
50
|
contentProps: r,
|
|
@@ -49,35 +52,36 @@ function St({
|
|
|
49
52
|
durationFactor: d = 1,
|
|
50
53
|
extraBounce: u,
|
|
51
54
|
enterPhase: f = "enter",
|
|
52
|
-
exitPhase:
|
|
55
|
+
exitPhase: s = "exit",
|
|
53
56
|
forceMount: l = !1,
|
|
54
57
|
intent: R = "expand",
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
measureBlockSize: z = "content",
|
|
59
|
+
onExitComplete: W,
|
|
60
|
+
onMotionStateChange: Y,
|
|
57
61
|
open: o,
|
|
58
|
-
pace:
|
|
59
|
-
reduced:
|
|
60
|
-
ref:
|
|
61
|
-
scheduler:
|
|
62
|
-
style:
|
|
63
|
-
"data-oc-component":
|
|
64
|
-
|
|
62
|
+
pace: b = "normal",
|
|
63
|
+
reduced: x = "auto",
|
|
64
|
+
ref: _,
|
|
65
|
+
scheduler: L,
|
|
66
|
+
style: $,
|
|
67
|
+
"data-oc-component": D = "motion-expand",
|
|
68
|
+
...F
|
|
65
69
|
}) {
|
|
66
|
-
const
|
|
70
|
+
const E = i(null), B = i(null), a = i(null), G = i(o || l), I = i(!1), g = dt(), [m, J] = C(() => o || l), S = i(m), O = A(W), { motionState: K, setMotionState: h } = ht(
|
|
67
71
|
o ? "open" : "closed",
|
|
68
|
-
|
|
72
|
+
Y
|
|
69
73
|
), {
|
|
70
|
-
className:
|
|
71
|
-
style:
|
|
72
|
-
"data-oc-part":
|
|
73
|
-
...
|
|
74
|
-
} = r ?? {}, w = o || m || l,
|
|
75
|
-
|
|
74
|
+
className: Q = "",
|
|
75
|
+
style: X,
|
|
76
|
+
"data-oc-part": Z = "content",
|
|
77
|
+
...tt
|
|
78
|
+
} = r ?? {}, w = o || m || l, et = {
|
|
79
|
+
...$,
|
|
76
80
|
overflow: "hidden"
|
|
77
|
-
}, p =
|
|
78
|
-
S.current = e,
|
|
79
|
-
}, []),
|
|
80
|
-
|
|
81
|
+
}, p = q((e) => {
|
|
82
|
+
S.current = e, J(e);
|
|
83
|
+
}, []), nt = (e) => {
|
|
84
|
+
E.current = e, lt(_, e);
|
|
81
85
|
};
|
|
82
86
|
return y(() => {
|
|
83
87
|
S.current = m;
|
|
@@ -86,45 +90,45 @@ function St({
|
|
|
86
90
|
a.current?.destroy(), a.current = null;
|
|
87
91
|
},
|
|
88
92
|
[]
|
|
89
|
-
),
|
|
93
|
+
), st(() => {
|
|
90
94
|
if (!w) return;
|
|
91
|
-
const e =
|
|
92
|
-
if (!e || !
|
|
93
|
-
const
|
|
95
|
+
const e = E.current, P = B.current;
|
|
96
|
+
if (!e || !P) return;
|
|
97
|
+
const ot = S.current, N = o ? mt(P, z) : 0, T = ut({
|
|
94
98
|
element: e,
|
|
95
99
|
intent: R,
|
|
96
|
-
phase: o ? f :
|
|
97
|
-
pace:
|
|
100
|
+
phase: o ? f : s,
|
|
101
|
+
pace: b,
|
|
98
102
|
durationFactor: d,
|
|
99
103
|
extraBounce: u,
|
|
100
|
-
reduced:
|
|
104
|
+
reduced: x,
|
|
101
105
|
reducedMotion: g,
|
|
102
|
-
property:
|
|
103
|
-
}),
|
|
106
|
+
property: V
|
|
107
|
+
}), rt = !I.current && G.current, ct = !c && !rt && T.animate, M = () => {
|
|
104
108
|
if (e.style.willChange = "", o) {
|
|
105
109
|
e.style.blockSize = "auto", h("open"), p(!0);
|
|
106
110
|
return;
|
|
107
111
|
}
|
|
108
|
-
e.style.blockSize = "0px", h("closed"), l || p(!1),
|
|
112
|
+
e.style.blockSize = "0px", h("closed"), l || p(!1), O.current?.();
|
|
109
113
|
};
|
|
110
|
-
if (a.current?.destroy(), a.current = null, o && !
|
|
114
|
+
if (a.current?.destroy(), a.current = null, o && !ot && (e.style.blockSize = "0px", p(!0)), I.current = !0, !ct) {
|
|
111
115
|
M();
|
|
112
116
|
return;
|
|
113
117
|
}
|
|
114
|
-
const v =
|
|
115
|
-
if (Math.abs(v -
|
|
118
|
+
const v = U(e);
|
|
119
|
+
if (Math.abs(v - N) < 0.5) {
|
|
116
120
|
M();
|
|
117
121
|
return;
|
|
118
122
|
}
|
|
119
|
-
e.style.blockSize =
|
|
120
|
-
const k =
|
|
123
|
+
e.style.blockSize = j(v), e.style.willChange = V, h(o ? "opening" : "closing");
|
|
124
|
+
const k = at({
|
|
121
125
|
value: v,
|
|
122
|
-
target:
|
|
123
|
-
spring:
|
|
124
|
-
scheduler:
|
|
126
|
+
target: N,
|
|
127
|
+
spring: T.spring,
|
|
128
|
+
scheduler: L,
|
|
125
129
|
stabilityWindow: 0.02,
|
|
126
|
-
onUpdate: (
|
|
127
|
-
e.style.blockSize =
|
|
130
|
+
onUpdate: (it) => {
|
|
131
|
+
e.style.blockSize = j(it);
|
|
128
132
|
},
|
|
129
133
|
onComplete: M
|
|
130
134
|
});
|
|
@@ -136,38 +140,39 @@ function St({
|
|
|
136
140
|
d,
|
|
137
141
|
u,
|
|
138
142
|
f,
|
|
139
|
-
|
|
143
|
+
s,
|
|
140
144
|
l,
|
|
141
145
|
R,
|
|
142
|
-
I,
|
|
143
|
-
o,
|
|
144
146
|
z,
|
|
147
|
+
O,
|
|
148
|
+
o,
|
|
145
149
|
b,
|
|
146
|
-
g,
|
|
147
150
|
x,
|
|
151
|
+
g,
|
|
152
|
+
L,
|
|
148
153
|
p,
|
|
149
154
|
h,
|
|
150
155
|
w
|
|
151
156
|
]), w ? /* @__PURE__ */ H(
|
|
152
157
|
"div",
|
|
153
158
|
{
|
|
154
|
-
|
|
155
|
-
ref:
|
|
159
|
+
...F,
|
|
160
|
+
ref: nt,
|
|
156
161
|
className: n,
|
|
157
|
-
style:
|
|
158
|
-
"data-oc-component":
|
|
162
|
+
style: et,
|
|
163
|
+
"data-oc-component": D,
|
|
159
164
|
"data-oc-motion-intent": R,
|
|
160
|
-
"data-oc-motion-state":
|
|
165
|
+
"data-oc-motion-state": K,
|
|
161
166
|
"data-oc-reduced-motion": g ? "true" : void 0,
|
|
162
167
|
"data-oc-state": o ? "open" : "closed",
|
|
163
168
|
children: /* @__PURE__ */ H(
|
|
164
169
|
"div",
|
|
165
170
|
{
|
|
166
|
-
...
|
|
167
|
-
ref:
|
|
168
|
-
className:
|
|
169
|
-
style:
|
|
170
|
-
"data-oc-part":
|
|
171
|
+
...tt,
|
|
172
|
+
ref: B,
|
|
173
|
+
className: Q,
|
|
174
|
+
style: X,
|
|
175
|
+
"data-oc-part": Z,
|
|
171
176
|
children: t
|
|
172
177
|
}
|
|
173
178
|
)
|
|
@@ -175,6 +180,6 @@ function St({
|
|
|
175
180
|
) : null;
|
|
176
181
|
}
|
|
177
182
|
export {
|
|
178
|
-
|
|
179
|
-
|
|
183
|
+
Mt as MotionExpand,
|
|
184
|
+
Mt as default
|
|
180
185
|
};
|