@cloudtower/eagle 0.35.1 → 0.35.2

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.
Files changed (81) hide show
  1. package/dist/cjs/UIKitProvider/index.js +5 -10
  2. package/dist/cjs/core/ConfigProvider/index.js +3 -1
  3. package/dist/cjs/core/Fields/FieldsTimePicker/index.js +4 -3
  4. package/dist/cjs/core/ImmersiveDialog/index.js +21 -14
  5. package/dist/cjs/core/{Modal → LegacyModal}/index.js +7 -3
  6. package/dist/cjs/core/LegacySelect/index.js +4 -0
  7. package/dist/cjs/core/LocalUpload/LocalUpload.hooks.js +66 -0
  8. package/dist/cjs/core/LocalUpload/LocalUpload.js +103 -0
  9. package/dist/cjs/core/LocalUpload/LocalUpload.style.js +13 -0
  10. package/dist/cjs/core/LocalUpload/LocalUpload.widget.js +379 -0
  11. package/dist/cjs/core/MediumDialog/MediumDialog.js +1 -1
  12. package/dist/cjs/core/SmallDialog/SmallDialog.js +7 -5
  13. package/dist/cjs/core/Tab/Tab.js +113 -0
  14. package/dist/cjs/core/Tab/Tab.style.js +17 -0
  15. package/dist/cjs/core/Tab/Tab.type.js +9 -0
  16. package/dist/cjs/core/Tab/useTabAdaptiveLayout.js +73 -0
  17. package/dist/cjs/core/message/message.js +24 -1
  18. package/dist/cjs/coreX/KubeConfigModal/index.js +4 -4
  19. package/dist/cjs/hooks/useAntdPatchEnLocales.js +35 -0
  20. package/dist/cjs/hooks/useLegacyComponentWarning.js +16 -0
  21. package/dist/cjs/index.js +20 -16
  22. package/dist/cjs/legacy-antd.js +2 -2
  23. package/dist/cjs/stats1.html +1 -1
  24. package/dist/components.css +1926 -1557
  25. package/dist/esm/UIKitProvider/index.js +5 -10
  26. package/dist/esm/core/ConfigProvider/index.js +3 -1
  27. package/dist/esm/core/Fields/FieldsTimePicker/index.js +2 -1
  28. package/dist/esm/core/ImmersiveDialog/index.js +21 -14
  29. package/dist/esm/core/{Modal → LegacyModal}/index.js +9 -5
  30. package/dist/esm/core/LegacySelect/index.js +4 -0
  31. package/dist/esm/core/LocalUpload/LocalUpload.hooks.js +63 -0
  32. package/dist/esm/core/LocalUpload/LocalUpload.js +97 -0
  33. package/dist/esm/core/LocalUpload/LocalUpload.style.js +10 -0
  34. package/dist/esm/core/LocalUpload/LocalUpload.widget.js +365 -0
  35. package/dist/esm/core/MediumDialog/MediumDialog.js +1 -1
  36. package/dist/esm/core/SmallDialog/SmallDialog.js +6 -4
  37. package/dist/esm/core/Tab/Tab.js +107 -0
  38. package/dist/esm/core/Tab/Tab.style.js +12 -0
  39. package/dist/esm/core/Tab/Tab.type.js +7 -0
  40. package/dist/esm/core/Tab/useTabAdaptiveLayout.js +71 -0
  41. package/dist/esm/core/message/message.js +24 -1
  42. package/dist/esm/coreX/KubeConfigModal/index.js +5 -5
  43. package/dist/esm/hooks/useAntdPatchEnLocales.js +29 -0
  44. package/dist/esm/hooks/useLegacyComponentWarning.js +14 -0
  45. package/dist/esm/index.js +3 -1
  46. package/dist/esm/legacy-antd.js +4 -4
  47. package/dist/esm/stats1.html +1 -1
  48. package/dist/linaria.merged.scss +1968 -1541
  49. package/dist/src/core/ImmersiveDialog/type.d.ts +2 -2
  50. package/dist/src/core/{Modal/modal.type.d.ts → LegacyModal/LegacyModal.type.d.ts} +12 -1
  51. package/dist/src/core/LegacyModal/index.d.ts +16 -0
  52. package/dist/src/core/LocalUpload/LocalUpload.d.ts +15 -0
  53. package/dist/src/core/LocalUpload/LocalUpload.hooks.d.ts +32 -0
  54. package/dist/src/core/LocalUpload/LocalUpload.style.d.ts +3 -0
  55. package/dist/src/core/LocalUpload/LocalUpload.type.d.ts +175 -0
  56. package/dist/src/core/LocalUpload/LocalUpload.widget.d.ts +23 -0
  57. package/dist/src/core/LocalUpload/index.d.ts +2 -0
  58. package/dist/src/core/SmallDialog/SmallDialog.type.d.ts +2 -0
  59. package/dist/src/core/Tab/Tab.d.ts +3 -0
  60. package/dist/src/core/Tab/Tab.style.d.ts +5 -0
  61. package/dist/src/core/Tab/Tab.type.d.ts +42 -0
  62. package/dist/src/core/Tab/index.d.ts +1 -0
  63. package/dist/src/core/Tab/useTabAdaptiveLayout.d.ts +23 -0
  64. package/dist/src/core/index.d.ts +4 -2
  65. package/dist/src/core/message/message.d.ts +5 -0
  66. package/dist/src/hooks/useAntdPatchEnLocales.d.ts +431 -0
  67. package/dist/src/hooks/useLegacyComponentWarning.d.ts +2 -0
  68. package/dist/src/spec/base.d.ts +2 -2
  69. package/dist/stories/docs/core/ImmersiveDialog.stories.d.ts +5 -1
  70. package/dist/stories/docs/core/LegacyModal.stories.d.ts +23 -0
  71. package/dist/stories/docs/core/LocalUpload.stories.d.ts +74 -0
  72. package/dist/stories/docs/core/MediumDialog.stories.d.ts +5 -1
  73. package/dist/stories/docs/core/SmallDialog.stories.d.ts +5 -1
  74. package/dist/stories/docs/core/Tab.stories.d.ts +65 -0
  75. package/dist/stories/docs/core/WizardDialog.stories.d.ts +2 -1
  76. package/dist/stories/docs/core/message-group.stories.d.ts +1 -0
  77. package/dist/style.css +1926 -1557
  78. package/dist/variables.scss +3 -0
  79. package/package.json +4 -4
  80. package/dist/src/core/Modal/index.d.ts +0 -5
  81. package/dist/stories/docs/core/Modal.stories.d.ts +0 -13
@@ -0,0 +1,431 @@
1
+ /// <reference types="react" />
2
+ import type { Locale } from "antd/lib/locale-provider";
3
+ export declare const useAntdPatchEnLocales: (enLocale: Locale) => Locale & {
4
+ locale?: string | undefined;
5
+ Pagination?: any;
6
+ DatePicker?: {
7
+ lang?: {
8
+ locale?: string | undefined;
9
+ monthBeforeYear?: boolean | undefined;
10
+ yearFormat?: string | undefined;
11
+ monthFormat?: string | undefined;
12
+ quarterFormat?: string | undefined;
13
+ today?: string | undefined;
14
+ now?: string | undefined;
15
+ backToToday?: string | undefined;
16
+ ok?: string | undefined;
17
+ timeSelect?: string | undefined;
18
+ dateSelect?: string | undefined;
19
+ weekSelect?: string | undefined;
20
+ clear?: string | undefined;
21
+ month?: string | undefined;
22
+ year?: string | undefined;
23
+ previousMonth?: string | undefined;
24
+ nextMonth?: string | undefined;
25
+ monthSelect?: string | undefined;
26
+ yearSelect?: string | undefined;
27
+ decadeSelect?: string | undefined;
28
+ dayFormat?: string | undefined;
29
+ dateFormat?: string | undefined;
30
+ dateTimeFormat?: string | undefined;
31
+ previousYear?: string | undefined;
32
+ nextYear?: string | undefined;
33
+ previousDecade?: string | undefined;
34
+ nextDecade?: string | undefined;
35
+ previousCentury?: string | undefined;
36
+ nextCentury?: string | undefined;
37
+ shortWeekDays?: (string | undefined)[] | undefined;
38
+ shortMonths?: (string | undefined)[] | undefined;
39
+ placeholder?: string | undefined;
40
+ yearPlaceholder?: string | undefined;
41
+ quarterPlaceholder?: string | undefined;
42
+ monthPlaceholder?: string | undefined;
43
+ weekPlaceholder?: string | undefined;
44
+ rangeYearPlaceholder?: [(string | undefined)?, (string | undefined)?] | undefined;
45
+ rangeMonthPlaceholder?: [(string | undefined)?, (string | undefined)?] | undefined;
46
+ rangeWeekPlaceholder?: [(string | undefined)?, (string | undefined)?] | undefined;
47
+ rangePlaceholder?: [(string | undefined)?, (string | undefined)?] | undefined;
48
+ } | undefined;
49
+ timePickerLocale?: {
50
+ placeholder?: string | undefined;
51
+ rangePlaceholder?: [(string | undefined)?, (string | undefined)?] | undefined;
52
+ } | undefined;
53
+ dateFormat?: string | undefined;
54
+ dateTimeFormat?: string | undefined;
55
+ weekFormat?: string | undefined;
56
+ monthFormat?: string | undefined;
57
+ } | undefined;
58
+ TimePicker?: {
59
+ constructor?: {
60
+ apply?: {} | undefined;
61
+ call?: {} | undefined;
62
+ bind?: {} | undefined;
63
+ toString?: {} | undefined;
64
+ prototype?: any;
65
+ readonly length?: number | undefined;
66
+ arguments?: any;
67
+ caller?: any | undefined;
68
+ readonly name?: string | undefined;
69
+ [Symbol.hasInstance]?: {} | undefined;
70
+ } | undefined;
71
+ toString?: {} | undefined;
72
+ toLocaleString?: {} | undefined;
73
+ valueOf?: {} | undefined;
74
+ hasOwnProperty?: {} | undefined;
75
+ isPrototypeOf?: {} | undefined;
76
+ propertyIsEnumerable?: {} | undefined;
77
+ } | undefined;
78
+ Calendar?: {
79
+ constructor?: {
80
+ apply?: {} | undefined;
81
+ call?: {} | undefined;
82
+ bind?: {} | undefined;
83
+ toString?: {} | undefined;
84
+ prototype?: any;
85
+ readonly length?: number | undefined;
86
+ arguments?: any;
87
+ caller?: any | undefined;
88
+ readonly name?: string | undefined;
89
+ [Symbol.hasInstance]?: {} | undefined;
90
+ } | undefined;
91
+ toString?: {} | undefined;
92
+ toLocaleString?: {} | undefined;
93
+ valueOf?: {} | undefined;
94
+ hasOwnProperty?: {} | undefined;
95
+ isPrototypeOf?: {} | undefined;
96
+ propertyIsEnumerable?: {} | undefined;
97
+ } | undefined;
98
+ Table?: {
99
+ filterTitle?: string | undefined;
100
+ filterConfirm?: boolean | import("react").ReactText | {
101
+ type?: string | {} | {} | undefined;
102
+ props?: any;
103
+ key?: string | null | undefined;
104
+ } | {} | {
105
+ [Symbol.iterator]?: {} | undefined;
106
+ } | {
107
+ children?: boolean | import("react").ReactText | {
108
+ type?: string | {} | {} | undefined;
109
+ props?: any;
110
+ key?: string | null | undefined;
111
+ } | {} | {
112
+ [Symbol.iterator]?: {} | undefined;
113
+ } | any | null | undefined;
114
+ type?: string | {} | {} | undefined;
115
+ props?: any;
116
+ key?: string | null | undefined;
117
+ } | null | undefined;
118
+ filterReset?: boolean | import("react").ReactText | {
119
+ type?: string | {} | {} | undefined;
120
+ props?: any;
121
+ key?: string | null | undefined;
122
+ } | {} | {
123
+ [Symbol.iterator]?: {} | undefined;
124
+ } | {
125
+ children?: boolean | import("react").ReactText | {
126
+ type?: string | {} | {} | undefined;
127
+ props?: any;
128
+ key?: string | null | undefined;
129
+ } | {} | {
130
+ [Symbol.iterator]?: {} | undefined;
131
+ } | any | null | undefined;
132
+ type?: string | {} | {} | undefined;
133
+ props?: any;
134
+ key?: string | null | undefined;
135
+ } | null | undefined;
136
+ filterEmptyText?: boolean | import("react").ReactText | {
137
+ type?: string | {} | {} | undefined;
138
+ props?: any;
139
+ key?: string | null | undefined;
140
+ } | {} | {
141
+ [Symbol.iterator]?: {} | undefined;
142
+ } | {
143
+ children?: boolean | import("react").ReactText | {
144
+ type?: string | {} | {} | undefined;
145
+ props?: any;
146
+ key?: string | null | undefined;
147
+ } | {} | {
148
+ [Symbol.iterator]?: {} | undefined;
149
+ } | any | null | undefined;
150
+ type?: string | {} | {} | undefined;
151
+ props?: any;
152
+ key?: string | null | undefined;
153
+ } | null | undefined;
154
+ emptyText?: boolean | import("react").ReactText | {
155
+ type?: string | {} | {} | undefined;
156
+ props?: any;
157
+ key?: string | null | undefined;
158
+ } | {} | {
159
+ [Symbol.iterator]?: {} | undefined;
160
+ } | {
161
+ children?: boolean | import("react").ReactText | {
162
+ type?: string | {} | {} | undefined;
163
+ props?: any;
164
+ key?: string | null | undefined;
165
+ } | {} | {
166
+ [Symbol.iterator]?: {} | undefined;
167
+ } | any | null | undefined;
168
+ type?: string | {} | {} | undefined;
169
+ props?: any;
170
+ key?: string | null | undefined;
171
+ } | {} | null | undefined;
172
+ selectAll?: boolean | import("react").ReactText | {
173
+ type?: string | {} | {} | undefined;
174
+ props?: any;
175
+ key?: string | null | undefined;
176
+ } | {} | {
177
+ [Symbol.iterator]?: {} | undefined;
178
+ } | {
179
+ children?: boolean | import("react").ReactText | {
180
+ type?: string | {} | {} | undefined;
181
+ props?: any;
182
+ key?: string | null | undefined;
183
+ } | {} | {
184
+ [Symbol.iterator]?: {} | undefined;
185
+ } | any | null | undefined;
186
+ type?: string | {} | {} | undefined;
187
+ props?: any;
188
+ key?: string | null | undefined;
189
+ } | null | undefined;
190
+ selectInvert?: boolean | import("react").ReactText | {
191
+ type?: string | {} | {} | undefined;
192
+ props?: any;
193
+ key?: string | null | undefined;
194
+ } | {} | {
195
+ [Symbol.iterator]?: {} | undefined;
196
+ } | {
197
+ children?: boolean | import("react").ReactText | {
198
+ type?: string | {} | {} | undefined;
199
+ props?: any;
200
+ key?: string | null | undefined;
201
+ } | {} | {
202
+ [Symbol.iterator]?: {} | undefined;
203
+ } | any | null | undefined;
204
+ type?: string | {} | {} | undefined;
205
+ props?: any;
206
+ key?: string | null | undefined;
207
+ } | null | undefined;
208
+ selectionAll?: boolean | import("react").ReactText | {
209
+ type?: string | {} | {} | undefined;
210
+ props?: any;
211
+ key?: string | null | undefined;
212
+ } | {} | {
213
+ [Symbol.iterator]?: {} | undefined;
214
+ } | {
215
+ children?: boolean | import("react").ReactText | {
216
+ type?: string | {} | {} | undefined;
217
+ props?: any;
218
+ key?: string | null | undefined;
219
+ } | {} | {
220
+ [Symbol.iterator]?: {} | undefined;
221
+ } | any | null | undefined;
222
+ type?: string | {} | {} | undefined;
223
+ props?: any;
224
+ key?: string | null | undefined;
225
+ } | null | undefined;
226
+ sortTitle?: string | undefined;
227
+ expand?: string | undefined;
228
+ collapse?: string | undefined;
229
+ triggerDesc?: string | undefined;
230
+ triggerAsc?: string | undefined;
231
+ cancelSort?: string | undefined;
232
+ } | undefined;
233
+ Modal?: {
234
+ okText?: string | undefined;
235
+ cancelText?: string | undefined;
236
+ justOkText?: string | undefined;
237
+ } | undefined;
238
+ Popconfirm?: {
239
+ okText?: string | undefined;
240
+ cancelText?: string | undefined;
241
+ } | undefined;
242
+ Transfer?: {
243
+ titles?: (string | undefined)[] | undefined;
244
+ notFoundContent?: boolean | import("react").ReactText | {
245
+ type?: string | {} | {} | undefined;
246
+ props?: any;
247
+ key?: string | null | undefined;
248
+ } | {} | {
249
+ [Symbol.iterator]?: {} | undefined;
250
+ } | {
251
+ children?: boolean | import("react").ReactText | {
252
+ type?: string | {} | {} | undefined;
253
+ props?: any;
254
+ key?: string | null | undefined;
255
+ } | {} | {
256
+ [Symbol.iterator]?: {} | undefined;
257
+ } | any | null | undefined;
258
+ type?: string | {} | {} | undefined;
259
+ props?: any;
260
+ key?: string | null | undefined;
261
+ } | null | undefined;
262
+ searchPlaceholder?: string | undefined;
263
+ itemUnit?: string | undefined;
264
+ itemsUnit?: string | undefined;
265
+ remove?: string | undefined;
266
+ selectAll?: string | undefined;
267
+ selectCurrent?: string | undefined;
268
+ selectInvert?: string | undefined;
269
+ removeAll?: string | undefined;
270
+ removeCurrent?: string | undefined;
271
+ } | undefined;
272
+ Select?: {
273
+ constructor?: {
274
+ apply?: {} | undefined;
275
+ call?: {} | undefined;
276
+ bind?: {} | undefined;
277
+ toString?: {} | undefined;
278
+ prototype?: any;
279
+ readonly length?: number | undefined;
280
+ arguments?: any;
281
+ caller?: any | undefined;
282
+ readonly name?: string | undefined;
283
+ [Symbol.hasInstance]?: {} | undefined;
284
+ } | undefined;
285
+ toString?: {} | undefined;
286
+ toLocaleString?: {} | undefined;
287
+ valueOf?: {} | undefined;
288
+ hasOwnProperty?: {} | undefined;
289
+ isPrototypeOf?: {} | undefined;
290
+ propertyIsEnumerable?: {} | undefined;
291
+ } | undefined;
292
+ Upload?: {
293
+ uploading?: string | undefined;
294
+ removeFile?: string | undefined;
295
+ downloadFile?: string | undefined;
296
+ uploadError?: string | undefined;
297
+ previewFile?: string | undefined;
298
+ } | undefined;
299
+ Empty?: {
300
+ description?: string | undefined;
301
+ } | undefined;
302
+ global?: {
303
+ constructor?: {
304
+ apply?: {} | undefined;
305
+ call?: {} | undefined;
306
+ bind?: {} | undefined;
307
+ toString?: {} | undefined;
308
+ prototype?: any;
309
+ readonly length?: number | undefined;
310
+ arguments?: any;
311
+ caller?: any | undefined;
312
+ readonly name?: string | undefined;
313
+ [Symbol.hasInstance]?: {} | undefined;
314
+ } | undefined;
315
+ toString?: {} | undefined;
316
+ toLocaleString?: {} | undefined;
317
+ valueOf?: {} | undefined;
318
+ hasOwnProperty?: {} | undefined;
319
+ isPrototypeOf?: {} | undefined;
320
+ propertyIsEnumerable?: {} | undefined;
321
+ } | undefined;
322
+ PageHeader?: {
323
+ constructor?: {
324
+ apply?: {} | undefined;
325
+ call?: {} | undefined;
326
+ bind?: {} | undefined;
327
+ toString?: {} | undefined;
328
+ prototype?: any;
329
+ readonly length?: number | undefined;
330
+ arguments?: any;
331
+ caller?: any | undefined;
332
+ readonly name?: string | undefined;
333
+ [Symbol.hasInstance]?: {} | undefined;
334
+ } | undefined;
335
+ toString?: {} | undefined;
336
+ toLocaleString?: {} | undefined;
337
+ valueOf?: {} | undefined;
338
+ hasOwnProperty?: {} | undefined;
339
+ isPrototypeOf?: {} | undefined;
340
+ propertyIsEnumerable?: {} | undefined;
341
+ } | undefined;
342
+ Icon?: {
343
+ constructor?: {
344
+ apply?: {} | undefined;
345
+ call?: {} | undefined;
346
+ bind?: {} | undefined;
347
+ toString?: {} | undefined;
348
+ prototype?: any;
349
+ readonly length?: number | undefined;
350
+ arguments?: any;
351
+ caller?: any | undefined;
352
+ readonly name?: string | undefined;
353
+ [Symbol.hasInstance]?: {} | undefined;
354
+ } | undefined;
355
+ toString?: {} | undefined;
356
+ toLocaleString?: {} | undefined;
357
+ valueOf?: {} | undefined;
358
+ hasOwnProperty?: {} | undefined;
359
+ isPrototypeOf?: {} | undefined;
360
+ propertyIsEnumerable?: {} | undefined;
361
+ } | undefined;
362
+ Text?: {
363
+ constructor?: {
364
+ apply?: {} | undefined;
365
+ call?: {} | undefined;
366
+ bind?: {} | undefined;
367
+ toString?: {} | undefined;
368
+ prototype?: any;
369
+ readonly length?: number | undefined;
370
+ arguments?: any;
371
+ caller?: any | undefined;
372
+ readonly name?: string | undefined;
373
+ [Symbol.hasInstance]?: {} | undefined;
374
+ } | undefined;
375
+ toString?: {} | undefined;
376
+ toLocaleString?: {} | undefined;
377
+ valueOf?: {} | undefined;
378
+ hasOwnProperty?: {} | undefined;
379
+ isPrototypeOf?: {} | undefined;
380
+ propertyIsEnumerable?: {} | undefined;
381
+ } | undefined;
382
+ Form?: {
383
+ defaultValidateMessages?: {
384
+ default?: string | {} | undefined;
385
+ required?: string | {} | undefined;
386
+ enum?: string | {} | undefined;
387
+ whitespace?: string | {} | undefined;
388
+ date?: {
389
+ format?: string | {} | undefined;
390
+ parse?: string | {} | undefined;
391
+ invalid?: string | {} | undefined;
392
+ } | undefined;
393
+ types?: {
394
+ string?: string | {} | undefined;
395
+ method?: string | {} | undefined;
396
+ array?: string | {} | undefined;
397
+ object?: string | {} | undefined;
398
+ number?: string | {} | undefined;
399
+ date?: string | {} | undefined;
400
+ boolean?: string | {} | undefined;
401
+ integer?: string | {} | undefined;
402
+ float?: string | {} | undefined;
403
+ regexp?: string | {} | undefined;
404
+ email?: string | {} | undefined;
405
+ url?: string | {} | undefined;
406
+ hex?: string | {} | undefined;
407
+ } | undefined;
408
+ string?: {
409
+ len?: string | {} | undefined;
410
+ min?: string | {} | undefined;
411
+ max?: string | {} | undefined;
412
+ range?: string | {} | undefined;
413
+ } | undefined;
414
+ number?: {
415
+ len?: string | {} | undefined;
416
+ min?: string | {} | undefined;
417
+ max?: string | {} | undefined;
418
+ range?: string | {} | undefined;
419
+ } | undefined;
420
+ array?: {
421
+ len?: string | {} | undefined;
422
+ min?: string | {} | undefined;
423
+ max?: string | {} | undefined;
424
+ range?: string | {} | undefined;
425
+ } | undefined;
426
+ pattern?: {
427
+ mismatch?: string | {} | undefined;
428
+ } | undefined;
429
+ } | undefined;
430
+ } | undefined;
431
+ };
@@ -0,0 +1,2 @@
1
+ declare const useLegacyComponentWarning: (msg?: string) => void;
2
+ export default useLegacyComponentWarning;
@@ -1,4 +1,4 @@
1
- import type { AlertComponentType, ArchComponentType, BadgeComponentType, BaseEnumProps, ButtonGroupType, ButtonProps, CalendarComponentType, CardProps, CloseButtonProps, FieldBaseProps, FieldRenderProps, IAccordionCardProps, IBreadcrumbProps, ICircleProgressProps, IDetailCardProps, IDonutChartProps, IDropdownMenuProps, InputGroupComponentType, InputSize, IntFieldProps, ISegmentedControlProps, ISimplePaginationProps, ISpaceProps, IStepsProps, ITimeProps, ITimeZoneSelectProps, LegacySelectComponentType, LinkComponentType, LoadingComponentType, MessageApi, ModalProps, PaginationProps, PercentFn, RadioButtonProps, RadioProps, SearchInputProps, SelectComponentType, StatusCapsuleComponentType, StringProps, SwitchProps, TableComponent, TableFormHandle, TableFormProps, TagComponentType, TextAreaProps, TokenComponentType, TooltipProps, TruncatePropTypes, UnitFn } from "../core";
1
+ import type { AlertComponentType, ArchComponentType, BadgeComponentType, BaseEnumProps, ButtonGroupType, ButtonProps, CalendarComponentType, CardProps, CloseButtonProps, FieldBaseProps, FieldRenderProps, IAccordionCardProps, IBreadcrumbProps, ICircleProgressProps, IDetailCardProps, IDonutChartProps, IDropdownMenuProps, InputGroupComponentType, InputSize, IntFieldProps, ISegmentedControlProps, ISimplePaginationProps, ISpaceProps, IStepsProps, ITimeProps, ITimeZoneSelectProps, LegacyModalProps, LegacySelectComponentType, LinkComponentType, LoadingComponentType, MessageApi, PaginationProps, PercentFn, RadioButtonProps, RadioProps, SearchInputProps, SelectComponentType, StatusCapsuleComponentType, StringProps, SwitchProps, TableComponent, TableFormHandle, TableFormProps, TagComponentType, TextAreaProps, TokenComponentType, TooltipProps, TruncatePropTypes, UnitFn } from "../core";
2
2
  import type { CronCalendarProps, CronPlanProps, DateRangePickerProps, DeprecatedIDonutChartProps, DropdownTransitionProps, GoBackButtonType, I18nNameTagType, IBatchOperation, IChartWithUnitProps, ICountingProps, ICWTProps, IUnitWithChartProps, NamesTooltipType, OverflowTooltipProps, SidebarSubtitleComponentType, SortableListComponentType, SummaryTableComponentType, SwitchWithTextProps } from "../coreX";
3
3
  import { AutoCompleteProps } from "antd/lib/auto-complete";
4
4
  import { BadgeProps } from "antd/lib/badge";
@@ -107,7 +107,7 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
107
107
  selectOptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
108
108
  table: TableComponent;
109
109
  button: React.FC<ButtonProps>;
110
- modal: React.FC<ModalProps>;
110
+ legacyModal: React.FC<LegacyModalProps>;
111
111
  dropdown: React.FC<DropDownProps>;
112
112
  switch: React.FC<SwitchProps>;
113
113
  tooltip: React.FC<TooltipProps>;
@@ -82,8 +82,8 @@ declare const story: {
82
82
  focusTriggerAfterClose?: boolean | undefined;
83
83
  showCancel?: boolean | undefined;
84
84
  showOk?: boolean | undefined;
85
- okLoading?: boolean | undefined;
86
85
  error?: React.ReactNode;
86
+ hideFooter?: boolean | undefined;
87
87
  showFooterErrorIcon?: boolean | undefined;
88
88
  isContentFull?: boolean | undefined;
89
89
  left?: React.ReactNode;
@@ -105,3 +105,7 @@ export declare const WithError: () => React.JSX.Element;
105
105
  * 初始化状态
106
106
  */
107
107
  export declare const Initializing: () => React.JSX.Element;
108
+ /**
109
+ * 不展示 footer
110
+ */
111
+ export declare const NoFooter: () => React.JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { LegacyModalProps } from "../../../src/core/LegacyModal";
2
+ import { Meta } from "@storybook/react";
3
+ import React from "react";
4
+ /**
5
+ * ⚠️ **此组件已废弃,不再维护**
6
+ *
7
+ * LegacyModal 组件已被标记为废弃。请使用以下替代方案:
8
+ * - 普通对话框:使用 `MediumDialog` 或 `SmallDialog`
9
+ * - 全屏对话框:使用 `ImmersiveDialog`
10
+ * - 向导式对话框:使用 `WizardDialog`
11
+ *
12
+ * 此组件仅为了保持向后兼容性而保留,不建议在新代码中使用。
13
+ */
14
+ declare const story: Meta<LegacyModalProps>;
15
+ export default story;
16
+ export declare const WithAside: {
17
+ (): React.JSX.Element;
18
+ args: {};
19
+ };
20
+ /**
21
+ * 点击弹窗中的 close all modal 按钮,会清理掉页面中的所有弹窗
22
+ */
23
+ export declare const CloseAllModal: () => React.JSX.Element;
@@ -0,0 +1,74 @@
1
+ import { LocalUpload } from "../../../src/core/LocalUpload";
2
+ import { Meta, StoryObj } from "@storybook/react";
3
+ /**
4
+ * LocalUpload 组件用于本地文件上传,支持按钮上传和拖拽上传两种方式。
5
+ *
6
+ * ## 功能特点
7
+ * - 支持单文件和多文件上传
8
+ * - 支持拖拽上传
9
+ * - 支持文件验证
10
+ * - 支持上传进度展示
11
+ * - 支持错误提示
12
+ */
13
+ declare const meta: Meta<typeof LocalUpload>;
14
+ export default meta;
15
+ type Story = StoryObj<typeof LocalUpload>;
16
+ /**
17
+ * 基础的拖拽上传示例
18
+ * 点击或拖拽文件到上传区域即可上传
19
+ */
20
+ export declare const BasicDragger: Story;
21
+ /**
22
+ * 单文件拖拽上传
23
+ * 只允许选择一个文件,选择新文件会替换旧文件
24
+ */
25
+ export declare const SingleFileDragger: Story;
26
+ /**
27
+ * 按钮上传示例
28
+ * 使用按钮触发文件选择对话框
29
+ */
30
+ export declare const ButtonUpload: Story;
31
+ /**
32
+ * 限制文件数量
33
+ * 最多只能上传指定数量的文件
34
+ */
35
+ export declare const MaxCountUpload: Story;
36
+ /**
37
+ * 带文件类型限制的上传
38
+ * 只允许上传指定类型的文件
39
+ */
40
+ export declare const AcceptTypeUpload: Story;
41
+ /**
42
+ * 带文件验证的上传
43
+ * 可以自定义文件验证逻辑,验证失败会显示错误信息
44
+ */
45
+ export declare const ValidatedUpload: Story;
46
+ /**
47
+ * 禁用状态
48
+ * 禁用后无法进行文件上传操作
49
+ */
50
+ export declare const DisabledUpload: Story;
51
+ /**
52
+ * 预填充文件
53
+ */
54
+ export declare const WithPrefilledFiles: Story;
55
+ /**
56
+ * List 类型文件列表
57
+ * 使用标准列表展示文件,包含文件名、文件大小、文件状态等信息
58
+ */
59
+ export declare const ListTypeList: Story;
60
+ /**
61
+ * Info 类型文件列表
62
+ * 以 Info 形式展示文件信息,包含文件名、文件大小、文件状态等信息
63
+ */
64
+ export declare const InfoListType: Story;
65
+ /**
66
+ * 自定义按钮样式
67
+ * 可以隐藏图标或添加自定义类名
68
+ */
69
+ export declare const CustomButtonStyle: Story;
70
+ /**
71
+ * 文件移除回调
72
+ * 监听文件移除事件
73
+ */
74
+ export declare const WithRemoveCallback: Story;
@@ -1,6 +1,6 @@
1
- import React from "react";
2
1
  import { MediumDialog } from "../../../src/core";
3
2
  import { CoreMeta } from "../../types";
3
+ import React from "react";
4
4
  /**
5
5
  * MediumDialog 组件
6
6
  *
@@ -45,3 +45,7 @@ export declare const Initializing: () => React.JSX.Element;
45
45
  * 内容占满视窗
46
46
  */
47
47
  export declare const ContentFull: () => React.JSX.Element;
48
+ /**
49
+ * 不展示 footer
50
+ */
51
+ export declare const NoFooter: () => React.JSX.Element;
@@ -1,6 +1,6 @@
1
- import React from "react";
2
1
  import { SmallDialog } from "../../../src/core";
3
2
  import { CoreMeta } from "../../types";
3
+ import React from "react";
4
4
  /**
5
5
  * SmallDialog 组件
6
6
  *
@@ -39,3 +39,7 @@ export declare const LongContent: () => React.JSX.Element;
39
39
  * 初始化状态
40
40
  */
41
41
  export declare const Initializing: () => React.JSX.Element;
42
+ /**
43
+ * 不展示 footer
44
+ */
45
+ export declare const NoFooter: () => React.JSX.Element;
@@ -0,0 +1,65 @@
1
+ import { Tab } from "../../../src/core/Tab/Tab";
2
+ import type { StoryObj } from "@storybook/react";
3
+ import React from "react";
4
+ /**
5
+ * Tab 是一个标签页组件,支持多个标签页之间的切换。
6
+ *
7
+ * ### 参数说明
8
+ *
9
+ * | 参数 | 说明 | 类型 | 默认值 |
10
+ * | --- | --- | --- | --- |
11
+ * | className | 自定义类名 | string | - |
12
+ * | contentClassName | 内容区域的类名 | string | - |
13
+ * | selectedKey | 当前选中的标签页 key | string | - |
14
+ * | tabs | 标签页配置数组 | TabItem[] | [] |
15
+ * | onChange | 切换标签页时的回调 | (key: string) => void | - |
16
+ * | extraSlot | 额外的插槽内容,显示在标签栏右侧 | React.ReactNode | - |
17
+ *
18
+ * ### TabItem 参数说明
19
+ *
20
+ * | 参数 | 说明 | 类型 | 默认值 |
21
+ * | --- | --- | --- | --- |
22
+ * | key | 唯一标识符 | string | - |
23
+ * | title | 标签页标题,可以是字符串、ReactNode 或函数 | string \| ReactNode \| ((props: { isActive: boolean }) => ReactNode) | - |
24
+ * | onClick | 点击标签页时的回调 | () => void | - |
25
+ * | children | 标签页内容 | React.ReactNode | - |
26
+ *
27
+ * ### 特性
28
+ * - 支持响应式布局,当空间不够时自动将多余的标签页放入下拉菜单
29
+ * - 支持自定义标题(可通过函数形式获取激活状态)
30
+ * - 支持在标签栏右侧添加额外内容
31
+ * - 支持自定义内容区域的样式
32
+ */
33
+ declare const meta: {
34
+ component: (props: import("../../../src/core/Tab/Tab.type").TabProps) => React.JSX.Element;
35
+ title: "Core/Tab | 标签页";
36
+ };
37
+ export default meta;
38
+ type Story = StoryObj<typeof Tab>;
39
+ /**
40
+ * 基础的标签页用法,展示如何创建和使用标签页组件
41
+ */
42
+ export declare const Basic: Story;
43
+ /**
44
+ * 当有大量标签页时,组件会自动计算可用空间,将无法完整显示的标签页放入下拉菜单中
45
+ */
46
+ export declare const ResponsiveLayout: Story;
47
+ /**
48
+ * 标签页标题支持函数形式,可以接收 isActive 参数来判断当前是否激活
49
+ */
50
+ export declare const CustomTitle: Story;
51
+ /**
52
+ * extraSlot 可以在标签栏右侧添加额外的内容,如按钮、图标等
53
+ */
54
+ export declare const WithExtraSlot: Story;
55
+ /**
56
+ * 展示实际业务场景中的使用方式,包含复杂的标签内容和操作
57
+ */
58
+ export declare const ComplexContent: Story;
59
+ /**
60
+ * 支持动态添加和删除标签页的场景。
61
+ * - 在 extraSlot 中提供"新增标签"按钮
62
+ * - 每个标签页标题右侧显示删除图标
63
+ * - 可以动态添加和删除标签页
64
+ */
65
+ export declare const DynamicTabs: Story;
@@ -5,6 +5,7 @@ export declare const OnlyLeftWizardDialog: () => React.JSX.Element;
5
5
  export declare const CustomStepsWizardDialog: () => React.JSX.Element;
6
6
  export declare const ScrollableWizardDialog: () => React.JSX.Element;
7
7
  export declare const InitializingWizardDialog: () => React.JSX.Element;
8
+ export declare const NoFooterWizardDialog: () => React.JSX.Element;
8
9
  declare const story: {
9
10
  title: "Core/WizardDialog | 向导弹窗";
10
11
  component: typeof WizardDialog;
@@ -84,8 +85,8 @@ declare const story: {
84
85
  focusTriggerAfterClose?: boolean | undefined;
85
86
  showCancel?: boolean | undefined;
86
87
  showOk?: boolean | undefined;
87
- okLoading?: boolean | undefined;
88
88
  error?: React.ReactNode;
89
+ hideFooter?: boolean | undefined;
89
90
  showFooterErrorIcon?: boolean | undefined;
90
91
  isContentFull?: boolean | undefined;
91
92
  left?: React.ReactNode;