@asyra/design-system 0.2.5 → 0.5.1
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/LICENSE +21 -0
- package/README.md +50 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +39 -0
- package/dist/components/ColorPicker/ColorPickerInputGroup.d.ts +13 -0
- package/dist/components/ColorPicker/ColorPickerSaturation.d.ts +11 -0
- package/dist/components/ColorPicker/ColorPickerSliders.d.ts +13 -0
- package/dist/components/ColorPicker/color-utils.d.ts +39 -0
- package/dist/components/ColorPicker/index.d.ts +3 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +27 -0
- package/dist/components/ContextMenu/index.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +2 -2
- package/dist/components/Icon/index.d.ts +2 -1
- package/dist/components/Icon/svgs-components.d.ts +10 -7
- package/dist/components/IconButton/IconButton.d.ts +9 -0
- package/dist/components/IconButton/index.d.ts +1 -0
- package/dist/components/Input/Input.d.ts +9 -1
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/PropertyControl/PropertyControl.d.ts +21 -0
- package/dist/components/PropertyControl/index.d.ts +1 -0
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/design-system.css +1 -1
- package/dist/index.d.ts +9 -4
- package/dist/index.es.js +5106 -506
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +36 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +50 -22
- package/dist/components/Button/Button.stories.d.ts +0 -9
- package/dist/components/Input/Input.stories.d.ts +0 -6
- package/dist/components/Text/Text.stories.d.ts +0 -7
- package/dist/index.css +0 -819
package/package.json
CHANGED
|
@@ -1,19 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asyra/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
|
+
"description": "Official React component library for Asyra applications",
|
|
5
|
+
"author": "Asa Tsai",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/karote00/asyra.git",
|
|
10
|
+
"directory": "packages/design-system"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://asyra-framework.vercel.app",
|
|
13
|
+
"type": "module",
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": "24.x"
|
|
16
|
+
},
|
|
4
17
|
"packageManager": "yarn@4.3.1",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"module": "./dist/index.
|
|
18
|
+
"main": "./dist/index.es.js",
|
|
19
|
+
"module": "./dist/index.es.js",
|
|
7
20
|
"types": "./dist/index.d.ts",
|
|
8
21
|
"exports": {
|
|
9
22
|
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
10
24
|
"import": "./dist/index.es.js",
|
|
11
|
-
"
|
|
25
|
+
"default": "./dist/index.es.js"
|
|
12
26
|
},
|
|
13
27
|
"./index.css": "./dist/design-system.css"
|
|
14
28
|
},
|
|
15
29
|
"files": [
|
|
16
|
-
"dist"
|
|
30
|
+
"dist",
|
|
31
|
+
"!dist/**/__tests__",
|
|
32
|
+
"!dist/**/*.test.*",
|
|
33
|
+
"!dist/**/*.spec.*",
|
|
34
|
+
"!dist/**/*.stories.*"
|
|
17
35
|
],
|
|
18
36
|
"scripts": {
|
|
19
37
|
"clean": "rm -rf dist",
|
|
@@ -21,10 +39,12 @@
|
|
|
21
39
|
"build-storybook": "storybook build",
|
|
22
40
|
"build:design-system": "vite build && tsc",
|
|
23
41
|
"rebuild:design-system": "yarn prebuild:design-system && yarn build:design-system",
|
|
24
|
-
"dev": "tsc --watch --preserveWatchOutput",
|
|
42
|
+
"dev": "concurrently \"tsc --watch --preserveWatchOutput\" \"vite build --watch\"",
|
|
25
43
|
"watch:design-system": "vite build --watch",
|
|
26
44
|
"prebuild:design-system": "tailwindcss -i ./src/index.css -o ./dist/index.css",
|
|
27
|
-
"preview": "vite preview"
|
|
45
|
+
"preview": "vite preview",
|
|
46
|
+
"test:local": "vitest run --environment jsdom --no-file-parallelism",
|
|
47
|
+
"test:ci": "vitest run --environment jsdom --no-file-parallelism --coverage --reporter=default --reporter=junit"
|
|
28
48
|
},
|
|
29
49
|
"peerDependencies": {
|
|
30
50
|
"react": "^19.0.0",
|
|
@@ -32,29 +52,37 @@
|
|
|
32
52
|
},
|
|
33
53
|
"devDependencies": {
|
|
34
54
|
"@chromatic-com/storybook": "^3.2.3",
|
|
35
|
-
"@storybook/addon-essentials": "
|
|
36
|
-
"@storybook/addon-interactions": "
|
|
37
|
-
"@storybook/addon-onboarding": "
|
|
38
|
-
"@storybook/blocks": "
|
|
39
|
-
"@storybook/react": "8.
|
|
40
|
-
"@storybook/react-vite": "
|
|
41
|
-
"@storybook/test": "8.
|
|
42
|
-
"@storybook/types": "
|
|
55
|
+
"@storybook/addon-essentials": "8.6.18",
|
|
56
|
+
"@storybook/addon-interactions": "8.6.18",
|
|
57
|
+
"@storybook/addon-onboarding": "8.6.18",
|
|
58
|
+
"@storybook/blocks": "8.6.18",
|
|
59
|
+
"@storybook/react": "8.6.18",
|
|
60
|
+
"@storybook/react-vite": "8.6.18",
|
|
61
|
+
"@storybook/test": "8.6.18",
|
|
62
|
+
"@storybook/types": "8.6.18",
|
|
63
|
+
"@testing-library/dom": "^10.4.1",
|
|
64
|
+
"@testing-library/react": "^16.3.3",
|
|
43
65
|
"@types/react": "^19.0.0",
|
|
44
66
|
"@types/react-dom": "^19.0.0",
|
|
45
|
-
"@vitejs/plugin-react": "^4.
|
|
67
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
68
|
+
"@vitest/coverage-v8": "^3.2.6",
|
|
46
69
|
"autoprefixer": "^10.4.20",
|
|
47
|
-
"
|
|
70
|
+
"concurrently": "^10.0.5",
|
|
71
|
+
"eslint": "^9.17.0",
|
|
72
|
+
"jsdom": "^27.4.0",
|
|
73
|
+
"postcss": "^8.5.26",
|
|
48
74
|
"postcss-cli": "^11.0.0",
|
|
49
|
-
"
|
|
75
|
+
"react": "^19.0.0",
|
|
76
|
+
"react-dom": "^19.0.0",
|
|
77
|
+
"storybook": "8.6.18",
|
|
50
78
|
"tailwindcss": "^3.4.17",
|
|
51
79
|
"typescript": "^5.7.2",
|
|
52
|
-
"vite": "^6.
|
|
80
|
+
"vite": "^6.4.3",
|
|
53
81
|
"vite-plugin-dts": "^4.5.3",
|
|
54
|
-
"vite-plugin-
|
|
55
|
-
"
|
|
82
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
83
|
+
"vitest": "^3.2.6"
|
|
56
84
|
},
|
|
57
85
|
"dependencies": {
|
|
58
|
-
"@asyra/utils": "
|
|
86
|
+
"@asyra/utils": "workspace:*"
|
|
59
87
|
}
|
|
60
88
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { default as Button } from './Button';
|
|
3
|
-
declare const meta: Meta<typeof Button>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const Primary: Story;
|
|
7
|
-
export declare const Secondary: Story;
|
|
8
|
-
export declare const Large: Story;
|
|
9
|
-
export declare const Small: Story;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { default as Text } from './Text';
|
|
3
|
-
declare const meta: Meta<typeof Text>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const WithColor: Story;
|