@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.
- package/dist/cjs/UIKitProvider/index.js +5 -5
- package/dist/cjs/antd.js +151 -0
- package/dist/cjs/core/Arch/index.js +3 -1
- package/dist/cjs/core/ButtonGroup/index.js +2 -1
- package/dist/cjs/core/Cascader/index.js +16 -0
- package/dist/cjs/core/DonutChart/index.js +9 -0
- package/dist/cjs/core/Error/index.js +12 -0
- package/dist/cjs/core/ErrorBoundary/index.js +27 -0
- package/dist/cjs/core/Metric/MetricActions.js +18 -0
- package/dist/cjs/core/Metric/MetricLegend.js +73 -0
- package/dist/cjs/core/Metric/Pointer.js +45 -0
- package/dist/cjs/core/Metric/RenderChart.js +203 -0
- package/dist/cjs/core/Metric/TooltipFormatter.js +45 -0
- package/dist/cjs/core/Metric/index.js +63 -0
- package/dist/cjs/core/Metric/metric.js +146 -0
- package/dist/cjs/core/Metric/styled.js +33 -0
- package/dist/cjs/core/Metric/type.js +16 -0
- package/dist/cjs/core/Overflow/index.js +2 -1
- package/dist/cjs/core/Progress/index.js +2 -0
- package/dist/cjs/core/SidebarMenu/SidebarMenu.js +33 -0
- package/dist/cjs/core/StatusCapsule/index.js +7 -7
- package/dist/cjs/core/Styled/index.js +139 -0
- package/dist/cjs/core/Table/TableWidget.js +6 -1
- package/dist/cjs/core/Table/index.js +4 -1
- package/dist/cjs/core/TableForm/index.js +5 -3
- package/dist/cjs/core/Tag/SplitTag.js +2 -2
- package/dist/cjs/core/Tag/const.js +2 -2
- package/dist/cjs/core/Tag/index.js +4 -4
- package/dist/cjs/core/Token/index.js +3 -3
- package/dist/cjs/core/index.js +32 -0
- package/dist/cjs/core/message/index.js +4 -0
- package/dist/cjs/coreX/CronPlan/index.js +2 -1
- package/dist/cjs/coreX/DateRangePicker/AbsoluteDate.js +2 -2
- package/dist/cjs/coreX/DateRangePicker/Calendar.js +5 -3
- package/dist/cjs/coreX/DateRangePicker/InputTime.js +1 -1
- package/dist/cjs/coreX/DateRangePicker/RelativeTime.js +2 -2
- package/dist/cjs/coreX/DateRangePicker/index.js +1 -1
- package/dist/cjs/coreX/I18nNameTag/index.js +1 -1
- package/dist/cjs/index.js +456 -82
- package/dist/cjs/legacy-antd.js +213 -0
- package/dist/cjs/stats1.html +1 -1
- package/dist/cjs/store/chart.js +7 -0
- package/dist/cjs/store/index.js +1 -0
- package/dist/components.css +2916 -2916
- package/dist/esm/UIKitProvider/index.js +1 -1
- package/dist/esm/antd.js +16 -0
- package/dist/esm/core/ButtonGroup/index.js +2 -1
- package/dist/esm/core/Cascader/index.js +3 -1
- package/dist/esm/core/DonutChart/index.js +9 -1
- package/dist/esm/core/Error/index.js +6 -0
- package/dist/esm/core/ErrorBoundary/index.js +21 -0
- package/dist/esm/core/Metric/MetricActions.js +12 -0
- package/dist/esm/core/Metric/MetricLegend.js +62 -0
- package/dist/esm/core/Metric/Pointer.js +38 -0
- package/dist/esm/core/Metric/RenderChart.js +195 -0
- package/dist/esm/core/Metric/TooltipFormatter.js +39 -0
- package/dist/esm/core/Metric/index.js +52 -0
- package/dist/esm/core/Metric/metric.js +138 -2
- package/dist/esm/core/Metric/styled.js +24 -0
- package/dist/esm/core/Metric/type.js +13 -0
- package/dist/esm/core/Overflow/index.js +2 -1
- package/dist/esm/core/Progress/index.js +2 -1
- package/dist/esm/core/SidebarMenu/SidebarMenu.js +27 -0
- package/dist/esm/core/StatusCapsule/index.js +3 -3
- package/dist/esm/core/Styled/index.js +112 -1
- package/dist/esm/core/Table/TableWidget.js +5 -2
- package/dist/esm/core/Table/index.js +5 -3
- package/dist/esm/core/TableForm/index.js +2 -2
- package/dist/esm/core/Tag/SplitTag.js +3 -3
- package/dist/esm/core/Tag/const.js +2 -2
- package/dist/esm/core/Tag/index.js +5 -5
- package/dist/esm/core/Token/index.js +3 -3
- package/dist/esm/core/index.js +21 -0
- package/dist/esm/core/message/index.js +4 -1
- package/dist/esm/coreX/CronPlan/index.js +2 -1
- package/dist/esm/coreX/DateRangePicker/AbsoluteDate.js +2 -2
- package/dist/esm/coreX/DateRangePicker/Calendar.js +5 -3
- package/dist/esm/coreX/DateRangePicker/InputTime.js +1 -1
- package/dist/esm/coreX/DateRangePicker/RelativeTime.js +2 -2
- package/dist/esm/coreX/DateRangePicker/index.js +1 -1
- package/dist/esm/coreX/I18nNameTag/index.js +1 -1
- package/dist/esm/index.js +104 -18
- package/dist/esm/legacy-antd.js +206 -0
- package/dist/esm/stats1.html +1 -1
- package/dist/esm/store/chart.js +7 -1
- package/dist/esm/store/index.js +1 -0
- package/dist/src/UIKitProvider/UIKitProvider.stories.d.ts +1 -1
- package/dist/src/antd.d.ts +45 -0
- package/dist/src/core/AccordionCard/accordionCard.type.d.ts +9 -0
- package/dist/src/core/AccordionCard/index.d.ts +3 -8
- package/dist/src/core/Alert/alert.type.d.ts +6 -0
- package/dist/src/core/Alert/index.d.ts +2 -1
- package/dist/src/core/Arch/arch.type.d.ts +8 -0
- package/dist/src/core/Arch/index.d.ts +2 -1
- package/dist/src/core/Badge/badge.type.d.ts +7 -0
- package/dist/src/core/Badge/index.d.ts +2 -1
- package/dist/src/core/Bit/index.d.ts +1 -1
- package/dist/src/core/BitPerSecond/index.d.ts +1 -1
- package/dist/src/core/Bps/index.d.ts +1 -1
- package/dist/src/core/Breadcrumb/breadcrumb.type.d.ts +11 -0
- package/dist/src/core/Breadcrumb/index.d.ts +2 -1
- package/dist/src/core/Button/button.type.d.ts +20 -0
- package/dist/src/core/Button/index.d.ts +1 -0
- package/dist/src/core/ButtonGroup/index.d.ts +1 -1
- package/dist/src/core/Byte/index.d.ts +1 -1
- package/dist/src/core/Calendar/calendar.type.d.ts +4 -0
- package/dist/src/core/Calendar/index.d.ts +2 -1
- package/dist/src/core/Cascader/cascader.type.d.ts +1 -1
- package/dist/src/core/Cascader/index.d.ts +3 -0
- package/dist/src/core/DetailCard/detailCard.type.d.ts +4 -0
- package/dist/src/core/DetailCard/index.d.ts +2 -1
- package/dist/src/core/DropdownMenu/dropdownMenu.type.d.ts +28 -0
- package/dist/src/core/DropdownMenu/index.d.ts +3 -17
- package/dist/src/core/Error/index.d.ts +5 -0
- package/dist/src/core/ExpandableList/index.d.ts +8 -0
- package/dist/src/core/Fields/FieldsBoolean/index.d.ts +1 -1
- package/dist/src/core/Fields/FieldsDateTime/index.d.ts +1 -1
- package/dist/src/core/Fields/FieldsDateTimeRange/index.d.ts +1 -1
- package/dist/src/core/Fields/FieldsEnum/fieldsEnum.type.d.ts +19 -0
- package/dist/src/core/Fields/FieldsEnum/index.d.ts +2 -1
- package/dist/src/core/Fields/FieldsInt/fieldsInt.type.d.ts +15 -0
- package/dist/src/core/Fields/FieldsInt/index.d.ts +2 -1
- package/dist/src/core/Fields/FieldsString/fieldsString.type.d.ts +17 -0
- package/dist/src/core/Fields/FieldsString/index.d.ts +3 -1
- package/dist/src/core/Fields/FieldsTextArea/index.d.ts +1 -1
- package/dist/src/core/Fields/FieldsTimePicker/index.d.ts +1 -1
- package/dist/src/{spec/react-final-form.d.ts → core/Fields/fields.type.d.ts} +15 -10
- package/dist/src/core/Fields/index.d.ts +21 -10
- package/dist/src/core/Frequency/index.d.ts +1 -1
- package/dist/src/core/Input/index.d.ts +1 -0
- package/dist/src/core/Input/input.type.d.ts +14 -0
- package/dist/src/core/InputGroup/index.d.ts +1 -0
- package/dist/src/core/InputGroup/inputGroup.type.d.ts +4 -0
- package/dist/src/core/InputInteger/index.d.ts +1 -1
- package/dist/src/core/InputNumber/index.d.ts +1 -1
- package/dist/src/core/Link/index.d.ts +2 -1
- package/dist/src/core/Link/link.type.d.ts +6 -0
- package/dist/src/core/Loading/index.d.ts +2 -1
- package/dist/src/core/Loading/loading.type.d.ts +4 -0
- package/dist/src/core/Modal/index.d.ts +2 -1
- package/dist/src/core/Modal/modal.type.d.ts +28 -0
- package/dist/src/core/Pagination/index.d.ts +2 -1
- package/dist/src/core/Pagination/pagination.type.d.ts +11 -0
- package/dist/src/core/Percent/index.d.ts +1 -1
- package/dist/src/core/Progress/index.d.ts +2 -0
- package/dist/src/core/Progress/progress.type.d.ts +2 -1
- package/dist/src/core/Radio/index.d.ts +2 -1
- package/dist/src/core/Radio/radio.type.d.ts +16 -0
- package/dist/src/core/SearchInput/index.d.ts +2 -1
- package/dist/src/core/SearchInput/searchInput.type.d.ts +7 -0
- package/dist/src/core/Second/index.d.ts +1 -1
- package/dist/src/core/SegmentControl/index.d.ts +2 -1
- package/dist/src/core/SegmentControl/segmentControl.type.d.ts +4 -0
- package/dist/src/core/Select/index.d.ts +2 -1
- package/dist/src/core/Select/select.type.d.ts +32 -0
- package/dist/src/core/SimplePagination/index.d.ts +2 -1
- package/dist/src/core/SimplePagination/simplePagination.type.d.ts +7 -0
- package/dist/src/core/Space/index.d.ts +1 -0
- package/dist/src/core/Space/space.type.d.ts +10 -0
- package/dist/src/core/Speed/index.d.ts +1 -1
- package/dist/src/core/StatusCapsule/index.d.ts +3 -2
- package/dist/src/core/StatusCapsule/statusCapsule.type.d.ts +10 -0
- package/dist/src/core/StepProgress/index.d.ts +2 -1
- package/dist/src/core/StepProgress/stepProgress.type.d.ts +5 -0
- package/dist/src/core/Steps/index.d.ts +2 -1
- package/dist/src/core/Steps/steps.type.d.ts +19 -0
- package/dist/src/core/Switch/index.d.ts +2 -1
- package/dist/src/core/Switch/switch.type.d.ts +4 -0
- package/dist/src/core/Table/index.d.ts +2 -1
- package/dist/src/core/Table/table.type.d.ts +73 -0
- package/dist/src/core/TableForm/Columns/index.d.ts +10 -10
- package/dist/src/core/TableForm/index.d.ts +1 -0
- package/dist/src/core/TableForm/types.d.ts +1 -1
- package/dist/src/core/Tag/SplitTag.d.ts +1 -1
- package/dist/src/core/Tag/const.d.ts +1 -1
- package/dist/src/core/Tag/index.d.ts +3 -2
- package/dist/src/core/Tag/tag.type.d.ts +22 -0
- package/dist/src/core/TextArea/index.d.ts +2 -1
- package/dist/src/core/TextArea/textArea.type.d.ts +10 -0
- package/dist/src/core/Time/index.d.ts +2 -1
- package/dist/src/core/Time/time.type.d.ts +7 -0
- package/dist/src/core/TimeZoneSelect/index.d.ts +2 -1
- package/dist/src/core/TimeZoneSelect/timeZoneSelect.type.d.ts +9 -0
- package/dist/src/core/Token/index.d.ts +4 -3
- package/dist/src/core/Token/token.type.d.ts +12 -0
- package/dist/src/core/Tooltip/index.d.ts +1 -0
- package/dist/src/core/Units/index.d.ts +1 -0
- package/dist/src/core/Units/units.type.d.ts +17 -0
- package/dist/src/core/index.d.ts +140 -22
- package/dist/src/coreX/BatchOperation/batchOperation.type.d.ts +31 -0
- package/dist/src/coreX/BatchOperation/index.d.ts +2 -1
- package/dist/src/coreX/Counting/counting.type.d.ts +6 -0
- package/dist/src/coreX/Counting/index.d.ts +2 -1
- package/dist/src/coreX/CronCalendar/cronCalendar.type.d.ts +8 -0
- package/dist/src/coreX/CronCalendar/index.d.ts +2 -1
- package/dist/src/coreX/CronPlan/cronPlan.type.d.ts +13 -0
- package/dist/src/coreX/CronPlan/index.d.ts +2 -1
- package/dist/src/coreX/DateRangePicker/AbsoluteDate.d.ts +1 -1
- package/dist/src/coreX/DateRangePicker/Calendar.d.ts +1 -1
- package/dist/src/coreX/DateRangePicker/InputTime.d.ts +1 -1
- package/dist/src/coreX/DateRangePicker/RelativeTime.d.ts +1 -1
- package/dist/src/coreX/DateRangePicker/common.d.ts +2 -60
- package/dist/src/coreX/DateRangePicker/dateRangePicker.type.d.ts +64 -0
- package/dist/src/coreX/DateRangePicker/index.d.ts +4 -3
- package/dist/src/coreX/DropdownTransition/dropdownTransition.type.d.ts +4 -0
- package/dist/src/coreX/DropdownTransition/index.d.ts +1 -0
- package/dist/src/coreX/GoBackButton/goBackButton.type.d.ts +18 -0
- package/dist/src/coreX/GoBackButton/index.d.ts +2 -1
- package/dist/src/coreX/I18nNameTag/i18nNameTag.type.d.ts +14 -0
- package/dist/src/coreX/I18nNameTag/index.d.ts +2 -1
- package/dist/src/coreX/NamesTooltip/index.d.ts +2 -1
- package/dist/src/coreX/NamesTooltip/namesTooltip.type.d.ts +6 -0
- package/dist/src/coreX/OverflowTooltip/index.d.ts +1 -0
- package/dist/src/coreX/SidebarSubtitle/index.d.ts +2 -1
- package/dist/src/coreX/SidebarSubtitle/sidebarSubtitle.type.d.ts +5 -0
- package/dist/src/coreX/SortableList/index.d.ts +2 -1
- package/dist/src/coreX/SortableList/sortableList.type.d.ts +7 -0
- package/dist/src/coreX/SummaryTable/index.d.ts +2 -1
- package/dist/src/coreX/SummaryTable/summaryTable.type.d.ts +31 -0
- package/dist/src/coreX/SwitchWithText/index.d.ts +2 -1
- package/dist/src/coreX/SwitchWithText/switchWithText.type.d.ts +9 -0
- package/dist/src/coreX/TruncatedTextWithTooltip/index.d.ts +2 -1
- package/dist/src/coreX/TruncatedTextWithTooltip/truncatedTextWithTooltip.type.d.ts +5 -0
- package/dist/src/coreX/UnitWithChart/index.d.ts +8 -8
- package/dist/src/coreX/common/index.d.ts +1 -0
- package/dist/src/coreX/index.d.ts +38 -4
- package/dist/src/index.d.ts +5 -40
- package/dist/src/{core/antd.d.ts → legacy-antd.d.ts} +1 -1
- package/dist/src/spec/base.d.ts +7 -456
- package/dist/src/spec/index.d.ts +0 -1
- package/dist/stories/docs/core/Alert.stories.d.ts +1 -1
- package/dist/stories/docs/core/Arch.stories.d.ts +1 -1
- package/dist/stories/docs/core/Bit.stories.d.ts +6 -6
- package/dist/stories/docs/core/BitPerSecond.stories.d.ts +6 -6
- package/dist/stories/docs/core/Bps.stories.d.ts +6 -6
- package/dist/stories/docs/core/Byte.stories.d.ts +6 -6
- package/dist/stories/docs/core/FieldsBoolean.stories.d.ts +2 -2
- package/dist/stories/docs/core/FieldsString.stories.d.ts +8 -8
- package/dist/stories/docs/core/FieldsTimePicker.stories.d.ts +2 -2
- package/dist/stories/docs/core/Frequency.stories.d.ts +6 -6
- package/dist/stories/docs/core/Icon.stories.d.ts +6 -6
- package/dist/stories/docs/core/Link.stories.d.ts +1 -1
- package/dist/stories/docs/core/Modal.stories.d.ts +1 -1
- package/dist/stories/docs/core/Percent.stories.d.ts +10 -10
- package/dist/stories/docs/core/Second.stories.d.ts +8 -8
- package/dist/stories/docs/core/Speed.stories.d.ts +6 -6
- package/dist/stories/docs/core/StatusCapsule.stories.d.ts +1 -1
- package/dist/stories/docs/core/Steps.stories.d.ts +1 -1
- package/dist/stories/docs/core/Table.stories.d.ts +4 -4
- package/dist/stories/docs/core/Tag.stories.d.ts +1 -1
- package/dist/stories/docs/core/Token.stories.d.ts +1 -1
- package/dist/stories/docs/core/Tooltip.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/CronCalendar.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/CronPlan.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/GoBackButton.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/NamesTooltip.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/SidebarSubtitle.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/SortableList.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/SummaryTable.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/SwitchWithText.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/TruncatedTextWithTooltip.stories.d.ts +1 -1
- package/dist/stories/types.d.ts +1 -1
- package/dist/style.css +2921 -2921
- package/package.json +5 -5
- package/dist/cjs/core/antd.js +0 -212
- package/dist/esm/core/antd.js +0 -205
- package/dist/src/spec/type.d.ts +0 -157
- /package/dist/cjs/{spec/type.js → core/Arch/arch.type.js} +0 -0
- /package/dist/esm/{spec/type.js → core/Arch/arch.type.js} +0 -0
package/dist/src/spec/base.d.ts
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { IEmptyProps } from "../core/Empty";
|
|
4
|
-
import { MessageApi } from "../core/message";
|
|
5
|
-
import { TableFormHandle, TableFormProps } from "../core/TableForm/types";
|
|
6
|
-
import { TooltipProps } from "../core/Tooltip/tooltip.type";
|
|
7
|
-
import { TruncatePropTypes } from "../core/Truncate";
|
|
8
|
-
import type { OverflowTooltipProps } from "../coreX/OverflowTooltip/overflowTooltip.type";
|
|
9
|
-
import { SizeType } from "antd/es/config-provider/SizeContext";
|
|
10
|
-
import { AlertProps } from "antd/lib/alert";
|
|
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, LinkComponentType, LoadingComponentType, MessageApi, ModalProps, PaginationProps, PercentFn, RadioButtonProps, RadioProps, SearchInputProps, SelectComponentType, StatusCapsuleComponentType, StringProps, SwitchProps, TableComponent, TableFormHandle, TableFormProps, TagComponentType, TextAreaProps, TokenComponentType, TooltipProps, TruncatePropTypes, UnitFn } from "../core";
|
|
2
|
+
import type { CronCalendarProps, CronPlanProps, DateRangePickerProps, DeprecatedIDonutChartProps, DropdownTransitionProps, GoBackButtonType, I18nNameTagType, IBatchOperation, IChartWithUnitProps, ICountingProps, ICWTProps, IUnitWithChartProps, NamesTooltipType, OverflowTooltipProps, SidebarSubtitleComponentType, SortableListComponentType, SummaryTableComponentType, SwitchWithTextProps, TruncateTextWithTooltipType } from "../coreX";
|
|
11
3
|
import { AutoCompleteProps } from "antd/lib/auto-complete";
|
|
12
4
|
import { BadgeProps } from "antd/lib/badge";
|
|
13
|
-
import { ButtonProps as AntdButtonProps
|
|
14
|
-
import { CalendarProps } from "antd/lib/calendar/generateCalendar";
|
|
5
|
+
import { ButtonProps as AntdButtonProps } from "antd/lib/button";
|
|
15
6
|
import { CheckboxGroupProps, CheckboxProps } from "antd/lib/checkbox";
|
|
16
7
|
import { ColProps } from "antd/lib/col";
|
|
17
8
|
import { CollapsePanelProps, CollapseProps } from "antd/lib/collapse";
|
|
@@ -22,8 +13,7 @@ import { DropDownProps } from "antd/lib/dropdown";
|
|
|
22
13
|
import { EmptyProps } from "antd/lib/empty";
|
|
23
14
|
import type Form from "antd/lib/form";
|
|
24
15
|
import type Input from "antd/lib/input";
|
|
25
|
-
import {
|
|
26
|
-
import { TextAreaProps as AntdTextAreaProps } from "antd/lib/input/TextArea";
|
|
16
|
+
import { InputProps } from "antd/lib/input";
|
|
27
17
|
import { InputNumberProps } from "antd/lib/input-number";
|
|
28
18
|
import { SiderProps } from "antd/lib/layout";
|
|
29
19
|
import { BasicProps } from "antd/lib/layout/layout";
|
|
@@ -35,38 +25,23 @@ import { SubMenuProps } from "antd/lib/menu/SubMenu";
|
|
|
35
25
|
import { ModalProps as AntdModalProps } from "antd/lib/modal";
|
|
36
26
|
import { PopoverProps } from "antd/lib/popover";
|
|
37
27
|
import { ProgressProps as AntdProgressProps } from "antd/lib/progress";
|
|
38
|
-
import { RadioGroupProps as AntdRadioGroupProps
|
|
39
|
-
import { RadioButtonProps as AntdRadioButtonProps } from "antd/lib/radio/radioButton";
|
|
28
|
+
import { RadioGroupProps as AntdRadioGroupProps } from "antd/lib/radio";
|
|
40
29
|
import { RowProps } from "antd/lib/row";
|
|
41
|
-
import { SelectProps
|
|
30
|
+
import { SelectProps } from "antd/lib/select";
|
|
42
31
|
import { SkeletonProps as AntdSkeletonProps } from "antd/lib/skeleton";
|
|
43
32
|
import { SkeletonButtonProps } from "antd/lib/skeleton/Button";
|
|
44
33
|
import Steps from "antd/lib/steps";
|
|
45
34
|
import { SwitchProps as AntdSwitchProps } from "antd/lib/switch";
|
|
46
|
-
import {
|
|
47
|
-
import { TableRowSelection } from "antd/lib/table/interface";
|
|
35
|
+
import { TableProps as AntdTableProps } from "antd/lib/table";
|
|
48
36
|
import { TabPaneProps, TabsProps } from "antd/lib/tabs";
|
|
49
|
-
import { TagProps as AntdTagProps } from "antd/lib/tag";
|
|
50
37
|
import { TimePickerProps } from "antd/lib/time-picker";
|
|
51
38
|
import { TimeLineItemProps, TimelineProps } from "antd/lib/timeline";
|
|
52
39
|
import { TreeProps as AntdTreeProps } from "antd/lib/tree";
|
|
53
40
|
import type TreeSelect from "antd/lib/tree-select";
|
|
54
41
|
import { TextProps } from "antd/lib/typography/Text";
|
|
55
42
|
import { DraggerProps, UploadProps } from "antd/lib/upload";
|
|
56
|
-
import type { Dayjs } from "dayjs";
|
|
57
|
-
import type { History } from "history";
|
|
58
|
-
import type { Moment } from "moment";
|
|
59
43
|
import React, { ForwardRefExoticComponent, PropsWithChildren, PropsWithoutRef, ReactNode, RefAttributes } from "react";
|
|
60
|
-
import { Draggable } from "react-beautiful-dnd";
|
|
61
|
-
import type { CloseButtonProps } from "../core/AccordionCard";
|
|
62
|
-
import { IDonutChartProps } from "../core/DonutChart";
|
|
63
|
-
import { IChartWithUnitProps, ICWTProps } from "../coreX/ChartWithTooltip";
|
|
64
|
-
import { DateRangePickerProps } from "../coreX/DateRangePicker/common";
|
|
65
|
-
import { DeprecatedIDonutChartProps } from "../coreX/DeprecatedDonutChart";
|
|
66
|
-
import { IUnitWithChartProps } from "../coreX/UnitWithChart";
|
|
67
44
|
import { SerializableObject } from "../utils/tower";
|
|
68
|
-
import { FieldRenderProps } from "./react-final-form";
|
|
69
|
-
import { Architecture, DropdownTransitionProps, HistoryType, IAccordionCardProps, IBatchOperation, IBreadcrumbProps, ICircleProgressProps, ICountingProps, IDetailCardProps, IDropdownMenuProps, ISegmentedControlProps, ISpaceProps, ITimeProps, ITimeZoneSelectProps, PropsFrom } from "./type";
|
|
70
45
|
export type AntdTableComponentType = <RecordType extends object = any>(props: AntdTableProps<RecordType>) => JSX.Element;
|
|
71
46
|
export type AntdTreeSelectComponentType<T> = TreeSelect<T>;
|
|
72
47
|
interface EmptyType extends React.FC<EmptyProps> {
|
|
@@ -76,7 +51,6 @@ interface EmptyType extends React.FC<EmptyProps> {
|
|
|
76
51
|
export interface CollapseInterface extends React.FC<CollapseProps> {
|
|
77
52
|
Panel: React.FC<CollapsePanelProps>;
|
|
78
53
|
}
|
|
79
|
-
type BadgeTypeProps = "warning" | "error" | "info";
|
|
80
54
|
type Primitive = "Int" | "Float" | "DateTime" | "Enum" | "String" | "Boolean";
|
|
81
55
|
export type Child = {
|
|
82
56
|
type: Exclude<Primitive, "Enum">;
|
|
@@ -84,48 +58,6 @@ export type Child = {
|
|
|
84
58
|
type: "Enum";
|
|
85
59
|
enumValues: readonly string[];
|
|
86
60
|
};
|
|
87
|
-
interface IdObject {
|
|
88
|
-
id: string;
|
|
89
|
-
}
|
|
90
|
-
interface LooseFieldRenderProps<V, T extends HTMLElement> {
|
|
91
|
-
input: {
|
|
92
|
-
name?: FieldRenderProps<V, T>["input"]["name"];
|
|
93
|
-
value?: FieldRenderProps<V, T>["input"]["value"];
|
|
94
|
-
onBlur?: FieldRenderProps<V, T>["input"]["onBlur"];
|
|
95
|
-
onChange?: (value: string | string[], option: {
|
|
96
|
-
object: V;
|
|
97
|
-
} | Array<{
|
|
98
|
-
object: V;
|
|
99
|
-
}>) => void;
|
|
100
|
-
onFocus?: FieldRenderProps<V, T>["input"]["onFocus"];
|
|
101
|
-
type?: FieldRenderProps<V, T>["input"]["type"];
|
|
102
|
-
checked?: FieldRenderProps<V, T>["input"]["checked"];
|
|
103
|
-
multiple?: FieldRenderProps<V, T>["input"]["multiple"];
|
|
104
|
-
};
|
|
105
|
-
meta?: FieldRenderProps<V, T>["meta"];
|
|
106
|
-
focusIndicator?: boolean;
|
|
107
|
-
}
|
|
108
|
-
export interface PaginationProps {
|
|
109
|
-
current: number;
|
|
110
|
-
count: number;
|
|
111
|
-
size: number;
|
|
112
|
-
onChange: (page: number) => void;
|
|
113
|
-
onSizeChange?: (size: number) => void;
|
|
114
|
-
simple?: boolean;
|
|
115
|
-
showTotal?: (total: number, range: [number, number]) => string;
|
|
116
|
-
selectorVisible?: boolean;
|
|
117
|
-
className?: string;
|
|
118
|
-
}
|
|
119
|
-
export type InputSize = "large" | "middle" | "small";
|
|
120
|
-
export type KitSelectProps = {
|
|
121
|
-
defaultValue?: string;
|
|
122
|
-
error?: unknown | React.ReactNode;
|
|
123
|
-
danger?: boolean;
|
|
124
|
-
multiple?: boolean;
|
|
125
|
-
scrollBottomBuffer?: number;
|
|
126
|
-
onScrollBottom?: () => void;
|
|
127
|
-
selectLimit?: number;
|
|
128
|
-
} & AntdSelectProps<string>;
|
|
129
61
|
interface OptionProps {
|
|
130
62
|
value: React.ReactText;
|
|
131
63
|
disabled?: boolean;
|
|
@@ -136,187 +68,14 @@ interface OptionProps {
|
|
|
136
68
|
object?: SerializableObject;
|
|
137
69
|
title?: string;
|
|
138
70
|
}
|
|
139
|
-
export interface RawValue {
|
|
140
|
-
rawValue?: number | null;
|
|
141
|
-
decimals?: number;
|
|
142
|
-
noUnitOnZero?: boolean;
|
|
143
|
-
abbreviate?: boolean;
|
|
144
|
-
valueClassName?: string;
|
|
145
|
-
unitClassName?: string;
|
|
146
|
-
}
|
|
147
|
-
export type UnitFn = React.FC<RawValue & {
|
|
148
|
-
emptyProps?: IEmptyProps;
|
|
149
|
-
}>;
|
|
150
|
-
export type PercentFn = React.FC<RawValue & {
|
|
151
|
-
saturated?: boolean;
|
|
152
|
-
emptyProps?: IEmptyProps;
|
|
153
|
-
}>;
|
|
154
|
-
export type SorterOrder = "descend" | "ascend" | undefined;
|
|
155
|
-
type Columns<T> = ColumnsType<T>[0];
|
|
156
|
-
export interface RequiredColumnProps<T> extends Omit<Columns<T>, "onHeaderCell" | "onCell" | "title"> {
|
|
157
|
-
key: Exclude<Columns<T>["key"], undefined | number>;
|
|
158
|
-
dataIndex: Exclude<ColumnType<T>["dataIndex"], undefined>;
|
|
159
|
-
sortable?: boolean;
|
|
160
|
-
width?: number | string;
|
|
161
|
-
onHeaderCell?: (column: ColumnType<T>) => any;
|
|
162
|
-
onCell?: (column: T) => any;
|
|
163
|
-
/**
|
|
164
|
-
* removed params for title function
|
|
165
|
-
* because we need to cast the function in customize column
|
|
166
|
-
* which cannot access the header params
|
|
167
|
-
*/
|
|
168
|
-
title: React.ReactNode | (() => React.ReactNode);
|
|
169
|
-
customizable?: boolean;
|
|
170
|
-
}
|
|
171
71
|
export type TableScroll = string | number | boolean;
|
|
172
|
-
export interface TableProps<T extends {
|
|
173
|
-
id: string;
|
|
174
|
-
}> {
|
|
175
|
-
bordered?: boolean;
|
|
176
|
-
loading?: boolean;
|
|
177
|
-
error?: React.ReactNode | string;
|
|
178
|
-
dataSource: T[] | undefined;
|
|
179
|
-
columns: RequiredColumnProps<T>[];
|
|
180
|
-
onSorterChange?: (order: SorterOrder | null, key?: string | number) => void;
|
|
181
|
-
onRowClick?: (record: T, index: number, evt: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
182
|
-
rowClassName?: (record: T, index: number) => string;
|
|
183
|
-
scroll?: {
|
|
184
|
-
x?: number | string | true;
|
|
185
|
-
y?: number | string;
|
|
186
|
-
};
|
|
187
|
-
onResize?: (column: RequiredColumnProps<T>[]) => void;
|
|
188
|
-
resizable?: boolean;
|
|
189
|
-
components?: {
|
|
190
|
-
table?: (props: any) => any;
|
|
191
|
-
header?: {
|
|
192
|
-
wrapper?: (props: any) => any;
|
|
193
|
-
row?: (props: any) => any;
|
|
194
|
-
cell?: (props: any) => any;
|
|
195
|
-
};
|
|
196
|
-
body?: {
|
|
197
|
-
wrapper?: (props: any) => any;
|
|
198
|
-
row?: (props: any) => any;
|
|
199
|
-
cell?: (props: any) => any;
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
RowMenu?: React.FC<{
|
|
203
|
-
record: T;
|
|
204
|
-
index: number;
|
|
205
|
-
}>;
|
|
206
|
-
rowSelection?: TableRowSelection<T>;
|
|
207
|
-
empty?: string | React.ReactNode;
|
|
208
|
-
tableLayout?: "fixed" | "auto";
|
|
209
|
-
initLoading?: boolean;
|
|
210
|
-
rowKey?: AntdTableProps<T>["rowKey"];
|
|
211
|
-
wrapper?: React.MutableRefObject<HTMLDivElement | null>;
|
|
212
|
-
pagination?: {
|
|
213
|
-
current: number;
|
|
214
|
-
pageSize: number;
|
|
215
|
-
};
|
|
216
|
-
onRow?: AntdTableProps<T>["onRow"];
|
|
217
|
-
}
|
|
218
|
-
interface TableComponent {
|
|
219
|
-
<TData extends IdObject>(props: React.PropsWithChildren<TableProps<TData>>, context?: unknown): React.ReactElement | null;
|
|
220
|
-
}
|
|
221
|
-
export interface BaseEnumProps {
|
|
222
|
-
enumValues: readonly (string | {
|
|
223
|
-
value: string;
|
|
224
|
-
text: string;
|
|
225
|
-
})[];
|
|
226
|
-
placeholder?: string;
|
|
227
|
-
emptyLabel?: string;
|
|
228
|
-
size?: InputSize;
|
|
229
|
-
defaultValue?: string;
|
|
230
|
-
multiple?: boolean;
|
|
231
|
-
}
|
|
232
|
-
export interface TextAreaProps extends AntdTextAreaProps {
|
|
233
|
-
error?: boolean;
|
|
234
|
-
size?: "large" | "middle" | "small";
|
|
235
|
-
autoSize?: AntdTextAreaProps["autoSize"];
|
|
236
|
-
onFocusChangeHeight?: {
|
|
237
|
-
onFocus: number;
|
|
238
|
-
onBlur: number;
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
export interface StringProps {
|
|
242
|
-
placeholder?: string;
|
|
243
|
-
autoComplete?: "on" | "off" | "new-password";
|
|
244
|
-
prefix?: React.ReactNode;
|
|
245
|
-
suffix?: React.ReactNode;
|
|
246
|
-
className?: string;
|
|
247
|
-
size?: InputSize;
|
|
248
|
-
allowClear?: boolean;
|
|
249
|
-
tags?: string[];
|
|
250
|
-
tagsOverflow?: React.ReactNode;
|
|
251
|
-
onTagsAllowClearClick?: (e: React.MouseEvent) => void;
|
|
252
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
253
|
-
maxLength?: number;
|
|
254
|
-
disabled?: boolean;
|
|
255
|
-
}
|
|
256
|
-
export interface IntProps {
|
|
257
|
-
placeholder?: string;
|
|
258
|
-
suffix?: string;
|
|
259
|
-
size?: InputSize;
|
|
260
|
-
onBlur?: (input: FieldBaseProps<number, HTMLInputElement>["input"], event?: React.FocusEvent<HTMLInputElement>) => void;
|
|
261
|
-
}
|
|
262
72
|
export interface FloatProps {
|
|
263
73
|
placeholder?: string;
|
|
264
74
|
suffix?: string;
|
|
265
75
|
size?: InputSize;
|
|
266
76
|
onBlur?: (input: FieldBaseProps<number, HTMLInputElement>["input"], event?: React.FocusEvent<HTMLInputElement>) => void;
|
|
267
77
|
}
|
|
268
|
-
export type FieldBaseProps<V = any, T extends HTMLElement = HTMLElement> = FieldRenderProps<V, T> & {
|
|
269
|
-
disabled?: boolean;
|
|
270
|
-
className?: string;
|
|
271
|
-
};
|
|
272
|
-
export type WizardSteps = {
|
|
273
|
-
title: string;
|
|
274
|
-
render: React.ReactNode;
|
|
275
|
-
prevText?: string | React.ReactNode;
|
|
276
|
-
okText?: string | React.ReactNode;
|
|
277
|
-
onOk?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
278
|
-
disabled?: boolean;
|
|
279
|
-
}[];
|
|
280
|
-
export type ModalProps = Omit<AntdModalProps, "okType"> & {
|
|
281
|
-
confirmLoading?: boolean;
|
|
282
|
-
fullscreen?: boolean;
|
|
283
|
-
error?: string | React.ReactNode;
|
|
284
|
-
normal?: boolean;
|
|
285
|
-
children?: React.ReactNode;
|
|
286
|
-
showCancel?: boolean;
|
|
287
|
-
showOk?: boolean;
|
|
288
|
-
wizard?: {
|
|
289
|
-
step: number;
|
|
290
|
-
onStepChange?: (step: number) => void;
|
|
291
|
-
steps: WizardSteps;
|
|
292
|
-
hideLeft?: boolean;
|
|
293
|
-
right?: React.ReactNode;
|
|
294
|
-
destroyOtherStep?: boolean;
|
|
295
|
-
disablePrevStep?: boolean;
|
|
296
|
-
} | boolean;
|
|
297
|
-
};
|
|
298
|
-
export type SearchInputProps = Omit<InputProps, "onChange"> & {
|
|
299
|
-
onChange: (value: string) => void;
|
|
300
|
-
debounceWait?: number;
|
|
301
|
-
};
|
|
302
78
|
export type DateTimeRangeProps = DatePickerProps;
|
|
303
|
-
export type IntFieldProps<V = any, T extends HTMLElement = HTMLElement> = FieldBaseProps<V, T> & IntProps & {
|
|
304
|
-
onChange?: FieldBaseProps<V, T>["input"]["onChange"];
|
|
305
|
-
autoComplete?: "on" | "off";
|
|
306
|
-
maximum?: number;
|
|
307
|
-
minimum?: number;
|
|
308
|
-
supportNegativeValue?: boolean;
|
|
309
|
-
};
|
|
310
|
-
export type ButtonGroupType = {
|
|
311
|
-
className?: string;
|
|
312
|
-
size?: SizeType;
|
|
313
|
-
options: Array<Omit<ButtonProps, "shape" | "size" | "icon"> & {
|
|
314
|
-
key: string;
|
|
315
|
-
title?: string;
|
|
316
|
-
hideTitle?: boolean;
|
|
317
|
-
icon?: JSX.Element;
|
|
318
|
-
}>;
|
|
319
|
-
};
|
|
320
79
|
export type IntegerFieldProps<V = any, T extends HTMLElement = HTMLElement> = FieldBaseProps<V, T> & InputNumberProps & {
|
|
321
80
|
onChange?: FieldBaseProps<V, T>["input"]["onChange"];
|
|
322
81
|
controls?: boolean;
|
|
@@ -329,54 +88,6 @@ export type FloatFieldProps<V = any, T extends HTMLElement = HTMLElement> = Fiel
|
|
|
329
88
|
onChange?: FieldBaseProps<V, T>["input"]["onChange"];
|
|
330
89
|
autoComplete?: "on" | "off";
|
|
331
90
|
};
|
|
332
|
-
export type ButtonProps = {
|
|
333
|
-
prefixIcon?: JSX.Element;
|
|
334
|
-
hoverPrefixIcon?: JSX.Element;
|
|
335
|
-
suffixIcon?: JSX.Element;
|
|
336
|
-
hoverSuffixIcon?: JSX.Element;
|
|
337
|
-
type?: ButtonType | "secondary" | "tertiary" | "ordinary" | "ordinary-onTint" | "quiet";
|
|
338
|
-
} & Omit<AntdButtonProps, "type" | "icon">;
|
|
339
|
-
export type SwitchProps = Omit<AntdSwitchProps, "size"> & {
|
|
340
|
-
size?: "small" | "default" | "large";
|
|
341
|
-
};
|
|
342
|
-
export type RadioProps = AntdRadioProps & {
|
|
343
|
-
description?: React.ReactNode;
|
|
344
|
-
compact?: boolean;
|
|
345
|
-
};
|
|
346
|
-
export type RadioButtonProps = AntdRadioButtonProps & {
|
|
347
|
-
type?: "input" | "input-number";
|
|
348
|
-
min?: number;
|
|
349
|
-
max?: number;
|
|
350
|
-
precision?: number;
|
|
351
|
-
placeholder?: string;
|
|
352
|
-
initialValue?: string | number;
|
|
353
|
-
onInputChange?: (val: number | string | undefined) => void;
|
|
354
|
-
};
|
|
355
|
-
export type StepProps = {
|
|
356
|
-
className?: string;
|
|
357
|
-
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
358
|
-
title: string;
|
|
359
|
-
style?: React.CSSProperties;
|
|
360
|
-
disabled?: boolean;
|
|
361
|
-
};
|
|
362
|
-
export type IStepsProps = {
|
|
363
|
-
className?: string;
|
|
364
|
-
current?: number;
|
|
365
|
-
direction?: "horizontal" | "vertical";
|
|
366
|
-
style?: React.CSSProperties;
|
|
367
|
-
onChange?: (current: number) => void;
|
|
368
|
-
stepsConfig: Array<StepProps>;
|
|
369
|
-
containerClassname?: string;
|
|
370
|
-
disabled?: boolean;
|
|
371
|
-
preview?: boolean;
|
|
372
|
-
};
|
|
373
|
-
export interface ISimplePaginationProps {
|
|
374
|
-
className?: string;
|
|
375
|
-
current: number;
|
|
376
|
-
count: number;
|
|
377
|
-
size: number;
|
|
378
|
-
onPageChange?: (page: number) => void;
|
|
379
|
-
}
|
|
380
91
|
export type AntdInputComponentType = Input;
|
|
381
92
|
export interface IExpandableItemProps {
|
|
382
93
|
header?: React.ReactNode;
|
|
@@ -551,168 +262,8 @@ export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
|
|
|
551
262
|
DateRangePicker: React.FC<DateRangePickerProps>;
|
|
552
263
|
SegmentedControl: React.FC<ISegmentedControlProps>;
|
|
553
264
|
}
|
|
554
|
-
export type ArchComponentType = React.FC<{
|
|
555
|
-
architecture?: Architecture;
|
|
556
|
-
}>;
|
|
557
|
-
export type SelectComponentType<V = any, T extends HTMLElement = HTMLElement> = React.FunctionComponent<LooseFieldRenderProps<V, T> & KitSelectProps>;
|
|
558
265
|
export type OptionComponentType = React.FC<OptionProps> & {
|
|
559
266
|
isSelectOption: boolean;
|
|
560
267
|
};
|
|
561
|
-
export type BadgeComponentType = React.FC<BadgeProps & {
|
|
562
|
-
type?: BadgeTypeProps;
|
|
563
|
-
}>;
|
|
564
|
-
export type InputGroupComponentType = StyledMeta & React.FC<GroupProps>;
|
|
565
|
-
export type AlertComponentType = React.FunctionComponent<Omit<AlertProps, "type"> & {
|
|
566
|
-
type?: AlertProps["type"] | "normal";
|
|
567
|
-
action?: React.ReactNode;
|
|
568
|
-
}>;
|
|
569
|
-
export type SearchInputComponentType = React.FC<SearchInputProps>;
|
|
570
|
-
export type LoadingComponentType = React.FunctionComponent<{
|
|
571
|
-
fullView?: boolean;
|
|
572
|
-
}>;
|
|
573
|
-
export type EnumProps<V = any, T extends HTMLElement = HTMLElement> = {
|
|
574
|
-
input: Partial<FieldRenderProps<V, T>["input"]>;
|
|
575
|
-
meta: FieldRenderProps<V, T>["meta"];
|
|
576
|
-
disabled?: boolean;
|
|
577
|
-
className?: string;
|
|
578
|
-
dropdownClassName?: string;
|
|
579
|
-
} & BaseEnumProps;
|
|
580
268
|
export type TableFormPropsType = React.ForwardRefExoticComponent<TableFormProps & React.RefAttributes<TableFormHandle>>;
|
|
581
|
-
export type TagColor = "red" | "yellow" | "green" | "blue" | "purple" | "gray" | "red-ontint" | "green-ontint" | "error" | "warning" | "processing" | "default" | "success";
|
|
582
|
-
export type SplitTagComponentType = React.FC<Omit<AntdTagProps, "closable" | "closeIcon" | "onClose" | "visible"> & {
|
|
583
|
-
color?: "red" | "yellow" | "green" | "blue" | "purple" | "gray";
|
|
584
|
-
size?: "small" | "medium";
|
|
585
|
-
primaryContent: React.ReactNode;
|
|
586
|
-
secondaryContent: React.ReactNode;
|
|
587
|
-
}>;
|
|
588
|
-
export interface NameTagType extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> {
|
|
589
|
-
className?: string;
|
|
590
|
-
style?: React.CSSProperties;
|
|
591
|
-
}
|
|
592
|
-
export type TagProps = Omit<AntdTagProps, "closable" | "closeIcon" | "onClose"> & {
|
|
593
|
-
color?: TagColor;
|
|
594
|
-
size?: "small" | "medium";
|
|
595
|
-
hoverable?: boolean;
|
|
596
|
-
};
|
|
597
|
-
export type TagComponentType = React.FC<TagProps> & {
|
|
598
|
-
SplitTag: SplitTagComponentType;
|
|
599
|
-
NameTag: React.FC<NameTagType>;
|
|
600
|
-
};
|
|
601
|
-
export type StatusCapsuleColor = "red" | "yellow" | "green" | "blue" | "gray" | "success" | "danger" | "warning";
|
|
602
|
-
export type StatusCapsuleComponentType = React.FC<Omit<AntdTagProps, "closable" | "closeIcon" | "onClose" | "icon" | "size"> & {
|
|
603
|
-
color?: StatusCapsuleColor;
|
|
604
|
-
loading?: boolean;
|
|
605
|
-
hoverable?: boolean;
|
|
606
|
-
offWhiteMode?: boolean;
|
|
607
|
-
number?: number;
|
|
608
|
-
}>;
|
|
609
|
-
export type TokenColor = "red" | "yellow" | "green" | "blue" | "gray" | "purple";
|
|
610
|
-
export type TokenType = Omit<AntdTagProps, "closeIcon"> & {
|
|
611
|
-
color?: TokenColor;
|
|
612
|
-
size?: "small" | "medium" | "large";
|
|
613
|
-
checked?: boolean;
|
|
614
|
-
tooltipConfig?: {
|
|
615
|
-
title: string;
|
|
616
|
-
};
|
|
617
|
-
};
|
|
618
|
-
export type TokenComponentType = React.ForwardRefExoticComponent<TokenType & React.RefAttributes<HTMLDivElement>>;
|
|
619
|
-
export type TruncateTextWithTooltipType = {
|
|
620
|
-
text: string;
|
|
621
|
-
textWrapperCls?: string;
|
|
622
|
-
} & Omit<TooltipProps, "title">;
|
|
623
|
-
export type I18nNameTagType = {
|
|
624
|
-
/**
|
|
625
|
-
* 需要高亮的内容,对应 i18n 词条 <1>{name}<1> 部分
|
|
626
|
-
*/
|
|
627
|
-
name: string;
|
|
628
|
-
/**
|
|
629
|
-
* i18n 词条 key
|
|
630
|
-
*/
|
|
631
|
-
i18nKey: string;
|
|
632
|
-
/**
|
|
633
|
-
* 其它透传给 i18n Trans 组件的内容,具体参考 [trans-component](https://react.i18next.com/latest/trans-component)
|
|
634
|
-
*/
|
|
635
|
-
[key: string]: unknown;
|
|
636
|
-
};
|
|
637
|
-
export type CronPlanState = {
|
|
638
|
-
expression: string;
|
|
639
|
-
retain: number;
|
|
640
|
-
startAt: Dayjs;
|
|
641
|
-
enabled: boolean;
|
|
642
|
-
empty: boolean;
|
|
643
|
-
};
|
|
644
|
-
export type CronPlanProps = {
|
|
645
|
-
value: CronPlanState;
|
|
646
|
-
onChange: (value: CronPlanState) => unknown;
|
|
647
|
-
onRemove?: () => void;
|
|
648
|
-
};
|
|
649
|
-
export type NamesTooltipType = {
|
|
650
|
-
names: {
|
|
651
|
-
id: string;
|
|
652
|
-
name?: string;
|
|
653
|
-
}[];
|
|
654
|
-
};
|
|
655
|
-
export type CronCalendarProps = {
|
|
656
|
-
plans: {
|
|
657
|
-
expression: string;
|
|
658
|
-
startAt: Dayjs;
|
|
659
|
-
empty: boolean;
|
|
660
|
-
}[];
|
|
661
|
-
};
|
|
662
|
-
export type SwitchWithTextProps = PropsFrom<Kit["switch"]> & {
|
|
663
|
-
text?: {
|
|
664
|
-
checked: React.ReactNode;
|
|
665
|
-
unchecked: React.ReactNode;
|
|
666
|
-
};
|
|
667
|
-
};
|
|
668
|
-
export type GoBackButtonType = {
|
|
669
|
-
history: History | HistoryType;
|
|
670
|
-
title?: string;
|
|
671
|
-
onClick?: () => void;
|
|
672
|
-
path?: string;
|
|
673
|
-
index?: number;
|
|
674
|
-
};
|
|
675
|
-
export type CalendarComponentType = React.FC<CalendarProps<Moment>>;
|
|
676
|
-
type SummaryTableCommonProps = {
|
|
677
|
-
showHeader?: boolean;
|
|
678
|
-
border?: boolean;
|
|
679
|
-
className?: string;
|
|
680
|
-
title?: string;
|
|
681
|
-
rightAlign?: boolean;
|
|
682
|
-
showEdit?: boolean;
|
|
683
|
-
onEdit?: () => void;
|
|
684
|
-
layout?: "horizontal" | "inline";
|
|
685
|
-
};
|
|
686
|
-
export interface SummaryTableItem<T> {
|
|
687
|
-
key: string;
|
|
688
|
-
title: string | ReactNode;
|
|
689
|
-
dataIndex: string | string[];
|
|
690
|
-
render?: (cell: any, record: T) => React.ReactNode;
|
|
691
|
-
hiddenTitle?: boolean;
|
|
692
|
-
hiddenBorder?: boolean;
|
|
693
|
-
}
|
|
694
|
-
type SummaryTableCustomRenderProps = {
|
|
695
|
-
children: React.ReactChild;
|
|
696
|
-
} & SummaryTableCommonProps;
|
|
697
|
-
type SummaryTableContentProps<T> = {
|
|
698
|
-
items: SummaryTableItem<T>[];
|
|
699
|
-
labelWidth?: string;
|
|
700
|
-
dataSource: T;
|
|
701
|
-
};
|
|
702
|
-
type SummaryTableProps<T> = SummaryTableContentProps<T> & SummaryTableCommonProps;
|
|
703
|
-
export type SummaryTableContentComponentType = <T>(props: SummaryTableContentProps<T>) => JSX.Element;
|
|
704
|
-
export type SummaryTableComponentType = <T = unknown>(props: SummaryTableProps<T> | SummaryTableCustomRenderProps) => JSX.Element;
|
|
705
|
-
export type SortableListComponentType = React.FC<{
|
|
706
|
-
moveItem: (from: number, to: number) => void;
|
|
707
|
-
}> & {
|
|
708
|
-
Item: typeof Draggable;
|
|
709
|
-
};
|
|
710
|
-
export type SidebarSubtitleComponentType = React.FC<{
|
|
711
|
-
title: string;
|
|
712
|
-
className?: string;
|
|
713
|
-
}>;
|
|
714
|
-
export type LinkProps = Omit<ButtonProps, "type"> & {
|
|
715
|
-
type?: "default" | "primary" | "secondary";
|
|
716
|
-
};
|
|
717
|
-
export type LinkComponentType = React.ForwardRefExoticComponent<PropsWithChildren<LinkProps> & React.RefAttributes<HTMLButtonElement>>;
|
|
718
269
|
export {};
|
package/dist/src/spec/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import Alert from "../../../src/core/Alert";
|
|
|
2
2
|
import { ComponentStory } from "@storybook/react";
|
|
3
3
|
import React from "react";
|
|
4
4
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, Omit<import("antd/lib/alert").AlertProps, "type"> & {
|
|
5
|
-
type?: "normal" | "
|
|
5
|
+
type?: "normal" | "success" | "info" | "warning" | "error" | undefined;
|
|
6
6
|
action?: React.ReactNode;
|
|
7
7
|
} & {
|
|
8
8
|
children?: React.ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Architecture } from "../../../src/
|
|
1
|
+
import { Architecture } from "../../../src/core/Arch";
|
|
2
2
|
import React from "react";
|
|
3
3
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
|
|
4
4
|
architecture?: Architecture | undefined;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src
|
|
3
|
-
emptyProps?: import("../../../src
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src").RawValue & {
|
|
3
|
+
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
4
4
|
} & {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}>;
|
|
7
7
|
export default _default;
|
|
8
|
-
export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src
|
|
9
|
-
emptyProps?: import("../../../src
|
|
8
|
+
export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src").RawValue & {
|
|
9
|
+
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
10
10
|
} & {
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
}>;
|
|
13
|
-
export declare const Empty: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src
|
|
14
|
-
emptyProps?: import("../../../src
|
|
13
|
+
export declare const Empty: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src").RawValue & {
|
|
14
|
+
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
children?: React.ReactNode;
|
|
17
17
|
}>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src
|
|
3
|
-
emptyProps?: import("../../../src
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src").RawValue & {
|
|
3
|
+
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
4
4
|
} & {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}>;
|
|
7
7
|
export default _default;
|
|
8
|
-
export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src
|
|
9
|
-
emptyProps?: import("../../../src
|
|
8
|
+
export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src").RawValue & {
|
|
9
|
+
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
10
10
|
} & {
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
}>;
|
|
13
|
-
export declare const Empty: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src
|
|
14
|
-
emptyProps?: import("../../../src
|
|
13
|
+
export declare const Empty: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src").RawValue & {
|
|
14
|
+
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
children?: React.ReactNode;
|
|
17
17
|
}>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src
|
|
3
|
-
emptyProps?: import("../../../src
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src").RawValue & {
|
|
3
|
+
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
4
4
|
} & {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}>;
|
|
7
7
|
export default _default;
|
|
8
|
-
export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src
|
|
9
|
-
emptyProps?: import("../../../src
|
|
8
|
+
export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src").RawValue & {
|
|
9
|
+
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
10
10
|
} & {
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
}>;
|
|
13
|
-
export declare const Empty: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src
|
|
14
|
-
emptyProps?: import("../../../src
|
|
13
|
+
export declare const Empty: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src").RawValue & {
|
|
14
|
+
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
children?: React.ReactNode;
|
|
17
17
|
}>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src
|
|
3
|
-
emptyProps?: import("../../../src
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src").RawValue & {
|
|
3
|
+
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
4
4
|
} & {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}>;
|
|
7
7
|
export default _default;
|
|
8
|
-
export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src
|
|
9
|
-
emptyProps?: import("../../../src
|
|
8
|
+
export declare const Simple: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src").RawValue & {
|
|
9
|
+
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
10
10
|
} & {
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
}>;
|
|
13
|
-
export declare const Empty: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src
|
|
14
|
-
emptyProps?: import("../../../src
|
|
13
|
+
export declare const Empty: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../../src").RawValue & {
|
|
14
|
+
emptyProps?: import("../../../src").IEmptyProps | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
children?: React.ReactNode;
|
|
17
17
|
}>;
|