Skip to content

Commit 277a85d

Browse files
committed
Merge reworked implementations
1 parent bead799 commit 277a85d

File tree

5 files changed

+399
-32
lines changed

5 files changed

+399
-32
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
'use client';
2+
import * as React from 'react';
3+
4+
export default function Nothing() {
5+
return <div>This is just a dummy file to hold icons</div>;
6+
}
7+
8+
export function ExpandMoreIcon(props: React.SVGProps<SVGSVGElement>) {
9+
return (
10+
<svg
11+
xmlns="http://www.w3.org/2000/svg"
12+
{...props}
13+
width="24"
14+
height="24"
15+
viewBox="0 0 24 24"
16+
fill="none"
17+
>
18+
<path d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" fill="currentColor" />
19+
</svg>
20+
);
21+
}

docs/src/app/(private)/experiments/collapsible/animation.module.css

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
overflow: hidden;
2323
box-sizing: border-box;
2424
width: 100%;
25-
animation-fill-mode: forwards !important;
2625

2726
&[data-open] {
2827
animation: slide-down var(--duration) ease-out;

docs/src/app/(private)/experiments/collapsible/animation.tsx

+1-16
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import classes from './animation.module.css';
88

99
import { useAnimationsFinished } from '../../../../../../packages/react/src/utils/useAnimationsFinished';
1010
import { useEventCallback } from '../../../../../../packages/react/src/utils/useEventCallback';
11-
// import { useForkRef } from '../../../../../../packages/react/src/utils/useForkRef';
1211
import { useOnMount } from '../../../../../../packages/react/src/utils/useOnMount';
12+
import { ExpandMoreIcon } from './_icons';
1313

1414
function Collapsible(props: {
1515
defaultOpen?: boolean;
@@ -152,18 +152,3 @@ export default function App() {
152152
</div>
153153
);
154154
}
155-
156-
function ExpandMoreIcon(props: React.SVGProps<SVGSVGElement>) {
157-
return (
158-
<svg
159-
xmlns="http://www.w3.org/2000/svg"
160-
{...props}
161-
width="24"
162-
height="24"
163-
viewBox="0 0 24 24"
164-
fill="none"
165-
>
166-
<path d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" fill="currentColor" />
167-
</svg>
168-
);
169-
}

0 commit comments

Comments
 (0)