@zscloud/design 0.2.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/LICENSE +21 -0
- package/dist/_icon/app-icon.d.ts +8 -0
- package/dist/_icon/app-icons-mapping.d.ts +230 -0
- package/dist/_icon/icon.d.ts +12 -0
- package/dist/_icon/icons-mapping.d.ts +3866 -0
- package/dist/_icon/index.d.ts +3 -0
- package/dist/_icon/type.d.ts +14 -0
- package/dist/_utils.d.ts +17 -0
- package/dist/components/biz/app-base/index.d.ts +18 -0
- package/dist/components/biz/config/index.d.ts +15 -0
- package/dist/components/biz/constant/index.d.ts +8 -0
- package/dist/components/biz/copy/index.d.ts +6 -0
- package/dist/components/biz/date-value.d.ts +5 -0
- package/dist/components/biz/dropdown-action/index.d.ts +16 -0
- package/dist/components/biz/field/field-group.d.ts +5 -0
- package/dist/components/biz/field/field-operations.d.ts +9 -0
- package/dist/components/biz/field/index.d.ts +33 -0
- package/dist/components/biz/file-upload/index.d.ts +1 -0
- package/dist/components/biz/file-upload/types.d.ts +6 -0
- package/dist/components/biz/file-upload/utils/calc-file-hash.d.ts +36 -0
- package/dist/components/biz/file-upload/utils/request.d.ts +24 -0
- package/dist/components/biz/file-upload/worker/hash.worker.d.ts +0 -0
- package/dist/components/biz/file-upload/worker/simple-hash.work.d.ts +0 -0
- package/dist/components/biz/header/header-breadcrumb.d.ts +12 -0
- package/dist/components/biz/header/header-detail.d.ts +11 -0
- package/dist/components/biz/header/header-page.d.ts +8 -0
- package/dist/components/biz/header/index.d.ts +3 -0
- package/dist/components/biz/helper-doc/index.d.ts +8 -0
- package/dist/components/biz/hooks/use-admin-uuid.d.ts +1 -0
- package/dist/components/biz/info/index.d.ts +55 -0
- package/dist/components/biz/info-popover/index.d.ts +46 -0
- package/dist/components/biz/locale-container/index.d.ts +3 -0
- package/dist/components/biz/locale-container/type.d.ts +8 -0
- package/dist/components/biz/no-data/index.d.ts +12 -0
- package/dist/components/biz/panic-fallback/index.d.ts +1 -0
- package/dist/components/biz/smart-tip/index.d.ts +90 -0
- package/dist/components/biz/state/index.d.ts +25 -0
- package/dist/components/primitive/alert-dialog.d.ts +31 -0
- package/dist/components/primitive/alert.d.ts +16 -0
- package/dist/components/primitive/auto-complete.d.ts +20 -0
- package/dist/components/primitive/badge.d.ts +80 -0
- package/dist/components/primitive/breadcrumb.d.ts +26 -0
- package/dist/components/primitive/button.d.ts +15 -0
- package/dist/components/primitive/calendar.d.ts +8 -0
- package/dist/components/primitive/card.d.ts +27 -0
- package/dist/components/primitive/cascader.d.ts +117 -0
- package/dist/components/primitive/chart.d.ts +62 -0
- package/dist/components/primitive/checkbox-group.d.ts +14 -0
- package/dist/components/primitive/checkbox.d.ts +7 -0
- package/dist/components/primitive/code-editor/index.d.ts +67 -0
- package/dist/components/primitive/collapse.d.ts +17 -0
- package/dist/components/primitive/context-menu.d.ts +48 -0
- package/dist/components/primitive/date-picker.d.ts +44 -0
- package/dist/components/primitive/dialog.d.ts +66 -0
- package/dist/components/primitive/divider.d.ts +14 -0
- package/dist/components/primitive/drawer.d.ts +47 -0
- package/dist/components/primitive/dropdown-menu.d.ts +55 -0
- package/dist/components/primitive/file-upload/file-upload-single.d.ts +11 -0
- package/dist/components/primitive/file-upload/index.d.ts +1 -0
- package/dist/components/primitive/form.d.ts +32 -0
- package/dist/components/primitive/image-reader/index.d.ts +7 -0
- package/dist/components/primitive/input-number.d.ts +17 -0
- package/dist/components/primitive/input-password.d.ts +19 -0
- package/dist/components/primitive/input.d.ts +5 -0
- package/dist/components/primitive/json-viewer.d.ts +22 -0
- package/dist/components/primitive/label.d.ts +5 -0
- package/dist/components/primitive/link.d.ts +11 -0
- package/dist/components/primitive/loader.d.ts +3 -0
- package/dist/components/primitive/markdown/index.d.ts +30 -0
- package/dist/components/primitive/multi-select.d.ts +76 -0
- package/dist/components/primitive/pagination/index.d.ts +8 -0
- package/dist/components/primitive/pagination/pagination.d.ts +31 -0
- package/dist/components/primitive/popover-confirm.d.ts +32 -0
- package/dist/components/primitive/popover.d.ts +12 -0
- package/dist/components/primitive/progress.d.ts +32 -0
- package/dist/components/primitive/radio-group.d.ts +49 -0
- package/dist/components/primitive/range-picker.d.ts +18 -0
- package/dist/components/primitive/resizable.d.ts +25 -0
- package/dist/components/primitive/search-input.d.ts +8 -0
- package/dist/components/primitive/select.d.ts +74 -0
- package/dist/components/primitive/selection-cancellation.d.ts +9 -0
- package/dist/components/primitive/show.d.ts +8 -0
- package/dist/components/primitive/slider.d.ts +4 -0
- package/dist/components/primitive/spin.d.ts +52 -0
- package/dist/components/primitive/status-badge.d.ts +19 -0
- package/dist/components/primitive/steps.d.ts +75 -0
- package/dist/components/primitive/switch.d.ts +4 -0
- package/dist/components/primitive/tabs/hooks/use-persist-tab-store.d.ts +4 -0
- package/dist/components/primitive/tabs/interface/tab-memo.d.ts +5 -0
- package/dist/components/primitive/tabs/store/page-state-store.d.ts +17 -0
- package/dist/components/primitive/tabs/tabs.d.ts +40 -0
- package/dist/components/primitive/tabs/use-persist.d.ts +4 -0
- package/dist/components/primitive/tabs/use-store.d.ts +25 -0
- package/dist/components/primitive/tag-list.d.ts +22 -0
- package/dist/components/primitive/tag.d.ts +17 -0
- package/dist/components/primitive/text.d.ts +27 -0
- package/dist/components/primitive/textarea.d.ts +8 -0
- package/dist/components/primitive/time-picker.d.ts +41 -0
- package/dist/components/primitive/toast/toast.d.ts +17 -0
- package/dist/components/primitive/toast/toaster.d.ts +1 -0
- package/dist/components/primitive/toast/use-toast.d.ts +45 -0
- package/dist/components/primitive/tooltip/index.d.ts +38 -0
- package/dist/components/primitive/tooltip/use-placement.d.ts +4 -0
- package/dist/components/primitive/tree/index.d.ts +5 -0
- package/dist/components/primitive/tree/tree-node.d.ts +17 -0
- package/dist/components/primitive/tree/tree-select.d.ts +21 -0
- package/dist/components/primitive/tree/tree.d.ts +24 -0
- package/dist/components/primitive/tree/types.d.ts +123 -0
- package/dist/i18n/locales/en-US.json.d.ts +76 -0
- package/dist/i18n/locales/zh-CN.json.d.ts +76 -0
- package/dist/index.d.ts +113 -0
- package/dist/style.css +2 -0
- package/dist/utils/overlay-context.d.ts +34 -0
- package/dist/utils/use-container.d.ts +30 -0
- package/dist/utils/use-id.d.ts +1 -0
- package/dist/utils/use-overlay.d.ts +34 -0
- package/dist/zscloud-design.es.js +33683 -0
- package/package.json +116 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-present ZStack
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AppIcons } from './app-icons-mapping.ts';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export type AppIconName = keyof typeof AppIcons;
|
|
4
|
+
export { AppIcons };
|
|
5
|
+
interface AppIconProps extends React.SVGProps<SVGSVGElement> {
|
|
6
|
+
type: AppIconName;
|
|
7
|
+
}
|
|
8
|
+
export declare const AppIcon: React.FC<AppIconProps>;
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
export declare const AppIcons: {
|
|
2
|
+
backup: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
desc?: string;
|
|
6
|
+
descId?: string;
|
|
7
|
+
}>;
|
|
8
|
+
"default-app": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
9
|
+
title?: string;
|
|
10
|
+
titleId?: string;
|
|
11
|
+
desc?: string;
|
|
12
|
+
descId?: string;
|
|
13
|
+
}>;
|
|
14
|
+
"cloud-formation": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
15
|
+
title?: string;
|
|
16
|
+
titleId?: string;
|
|
17
|
+
desc?: string;
|
|
18
|
+
descId?: string;
|
|
19
|
+
}>;
|
|
20
|
+
"zaku-container-service": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
21
|
+
title?: string;
|
|
22
|
+
titleId?: string;
|
|
23
|
+
desc?: string;
|
|
24
|
+
descId?: string;
|
|
25
|
+
}>;
|
|
26
|
+
"tag-management": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
27
|
+
title?: string;
|
|
28
|
+
titleId?: string;
|
|
29
|
+
desc?: string;
|
|
30
|
+
descId?: string;
|
|
31
|
+
}>;
|
|
32
|
+
"enterprise-management": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
33
|
+
title?: string;
|
|
34
|
+
titleId?: string;
|
|
35
|
+
desc?: string;
|
|
36
|
+
descId?: string;
|
|
37
|
+
}>;
|
|
38
|
+
wizard: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
39
|
+
title?: string;
|
|
40
|
+
titleId?: string;
|
|
41
|
+
desc?: string;
|
|
42
|
+
descId?: string;
|
|
43
|
+
}>;
|
|
44
|
+
"resource-pool": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
45
|
+
title?: string;
|
|
46
|
+
titleId?: string;
|
|
47
|
+
desc?: string;
|
|
48
|
+
descId?: string;
|
|
49
|
+
}>;
|
|
50
|
+
"network-resource": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
51
|
+
title?: string;
|
|
52
|
+
titleId?: string;
|
|
53
|
+
desc?: string;
|
|
54
|
+
descId?: string;
|
|
55
|
+
}>;
|
|
56
|
+
settings: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
57
|
+
title?: string;
|
|
58
|
+
titleId?: string;
|
|
59
|
+
desc?: string;
|
|
60
|
+
descId?: string;
|
|
61
|
+
}>;
|
|
62
|
+
"elastic-baremetal": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
63
|
+
title?: string;
|
|
64
|
+
titleId?: string;
|
|
65
|
+
desc?: string;
|
|
66
|
+
descId?: string;
|
|
67
|
+
}>;
|
|
68
|
+
"automated-om": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
69
|
+
title?: string;
|
|
70
|
+
titleId?: string;
|
|
71
|
+
desc?: string;
|
|
72
|
+
descId?: string;
|
|
73
|
+
}>;
|
|
74
|
+
aliyun: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
75
|
+
title?: string;
|
|
76
|
+
titleId?: string;
|
|
77
|
+
desc?: string;
|
|
78
|
+
descId?: string;
|
|
79
|
+
}>;
|
|
80
|
+
inspection: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
81
|
+
title?: string;
|
|
82
|
+
titleId?: string;
|
|
83
|
+
desc?: string;
|
|
84
|
+
descId?: string;
|
|
85
|
+
}>;
|
|
86
|
+
"zaku-home": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
87
|
+
title?: string;
|
|
88
|
+
titleId?: string;
|
|
89
|
+
desc?: string;
|
|
90
|
+
descId?: string;
|
|
91
|
+
}>;
|
|
92
|
+
"network-service": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
93
|
+
title?: string;
|
|
94
|
+
titleId?: string;
|
|
95
|
+
desc?: string;
|
|
96
|
+
descId?: string;
|
|
97
|
+
}>;
|
|
98
|
+
"application-center": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
99
|
+
title?: string;
|
|
100
|
+
titleId?: string;
|
|
101
|
+
desc?: string;
|
|
102
|
+
descId?: string;
|
|
103
|
+
}>;
|
|
104
|
+
baremetal: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
105
|
+
title?: string;
|
|
106
|
+
titleId?: string;
|
|
107
|
+
desc?: string;
|
|
108
|
+
descId?: string;
|
|
109
|
+
}>;
|
|
110
|
+
"billing-management": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
111
|
+
title?: string;
|
|
112
|
+
titleId?: string;
|
|
113
|
+
desc?: string;
|
|
114
|
+
descId?: string;
|
|
115
|
+
}>;
|
|
116
|
+
"distributed-storage": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
117
|
+
title?: string;
|
|
118
|
+
titleId?: string;
|
|
119
|
+
desc?: string;
|
|
120
|
+
descId?: string;
|
|
121
|
+
}>;
|
|
122
|
+
"migration-service": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
123
|
+
title?: string;
|
|
124
|
+
titleId?: string;
|
|
125
|
+
desc?: string;
|
|
126
|
+
descId?: string;
|
|
127
|
+
}>;
|
|
128
|
+
vcenter: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
129
|
+
title?: string;
|
|
130
|
+
titleId?: string;
|
|
131
|
+
desc?: string;
|
|
132
|
+
descId?: string;
|
|
133
|
+
}>;
|
|
134
|
+
"cloud-monitoring": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
135
|
+
title?: string;
|
|
136
|
+
titleId?: string;
|
|
137
|
+
desc?: string;
|
|
138
|
+
descId?: string;
|
|
139
|
+
}>;
|
|
140
|
+
"network-topology": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
141
|
+
title?: string;
|
|
142
|
+
titleId?: string;
|
|
143
|
+
desc?: string;
|
|
144
|
+
descId?: string;
|
|
145
|
+
}>;
|
|
146
|
+
"zaku-monitor-panel": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
147
|
+
title?: string;
|
|
148
|
+
titleId?: string;
|
|
149
|
+
desc?: string;
|
|
150
|
+
descId?: string;
|
|
151
|
+
}>;
|
|
152
|
+
"access-control": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
153
|
+
title?: string;
|
|
154
|
+
titleId?: string;
|
|
155
|
+
desc?: string;
|
|
156
|
+
descId?: string;
|
|
157
|
+
}>;
|
|
158
|
+
hardware: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
159
|
+
title?: string;
|
|
160
|
+
titleId?: string;
|
|
161
|
+
desc?: string;
|
|
162
|
+
descId?: string;
|
|
163
|
+
}>;
|
|
164
|
+
"zaku-setting": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
165
|
+
title?: string;
|
|
166
|
+
titleId?: string;
|
|
167
|
+
desc?: string;
|
|
168
|
+
descId?: string;
|
|
169
|
+
}>;
|
|
170
|
+
"backup-management": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
171
|
+
title?: string;
|
|
172
|
+
titleId?: string;
|
|
173
|
+
desc?: string;
|
|
174
|
+
descId?: string;
|
|
175
|
+
}>;
|
|
176
|
+
"zaku-platform-management": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
177
|
+
title?: string;
|
|
178
|
+
titleId?: string;
|
|
179
|
+
desc?: string;
|
|
180
|
+
descId?: string;
|
|
181
|
+
}>;
|
|
182
|
+
marketplace: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
183
|
+
title?: string;
|
|
184
|
+
titleId?: string;
|
|
185
|
+
desc?: string;
|
|
186
|
+
descId?: string;
|
|
187
|
+
}>;
|
|
188
|
+
"platform-crypto-cmpl": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
189
|
+
title?: string;
|
|
190
|
+
titleId?: string;
|
|
191
|
+
desc?: string;
|
|
192
|
+
descId?: string;
|
|
193
|
+
}>;
|
|
194
|
+
"crypto-compliance": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
195
|
+
title?: string;
|
|
196
|
+
titleId?: string;
|
|
197
|
+
desc?: string;
|
|
198
|
+
descId?: string;
|
|
199
|
+
}>;
|
|
200
|
+
"zaku-deliver-center": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
201
|
+
title?: string;
|
|
202
|
+
titleId?: string;
|
|
203
|
+
desc?: string;
|
|
204
|
+
descId?: string;
|
|
205
|
+
}>;
|
|
206
|
+
aftersale: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
207
|
+
title?: string;
|
|
208
|
+
titleId?: string;
|
|
209
|
+
desc?: string;
|
|
210
|
+
descId?: string;
|
|
211
|
+
}>;
|
|
212
|
+
"arm-64": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
213
|
+
title?: string;
|
|
214
|
+
titleId?: string;
|
|
215
|
+
desc?: string;
|
|
216
|
+
descId?: string;
|
|
217
|
+
}>;
|
|
218
|
+
"ai-store": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
219
|
+
title?: string;
|
|
220
|
+
titleId?: string;
|
|
221
|
+
desc?: string;
|
|
222
|
+
descId?: string;
|
|
223
|
+
}>;
|
|
224
|
+
"message-log": import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
225
|
+
title?: string;
|
|
226
|
+
titleId?: string;
|
|
227
|
+
desc?: string;
|
|
228
|
+
descId?: string;
|
|
229
|
+
}>;
|
|
230
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Color } from './_utils';
|
|
2
|
+
import { Icons } from './icons-mapping.ts';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
export declare const getColor: (color: Color.ISemantic | "neutral", number?: Color.INeutralNumber | Color.ISemanticNumber, mode?: "light" | "dark") => string;
|
|
5
|
+
export type IconName = keyof typeof Icons;
|
|
6
|
+
export { Icons };
|
|
7
|
+
interface IconProps extends React.SVGProps<SVGSVGElement> {
|
|
8
|
+
type: IconName;
|
|
9
|
+
color?: Color.ISemantic | "neutral";
|
|
10
|
+
colorNumber?: Color.INeutralNumber;
|
|
11
|
+
}
|
|
12
|
+
export declare const Icon: React.FC<IconProps>;
|