@rinzai/zen 0.0.15 → 0.1.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/dist/badge/index.d.ts +9 -10
- package/dist/badge/index.d.ts.map +1 -1
- package/dist/button/index.d.ts +8 -8
- package/dist/button/index.d.ts.map +1 -1
- package/dist/collapse/index.d.ts +1 -2
- package/dist/collapse/index.d.ts.map +1 -1
- package/dist/dropdown/index.d.ts +2 -2
- package/dist/dropdown/index.d.ts.map +1 -1
- package/dist/icons/chevron-down.d.ts +1 -1
- package/dist/icons/chevron-up.d.ts +1 -1
- package/dist/icons/icon.types.d.ts +2 -3
- package/dist/icons/icon.types.d.ts.map +1 -1
- package/dist/icons/search.d.ts +1 -1
- package/dist/icons/x-mark.d.ts +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/input/index.d.ts +2 -3
- package/dist/input/index.d.ts.map +1 -1
- package/dist/popover/index.d.ts +1 -2
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/toggle/index.d.ts +2 -2
- package/dist/toggle/index.d.ts.map +1 -1
- package/dist/utils/cva.d.ts +4 -3
- package/dist/utils/cva.d.ts.map +1 -1
- package/dist/utils/cx.d.ts +1 -1
- package/dist/utils/cx.d.ts.map +1 -1
- package/dist/utils/useClickOutside.d.ts +1 -1
- package/dist/utils/useClickOutside.d.ts.map +1 -1
- package/dist/zen/index.d.ts +191 -0
- package/dist/zen/index.d.ts.map +1 -0
- package/dist/zen.css +1 -0
- package/dist/zen.js +2035 -2174
- package/package.json +87 -79
- package/dist/badge/index.stories.d.ts +0 -5
- package/dist/badge/index.stories.d.ts.map +0 -1
- package/dist/button/index.stories.d.ts +0 -4
- package/dist/button/index.stories.d.ts.map +0 -1
- package/dist/collapse/index.stories.d.ts +0 -4
- package/dist/collapse/index.stories.d.ts.map +0 -1
- package/dist/component/index.d.ts +0 -13
- package/dist/component/index.d.ts.map +0 -1
- package/dist/component/index.stories.d.ts +0 -25
- package/dist/component/index.stories.d.ts.map +0 -1
- package/dist/container/index.d.ts +0 -5
- package/dist/container/index.d.ts.map +0 -1
- package/dist/container/index.stories.d.ts +0 -5
- package/dist/container/index.stories.d.ts.map +0 -1
- package/dist/dropdown/index.stories.d.ts +0 -7
- package/dist/dropdown/index.stories.d.ts.map +0 -1
- package/dist/input/index.stories.d.ts +0 -4
- package/dist/input/index.stories.d.ts.map +0 -1
- package/dist/toggle/index.stories.d.ts +0 -4
- package/dist/toggle/index.stories.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,79 +1,87 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@rinzai/zen",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"type": "module",
|
|
5
|
-
"types": "./dist/index.d.ts",
|
|
6
|
-
"module": "./dist/zen.js",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist"
|
|
9
|
-
],
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"@
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"@
|
|
39
|
-
"@storybook/
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"eslint-plugin
|
|
49
|
-
"eslint
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"prettier": "^
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@rinzai/zen",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
|
+
"module": "./dist/zen.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/zen.js",
|
|
14
|
+
"require": "./dist/zen.js"
|
|
15
|
+
},
|
|
16
|
+
"./dist/style.css": {
|
|
17
|
+
"import": "./dist/style.css",
|
|
18
|
+
"require": "./dist/style.css"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "vite build",
|
|
23
|
+
"lint": "eslint packages/**/*.{ts,tsx}",
|
|
24
|
+
"lint:fix": "eslint --fix packages/**/*.{ts,tsx}",
|
|
25
|
+
"format": "prettier --write packages/**/*.{ts,tsx,css} --config ./.prettierrc",
|
|
26
|
+
"prepare": "husky",
|
|
27
|
+
"dev": "storybook dev -p 6006",
|
|
28
|
+
"build-storybook": "storybook build",
|
|
29
|
+
"prepublishOnly": "npm run build"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@floating-ui/react-dom": "^2.1.2",
|
|
33
|
+
"@tanstack/react-virtual": "^3.11.1",
|
|
34
|
+
"react": "^19.0.0",
|
|
35
|
+
"react-dom": "^19.0.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@eslint/js": "^9.16.0",
|
|
39
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
40
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
41
|
+
"@storybook/addon-links": "^8.4.7",
|
|
42
|
+
"@storybook/addon-themes": "^8.4.7",
|
|
43
|
+
"@storybook/blocks": "^8.1.10",
|
|
44
|
+
"@storybook/react": "^8.1.10",
|
|
45
|
+
"@storybook/react-vite": "^8.4.7",
|
|
46
|
+
"@types/react": "^19.0.1",
|
|
47
|
+
"@types/react-dom": "^19.0.2",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^8.18.0",
|
|
49
|
+
"@typescript-eslint/parser": "^8.18.0",
|
|
50
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
51
|
+
"autoprefixer": "^10.4.20",
|
|
52
|
+
"babel-plugin-react-compiler": "^19.0.0-beta-37ed2a7-20241206",
|
|
53
|
+
"eslint": "^9.16.0",
|
|
54
|
+
"eslint-config-prettier": "^9.1.0",
|
|
55
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
56
|
+
"eslint-plugin-react": "^7.37.2",
|
|
57
|
+
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
58
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
59
|
+
"globals": "^15.13.0",
|
|
60
|
+
"husky": "^9.1.7",
|
|
61
|
+
"postcss": "^8.4.49",
|
|
62
|
+
"prettier": "^3.4.2",
|
|
63
|
+
"prettier-plugin-tailwindcss": "^0.6.9",
|
|
64
|
+
"storybook": "^8.4.7",
|
|
65
|
+
"tailwindcss": "^3.4.16",
|
|
66
|
+
"typescript": "^5.7.2",
|
|
67
|
+
"typescript-eslint": "^8.18.0",
|
|
68
|
+
"vite": "^6",
|
|
69
|
+
"vite-plugin-dts": "^4",
|
|
70
|
+
"vite-tsconfig-paths": "^5"
|
|
71
|
+
},
|
|
72
|
+
"husky": {
|
|
73
|
+
"hooks": {
|
|
74
|
+
"pre-commit": "lint-staged"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"peerDependencies": {
|
|
78
|
+
"react": "^19.0.0",
|
|
79
|
+
"react-dom": "^19.0.0"
|
|
80
|
+
},
|
|
81
|
+
"lint-staged": {
|
|
82
|
+
"components/**/*.{js,jsx,ts,tsx}": [
|
|
83
|
+
"npx eslint",
|
|
84
|
+
"npm run format"
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, Omit<import("./index").BadgeProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
-
export default _default;
|
|
4
|
-
export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, Omit<import("./index").BadgeProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
//# sourceMappingURL=index.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../packages/badge/index.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;;AAI1B,wBAIwB;AAKxB,eAAO,MAAM,OAAO,gLAAoB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("./index").ButtonProps>;
|
|
2
|
-
export default _default;
|
|
3
|
-
export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./index").ButtonProps>;
|
|
4
|
-
//# sourceMappingURL=index.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../packages/button/index.stories.tsx"],"names":[],"mappings":";AAGA,wBAGyB;AAGzB,eAAO,MAAM,OAAO,8HAAoB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("./index").CollapseProps<unknown>>;
|
|
2
|
-
export default _default;
|
|
3
|
-
export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./index").CollapseProps<unknown>>;
|
|
4
|
-
//# sourceMappingURL=index.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../packages/collapse/index.stories.tsx"],"names":[],"mappings":";AAOA,wBAI2B;AAkB3B,eAAO,MAAM,OAAO,yIAAoB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const Component: BaseType;
|
|
3
|
-
export default Component;
|
|
4
|
-
type TagProp<Tag extends React.ElementType> = {
|
|
5
|
-
tag?: Tag;
|
|
6
|
-
asChild?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export type ComponentProps<Tag extends React.ElementType> = React.PropsWithChildren<TagProp<Tag>> & Omit<React.ComponentPropsWithRef<Tag>, keyof TagProp<Tag>> & {
|
|
9
|
-
visible?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export type ComponentRef<Tag extends React.ElementType> = React.ComponentPropsWithRef<Tag>['ref'];
|
|
12
|
-
export type BaseType = <Tag extends React.ElementType = 'div'>(props: ComponentProps<Tag>, ref: ComponentRef<Tag>) => React.ReactNode;
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/component/index.tsx"],"names":[],"mappings":";AAEA,QAAA,MAAM,SAAS,EAAE,QAuBhB,CAAC;AACF,eAAe,SAAS,CAAC;AAEzB,KAAK,OAAO,CAAC,GAAG,SAAS,KAAK,CAAC,WAAW,IAAI;IAC1C,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,GAAG,SAAS,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAC7F,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG;IACzD,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AACN,MAAM,MAAM,YAAY,CAAC,GAAG,SAAS,KAAK,CAAC,WAAW,IAAI,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;AAClG,MAAM,MAAM,QAAQ,GAAG,CAAC,GAAG,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EACzD,KAAK,EAAE,cAAc,CAAC,GAAG,CAAC,EAC1B,GAAG,EAAE,YAAY,CAAC,GAAG,CAAC,KACrB,KAAK,CAAC,SAAS,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
3
|
-
tag?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
4
|
-
asChild?: boolean | undefined;
|
|
5
|
-
} & {
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
} & Omit<any, keyof {
|
|
8
|
-
tag?: Tag | undefined;
|
|
9
|
-
asChild?: boolean | undefined;
|
|
10
|
-
}> & {
|
|
11
|
-
visible?: boolean | undefined;
|
|
12
|
-
}>;
|
|
13
|
-
export default _default;
|
|
14
|
-
export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
15
|
-
tag?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
16
|
-
asChild?: boolean | undefined;
|
|
17
|
-
} & {
|
|
18
|
-
children?: React.ReactNode;
|
|
19
|
-
} & Omit<any, keyof {
|
|
20
|
-
tag?: Tag | undefined;
|
|
21
|
-
asChild?: boolean | undefined;
|
|
22
|
-
}> & {
|
|
23
|
-
visible?: boolean | undefined;
|
|
24
|
-
}>;
|
|
25
|
-
//# sourceMappingURL=index.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../packages/component/index.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;AAI1B,wBAI4B;AAK5B,eAAO,MAAM,OAAO;;;;;;;;;;EAAoB,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from '../component';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
declare const Container: React.ForwardRefExoticComponent<Omit<ComponentProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
export default Container;
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/container/index.tsx"],"names":[],"mappings":"AAAA,OAAkB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,QAAA,MAAM,SAAS,2GAEb,CAAC;AACH,eAAe,SAAS,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, Omit<import("../component").ComponentProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
-
export default _default;
|
|
4
|
-
export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, Omit<import("../component").ComponentProps<"div">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
//# sourceMappingURL=index.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../packages/container/index.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;;AAI1B,wBAI4B;AAK5B,eAAO,MAAM,OAAO,gMAAoB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { StoryFn } from '@storybook/react';
|
|
2
|
-
import Dropdown from './index';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, (import("./index").MultiSelectProps | import("./index").SingleSelectProps) & (import("./index").MutableDropdownProps | import("./index").ImmutableDropdownProps) & import("./index").DropdownProps & Omit<import("../component").ComponentProps<"input">, "onChange">>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const SingleSelect: StoryFn<typeof Dropdown>;
|
|
6
|
-
export declare const MultiSelect: StoryFn<typeof Dropdown>;
|
|
7
|
-
//# sourceMappingURL=index.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../packages/dropdown/index.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGjD,OAAO,QAAQ,MAAM,SAAS,CAAC;;AAE/B,wBAG2B;AAE3B,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,OAAO,QAAQ,CAKjD,CAAC;AAQF,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,OAAO,QAAQ,CAgBhD,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("./index").InputProps>;
|
|
2
|
-
export default _default;
|
|
3
|
-
export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./index").InputProps>;
|
|
4
|
-
//# sourceMappingURL=index.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../packages/input/index.stories.tsx"],"names":[],"mappings":";AAKA,wBAIwB;AAKxB,eAAO,MAAM,OAAO,6HAAoB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("./index").ToggleProps>;
|
|
2
|
-
export default _default;
|
|
3
|
-
export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./index").ToggleProps>;
|
|
4
|
-
//# sourceMappingURL=index.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../packages/toggle/index.stories.tsx"],"names":[],"mappings":";AAKA,wBAGyB;AAKzB,eAAO,MAAM,OAAO,8HAAoB,CAAC"}
|