ingred-ui 19.8.0 → 21.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.
- package/dist/components/Button/Button.d.ts +2 -1
- package/dist/components/Button/Button.stories.d.ts +4 -1
- package/dist/components/Button/styled.d.ts +8 -10
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +8 -4
- package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +4 -1
- package/dist/components/ButtonGroup/styled.d.ts +4 -4
- package/dist/components/Checkbox/Checkbox.stories.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +4 -2
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Icon/internal/AlertIcon/index.d.ts +4 -0
- package/dist/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/styles/shadow.d.ts +4 -0
- package/dist/themes/palette.d.ts +2 -0
- package/package.json +2 -2
- package/dist/components/Icon/internal/AlartIcon/index.d.ts +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Theme } from "../../themes";
|
|
3
3
|
export type ButtonSize = "small" | "medium" | "large";
|
|
4
|
-
export type ButtonColor = "primary" | "
|
|
4
|
+
export type ButtonColor = "primary" | "primaryPale" | "basicLight" | "basicDark" | "danger" | "clear";
|
|
5
5
|
export type ButtonColorStyle = {
|
|
6
6
|
normal: {
|
|
7
7
|
background: string;
|
|
@@ -37,6 +37,7 @@ type baseProps = {
|
|
|
37
37
|
* Control whether "inline" or "block" Element.
|
|
38
38
|
*/
|
|
39
39
|
inline?: boolean;
|
|
40
|
+
icon?: React.ReactNode;
|
|
40
41
|
size?: ButtonSize;
|
|
41
42
|
onClick?: (event: React.MouseEvent<Element, MouseEvent>) => void;
|
|
42
43
|
} & React.ComponentPropsWithoutRef<"button">;
|
|
@@ -18,11 +18,14 @@ declare const _default: {
|
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
20
20
|
export declare const Primary: StoryObj<ButtonProps>;
|
|
21
|
-
export declare const
|
|
21
|
+
export declare const BasicLight: StoryObj<ButtonProps>;
|
|
22
22
|
export declare const Danger: StoryObj<ButtonProps>;
|
|
23
23
|
export declare const Clear: StoryObj<ButtonProps>;
|
|
24
|
+
export declare const BasicDark: StoryObj<ButtonProps>;
|
|
25
|
+
export declare const PrimaryPale: StoryObj<ButtonProps>;
|
|
24
26
|
export declare const Small: StoryObj<ButtonProps>;
|
|
25
27
|
export declare const Medium: StoryObj<ButtonProps>;
|
|
26
28
|
export declare const Large: StoryObj<ButtonProps>;
|
|
27
29
|
export declare const Disabled: StoryObj<ButtonProps>;
|
|
28
30
|
export declare const UseHrefProps: StoryObj<ButtonProps>;
|
|
31
|
+
export declare const DesignSamples: StoryObj;
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import { ButtonColorStyle } from "./Button";
|
|
2
2
|
export type ContainerProps = ButtonColorStyle & {
|
|
3
|
+
color: string;
|
|
3
4
|
inline: boolean;
|
|
4
5
|
fontSize: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
paddingTopAtActive: string;
|
|
9
|
-
paddingBottomAtActive: string;
|
|
6
|
+
paddingInline: string;
|
|
7
|
+
borderRadius: string;
|
|
8
|
+
height: string;
|
|
10
9
|
href?: string;
|
|
11
10
|
disabled?: boolean;
|
|
12
11
|
};
|
|
13
12
|
export declare const ButtonContainer: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, ButtonColorStyle & {
|
|
13
|
+
color: string;
|
|
14
14
|
inline: boolean;
|
|
15
15
|
fontSize: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
paddingTopAtActive: string;
|
|
20
|
-
paddingBottomAtActive: string;
|
|
16
|
+
paddingInline: string;
|
|
17
|
+
borderRadius: string;
|
|
18
|
+
height: string;
|
|
21
19
|
href?: string | undefined;
|
|
22
20
|
disabled?: boolean | undefined;
|
|
23
21
|
}, never>;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { ButtonSize } from "../Button/Button";
|
|
3
|
-
type
|
|
2
|
+
import { ButtonColor, ButtonSize } from "../Button/Button";
|
|
3
|
+
type ButtonMinSize = ButtonSize | "fit-content";
|
|
4
4
|
export type ButtonGroupProps = React.ComponentPropsWithoutRef<"div"> & {
|
|
5
|
-
size?:
|
|
5
|
+
size?: ButtonSize;
|
|
6
|
+
color?: ButtonColor;
|
|
7
|
+
minSize?: ButtonMinSize;
|
|
6
8
|
disabled?: boolean;
|
|
7
9
|
};
|
|
8
10
|
declare const ButtonGroup: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
9
|
-
size?:
|
|
11
|
+
size?: ButtonSize | undefined;
|
|
12
|
+
color?: ButtonColor | undefined;
|
|
13
|
+
minSize?: ButtonMinSize | undefined;
|
|
10
14
|
disabled?: boolean | undefined;
|
|
11
15
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
16
|
export default ButtonGroup;
|
|
@@ -4,7 +4,9 @@ import { ButtonGroupProps } from "./ButtonGroup";
|
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
7
|
-
size?: ("
|
|
7
|
+
size?: import("../Button/Button").ButtonSize | undefined;
|
|
8
|
+
color?: import("../Button/Button").ButtonColor | undefined;
|
|
9
|
+
minSize?: ("fit-content" | import("../Button/Button").ButtonSize) | undefined;
|
|
8
10
|
disabled?: boolean | undefined;
|
|
9
11
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
10
12
|
subcomponents: {
|
|
@@ -15,4 +17,5 @@ export default _default;
|
|
|
15
17
|
export declare const Example: StoryObj<ButtonGroupProps>;
|
|
16
18
|
export declare const DesignSamples: StoryObj;
|
|
17
19
|
export declare const DisablePartially: StoryObj<ButtonGroupProps>;
|
|
20
|
+
export declare const MinSize: StoryObj<ButtonGroupProps>;
|
|
18
21
|
export declare const LinkMixed: StoryObj<ButtonGroupProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
horizontalPadding: string;
|
|
1
|
+
type ButtonGroupProps = {
|
|
2
|
+
minSize?: string;
|
|
4
3
|
};
|
|
5
|
-
export declare const ButtonGroupContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme,
|
|
4
|
+
export declare const ButtonGroupContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ButtonGroupProps, never>;
|
|
5
|
+
export {};
|
|
@@ -266,12 +266,12 @@ declare const _default: {
|
|
|
266
266
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLInputElement> | undefined;
|
|
267
267
|
onTransitionEnd?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
268
268
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLInputElement> | undefined;
|
|
269
|
+
alt?: string | undefined;
|
|
269
270
|
height?: string | number | undefined;
|
|
270
271
|
max?: string | number | undefined;
|
|
271
272
|
min?: string | number | undefined;
|
|
272
273
|
width?: string | number | undefined;
|
|
273
274
|
crossOrigin?: string | undefined;
|
|
274
|
-
alt?: string | undefined;
|
|
275
275
|
src?: string | undefined;
|
|
276
276
|
autoFocus?: boolean | undefined;
|
|
277
277
|
disabled?: boolean | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
/** @deprecated "arrow_bottom" は "arrow_down" に置き換わりました */
|
|
3
3
|
type DeprecatedArrowBottom = "arrow_bottom";
|
|
4
|
-
export type IconName = "dashboard" | "bar_chart" | "bar_chart_framed" | "line_chart_framed" | "multi_line_chart_framed" | "logout" | "setting" | "arrow_up" | "arrow_down" | "arrow_left" | "arrow_right" | "pencil" | "delete_bin" | "close" | "forbid" | "check" | "eye" | "eye_off" | "exclamation" | "expand_diagonal_s_fill" | "arrow_double_left" | "arrow_double_right" | "question" | "zoom_in" | "sort_up" | "sort_down" | "sort_inactive" | "folder" | "folder_open" | "refresh_line" | "return_line" | "link" | "unlink" | "no_link" | "search" | "import" | "export" | "add_line" | "more" | "more_vert" | "date_range" | "external_link" | "desktop" | "mobile" | "desktop_mobile" | "copy" | "truck" | "camera_movie" | "code_file" | "cart_secure" | "profile" | "auction" | "mail" | "mail_open" | "filter" | "notification" | "user_settings" | "company_settings" | "heart_pulse" | "checkbox_circle" | "
|
|
4
|
+
export type IconName = "dashboard" | "bar_chart" | "bar_chart_framed" | "line_chart_framed" | "multi_line_chart_framed" | "logout" | "setting" | "arrow_up" | "arrow_down" | "arrow_left" | "arrow_right" | "pencil" | "delete_bin" | "close" | "forbid" | "check" | "eye" | "eye_off" | "exclamation" | "expand_diagonal_s_fill" | "arrow_double_left" | "arrow_double_right" | "question" | "zoom_in" | "sort_up" | "sort_down" | "sort_inactive" | "folder" | "folder_open" | "refresh_line" | "return_line" | "link" | "unlink" | "no_link" | "search" | "import" | "export" | "add_line" | "more" | "more_vert" | "date_range" | "external_link" | "desktop" | "mobile" | "desktop_mobile" | "copy" | "truck" | "camera_movie" | "code_file" | "cart_secure" | "profile" | "auction" | "mail" | "mail_open" | "filter" | "notification" | "user_settings" | "company_settings" | "heart_pulse" | "checkbox_circle" | "alert" | "base_station" | "braille" | "label" | "download_cloud" | "save" | "close_circle" | "bid_strap" | "fluct" | "data_strap" | "company" | "document" | "user" | "information" | "analytics" | "support" | "apps" | "ad_block" | "building" | "image" | "calendar" | "menu" | "file_list" | "draft" | "time" | "stop_circle" | "play_circle" | "sort_asc" | "sort_desc" | "bar_chart_search" | "check_thin" | "image_check" | "group2" | "key" | "operator_match" | "operator_does_not_match" | "operator_contains" | "operator_starts_with" | "operator_ends_with" | "operator_equal" | "operator_not_equal" | "operator_greater_than" | "operator_greater_than_or_equal_to" | "operator_less_than" | "operator_less_than_or_equal_to";
|
|
5
5
|
type IconType = "fill" | "line";
|
|
6
6
|
type IconColor = IconType | "active" | string;
|
|
7
|
-
type IconSize = "sm" | "md" | "lg";
|
|
7
|
+
export type IconSize = "sm" | "sm-md" | "md" | "md-lg" | "lg";
|
|
8
8
|
export declare const iconSize: {
|
|
9
9
|
[key in IconSize]: number;
|
|
10
10
|
};
|
|
@@ -20,12 +20,14 @@ export type Props = {
|
|
|
20
20
|
type?: IconType;
|
|
21
21
|
size?: IconSize;
|
|
22
22
|
color?: IconColor;
|
|
23
|
+
alt?: string;
|
|
23
24
|
} | {
|
|
24
25
|
/** @deprecated "arrow_bottom" は "arrow_down" に置き換わりました */
|
|
25
26
|
name: DeprecatedArrowBottom;
|
|
26
27
|
type?: IconType;
|
|
27
28
|
size?: IconSize;
|
|
28
29
|
color?: IconColor;
|
|
30
|
+
alt?: string;
|
|
29
31
|
};
|
|
30
32
|
declare const Icon: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLSpanElement>>;
|
|
31
33
|
export default Icon;
|