@cloudtower/eagle 0.27.70 → 0.27.71

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 (269) hide show
  1. package/dist/cjs/UIKitProvider/index.js +5 -5
  2. package/dist/cjs/antd.js +151 -0
  3. package/dist/cjs/core/Arch/index.js +3 -1
  4. package/dist/cjs/core/ButtonGroup/index.js +2 -1
  5. package/dist/cjs/core/Cascader/index.js +16 -0
  6. package/dist/cjs/core/DonutChart/index.js +9 -0
  7. package/dist/cjs/core/Error/index.js +12 -0
  8. package/dist/cjs/core/ErrorBoundary/index.js +27 -0
  9. package/dist/cjs/core/Metric/MetricActions.js +18 -0
  10. package/dist/cjs/core/Metric/MetricLegend.js +73 -0
  11. package/dist/cjs/core/Metric/Pointer.js +45 -0
  12. package/dist/cjs/core/Metric/RenderChart.js +203 -0
  13. package/dist/cjs/core/Metric/TooltipFormatter.js +45 -0
  14. package/dist/cjs/core/Metric/index.js +63 -0
  15. package/dist/cjs/core/Metric/metric.js +146 -0
  16. package/dist/cjs/core/Metric/styled.js +33 -0
  17. package/dist/cjs/core/Metric/type.js +16 -0
  18. package/dist/cjs/core/Overflow/index.js +2 -1
  19. package/dist/cjs/core/Progress/index.js +2 -0
  20. package/dist/cjs/core/SidebarMenu/SidebarMenu.js +33 -0
  21. package/dist/cjs/core/StatusCapsule/index.js +7 -7
  22. package/dist/cjs/core/Styled/index.js +139 -0
  23. package/dist/cjs/core/Table/TableWidget.js +6 -1
  24. package/dist/cjs/core/Table/index.js +4 -1
  25. package/dist/cjs/core/TableForm/index.js +5 -3
  26. package/dist/cjs/core/Tag/SplitTag.js +2 -2
  27. package/dist/cjs/core/Tag/const.js +2 -2
  28. package/dist/cjs/core/Tag/index.js +4 -4
  29. package/dist/cjs/core/Token/index.js +3 -3
  30. package/dist/cjs/core/index.js +32 -0
  31. package/dist/cjs/core/message/index.js +4 -0
  32. package/dist/cjs/coreX/CronPlan/index.js +2 -1
  33. package/dist/cjs/coreX/DateRangePicker/AbsoluteDate.js +2 -2
  34. package/dist/cjs/coreX/DateRangePicker/Calendar.js +5 -3
  35. package/dist/cjs/coreX/DateRangePicker/InputTime.js +1 -1
  36. package/dist/cjs/coreX/DateRangePicker/RelativeTime.js +2 -2
  37. package/dist/cjs/coreX/DateRangePicker/index.js +1 -1
  38. package/dist/cjs/coreX/I18nNameTag/index.js +1 -1
  39. package/dist/cjs/index.js +456 -82
  40. package/dist/cjs/legacy-antd.js +213 -0
  41. package/dist/cjs/stats1.html +1 -1
  42. package/dist/cjs/store/chart.js +7 -0
  43. package/dist/cjs/store/index.js +1 -0
  44. package/dist/components.css +2916 -2916
  45. package/dist/esm/UIKitProvider/index.js +1 -1
  46. package/dist/esm/antd.js +16 -0
  47. package/dist/esm/core/ButtonGroup/index.js +2 -1
  48. package/dist/esm/core/Cascader/index.js +3 -1
  49. package/dist/esm/core/DonutChart/index.js +9 -1
  50. package/dist/esm/core/Error/index.js +6 -0
  51. package/dist/esm/core/ErrorBoundary/index.js +21 -0
  52. package/dist/esm/core/Metric/MetricActions.js +12 -0
  53. package/dist/esm/core/Metric/MetricLegend.js +62 -0
  54. package/dist/esm/core/Metric/Pointer.js +38 -0
  55. package/dist/esm/core/Metric/RenderChart.js +195 -0
  56. package/dist/esm/core/Metric/TooltipFormatter.js +39 -0
  57. package/dist/esm/core/Metric/index.js +52 -0
  58. package/dist/esm/core/Metric/metric.js +138 -2
  59. package/dist/esm/core/Metric/styled.js +24 -0
  60. package/dist/esm/core/Metric/type.js +13 -0
  61. package/dist/esm/core/Overflow/index.js +2 -1
  62. package/dist/esm/core/Progress/index.js +2 -1
  63. package/dist/esm/core/SidebarMenu/SidebarMenu.js +27 -0
  64. package/dist/esm/core/StatusCapsule/index.js +3 -3
  65. package/dist/esm/core/Styled/index.js +112 -1
  66. package/dist/esm/core/Table/TableWidget.js +5 -2
  67. package/dist/esm/core/Table/index.js +5 -3
  68. package/dist/esm/core/TableForm/index.js +2 -2
  69. package/dist/esm/core/Tag/SplitTag.js +3 -3
  70. package/dist/esm/core/Tag/const.js +2 -2
  71. package/dist/esm/core/Tag/index.js +5 -5
  72. package/dist/esm/core/Token/index.js +3 -3
  73. package/dist/esm/core/index.js +21 -0
  74. package/dist/esm/core/message/index.js +4 -1
  75. package/dist/esm/coreX/CronPlan/index.js +2 -1
  76. package/dist/esm/coreX/DateRangePicker/AbsoluteDate.js +2 -2
  77. package/dist/esm/coreX/DateRangePicker/Calendar.js +5 -3
  78. package/dist/esm/coreX/DateRangePicker/InputTime.js +1 -1
  79. package/dist/esm/coreX/DateRangePicker/RelativeTime.js +2 -2
  80. package/dist/esm/coreX/DateRangePicker/index.js +1 -1
  81. package/dist/esm/coreX/I18nNameTag/index.js +1 -1
  82. package/dist/esm/index.js +104 -18
  83. package/dist/esm/legacy-antd.js +206 -0
  84. package/dist/esm/stats1.html +1 -1
  85. package/dist/esm/store/chart.js +7 -1
  86. package/dist/esm/store/index.js +1 -0
  87. package/dist/src/UIKitProvider/UIKitProvider.stories.d.ts +1 -1
  88. package/dist/src/antd.d.ts +45 -0
  89. package/dist/src/core/AccordionCard/accordionCard.type.d.ts +9 -0
  90. package/dist/src/core/AccordionCard/index.d.ts +3 -8
  91. package/dist/src/core/Alert/alert.type.d.ts +6 -0
  92. package/dist/src/core/Alert/index.d.ts +2 -1
  93. package/dist/src/core/Arch/arch.type.d.ts +8 -0
  94. package/dist/src/core/Arch/index.d.ts +2 -1
  95. package/dist/src/core/Badge/badge.type.d.ts +7 -0
  96. package/dist/src/core/Badge/index.d.ts +2 -1
  97. package/dist/src/core/Bit/index.d.ts +1 -1
  98. package/dist/src/core/BitPerSecond/index.d.ts +1 -1
  99. package/dist/src/core/Bps/index.d.ts +1 -1
  100. package/dist/src/core/Breadcrumb/breadcrumb.type.d.ts +11 -0
  101. package/dist/src/core/Breadcrumb/index.d.ts +2 -1
  102. package/dist/src/core/Button/button.type.d.ts +20 -0
  103. package/dist/src/core/Button/index.d.ts +1 -0
  104. package/dist/src/core/ButtonGroup/index.d.ts +1 -1
  105. package/dist/src/core/Byte/index.d.ts +1 -1
  106. package/dist/src/core/Calendar/calendar.type.d.ts +4 -0
  107. package/dist/src/core/Calendar/index.d.ts +2 -1
  108. package/dist/src/core/Cascader/cascader.type.d.ts +1 -1
  109. package/dist/src/core/Cascader/index.d.ts +3 -0
  110. package/dist/src/core/DetailCard/detailCard.type.d.ts +4 -0
  111. package/dist/src/core/DetailCard/index.d.ts +2 -1
  112. package/dist/src/core/DropdownMenu/dropdownMenu.type.d.ts +28 -0
  113. package/dist/src/core/DropdownMenu/index.d.ts +3 -17
  114. package/dist/src/core/Error/index.d.ts +5 -0
  115. package/dist/src/core/ExpandableList/index.d.ts +8 -0
  116. package/dist/src/core/Fields/FieldsBoolean/index.d.ts +1 -1
  117. package/dist/src/core/Fields/FieldsDateTime/index.d.ts +1 -1
  118. package/dist/src/core/Fields/FieldsDateTimeRange/index.d.ts +1 -1
  119. package/dist/src/core/Fields/FieldsEnum/fieldsEnum.type.d.ts +19 -0
  120. package/dist/src/core/Fields/FieldsEnum/index.d.ts +2 -1
  121. package/dist/src/core/Fields/FieldsInt/fieldsInt.type.d.ts +15 -0
  122. package/dist/src/core/Fields/FieldsInt/index.d.ts +2 -1
  123. package/dist/src/core/Fields/FieldsString/fieldsString.type.d.ts +17 -0
  124. package/dist/src/core/Fields/FieldsString/index.d.ts +3 -1
  125. package/dist/src/core/Fields/FieldsTextArea/index.d.ts +1 -1
  126. package/dist/src/core/Fields/FieldsTimePicker/index.d.ts +1 -1
  127. package/dist/src/{spec/react-final-form.d.ts → core/Fields/fields.type.d.ts} +15 -10
  128. package/dist/src/core/Fields/index.d.ts +21 -10
  129. package/dist/src/core/Frequency/index.d.ts +1 -1
  130. package/dist/src/core/Input/index.d.ts +1 -0
  131. package/dist/src/core/Input/input.type.d.ts +14 -0
  132. package/dist/src/core/InputGroup/index.d.ts +1 -0
  133. package/dist/src/core/InputGroup/inputGroup.type.d.ts +4 -0
  134. package/dist/src/core/InputInteger/index.d.ts +1 -1
  135. package/dist/src/core/InputNumber/index.d.ts +1 -1
  136. package/dist/src/core/Link/index.d.ts +2 -1
  137. package/dist/src/core/Link/link.type.d.ts +6 -0
  138. package/dist/src/core/Loading/index.d.ts +2 -1
  139. package/dist/src/core/Loading/loading.type.d.ts +4 -0
  140. package/dist/src/core/Modal/index.d.ts +2 -1
  141. package/dist/src/core/Modal/modal.type.d.ts +28 -0
  142. package/dist/src/core/Pagination/index.d.ts +2 -1
  143. package/dist/src/core/Pagination/pagination.type.d.ts +11 -0
  144. package/dist/src/core/Percent/index.d.ts +1 -1
  145. package/dist/src/core/Progress/index.d.ts +2 -0
  146. package/dist/src/core/Progress/progress.type.d.ts +2 -1
  147. package/dist/src/core/Radio/index.d.ts +2 -1
  148. package/dist/src/core/Radio/radio.type.d.ts +16 -0
  149. package/dist/src/core/SearchInput/index.d.ts +2 -1
  150. package/dist/src/core/SearchInput/searchInput.type.d.ts +7 -0
  151. package/dist/src/core/Second/index.d.ts +1 -1
  152. package/dist/src/core/SegmentControl/index.d.ts +2 -1
  153. package/dist/src/core/SegmentControl/segmentControl.type.d.ts +4 -0
  154. package/dist/src/core/Select/index.d.ts +2 -1
  155. package/dist/src/core/Select/select.type.d.ts +32 -0
  156. package/dist/src/core/SimplePagination/index.d.ts +2 -1
  157. package/dist/src/core/SimplePagination/simplePagination.type.d.ts +7 -0
  158. package/dist/src/core/Space/index.d.ts +1 -0
  159. package/dist/src/core/Space/space.type.d.ts +10 -0
  160. package/dist/src/core/Speed/index.d.ts +1 -1
  161. package/dist/src/core/StatusCapsule/index.d.ts +3 -2
  162. package/dist/src/core/StatusCapsule/statusCapsule.type.d.ts +10 -0
  163. package/dist/src/core/StepProgress/index.d.ts +2 -1
  164. package/dist/src/core/StepProgress/stepProgress.type.d.ts +5 -0
  165. package/dist/src/core/Steps/index.d.ts +2 -1
  166. package/dist/src/core/Steps/steps.type.d.ts +19 -0
  167. package/dist/src/core/Switch/index.d.ts +2 -1
  168. package/dist/src/core/Switch/switch.type.d.ts +4 -0
  169. package/dist/src/core/Table/index.d.ts +2 -1
  170. package/dist/src/core/Table/table.type.d.ts +73 -0
  171. package/dist/src/core/TableForm/Columns/index.d.ts +10 -10
  172. package/dist/src/core/TableForm/index.d.ts +1 -0
  173. package/dist/src/core/TableForm/types.d.ts +1 -1
  174. package/dist/src/core/Tag/SplitTag.d.ts +1 -1
  175. package/dist/src/core/Tag/const.d.ts +1 -1
  176. package/dist/src/core/Tag/index.d.ts +3 -2
  177. package/dist/src/core/Tag/tag.type.d.ts +22 -0
  178. package/dist/src/core/TextArea/index.d.ts +2 -1
  179. package/dist/src/core/TextArea/textArea.type.d.ts +10 -0
  180. package/dist/src/core/Time/index.d.ts +2 -1
  181. package/dist/src/core/Time/time.type.d.ts +7 -0
  182. package/dist/src/core/TimeZoneSelect/index.d.ts +2 -1
  183. package/dist/src/core/TimeZoneSelect/timeZoneSelect.type.d.ts +9 -0
  184. package/dist/src/core/Token/index.d.ts +4 -3
  185. package/dist/src/core/Token/token.type.d.ts +12 -0
  186. package/dist/src/core/Tooltip/index.d.ts +1 -0
  187. package/dist/src/core/Units/index.d.ts +1 -0
  188. package/dist/src/core/Units/units.type.d.ts +17 -0
  189. package/dist/src/core/index.d.ts +140 -22
  190. package/dist/src/coreX/BatchOperation/batchOperation.type.d.ts +31 -0
  191. package/dist/src/coreX/BatchOperation/index.d.ts +2 -1
  192. package/dist/src/coreX/Counting/counting.type.d.ts +6 -0
  193. package/dist/src/coreX/Counting/index.d.ts +2 -1
  194. package/dist/src/coreX/CronCalendar/cronCalendar.type.d.ts +8 -0
  195. package/dist/src/coreX/CronCalendar/index.d.ts +2 -1
  196. package/dist/src/coreX/CronPlan/cronPlan.type.d.ts +13 -0
  197. package/dist/src/coreX/CronPlan/index.d.ts +2 -1
  198. package/dist/src/coreX/DateRangePicker/AbsoluteDate.d.ts +1 -1
  199. package/dist/src/coreX/DateRangePicker/Calendar.d.ts +1 -1
  200. package/dist/src/coreX/DateRangePicker/InputTime.d.ts +1 -1
  201. package/dist/src/coreX/DateRangePicker/RelativeTime.d.ts +1 -1
  202. package/dist/src/coreX/DateRangePicker/common.d.ts +2 -60
  203. package/dist/src/coreX/DateRangePicker/dateRangePicker.type.d.ts +64 -0
  204. package/dist/src/coreX/DateRangePicker/index.d.ts +4 -3
  205. package/dist/src/coreX/DropdownTransition/dropdownTransition.type.d.ts +4 -0
  206. package/dist/src/coreX/DropdownTransition/index.d.ts +1 -0
  207. package/dist/src/coreX/GoBackButton/goBackButton.type.d.ts +18 -0
  208. package/dist/src/coreX/GoBackButton/index.d.ts +2 -1
  209. package/dist/src/coreX/I18nNameTag/i18nNameTag.type.d.ts +14 -0
  210. package/dist/src/coreX/I18nNameTag/index.d.ts +2 -1
  211. package/dist/src/coreX/NamesTooltip/index.d.ts +2 -1
  212. package/dist/src/coreX/NamesTooltip/namesTooltip.type.d.ts +6 -0
  213. package/dist/src/coreX/OverflowTooltip/index.d.ts +1 -0
  214. package/dist/src/coreX/SidebarSubtitle/index.d.ts +2 -1
  215. package/dist/src/coreX/SidebarSubtitle/sidebarSubtitle.type.d.ts +5 -0
  216. package/dist/src/coreX/SortableList/index.d.ts +2 -1
  217. package/dist/src/coreX/SortableList/sortableList.type.d.ts +7 -0
  218. package/dist/src/coreX/SummaryTable/index.d.ts +2 -1
  219. package/dist/src/coreX/SummaryTable/summaryTable.type.d.ts +31 -0
  220. package/dist/src/coreX/SwitchWithText/index.d.ts +2 -1
  221. package/dist/src/coreX/SwitchWithText/switchWithText.type.d.ts +9 -0
  222. package/dist/src/coreX/TruncatedTextWithTooltip/index.d.ts +2 -1
  223. package/dist/src/coreX/TruncatedTextWithTooltip/truncatedTextWithTooltip.type.d.ts +5 -0
  224. package/dist/src/coreX/UnitWithChart/index.d.ts +8 -8
  225. package/dist/src/coreX/common/index.d.ts +1 -0
  226. package/dist/src/coreX/index.d.ts +38 -4
  227. package/dist/src/index.d.ts +5 -40
  228. package/dist/src/{core/antd.d.ts → legacy-antd.d.ts} +1 -1
  229. package/dist/src/spec/base.d.ts +7 -456
  230. package/dist/src/spec/index.d.ts +0 -1
  231. package/dist/stories/docs/core/Alert.stories.d.ts +1 -1
  232. package/dist/stories/docs/core/Arch.stories.d.ts +1 -1
  233. package/dist/stories/docs/core/Bit.stories.d.ts +6 -6
  234. package/dist/stories/docs/core/BitPerSecond.stories.d.ts +6 -6
  235. package/dist/stories/docs/core/Bps.stories.d.ts +6 -6
  236. package/dist/stories/docs/core/Byte.stories.d.ts +6 -6
  237. package/dist/stories/docs/core/FieldsBoolean.stories.d.ts +2 -2
  238. package/dist/stories/docs/core/FieldsString.stories.d.ts +8 -8
  239. package/dist/stories/docs/core/FieldsTimePicker.stories.d.ts +2 -2
  240. package/dist/stories/docs/core/Frequency.stories.d.ts +6 -6
  241. package/dist/stories/docs/core/Icon.stories.d.ts +6 -6
  242. package/dist/stories/docs/core/Link.stories.d.ts +1 -1
  243. package/dist/stories/docs/core/Modal.stories.d.ts +1 -1
  244. package/dist/stories/docs/core/Percent.stories.d.ts +10 -10
  245. package/dist/stories/docs/core/Second.stories.d.ts +8 -8
  246. package/dist/stories/docs/core/Speed.stories.d.ts +6 -6
  247. package/dist/stories/docs/core/StatusCapsule.stories.d.ts +1 -1
  248. package/dist/stories/docs/core/Steps.stories.d.ts +1 -1
  249. package/dist/stories/docs/core/Table.stories.d.ts +4 -4
  250. package/dist/stories/docs/core/Tag.stories.d.ts +1 -1
  251. package/dist/stories/docs/core/Token.stories.d.ts +1 -1
  252. package/dist/stories/docs/core/Tooltip.stories.d.ts +1 -1
  253. package/dist/stories/docs/coreX/CronCalendar.stories.d.ts +1 -1
  254. package/dist/stories/docs/coreX/CronPlan.stories.d.ts +1 -1
  255. package/dist/stories/docs/coreX/GoBackButton.stories.d.ts +1 -1
  256. package/dist/stories/docs/coreX/NamesTooltip.stories.d.ts +1 -1
  257. package/dist/stories/docs/coreX/SidebarSubtitle.stories.d.ts +1 -1
  258. package/dist/stories/docs/coreX/SortableList.stories.d.ts +1 -1
  259. package/dist/stories/docs/coreX/SummaryTable.stories.d.ts +1 -1
  260. package/dist/stories/docs/coreX/SwitchWithText.stories.d.ts +1 -1
  261. package/dist/stories/docs/coreX/TruncatedTextWithTooltip.stories.d.ts +1 -1
  262. package/dist/stories/types.d.ts +1 -1
  263. package/dist/style.css +2921 -2921
  264. package/package.json +5 -5
  265. package/dist/cjs/core/antd.js +0 -212
  266. package/dist/esm/core/antd.js +0 -205
  267. package/dist/src/spec/type.d.ts +0 -157
  268. /package/dist/cjs/{spec/type.js → core/Arch/arch.type.js} +0 -0
  269. /package/dist/esm/{spec/type.js → core/Arch/arch.type.js} +0 -0
@@ -1,12 +1,13 @@
1
- import { TokenColor } from "../../spec";
2
1
  import React from "react";
3
- export declare const PresetColors: TokenColor[];
2
+ import { TokenColor } from "./token.type";
3
+ export declare const TokenPresetColors: TokenColor[];
4
4
  declare const Token: React.ForwardRefExoticComponent<Omit<import("antd/lib/tag").TagProps, "closeIcon"> & {
5
5
  color?: TokenColor | undefined;
6
- size?: "small" | "medium" | "large" | undefined;
6
+ size?: "small" | "large" | "medium" | undefined;
7
7
  checked?: boolean | undefined;
8
8
  tooltipConfig?: {
9
9
  title: string;
10
10
  } | undefined;
11
11
  } & React.RefAttributes<HTMLDivElement>>;
12
12
  export default Token;
13
+ export * from "./token.type";
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { TagProps as AntdTagProps } from "antd/lib/tag";
3
+ export type TokenColor = "red" | "yellow" | "green" | "blue" | "gray" | "purple";
4
+ export type TokenType = Omit<AntdTagProps, "closeIcon"> & {
5
+ color?: TokenColor;
6
+ size?: "small" | "medium" | "large";
7
+ checked?: boolean;
8
+ tooltipConfig?: {
9
+ title: string;
10
+ };
11
+ };
12
+ export type TokenComponentType = React.ForwardRefExoticComponent<TokenType & React.RefAttributes<HTMLDivElement>>;
@@ -2,3 +2,4 @@ import React from "react";
2
2
  import { TooltipProps } from "./tooltip.type";
3
3
  declare const Tooltip: React.FunctionComponent<TooltipProps>;
4
4
  export default Tooltip;
5
+ export * from "./tooltip.type";
@@ -0,0 +1 @@
1
+ export * from "./units.type";
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { IEmptyProps } from "../Empty";
3
+ export interface RawValue {
4
+ rawValue?: number | null;
5
+ decimals?: number;
6
+ noUnitOnZero?: boolean;
7
+ abbreviate?: boolean;
8
+ valueClassName?: string;
9
+ unitClassName?: string;
10
+ }
11
+ export type PercentFn = React.FC<RawValue & {
12
+ saturated?: boolean;
13
+ emptyProps?: IEmptyProps;
14
+ }>;
15
+ export type UnitFn = React.FC<RawValue & {
16
+ emptyProps?: IEmptyProps;
17
+ }>;
@@ -1,42 +1,160 @@
1
- export * from "./antd";
2
- export { default as BaseIcon } from "./BaseIcon";
1
+ export * from "./AccordionCard";
2
+ export * from "./Alert";
3
+ export * from "./Arch";
4
+ export * from "./Badge";
5
+ export * from "./BaseIcon";
3
6
  export * from "./BaseIcon";
7
+ export * from "./Bit";
8
+ export * from "./BitPerSecond";
9
+ export * from "./Bps";
10
+ export * from "./Breadcrumb";
11
+ export * from "./Button";
4
12
  export * from "./Button";
5
- export { default as Button } from "./Button";
6
13
  export * from "./ButtonGroup";
7
- export type * from "./Card";
8
- export { default as ErrorBoundary } from "./ErrorBoundary";
9
- export { default as FailedLoad } from "./FailedLoad";
10
- export type { IconProps } from "./Icon";
11
- export { default as Icon } from "./Icon";
12
- export { default as InputTagItem } from "./InputTagItem";
14
+ export * from "./ButtonGroup";
15
+ export * from "./Byte";
16
+ export * from "./Calendar";
17
+ export * from "./Card";
18
+ export * from "./Cascader";
19
+ export * from "./Checkbox";
20
+ export * from "./DeprecatedProgress";
21
+ export * from "./DetailCard";
22
+ export * from "./DonutChart";
23
+ export * from "./DropdownMenu";
24
+ export * from "./Empty";
25
+ export * from "./ErrorBoundary";
26
+ export * from "./ExpandableList";
27
+ export * from "./ExpandableList";
28
+ export * from "./FailedLoad";
29
+ export * from "./Fields";
30
+ export * from "./Form";
31
+ export * from "./FormItem";
32
+ export * from "./Frequency";
33
+ export * from "./Icon";
34
+ export * from "./Input";
35
+ export * from "./InputGroup";
36
+ export * from "./InputInteger";
37
+ export * from "./InputNumber";
38
+ export * from "./InputTagItem";
13
39
  export * from "./KitStoreProvider";
14
- export { default as KitStoreProvider } from "./KitStoreProvider";
15
- export { default as Loading } from "./Loading";
40
+ export * from "./Link";
41
+ export * from "./Loading";
42
+ export * from "./message";
16
43
  export * from "./message-group";
17
44
  export * from "./Metric";
18
- export { default as Metric } from "./Metric";
45
+ export * from "./Metric";
19
46
  export * from "./Modal";
20
- export { default as ModalStack } from "./ModalStack";
47
+ export * from "./Modal";
48
+ export * from "./ModalStack";
21
49
  export * from "./Overflow";
50
+ export * from "./Overflow";
51
+ export * from "./Pagination";
22
52
  export * from "./Pagination";
53
+ export * from "./ParrotTrans";
54
+ export * from "./Percent";
55
+ export * from "./Progress";
23
56
  export * from "./Radio";
57
+ export * from "./Radio";
58
+ export * from "./SearchInput";
59
+ export * from "./Second";
60
+ export * from "./SegmentControl";
61
+ export * from "./Select";
24
62
  export * from "./SidebarMenu";
63
+ export * from "./SimplePagination";
64
+ export * from "./Space";
65
+ export * from "./Speed";
66
+ export * from "./StatusCapsule";
67
+ export * from "./StepProgress";
68
+ export * from "./Steps";
25
69
  export * from "./Steps";
26
70
  export * from "./Styled";
71
+ export * from "./Styled";
72
+ export * from "./Switch";
27
73
  export * from "./Switch";
28
74
  export * from "./Table";
75
+ export * from "./TableForm";
76
+ export * from "./Tag";
77
+ export * from "./TextArea";
78
+ export * from "./Time";
79
+ export * from "./TimePicker";
29
80
  export * from "./TimeZoneSelect";
81
+ export * from "./Token";
30
82
  export * from "./Tooltip";
31
- export { default as Truncate } from "./Truncate";
83
+ export * from "./Truncate";
32
84
  export * from "./Typo";
85
+ export * from "./Units";
33
86
  export declare const units: {
34
- Percent: import("../spec").PercentFn;
35
- Byte: import("../spec").UnitFn;
36
- Frequency: import("../spec").UnitFn;
37
- Speed: import("../spec").UnitFn;
38
- Bps: import("../spec").UnitFn;
39
- BitPerSecond: import("../spec").UnitFn;
40
- Bit: import("../spec").UnitFn;
41
- Second: import("../spec").UnitFn;
87
+ Percent: import("./Units").PercentFn;
88
+ Byte: import("./Units").UnitFn;
89
+ Frequency: import("./Units").UnitFn;
90
+ Speed: import("./Units").UnitFn;
91
+ Bps: import("./Units").UnitFn;
92
+ BitPerSecond: import("./Units").UnitFn;
93
+ Bit: import("./Units").UnitFn;
94
+ Second: import("./Units").UnitFn;
42
95
  };
96
+ export { units as Units };
97
+ export { default as AccordionCard } from "./AccordionCard";
98
+ export { default as Alert } from "./Alert";
99
+ export { default as Arch } from "./Arch";
100
+ export { default as Badge } from "./Badge";
101
+ export { default as BaseIcon } from "./BaseIcon";
102
+ export { default as Bit } from "./Bit";
103
+ export { default as BitPerSecond } from "./BitPerSecond";
104
+ export { default as Bps } from "./Bps";
105
+ export { default as Breadcrumb } from "./Breadcrumb";
106
+ export { default as Button } from "./Button";
107
+ export { default as ButtonGroup } from "./ButtonGroup";
108
+ export { default as Byte } from "./Byte";
109
+ export { default as Calendar } from "./Calendar";
110
+ export { default as Card } from "./Card";
111
+ export { default as Checkbox } from "./Checkbox";
112
+ export { default as DeprecatedProgress } from "./DeprecatedProgress";
113
+ export { default as DetailCard } from "./DetailCard";
114
+ export { default as DonutChart } from "./DonutChart";
115
+ export { default as DropdownMenu } from "./DropdownMenu";
116
+ export { default as Empty } from "./Empty";
117
+ export { default as Error } from "./Error";
118
+ export { default as ErrorBoundary } from "./ErrorBoundary";
119
+ export { default as FailedLoad } from "./FailedLoad";
120
+ export { default as Fields } from "./Fields";
121
+ export { default as Form } from "./Form";
122
+ export { default as FormItem } from "./FormItem";
123
+ export { default as Frequency } from "./Frequency";
124
+ export { default as Icon } from "./Icon";
125
+ export { default as Input } from "./Input";
126
+ export { default as InputGroup } from "./InputGroup";
127
+ export { default as InputInteger } from "./InputInteger";
128
+ export { default as InputNumber } from "./InputNumber";
129
+ export { default as InputTagItem } from "./InputTagItem";
130
+ export { default as KitStoreProvider } from "./KitStoreProvider";
131
+ export { default as Link } from "./Link";
132
+ export { default as Loading } from "./Loading";
133
+ export { default as message } from "./message";
134
+ export { default as Metric } from "./Metric";
135
+ export { default as Modal } from "./Modal";
136
+ export { default as ModalStack } from "./ModalStack";
137
+ export { default as Overflow } from "./Overflow";
138
+ export { default as Pagination } from "./Pagination";
139
+ export { default as Percent } from "./Percent";
140
+ export { default as Radio } from "./Radio";
141
+ export { default as SearchInput } from "./SearchInput";
142
+ export { default as Second } from "./Second";
143
+ export { default as SegmentControl } from "./SegmentControl";
144
+ export { default as Select } from "./Select";
145
+ export { default as SimplePagination } from "./SimplePagination";
146
+ export { default as Space } from "./Space";
147
+ export { default as Speed } from "./Speed";
148
+ export { default as StatusCapsule } from "./StatusCapsule";
149
+ export { default as Steps } from "./Steps";
150
+ export { default as Switch } from "./Switch";
151
+ export { default as Table } from "./Table";
152
+ export { default as TableForm } from "./TableForm";
153
+ export { default as Tag } from "./Tag";
154
+ export { default as TextArea } from "./TextArea";
155
+ export { default as Time } from "./Time";
156
+ export { default as TimePicker } from "./TimePicker";
157
+ export { default as TimeZoneSelect } from "./TimeZoneSelect";
158
+ export { default as Token } from "./Token";
159
+ export { default as Tooltip } from "./Tooltip";
160
+ export { default as Truncate } from "./Truncate";
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ export type NormalAction = {
3
+ key: string;
4
+ icon?: React.ReactElement;
5
+ title: string;
6
+ onClick: () => void;
7
+ danger?: boolean;
8
+ count?: number;
9
+ disabled?: boolean;
10
+ tooltip?: string;
11
+ };
12
+ type SubAction = {
13
+ key: string;
14
+ icon?: React.ReactElement;
15
+ title: string;
16
+ children: Array<Action>;
17
+ danger?: boolean;
18
+ canMove?: {
19
+ id: string;
20
+ }[];
21
+ canDelete?: {
22
+ id: string;
23
+ }[];
24
+ };
25
+ export type Action = NormalAction | SubAction | "divider";
26
+ export interface IBatchOperation {
27
+ count: number;
28
+ onClearSelection: () => void;
29
+ actions: Action[];
30
+ }
31
+ export {};
@@ -1,5 +1,5 @@
1
- import { Action } from "../../spec/type";
2
1
  import React from "react";
2
+ import { Action } from "./batchOperation.type";
3
3
  export declare const renderBatchOperationMenuItem: (act: Action, idx?: number) => JSX.Element;
4
4
  declare const BatchOperation: React.FC<{
5
5
  count: number;
@@ -7,3 +7,4 @@ declare const BatchOperation: React.FC<{
7
7
  actions: Action[];
8
8
  }>;
9
9
  export default BatchOperation;
10
+ export * from "./batchOperation.type";
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export interface ICountingProps {
3
+ stop?: boolean;
4
+ interval?: number;
5
+ render: () => React.ReactNode;
6
+ }
@@ -1,4 +1,5 @@
1
- import { ICountingProps } from "../../spec";
2
1
  import React from "react";
2
+ import { ICountingProps } from "./counting.type";
3
3
  declare const Counting: React.FC<ICountingProps>;
4
4
  export default Counting;
5
+ export * from "./counting.type";
@@ -0,0 +1,8 @@
1
+ import type { Dayjs } from "dayjs";
2
+ export type CronCalendarProps = {
3
+ plans: {
4
+ expression: string;
5
+ startAt: Dayjs;
6
+ empty: boolean;
7
+ }[];
8
+ };
@@ -1,4 +1,5 @@
1
- import { CronCalendarProps } from "../../spec";
2
1
  import React from "react";
2
+ import { CronCalendarProps } from "./cronCalendar.type";
3
3
  declare const CronCalendar: React.FC<CronCalendarProps>;
4
4
  export default CronCalendar;
5
+ export * from "./cronCalendar.type";
@@ -0,0 +1,13 @@
1
+ import type { Dayjs } from "dayjs";
2
+ export type CronPlanState = {
3
+ expression: string;
4
+ retain: number;
5
+ startAt: Dayjs;
6
+ enabled: boolean;
7
+ empty: boolean;
8
+ };
9
+ export type CronPlanProps = {
10
+ value: CronPlanState;
11
+ onChange: (value: CronPlanState) => unknown;
12
+ onRemove?: () => void;
13
+ };
@@ -1,7 +1,7 @@
1
- import { CronPlanProps } from "../../spec";
2
1
  import { i18n as Ii18n } from "i18next";
3
2
  import moment from "moment";
4
3
  import React from "react";
4
+ import { CronPlanProps } from "./cronPlan.type";
5
5
  export declare const stringifyPlan: (mode: CronMode, daily: DailyState, weekly: WeeklyState, monthly: MonthlyState, i18n: Ii18n) => string | undefined;
6
6
  type CronMode = "day" | "week" | "month";
7
7
  type DailyState = {
@@ -16,3 +16,4 @@ type WeeklyState = {
16
16
  type MonthlyState = WeeklyState;
17
17
  declare const CronPlan: React.FC<CronPlanProps>;
18
18
  export default CronPlan;
19
+ export * from "./cronPlan.type";
@@ -1,5 +1,5 @@
1
- import { AbsoluteTimeProps } from "../../coreX/DateRangePicker/common";
2
1
  import React from "react";
2
+ import { AbsoluteTimeProps } from "./dateRangePicker.type";
3
3
  type TimeRef = {
4
4
  reset?: () => void;
5
5
  };
@@ -1,4 +1,4 @@
1
- import { CalendarProps } from "../../coreX/DateRangePicker/common";
2
1
  import React from "react";
2
+ import { CalendarProps } from "./dateRangePicker.type";
3
3
  declare const Calendar: React.FC<CalendarProps>;
4
4
  export default Calendar;
@@ -1,4 +1,4 @@
1
- import { InputTimeProps } from "../../coreX/DateRangePicker/common";
2
1
  import React from "react";
2
+ import { InputTimeProps } from "./dateRangePicker.type";
3
3
  declare const InputTime: React.FC<InputTimeProps>;
4
4
  export default InputTime;
@@ -1,4 +1,4 @@
1
- import { RelativeTimeProps } from "../../coreX/DateRangePicker/common";
2
1
  import React from "react";
2
+ import { RelativeTimeProps } from "./dateRangePicker.type";
3
3
  declare const RelativeTime: React.FC<RelativeTimeProps>;
4
4
  export default RelativeTime;
@@ -1,69 +1,11 @@
1
- import { PastTime } from "../../spec/type";
2
1
  import { Dayjs } from "dayjs";
3
2
  import { TFunction } from "i18next";
4
- import React from "react";
5
- export type MonthAndDate = {
6
- month: number;
7
- dates: number[];
8
- firstDateOfDay: number;
9
- };
10
- export type DateRange = [Dayjs | null, Dayjs | null];
11
- export type InputTimeValue = [string, string, string];
12
- export type CalendarProps = {
13
- range?: DateRange;
14
- minDate?: string | Dayjs | undefined;
15
- maxDate?: string | Dayjs | undefined;
16
- onChange?: (range: DateRange) => void;
17
- };
18
- export type InputTimeProps = {
19
- className?: string;
20
- value?: InputTimeValue;
21
- danger?: boolean;
22
- error?: React.ReactNode;
23
- onChange?: (time: InputTimeValue) => void;
24
- onBlur?: (time: InputTimeValue) => void;
25
- };
26
- export type AbsoluteTimeProps = {
27
- range: DateRange;
28
- minDate?: string | Dayjs | undefined;
29
- maxDate?: string | Dayjs | undefined;
30
- onChange: (range: DateRange) => void;
31
- onOk: (range: DateRange) => void;
32
- };
3
+ import { PickerDateRange, PastTime } from "./dateRangePicker.type";
33
4
  export declare const BASIC_RELATIVE_TIME_CONFIG: PastTime[];
34
- export type RelativeTimeProps = {
35
- config?: PastTime[];
36
- value?: PastTime;
37
- search?: boolean;
38
- onChange: (config: PastTime) => void;
39
- };
40
- export type DateRangePickerValue = Omit<PastTime, "disabled"> | DateRange;
41
- export type SetValue<T> = (obj: T | ((val: T) => T)) => void;
42
- export type DateRangeHistory = {
43
- type: "relative" | "absolute";
44
- timestamp: number;
45
- value: PastTime | string[];
46
- }[];
47
- export type DateRangeHistories = {
48
- [key: string]: DateRangeHistory | null | undefined;
49
- };
50
- export type DateRangePickerProps = {
51
- size?: "large" | "medium";
52
- value?: Omit<PastTime, "disabled"> | DateRange;
53
- history?: {
54
- scope: string;
55
- dateRangeHistories: DateRangeHistories;
56
- setDateRangeHistory: SetValue<DateRangeHistories>;
57
- };
58
- mode?: ("relative" | "absolute")[] | "relative" | "absolute" | undefined;
59
- minDate?: string | Dayjs | undefined;
60
- maxDate?: string | Dayjs | undefined;
61
- onChange?: (type: "relative" | "absolute", time: DateRangePickerValue, range: DateRange) => void;
62
- };
63
5
  export declare function getTime(year: number, month: number, date: number): Dayjs;
64
6
  export declare function trimTime(time: Dayjs): Dayjs;
65
7
  export declare function isSameDate(first: Dayjs, second: Dayjs): boolean;
66
- export declare function getClassNameForDateBlock(range: DateRange, date: Dayjs, mapOfHighlightDay: Map<string, number>, disabled: boolean): string;
8
+ export declare function getClassNameForDateBlock(range: PickerDateRange, date: Dayjs, mapOfHighlightDay: Map<string, number>, disabled: boolean): string;
67
9
  export declare function getDiffMonthAndDate(first: Dayjs, second: Dayjs): string[];
68
10
  export declare function time2stringByUnit(time: string, type: "h" | "m" | "s"): string;
69
11
  export declare function time2string(time: number): string;
@@ -0,0 +1,64 @@
1
+ /// <reference types="react" />
2
+ import { Dayjs } from "dayjs";
3
+ export type MonthAndDate = {
4
+ month: number;
5
+ dates: number[];
6
+ firstDateOfDay: number;
7
+ };
8
+ export type PickerDateRange = [Dayjs | null, Dayjs | null];
9
+ export type InputTimeValue = [string, string, string];
10
+ export type CalendarProps = {
11
+ range?: PickerDateRange;
12
+ minDate?: string | Dayjs | undefined;
13
+ maxDate?: string | Dayjs | undefined;
14
+ onChange?: (range: PickerDateRange) => void;
15
+ };
16
+ export type InputTimeProps = {
17
+ className?: string;
18
+ value?: InputTimeValue;
19
+ danger?: boolean;
20
+ error?: React.ReactNode;
21
+ onChange?: (time: InputTimeValue) => void;
22
+ onBlur?: (time: InputTimeValue) => void;
23
+ };
24
+ export type AbsoluteTimeProps = {
25
+ range: PickerDateRange;
26
+ minDate?: string | Dayjs | undefined;
27
+ maxDate?: string | Dayjs | undefined;
28
+ onChange: (range: PickerDateRange) => void;
29
+ onOk: (range: PickerDateRange) => void;
30
+ };
31
+ export type RelativeTimeProps = {
32
+ config?: PastTime[];
33
+ value?: PastTime;
34
+ search?: boolean;
35
+ onChange: (config: PastTime) => void;
36
+ };
37
+ export type DateRangePickerValue = Omit<PastTime, "disabled"> | PickerDateRange;
38
+ export type SetValue<T> = (obj: T | ((val: T) => T)) => void;
39
+ export type DateRangeHistory = {
40
+ type: "relative" | "absolute";
41
+ timestamp: number;
42
+ value: PastTime | string[];
43
+ }[];
44
+ export type DateRangeHistories = {
45
+ [key: string]: DateRangeHistory | null | undefined;
46
+ };
47
+ export type DateRangePickerProps = {
48
+ size?: "large" | "medium";
49
+ value?: Omit<PastTime, "disabled"> | PickerDateRange;
50
+ history?: {
51
+ scope: string;
52
+ dateRangeHistories: DateRangeHistories;
53
+ setDateRangeHistory: SetValue<DateRangeHistories>;
54
+ };
55
+ mode?: ("relative" | "absolute")[] | "relative" | "absolute" | undefined;
56
+ minDate?: string | Dayjs | undefined;
57
+ maxDate?: string | Dayjs | undefined;
58
+ onChange?: (type: "relative" | "absolute", time: DateRangePickerValue, range: PickerDateRange) => void;
59
+ };
60
+ export type PastTime = {
61
+ unit: "h" | "m" | "d";
62
+ value: number;
63
+ disabled?: boolean;
64
+ };
@@ -1,9 +1,10 @@
1
- import { DateRangePickerProps } from "../../coreX/DateRangePicker/common";
2
1
  import React from "react";
2
+ import { DateRangePickerProps } from "./dateRangePicker.type";
3
3
  declare const DateRangePicker: React.FC<DateRangePickerProps>;
4
4
  export default DateRangePicker;
5
5
  export { default as AbsoluteDate } from "./AbsoluteDate";
6
- export { default as Calendar } from "./Calendar";
7
- export type { DateRange as PickerDateRange } from "./common";
6
+ export { default as DateRangePickerCalendar } from "./Calendar";
7
+ export * from "./dateRangePicker.type";
8
+ export * from "./dateRangePicker.type";
8
9
  export { default as InputTime } from "./InputTime";
9
10
  export { default as RelativeTime } from "./RelativeTime";
@@ -0,0 +1,4 @@
1
+ import { CSSTransitionProps } from "react-transition-group/CSSTransition";
2
+ export type DropdownTransitionProps = {
3
+ visible: boolean;
4
+ } & CSSTransitionProps;
@@ -4,3 +4,4 @@ declare const DropdownTransition: React.FC<{
4
4
  visible: boolean;
5
5
  } & CSSTransition["props"]>;
6
6
  export default DropdownTransition;
7
+ export * from "./dropdownTransition.type";
@@ -0,0 +1,18 @@
1
+ import type { History, Location as HistoryLocation } from "history";
2
+ export type HistoryType = Omit<History, "push" | "replace" | "location" | "length"> & {
3
+ push: {
4
+ (path: string, state?: HistoryLocation["state"]): void;
5
+ (location: any): void;
6
+ };
7
+ replace: {
8
+ (path: string, state?: HistoryLocation["state"]): void;
9
+ (location: any): void;
10
+ };
11
+ };
12
+ export type GoBackButtonType = {
13
+ history: History | HistoryType;
14
+ title?: string;
15
+ onClick?: () => void;
16
+ path?: string;
17
+ index?: number;
18
+ };
@@ -1,4 +1,5 @@
1
- import { GoBackButtonType } from "../../spec";
2
1
  import React from "react";
2
+ import { GoBackButtonType } from "./goBackButton.type";
3
3
  declare const GobackButton: React.FC<GoBackButtonType>;
4
4
  export default GobackButton;
5
+ export * from "./goBackButton.type";
@@ -0,0 +1,14 @@
1
+ export type I18nNameTagType = {
2
+ /**
3
+ * 需要高亮的内容,对应 i18n 词条 <1>{name}<1> 部分
4
+ */
5
+ name: string;
6
+ /**
7
+ * i18n 词条 key
8
+ */
9
+ i18nKey: string;
10
+ /**
11
+ * 其它透传给 i18n Trans 组件的内容,具体参考 [trans-component](https://react.i18next.com/latest/trans-component)
12
+ */
13
+ [key: string]: unknown;
14
+ };
@@ -1,4 +1,5 @@
1
- import { I18nNameTagType } from "../../spec";
2
1
  import React from "react";
2
+ import { I18nNameTagType } from "./i18nNameTag.type";
3
3
  declare const I18nNameTag: React.FC<I18nNameTagType>;
4
4
  export default I18nNameTag;
5
+ export * from "./i18nNameTag.type";
@@ -1,4 +1,5 @@
1
- import { NamesTooltipType } from "../../spec";
2
1
  import React from "react";
2
+ import { NamesTooltipType } from "./namesTooltip.type";
3
3
  declare const NamesTooltip: React.FC<NamesTooltipType>;
4
4
  export default NamesTooltip;
5
+ export * from "./namesTooltip.type";
@@ -0,0 +1,6 @@
1
+ export type NamesTooltipType = {
2
+ names: {
3
+ id: string;
4
+ name?: string;
5
+ }[];
6
+ };
@@ -2,3 +2,4 @@ import type { OverflowTooltipProps } from "../../coreX/OverflowTooltip/overflowT
2
2
  import React from "react";
3
3
  declare const OverflowTooltip: React.FC<OverflowTooltipProps>;
4
4
  export default OverflowTooltip;
5
+ export * from "./overflowTooltip.type";
@@ -1,3 +1,4 @@
1
- import { SidebarSubtitleComponentType } from "../../spec/base";
1
+ import { SidebarSubtitleComponentType } from "./sidebarSubtitle.type";
2
2
  declare const SidebarSubtitle: SidebarSubtitleComponentType;
3
3
  export default SidebarSubtitle;
4
+ export * from "./sidebarSubtitle.type";
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export type SidebarSubtitleComponentType = React.FC<{
3
+ title: string;
4
+ className?: string;
5
+ }>;
@@ -1,3 +1,4 @@
1
- import { SortableListComponentType } from "../../spec";
1
+ import { SortableListComponentType } from "./sortableList.type";
2
2
  declare const SortableList: SortableListComponentType;
3
3
  export default SortableList;
4
+ export * from "./sortableList.type";
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { Draggable } from "react-beautiful-dnd";
3
+ export type SortableListComponentType = React.FC<{
4
+ moveItem: (from: number, to: number) => void;
5
+ }> & {
6
+ Item: typeof Draggable;
7
+ };