ingred-ui 11.4.0 → 12.0.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.
Files changed (49) hide show
  1. package/dist/components/ConfirmModal/ConfirmModal.d.ts +1 -13
  2. package/dist/components/ConfirmModal/ConfirmModal.stories.d.ts +2 -3
  3. package/dist/components/ConfirmModal/styled.d.ts +1 -9
  4. package/dist/components/ContextMenu/ContextMenu.d.ts +7 -2
  5. package/dist/components/CreatableSelect/CreatableSelect.d.ts +8 -10
  6. package/dist/components/CreatableSelect/CreatableSelect.stories.d.ts +8 -9
  7. package/dist/components/DataTable/DataTable.d.ts +5 -13
  8. package/dist/components/Fade/Fade.stories.d.ts +1 -1
  9. package/dist/components/FloatingTip/FloatingTip.d.ts +6 -1
  10. package/dist/components/FullSizeConfirmModal/FullSizeConfirmModal.d.ts +45 -0
  11. package/dist/components/FullSizeConfirmModal/FullSizeConfirmModal.stories.d.ts +26 -0
  12. package/dist/components/FullSizeConfirmModal/__tests__/FullSizeConfirmModal.test.d.ts +1 -0
  13. package/dist/components/FullSizeConfirmModal/index.d.ts +2 -0
  14. package/dist/components/FullSizeConfirmModal/styled.d.ts +16 -0
  15. package/dist/components/Grow/Grow.stories.d.ts +1 -1
  16. package/dist/components/LocaleProvider/LocaleProvider.stories.d.ts +1 -1
  17. package/dist/components/Menu/Menu.d.ts +7 -27
  18. package/dist/components/Menu/Menu.stories.d.ts +1 -9
  19. package/dist/components/MultipleFilter/MultipleFilter.d.ts +2 -8
  20. package/dist/components/MultipleFilter/types/index.d.ts +1 -8
  21. package/dist/components/NavigationRail/{ExpantionMenu/ExpantionMenu.d.ts → ExpansionMenu/ExpansionMenu.d.ts} +7 -7
  22. package/dist/components/NavigationRail/ExpansionMenu/index.d.ts +2 -0
  23. package/dist/components/NavigationRail/{ExpantionMenu → ExpansionMenu}/styled.d.ts +2 -2
  24. package/dist/components/NavigationRail/ExpansionMenuItem/ExpansionMenuItem.d.ts +24 -0
  25. package/dist/components/NavigationRail/ExpansionMenuItem/index.d.ts +2 -0
  26. package/dist/components/NavigationRail/ExpansionMenuItem/styled.d.ts +3 -0
  27. package/dist/components/NavigationRail/NavigationRail.d.ts +4 -4
  28. package/dist/components/NavigationRail/NavigationRail.stories.d.ts +12 -14
  29. package/dist/components/NavigationRail/index.d.ts +2 -2
  30. package/dist/components/NavigationRail/styled.d.ts +2 -2
  31. package/dist/components/Popover/Popover.d.ts +9 -1
  32. package/dist/components/Popover/Popover.stories.d.ts +1 -0
  33. package/dist/components/Select/Select.d.ts +8 -10
  34. package/dist/components/Select/Select.stories.d.ts +8 -9
  35. package/dist/components/Slide/Slide.stories.d.ts +1 -1
  36. package/dist/components/ToggleButton/ToggleButton.d.ts +4 -5
  37. package/dist/components/ToggleButton/ToggleButton.stories.d.ts +2 -2
  38. package/dist/components/ToggleButton/styled.d.ts +4 -4
  39. package/dist/components/index.d.ts +2 -0
  40. package/dist/constants/locale.d.ts +6 -2
  41. package/dist/index.es.js +3 -3
  42. package/dist/index.es.js.map +1 -1
  43. package/dist/index.js +3 -3
  44. package/dist/index.js.map +1 -1
  45. package/package.json +8 -8
  46. package/dist/components/NavigationRail/ExpantionMenu/index.d.ts +0 -2
  47. package/dist/components/NavigationRail/ExpantionMenuItem/ExpantionMenuItem.d.ts +0 -32
  48. package/dist/components/NavigationRail/ExpantionMenuItem/index.d.ts +0 -2
  49. package/dist/components/NavigationRail/ExpantionMenuItem/styled.d.ts +0 -4
@@ -26,23 +26,11 @@ export type ConfirmModalProps = {
26
26
  disabled?: boolean;
27
27
  loading?: boolean;
28
28
  overflowYScroll?: boolean;
29
- fullSize?: boolean;
30
29
  /**
31
30
  * If `true`, children is wrapped by `<Spacer px={3} pb={3} />`.
32
31
  */
33
32
  disableHorizontalPadding?: boolean;
34
- /**
35
- * ```
36
- * type SubAction = {
37
- * title: string;
38
- * icon: IconName;
39
- * action: () => void;
40
- * }
41
- * ```
42
- * **Recommend to use with `fullSize={true}`**
43
- */
44
- subActions?: SubAction[];
45
- tipElement?: JSX.Element;
33
+ subActions?: React.ReactNode[];
46
34
  /**
47
35
  * props of [Modal](/?path=/docs/components-utils-modal)
48
36
  */
@@ -19,9 +19,8 @@ declare const _default: {
19
19
  };
20
20
  export default _default;
21
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>;
22
+ export declare const WithOneSubAction: Story<ConfirmModalProps>;
23
+ export declare const WithTwoSubActions: Story<ConfirmModalProps>;
25
24
  export declare const Loading: Story<ConfirmModalProps>;
26
25
  export declare const OverflowYScroll: Story<ConfirmModalProps>;
27
26
  export declare const WithoutFooter: Story<ConfirmModalProps>;
@@ -1,24 +1,16 @@
1
- export declare const ModalBackground: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
1
  export declare const ModalContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../utils/spacer").SpacerProps & import("..").FlexProps & {
3
2
  width?: import("csstype").Property.Width<0 | (string & {})> | undefined;
4
3
  maxWidth?: import("csstype").Property.MaxWidth<0 | (string & {})> | undefined;
5
4
  minWidth?: import("csstype").Property.MinWidth<0 | (string & {})> | undefined;
6
- } & {
7
- fullSize: boolean;
8
5
  }, never>;
9
6
  export declare const ModalHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
10
7
  export declare const LeftContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
11
8
  type ScrollContainerProps = {
12
9
  overflowYScroll: boolean;
13
- fullSize: boolean;
14
10
  showFooter: boolean;
15
11
  };
16
12
  export declare const ScrollContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ScrollContainerProps, never>;
17
- export declare const ModalFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
18
- fullSize: boolean;
19
- }, never>;
13
+ export declare const ModalFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
20
14
  export declare const IconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
21
15
  export declare const LoadingContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
22
- export declare const TipContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
23
- export declare const TipContentContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
24
16
  export {};
@@ -1,7 +1,8 @@
1
- import * as React from "react";
2
1
  import * as PopperJS from "@popperjs/core";
3
- import { ContentProp } from "../MenuList/MenuList";
2
+ import * as React from "react";
3
+ import { ActionButtonProps } from "../ActionButton";
4
4
  import { MenuProps } from "../Menu";
5
+ import { ContentProp } from "../MenuList/MenuList";
5
6
  export type ContextMenuProps = {
6
7
  /**
7
8
  * `type ContentProp = React.ComponentPropsWithoutRef<"div"> & {
@@ -21,6 +22,10 @@ export type ContextMenuProps = {
21
22
  * props of [Menu](/?path=/docs/components-navigation-menu)
22
23
  */
23
24
  menuProps?: Partial<MenuProps>;
25
+ /**
26
+ * props of [ActionButton](/?path=/docs/components-inputs-actionbutton)
27
+ */
28
+ actionButtonProps?: Partial<ActionButtonProps>;
24
29
  };
25
30
  declare const ContextMenu: React.ForwardRefExoticComponent<ContextMenuProps & React.RefAttributes<HTMLButtonElement>>;
26
31
  export default ContextMenu;
@@ -3,7 +3,6 @@ import { CreatableProps } from "react-select/creatable";
3
3
  import { GroupBase } from "react-select/dist/declarations/src/types";
4
4
  import { OptionType } from "../Select";
5
5
  export type CreatableSelectProps<T> = {
6
- limit?: number;
7
6
  minWidth?: string;
8
7
  placeholder?: string;
9
8
  error?: boolean;
@@ -12,7 +11,6 @@ export type CreatableSelectProps<T> = {
12
11
  } & CreatableProps<OptionType<T>, boolean, GroupBase<OptionType<T>>>;
13
12
  declare const CreatableSelect: <T>(inProps: CreatableSelectProps<T>, ref: React.Ref<HTMLDivElement>) => React.ReactElement<CreatableSelectProps<T>, string | React.JSXElementConstructor<any>>;
14
13
  declare const _default: <T>(props: {
15
- limit?: number | undefined;
16
14
  minWidth?: string | undefined;
17
15
  placeholder?: string | undefined;
18
16
  error?: boolean | undefined;
@@ -23,18 +21,17 @@ declare const _default: <T>(props: {
23
21
  tabIndex?: number | undefined;
24
22
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
25
23
  classNames?: import("react-select").ClassNamesConfig<OptionType<T>, boolean, GroupBase<OptionType<T>>> | undefined;
26
- styles?: import("react-select").StylesConfig<OptionType<T>, boolean, GroupBase<OptionType<T>>> | undefined;
27
- options?: import("react-select/dist/declarations/src/types").OptionsOrGroups<OptionType<T>, GroupBase<OptionType<T>>> | undefined;
28
- menuIsOpen?: boolean | undefined;
29
- isDisabled?: boolean | undefined;
30
24
  loadingMessage?: ((obj: {
31
25
  inputValue: string;
32
26
  }) => React.ReactNode) | undefined;
33
27
  noOptionsMessage?: ((obj: {
34
28
  inputValue: string;
35
29
  }) => React.ReactNode) | undefined;
30
+ isDisabled?: boolean | undefined;
36
31
  isMulti?: boolean | undefined;
37
32
  isRtl?: boolean | undefined;
33
+ options?: import("react-select/dist/declarations/src/types").OptionsOrGroups<OptionType<T>, GroupBase<OptionType<T>>> | undefined;
34
+ menuIsOpen?: boolean | undefined;
38
35
  backspaceRemovesValue?: boolean | undefined;
39
36
  blurInputOnSelect?: boolean | undefined;
40
37
  captureMenuScroll?: boolean | undefined;
@@ -62,6 +59,7 @@ declare const _default: <T>(props: {
62
59
  screenReaderStatus?: ((obj: {
63
60
  count: number;
64
61
  }) => string) | undefined;
62
+ styles?: import("react-select").StylesConfig<OptionType<T>, boolean, GroupBase<OptionType<T>>> | undefined;
65
63
  tabSelectsValue?: boolean | undefined;
66
64
  unstyled?: boolean | undefined;
67
65
  } & {}, "value" | "onChange" | "menuIsOpen" | "inputValue" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<OptionType<T>, boolean, GroupBase<OptionType<T>>>, "form" | "theme" | "name" | "autoFocus" | "value" | "className" | "id" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "required" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
@@ -69,18 +67,17 @@ declare const _default: <T>(props: {
69
67
  tabIndex?: number | undefined;
70
68
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
71
69
  classNames?: import("react-select").ClassNamesConfig<OptionType<T>, boolean, GroupBase<OptionType<T>>> | undefined;
72
- styles?: import("react-select").StylesConfig<OptionType<T>, boolean, GroupBase<OptionType<T>>> | undefined;
73
- options?: import("react-select/dist/declarations/src/types").OptionsOrGroups<OptionType<T>, GroupBase<OptionType<T>>> | undefined;
74
- menuIsOpen?: boolean | undefined;
75
- isDisabled?: boolean | undefined;
76
70
  loadingMessage?: ((obj: {
77
71
  inputValue: string;
78
72
  }) => React.ReactNode) | undefined;
79
73
  noOptionsMessage?: ((obj: {
80
74
  inputValue: string;
81
75
  }) => React.ReactNode) | undefined;
76
+ isDisabled?: boolean | undefined;
82
77
  isMulti?: boolean | undefined;
83
78
  isRtl?: boolean | undefined;
79
+ options?: import("react-select/dist/declarations/src/types").OptionsOrGroups<OptionType<T>, GroupBase<OptionType<T>>> | undefined;
80
+ menuIsOpen?: boolean | undefined;
84
81
  backspaceRemovesValue?: boolean | undefined;
85
82
  blurInputOnSelect?: boolean | undefined;
86
83
  captureMenuScroll?: boolean | undefined;
@@ -108,6 +105,7 @@ declare const _default: <T>(props: {
108
105
  screenReaderStatus?: ((obj: {
109
106
  count: number;
110
107
  }) => string) | undefined;
108
+ styles?: import("react-select").StylesConfig<OptionType<T>, boolean, GroupBase<OptionType<T>>> | undefined;
111
109
  tabSelectsValue?: boolean | undefined;
112
110
  unstyled?: boolean | undefined;
113
111
  } & {}> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<OptionType<T>> & import("react-select/dist/declarations/src/useCreatable").CreatableAdditionalProps<OptionType<T>, GroupBase<OptionType<T>>> & {
@@ -2,7 +2,6 @@ import * as React from "react";
2
2
  declare const _default: {
3
3
  title: string;
4
4
  component: <T>(props: {
5
- limit?: number | undefined;
6
5
  minWidth?: string | undefined;
7
6
  placeholder?: string | undefined;
8
7
  error?: boolean | undefined;
@@ -13,18 +12,17 @@ declare const _default: {
13
12
  tabIndex?: number | undefined;
14
13
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
15
14
  classNames?: import("react-select").ClassNamesConfig<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>> | undefined;
16
- styles?: import("react-select").StylesConfig<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>> | undefined;
17
- options?: import("react-select").OptionsOrGroups<import("..").OptionType<T>, import("react-select").GroupBase<import("..").OptionType<T>>> | undefined;
18
- menuIsOpen?: boolean | undefined;
19
- isDisabled?: boolean | undefined;
20
15
  loadingMessage?: ((obj: {
21
16
  inputValue: string;
22
17
  }) => React.ReactNode) | undefined;
23
18
  noOptionsMessage?: ((obj: {
24
19
  inputValue: string;
25
20
  }) => React.ReactNode) | undefined;
21
+ isDisabled?: boolean | undefined;
26
22
  isMulti?: boolean | undefined;
27
23
  isRtl?: boolean | undefined;
24
+ options?: import("react-select").OptionsOrGroups<import("..").OptionType<T>, import("react-select").GroupBase<import("..").OptionType<T>>> | undefined;
25
+ menuIsOpen?: boolean | undefined;
28
26
  backspaceRemovesValue?: boolean | undefined;
29
27
  blurInputOnSelect?: boolean | undefined;
30
28
  captureMenuScroll?: boolean | undefined;
@@ -52,6 +50,7 @@ declare const _default: {
52
50
  screenReaderStatus?: ((obj: {
53
51
  count: number;
54
52
  }) => string) | undefined;
53
+ styles?: import("react-select").StylesConfig<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>> | undefined;
55
54
  tabSelectsValue?: boolean | undefined;
56
55
  unstyled?: boolean | undefined;
57
56
  } & {}, "value" | "onChange" | "menuIsOpen" | "inputValue" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<Pick<import("react-select/dist/declarations/src/Select").Props<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>>, "form" | "theme" | "name" | "autoFocus" | "value" | "className" | "id" | "aria-errormessage" | "aria-invalid" | "aria-label" | "aria-labelledby" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "required" | "ariaLiveMessages" | "classNamePrefix" | "delimiter" | "formatOptionLabel" | "hideSelectedOptions" | "inputValue" | "inputId" | "instanceId" | "isClearable" | "isOptionSelected" | "menuPortalTarget" | "onInputChange" | "onMenuOpen" | "onMenuClose" | "onMenuScrollToTop" | "onMenuScrollToBottom"> & {
@@ -59,18 +58,17 @@ declare const _default: {
59
58
  tabIndex?: number | undefined;
60
59
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
61
60
  classNames?: import("react-select").ClassNamesConfig<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>> | undefined;
62
- styles?: import("react-select").StylesConfig<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>> | undefined;
63
- options?: import("react-select").OptionsOrGroups<import("..").OptionType<T>, import("react-select").GroupBase<import("..").OptionType<T>>> | undefined;
64
- menuIsOpen?: boolean | undefined;
65
- isDisabled?: boolean | undefined;
66
61
  loadingMessage?: ((obj: {
67
62
  inputValue: string;
68
63
  }) => React.ReactNode) | undefined;
69
64
  noOptionsMessage?: ((obj: {
70
65
  inputValue: string;
71
66
  }) => React.ReactNode) | undefined;
67
+ isDisabled?: boolean | undefined;
72
68
  isMulti?: boolean | undefined;
73
69
  isRtl?: boolean | undefined;
70
+ options?: import("react-select").OptionsOrGroups<import("..").OptionType<T>, import("react-select").GroupBase<import("..").OptionType<T>>> | undefined;
71
+ menuIsOpen?: boolean | undefined;
74
72
  backspaceRemovesValue?: boolean | undefined;
75
73
  blurInputOnSelect?: boolean | undefined;
76
74
  captureMenuScroll?: boolean | undefined;
@@ -98,6 +96,7 @@ declare const _default: {
98
96
  screenReaderStatus?: ((obj: {
99
97
  count: number;
100
98
  }) => string) | undefined;
99
+ styles?: import("react-select").StylesConfig<import("..").OptionType<T>, boolean, import("react-select").GroupBase<import("..").OptionType<T>>> | undefined;
101
100
  tabSelectsValue?: boolean | undefined;
102
101
  unstyled?: boolean | undefined;
103
102
  } & {}> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<import("..").OptionType<T>> & import("react-select/dist/declarations/src/useCreatable").CreatableAdditionalProps<import("..").OptionType<T>, import("react-select").GroupBase<import("..").OptionType<T>>> & {
@@ -44,16 +44,12 @@ export type DataTableProps<T> = {
44
44
  * **Don't use with `onSelectRowsChange={true}`**
45
45
  */
46
46
  onRadioChange?: (radio: number) => void;
47
- /**
48
- * Reset selected checkboxes when this props changed to `true`.
49
- */
50
- clearSelectedRows?: boolean;
51
47
  /**
52
48
  * Define tabs of table. Please refer to the samples below.
53
49
  */
54
50
  tabs?: Tab<T>[];
55
51
  /**
56
- * props of [ItemEnpty](/?path=/docs/components-utils-itemempty)
52
+ * props of [ItemEmpty](/?path=/docs/components-utils-itemEmpty)
57
53
  */
58
54
  itemEmptyProps?: ItemEmptyProps;
59
55
  /**
@@ -73,18 +69,14 @@ export type DataTableProps<T> = {
73
69
  defaultSortOrder?: "desc" | "asc";
74
70
  /**
75
71
  * Specify checked rows.
76
- * Not rerender when this prop is updated because it is used for initial value of state.
77
- * **Please use with `onSelectRowsChange={true}`.**
78
72
  */
79
- defaultSelectedRows?: number[];
73
+ selectedRows?: number[];
80
74
  /**
81
75
  * Specify checked row.
82
- * Not rerender when this prop is updated because it is used for initial value of state.
83
- * **Please use with `onSelectRowChange={true}`.**
84
76
  */
85
- defaultSelectedRow?: number;
77
+ selectedRow?: number;
86
78
  /**
87
- * Add verticale line in table.
79
+ * Add vertical line in table.
88
80
  */
89
81
  enableRuledLine?: boolean;
90
82
  /**
@@ -101,7 +93,7 @@ export type DataTableProps<T> = {
101
93
  labelRowsPerPage?: string;
102
94
  labelDisplayedRows?: LabelDisplayRows;
103
95
  };
104
- declare const DataTable: <T extends DataTableBaseData>({ data: sourceData, columns, enablePagination, onSelectRowsChange, onRadioChange, clearSelectedRows, tabs, itemEmptyProps, per, defaultSortField, defaultSortOrder, defaultSelectedRows, defaultSelectedRow, enableRuledLine, verticalSpacing, fullWidth, disableCheckWhenClickRow, tableMaxHeight, horizontalScrollable, labelRowsPerPage, labelDisplayedRows, }: DataTableProps<T>, ref?: React.ForwardedRef<HTMLDivElement>) => JSX.Element;
96
+ declare const DataTable: <T extends DataTableBaseData>({ data: sourceData, columns, enablePagination, onSelectRowsChange, onRadioChange, tabs, itemEmptyProps, per, defaultSortField, defaultSortOrder, selectedRows, selectedRow, enableRuledLine, verticalSpacing, fullWidth, disableCheckWhenClickRow, tableMaxHeight, horizontalScrollable, labelRowsPerPage, labelDisplayedRows, }: DataTableProps<T>, ref?: React.ForwardedRef<HTMLDivElement>) => JSX.Element;
105
97
  declare const _default: <T extends DataTableBaseData>(props: DataTableProps<T> & {
106
98
  ref?: React.ForwardedRef<HTMLDivElement> | undefined;
107
99
  }) => ReturnType<typeof DataTable>;
@@ -1,5 +1,5 @@
1
- import React from "react";
2
1
  import { ComponentStory } from "@storybook/react";
2
+ import React from "react";
3
3
  import Fade from "./Fade";
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,6 +1,7 @@
1
- import * as React from "react";
2
1
  import * as PopperJS from "@popperjs/core";
2
+ import * as React from "react";
3
3
  import { ModalCloseReason } from "../Modal";
4
+ import { PopoverProps } from "../Popover";
4
5
  export type FloatingTipCloseReason = "clickCloseIcon";
5
6
  export type FloatingTipProps = {
6
7
  /**
@@ -15,6 +16,10 @@ export type FloatingTipProps = {
15
16
  isOpen: boolean;
16
17
  children: React.ReactNode;
17
18
  onClose?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, reason: ModalCloseReason | FloatingTipCloseReason) => void;
19
+ /**
20
+ * props of [Popover](/?path=/docs/components-utils-popover)
21
+ */
22
+ popoverProps?: Partial<PopoverProps>;
18
23
  };
19
24
  declare const FloatingTip: React.ForwardRefExoticComponent<FloatingTipProps & React.RefAttributes<HTMLDivElement>>;
20
25
  export default FloatingTip;
@@ -0,0 +1,45 @@
1
+ import * as React from "react";
2
+ import { ButtonColor } from "../Button/Button";
3
+ import { IconName } from "../Icon/Icon";
4
+ import { ModalCloseReason, ModalProps } from "../Modal";
5
+ import { CSSTransitionProps } from "../../utils/reactTransitionGroup";
6
+ export type FullSizeConfirmModalCloseReason = "clickCloseIcon" | "clickCancelButton";
7
+ export type SubAction = {
8
+ title: string;
9
+ icon: IconName;
10
+ action: () => void;
11
+ };
12
+ export type FullSizeConfirmModalProps = {
13
+ title: string;
14
+ confirmText?: string;
15
+ cancelText?: string;
16
+ onClose?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.MouseEvent<Element, MouseEvent>, reason: ModalCloseReason | FullSizeConfirmModalCloseReason) => void;
17
+ /**
18
+ * If `undefined`, footer is removed.
19
+ */
20
+ onSubmit?: (event: React.FormEvent<HTMLFormElement>) => void;
21
+ buttonColor?: ButtonColor;
22
+ isOpen?: boolean;
23
+ /**
24
+ * If `true`, disabled to click submit button.
25
+ */
26
+ disabled?: boolean;
27
+ loading?: boolean;
28
+ overflowYScroll?: boolean;
29
+ /**
30
+ * If `true`, children is wrapped by `<Spacer px={3} pb={3} />`.
31
+ */
32
+ disableHorizontalPadding?: boolean;
33
+ subActions?: React.ReactNode[];
34
+ /**
35
+ * props of [Modal](/?path=/docs/components-utils-modal)
36
+ */
37
+ modalProps?: ModalProps;
38
+ /**
39
+ * props of [Fade](/?path=/docs/components-utils-fade)
40
+ */
41
+ fadeProps?: CSSTransitionProps;
42
+ children?: React.ReactNode;
43
+ };
44
+ declare const FullSizeConfirmModal: React.ForwardRefExoticComponent<FullSizeConfirmModalProps & React.RefAttributes<HTMLDivElement>>;
45
+ export default FullSizeConfirmModal;
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import { Story } from "@storybook/react/types-6-0";
3
+ import { FullSizeConfirmModalProps } from "./FullSizeConfirmModal";
4
+ declare const _default: {
5
+ title: string;
6
+ component: React.ForwardRefExoticComponent<FullSizeConfirmModalProps & React.RefAttributes<HTMLDivElement>>;
7
+ args: {
8
+ isOpen: boolean;
9
+ title: string;
10
+ };
11
+ parameters: {
12
+ docs: {
13
+ source: {
14
+ type: string;
15
+ };
16
+ page: () => JSX.Element;
17
+ };
18
+ };
19
+ };
20
+ export default _default;
21
+ export declare const Basic: Story<FullSizeConfirmModalProps>;
22
+ export declare const WithOneSubAction: Story<FullSizeConfirmModalProps>;
23
+ export declare const WithTwoSubActions: Story<FullSizeConfirmModalProps>;
24
+ export declare const Loading: Story<FullSizeConfirmModalProps>;
25
+ export declare const OverflowYScroll: Story<FullSizeConfirmModalProps>;
26
+ export declare const WithoutFooter: Story<FullSizeConfirmModalProps>;
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom/extend-expect";
@@ -0,0 +1,2 @@
1
+ export { default } from "./FullSizeConfirmModal";
2
+ export type { FullSizeConfirmModalProps, FullSizeConfirmModalCloseReason, } from "./FullSizeConfirmModal";
@@ -0,0 +1,16 @@
1
+ export declare const ModalContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../utils/spacer").SpacerProps & import("..").FlexProps & {
2
+ width?: import("csstype").Property.Width<0 | (string & {})> | undefined;
3
+ maxWidth?: import("csstype").Property.MaxWidth<0 | (string & {})> | undefined;
4
+ minWidth?: import("csstype").Property.MinWidth<0 | (string & {})> | undefined;
5
+ }, never>;
6
+ export declare const ModalHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const LeftContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
+ type ScrollContainerProps = {
9
+ overflowYScroll: boolean;
10
+ showFooter: boolean;
11
+ };
12
+ export declare const ScrollContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ScrollContainerProps, never>;
13
+ export declare const ModalFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
14
+ export declare const IconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
15
+ export declare const LoadingContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
16
+ export {};
@@ -1,5 +1,5 @@
1
- import React from "react";
2
1
  import { ComponentStory } from "@storybook/react";
2
+ import React from "react";
3
3
  import Grow from "./Grow";
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
1
  import { Story } from "@storybook/react/types-6-0";
2
+ import * as React from "react";
3
3
  import { LocaleProviderProps } from "./LocaleProvider";
4
4
  declare const _default: {
5
5
  title: string;
@@ -1,9 +1,10 @@
1
- import * as React from "react";
2
1
  import * as PopperJS from "@popperjs/core";
2
+ import * as React from "react";
3
3
  import { ContentProp, MenuListProps } from "../MenuList/MenuList";
4
4
  import { ModalCloseReason } from "../Modal";
5
+ import { PopoverProps } from "../Popover";
5
6
  export type MenuCloseReason = "clickMenuList";
6
- export type MenuProps = React.ComponentPropsWithoutRef<"div"> & {
7
+ export type MenuProps = {
7
8
  isOpen?: boolean;
8
9
  /**
9
10
  * Basis of `<Menu />` position.
@@ -28,31 +29,10 @@ export type MenuProps = React.ComponentPropsWithoutRef<"div"> & {
28
29
  * props of [MenuList](/?path=/docs/components-navigation-menulist)
29
30
  */
30
31
  menuListProps?: Partial<MenuListProps>;
31
- };
32
- declare const Menu: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
33
- isOpen?: boolean | undefined;
34
32
  /**
35
- * Basis of `<Menu />` position.
33
+ * props of [Popover](/?path=/docs/components-utils-popover)
36
34
  */
37
- baseElement?: HTMLElement | null | undefined;
38
- /**
39
- * `type ContentProp = React.ComponentPropsWithoutRef<"div"> & {
40
- * text: string;
41
- * onClick: () => void;
42
- * divideTop?: boolean;
43
- * disabled?: boolean;
44
- * }`
45
- */
46
- contents: ContentProp[];
47
- /**
48
- * Define priority of position. Please check [this](https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements).
49
- */
50
- positionPriority?: PopperJS.Placement[] | undefined;
51
- onClose?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>, reason: ModalCloseReason | MenuCloseReason) => void) | undefined;
52
- maxHeight?: MenuListProps["maxHeight"];
53
- /**
54
- * props of [MenuList](/?path=/docs/components-navigation-menulist)
55
- */
56
- menuListProps?: Partial<MenuListProps> | undefined;
57
- } & React.RefAttributes<HTMLDivElement>>;
35
+ popoverProps?: Partial<PopoverProps>;
36
+ };
37
+ declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<HTMLDivElement>>;
58
38
  export default Menu;
@@ -3,15 +3,7 @@ import { Story } from "@storybook/react/types-6-0";
3
3
  import { MenuProps } from "./Menu";
4
4
  declare const _default: {
5
5
  title: string;
6
- component: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
7
- isOpen?: boolean | undefined;
8
- baseElement?: HTMLElement | null | undefined;
9
- contents: import("..").ContentProp[];
10
- positionPriority?: import("@popperjs/core").Placement[] | undefined;
11
- onClose?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>, reason: "backdropClick" | "clickMenuList") => void) | undefined;
12
- maxHeight?: import("csstype").Property.MaxHeight<0 | (string & {})> | undefined;
13
- menuListProps?: Partial<import("..").MenuListProps> | undefined;
14
- } & React.RefAttributes<HTMLDivElement>>;
6
+ component: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<HTMLDivElement>>;
15
7
  parameters: {
16
8
  docs: {
17
9
  source: {
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { FilterPackType, ReferredFilterType, ReferedFilterType } from "./types";
2
+ import { FilterPackType, ReferredFilterType } from "./types";
3
3
  export type MultipleFilterProps = {
4
4
  /**
5
5
  * `type FilterPackType = {
@@ -16,16 +16,10 @@ export type MultipleFilterProps = {
16
16
  * filterCondition: ControlType<Types>["options"];
17
17
  * }`
18
18
  */
19
- onChange?: (referredFilters: ReferredFilterType[] | ReferedFilterType[]) => void;
19
+ onChange?: (referredFilters: ReferredFilterType[]) => void;
20
20
  placeholder?: string;
21
21
  editButtonTitle?: string;
22
22
  applyButtonTitle?: string;
23
- /**
24
- * @deprecated
25
- * I'll delete it in the future.
26
- * Because formErrorText it will no longer be necessary.
27
- */
28
- formErrorText?: string;
29
23
  inputErrorText?: string;
30
24
  formPlaceholder?: string;
31
25
  width?: string;
@@ -13,14 +13,7 @@ export type ControlType<T extends Types> = {
13
13
  type: T;
14
14
  options?: T extends "text" ? string : T extends "select" ? string[] : T extends "boolean" ? boolean : any;
15
15
  };
16
- export type ReferredFilterType = ReferedFilterType;
17
- /**
18
- * @deprecated
19
- *
20
- * I'll delete it in the future.
21
- * Please use "ReferredFilterType".
22
- */
23
- export type ReferedFilterType = {
16
+ export type ReferredFilterType = {
24
17
  categoryName: string;
25
18
  filterName: string;
26
19
  filterType: Types;
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { IconName } from "../../Icon/Icon";
3
- export type NavitagionRailExpantionMenuProps = React.ComponentPropsWithoutRef<"div"> & {
3
+ export type NavigationRailExpansionMenuProps = React.ComponentPropsWithoutRef<"div"> & {
4
4
  title: string;
5
5
  /**
6
6
  * If `true`, it is highlighted.
@@ -12,9 +12,9 @@ export type NavitagionRailExpantionMenuProps = React.ComponentPropsWithoutRef<"d
12
12
  */
13
13
  notificationCount?: number;
14
14
  /**
15
- * Array of `<NavagationRail.ExpantionMenu />` is expected.
15
+ * Array of `<NavigationRail.ExpansionMenu />` is expected.
16
16
  */
17
- expantionList?: React.ReactNode[];
17
+ expansionList?: React.ReactNode[];
18
18
  /**
19
19
  * If `true`, it is expanded as default.
20
20
  */
@@ -24,7 +24,7 @@ export type NavitagionRailExpantionMenuProps = React.ComponentPropsWithoutRef<"d
24
24
  */
25
25
  onChangeExpand?: (isExpand: boolean) => void;
26
26
  };
27
- declare const ExpantionMenu: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
27
+ declare const ExpansionMenu: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
28
28
  title: string;
29
29
  /**
30
30
  * If `true`, it is highlighted.
@@ -36,9 +36,9 @@ declare const ExpantionMenu: React.ForwardRefExoticComponent<Pick<React.Detailed
36
36
  */
37
37
  notificationCount?: number | undefined;
38
38
  /**
39
- * Array of `<NavagationRail.ExpantionMenu />` is expected.
39
+ * Array of `<NavigationRail.ExpansionMenu />` is expected.
40
40
  */
41
- expantionList?: React.ReactNode[] | undefined;
41
+ expansionList?: React.ReactNode[] | undefined;
42
42
  /**
43
43
  * If `true`, it is expanded as default.
44
44
  */
@@ -48,4 +48,4 @@ declare const ExpantionMenu: React.ForwardRefExoticComponent<Pick<React.Detailed
48
48
  */
49
49
  onChangeExpand?: ((isExpand: boolean) => void) | undefined;
50
50
  } & React.RefAttributes<HTMLDivElement>>;
51
- export { ExpantionMenu };
51
+ export { ExpansionMenu };
@@ -0,0 +1,2 @@
1
+ export { ExpansionMenu } from "./ExpansionMenu";
2
+ export type { NavigationRailExpansionMenuProps } from "./ExpansionMenu";
@@ -10,10 +10,10 @@ export declare const ArrowIconWrapper: import("styled-components").StyledCompone
10
10
  isExpand: boolean;
11
11
  isOpen: boolean;
12
12
  }, never>;
13
- type ExpantionProps = {
13
+ type ExpansionProps = {
14
14
  isExpand: boolean;
15
15
  delay: boolean;
16
16
  height: string;
17
17
  };
18
- export declare const Expantion: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ExpantionProps, never>;
18
+ export declare const Expansion: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ExpansionProps, never>;
19
19
  export {};
@@ -0,0 +1,24 @@
1
+ import * as React from "react";
2
+ export type NavigationRailExpansionMenuItemProps = Omit<React.ComponentPropsWithoutRef<"div">, "title"> & {
3
+ title: React.ReactNode;
4
+ /**
5
+ * If `true`, it is highlighted.
6
+ */
7
+ isActive?: boolean;
8
+ /**
9
+ * If not `0`, the number is located on the right.
10
+ */
11
+ notificationCount?: number;
12
+ };
13
+ declare const ExpansionMenuItem: React.ForwardRefExoticComponent<Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "title"> & {
14
+ title: React.ReactNode;
15
+ /**
16
+ * If `true`, it is highlighted.
17
+ */
18
+ isActive?: boolean | undefined;
19
+ /**
20
+ * If not `0`, the number is located on the right.
21
+ */
22
+ notificationCount?: number | undefined;
23
+ } & React.RefAttributes<HTMLDivElement>>;
24
+ export { ExpansionMenuItem };
@@ -0,0 +1,2 @@
1
+ export { ExpansionMenuItem } from "./ExpansionMenuItem";
2
+ export type { NavigationRailExpansionMenuItemProps } from "./ExpansionMenuItem";
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const TitleWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../Typography").TypographyProps & import("react").RefAttributes<HTMLElement>>, import("styled-components").DefaultTheme, {}, never>;