@kalink-ui/seedly 0.32.1 → 0.33.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/CHANGELOG.md +6 -0
- package/package.json +35 -34
- package/src/components/collapsible/collapsible-content.css.ts +48 -0
- package/src/components/collapsible/collapsible-content.tsx +13 -0
- package/src/components/collapsible/collapsible.tsx +6 -0
- package/src/components/collapsible/index.ts +3 -0
- package/src/components/index.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @kalink-ui/seedly
|
|
2
2
|
|
|
3
|
+
## 0.33.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c8c98c0: Introduce the Radix-based `Collapsible` primitives and animated `CollapsibleContent`, and pull the new `@radix-ui/react-collapsible` dependency into Seedly.
|
|
8
|
+
|
|
3
9
|
## 0.32.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kalink-ui/seedly",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "A set of components for building UIs with React and TypeScript",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,33 +16,33 @@
|
|
|
16
16
|
"./styles/layers": "./src/styles/layers.css.ts"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@chromatic-com/storybook": "^4.
|
|
20
|
-
"@storybook/addon-docs": "^9.
|
|
21
|
-
"@storybook/addon-onboarding": "^9.
|
|
22
|
-
"@storybook/react-vite": "^9.
|
|
23
|
-
"@turbo/gen": "^2.5.
|
|
24
|
-
"@types/node": "^24.
|
|
25
|
-
"@types/react": "19.
|
|
26
|
-
"@types/react-dom": "19.
|
|
27
|
-
"@vanilla-extract/css": "^1.17.
|
|
28
|
-
"@vanilla-extract/css-utils": "^0.1.
|
|
29
|
-
"@vanilla-extract/dynamic": "^2.1.
|
|
30
|
-
"@vanilla-extract/recipes": "^0.5.
|
|
31
|
-
"@vanilla-extract/sprinkles": "^1.6.
|
|
32
|
-
"@vanilla-extract/vite-plugin": "^5.
|
|
33
|
-
"@vitejs/plugin-react": "^
|
|
34
|
-
"eslint": "^9.
|
|
35
|
-
"eslint-plugin-storybook": "9.
|
|
36
|
-
"lucide-react": "^0.
|
|
37
|
-
"react": "^19.
|
|
19
|
+
"@chromatic-com/storybook": "^4.1.1",
|
|
20
|
+
"@storybook/addon-docs": "^9.1.10",
|
|
21
|
+
"@storybook/addon-onboarding": "^9.1.10",
|
|
22
|
+
"@storybook/react-vite": "^9.1.10",
|
|
23
|
+
"@turbo/gen": "^2.5.8",
|
|
24
|
+
"@types/node": "^24.6.2",
|
|
25
|
+
"@types/react": "^19.2.0",
|
|
26
|
+
"@types/react-dom": "^19.2.0",
|
|
27
|
+
"@vanilla-extract/css": "^1.17.4",
|
|
28
|
+
"@vanilla-extract/css-utils": "^0.1.6",
|
|
29
|
+
"@vanilla-extract/dynamic": "^2.1.5",
|
|
30
|
+
"@vanilla-extract/recipes": "^0.5.7",
|
|
31
|
+
"@vanilla-extract/sprinkles": "^1.6.5",
|
|
32
|
+
"@vanilla-extract/vite-plugin": "^5.1.1",
|
|
33
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
34
|
+
"eslint": "^9.37.0",
|
|
35
|
+
"eslint-plugin-storybook": "9.1.10",
|
|
36
|
+
"lucide-react": "^0.544.0",
|
|
37
|
+
"react": "^19.2.0",
|
|
38
38
|
"react-docgen-typescript": "^2.4.0",
|
|
39
|
-
"react-dom": "^19.
|
|
40
|
-
"storybook": "^9.
|
|
41
|
-
"type-fest": "^
|
|
42
|
-
"typescript": "^5.
|
|
43
|
-
"vite": "^
|
|
39
|
+
"react-dom": "^19.2.0",
|
|
40
|
+
"storybook": "^9.1.10",
|
|
41
|
+
"type-fest": "^5.0.1",
|
|
42
|
+
"typescript": "^5.9.3",
|
|
43
|
+
"vite": "^7.1.9",
|
|
44
44
|
"vite-tsconfig-paths": "^5.1.4",
|
|
45
|
-
"vitest": "^3.2.
|
|
45
|
+
"vitest": "^3.2.4",
|
|
46
46
|
"@kalink-ui/eslint-config": "0.10.0",
|
|
47
47
|
"@kalink-ui/typescript-config": "0.4.0"
|
|
48
48
|
},
|
|
@@ -52,16 +52,17 @@
|
|
|
52
52
|
"@vanilla-extract/dynamic": "^2.1.2",
|
|
53
53
|
"@vanilla-extract/recipes": "^0.5.5",
|
|
54
54
|
"@vanilla-extract/sprinkles": "^1.6.3",
|
|
55
|
-
"react": "^19.
|
|
56
|
-
"react-dom": "^19.
|
|
57
|
-
"typescript": "^5.
|
|
55
|
+
"react": "^19.1.1",
|
|
56
|
+
"react-dom": "^19.1.1",
|
|
57
|
+
"typescript": "^5.9.2"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@radix-ui/react-alert-dialog": "^1.1.
|
|
61
|
-
"@radix-ui/react-
|
|
62
|
-
"@radix-ui/react-
|
|
63
|
-
"@radix-ui/react-
|
|
64
|
-
"@radix-ui/react-
|
|
60
|
+
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
61
|
+
"@radix-ui/react-collapsible": "^1.1.12",
|
|
62
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
63
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
64
|
+
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
65
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
65
66
|
"@radix-ui/react-slot": "^1.2.3",
|
|
66
67
|
"clsx": "^2.1.1",
|
|
67
68
|
"cmdk": "^1.1.1",
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { keyframes, style } from '@vanilla-extract/css';
|
|
2
|
+
|
|
3
|
+
import { sys } from '../../styles';
|
|
4
|
+
import { components } from '../../styles/layers.css';
|
|
5
|
+
|
|
6
|
+
const slideDown = keyframes({
|
|
7
|
+
'0%': {
|
|
8
|
+
height: 0,
|
|
9
|
+
opacity: 0,
|
|
10
|
+
},
|
|
11
|
+
'100%': {
|
|
12
|
+
height: 'var(--radix-collapsible-content-height)',
|
|
13
|
+
opacity: 1,
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const slideUp = keyframes({
|
|
18
|
+
'0%': {
|
|
19
|
+
height: 'var(--radix-collapsible-content-height)',
|
|
20
|
+
opacity: 1,
|
|
21
|
+
},
|
|
22
|
+
'100%': {
|
|
23
|
+
height: 0,
|
|
24
|
+
opacity: 0,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export const collapsibleContent = style({
|
|
29
|
+
'@layer': {
|
|
30
|
+
[components]: {
|
|
31
|
+
overflow: 'hidden',
|
|
32
|
+
|
|
33
|
+
animationDuration: sys.motion.duration.medium[2],
|
|
34
|
+
animationTimingFunction: sys.motion.easing.standard,
|
|
35
|
+
animationFillMode: 'both',
|
|
36
|
+
willChange: 'height',
|
|
37
|
+
|
|
38
|
+
selectors: {
|
|
39
|
+
'&[data-state="open"]': {
|
|
40
|
+
animationName: slideDown,
|
|
41
|
+
},
|
|
42
|
+
'&[data-state="closed"]': {
|
|
43
|
+
animationName: slideUp,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { CollapsibleContentProps, Content } from '@radix-ui/react-collapsible';
|
|
4
|
+
import { clsx } from 'clsx';
|
|
5
|
+
|
|
6
|
+
import { collapsibleContent } from './collapsible-content.css';
|
|
7
|
+
|
|
8
|
+
export function CollapsibleContent({
|
|
9
|
+
className,
|
|
10
|
+
...props
|
|
11
|
+
}: CollapsibleContentProps) {
|
|
12
|
+
return <Content className={clsx(collapsibleContent, className)} {...props} />;
|
|
13
|
+
}
|
package/src/components/index.ts
CHANGED