@unizap/uniui 1.0.6 → 1.0.7
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 +3 -2
- package/dist/components/Accordion/Accordion.types.d.ts +13 -12
- package/dist/components/Accordion/index.d.ts +1 -1
- package/dist/components/ActionMenu/ActionMenu.d.ts +2 -1
- package/dist/components/ActionMenu/ActionMenu.types.d.ts +14 -13
- package/dist/components/ActionMenu/index.d.ts +1 -1
- package/dist/components/Alert/Alert.d.ts +3 -2
- package/dist/components/Alert/Alert.types.d.ts +8 -8
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/{SearchBar/SearchBar.d.ts → Autocomplete/Autocomplete.d.ts} +4 -3
- package/dist/components/{SearchBar/SearchBar.types.d.ts → Autocomplete/Autocomplete.types.d.ts} +24 -24
- package/dist/components/Autocomplete/index.d.ts +1 -0
- package/dist/components/Avatar/Avatar.d.ts +3 -2
- package/dist/components/Avatar/Avatar.types.d.ts +10 -9
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +3 -2
- package/dist/components/Badge/Badge.types.d.ts +9 -8
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/BottomNavigation/BottomNavigation.d.ts +3 -2
- package/dist/components/BottomNavigation/BottomNavigation.types.d.ts +14 -14
- package/dist/components/BottomNavigation/index.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +9 -9
- package/dist/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +3 -2
- package/dist/components/Button/Button.types.d.ts +17 -16
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Card/Card.d.ts +3 -2
- package/dist/components/Card/Card.types.d.ts +17 -16
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/CardWrapper/CardWrapper.d.ts +8 -7
- package/dist/components/CardWrapper/CardWrapper.types.d.ts +1 -1
- package/dist/components/CardWrapper/index.d.ts +1 -1
- package/dist/components/Carousel/Carousel.d.ts +3 -2
- package/dist/components/Carousel/Carousel.types.d.ts +21 -21
- package/dist/components/Carousel/index.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +3 -2
- package/dist/components/Checkbox/Checkbox.types.d.ts +9 -9
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/DashboardStatBoxes/DashboardStatBoxes.d.ts +3 -2
- package/dist/components/DashboardStatBoxes/DashboardStatBoxes.types.d.ts +12 -12
- package/dist/components/DashboardStatBoxes/index.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +3 -2
- package/dist/components/DatePicker/DatePicker.types.d.ts +16 -16
- package/dist/components/DatePicker/index.d.ts +1 -1
- package/dist/components/Dialog/Dialog.d.ts +3 -2
- package/dist/components/Dialog/Dialog.types.d.ts +17 -16
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/Divider/Divider.d.ts +3 -2
- package/dist/components/Divider/Divider.types.d.ts +6 -6
- package/dist/components/Divider/index.d.ts +1 -1
- package/dist/components/Drawer/Drawer.d.ts +3 -2
- package/dist/components/Drawer/Drawer.types.d.ts +12 -11
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +3 -2
- package/dist/components/Dropdown/Dropdown.types.d.ts +11 -11
- package/dist/components/Dropdown/index.d.ts +1 -1
- package/dist/components/DropzoneUploader/DropzoneUploader.d.ts +3 -2
- package/dist/components/DropzoneUploader/DropzoneUploader.types.d.ts +23 -23
- package/dist/components/DropzoneUploader/index.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +3 -2
- package/dist/components/EmptyState/EmptyState.types.d.ts +18 -17
- package/dist/components/EmptyState/index.d.ts +1 -1
- package/dist/components/IconButton/IconButton.d.ts +3 -2
- package/dist/components/IconButton/IconButton.types.d.ts +11 -10
- package/dist/components/IconButton/index.d.ts +1 -1
- package/dist/components/List/List.d.ts +3 -2
- package/dist/components/List/List.types.d.ts +10 -9
- package/dist/components/List/ListItem.d.ts +3 -2
- package/dist/components/List/index.d.ts +2 -2
- package/dist/components/Menu/Menu.d.ts +8 -8
- package/dist/components/Menu/Menu.types.d.ts +1 -1
- package/dist/components/Menu/index.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts +3 -2
- package/dist/components/Pagination/Pagination.types.d.ts +8 -8
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +3 -2
- package/dist/components/PasswordInput/index.d.ts +1 -1
- package/dist/components/Pill/Pill.d.ts +3 -2
- package/dist/components/Pill/Pill.type.d.ts +8 -7
- package/dist/components/Pill/index.d.ts +1 -1
- package/dist/components/ProfileImageShowcase/ProfileShowcase.d.ts +10 -9
- package/dist/components/ProfileImageShowcase/ProfileShowcase.type.d.ts +1 -1
- package/dist/components/ProfileImageShowcase/index.d.ts +1 -1
- package/dist/components/Progress/Progress.d.ts +3 -2
- package/dist/components/Progress/Progress.types.d.ts +48 -47
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +3 -2
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +16 -15
- package/dist/components/RadioGroup/index.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +3 -2
- package/dist/components/Select/Select.types.d.ts +17 -17
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.d.ts +10 -10
- package/dist/components/Sidebar/Sidebar.types.d.ts +16 -15
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +3 -2
- package/dist/components/Skeleton/Skeleton.types.d.ts +28 -28
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Slider/Slider.d.ts +3 -2
- package/dist/components/Slider/Slider.types.d.ts +21 -20
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Snackbar/Snackbar.d.ts +3 -2
- package/dist/components/Snackbar/Snackbar.types.d.ts +41 -40
- package/dist/components/Snackbar/index.d.ts +1 -1
- package/dist/components/Stepper/Stepper.d.ts +12 -11
- package/dist/components/Stepper/Stepper.type.d.ts +1 -1
- package/dist/components/Stepper/index.d.ts +1 -1
- package/dist/components/Table/Table.d.ts +5 -4
- package/dist/components/Table/Table.types.d.ts +15 -14
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +3 -2
- package/dist/components/Tabs/Tabs.types.d.ts +17 -16
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/TextArea/TextArea.d.ts +3 -2
- package/dist/components/TextArea/TextArea.types.d.ts +7 -7
- package/dist/components/TextArea/index.d.ts +1 -1
- package/dist/components/TextInput/TextInput.d.ts +3 -2
- package/dist/components/TextInput/TextInput.types.d.ts +15 -15
- package/dist/components/TextInput/index.d.ts +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +3 -2
- package/dist/components/ToggleSwitch/ToggleSwitch.types.d.ts +8 -7
- package/dist/components/ToggleSwitch/index.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +3 -2
- package/dist/components/Tooltip/Tooltip.type.d.ts +5 -5
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Typography/Typography.d.ts +3 -2
- package/dist/components/Typography/Typography.types.d.ts +8 -7
- package/dist/components/Typography/index.d.ts +1 -1
- package/dist/components/index.d.ts +42 -42
- package/dist/components/otpInput/OtpInput.d.ts +3 -2
- package/dist/components/otpInput/OtpInput.type.d.ts +13 -12
- package/dist/components/otpInput/index.d.ts +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/uniui.css +1 -2209
- package/dist/uniui.js +2025 -2092
- package/dist/uniui.umd.cjs +74 -71
- package/dist/utils/ColorMap.d.ts +29 -156
- package/dist/utils/constants.d.ts +1 -1
- package/package.json +80 -48
- package/dist/components/SearchBar/index.d.ts +0 -1
package/dist/utils/ColorMap.d.ts
CHANGED
|
@@ -1,156 +1,29 @@
|
|
|
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,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
};
|
|
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' | string;
|
|
2
|
+
export declare const COLOR_MAP: Record<CompColor, {
|
|
3
|
+
filled: string;
|
|
4
|
+
outline: string;
|
|
5
|
+
transparent: string;
|
|
6
|
+
accent: string;
|
|
7
|
+
peer: string;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const extendColorMap: (newColors: Record<string, {
|
|
10
|
+
filled: string;
|
|
11
|
+
outline: string;
|
|
12
|
+
text: string;
|
|
13
|
+
accent: string;
|
|
14
|
+
peer: string;
|
|
15
|
+
}>) => void;
|
|
16
|
+
export declare const RANGE_COLOR_MAP: Record<CompColor, {
|
|
17
|
+
track: string;
|
|
18
|
+
progress: string;
|
|
19
|
+
thumb: string;
|
|
20
|
+
thumbHover: string;
|
|
21
|
+
thumbActive: string;
|
|
22
|
+
}>;
|
|
23
|
+
export declare const extendRangeColorMap: (newColors: Record<string, {
|
|
24
|
+
track: string;
|
|
25
|
+
progress: string;
|
|
26
|
+
thumb: string;
|
|
27
|
+
thumbHover: string;
|
|
28
|
+
thumbActive: string;
|
|
29
|
+
}>) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const dummyImageUrl: string;
|
|
1
|
+
export declare const dummyImageUrl: string;
|
package/package.json
CHANGED
|
@@ -1,51 +1,83 @@
|
|
|
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.7",
|
|
4
|
+
"description": "A UI component library for React",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"README.md"
|
|
9
|
+
],
|
|
10
|
+
"sideEffects": [
|
|
11
|
+
"**/*.css"
|
|
12
|
+
],
|
|
13
|
+
"types": "dist/index.d.ts",
|
|
14
|
+
"main": "dist/uniui.umd.cjs",
|
|
15
|
+
"module": "dist/uniui.js",
|
|
16
|
+
"style": "dist/uniui.css",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/uniui.js",
|
|
21
|
+
"require": "./dist/uniui.umd.cjs"
|
|
22
|
+
},
|
|
23
|
+
"./uniui.css": "./dist/uniui.css",
|
|
24
|
+
"./utils/ColorMap": {
|
|
25
|
+
"types": "./dist/utils/ColorMap.d.ts",
|
|
26
|
+
"import": "./dist/utils/ColorMap.js",
|
|
27
|
+
"require": "./dist/utils/ColorMap.umd.cjs"
|
|
28
|
+
}
|
|
20
29
|
},
|
|
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
|
-
|
|
30
|
+
"scripts": {
|
|
31
|
+
"dev": "vite",
|
|
32
|
+
"build": "tsc -b && vite build",
|
|
33
|
+
"lint": "eslint .",
|
|
34
|
+
"preview": "vite preview",
|
|
35
|
+
"prepublishOnly": "pnpm run build",
|
|
36
|
+
"prepare": "pnpm run build",
|
|
37
|
+
"storybook": "storybook dev -p 6006"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"react": ">=16.8.0",
|
|
41
|
+
"react-dom": ">=16.8.0"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@tanstack/react-table": "^8.21.2",
|
|
45
|
+
"@unizap/unicss": "^1.1.28",
|
|
46
|
+
"react-dropzone": "^14.3.8"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@types/node": "^24.2.1",
|
|
50
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
51
|
+
"storybook": "^8.6.11",
|
|
52
|
+
"typescript": "4.9.5",
|
|
53
|
+
"vite": "^6.2.0",
|
|
54
|
+
"vite-plugin-dts": "^4.5.3",
|
|
55
|
+
"@storybook/react-vite": "^8.6.11",
|
|
56
|
+
"@babel/runtime": "^7.28.2",
|
|
57
|
+
"@chromatic-com/storybook": "3.2.6",
|
|
58
|
+
"@eslint/js": "9.23.0",
|
|
59
|
+
"@storybook/addon-essentials": "8.6.11",
|
|
60
|
+
"@storybook/addon-onboarding": "8.6.11",
|
|
61
|
+
"@storybook/blocks": "8.6.11",
|
|
62
|
+
"@storybook/experimental-addon-test": "8.6.11",
|
|
63
|
+
"@storybook/react": "8.6.11",
|
|
64
|
+
"@storybook/test": "8.6.11",
|
|
65
|
+
"@types/cookie": "1.0.0",
|
|
66
|
+
"@types/react": "19.0.12",
|
|
67
|
+
"@types/react-dom": "19.0.4",
|
|
68
|
+
"@types/statuses": "2.0.6",
|
|
69
|
+
"@vitest/browser": "3.0.9",
|
|
70
|
+
"@vitest/coverage-v8": "3.0.9",
|
|
71
|
+
"daisyui": "5.0.50",
|
|
72
|
+
"eslint": "9.23.0",
|
|
73
|
+
"eslint-plugin-react-hooks": "5.2.0",
|
|
74
|
+
"eslint-plugin-react-refresh": "0.4.19",
|
|
75
|
+
"eslint-plugin-storybook": "0.12.0",
|
|
76
|
+
"globals": "15.15.0",
|
|
77
|
+
"husky": "9.1.7",
|
|
78
|
+
"lint-staged": "15.5.0",
|
|
79
|
+
"playwright": "1.51.1",
|
|
80
|
+
"prettier": "3.5.3",
|
|
81
|
+
"react-router-dom": "7.7.1"
|
|
82
|
+
}
|
|
51
83
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './SearchBar';
|