@cloudtower/eagle 0.27.6 → 0.27.10
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/package.json +6 -6
- package/README.md +0 -60
- package/dist/UIKitProvider/UIKitProvider.stories.d.ts +0 -7
- package/dist/UIKitProvider/index.d.ts +0 -17
- package/dist/assets/55a976ab.woff2 +0 -0
- package/dist/assets/575908fb.woff2 +0 -0
- package/dist/assets/5d4275ee.woff +0 -0
- package/dist/assets/632c7446.woff2 +0 -0
- package/dist/assets/643e5041.woff +0 -0
- package/dist/assets/66e8de15.woff2 +0 -0
- package/dist/assets/cf89dd5b.woff +0 -0
- package/dist/assets/d11ea859.woff2 +0 -0
- package/dist/assets/d778f33f.woff +0 -0
- package/dist/assets/ed5714f7.woff2 +0 -0
- package/dist/components/Alert/Alert.stories.d.ts +0 -11
- package/dist/components/Alert/index.d.ts +0 -3
- package/dist/components/Arch/Arch.stories.d.ts +0 -18
- package/dist/components/Arch/index.d.ts +0 -3
- package/dist/components/Badge/index.d.ts +0 -3
- package/dist/components/BaseIcon/BaseIcon.stories.d.ts +0 -4
- package/dist/components/BaseIcon/index.d.ts +0 -15
- package/dist/components/Bit/Bit.stories.d.ts +0 -17
- package/dist/components/Bit/index.d.ts +0 -3
- package/dist/components/BitPerSecond/BitPerSecond.stories.d.ts +0 -17
- package/dist/components/BitPerSecond/index.d.ts +0 -3
- package/dist/components/Bps/Bps.stories.d.ts +0 -17
- package/dist/components/Bps/index.d.ts +0 -3
- package/dist/components/Button/Button.stories.d.ts +0 -20
- package/dist/components/Button/HoverableElement.d.ts +0 -9
- package/dist/components/Button/HoverableElement.stories.d.ts +0 -3
- package/dist/components/Button/index.d.ts +0 -16
- package/dist/components/ButtonGroup/index.d.ts +0 -5
- package/dist/components/Byte/Byte.stories.d.ts +0 -17
- package/dist/components/Byte/index.d.ts +0 -3
- package/dist/components/Calendar/index.d.ts +0 -3
- package/dist/components/Card/Card.stories.d.ts +0 -23
- package/dist/components/Card/CardBody.d.ts +0 -5
- package/dist/components/Card/CardTitle.d.ts +0 -5
- package/dist/components/Card/CardWrapper.d.ts +0 -10
- package/dist/components/Card/__test__/Card.test.d.ts +0 -1
- package/dist/components/Card/index.d.ts +0 -22
- package/dist/components/Checkbox/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/Checkbox/index.d.ts +0 -8
- package/dist/components/Empty/index.d.ts +0 -7
- package/dist/components/ErrorBoundary/index.d.ts +0 -4
- package/dist/components/ExpandableList/CustomHeader.stories.d.ts +0 -4
- package/dist/components/ExpandableList/ExpandIcon.d.ts +0 -13
- package/dist/components/ExpandableList/ExpandableContainer.d.ts +0 -5
- package/dist/components/ExpandableList/ExpandableItem.d.ts +0 -9
- package/dist/components/ExpandableList/ExpandableItem.stories.d.ts +0 -10
- package/dist/components/ExpandableList/ExpandableList.stories.d.ts +0 -5
- package/dist/components/ExpandableList/RoundOrder.d.ts +0 -6
- package/dist/components/ExpandableList/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/FailedLoad/index.d.ts +0 -9
- package/dist/components/Fields/FieldsBoolean/FieldsBoolean.stories.d.ts +0 -9
- package/dist/components/Fields/FieldsBoolean/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/Fields/FieldsBoolean/index.d.ts +0 -4
- package/dist/components/Fields/FieldsDateTime/index.d.ts +0 -4
- package/dist/components/Fields/FieldsDateTimeRange/FieldsDateTimeRange.stories.d.ts +0 -5
- package/dist/components/Fields/FieldsDateTimeRange/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/Fields/FieldsDateTimeRange/index.d.ts +0 -5
- package/dist/components/Fields/FieldsEnum/FieldsEnum.stories.d.ts +0 -7
- package/dist/components/Fields/FieldsEnum/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/Fields/FieldsEnum/index.d.ts +0 -4
- package/dist/components/Fields/FieldsFloat/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/Fields/FieldsFloat/index.d.ts +0 -4
- package/dist/components/Fields/FieldsInt/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/Fields/FieldsInt/index.d.ts +0 -4
- package/dist/components/Fields/FieldsInteger/FieldsInteger.stories.d.ts +0 -7
- package/dist/components/Fields/FieldsInteger/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/Fields/FieldsInteger/index.d.ts +0 -4
- package/dist/components/Fields/FieldsString/FieldsString.stories.d.ts +0 -17
- package/dist/components/Fields/FieldsString/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/Fields/FieldsString/index.d.ts +0 -4
- package/dist/components/Fields/FieldsTextArea/index.d.ts +0 -5
- package/dist/components/Fields/FieldsTimePicker/FieldsTimePicker.stories.d.ts +0 -9
- package/dist/components/Fields/FieldsTimePicker/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/Fields/FieldsTimePicker/index.d.ts +0 -5
- package/dist/components/Fields/index.d.ts +0 -26
- package/dist/components/Form/index.d.ts +0 -3
- package/dist/components/FormItem/Form.stories.d.ts +0 -3
- package/dist/components/FormItem/index.d.ts +0 -4
- package/dist/components/Frequency/Frequency.stories.d.ts +0 -17
- package/dist/components/Frequency/index.d.ts +0 -3
- package/dist/components/I18nNameTag/I18nNameTag.stories.d.ts +0 -13
- package/dist/components/I18nNameTag/__test__/index.test.d.ts +0 -1
- package/dist/components/I18nNameTag/index.d.ts +0 -4
- package/dist/components/Icon/Icon.stories.d.ts +0 -21
- package/dist/components/Icon/index.d.ts +0 -39
- package/dist/components/Input/Input.simple.stories.d.ts +0 -12
- package/dist/components/Input/Input.stories.d.ts +0 -28
- package/dist/components/Input/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/Input/index.d.ts +0 -6
- package/dist/components/InputGroup/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/InputGroup/index.d.ts +0 -3
- package/dist/components/InputGroup/inputGroup.stories.d.ts +0 -6
- package/dist/components/InputInteger/__test__/unit.test.d.ts +0 -1
- package/dist/components/InputInteger/formatterInteger.d.ts +0 -2
- package/dist/components/InputInteger/index.d.ts +0 -12
- package/dist/components/InputNumber/index.d.ts +0 -12
- package/dist/components/InputTagItem/index.d.ts +0 -5
- package/dist/components/KitStoreProvider/index.d.ts +0 -8
- package/dist/components/Loading/Loading.stories.d.ts +0 -12
- package/dist/components/Loading/index.d.ts +0 -3
- package/dist/components/Loading/style.d.ts +0 -4
- package/dist/components/Metric/Metric.stories.d.ts +0 -4
- package/dist/components/Metric/MetricActions.d.ts +0 -9
- package/dist/components/Metric/MetricLegend.d.ts +0 -16
- package/dist/components/Metric/Pointer.d.ts +0 -6
- package/dist/components/Metric/RenderChart.d.ts +0 -41
- package/dist/components/Metric/TooltipFormatter.d.ts +0 -10
- package/dist/components/Metric/index.d.ts +0 -29
- package/dist/components/Metric/metric.d.ts +0 -43
- package/dist/components/Metric/mockMetric.d.ts +0 -3
- package/dist/components/Metric/mockMetric2.d.ts +0 -3
- package/dist/components/Metric/styled.d.ts +0 -18
- package/dist/components/Metric/type.d.ts +0 -39
- package/dist/components/Modal/Modal.stories.d.ts +0 -16
- package/dist/components/Modal/index.d.ts +0 -4
- package/dist/components/ModalStack/index.d.ts +0 -3
- package/dist/components/Overflow/index.d.ts +0 -14
- package/dist/components/OverflowTooltip/OverflowTooltip.stories.d.ts +0 -17
- package/dist/components/OverflowTooltip/index.d.ts +0 -4
- package/dist/components/Pagination/Pagination.stories.d.ts +0 -6
- package/dist/components/Pagination/index.d.ts +0 -5
- package/dist/components/Percent/Percent.stories.d.ts +0 -32
- package/dist/components/Percent/index.d.ts +0 -3
- package/dist/components/Progress/index.d.ts +0 -3
- package/dist/components/Radio/Radio.stories.d.ts +0 -29
- package/dist/components/Radio/RadioButton.stories.d.ts +0 -8
- package/dist/components/Radio/RadioGroup.stories.d.ts +0 -23
- package/dist/components/Radio/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/Radio/index.d.ts +0 -8
- package/dist/components/SearchInput/SearchInput.stories.d.ts +0 -14
- package/dist/components/SearchInput/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/SearchInput/index.d.ts +0 -3
- package/dist/components/Second/Second.stories.d.ts +0 -22
- package/dist/components/Second/index.d.ts +0 -3
- package/dist/components/Select/Select.Simple.stories.d.ts +0 -10
- package/dist/components/Select/Select.stories.d.ts +0 -16
- package/dist/components/Select/index.d.ts +0 -3
- package/dist/components/SimplePagination/SimplePagination.stories.d.ts +0 -7
- package/dist/components/SimplePagination/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/SimplePagination/index.d.ts +0 -4
- package/dist/components/Space/Space.stories.d.ts +0 -8
- package/dist/components/Space/index.d.ts +0 -1
- package/dist/components/Speed/Speed.stories.d.ts +0 -17
- package/dist/components/Speed/index.d.ts +0 -3
- package/dist/components/StatusCapsule/StatusCapsule.stories.d.ts +0 -12
- package/dist/components/StatusCapsule/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/StatusCapsule/index.d.ts +0 -8
- package/dist/components/Steps/Steps.stories.d.ts +0 -8
- package/dist/components/Steps/index.d.ts +0 -4
- package/dist/components/Steps/style.d.ts +0 -5
- package/dist/components/Styled/Styled.stories.d.ts +0 -11
- package/dist/components/Styled/index.d.ts +0 -92
- package/dist/components/Switch/Switch.stories.d.ts +0 -17
- package/dist/components/Switch/index.d.ts +0 -4
- package/dist/components/Table/Table.stories.d.ts +0 -16
- package/dist/components/Table/TableWidget.d.ts +0 -10
- package/dist/components/Table/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/Table/common.d.ts +0 -2
- package/dist/components/Table/index.d.ts +0 -9
- package/dist/components/TableForm/AddRowButton.d.ts +0 -4
- package/dist/components/TableForm/Columns/AffixColumn.d.ts +0 -6
- package/dist/components/TableForm/Columns/CheckboxColumn.d.ts +0 -8
- package/dist/components/TableForm/Columns/FormItem.d.ts +0 -7
- package/dist/components/TableForm/Columns/InputColumn.d.ts +0 -11
- package/dist/components/TableForm/Columns/TextColumn.d.ts +0 -4
- package/dist/components/TableForm/Columns/index.d.ts +0 -40
- package/dist/components/TableForm/TableForm.stories.d.ts +0 -17
- package/dist/components/TableForm/TableFormBodyCell.d.ts +0 -3
- package/dist/components/TableForm/TableFormBodyRows.d.ts +0 -4
- package/dist/components/TableForm/TableFormHeaderCell.d.ts +0 -3
- package/dist/components/TableForm/__test__/tableForm.test.d.ts +0 -1
- package/dist/components/TableForm/__test__/utils.test.d.ts +0 -1
- package/dist/components/TableForm/const.d.ts +0 -9
- package/dist/components/TableForm/index.d.ts +0 -4
- package/dist/components/TableForm/style.d.ts +0 -17
- package/dist/components/TableForm/types.d.ts +0 -166
- package/dist/components/TableForm/utils.d.ts +0 -4
- package/dist/components/Tag/SplitTag.d.ts +0 -3
- package/dist/components/Tag/Tag.stories.d.ts +0 -29
- package/dist/components/Tag/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/Tag/const.d.ts +0 -1
- package/dist/components/Tag/index.d.ts +0 -4
- package/dist/components/Tag/style.d.ts +0 -5
- package/dist/components/TextArea/index.d.ts +0 -4
- package/dist/components/Time/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/Time/index.d.ts +0 -4
- package/dist/components/Time/time.stories.d.ts +0 -6
- package/dist/components/TimePicker/index.d.ts +0 -6
- package/dist/components/TimeZoneSelect/TimeZoneSelect.stories.d.ts +0 -17
- package/dist/components/TimeZoneSelect/index.d.ts +0 -4
- package/dist/components/Token/Token.stories.d.ts +0 -24
- package/dist/components/Token/__test__/h5_css.test.d.ts +0 -1
- package/dist/components/Token/index.d.ts +0 -12
- package/dist/components/Token/style.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -6
- package/dist/components/Tooltip/index.d.ts +0 -4
- package/dist/components/Truncate/Truncate.stories.d.ts +0 -8
- package/dist/components/Truncate/index.d.ts +0 -12
- package/dist/components/Typo/index.d.ts +0 -70
- package/dist/components/antd.d.ts +0 -3
- package/dist/components/index.d.ts +0 -41
- package/dist/components/message/__tests__/index.test.d.ts +0 -1
- package/dist/components/message/index.d.ts +0 -52
- package/dist/components/message/style/index.d.ts +0 -2
- package/dist/components/message-group/__test__/message-group.test.d.ts +0 -1
- package/dist/components/message-group/index.d.ts +0 -27
- package/dist/components/message-group/message-group.stories.d.ts +0 -17
- package/dist/components.css +0 -33349
- package/dist/core/AccordionCard/AccordionCard.stories.d.ts +0 -7
- package/dist/core/AccordionCard/index.d.ts +0 -16
- package/dist/core/Breadcrumb/Breadcrumb.stories.d.ts +0 -6
- package/dist/core/Breadcrumb/index.d.ts +0 -7
- package/dist/core/DetailCard/DetailCard.stories.d.ts +0 -7
- package/dist/core/DetailCard/index.d.ts +0 -4
- package/dist/core/ParrotTrans/index.d.ts +0 -4
- package/dist/core/StepProgress/StepProgress.stories.d.ts +0 -8
- package/dist/core/StepProgress/index.d.ts +0 -3
- package/dist/coreX/BarChart/BarChart.stories.d.ts +0 -6
- package/dist/coreX/BarChart/index.d.ts +0 -10
- package/dist/coreX/ChartWithTooltip/ChartWithTooltip.stories.d.ts +0 -7
- package/dist/coreX/ChartWithTooltip/index.d.ts +0 -40
- package/dist/coreX/Counting/Counting.stories.d.ts +0 -29
- package/dist/coreX/Counting/index.d.ts +0 -4
- package/dist/coreX/CronCalendar/CronCalendar.stories.d.ts +0 -7
- package/dist/coreX/CronCalendar/index.d.ts +0 -4
- package/dist/coreX/CronPlan/CronPlan.stories.d.ts +0 -9
- package/dist/coreX/CronPlan/index.d.ts +0 -18
- package/dist/coreX/DonutChart/DonutChart.stories.d.ts +0 -6
- package/dist/coreX/DonutChart/index.d.ts +0 -12
- package/dist/coreX/DropdownTransition/index.d.ts +0 -6
- package/dist/coreX/GoBackButton/GoBackButton.stories.d.ts +0 -9
- package/dist/coreX/GoBackButton/index.d.ts +0 -4
- package/dist/coreX/NamesTooltip/NamesTooltip.stories.d.ts +0 -7
- package/dist/coreX/NamesTooltip/__test__/index.test.d.ts +0 -1
- package/dist/coreX/NamesTooltip/index.d.ts +0 -4
- package/dist/coreX/SwitchWithText/SwitchWithText.stories.d.ts +0 -9
- package/dist/coreX/SwitchWithText/__tests__/h5_css.test.d.ts +0 -1
- package/dist/coreX/SwitchWithText/index.d.ts +0 -4
- package/dist/coreX/TruncatedTextWithTooltip/TruncatedTextWithTooltip.stories.d.ts +0 -7
- package/dist/coreX/TruncatedTextWithTooltip/index.d.ts +0 -10
- package/dist/coreX/UnitWithChart/UnitWithChart.stories.d.ts +0 -7
- package/dist/coreX/UnitWithChart/index.d.ts +0 -30
- package/dist/coreX/common/getCalendarTitle.d.ts +0 -2
- package/dist/coreX/index.d.ts +0 -1
- package/dist/esm/index.js +0 -7824
- package/dist/esm/stats1.html +0 -6177
- package/dist/font.css +0 -98
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/useElementResize.d.ts +0 -2
- package/dist/hooks/useElementsSize.d.ts +0 -8
- package/dist/hooks/useParrotTranslation.d.ts +0 -2
- package/dist/index.d.ts +0 -37
- package/dist/spec/base.d.ts +0 -664
- package/dist/spec/index.d.ts +0 -2
- package/dist/spec/react-final-form.d.ts +0 -46
- package/dist/spec/type.d.ts +0 -71
- package/dist/store/chart.d.ts +0 -40
- package/dist/store/index.d.ts +0 -25
- package/dist/store/modal.d.ts +0 -50
- package/dist/stories/Stack.d.ts +0 -12
- package/dist/stories/Story.d.ts +0 -5
- package/dist/stories/changeLng.stories.d.ts +0 -8
- package/dist/stories/icons-react.stories.d.ts +0 -3
- package/dist/stories/index.d.ts +0 -2
- package/dist/stories/menu.stories.d.ts +0 -17
- package/dist/style.css +0 -33436
- package/dist/umd/index.js +0 -7881
- package/dist/umd/stats1.html +0 -6177
- package/dist/utils/__test__/compute.spec.d.ts +0 -1
- package/dist/utils/__test__/cron-time.spec.d.ts +0 -1
- package/dist/utils/__test__/time.spec.d.ts +0 -1
- package/dist/utils/__test__/tower.test.d.ts +0 -1
- package/dist/utils/compute.d.ts +0 -1
- package/dist/utils/constants.d.ts +0 -5
- package/dist/utils/cron-time.d.ts +0 -65
- package/dist/utils/dom.d.ts +0 -6
- package/dist/utils/formatValue.d.ts +0 -2
- package/dist/utils/icon.d.ts +0 -2
- package/dist/utils/index.d.ts +0 -7
- package/dist/utils/isEmpty.d.ts +0 -2
- package/dist/utils/testSuit.d.ts +0 -2
- package/dist/utils/time.d.ts +0 -25
- package/dist/utils/tower.d.ts +0 -66
- package/dist/variables.scss +0 -538
package/dist/spec/base.d.ts
DELETED
|
@@ -1,664 +0,0 @@
|
|
|
1
|
-
import { StyledMeta } from "@linaria/react";
|
|
2
|
-
import { SizeType } from "antd/es/config-provider/SizeContext";
|
|
3
|
-
import { AlertProps } from "antd/lib/alert";
|
|
4
|
-
import { AutoCompleteProps } from "antd/lib/auto-complete";
|
|
5
|
-
import { BadgeProps } from "antd/lib/badge";
|
|
6
|
-
import { ButtonProps as AntdButtonProps, ButtonType } from "antd/lib/button";
|
|
7
|
-
import { CalendarProps } from "antd/lib/calendar/generateCalendar";
|
|
8
|
-
import { CascaderProps } from "antd/lib/cascader";
|
|
9
|
-
import { CheckboxGroupProps, CheckboxProps } from "antd/lib/checkbox";
|
|
10
|
-
import { ColProps } from "antd/lib/col";
|
|
11
|
-
import { CollapsePanelProps, CollapseProps } from "antd/lib/collapse";
|
|
12
|
-
import { DatePickerProps, RangePickerProps } from "antd/lib/date-picker";
|
|
13
|
-
import { DividerProps as AntdDividerProps } from "antd/lib/divider";
|
|
14
|
-
import { DrawerProps } from "antd/lib/drawer";
|
|
15
|
-
import { DropDownProps } from "antd/lib/dropdown";
|
|
16
|
-
import { EmptyProps } from "antd/lib/empty";
|
|
17
|
-
import type Form from "antd/lib/form";
|
|
18
|
-
import type Input from "antd/lib/input";
|
|
19
|
-
import { GroupProps, InputProps } from "antd/lib/input";
|
|
20
|
-
import { TextAreaProps as AntdTextAreaProps } from "antd/lib/input/TextArea";
|
|
21
|
-
import { InputNumberProps } from "antd/lib/input-number";
|
|
22
|
-
import { SiderProps } from "antd/lib/layout";
|
|
23
|
-
import { BasicProps } from "antd/lib/layout/layout";
|
|
24
|
-
import { ListProps } from "antd/lib/list";
|
|
25
|
-
import { ListItemProps } from "antd/lib/list/Item";
|
|
26
|
-
import { MenuItemGroupProps, MenuProps } from "antd/lib/menu";
|
|
27
|
-
import { MenuItemProps } from "antd/lib/menu/MenuItem";
|
|
28
|
-
import { SubMenuProps } from "antd/lib/menu/SubMenu";
|
|
29
|
-
import { ModalProps as AntdModalProps } from "antd/lib/modal";
|
|
30
|
-
import { PopoverProps } from "antd/lib/popover";
|
|
31
|
-
import { ProgressProps } from "antd/lib/progress";
|
|
32
|
-
import { RadioGroupProps as AntdRadioGroupProps, RadioProps as AntdRadioProps } from "antd/lib/radio";
|
|
33
|
-
import { RadioButtonProps as AntdRadioButtonProps } from "antd/lib/radio/radioButton";
|
|
34
|
-
import { RowProps } from "antd/lib/row";
|
|
35
|
-
import { SelectProps as AntdSelectProps, SelectProps } from "antd/lib/select";
|
|
36
|
-
import { SkeletonProps as AntdSkeletonProps } from "antd/lib/skeleton";
|
|
37
|
-
import { SkeletonButtonProps } from "antd/lib/skeleton/Button";
|
|
38
|
-
import Steps from "antd/lib/steps";
|
|
39
|
-
import { SwitchProps as AntdSwitchProps } from "antd/lib/switch";
|
|
40
|
-
import { ColumnsType, ColumnType, TableProps as AntdTableProps } from "antd/lib/table";
|
|
41
|
-
import { TableRowSelection } from "antd/lib/table/interface";
|
|
42
|
-
import { TabPaneProps, TabsProps } from "antd/lib/tabs";
|
|
43
|
-
import { TagProps } from "antd/lib/tag";
|
|
44
|
-
import { TimePickerProps } from "antd/lib/time-picker";
|
|
45
|
-
import { TimeLineItemProps, TimelineProps } from "antd/lib/timeline";
|
|
46
|
-
import { TooltipProps as AntdTooltipProps } from "antd/lib/tooltip";
|
|
47
|
-
import { TreeProps as AntdTreeProps } from "antd/lib/tree";
|
|
48
|
-
import type TreeSelect from "antd/lib/tree-select";
|
|
49
|
-
import { TextProps } from "antd/lib/typography/Text";
|
|
50
|
-
import { DraggerProps, UploadProps } from "antd/lib/upload";
|
|
51
|
-
import type { Dayjs } from "dayjs";
|
|
52
|
-
import type { History } from "history";
|
|
53
|
-
import type { Moment } from "moment";
|
|
54
|
-
import React, { ForwardRefExoticComponent, PropsWithChildren, PropsWithoutRef, ReactNode, RefAttributes } from "react";
|
|
55
|
-
import { CardProps } from "../components/Card";
|
|
56
|
-
import { IEmptyProps } from "../components/Empty";
|
|
57
|
-
import { MessageApi } from "../components/message";
|
|
58
|
-
import { TableFormHandle, TableFormProps } from "../components/TableForm/types";
|
|
59
|
-
import { TruncatePropTypes } from "../components/Truncate";
|
|
60
|
-
import type { CloseButtonProps } from "../core/AccordionCard";
|
|
61
|
-
import { IChartWithUnitProps, ICWTProps } from "../coreX/ChartWithTooltip";
|
|
62
|
-
import { IDonutChartProps } from "../coreX/DonutChart";
|
|
63
|
-
import { IUnitWithChartProps } from "../coreX/UnitWithChart";
|
|
64
|
-
import { SerializableObject } from "../utils/tower";
|
|
65
|
-
import { FieldRenderProps } from "./react-final-form";
|
|
66
|
-
import { Architecture, DropdownTransitionProps, IAccordionCardProps, IBreadcrumbProps, ICircleProgressProps, ICountingProps, IDetailCardProps, ISpaceProps, ITimeProps, ITimeZoneSelectProps, PropsFrom } from "./type";
|
|
67
|
-
export type AntdTableComponentType = <RecordType extends object = any>(props: AntdTableProps<RecordType>) => JSX.Element;
|
|
68
|
-
export type AntdTreeSelectComponentType<T> = TreeSelect<T>;
|
|
69
|
-
interface EmptyType extends React.FC<EmptyProps> {
|
|
70
|
-
PRESENTED_IMAGE_DEFAULT: React.ReactNode;
|
|
71
|
-
PRESENTED_IMAGE_SIMPLE: React.ReactNode;
|
|
72
|
-
}
|
|
73
|
-
export interface CollapseInterface extends React.FC<CollapseProps> {
|
|
74
|
-
Panel: React.FC<CollapsePanelProps>;
|
|
75
|
-
}
|
|
76
|
-
type BadgeTypeProps = "warning" | "error" | "info";
|
|
77
|
-
type Primitive = "Int" | "Float" | "DateTime" | "Enum" | "String" | "Boolean";
|
|
78
|
-
export type Child = {
|
|
79
|
-
type: Exclude<Primitive, "Enum">;
|
|
80
|
-
} | {
|
|
81
|
-
type: "Enum";
|
|
82
|
-
enumValues: readonly string[];
|
|
83
|
-
};
|
|
84
|
-
interface IdObject {
|
|
85
|
-
id: string;
|
|
86
|
-
}
|
|
87
|
-
interface LooseFieldRenderProps<V, T extends HTMLElement> {
|
|
88
|
-
input: {
|
|
89
|
-
name?: FieldRenderProps<V, T>["input"]["name"];
|
|
90
|
-
value?: FieldRenderProps<V, T>["input"]["value"];
|
|
91
|
-
onBlur?: FieldRenderProps<V, T>["input"]["onBlur"];
|
|
92
|
-
onChange?: (value: string | string[], option: {
|
|
93
|
-
object: V;
|
|
94
|
-
} | Array<{
|
|
95
|
-
object: V;
|
|
96
|
-
}>) => void;
|
|
97
|
-
onFocus?: FieldRenderProps<V, T>["input"]["onFocus"];
|
|
98
|
-
type?: FieldRenderProps<V, T>["input"]["type"];
|
|
99
|
-
checked?: FieldRenderProps<V, T>["input"]["checked"];
|
|
100
|
-
multiple?: FieldRenderProps<V, T>["input"]["multiple"];
|
|
101
|
-
};
|
|
102
|
-
meta?: FieldRenderProps<V, T>["meta"];
|
|
103
|
-
focusIndicator?: boolean;
|
|
104
|
-
}
|
|
105
|
-
export interface PaginationProps {
|
|
106
|
-
current: number;
|
|
107
|
-
count: number;
|
|
108
|
-
size: number;
|
|
109
|
-
onChange: (page: number) => void;
|
|
110
|
-
onSizeChange?: (size: number) => void;
|
|
111
|
-
simple?: boolean;
|
|
112
|
-
showTotal?: (total: number, range: [number, number]) => string;
|
|
113
|
-
selectorVisible?: boolean;
|
|
114
|
-
className?: string;
|
|
115
|
-
}
|
|
116
|
-
export type InputSize = "large" | "middle" | "small";
|
|
117
|
-
export type KitSelectProps = {
|
|
118
|
-
defaultValue?: string;
|
|
119
|
-
error?: unknown | React.ReactNode;
|
|
120
|
-
danger?: boolean;
|
|
121
|
-
multiple?: boolean;
|
|
122
|
-
scrollBottomBuffer?: number;
|
|
123
|
-
onScrollBottom?: () => void;
|
|
124
|
-
selectLimit?: number;
|
|
125
|
-
} & AntdSelectProps<string>;
|
|
126
|
-
interface OptionProps {
|
|
127
|
-
value: React.ReactText;
|
|
128
|
-
disabled?: boolean;
|
|
129
|
-
key?: string;
|
|
130
|
-
hidden?: boolean;
|
|
131
|
-
label?: string;
|
|
132
|
-
className?: string;
|
|
133
|
-
object?: SerializableObject;
|
|
134
|
-
title?: string;
|
|
135
|
-
}
|
|
136
|
-
export interface RawValue {
|
|
137
|
-
rawValue?: number | null;
|
|
138
|
-
decimals?: number;
|
|
139
|
-
noUnitOnZero?: boolean;
|
|
140
|
-
abbreviate?: boolean;
|
|
141
|
-
valueClassName?: string;
|
|
142
|
-
unitClassName?: string;
|
|
143
|
-
}
|
|
144
|
-
export type UnitFn = React.FC<RawValue & {
|
|
145
|
-
emptyProps?: IEmptyProps;
|
|
146
|
-
}>;
|
|
147
|
-
export type PercentFn = React.FC<RawValue & {
|
|
148
|
-
saturated?: boolean;
|
|
149
|
-
emptyProps?: IEmptyProps;
|
|
150
|
-
}>;
|
|
151
|
-
export type SorterOrder = "descend" | "ascend" | undefined;
|
|
152
|
-
type Columns<T> = ColumnsType<T>[0];
|
|
153
|
-
export interface RequiredColumnProps<T> extends Omit<Columns<T>, "onHeaderCell" | "onCell" | "title"> {
|
|
154
|
-
key: Exclude<Columns<T>["key"], undefined | number>;
|
|
155
|
-
dataIndex: Exclude<ColumnType<T>["dataIndex"], undefined>;
|
|
156
|
-
sortable?: boolean;
|
|
157
|
-
width?: number | string;
|
|
158
|
-
onHeaderCell?: (column: ColumnType<T>) => any;
|
|
159
|
-
onCell?: (column: T) => any;
|
|
160
|
-
/**
|
|
161
|
-
* removed params for title function
|
|
162
|
-
* because we need to cast the function in customize column
|
|
163
|
-
* which cannot access the header params
|
|
164
|
-
*/
|
|
165
|
-
title: React.ReactNode | (() => React.ReactNode);
|
|
166
|
-
customizable?: boolean;
|
|
167
|
-
}
|
|
168
|
-
export type TableScroll = string | number | boolean;
|
|
169
|
-
export interface TableProps<T extends {
|
|
170
|
-
id: string;
|
|
171
|
-
}> {
|
|
172
|
-
bordered?: boolean;
|
|
173
|
-
loading?: boolean;
|
|
174
|
-
error?: React.ReactNode | string;
|
|
175
|
-
dataSource: T[] | undefined;
|
|
176
|
-
columns: RequiredColumnProps<T>[];
|
|
177
|
-
onSorterChange?: (order: SorterOrder | null, key?: string | number) => void;
|
|
178
|
-
onRowClick?: (record: T, index: number, evt: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
179
|
-
rowClassName?: (record: T, index: number) => string;
|
|
180
|
-
scroll?: {
|
|
181
|
-
x?: number | string | true;
|
|
182
|
-
y?: number | string;
|
|
183
|
-
};
|
|
184
|
-
onResize?: (column: RequiredColumnProps<T>[]) => void;
|
|
185
|
-
resizable?: boolean;
|
|
186
|
-
components?: {
|
|
187
|
-
table?: (props: any) => any;
|
|
188
|
-
header?: {
|
|
189
|
-
wrapper?: (props: any) => any;
|
|
190
|
-
row?: (props: any) => any;
|
|
191
|
-
cell?: (props: any) => any;
|
|
192
|
-
};
|
|
193
|
-
body?: {
|
|
194
|
-
wrapper?: (props: any) => any;
|
|
195
|
-
row?: (props: any) => any;
|
|
196
|
-
cell?: (props: any) => any;
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
RowMenu?: React.FC<{
|
|
200
|
-
record: T;
|
|
201
|
-
index: number;
|
|
202
|
-
}>;
|
|
203
|
-
rowSelection?: TableRowSelection<T>;
|
|
204
|
-
empty?: string | React.ReactNode;
|
|
205
|
-
tableLayout?: "fixed" | "auto";
|
|
206
|
-
initLoading?: boolean;
|
|
207
|
-
rowKey?: AntdTableProps<T>["rowKey"];
|
|
208
|
-
wrapper?: React.MutableRefObject<HTMLDivElement | null>;
|
|
209
|
-
pagination?: {
|
|
210
|
-
current: number;
|
|
211
|
-
pageSize: number;
|
|
212
|
-
};
|
|
213
|
-
onRow?: AntdTableProps<T>["onRow"];
|
|
214
|
-
}
|
|
215
|
-
interface TableComponent {
|
|
216
|
-
<TData extends IdObject>(props: React.PropsWithChildren<TableProps<TData>>, context?: unknown): React.ReactElement | null;
|
|
217
|
-
}
|
|
218
|
-
export interface BaseEnumProps {
|
|
219
|
-
enumValues: readonly (string | {
|
|
220
|
-
value: string;
|
|
221
|
-
text: string;
|
|
222
|
-
})[];
|
|
223
|
-
placeholder?: string;
|
|
224
|
-
emptyLabel?: string;
|
|
225
|
-
size?: InputSize;
|
|
226
|
-
defaultValue?: string;
|
|
227
|
-
multiple?: boolean;
|
|
228
|
-
}
|
|
229
|
-
export interface TextAreaProps extends AntdTextAreaProps {
|
|
230
|
-
error?: boolean;
|
|
231
|
-
size?: "large" | "middle" | "small";
|
|
232
|
-
autoSize?: AntdTextAreaProps["autoSize"];
|
|
233
|
-
onFocusChangeHeight?: {
|
|
234
|
-
onFocus: number;
|
|
235
|
-
onBlur: number;
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
export interface StringProps {
|
|
239
|
-
placeholder?: string;
|
|
240
|
-
autoComplete?: "on" | "off" | "new-password";
|
|
241
|
-
prefix?: React.ReactNode;
|
|
242
|
-
suffix?: React.ReactNode;
|
|
243
|
-
className?: string;
|
|
244
|
-
size?: InputSize;
|
|
245
|
-
allowClear?: boolean;
|
|
246
|
-
tags?: string[];
|
|
247
|
-
tagsOverflow?: React.ReactNode;
|
|
248
|
-
onTagsAllowClearClick?: (e: React.MouseEvent) => void;
|
|
249
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
250
|
-
maxLength?: number;
|
|
251
|
-
disabled?: boolean;
|
|
252
|
-
}
|
|
253
|
-
export interface IntProps {
|
|
254
|
-
placeholder?: string;
|
|
255
|
-
suffix?: string;
|
|
256
|
-
size?: InputSize;
|
|
257
|
-
onBlur?: (input: FieldBaseProps<number, HTMLInputElement>["input"], event?: React.FocusEvent<HTMLInputElement>) => void;
|
|
258
|
-
}
|
|
259
|
-
export interface FloatProps {
|
|
260
|
-
placeholder?: string;
|
|
261
|
-
suffix?: string;
|
|
262
|
-
size?: InputSize;
|
|
263
|
-
onBlur?: (input: FieldBaseProps<number, HTMLInputElement>["input"], event?: React.FocusEvent<HTMLInputElement>) => void;
|
|
264
|
-
}
|
|
265
|
-
export type TooltipProps = AntdTooltipProps & {
|
|
266
|
-
followMouse?: boolean;
|
|
267
|
-
};
|
|
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
|
-
type SearchInputProps = Omit<InputProps, "onChange"> & {
|
|
299
|
-
onChange: (value: string) => void;
|
|
300
|
-
debounceWait?: number;
|
|
301
|
-
};
|
|
302
|
-
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
|
-
export type IntegerFieldProps<V = any, T extends HTMLElement = HTMLElement> = FieldBaseProps<V, T> & InputNumberProps & {
|
|
321
|
-
onChange?: FieldBaseProps<V, T>["input"]["onChange"];
|
|
322
|
-
controls?: boolean;
|
|
323
|
-
suffix?: string;
|
|
324
|
-
prefix?: string;
|
|
325
|
-
size?: InputSize;
|
|
326
|
-
onBlur?: (input: FieldBaseProps<number, HTMLInputElement>["input"], event?: React.FocusEvent<HTMLInputElement>) => void;
|
|
327
|
-
};
|
|
328
|
-
export type FloatFieldProps<V = any, T extends HTMLElement = HTMLElement> = FieldBaseProps<V, T> & FloatProps & {
|
|
329
|
-
onChange?: FieldBaseProps<V, T>["input"]["onChange"];
|
|
330
|
-
autoComplete?: "on" | "off";
|
|
331
|
-
};
|
|
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
|
-
};
|
|
361
|
-
export type IStepsProps = {
|
|
362
|
-
className?: string;
|
|
363
|
-
current?: number;
|
|
364
|
-
direction?: "horizontal" | "vertical";
|
|
365
|
-
style?: React.CSSProperties;
|
|
366
|
-
onChange?: (current: number) => void;
|
|
367
|
-
stepsConfig: Array<StepProps>;
|
|
368
|
-
containerClassname?: string;
|
|
369
|
-
disabled?: boolean;
|
|
370
|
-
};
|
|
371
|
-
export interface ISimplePaginationProps {
|
|
372
|
-
className?: string;
|
|
373
|
-
current: number;
|
|
374
|
-
count: number;
|
|
375
|
-
size: number;
|
|
376
|
-
onPageChange?: (page: number) => void;
|
|
377
|
-
}
|
|
378
|
-
export type AntdInputComponentType = Input;
|
|
379
|
-
export interface IExpandableItemProps {
|
|
380
|
-
header?: React.ReactNode;
|
|
381
|
-
order?: number;
|
|
382
|
-
disableExpand?: boolean;
|
|
383
|
-
defaultActive?: boolean;
|
|
384
|
-
}
|
|
385
|
-
export interface Kit<V = any, T extends HTMLElement = HTMLElement> {
|
|
386
|
-
loading: LoadingComponentType;
|
|
387
|
-
error: React.FunctionComponent<{
|
|
388
|
-
error: unknown;
|
|
389
|
-
}>;
|
|
390
|
-
pagination: React.FC<PaginationProps>;
|
|
391
|
-
select: SelectComponentType<V, T>;
|
|
392
|
-
option: OptionComponentType;
|
|
393
|
-
selectOptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
|
|
394
|
-
table: TableComponent;
|
|
395
|
-
button: React.FC<ButtonProps>;
|
|
396
|
-
modal: React.FC<ModalProps>;
|
|
397
|
-
dropdown: React.FC<DropDownProps>;
|
|
398
|
-
switch: React.FC<SwitchProps>;
|
|
399
|
-
tooltip: React.FC<TooltipProps>;
|
|
400
|
-
input: React.FC<InputProps & {
|
|
401
|
-
error?: boolean;
|
|
402
|
-
}>;
|
|
403
|
-
textArea: React.FC<TextAreaProps>;
|
|
404
|
-
checkbox: React.FC<CheckboxProps & {
|
|
405
|
-
description?: ReactNode;
|
|
406
|
-
compact?: boolean;
|
|
407
|
-
}>;
|
|
408
|
-
fields: {
|
|
409
|
-
Int: React.FunctionComponent<IntFieldProps<V, T>>;
|
|
410
|
-
Integer: React.FunctionComponent<IntegerFieldProps<V, T>>;
|
|
411
|
-
Float: React.FunctionComponent<FloatFieldProps<V, T>>;
|
|
412
|
-
DateTime: React.FunctionComponent<FieldBaseProps<V, T>>;
|
|
413
|
-
Enum: React.FunctionComponent<{
|
|
414
|
-
input: Partial<FieldRenderProps<V, T>["input"]>;
|
|
415
|
-
meta: FieldRenderProps<V, T>["meta"];
|
|
416
|
-
disabled?: boolean;
|
|
417
|
-
className?: string;
|
|
418
|
-
dropdownClassName?: string;
|
|
419
|
-
} & BaseEnumProps>;
|
|
420
|
-
String: React.FunctionComponent<FieldBaseProps<V, T> & StringProps>;
|
|
421
|
-
Boolean: React.FunctionComponent<FieldBaseProps<V, T>>;
|
|
422
|
-
TextArea: React.FC<FieldBaseProps<V, T> & TextAreaProps>;
|
|
423
|
-
DateTimeRange: React.FunctionComponent<FieldBaseProps<V, T> & DatePickerProps>;
|
|
424
|
-
TimePicker: React.FunctionComponent<FieldBaseProps<V, T> & TimePickerProps>;
|
|
425
|
-
};
|
|
426
|
-
units: {
|
|
427
|
-
Percent: PercentFn;
|
|
428
|
-
Byte: UnitFn;
|
|
429
|
-
Frequency: UnitFn;
|
|
430
|
-
Speed: UnitFn;
|
|
431
|
-
Second: UnitFn;
|
|
432
|
-
Bps: UnitFn;
|
|
433
|
-
BitPerSecond: UnitFn;
|
|
434
|
-
Bit: UnitFn;
|
|
435
|
-
};
|
|
436
|
-
inputGroup: InputGroupComponentType;
|
|
437
|
-
Empty: React.ReactElement | null;
|
|
438
|
-
alert: AlertComponentType;
|
|
439
|
-
searchInput: React.FC<SearchInputProps>;
|
|
440
|
-
badge: BadgeComponentType;
|
|
441
|
-
radio: React.FC<RadioProps>;
|
|
442
|
-
radioGroup: React.FC<AntdRadioGroupProps>;
|
|
443
|
-
radioButton: React.FC<RadioButtonProps>;
|
|
444
|
-
tree: React.FC<AntdTreeProps>;
|
|
445
|
-
progress: ProgressComponentType;
|
|
446
|
-
divider: React.FC<AntdDividerProps>;
|
|
447
|
-
skeleton: React.FC<AntdSkeletonProps>;
|
|
448
|
-
skeletonButton: {
|
|
449
|
-
(props: SkeletonButtonProps): JSX.Element;
|
|
450
|
-
defaultProps: {
|
|
451
|
-
size: string;
|
|
452
|
-
};
|
|
453
|
-
};
|
|
454
|
-
menu: React.ComponentType<MenuProps> & {
|
|
455
|
-
Divider: React.FC<import("rc-menu/lib/Divider").DividerProps>;
|
|
456
|
-
Item: React.ComponentType<MenuItemProps>;
|
|
457
|
-
SubMenu: React.ComponentType<SubMenuProps>;
|
|
458
|
-
ItemGroup: React.ComponentType<MenuItemGroupProps>;
|
|
459
|
-
};
|
|
460
|
-
menuItem: React.ComponentType<MenuItemProps>;
|
|
461
|
-
menuItemGroup: React.ComponentType<MenuItemGroupProps>;
|
|
462
|
-
list: <T>(props: ListProps<T>) => JSX.Element;
|
|
463
|
-
listItem: React.FC<ListItemProps>;
|
|
464
|
-
layout: React.ComponentType<BasicProps> & {
|
|
465
|
-
Header: React.ComponentType<BasicProps>;
|
|
466
|
-
Footer: React.ComponentType<BasicProps>;
|
|
467
|
-
Content: React.ComponentType<BasicProps>;
|
|
468
|
-
Sider: React.ComponentType<SiderProps>;
|
|
469
|
-
};
|
|
470
|
-
autoComplete: React.ForwardRefExoticComponent<AutoCompleteProps>;
|
|
471
|
-
message: MessageApi;
|
|
472
|
-
tag: TagComponentType;
|
|
473
|
-
popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<unknown>>;
|
|
474
|
-
arch: ArchComponentType;
|
|
475
|
-
buttonGroup: React.ForwardRefExoticComponent<ButtonGroupType & React.RefAttributes<HTMLDivElement>>;
|
|
476
|
-
steps: React.FC<IStepsProps>;
|
|
477
|
-
form: Form;
|
|
478
|
-
antdSteps: typeof Steps;
|
|
479
|
-
simplePagination: React.FC<ISimplePaginationProps>;
|
|
480
|
-
statusCapsule: StatusCapsuleComponentType;
|
|
481
|
-
space: React.FC<ISpaceProps>;
|
|
482
|
-
timeZoneSelect: React.FC<ITimeZoneSelectProps>;
|
|
483
|
-
col: React.FC<ColProps>;
|
|
484
|
-
row: React.FC<RowProps>;
|
|
485
|
-
timeline: React.FC<TimelineProps>;
|
|
486
|
-
timelineItem: React.FC<TimeLineItemProps>;
|
|
487
|
-
cascader: React.ComponentType<CascaderProps>;
|
|
488
|
-
checkboxGroup: React.ComponentType<CheckboxGroupProps>;
|
|
489
|
-
typographyText: React.FC<TextProps>;
|
|
490
|
-
upload: React.ComponentType<UploadProps>;
|
|
491
|
-
datePickerRangePicker: React.ComponentType<RangePickerProps>;
|
|
492
|
-
tableForm: React.ForwardRefExoticComponent<TableFormProps & React.RefAttributes<TableFormHandle>>;
|
|
493
|
-
token: TokenComponentType;
|
|
494
|
-
overflowTooltip: React.FC<OverflowTooltipProps>;
|
|
495
|
-
I18nNameTag: React.FC<I18nNameTagType>;
|
|
496
|
-
uploadDragger: React.ComponentType<DraggerProps>;
|
|
497
|
-
calendar: CalendarComponentType;
|
|
498
|
-
timePicker: React.FC<TimePickerProps>;
|
|
499
|
-
datePicker: React.ComponentType<DatePickerProps>;
|
|
500
|
-
tabs: React.FC<TabsProps>;
|
|
501
|
-
tabsTabPane: React.FC<TabPaneProps>;
|
|
502
|
-
antdBadge: React.FC<BadgeProps>;
|
|
503
|
-
antdMessage: MessageApi;
|
|
504
|
-
antdButton: React.ComponentType<AntdButtonProps>;
|
|
505
|
-
antdSelect: React.ComponentType<SelectProps<V>>;
|
|
506
|
-
antdTooltip: React.FC<TooltipProps>;
|
|
507
|
-
antdModal: React.FC<AntdModalProps & {
|
|
508
|
-
focusTriggerAfterClose?: boolean;
|
|
509
|
-
}>;
|
|
510
|
-
antdInput: typeof Input;
|
|
511
|
-
antdTable: AntdTableComponentType;
|
|
512
|
-
antdEmpty: EmptyType;
|
|
513
|
-
antdCheckbox: React.ComponentType<CheckboxProps>;
|
|
514
|
-
antdSwitch: React.FC<AntdSwitchProps>;
|
|
515
|
-
antdCollapse: CollapseInterface;
|
|
516
|
-
antdTreeSelect: typeof TreeSelect;
|
|
517
|
-
antdDrawer: React.FC<DrawerProps>;
|
|
518
|
-
truncate: React.FC<TruncatePropTypes>;
|
|
519
|
-
card: ForwardRefExoticComponent<PropsWithoutRef<PropsWithChildren<CardProps>> & RefAttributes<HTMLDivElement>>;
|
|
520
|
-
expandableList: {
|
|
521
|
-
ExpandableContainer: React.FC<PropsWithChildren<{}>>;
|
|
522
|
-
ExpandableItem: React.FC<PropsWithChildren<IExpandableItemProps>>;
|
|
523
|
-
};
|
|
524
|
-
time: React.FC<ITimeProps>;
|
|
525
|
-
DropdownTransition: React.FC<DropdownTransitionProps>;
|
|
526
|
-
AccordionCard: React.FC<IAccordionCardProps> & {
|
|
527
|
-
CloseButton: React.FC<CloseButtonProps>;
|
|
528
|
-
};
|
|
529
|
-
DetailCard: React.FC<IDetailCardProps>;
|
|
530
|
-
TruncatedTextWithTooltip: React.FC<TruncateTextWithTooltipType>;
|
|
531
|
-
Counting: React.FC<ICountingProps>;
|
|
532
|
-
Breadcrumb: React.FC<IBreadcrumbProps>;
|
|
533
|
-
CircleProgress: React.FC<ICircleProgressProps>;
|
|
534
|
-
SwitchWithText: React.FC<SwitchWithTextProps>;
|
|
535
|
-
CronPlan: React.FC<CronPlanProps>;
|
|
536
|
-
NamesTooltip: React.FC<NamesTooltipType>;
|
|
537
|
-
ChartWithTooltip: React.FC<ICWTProps>;
|
|
538
|
-
ChartWithUnit: React.FC<IChartWithUnitProps>;
|
|
539
|
-
DonutChart: React.FC<IDonutChartProps>;
|
|
540
|
-
UnitWithChart: React.FC<IUnitWithChartProps>;
|
|
541
|
-
GoBackButton: React.FC<GoBackButtonType>;
|
|
542
|
-
CronCalendar: React.FC<CronCalendarProps>;
|
|
543
|
-
}
|
|
544
|
-
export type ArchComponentType = React.FC<{
|
|
545
|
-
architecture?: Architecture;
|
|
546
|
-
}>;
|
|
547
|
-
export type SelectComponentType<V = any, T extends HTMLElement = HTMLElement> = React.FunctionComponent<LooseFieldRenderProps<V, T> & KitSelectProps>;
|
|
548
|
-
export type OptionComponentType = React.FC<OptionProps> & {
|
|
549
|
-
isSelectOption: boolean;
|
|
550
|
-
};
|
|
551
|
-
export type BadgeComponentType = React.FC<BadgeProps & {
|
|
552
|
-
type?: BadgeTypeProps;
|
|
553
|
-
}>;
|
|
554
|
-
export type ProgressComponentType = React.FC<ProgressProps>;
|
|
555
|
-
export type InputGroupComponentType = StyledMeta & React.FC<GroupProps>;
|
|
556
|
-
export type AlertComponentType = React.FunctionComponent<Omit<AlertProps, "type"> & {
|
|
557
|
-
type?: AlertProps["type"] | "normal";
|
|
558
|
-
action?: React.ReactNode;
|
|
559
|
-
}>;
|
|
560
|
-
export type SearchInputComponentType = React.FC<SearchInputProps>;
|
|
561
|
-
export type LoadingComponentType = React.FunctionComponent<{
|
|
562
|
-
fullView?: boolean;
|
|
563
|
-
}>;
|
|
564
|
-
export type EnumProps<V = any, T extends HTMLElement = HTMLElement> = {
|
|
565
|
-
input: Partial<FieldRenderProps<V, T>["input"]>;
|
|
566
|
-
meta: FieldRenderProps<V, T>["meta"];
|
|
567
|
-
disabled?: boolean;
|
|
568
|
-
className?: string;
|
|
569
|
-
dropdownClassName?: string;
|
|
570
|
-
} & BaseEnumProps;
|
|
571
|
-
export type TableFormPropsType = React.ForwardRefExoticComponent<TableFormProps & React.RefAttributes<TableFormHandle>>;
|
|
572
|
-
export type TagColor = "red" | "yellow" | "green" | "blue" | "purple" | "gray" | "red-ontint" | "green-ontint" | "error" | "warning" | "processing" | "default" | "success";
|
|
573
|
-
export type SplitTagComponentType = React.FC<Omit<TagProps, "closable" | "closeIcon" | "onClose" | "visible"> & {
|
|
574
|
-
color?: "red" | "yellow" | "green" | "blue" | "purple" | "gray";
|
|
575
|
-
size?: "small" | "medium";
|
|
576
|
-
primaryContent: React.ReactNode;
|
|
577
|
-
secondaryContent: React.ReactNode;
|
|
578
|
-
}>;
|
|
579
|
-
export interface NameTagType extends Omit<React.HTMLAttributes<HTMLSpanElement>, "color"> {
|
|
580
|
-
className?: string;
|
|
581
|
-
style?: React.CSSProperties;
|
|
582
|
-
}
|
|
583
|
-
export type TagComponentType = React.FC<Omit<TagProps, "closable" | "closeIcon" | "onClose"> & {
|
|
584
|
-
color?: TagColor;
|
|
585
|
-
size?: "small" | "medium";
|
|
586
|
-
hoverable?: boolean;
|
|
587
|
-
}> & {
|
|
588
|
-
SplitTag: SplitTagComponentType;
|
|
589
|
-
NameTag: React.FC<NameTagType>;
|
|
590
|
-
};
|
|
591
|
-
export type StatusCapsuleColor = "red" | "yellow" | "green" | "blue" | "gray" | "success" | "danger" | "warning";
|
|
592
|
-
export type StatusCapsuleComponentType = React.FC<Omit<TagProps, "closable" | "closeIcon" | "onClose" | "icon" | "size"> & {
|
|
593
|
-
color?: StatusCapsuleColor;
|
|
594
|
-
loading?: boolean;
|
|
595
|
-
hoverable?: boolean;
|
|
596
|
-
offWhiteMode?: boolean;
|
|
597
|
-
number?: number;
|
|
598
|
-
}>;
|
|
599
|
-
export type TokenColor = "red" | "yellow" | "green" | "blue" | "gray" | "purple";
|
|
600
|
-
export type TokenType = Omit<TagProps, "closeIcon"> & {
|
|
601
|
-
color?: TokenColor;
|
|
602
|
-
size?: "small" | "medium" | "large";
|
|
603
|
-
checked?: boolean;
|
|
604
|
-
tooltipConfig?: {
|
|
605
|
-
title: string;
|
|
606
|
-
};
|
|
607
|
-
};
|
|
608
|
-
export type TokenComponentType = React.ForwardRefExoticComponent<TokenType & React.RefAttributes<HTMLDivElement>>;
|
|
609
|
-
export type OverflowTooltipProps = {
|
|
610
|
-
content: React.ReactNode;
|
|
611
|
-
tooltip?: React.ReactNode;
|
|
612
|
-
className?: string;
|
|
613
|
-
onClick?: () => void;
|
|
614
|
-
isMultiLine?: boolean;
|
|
615
|
-
};
|
|
616
|
-
export type TruncateTextWithTooltipType = {
|
|
617
|
-
text: string;
|
|
618
|
-
textWrapperCls?: string;
|
|
619
|
-
} & Omit<TooltipProps, "title">;
|
|
620
|
-
export type I18nNameTagType = {
|
|
621
|
-
name: string;
|
|
622
|
-
i18nKey: string;
|
|
623
|
-
[key: string]: unknown;
|
|
624
|
-
};
|
|
625
|
-
export type CronPlanState = {
|
|
626
|
-
expression: string;
|
|
627
|
-
retain: number;
|
|
628
|
-
startAt: Dayjs;
|
|
629
|
-
enabled: boolean;
|
|
630
|
-
empty: boolean;
|
|
631
|
-
};
|
|
632
|
-
export type CronPlanProps = {
|
|
633
|
-
value: CronPlanState;
|
|
634
|
-
onChange: (value: CronPlanState) => unknown;
|
|
635
|
-
onRemove?: () => void;
|
|
636
|
-
};
|
|
637
|
-
export type NamesTooltipType = {
|
|
638
|
-
names: {
|
|
639
|
-
id: string;
|
|
640
|
-
name?: string;
|
|
641
|
-
}[];
|
|
642
|
-
};
|
|
643
|
-
export type CronCalendarProps = {
|
|
644
|
-
plans: {
|
|
645
|
-
expression: string;
|
|
646
|
-
startAt: Dayjs;
|
|
647
|
-
empty: boolean;
|
|
648
|
-
}[];
|
|
649
|
-
};
|
|
650
|
-
export type SwitchWithTextProps = PropsFrom<Kit["switch"]> & {
|
|
651
|
-
text?: {
|
|
652
|
-
checked: React.ReactNode;
|
|
653
|
-
unchecked: React.ReactNode;
|
|
654
|
-
};
|
|
655
|
-
};
|
|
656
|
-
export type GoBackButtonType = {
|
|
657
|
-
history: History;
|
|
658
|
-
title?: string;
|
|
659
|
-
onClick?: () => void;
|
|
660
|
-
path?: string;
|
|
661
|
-
index?: number;
|
|
662
|
-
};
|
|
663
|
-
export type CalendarComponentType = React.FC<CalendarProps<Moment>>;
|
|
664
|
-
export {};
|
package/dist/spec/index.d.ts
DELETED