@cloudtower/eagle 0.27.2 → 0.27.3-gobackbutton
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/components/Metric/metric.d.ts +1 -1
- package/dist/components.css +1896 -1729
- package/dist/coreX/CronPlan/CronPlan.stories.d.ts +9 -0
- package/dist/coreX/CronPlan/index.d.ts +18 -0
- package/dist/coreX/GoBackButton/GoBackButton.stories.d.ts +12 -0
- package/dist/coreX/GoBackButton/index.d.ts +11 -0
- package/dist/coreX/NamesTooltip/NamesTooltip.stories.d.ts +7 -0
- package/dist/coreX/NamesTooltip/__test__/index.test.d.ts +1 -0
- package/dist/coreX/NamesTooltip/index.d.ts +4 -0
- package/dist/coreX/SwitchWithText/SwitchWithText.stories.d.ts +9 -0
- package/dist/coreX/SwitchWithText/__tests__/h5_css.test.d.ts +1 -0
- package/dist/coreX/SwitchWithText/index.d.ts +4 -0
- package/dist/coreX/index.d.ts +1 -0
- package/dist/esm/index.js +3322 -2288
- package/dist/esm/stats1.html +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/spec/base.d.ts +29 -1
- package/dist/spec/type.d.ts +1 -0
- package/dist/style.css +730 -563
- package/dist/umd/index.js +3322 -2288
- package/dist/umd/stats1.html +1 -1
- package/dist/utils/__test__/compute.spec.d.ts +1 -0
- package/dist/utils/__test__/cron-time.spec.d.ts +1 -0
- package/dist/utils/__test__/time.spec.d.ts +1 -0
- package/dist/utils/compute.d.ts +1 -0
- package/dist/utils/cron-time.d.ts +65 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/time.d.ts +25 -0
- package/package.json +8 -5
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { i18n as Ii18n } from "i18next";
|
|
2
|
+
import moment from "moment";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { CronPlanProps } from "../../spec";
|
|
5
|
+
export declare const stringifyPlan: (mode: CronMode, daily: DailyState, weekly: WeeklyState, monthly: MonthlyState, i18n: Ii18n) => string | undefined;
|
|
6
|
+
type CronMode = "day" | "week" | "month";
|
|
7
|
+
type DailyState = {
|
|
8
|
+
step: number;
|
|
9
|
+
time: moment.Moment;
|
|
10
|
+
};
|
|
11
|
+
type WeeklyState = {
|
|
12
|
+
step: number;
|
|
13
|
+
days: number[];
|
|
14
|
+
time: moment.Moment;
|
|
15
|
+
};
|
|
16
|
+
type MonthlyState = WeeklyState;
|
|
17
|
+
declare const CronPlan: React.FC<CronPlanProps>;
|
|
18
|
+
export default CronPlan;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Meta } from "@storybook/react";
|
|
3
|
+
import GoBackButton from ".";
|
|
4
|
+
declare const stroy: Meta<typeof GoBackButton>;
|
|
5
|
+
export default stroy;
|
|
6
|
+
export declare const Basic: {
|
|
7
|
+
(): JSX.Element;
|
|
8
|
+
args: {
|
|
9
|
+
title: string;
|
|
10
|
+
path: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { History } from "history";
|
|
2
|
+
import React from "react";
|
|
3
|
+
type GobackButtonType = {
|
|
4
|
+
title?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
path?: string;
|
|
7
|
+
index?: number;
|
|
8
|
+
history: History;
|
|
9
|
+
};
|
|
10
|
+
declare const GobackButton: React.FC<GobackButtonType>;
|
|
11
|
+
export default GobackButton;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { NamesTooltipType } from "../../spec";
|
|
4
|
+
type NamesTooltipComponentType = React.FC<NamesTooltipType>;
|
|
5
|
+
declare const story: Meta<NamesTooltipComponentType>;
|
|
6
|
+
export default story;
|
|
7
|
+
export declare const Basic: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Meta } from "@storybook/react";
|
|
3
|
+
import { SwitchWithTextProps } from "../../spec";
|
|
4
|
+
declare const story: Meta<SwitchWithTextProps>;
|
|
5
|
+
export default story;
|
|
6
|
+
export declare const Basic: {
|
|
7
|
+
(): JSX.Element;
|
|
8
|
+
args: {};
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { stringifyPlan } from "./CronPlan";
|