ingred-ui 10.2.5 → 11.1.0

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.
@@ -1,4 +1,6 @@
1
+ import { Story } from "@storybook/react/types-6-0";
1
2
  import React from "react";
3
+ import { ActionButtonProps } from "./ActionButton";
2
4
  declare const _default: {
3
5
  title: string;
4
6
  component: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & {
@@ -20,6 +22,6 @@ declare const _default: {
20
22
  };
21
23
  };
22
24
  export default _default;
23
- export declare const Primary: any;
24
- export declare const Warning: any;
25
- export declare const Disabled: any;
25
+ export declare const Primary: Story<ActionButtonProps>;
26
+ export declare const Warning: Story<ActionButtonProps>;
27
+ export declare const Disabled: Story<ActionButtonProps>;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { Story } from "@storybook/react/types-6-0";
2
3
  import { BadgeProps } from "./Badge";
3
4
  declare const _default: {
4
5
  title: string;
@@ -13,8 +14,8 @@ declare const _default: {
13
14
  };
14
15
  };
15
16
  export default _default;
16
- export declare const Primary: any;
17
- export declare const Secondary: any;
18
- export declare const Success: any;
19
- export declare const Warning: any;
20
- export declare const Danger: any;
17
+ export declare const Primary: Story<BadgeProps>;
18
+ export declare const Secondary: Story<BadgeProps>;
19
+ export declare const Success: Story<BadgeProps>;
20
+ export declare const Warning: Story<BadgeProps>;
21
+ export declare const Danger: Story<BadgeProps>;
@@ -1,4 +1,6 @@
1
1
  import React from "react";
2
+ import { Story } from "@storybook/react/types-6-0";
3
+ import { ButtonProps } from "./Button";
2
4
  declare const _default: {
3
5
  title: string;
4
6
  components: React.ForwardRefExoticComponent<Omit<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>>, "color"> & {
@@ -24,12 +26,12 @@ declare const _default: {
24
26
  };
25
27
  };
26
28
  export default _default;
27
- export declare const Primary: any;
28
- export declare const Secondary: any;
29
- export declare const Danger: any;
30
- export declare const Clear: any;
31
- export declare const Small: any;
32
- export declare const Medium: any;
33
- export declare const Large: any;
34
- export declare const Disabled: any;
35
- export declare const UseHrefProps: any;
29
+ export declare const Primary: Story<ButtonProps>;
30
+ export declare const Secondary: Story<ButtonProps>;
31
+ export declare const Danger: Story<ButtonProps>;
32
+ export declare const Clear: Story<ButtonProps>;
33
+ export declare const Small: Story<ButtonProps>;
34
+ export declare const Medium: Story<ButtonProps>;
35
+ export declare const Large: Story<ButtonProps>;
36
+ export declare const Disabled: Story<ButtonProps>;
37
+ export declare const UseHrefProps: Story<ButtonProps>;
@@ -13,7 +13,7 @@ export declare type ConfirmModalProps = {
13
13
  title: string;
14
14
  confirmText?: string;
15
15
  cancelText?: string;
16
- onClose?: (event: React.MouseEvent<HTMLDivElement | HTMLButtonElement, MouseEvent>, reason: ModalCloseReason | ConfirmModalCloseReason) => void;
16
+ onClose?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.MouseEvent<Element, MouseEvent>, reason: ModalCloseReason | ConfirmModalCloseReason) => void;
17
17
  /**
18
18
  * If `undefined`, footer is removed.
19
19
  */
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { Story } from "@storybook/react/types-6-0";
2
3
  import { ConfirmModalProps } from "./ConfirmModal";
3
4
  declare const _default: {
4
5
  title: string;
@@ -17,10 +18,10 @@ declare const _default: {
17
18
  };
18
19
  };
19
20
  export default _default;
20
- export declare const Basic: any;
21
- export declare const FullSize: any;
22
- export declare const WithTips: any;
23
- export declare const WithSubActions: any;
24
- export declare const Loading: any;
25
- export declare const OverflowYScroll: any;
26
- export declare const WithoutFooter: any;
21
+ export declare const Basic: Story<ConfirmModalProps>;
22
+ export declare const FullSize: Story<ConfirmModalProps>;
23
+ export declare const WithTips: Story<ConfirmModalProps>;
24
+ export declare const WithSubActions: Story<ConfirmModalProps>;
25
+ export declare const Loading: Story<ConfirmModalProps>;
26
+ export declare const OverflowYScroll: Story<ConfirmModalProps>;
27
+ export declare const WithoutFooter: Story<ConfirmModalProps>;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { Story } from "@storybook/react/types-6-0";
2
3
  import { ContextMenuProps } from "./ContextMenu";
3
4
  declare const _default: {
4
5
  title: string;
@@ -13,6 +14,6 @@ declare const _default: {
13
14
  };
14
15
  };
15
16
  export default _default;
16
- export declare const Basic: any;
17
- export declare const Disabled: any;
18
- export declare const Warning: any;
17
+ export declare const Basic: Story<ContextMenuProps>;
18
+ export declare const Disabled: Story<ContextMenuProps>;
19
+ export declare const Warning: Story<ContextMenuProps>;
@@ -1,11 +1,21 @@
1
1
  import * as React from "react";
2
2
  import "react-dates/initialize";
3
- import moment from "moment";
3
+ import dayjs, { InstanceLocaleDataReturn } from "dayjs";
4
4
  import { RenderMonthProps, SingleDatePickerShape } from "react-dates";
5
- export declare type DatePickerProps = Partial<Omit<SingleDatePickerShape, "date" | "onFocusChange">> & RenderMonthProps & {
6
- date: moment.Moment | null;
7
- onDateChange: (date: moment.Moment | null) => void;
5
+ export declare type DatePickerProps = Partial<Omit<SingleDatePickerShape, "date" | "onFocusChange" | "onDateChange" | "renderMonthText">> & Omit<RenderMonthProps, "renderMonthText"> & {
6
+ date: dayjs.Dayjs | null;
7
+ onDateChange: (date: dayjs.Dayjs | null) => void;
8
+ renderMonthText?: ((month: dayjs.Dayjs) => React.ReactNode) | null;
9
+ locale?: string;
10
+ localeData?: InstanceLocaleDataReturn;
8
11
  error?: boolean;
9
12
  };
10
- declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLDivElement>>;
13
+ declare const DatePicker: React.ForwardRefExoticComponent<Partial<Omit<SingleDatePickerShape, "date" | "onFocusChange" | "onDateChange" | "renderMonthText">> & Omit<RenderMonthProps, "renderMonthText"> & {
14
+ date: dayjs.Dayjs | null;
15
+ onDateChange: (date: dayjs.Dayjs | null) => void;
16
+ renderMonthText?: ((month: dayjs.Dayjs) => React.ReactNode) | null | undefined;
17
+ locale?: string | undefined;
18
+ localeData?: dayjs.InstanceLocaleDataReturn | undefined;
19
+ error?: boolean | undefined;
20
+ } & React.RefAttributes<HTMLDivElement>>;
11
21
  export default DatePicker;
@@ -1,8 +1,17 @@
1
1
  import { Story } from "@storybook/react/types-6-0";
2
+ import dayjs from "dayjs";
2
3
  import React from "react";
4
+ import "dayjs/locale/ja";
3
5
  declare const _default: {
4
6
  title: string;
5
- component: React.ForwardRefExoticComponent<import("./DatePicker").DatePickerProps & React.RefAttributes<HTMLDivElement>>;
7
+ component: React.ForwardRefExoticComponent<Partial<Omit<import("react-dates").SingleDatePickerShape, "date" | "onFocusChange" | "onDateChange" | "renderMonthText">> & Omit<import("react-dates").RenderMonthProps, "renderMonthText"> & {
8
+ date: dayjs.Dayjs | null;
9
+ onDateChange: (date: dayjs.Dayjs | null) => void;
10
+ renderMonthText?: ((month: dayjs.Dayjs) => React.ReactNode) | null | undefined;
11
+ locale?: string | undefined;
12
+ localeData?: dayjs.InstanceLocaleDataReturn | undefined;
13
+ error?: boolean | undefined;
14
+ } & React.RefAttributes<HTMLDivElement>>;
6
15
  parameters: {
7
16
  docs: {
8
17
  source: {
@@ -1,15 +1,29 @@
1
1
  import * as React from "react";
2
2
  import "react-dates/initialize";
3
- import moment from "moment";
3
+ import dayjs, { InstanceLocaleDataReturn } from "dayjs";
4
4
  import { DateRangePickerShape } from "react-dates";
5
- export declare type DateRangePickerProps = Partial<DateRangePickerShape> & {
6
- startDate: moment.Moment | null;
7
- endDate: moment.Moment | null;
5
+ export declare type DateRangePickerProps = Partial<Omit<DateRangePickerShape, "startDate" | "endDate" | "onDatesChange" | "renderMonthText">> & {
6
+ startDate: dayjs.Dayjs | null;
7
+ endDate: dayjs.Dayjs | null;
8
8
  onDatesChange: (arg: {
9
- startDate: moment.Moment | null;
10
- endDate: moment.Moment | null;
9
+ startDate: dayjs.Dayjs | null;
10
+ endDate: dayjs.Dayjs | null;
11
11
  }) => void;
12
+ renderMonthText?: ((month: dayjs.Dayjs) => React.ReactNode) | null;
13
+ locale?: string;
14
+ localeData?: InstanceLocaleDataReturn;
12
15
  error?: boolean;
13
16
  };
14
- declare const DateRangePicker: React.ForwardRefExoticComponent<DateRangePickerProps & React.RefAttributes<HTMLDivElement>>;
17
+ declare const DateRangePicker: React.ForwardRefExoticComponent<Partial<Omit<DateRangePickerShape, "renderMonthText" | "startDate" | "endDate" | "onDatesChange">> & {
18
+ startDate: dayjs.Dayjs | null;
19
+ endDate: dayjs.Dayjs | null;
20
+ onDatesChange: (arg: {
21
+ startDate: dayjs.Dayjs | null;
22
+ endDate: dayjs.Dayjs | null;
23
+ }) => void;
24
+ renderMonthText?: ((month: dayjs.Dayjs) => React.ReactNode) | null | undefined;
25
+ locale?: string | undefined;
26
+ localeData?: dayjs.InstanceLocaleDataReturn | undefined;
27
+ error?: boolean | undefined;
28
+ } & React.RefAttributes<HTMLDivElement>>;
15
29
  export default DateRangePicker;
@@ -1,10 +1,23 @@
1
1
  import React from "react";
2
2
  import { Story } from "@storybook/react/types-6-0";
3
+ import dayjs from "dayjs";
3
4
  import { DateRangePickerProps } from "./DateRangePicker";
4
5
  import "react-dates/lib/css/_datepicker.css";
6
+ import "dayjs/locale/ja";
5
7
  declare const _default: {
6
8
  title: string;
7
- component: React.ForwardRefExoticComponent<DateRangePickerProps & React.RefAttributes<HTMLDivElement>>;
9
+ component: React.ForwardRefExoticComponent<Partial<Omit<import("react-dates").DateRangePickerShape, "renderMonthText" | "startDate" | "endDate" | "onDatesChange">> & {
10
+ startDate: dayjs.Dayjs | null;
11
+ endDate: dayjs.Dayjs | null;
12
+ onDatesChange: (arg: {
13
+ startDate: dayjs.Dayjs | null;
14
+ endDate: dayjs.Dayjs | null;
15
+ }) => void;
16
+ renderMonthText?: ((month: dayjs.Dayjs) => React.ReactNode) | null | undefined;
17
+ locale?: string | undefined;
18
+ localeData?: dayjs.InstanceLocaleDataReturn | undefined;
19
+ error?: boolean | undefined;
20
+ } & React.RefAttributes<HTMLDivElement>>;
8
21
  parameters: {
9
22
  docs: {
10
23
  source: {
@@ -17,7 +17,7 @@ declare const _default: {
17
17
  };
18
18
  };
19
19
  export default _default;
20
- export declare const Normal: any;
21
- export declare const WithSpace: any;
22
- export declare const OverrideColor: any;
20
+ export declare const Normal: Story<DividerProps>;
21
+ export declare const WithSpace: Story<DividerProps>;
22
+ export declare const OverrideColor: Story<DividerProps>;
23
23
  export declare const Vertial: Story<DividerProps>;
@@ -1,4 +1,6 @@
1
1
  import React from "react";
2
+ import { Story } from "@storybook/react/types-6-0";
3
+ import { MenuProps } from "./Menu";
2
4
  declare const _default: {
3
5
  title: string;
4
6
  component: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
@@ -20,5 +22,5 @@ declare const _default: {
20
22
  };
21
23
  };
22
24
  export default _default;
23
- export declare const Basic: any;
24
- export declare const Group: any;
25
+ export declare const Basic: Story<MenuProps>;
26
+ export declare const Group: Story<MenuProps>;
@@ -17,7 +17,7 @@ export declare type ContentTypeStyle = {
17
17
  };
18
18
  };
19
19
  export declare const getContentTypeStyles: (theme: Theme, type?: ContentType) => ContentTypeStyle;
20
- export declare type ContentProp = React.ComponentPropsWithoutRef<"div"> & {
20
+ export declare type SingleContentProp = React.ComponentPropsWithoutRef<"div"> & {
21
21
  text: string;
22
22
  onClick: () => void;
23
23
  divideTop?: boolean;
@@ -32,16 +32,17 @@ export declare type ContentProp = React.ComponentPropsWithoutRef<"div"> & {
32
32
  };
33
33
  export declare type GroupContentProp = React.ComponentPropsWithoutRef<"div"> & {
34
34
  title: string;
35
- contents: ContentProp[];
35
+ contents: SingleContentProp[];
36
36
  };
37
+ export declare type ContentProp = SingleContentProp | GroupContentProp;
37
38
  export declare type MenuListProps = React.ComponentPropsWithoutRef<"div"> & {
38
39
  inline?: boolean;
39
- contents: Array<ContentProp | GroupContentProp>;
40
+ contents: Array<ContentProp>;
40
41
  maxHeight?: Property.MaxHeight;
41
42
  };
42
43
  declare const MenuList: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
43
44
  inline?: boolean | undefined;
44
- contents: Array<ContentProp | GroupContentProp>;
45
+ contents: Array<ContentProp>;
45
46
  maxHeight?: Property.MaxHeight<0 | (string & {})> | undefined;
46
47
  } & React.RefAttributes<HTMLDivElement>>;
47
48
  export default MenuList;
@@ -1,9 +1,11 @@
1
1
  import React from "react";
2
+ import { Story } from "@storybook/react/types-6-0";
3
+ import { MenuListProps } from "./MenuList";
2
4
  declare const _default: {
3
5
  title: string;
4
6
  component: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
5
7
  inline?: boolean | undefined;
6
- contents: (import("./MenuList").ContentProp | import("./MenuList").GroupContentProp)[];
8
+ contents: import("./MenuList").ContentProp[];
7
9
  maxHeight?: import("csstype").Property.MaxHeight<0 | (string & {})> | undefined;
8
10
  } & React.RefAttributes<HTMLDivElement>>;
9
11
  parameters: {
@@ -16,5 +18,5 @@ declare const _default: {
16
18
  };
17
19
  };
18
20
  export default _default;
19
- export declare const Basic: any;
20
- export declare const Group: any;
21
+ export declare const Basic: Story<MenuListProps>;
22
+ export declare const Group: Story<MenuListProps>;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { Story } from "@storybook/react/types-6-0";
2
3
  import { SnackbarProps } from "./Snackbar";
3
4
  declare const _default: {
4
5
  title: string;
@@ -20,6 +21,6 @@ declare const _default: {
20
21
  };
21
22
  };
22
23
  export default _default;
23
- export declare const Default: any;
24
- export declare const Dark: any;
25
- export declare const Warning: any;
24
+ export declare const Default: Story<SnackbarProps>;
25
+ export declare const Dark: Story<SnackbarProps>;
26
+ export declare const Warning: Story<SnackbarProps>;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { Story } from "@storybook/react/types-6-0";
2
3
  declare const _default: {
3
4
  title: string;
4
5
  component: {
@@ -28,7 +29,7 @@ declare const _default: {
28
29
  };
29
30
  };
30
31
  export default _default;
31
- export declare const Info: any;
32
- export declare const Success: any;
33
- export declare const Warning: any;
34
- export declare const Error: any;
32
+ export declare const Info: Story<import("../../lib/react-toast-notification/src").ToastProps>;
33
+ export declare const Success: Story<import("../../lib/react-toast-notification/src").ToastProps>;
34
+ export declare const Warning: Story<import("../../lib/react-toast-notification/src").ToastProps>;
35
+ export declare const Error: Story<import("../../lib/react-toast-notification/src").ToastProps>;