@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/esm/store/chart.js
CHANGED
|
@@ -17,6 +17,12 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var ChartActions = /* @__PURE__ */ ((ChartActions2) => {
|
|
21
|
+
ChartActions2["SET_POINTER"] = "SET_POINTER";
|
|
22
|
+
ChartActions2["SET_RESOURCE_DATA"] = "SET_RESOURCE_DATA";
|
|
23
|
+
ChartActions2["SET_AVERAGE_DATA"] = "SET_AVERAGE_DATA";
|
|
24
|
+
return ChartActions2;
|
|
25
|
+
})(ChartActions || {});
|
|
20
26
|
const initialChartState = {
|
|
21
27
|
pointers: {},
|
|
22
28
|
resourceData: {},
|
|
@@ -59,4 +65,4 @@ const chartReducer = (state = initialChartState, action) => {
|
|
|
59
65
|
}
|
|
60
66
|
};
|
|
61
67
|
|
|
62
|
-
export { chartReducer, initialChartState };
|
|
68
|
+
export { ChartActions, chartReducer, initialChartState };
|
package/dist/esm/store/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { combineReducers, createStore } from 'redux';
|
|
2
2
|
import { chartReducer, initialChartState } from './chart.js';
|
|
3
|
+
export { ChartActions } from './chart.js';
|
|
3
4
|
import { modalReducer, ModalActions, initialModalState } from './modal.js';
|
|
4
5
|
|
|
5
6
|
const appReducer = combineReducers({
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { MenuItemGroupProps } from "antd/lib/menu";
|
|
2
|
+
import { ModalProps as AntdModalProps } from "antd/lib/modal";
|
|
3
|
+
import { FC } from "react";
|
|
4
|
+
export { Badge as AntdBadge, Button as AntdButton, Checkbox as AntdCheckbox, Collapse as AntdCollapse, Divider as AntdDivider, Drawer as AntdDrawer, Empty as AntdEmpty, Input as AntdInput, message as AntdMessage, Select as AntdSelect, Steps as AntdSteps, Switch as AntdSwitch, Table as AntdTable, TimePicker as AntdTimePicker, Tooltip as AntdTooltip, TreeSelect as AntdTreeSelect, AutoComplete, Col, DatePicker, Dropdown, Layout, List, Menu, Popover, Row, Skeleton, Tabs, Timeline, Tree, Typography, Upload, } from "antd";
|
|
5
|
+
export declare const DatePickerRangePicker: import("react").ComponentClass<import("antd/lib/date-picker/generatePicker").RangePickerProps<import("moment").Moment>, any>;
|
|
6
|
+
export declare const ListItem: import("antd/lib/list/Item").ListItemTypeProps;
|
|
7
|
+
export declare const MenuItemGroup: import("react").ComponentType<MenuItemGroupProps>;
|
|
8
|
+
export declare const SkeletonButton: {
|
|
9
|
+
(props: import("antd/lib/skeleton/Button").SkeletonButtonProps): JSX.Element;
|
|
10
|
+
defaultProps: {
|
|
11
|
+
size: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const TabsTabPane: typeof import("rc-tabs").TabPane;
|
|
15
|
+
export declare const TimelineItem: FC<import("antd/lib/timeline").TimeLineItemProps>;
|
|
16
|
+
export declare const TypographyText: FC<import("antd/lib/typography/Text").TextProps>;
|
|
17
|
+
export declare const UploadDragger: typeof import("antd/lib/upload/Dragger").default;
|
|
18
|
+
export declare const AntdOption: import("rc-select/lib/Option").OptionFC;
|
|
19
|
+
export declare const AntdSelectOptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
|
|
20
|
+
export declare const AntdModal: FC<AntdModalProps & {
|
|
21
|
+
focusTriggerAfterClose?: boolean | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
export type { ButtonProps as AntdButtonProps } from "antd/lib/button";
|
|
24
|
+
export type { CheckboxChangeEvent as AntdCheckboxChangeEvent } from "antd/lib/checkbox";
|
|
25
|
+
export type { ColProps as AntdColProps } from "antd/lib/col";
|
|
26
|
+
export type { DatePickerProps as AntdDatePickerProps } from "antd/lib/date-picker";
|
|
27
|
+
export type { DrawerProps as AntdDrawerProps } from "antd/lib/drawer";
|
|
28
|
+
export type { DropDownProps as AntdDropDownProps } from "antd/lib/dropdown";
|
|
29
|
+
export type { TextAreaProps as AntdTextAreaProps } from "antd/lib/input";
|
|
30
|
+
export type { InputProps as AntdInputProps } from "antd/lib/input";
|
|
31
|
+
export type { InputNumberProps as AntdInputNumberProps } from "antd/lib/input-number";
|
|
32
|
+
export type { MenuProps as AntdMenuProps } from "antd/lib/menu";
|
|
33
|
+
export type { ModalProps as AntdModalProps } from "antd/lib/modal";
|
|
34
|
+
export type { ProgressProps as AntdProgressProps } from "antd/lib/progress";
|
|
35
|
+
export type { RadioChangeEvent } from "antd/lib/radio";
|
|
36
|
+
export type { RowProps as AntdRowProps } from "antd/lib/row";
|
|
37
|
+
export type { SelectProps as AntdSelectProps } from "antd/lib/select";
|
|
38
|
+
export type { TableProps as AntdTableProps } from "antd/lib/table";
|
|
39
|
+
export type { ColumnsType as AntdColumnsType, ColumnType as AntdColumnType, TableRowSelection as AntdTableRowSelection, } from "antd/lib/table/interface";
|
|
40
|
+
export type { TabsProps as AntdTabsProps } from "antd/lib/tabs";
|
|
41
|
+
export type { TooltipPropsWithTitle as AntdTooltipPropsWithTitle } from "antd/lib/tooltip";
|
|
42
|
+
export type { DataNode as AntdDataNode, TreeProps as AntdTreeProps, } from "antd/lib/tree";
|
|
43
|
+
export type { TreeSelectProps as AntdTreeSelectProps } from "antd/lib/tree-select";
|
|
44
|
+
export type { RcFile as AntdRcFile, UploadProps as AntdUploadProps, } from "antd/lib/upload";
|
|
45
|
+
export type { CustomTagProps as AntdCustomTagProps } from "rc-select/lib/interface/generator";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IAccordionCardProps {
|
|
3
|
+
header: React.ReactNode | ((active: boolean) => React.ReactNode);
|
|
4
|
+
expand: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
defaultExpand?: boolean;
|
|
7
|
+
mountOnEnter?: boolean;
|
|
8
|
+
unmountOnExit?: boolean;
|
|
9
|
+
}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { IAccordionCardProps } from "./accordionCard.type";
|
|
2
3
|
export type CloseButtonProps = {
|
|
3
4
|
className?: string;
|
|
4
5
|
onClick?: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
5
6
|
};
|
|
6
|
-
declare const AccordionCard: React.FC<{
|
|
7
|
-
header: React.ReactNode | ((active: boolean) => React.ReactNode);
|
|
8
|
-
expand: React.ReactNode;
|
|
9
|
-
className?: string;
|
|
10
|
-
defaultExpand?: boolean;
|
|
11
|
-
mountOnEnter?: boolean;
|
|
12
|
-
unmountOnExit?: boolean;
|
|
13
|
-
}> & {
|
|
7
|
+
declare const AccordionCard: React.FC<IAccordionCardProps> & {
|
|
14
8
|
CloseButton: React.FC<CloseButtonProps>;
|
|
15
9
|
};
|
|
16
10
|
export default AccordionCard;
|
|
11
|
+
export * from "./accordionCard.type";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface BreadcrumbLink {
|
|
3
|
+
name: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
resource: string;
|
|
6
|
+
tab?: string;
|
|
7
|
+
onClick: React.MouseEventHandler<HTMLSpanElement>;
|
|
8
|
+
}
|
|
9
|
+
export interface IBreadcrumbProps {
|
|
10
|
+
items: BreadcrumbLink[];
|
|
11
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { IBreadcrumbProps } from "../../spec";
|
|
2
1
|
import React from "react";
|
|
2
|
+
import { IBreadcrumbProps } from "./breadcrumb.type";
|
|
3
3
|
export declare const BreadWrapper: import("@linaria/react").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Record<never, unknown> & {
|
|
4
4
|
as?: React.ElementType<any> | undefined;
|
|
5
5
|
}>;
|
|
6
6
|
declare const Breadcrumb: React.FunctionComponent<IBreadcrumbProps>;
|
|
7
7
|
export default Breadcrumb;
|
|
8
|
+
export * from "./breadcrumb.type";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SizeType } from "antd/es/config-provider/SizeContext";
|
|
3
|
+
import { ButtonProps as AntdButtonProps, ButtonType } from "antd/lib/button";
|
|
4
|
+
export type ButtonProps = {
|
|
5
|
+
prefixIcon?: JSX.Element;
|
|
6
|
+
hoverPrefixIcon?: JSX.Element;
|
|
7
|
+
suffixIcon?: JSX.Element;
|
|
8
|
+
hoverSuffixIcon?: JSX.Element;
|
|
9
|
+
type?: ButtonType | "secondary" | "tertiary" | "ordinary" | "ordinary-onTint" | "quiet";
|
|
10
|
+
} & Omit<AntdButtonProps, "type" | "icon">;
|
|
11
|
+
export type ButtonGroupType = {
|
|
12
|
+
className?: string;
|
|
13
|
+
size?: SizeType;
|
|
14
|
+
options: Array<Omit<ButtonProps, "shape" | "size" | "icon"> & {
|
|
15
|
+
key: string;
|
|
16
|
+
title?: string;
|
|
17
|
+
hideTitle?: boolean;
|
|
18
|
+
icon?: JSX.Element;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
@@ -14,3 +14,4 @@ declare const Button: React.ForwardRefExoticComponent<{
|
|
|
14
14
|
onClick?: React.MouseEventHandler<HTMLElement> | undefined;
|
|
15
15
|
} & import("antd/lib/_util/type").Omit<React.ButtonHTMLAttributes<any>, "onClick" | "type">>, "icon" | "type"> & React.RefAttributes<HTMLButtonElement>>;
|
|
16
16
|
export default Button;
|
|
17
|
+
export * from "./button.type";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonGroupType } from "../../
|
|
1
|
+
import { ButtonGroupType } from "../../core/Button";
|
|
2
2
|
import React from "react";
|
|
3
3
|
export declare const ButtonStyle: import("@linaria/core").LinariaClassName;
|
|
4
4
|
declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupType & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { SearchInputProps } from "../../spec/base";
|
|
3
2
|
import type { CascaderProps as Antd5CascaderProps } from "antd5/lib/cascader";
|
|
3
|
+
import { SearchInputProps } from "../SearchInput/searchInput.type";
|
|
4
4
|
export type { Antd5SizeType } from "../../utils/type";
|
|
5
5
|
export type PresetCascaderRenderProps = {
|
|
6
6
|
menus: Parameters<NonNullable<CascaderProps["dropdownRender"]>>[0];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IDropDownMenuItem {
|
|
3
|
+
type?: "single" | "group" | "divider";
|
|
4
|
+
key: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
text?: string;
|
|
7
|
+
icon?: React.ReactElement;
|
|
8
|
+
hidden?: boolean;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
danger?: boolean;
|
|
11
|
+
tooltip?: string;
|
|
12
|
+
}
|
|
13
|
+
export type Placement = "topLeft" | "topCenter" | "topRight" | "bottomLeft" | "bottomCenter" | "bottomRight";
|
|
14
|
+
export interface IDropdownMenuProps {
|
|
15
|
+
items: Array<IDropDownMenuItem & {
|
|
16
|
+
title?: string;
|
|
17
|
+
children?: Array<IDropDownMenuItem>;
|
|
18
|
+
}>;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
placement?: Placement;
|
|
21
|
+
trigger?: ("click" | "hover" | "contextMenu")[];
|
|
22
|
+
customStyle?: {
|
|
23
|
+
content: string;
|
|
24
|
+
};
|
|
25
|
+
slotsElements: {
|
|
26
|
+
trigger?: (args: object) => string | React.ReactNode;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DropDownProps as AntdDropDownProps } from "antd/lib/dropdown";
|
|
2
1
|
import React from "react";
|
|
2
|
+
import { IDropdownMenuProps } from "./dropdownMenu.type";
|
|
3
3
|
interface IItem {
|
|
4
4
|
type?: "single" | "group" | "divider";
|
|
5
5
|
key: string;
|
|
@@ -11,24 +11,10 @@ interface IItem {
|
|
|
11
11
|
danger?: boolean;
|
|
12
12
|
tooltip?: string;
|
|
13
13
|
}
|
|
14
|
-
interface IProps {
|
|
15
|
-
items: Array<IItem & {
|
|
16
|
-
title?: string;
|
|
17
|
-
children?: Array<IItem>;
|
|
18
|
-
}>;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
placement?: AntdDropDownProps["placement"];
|
|
21
|
-
trigger?: AntdDropDownProps["trigger"];
|
|
22
|
-
customStyle?: {
|
|
23
|
-
content: string;
|
|
24
|
-
};
|
|
25
|
-
slotsElements: {
|
|
26
|
-
trigger?: (args: object) => string | React.ReactNode;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
14
|
export declare const RenderMenuItem: (item: IItem & {
|
|
30
15
|
title?: string;
|
|
31
16
|
children?: Array<IItem>;
|
|
32
17
|
}) => JSX.Element;
|
|
33
|
-
declare const DropdownMenu: React.FC<
|
|
18
|
+
declare const DropdownMenu: React.FC<IDropdownMenuProps>;
|
|
34
19
|
export default DropdownMenu;
|
|
20
|
+
export * from "./dropdownMenu.type";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./ExpandableContainer";
|
|
2
|
+
export { default as ExpandableContainer } from "./ExpandableContainer";
|
|
3
|
+
export * from "./ExpandableItem";
|
|
4
|
+
export { default as ExpandableItem } from "./ExpandableItem";
|
|
5
|
+
export * from "./ExpandIcon";
|
|
6
|
+
export { default as ExpandIcon } from "./ExpandIcon";
|
|
7
|
+
export * from "./RoundOrder";
|
|
8
|
+
export { default as RoundOrder } from "./RoundOrder";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DatePickerProps } from "antd/lib/date-picker";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { FieldBaseProps } from "
|
|
3
|
+
import { FieldBaseProps } from "../fields.type";
|
|
4
4
|
declare const FieldsDateTimeRange: React.FC<FieldBaseProps & DatePickerProps>;
|
|
5
5
|
export default FieldsDateTimeRange;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FieldRenderProps, InputSize } from "../fields.type";
|
|
2
|
+
export interface BaseEnumProps {
|
|
3
|
+
enumValues: readonly (string | {
|
|
4
|
+
value: string;
|
|
5
|
+
text: string;
|
|
6
|
+
})[];
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
emptyLabel?: string;
|
|
9
|
+
size?: InputSize;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
multiple?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type EnumProps<V = any, T extends HTMLElement = HTMLElement> = {
|
|
14
|
+
input: Partial<FieldRenderProps<V, T>["input"]>;
|
|
15
|
+
meta: FieldRenderProps<V, T>["meta"];
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
dropdownClassName?: string;
|
|
19
|
+
} & BaseEnumProps;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { EnumProps } from "
|
|
2
|
+
import { EnumProps } from "./fieldsEnum.type";
|
|
3
3
|
declare const FieldsEnum: ({ meta: __, enumValues, emptyLabel, ...restProps }: EnumProps) => JSX.Element;
|
|
4
4
|
export default FieldsEnum;
|
|
5
|
+
export * from "./fieldsEnum.type";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FieldBaseProps, InputSize } from "../fields.type";
|
|
3
|
+
export interface IntProps {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
suffix?: string;
|
|
6
|
+
size?: InputSize;
|
|
7
|
+
onBlur?: (input: FieldBaseProps<number, HTMLInputElement>["input"], event?: React.FocusEvent<HTMLInputElement>) => void;
|
|
8
|
+
}
|
|
9
|
+
export type IntFieldProps<V = any, T extends HTMLElement = HTMLElement> = FieldBaseProps<V, T> & IntProps & {
|
|
10
|
+
onChange?: FieldBaseProps<V, T>["input"]["onChange"];
|
|
11
|
+
autoComplete?: "on" | "off";
|
|
12
|
+
maximum?: number;
|
|
13
|
+
minimum?: number;
|
|
14
|
+
supportNegativeValue?: boolean;
|
|
15
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { IntFieldProps } from "
|
|
2
|
+
import { IntFieldProps } from "./fieldsInt.type";
|
|
3
3
|
declare const FieldsInt: ({ input, meta, onBlur, autoComplete, supportNegativeValue, ...props }: IntFieldProps) => JSX.Element;
|
|
4
4
|
export default FieldsInt;
|
|
5
|
+
export * from "./fieldsInt.type";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InputSize } from "../fields.type";
|
|
3
|
+
export interface StringProps {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
autoComplete?: "on" | "off" | "new-password";
|
|
6
|
+
prefix?: React.ReactNode;
|
|
7
|
+
suffix?: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
size?: InputSize;
|
|
10
|
+
allowClear?: boolean;
|
|
11
|
+
tags?: string[];
|
|
12
|
+
tagsOverflow?: React.ReactNode;
|
|
13
|
+
onTagsAllowClearClick?: (e: React.MouseEvent) => void;
|
|
14
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
15
|
+
maxLength?: number;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FieldBaseProps
|
|
2
|
+
import { FieldBaseProps } from "../fields.type";
|
|
3
|
+
import { StringProps } from "./fieldsString.type";
|
|
3
4
|
declare const FieldsString: ({ input, meta, autoComplete, size, tags, className, allowClear, tagsOverflow, onTagsAllowClearClick, onClick, maxLength, focusIndicator, ...props }: FieldBaseProps & StringProps) => JSX.Element;
|
|
4
5
|
export default FieldsString;
|
|
6
|
+
export * from "./fieldsString.type";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TextAreaProps } from "antd/lib/input";
|
|
3
|
-
import { FieldBaseProps } from "
|
|
3
|
+
import { FieldBaseProps } from "../fields.type";
|
|
4
4
|
declare const FieldsTextArea: ({ input, meta, onFocusChangeHeight, ...props }: FieldBaseProps & TextAreaProps) => JSX.Element;
|
|
5
5
|
export default FieldsTextArea;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TimePickerProps } from "antd/lib/time-picker";
|
|
3
|
-
import { FieldBaseProps } from "
|
|
3
|
+
import { FieldBaseProps } from "../fields.type";
|
|
4
4
|
declare const FieldsTimePicker: ({ input, meta, ...props }: FieldBaseProps & TimePickerProps) => JSX.Element;
|
|
5
5
|
export default FieldsTimePicker;
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export type InputSize = "large" | "middle" | "small";
|
|
2
3
|
interface AnyObject {
|
|
3
4
|
[key: string]: any;
|
|
4
5
|
}
|
|
5
|
-
interface FieldInputProps<FieldValue, T extends HTMLElement = HTMLElement> extends AnyObject {
|
|
6
|
-
name: string;
|
|
7
|
-
onBlur: (event?: React.FocusEvent<T>) => void;
|
|
8
|
-
onChange: (event: React.ChangeEvent<T> | any) => void;
|
|
9
|
-
onFocus: (event?: React.FocusEvent<T>) => void;
|
|
10
|
-
type?: string;
|
|
11
|
-
value: FieldValue;
|
|
12
|
-
checked?: boolean;
|
|
13
|
-
multiple?: boolean;
|
|
14
|
-
}
|
|
15
6
|
export interface FieldState<FieldValue> {
|
|
16
7
|
active?: boolean;
|
|
17
8
|
blur: () => void;
|
|
@@ -38,9 +29,23 @@ export interface FieldState<FieldValue> {
|
|
|
38
29
|
visited?: boolean;
|
|
39
30
|
}
|
|
40
31
|
export type FieldMetaState<FieldValue> = Pick<FieldState<FieldValue>, Exclude<keyof FieldState<FieldValue>, "blur" | "change" | "focus" | "name" | "value">>;
|
|
32
|
+
interface FieldInputProps<FieldValue, T extends HTMLElement = HTMLElement> extends AnyObject {
|
|
33
|
+
name: string;
|
|
34
|
+
onBlur: (event?: React.FocusEvent<T>) => void;
|
|
35
|
+
onChange: (event: React.ChangeEvent<T> | any) => void;
|
|
36
|
+
onFocus: (event?: React.FocusEvent<T>) => void;
|
|
37
|
+
type?: string;
|
|
38
|
+
value: FieldValue;
|
|
39
|
+
checked?: boolean;
|
|
40
|
+
multiple?: boolean;
|
|
41
|
+
}
|
|
41
42
|
export interface FieldRenderProps<FieldValue, T extends HTMLElement = HTMLElement> {
|
|
42
43
|
input: FieldInputProps<FieldValue, T>;
|
|
43
44
|
meta: FieldMetaState<FieldValue>;
|
|
44
45
|
[otherProp: string]: any;
|
|
45
46
|
}
|
|
47
|
+
export type FieldBaseProps<V = any, T extends HTMLElement = HTMLElement> = FieldRenderProps<V, T> & {
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
className?: string;
|
|
50
|
+
};
|
|
46
51
|
export {};
|
|
@@ -1,26 +1,37 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const fields: {
|
|
3
|
-
Int: ({ input, meta, onBlur, autoComplete, supportNegativeValue, ...props }: import("
|
|
3
|
+
Int: ({ input, meta, onBlur, autoComplete, supportNegativeValue, ...props }: import("./FieldsInt").IntFieldProps) => JSX.Element;
|
|
4
4
|
Integer: ({ meta, input, onBlur, ...props }: import("../..").IntegerFieldProps) => JSX.Element;
|
|
5
|
-
Float: ({ input, meta, onBlur, autoComplete, ...props }: import("
|
|
6
|
-
DateTime: ({ input }: import("
|
|
7
|
-
TimePicker: ({ input, meta, ...props }: import("
|
|
5
|
+
Float: ({ input, meta, onBlur, autoComplete, ...props }: import("../..").FloatFieldProps) => JSX.Element;
|
|
6
|
+
DateTime: ({ input }: import("./fields.type").FieldBaseProps) => JSX.Element;
|
|
7
|
+
TimePicker: ({ input, meta, ...props }: import("./fields.type").FieldRenderProps<any, HTMLElement> & {
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
className?: string | undefined;
|
|
10
10
|
} & import("antd/lib/time-picker").TimePickerProps) => JSX.Element;
|
|
11
|
-
Enum: ({ meta: __, enumValues, emptyLabel, ...restProps }: import("
|
|
12
|
-
String: ({ input, meta, autoComplete, size, tags, className, allowClear, tagsOverflow, onTagsAllowClearClick, onClick, maxLength, focusIndicator, ...props }: import("
|
|
11
|
+
Enum: ({ meta: __, enumValues, emptyLabel, ...restProps }: import("./FieldsEnum").EnumProps) => JSX.Element;
|
|
12
|
+
String: ({ input, meta, autoComplete, size, tags, className, allowClear, tagsOverflow, onTagsAllowClearClick, onClick, maxLength, focusIndicator, ...props }: import("./fields.type").FieldRenderProps<any, HTMLElement> & {
|
|
13
13
|
disabled?: boolean | undefined;
|
|
14
14
|
className?: string | undefined;
|
|
15
|
-
} & import("
|
|
16
|
-
Boolean: ({ input, children, ...props }: import("
|
|
17
|
-
TextArea: ({ input, meta, onFocusChangeHeight, ...props }: import("
|
|
15
|
+
} & import("./FieldsString").StringProps) => JSX.Element;
|
|
16
|
+
Boolean: ({ input, children, ...props }: import("./fields.type").FieldBaseProps) => JSX.Element;
|
|
17
|
+
TextArea: ({ input, meta, onFocusChangeHeight, ...props }: import("./fields.type").FieldRenderProps<any, HTMLElement> & {
|
|
18
18
|
disabled?: boolean | undefined;
|
|
19
19
|
className?: string | undefined;
|
|
20
20
|
} & import("antd/lib/input").TextAreaProps) => JSX.Element;
|
|
21
|
-
DateTimeRange: import("react").FC<import("
|
|
21
|
+
DateTimeRange: import("react").FC<import("./fields.type").FieldRenderProps<any, HTMLElement> & {
|
|
22
22
|
disabled?: boolean | undefined;
|
|
23
23
|
className?: string | undefined;
|
|
24
24
|
} & import("antd/lib/date-picker").DatePickerProps>;
|
|
25
25
|
};
|
|
26
26
|
export default fields;
|
|
27
|
+
export * from "./fields.type";
|
|
28
|
+
export * from "./FieldsBoolean";
|
|
29
|
+
export * from "./FieldsDateTime";
|
|
30
|
+
export * from "./FieldsDateTimeRange";
|
|
31
|
+
export * from "./FieldsEnum";
|
|
32
|
+
export * from "./FieldsFloat";
|
|
33
|
+
export * from "./FieldsInt";
|
|
34
|
+
export * from "./FieldsInteger";
|
|
35
|
+
export * from "./FieldsString";
|
|
36
|
+
export * from "./FieldsTextArea";
|
|
37
|
+
export * from "./FieldsTimePicker";
|