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