@tuya-sat/sdf-main-sdk 2.0.0-alpha.21 → 2.0.0-alpha.211
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/README.md +83 -2
- package/dist/364.eac5ad9a.chunk.js +2 -0
- package/dist/364.eac5ad9a.chunk.js.map +1 -0
- package/dist/api/index.d.ts +7 -7
- package/dist/api/urls.d.ts +27 -0
- package/dist/components/403/index.d.ts +4 -1
- package/dist/components/BLayout/components/Logo.d.ts +4 -1
- package/dist/components/BLogin/component/UserName/index.d.ts +6 -3
- package/dist/components/BLogin/component/VerifyCode/VerifyCodeInput.d.ts +6 -0
- package/dist/components/BLogin/component/VerifyCode/index.d.ts +1 -1
- package/dist/components/IconFont/index.d.ts +7 -0
- package/dist/components/ImageUpload/index.d.ts +4 -0
- package/dist/components/ImageUpload/utils.d.ts +1 -0
- package/dist/components/Layout/antd/Header/index.d.ts +11 -1
- package/dist/components/Layout/antd/Menu/BaseMenu.d.ts +1 -1
- package/dist/components/Layout/antd/Menu/HorizontalMenu/index.d.ts +2 -0
- package/dist/components/Layout/antd/Menu/index.d.ts +3 -0
- package/dist/components/Layout/antd/Sider/index.d.ts +2 -0
- package/dist/components/Layout/antd/components/AppDownload/index.d.ts +2 -6
- package/dist/components/Layout/antd/components/DynamicNavs/index.d.ts +1 -0
- package/dist/components/Layout/antd/components/NavItem/index.d.ts +2 -1
- package/dist/components/Layout/antd/components/ProjectSelect/index.d.ts +4 -0
- package/dist/components/Layout/antd/components/ProjectSelect/useProjectInfo.d.ts +12 -0
- package/dist/components/Layout/antd/components/SwitchTheme/index.d.ts +8 -0
- package/dist/components/Layout/antd/components/UserAccount/UserAvatar.d.ts +9 -0
- package/dist/components/Layout/antd/components/UserAccount/index.d.ts +1 -0
- package/dist/components/Layout/antd/index.d.ts +2 -0
- package/dist/components/Layout/interface.d.ts +12 -28
- package/dist/components/MessageNotification/index.d.ts +13 -0
- package/dist/components/MessageNotification/manager.d.ts +13 -0
- package/dist/components/MessageNotification/messageNotificationManager.d.ts +3 -0
- package/dist/components/MicroComponent/Header/index.d.ts +17 -2
- package/dist/components/PEnterprise/EnterpriseList.d.ts +3 -0
- package/dist/components/PEnterprise/index.d.ts +1 -0
- package/dist/components/PSetting/AccountSetting.d.ts +11 -0
- package/dist/components/PSetting/index.d.ts +1 -2
- package/dist/components/Register/components/CountryRegionCascader/RegionCascader.d.ts +19 -0
- package/dist/components/Register/components/CountryRegionCascader/index.d.ts +10 -0
- package/dist/components/Register/components/CountryRegionCascader/services.d.ts +9 -0
- package/dist/components/Register/components/RegisterForm/AccountForm.d.ts +23 -0
- package/dist/components/Register/components/RegisterForm/EnterpriseForm.d.ts +2 -0
- package/dist/components/Register/components/RegisterForm/index.d.ts +7 -0
- package/dist/components/Register/components/RegisterResult/index.d.ts +3 -0
- package/dist/components/Register/index.d.ts +1 -0
- package/dist/constant/index.d.ts +9 -0
- package/dist/en.json +108 -8
- package/dist/hooks/index.d.ts +9 -4
- package/dist/hooks/useMultiLanguages.d.ts +8 -0
- package/dist/index.d.ts +20 -0
- package/dist/lang/utils.d.ts +1 -1
- package/dist/main.bundle.js +1 -1
- package/dist/main.bundle.js.LICENSE.txt +51 -11
- package/dist/main.bundle.js.map +1 -1
- package/dist/main.css +1393 -348
- package/dist/main.css.map +1 -1
- package/dist/manifest.json +7 -2
- package/dist/mqtt/business.d.ts +35 -0
- package/dist/pages/403.d.ts +4 -1
- package/dist/pages/home/enterprise/index.d.ts +5 -0
- package/dist/pages/home/notice/ConfirmCloseModal.d.ts +13 -0
- package/dist/pages/home/notice/MessageDetailModal.d.ts +37 -0
- package/dist/pages/home/notice/hooks.d.ts +14 -3
- package/dist/pages/home/notice/tools/index.d.ts +2 -1
- package/dist/qiankun/globalState.d.ts +6 -5
- package/dist/qiankun/index.d.ts +1 -2
- package/dist/qiankun/utils/index.d.ts +7 -5
- package/dist/static/img/7d9900e808e2197745be.png +0 -0
- package/dist/static/img/a10132bbdef90aa7baaf.png +0 -0
- package/dist/static/img/a20c372b6039996ba351.png +0 -0
- package/dist/static/img/b765d4caa82d7e5eae80.png +0 -0
- package/dist/static/img/f110c37284312f4d2af6.png +0 -0
- package/dist/utils/checkPass.d.ts +4 -0
- package/dist/utils/common.d.ts +10 -0
- package/dist/utils/index.d.ts +48 -7
- package/dist/utils/soundManager.d.ts +12 -0
- package/dist/utils/theme/antd5/InjectCssVariable.d.ts +3 -1
- package/dist/utils/theme/antd5/index.d.ts +362 -107
- package/dist/utils/theme/antd5/token.d.ts +275 -6
- package/dist/utils/theme/base.d.ts +2 -2
- package/dist/utils/theme/changeMenuCssVariable.d.ts +1 -1
- package/dist/utils/theme/index.d.ts +12 -6
- package/dist/utils/theme/store.d.ts +724 -214
- package/dist/zh.json +108 -6
- package/new-translations.json +68 -0
- package/package.json +16 -6
- package/webpack.config.js +1 -0
- package/dist/131.9ff515a6.chunk.js +0 -2
- package/dist/131.9ff515a6.chunk.js.map +0 -1
|
@@ -1,5 +1,194 @@
|
|
|
1
|
+
export declare const getDefaultPrimaryDarkToken: (color: string) => {
|
|
2
|
+
colorPrimary: string;
|
|
3
|
+
colorPrimaryBg: string;
|
|
4
|
+
colorPrimaryBgHover: string;
|
|
5
|
+
colorPrimaryBorder: string;
|
|
6
|
+
colorPrimaryActive: string;
|
|
7
|
+
colorPrimaryTextActive: string;
|
|
8
|
+
colorPrimaryBorderHover: string;
|
|
9
|
+
colorPrimaryText: string;
|
|
10
|
+
colorPrimaryHover: string;
|
|
11
|
+
colorPrimaryTextHover: string;
|
|
12
|
+
colorLink: string;
|
|
13
|
+
colorLinkActive: string;
|
|
14
|
+
colorLinkHover: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const getDefaultPrimaryLightToken: (color: string) => {
|
|
17
|
+
colorPrimaryBg: string;
|
|
18
|
+
colorPrimaryBgHover: string;
|
|
19
|
+
colorPrimaryBorder: string;
|
|
20
|
+
colorPrimaryBorderHover: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const makeLightToken: (primaryColor: string) => {
|
|
23
|
+
colorPrimary: string;
|
|
24
|
+
colorLink: string;
|
|
25
|
+
colorInfo: string;
|
|
26
|
+
components: {
|
|
27
|
+
Alert: {
|
|
28
|
+
lineType: string;
|
|
29
|
+
};
|
|
30
|
+
Menu: {
|
|
31
|
+
itemHeight: number;
|
|
32
|
+
};
|
|
33
|
+
Tooltip: {
|
|
34
|
+
colorBgSpotlight: string;
|
|
35
|
+
borderRadius: string;
|
|
36
|
+
};
|
|
37
|
+
Button: {
|
|
38
|
+
defaultBg: string;
|
|
39
|
+
defaultHoverBg: string;
|
|
40
|
+
defaultActiveBg: string;
|
|
41
|
+
colorBgContainerDisabled: string;
|
|
42
|
+
defaultBorderColor: string;
|
|
43
|
+
defaultHoverBorderColor: string;
|
|
44
|
+
defaultActiveBorderColor: string;
|
|
45
|
+
borderColorDisabled: string;
|
|
46
|
+
defaultHoverColor: string;
|
|
47
|
+
boxShadow: string;
|
|
48
|
+
defaultShadow: string;
|
|
49
|
+
primaryShadow: string;
|
|
50
|
+
dangerShadow: string;
|
|
51
|
+
borderRadius: string;
|
|
52
|
+
};
|
|
53
|
+
Input: {
|
|
54
|
+
colorBorder: string;
|
|
55
|
+
colorBgContainer: string;
|
|
56
|
+
hoverBg: string;
|
|
57
|
+
activeBg: string;
|
|
58
|
+
colorBgContainerDisabled: string;
|
|
59
|
+
colorTextPlaceholder: string;
|
|
60
|
+
activeShadow: string;
|
|
61
|
+
addonBg: string;
|
|
62
|
+
};
|
|
63
|
+
InputNumber: {
|
|
64
|
+
handleBg: string;
|
|
65
|
+
handleActiveBg: string;
|
|
66
|
+
filledHandleBg: string;
|
|
67
|
+
hoverBg: string;
|
|
68
|
+
activeBg: string;
|
|
69
|
+
};
|
|
70
|
+
Select: {
|
|
71
|
+
colorBorder: string;
|
|
72
|
+
colorBgContainer: string;
|
|
73
|
+
hoverBg: string;
|
|
74
|
+
activeBg: string;
|
|
75
|
+
colorBgContainerDisabled: string;
|
|
76
|
+
colorTextPlaceholder: string;
|
|
77
|
+
activeShadow: string;
|
|
78
|
+
multipleItemBg: string;
|
|
79
|
+
};
|
|
80
|
+
Checkbox: {
|
|
81
|
+
controlInteractiveSize: number;
|
|
82
|
+
borderRadiusSM: number;
|
|
83
|
+
colorBgContainerDisabled: string;
|
|
84
|
+
colorBorder: string;
|
|
85
|
+
colorTextDisabled: string;
|
|
86
|
+
};
|
|
87
|
+
Radio: {
|
|
88
|
+
radioSize: number;
|
|
89
|
+
};
|
|
90
|
+
DatePicker: {
|
|
91
|
+
colorBorder: string;
|
|
92
|
+
colorBgContainer: string;
|
|
93
|
+
hoverBg: string;
|
|
94
|
+
activeBg: string;
|
|
95
|
+
colorBgContainerDisabled: string;
|
|
96
|
+
colorTextPlaceholder: string;
|
|
97
|
+
activeShadow: string;
|
|
98
|
+
};
|
|
99
|
+
Table: {
|
|
100
|
+
colorSplit: string;
|
|
101
|
+
headerBg: string;
|
|
102
|
+
headerColor: string;
|
|
103
|
+
headerSplitColor: string;
|
|
104
|
+
borderColor: string;
|
|
105
|
+
cellPaddingInlineMD: number;
|
|
106
|
+
colorText: string;
|
|
107
|
+
};
|
|
108
|
+
Tag: {
|
|
109
|
+
defaultBg: string;
|
|
110
|
+
defaultColor: string;
|
|
111
|
+
fontSizeSM: number;
|
|
112
|
+
lineHeightSM: number;
|
|
113
|
+
};
|
|
114
|
+
Form: {
|
|
115
|
+
labelColor: string;
|
|
116
|
+
};
|
|
117
|
+
Tree: {
|
|
118
|
+
colorText: string;
|
|
119
|
+
borderRadiusSM: number;
|
|
120
|
+
};
|
|
121
|
+
Tabs: {
|
|
122
|
+
horizontalItemPadding: number;
|
|
123
|
+
};
|
|
124
|
+
Descriptions: {
|
|
125
|
+
labelColor: string;
|
|
126
|
+
contentColor: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
colorBgBase: string;
|
|
130
|
+
colorBgContainer: string;
|
|
131
|
+
colorBgElevated: string;
|
|
132
|
+
colorBgLayout: string;
|
|
133
|
+
colorBgSpotlight: string;
|
|
134
|
+
colorBgSmall: string;
|
|
135
|
+
colorBgSpecial: string;
|
|
136
|
+
colorBgMask: string;
|
|
137
|
+
colorFill: string;
|
|
138
|
+
colorFillSecondary: string;
|
|
139
|
+
colorFillTertiary: string;
|
|
140
|
+
colorFillQuaternary: string;
|
|
141
|
+
colorTextBase: string;
|
|
142
|
+
colorText: string;
|
|
143
|
+
colorTextSecondary: string;
|
|
144
|
+
colorTextTertiary: string;
|
|
145
|
+
colorTextTransitional: string;
|
|
146
|
+
colorTextQuaternary: string;
|
|
147
|
+
colorBorder: string;
|
|
148
|
+
colorBorderSecondary: string;
|
|
149
|
+
colorErrorBg: string;
|
|
150
|
+
colorErrorBgHover: string;
|
|
151
|
+
colorErrorBorder: string;
|
|
152
|
+
colorErrorBorderHover: string;
|
|
153
|
+
colorErrorHover: string;
|
|
154
|
+
colorErrorActive: string;
|
|
155
|
+
colorErrorTextActive: string;
|
|
156
|
+
colorError: string;
|
|
157
|
+
colorErrorText: string;
|
|
158
|
+
colorErrorTextHover: string;
|
|
159
|
+
colorSuccessBg: string;
|
|
160
|
+
colorSuccessBgHover: string;
|
|
161
|
+
colorSuccessBorder: string;
|
|
162
|
+
colorSuccessBorderHover: string;
|
|
163
|
+
colorSuccessHover: string;
|
|
164
|
+
colorSuccessActive: string;
|
|
165
|
+
colorSuccessTextActive: string;
|
|
166
|
+
colorSuccess: string;
|
|
167
|
+
colorSuccessText: string;
|
|
168
|
+
colorSuccessTextHover: string;
|
|
169
|
+
colorWarningBg: string;
|
|
170
|
+
colorWarningBgHover: string;
|
|
171
|
+
colorWarningBorder: string;
|
|
172
|
+
colorWarningBorderHover: string;
|
|
173
|
+
colorWarningHover: string;
|
|
174
|
+
colorWarningActive: string;
|
|
175
|
+
colorWarningTextActive: string;
|
|
176
|
+
colorWarning: string;
|
|
177
|
+
colorWarningText: string;
|
|
178
|
+
colorWarningTextHover: string;
|
|
179
|
+
defaultRadius: number;
|
|
180
|
+
borderRadius: number;
|
|
181
|
+
boxShadow: string;
|
|
182
|
+
boxShadowSecondary: string;
|
|
183
|
+
};
|
|
1
184
|
export declare const makeDarkToken: (primaryColor: string) => {
|
|
185
|
+
colorPrimary: string;
|
|
186
|
+
colorLink: string;
|
|
187
|
+
colorInfo: string;
|
|
2
188
|
components: {
|
|
189
|
+
Alert: {
|
|
190
|
+
lineType: string;
|
|
191
|
+
};
|
|
3
192
|
Menu: {
|
|
4
193
|
darkItemBg: string;
|
|
5
194
|
darkItemHoverBg: string;
|
|
@@ -9,6 +198,7 @@ export declare const makeDarkToken: (primaryColor: string) => {
|
|
|
9
198
|
darkItemHoverColor: string;
|
|
10
199
|
darkItemSelectedColor: string;
|
|
11
200
|
darkPopupBg: string;
|
|
201
|
+
itemHeight: number;
|
|
12
202
|
};
|
|
13
203
|
Dropdown: {
|
|
14
204
|
colorBgElevated: string;
|
|
@@ -30,18 +220,44 @@ export declare const makeDarkToken: (primaryColor: string) => {
|
|
|
30
220
|
textTextHoverColor: string;
|
|
31
221
|
textTextColor: string;
|
|
32
222
|
textHoverBg: string;
|
|
223
|
+
boxShadow: string;
|
|
224
|
+
defaultShadow: string;
|
|
225
|
+
primaryShadow: string;
|
|
226
|
+
dangerShadow: string;
|
|
33
227
|
};
|
|
34
228
|
Input: {
|
|
35
229
|
colorBorder: string;
|
|
36
230
|
colorBgContainer: string;
|
|
231
|
+
hoverBg: string;
|
|
37
232
|
activeBg: string;
|
|
233
|
+
colorBgContainerDisabled: string;
|
|
38
234
|
colorTextPlaceholder: string;
|
|
235
|
+
activeShadow: string;
|
|
236
|
+
};
|
|
237
|
+
Checkbox: {
|
|
238
|
+
controlInteractiveSize: number;
|
|
239
|
+
borderRadiusSM: number;
|
|
240
|
+
lineWidth: number;
|
|
241
|
+
colorBorder: string;
|
|
242
|
+
};
|
|
243
|
+
Radio: {
|
|
244
|
+
radioSize: number;
|
|
245
|
+
};
|
|
246
|
+
DatePicker: {
|
|
247
|
+
colorBorder: string;
|
|
248
|
+
colorBgContainer: string;
|
|
249
|
+
hoverBg: string;
|
|
250
|
+
activeBg: string;
|
|
251
|
+
colorBgContainerDisabled: string;
|
|
252
|
+
activeShadow: string;
|
|
39
253
|
};
|
|
40
254
|
Select: {
|
|
41
255
|
colorBorder: string;
|
|
42
256
|
colorBgContainer: string;
|
|
257
|
+
hoverBg: string;
|
|
43
258
|
colorText: string;
|
|
44
259
|
activeBg: string;
|
|
260
|
+
colorBgContainerDisabled: string;
|
|
45
261
|
colorTextPlaceholder: string;
|
|
46
262
|
optionActiveBg: string;
|
|
47
263
|
optionSelectedBg: string;
|
|
@@ -53,14 +269,25 @@ export declare const makeDarkToken: (primaryColor: string) => {
|
|
|
53
269
|
colorText: string;
|
|
54
270
|
};
|
|
55
271
|
Modal: {
|
|
272
|
+
headerBg: string;
|
|
273
|
+
contentBg: string;
|
|
274
|
+
footerBg: string;
|
|
56
275
|
colorBgElevated: string;
|
|
57
276
|
};
|
|
277
|
+
Drawer: {
|
|
278
|
+
colorBgElevated: string;
|
|
279
|
+
};
|
|
280
|
+
Divider: {
|
|
281
|
+
colorSplit: string;
|
|
282
|
+
};
|
|
58
283
|
Segmented: {
|
|
284
|
+
trackBg: string;
|
|
285
|
+
colorTextDisabled: string;
|
|
286
|
+
itemColor: string;
|
|
287
|
+
itemHoverBg: string;
|
|
288
|
+
itemSelectedColor: string;
|
|
59
289
|
itemSelectedBg: string;
|
|
60
|
-
itemActiveBg: string;
|
|
61
290
|
borderRadius: number;
|
|
62
|
-
itemSelectedColor: string;
|
|
63
|
-
itemColor: string;
|
|
64
291
|
};
|
|
65
292
|
Pagination: {
|
|
66
293
|
itemBg: string;
|
|
@@ -73,6 +300,27 @@ export declare const makeDarkToken: (primaryColor: string) => {
|
|
|
73
300
|
headerColor: string;
|
|
74
301
|
footerColor: string;
|
|
75
302
|
borderColor: string;
|
|
303
|
+
headerSplitColor: string;
|
|
304
|
+
colorText: string;
|
|
305
|
+
};
|
|
306
|
+
Tag: {
|
|
307
|
+
defaultBg: string;
|
|
308
|
+
fontSizeSM: number;
|
|
309
|
+
lineHeightSM: number;
|
|
310
|
+
};
|
|
311
|
+
Form: {
|
|
312
|
+
labelColor: string;
|
|
313
|
+
};
|
|
314
|
+
Tree: {
|
|
315
|
+
colorText: string;
|
|
316
|
+
borderRadiusSM: number;
|
|
317
|
+
};
|
|
318
|
+
Tabs: {
|
|
319
|
+
horizontalItemPadding: number;
|
|
320
|
+
};
|
|
321
|
+
Descriptions: {
|
|
322
|
+
labelColor: string;
|
|
323
|
+
contentColor: string;
|
|
76
324
|
};
|
|
77
325
|
};
|
|
78
326
|
colorBgBase: string;
|
|
@@ -80,9 +328,9 @@ export declare const makeDarkToken: (primaryColor: string) => {
|
|
|
80
328
|
colorBgElevated: string;
|
|
81
329
|
colorBgLayout: string;
|
|
82
330
|
colorBgSpotlight: string;
|
|
331
|
+
colorBgMask: string;
|
|
83
332
|
colorBgSmall: string;
|
|
84
333
|
colorBgSpecial: string;
|
|
85
|
-
colorBgMask: string;
|
|
86
334
|
colorFill: string;
|
|
87
335
|
colorFillSecondary: string;
|
|
88
336
|
colorFillTertiary: string;
|
|
@@ -95,8 +343,6 @@ export declare const makeDarkToken: (primaryColor: string) => {
|
|
|
95
343
|
colorTextQuaternary: string;
|
|
96
344
|
colorBorder: string;
|
|
97
345
|
colorBorderSecondary: string;
|
|
98
|
-
boxShadow: string;
|
|
99
|
-
boxShadowSecondary: string;
|
|
100
346
|
colorErrorBg: string;
|
|
101
347
|
colorErrorBgHover: string;
|
|
102
348
|
colorErrorBorder: string;
|
|
@@ -107,6 +353,29 @@ export declare const makeDarkToken: (primaryColor: string) => {
|
|
|
107
353
|
colorError: string;
|
|
108
354
|
colorErrorText: string;
|
|
109
355
|
colorErrorTextHover: string;
|
|
356
|
+
colorSuccessBg: string;
|
|
357
|
+
colorSuccessBgHover: string;
|
|
358
|
+
colorSuccessBorder: string;
|
|
359
|
+
colorSuccessBorderHover: string;
|
|
360
|
+
colorSuccessHover: string;
|
|
361
|
+
colorSuccessActive: string;
|
|
362
|
+
colorSuccessTextActive: string;
|
|
363
|
+
colorSuccess: string;
|
|
364
|
+
colorSuccessText: string;
|
|
365
|
+
colorSuccessTextHover: string;
|
|
366
|
+
colorWarningBg: string;
|
|
367
|
+
colorWarningBgHover: string;
|
|
368
|
+
colorWarningBorder: string;
|
|
369
|
+
colorWarningBorderHover: string;
|
|
370
|
+
colorWarningHover: string;
|
|
371
|
+
colorWarningActive: string;
|
|
372
|
+
colorWarningTextActive: string;
|
|
373
|
+
colorWarning: string;
|
|
374
|
+
colorWarningText: string;
|
|
375
|
+
colorWarningTextHover: string;
|
|
376
|
+
boxShadow: string;
|
|
377
|
+
boxShadowSecondary: string;
|
|
110
378
|
defaultRadius: number;
|
|
379
|
+
borderRadius: number;
|
|
111
380
|
colorTransparent: string;
|
|
112
381
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { MenuType } from 'src/components/BLayout/components/Menu';
|
|
2
2
|
export declare const LIGHT = "light";
|
|
3
3
|
export declare const DARK = "dark";
|
|
4
|
-
export declare const DEFAULT_PRIMARY_COLOR = "#306FFF";
|
|
5
4
|
export type Theme = typeof LIGHT | typeof DARK;
|
|
5
|
+
export declare const getDefaultPrimaryColor: (themeMode?: Theme) => "#165dff" | "#306FFF";
|
|
6
6
|
export interface ColorConfig {
|
|
7
7
|
menuBg?: string;
|
|
8
8
|
menuText?: string;
|
|
@@ -38,5 +38,5 @@ declare function getCssVarible(): {
|
|
|
38
38
|
primaryColorInAll: string | UserConfigItem;
|
|
39
39
|
};
|
|
40
40
|
declare function getDynamicMenuTheme(): UserColorConfigWithThemeAndMenu;
|
|
41
|
-
declare function getRenderTheme():
|
|
41
|
+
declare function getRenderTheme(): Theme;
|
|
42
42
|
export { isSupportCssVariable, isSupportLightDarkSwitch, getSupportedTheme, isSpecificTheme, getCssVarible, getDynamicMenuTheme, getRenderTheme, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Theme, UserColorConfigWithThemeAndMenu } from './base';
|
|
2
|
-
export declare function hexToRgba(ahex: string, opacity
|
|
2
|
+
export declare function hexToRgba(ahex: string, opacity?: number): string;
|
|
3
3
|
export default function changeMenuCssVariable({ menuColor, theme, prefix, }: {
|
|
4
4
|
menuColor: UserColorConfigWithThemeAndMenu | null;
|
|
5
5
|
theme: Theme;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { ConfigProviderProps } from 'antd';
|
|
2
|
+
import { Theme } from './base';
|
|
3
|
+
export declare function getRenderCssVariable(theme?: Theme): {
|
|
3
4
|
primaryColor: string;
|
|
4
5
|
};
|
|
5
6
|
declare function changeTheme(theme: Theme): void;
|
|
6
7
|
declare function useTheme(): {
|
|
7
|
-
theme:
|
|
8
|
-
|
|
8
|
+
theme: "dark" | "light";
|
|
9
|
+
isDark: boolean;
|
|
10
|
+
isLight: boolean;
|
|
11
|
+
changeTheme(): void;
|
|
9
12
|
};
|
|
10
|
-
declare function
|
|
11
|
-
|
|
13
|
+
declare function initialTheme(themeConfigs: {
|
|
14
|
+
dark: ConfigProviderProps;
|
|
15
|
+
light: ConfigProviderProps;
|
|
16
|
+
} | null, cb?: () => void): void;
|
|
17
|
+
export { changeTheme, useTheme, initialTheme };
|