@unizap/uniui 1.0.3 → 1.0.6
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/components/Accordion/Accordion.d.ts +4 -0
- package/dist/components/Accordion/Accordion.types.d.ts +13 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/ActionMenu/ActionMenu.d.ts +2 -0
- package/dist/components/ActionMenu/ActionMenu.types.d.ts +14 -0
- package/dist/components/ActionMenu/index.d.ts +1 -0
- package/dist/components/Alert/Alert.d.ts +4 -0
- package/dist/components/Alert/Alert.types.d.ts +8 -0
- package/dist/components/Alert/index.d.ts +1 -0
- package/dist/components/Avatar/Avatar.d.ts +3 -0
- package/dist/components/Avatar/Avatar.types.d.ts +10 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Badge/Badge.d.ts +4 -0
- package/dist/components/Badge/Badge.types.d.ts +9 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/BottomNavigation/BottomNavigation.d.ts +4 -0
- package/dist/components/BottomNavigation/BottomNavigation.types.d.ts +14 -0
- package/dist/components/BottomNavigation/index.d.ts +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +9 -0
- package/dist/components/Breadcrumbs/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +4 -0
- package/dist/components/Button/Button.types.d.ts +18 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +4 -0
- package/dist/components/Card/Card.types.d.ts +17 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/CardWrapper/CardWrapper.d.ts +8 -0
- package/dist/components/CardWrapper/CardWrapper.types.d.ts +1 -0
- package/dist/components/CardWrapper/index.d.ts +1 -0
- package/dist/components/Carousel/Carousel.d.ts +4 -0
- package/dist/components/Carousel/Carousel.types.d.ts +21 -0
- package/dist/components/Carousel/index.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +4 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +9 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/DashboardStatBoxes/DashboardStatBoxes.d.ts +3 -0
- package/dist/components/DashboardStatBoxes/DashboardStatBoxes.types.d.ts +12 -0
- package/dist/components/DashboardStatBoxes/index.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts +3 -0
- package/dist/components/DatePicker/DatePicker.types.d.ts +16 -0
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/Dialog/Dialog.d.ts +3 -0
- package/dist/components/Dialog/Dialog.types.d.ts +17 -0
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Divider/Divider.d.ts +4 -0
- package/dist/components/Divider/Divider.types.d.ts +6 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/Drawer/Drawer.d.ts +4 -0
- package/dist/components/Drawer/Drawer.types.d.ts +12 -0
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +4 -0
- package/dist/components/Dropdown/Dropdown.types.d.ts +11 -0
- package/dist/components/Dropdown/index.d.ts +1 -0
- package/dist/components/DropzoneUploader/DropzoneUploader.d.ts +4 -0
- package/dist/components/DropzoneUploader/DropzoneUploader.types.d.ts +23 -0
- package/dist/components/DropzoneUploader/index.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +4 -0
- package/dist/components/EmptyState/EmptyState.types.d.ts +18 -0
- package/dist/components/EmptyState/index.d.ts +1 -0
- package/dist/components/IconButton/IconButton.d.ts +4 -0
- package/dist/components/IconButton/IconButton.types.d.ts +12 -0
- package/dist/components/IconButton/index.d.ts +1 -0
- package/dist/components/List/List.d.ts +3 -0
- package/dist/components/List/List.types.d.ts +10 -0
- package/dist/components/List/ListItem.d.ts +3 -0
- package/dist/components/List/index.d.ts +2 -0
- package/dist/components/Menu/Menu.d.ts +8 -0
- package/dist/components/Menu/Menu.types.d.ts +1 -0
- package/dist/components/Menu/index.d.ts +1 -0
- package/dist/components/Pagination/Pagination.d.ts +4 -0
- package/dist/components/Pagination/Pagination.types.d.ts +8 -0
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/PasswordInput/PasswordInput.d.ts +3 -0
- package/dist/components/PasswordInput/index.d.ts +1 -0
- package/dist/components/Pill/Pill.d.ts +4 -0
- package/dist/components/Pill/Pill.type.d.ts +8 -0
- package/dist/components/Pill/index.d.ts +1 -0
- package/dist/components/ProfileImageShowcase/ProfileShowcase.d.ts +10 -0
- package/dist/components/ProfileImageShowcase/ProfileShowcase.type.d.ts +1 -0
- package/dist/components/ProfileImageShowcase/index.d.ts +1 -0
- package/dist/components/Progress/Progress.d.ts +4 -0
- package/dist/components/Progress/Progress.types.d.ts +48 -0
- package/dist/components/Progress/index.d.ts +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +4 -0
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +16 -0
- package/dist/components/RadioGroup/index.d.ts +1 -0
- package/dist/components/SearchBar/SearchBar.d.ts +4 -0
- package/dist/components/SearchBar/SearchBar.types.d.ts +24 -0
- package/dist/components/SearchBar/index.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +4 -0
- package/dist/components/Select/Select.types.d.ts +17 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Sidebar/Sidebar.d.ts +10 -0
- package/dist/components/Sidebar/Sidebar.types.d.ts +16 -0
- package/dist/components/Sidebar/index.d.ts +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +4 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +28 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Slider/Slider.d.ts +4 -0
- package/dist/components/Slider/Slider.types.d.ts +21 -0
- package/dist/components/Slider/index.d.ts +1 -0
- package/dist/components/Snackbar/Snackbar.d.ts +4 -0
- package/dist/components/Snackbar/Snackbar.types.d.ts +41 -0
- package/dist/components/Snackbar/index.d.ts +1 -0
- package/dist/components/Stepper/Stepper.d.ts +12 -0
- package/dist/components/Stepper/Stepper.type.d.ts +1 -0
- package/dist/components/Stepper/index.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +5 -0
- package/dist/components/Table/Table.types.d.ts +15 -0
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts +4 -0
- package/dist/components/Tabs/Tabs.types.d.ts +17 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/TextArea/TextArea.d.ts +4 -0
- package/dist/components/TextArea/TextArea.types.d.ts +7 -0
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/components/TextInput/TextInput.d.ts +3 -0
- package/dist/components/TextInput/TextInput.types.d.ts +15 -0
- package/dist/components/TextInput/index.d.ts +1 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +3 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.types.d.ts +8 -0
- package/dist/components/ToggleSwitch/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +4 -0
- package/dist/components/Tooltip/Tooltip.type.d.ts +5 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Typography/Typography.d.ts +4 -0
- package/dist/components/Typography/Typography.types.d.ts +8 -0
- package/dist/components/Typography/index.d.ts +1 -0
- package/dist/components/index.d.ts +42 -0
- package/dist/components/otpInput/OtpInput.d.ts +4 -0
- package/dist/components/otpInput/OtpInput.type.d.ts +13 -0
- package/dist/components/otpInput/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/uniui.css +2209 -0
- package/dist/uniui.js +9092 -0
- package/dist/uniui.umd.cjs +187 -0
- package/dist/utils/ColorMap.d.ts +156 -0
- package/dist/utils/constants.d.ts +1 -0
- package/package.json +48 -96
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
export type CompColor = 'dark' | 'gray' | 'light' | 'pearl' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose';
|
|
2
|
+
export declare const COLOR_MAP: Record<CompColor, string>;
|
|
3
|
+
export declare const ACCENT_COLOR_MAP: Record<CompColor, string>;
|
|
4
|
+
export declare const BORDER_COLOR_MAP: Record<CompColor, string>;
|
|
5
|
+
export declare const PEER_BORDER_COLOR_MAP: Record<CompColor, string>;
|
|
6
|
+
export declare const TEXT_COLOR_MAP: Record<CompColor, string>;
|
|
7
|
+
export declare const BG_COLOR_MAP: Record<CompColor, string>;
|
|
8
|
+
export declare const RANGE_COLOR_MAP: {
|
|
9
|
+
dark: {
|
|
10
|
+
track: string;
|
|
11
|
+
progress: string;
|
|
12
|
+
thumb: string;
|
|
13
|
+
thumbHover: string;
|
|
14
|
+
thumbActive: string;
|
|
15
|
+
};
|
|
16
|
+
gray: {
|
|
17
|
+
track: string;
|
|
18
|
+
progress: string;
|
|
19
|
+
thumb: string;
|
|
20
|
+
thumbHover: string;
|
|
21
|
+
thumbActive: string;
|
|
22
|
+
};
|
|
23
|
+
light: {
|
|
24
|
+
track: string;
|
|
25
|
+
progress: string;
|
|
26
|
+
thumb: string;
|
|
27
|
+
thumbHover: string;
|
|
28
|
+
thumbActive: string;
|
|
29
|
+
};
|
|
30
|
+
pearl: {
|
|
31
|
+
track: string;
|
|
32
|
+
progress: string;
|
|
33
|
+
thumb: string;
|
|
34
|
+
thumbHover: string;
|
|
35
|
+
thumbActive: string;
|
|
36
|
+
};
|
|
37
|
+
red: {
|
|
38
|
+
track: string;
|
|
39
|
+
progress: string;
|
|
40
|
+
thumb: string;
|
|
41
|
+
thumbHover: string;
|
|
42
|
+
thumbActive: string;
|
|
43
|
+
};
|
|
44
|
+
orange: {
|
|
45
|
+
track: string;
|
|
46
|
+
progress: string;
|
|
47
|
+
thumb: string;
|
|
48
|
+
thumbHover: string;
|
|
49
|
+
thumbActive: string;
|
|
50
|
+
};
|
|
51
|
+
amber: {
|
|
52
|
+
track: string;
|
|
53
|
+
progress: string;
|
|
54
|
+
thumb: string;
|
|
55
|
+
thumbHover: string;
|
|
56
|
+
thumbActive: string;
|
|
57
|
+
};
|
|
58
|
+
yellow: {
|
|
59
|
+
track: string;
|
|
60
|
+
progress: string;
|
|
61
|
+
thumb: string;
|
|
62
|
+
thumbHover: string;
|
|
63
|
+
thumbActive: string;
|
|
64
|
+
};
|
|
65
|
+
lime: {
|
|
66
|
+
track: string;
|
|
67
|
+
progress: string;
|
|
68
|
+
thumb: string;
|
|
69
|
+
thumbHover: string;
|
|
70
|
+
thumbActive: string;
|
|
71
|
+
};
|
|
72
|
+
green: {
|
|
73
|
+
track: string;
|
|
74
|
+
progress: string;
|
|
75
|
+
thumb: string;
|
|
76
|
+
thumbHover: string;
|
|
77
|
+
thumbActive: string;
|
|
78
|
+
};
|
|
79
|
+
emerald: {
|
|
80
|
+
track: string;
|
|
81
|
+
progress: string;
|
|
82
|
+
thumb: string;
|
|
83
|
+
thumbHover: string;
|
|
84
|
+
thumbActive: string;
|
|
85
|
+
};
|
|
86
|
+
teal: {
|
|
87
|
+
track: string;
|
|
88
|
+
progress: string;
|
|
89
|
+
thumb: string;
|
|
90
|
+
thumbHover: string;
|
|
91
|
+
thumbActive: string;
|
|
92
|
+
};
|
|
93
|
+
cyan: {
|
|
94
|
+
track: string;
|
|
95
|
+
progress: string;
|
|
96
|
+
thumb: string;
|
|
97
|
+
thumbHover: string;
|
|
98
|
+
thumbActive: string;
|
|
99
|
+
};
|
|
100
|
+
sky: {
|
|
101
|
+
track: string;
|
|
102
|
+
progress: string;
|
|
103
|
+
thumb: string;
|
|
104
|
+
thumbHover: string;
|
|
105
|
+
thumbActive: string;
|
|
106
|
+
};
|
|
107
|
+
blue: {
|
|
108
|
+
track: string;
|
|
109
|
+
progress: string;
|
|
110
|
+
thumb: string;
|
|
111
|
+
thumbHover: string;
|
|
112
|
+
thumbActive: string;
|
|
113
|
+
};
|
|
114
|
+
indigo: {
|
|
115
|
+
track: string;
|
|
116
|
+
progress: string;
|
|
117
|
+
thumb: string;
|
|
118
|
+
thumbHover: string;
|
|
119
|
+
thumbActive: string;
|
|
120
|
+
};
|
|
121
|
+
violet: {
|
|
122
|
+
track: string;
|
|
123
|
+
progress: string;
|
|
124
|
+
thumb: string;
|
|
125
|
+
thumbHover: string;
|
|
126
|
+
thumbActive: string;
|
|
127
|
+
};
|
|
128
|
+
purple: {
|
|
129
|
+
track: string;
|
|
130
|
+
progress: string;
|
|
131
|
+
thumb: string;
|
|
132
|
+
thumbHover: string;
|
|
133
|
+
thumbActive: string;
|
|
134
|
+
};
|
|
135
|
+
fuchsia: {
|
|
136
|
+
track: string;
|
|
137
|
+
progress: string;
|
|
138
|
+
thumb: string;
|
|
139
|
+
thumbHover: string;
|
|
140
|
+
thumbActive: string;
|
|
141
|
+
};
|
|
142
|
+
pink: {
|
|
143
|
+
track: string;
|
|
144
|
+
progress: string;
|
|
145
|
+
thumb: string;
|
|
146
|
+
thumbHover: string;
|
|
147
|
+
thumbActive: string;
|
|
148
|
+
};
|
|
149
|
+
rose: {
|
|
150
|
+
track: string;
|
|
151
|
+
progress: string;
|
|
152
|
+
thumb: string;
|
|
153
|
+
thumbHover: string;
|
|
154
|
+
thumbActive: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const dummyImageUrl: string;
|
package/package.json
CHANGED
|
@@ -1,99 +1,51 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
"name": "@unizap/uniui",
|
|
3
|
+
"version": "1.0.6",
|
|
4
|
+
"description": "A UI component library for React",
|
|
5
|
+
"type": "module",
|
|
6
|
+
|
|
7
|
+
"files": ["dist", "README.md"],
|
|
8
|
+
"sideEffects": ["**/*.css"],
|
|
9
|
+
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"main": "dist/uniui.umd.cjs",
|
|
12
|
+
"module": "dist/uniui.js",
|
|
13
|
+
"style": "dist/uniui.css",
|
|
14
|
+
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/uniui.js",
|
|
19
|
+
"require": "./dist/uniui.umd.cjs"
|
|
20
20
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"@types/react-dom": "^19.0.4",
|
|
52
|
-
"@types/statuses": "^2.0.6",
|
|
53
|
-
"@vitejs/plugin-react": "^4.3.4",
|
|
54
|
-
"@vitest/browser": "^3.0.9",
|
|
55
|
-
"@vitest/coverage-v8": "^3.0.9",
|
|
56
|
-
"daisyui": "^5.0.11",
|
|
57
|
-
"eslint": "^9.21.0",
|
|
58
|
-
"eslint-plugin-react-hooks": "^5.1.0",
|
|
59
|
-
"eslint-plugin-react-refresh": "^0.4.19",
|
|
60
|
-
"eslint-plugin-storybook": "^0.12.0",
|
|
61
|
-
"globals": "^15.15.0",
|
|
62
|
-
"husky": "^9.1.7",
|
|
63
|
-
"lint-staged": "^15.5.0",
|
|
64
|
-
"playwright": "^1.51.1",
|
|
65
|
-
"prettier": "^3.5.3",
|
|
66
|
-
"react-router-dom": "^7.5.0",
|
|
67
|
-
"storybook": "8.6.11",
|
|
68
|
-
"typescript": "4.9.5",
|
|
69
|
-
"typescript-eslint": "^8.24.1",
|
|
70
|
-
"vite": "^6.2.0",
|
|
71
|
-
"vite-plugin-dts": "^4.5.3",
|
|
72
|
-
"vitest": "^3.0.9"
|
|
73
|
-
},
|
|
74
|
-
"peerDependencies": {
|
|
75
|
-
"react": ">=16.8.0",
|
|
76
|
-
"react-dom": ">=16.8.0"
|
|
77
|
-
},
|
|
78
|
-
"eslintConfig": {
|
|
79
|
-
"extends": [
|
|
80
|
-
"plugin:storybook/recommended"
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
"dependencies": {
|
|
84
|
-
"@tanstack/react-table": "^8.21.2",
|
|
85
|
-
"@unizap/unicss": "^1.1.27",
|
|
86
|
-
"react-dropzone": "^14.3.8"
|
|
87
|
-
},
|
|
88
|
-
"overrides": {
|
|
89
|
-
"@rollup/plugin-babel": {
|
|
90
|
-
"rollup": "^4.0.0"
|
|
91
|
-
},
|
|
92
|
-
"@rollup/plugin-replace": {
|
|
93
|
-
"rollup": "^4.0.0"
|
|
94
|
-
},
|
|
95
|
-
"react-scripts": {
|
|
96
|
-
"typescript": "^4.0.0"
|
|
97
|
-
}
|
|
98
|
-
}
|
|
21
|
+
"./uniui.css": "./dist/uniui.css"
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
"scripts": {
|
|
25
|
+
"dev": "vite",
|
|
26
|
+
"build:css": "node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && unicss -o dist/uniui.css && type src\\index.css src\\style.css >> dist\\uniui.css",
|
|
27
|
+
"build": "tsc -b && vite build && pnpm run build:css",
|
|
28
|
+
"lint": "eslint .",
|
|
29
|
+
"preview": "vite preview",
|
|
30
|
+
"prepublishOnly": "pnpm run build",
|
|
31
|
+
"prepare": "pnpm run build"
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"react": ">=16.8.0",
|
|
36
|
+
"react-dom": ">=16.8.0"
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@tanstack/react-table": "^8.21.2",
|
|
41
|
+
"@unizap/unicss": "^1.1.27",
|
|
42
|
+
"react-dropzone": "^14.3.8"
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"typescript": "4.9.5",
|
|
47
|
+
"vite": "^6.2.0",
|
|
48
|
+
"vite-plugin-dts": "^4.5.3",
|
|
49
|
+
"@vitejs/plugin-react": "^4.3.4"
|
|
50
|
+
}
|
|
99
51
|
}
|