@nation-a/ui 0.16.20 → 0.16.21
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +218 -208
- package/dist/index.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/styled-system/styles.css +12 -4
- package/dist/types/components/Button/Button.stories.d.ts +1 -0
- package/dist/types/components/Button/button.recipe.d.ts +4 -4
- package/dist/types/components/Button/index.d.ts +5 -1
- package/dist/types/components/IconButton/IconButton.stories.d.ts +1 -0
- package/dist/types/components/IconButton/icon-button.recipe.d.ts +3 -3
- package/dist/types/components/IconButton/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -2642,19 +2642,19 @@ html:not(#\#),body:not(#\#) {
|
|
|
2642
2642
|
background: transparent;
|
|
2643
2643
|
}
|
|
2644
2644
|
|
|
2645
|
-
.\[
|
|
2645
|
+
.\[\&\:not\(\[data-preserve-icon-size\=\"true\"\]\)_svg\]\:w_20px:not([data-preserve-icon-size="true"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) svg {
|
|
2646
2646
|
width: 20px;
|
|
2647
2647
|
}
|
|
2648
2648
|
|
|
2649
|
-
.\[
|
|
2649
|
+
.\[\&\:not\(\[data-preserve-icon-size\=\"true\"\]\)_svg\]\:h_20px:not([data-preserve-icon-size="true"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) svg {
|
|
2650
2650
|
height: 20px;
|
|
2651
2651
|
}
|
|
2652
2652
|
|
|
2653
|
-
.\[
|
|
2653
|
+
.\[\&\:not\(\[data-preserve-icon-size\=\"true\"\]\)_svg\]\:w_24px:not([data-preserve-icon-size="true"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) svg {
|
|
2654
2654
|
width: 24px;
|
|
2655
2655
|
}
|
|
2656
2656
|
|
|
2657
|
-
.\[
|
|
2657
|
+
.\[\&\:not\(\[data-preserve-icon-size\=\"true\"\]\)_svg\]\:h_24px:not([data-preserve-icon-size="true"]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) svg {
|
|
2658
2658
|
height: 24px;
|
|
2659
2659
|
}
|
|
2660
2660
|
|
|
@@ -2694,6 +2694,14 @@ html:not(#\#),body:not(#\#) {
|
|
|
2694
2694
|
animation: var(--animations-dialog-out);
|
|
2695
2695
|
}
|
|
2696
2696
|
|
|
2697
|
+
.\[\&_\:where\(svg\)\]\:w_24px:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) :where(svg) {
|
|
2698
|
+
width: 24px;
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2701
|
+
.\[\&_\:where\(svg\)\]\:h_24px:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) :where(svg) {
|
|
2702
|
+
height: 24px;
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2697
2705
|
.\[\&_input\,_\&_textarea\]\:ring_none:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) input,.\[\&_input\,_\&_textarea\]\:ring_none:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) textarea {
|
|
2698
2706
|
outline: var(--borders-none);
|
|
2699
2707
|
}
|
|
@@ -61,7 +61,7 @@ export declare const buttonRecipe: import('../../../styled-system/types').Recipe
|
|
|
61
61
|
textStyle: "label.sm";
|
|
62
62
|
px: "8px";
|
|
63
63
|
gap: number;
|
|
64
|
-
'
|
|
64
|
+
'&:not([data-preserve-icon-size="true"]) svg': {
|
|
65
65
|
width: "20px";
|
|
66
66
|
height: "20px";
|
|
67
67
|
};
|
|
@@ -71,7 +71,7 @@ export declare const buttonRecipe: import('../../../styled-system/types').Recipe
|
|
|
71
71
|
textStyle: "label.sm";
|
|
72
72
|
px: "16px";
|
|
73
73
|
gap: number;
|
|
74
|
-
'
|
|
74
|
+
'&:not([data-preserve-icon-size="true"]) svg': {
|
|
75
75
|
width: "20px";
|
|
76
76
|
height: "20px";
|
|
77
77
|
};
|
|
@@ -81,7 +81,7 @@ export declare const buttonRecipe: import('../../../styled-system/types').Recipe
|
|
|
81
81
|
textStyle: "label.md";
|
|
82
82
|
px: "20px";
|
|
83
83
|
gap: number;
|
|
84
|
-
'
|
|
84
|
+
'&:not([data-preserve-icon-size="true"]) svg': {
|
|
85
85
|
width: "24px";
|
|
86
86
|
height: "24px";
|
|
87
87
|
};
|
|
@@ -91,7 +91,7 @@ export declare const buttonRecipe: import('../../../styled-system/types').Recipe
|
|
|
91
91
|
textStyle: "body.lg";
|
|
92
92
|
px: "28px";
|
|
93
93
|
gap: number;
|
|
94
|
-
'
|
|
94
|
+
'&:not([data-preserve-icon-size="true"]) svg': {
|
|
95
95
|
width: "24px";
|
|
96
96
|
height: "24px";
|
|
97
97
|
};
|
|
@@ -3,6 +3,8 @@ import { ButtonVariantProps } from './button.recipe';
|
|
|
3
3
|
export type ButtonProps = HTMLStyledProps<'button'> & ButtonVariantProps & {
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
loadingText?: React.ReactNode;
|
|
6
|
+
/** 아이콘 컴포넌트의 size prop을 우선시할지 여부 (기본값: false) */
|
|
7
|
+
preserveIconSize?: boolean;
|
|
6
8
|
};
|
|
7
9
|
declare const _default: import('react').MemoExoticComponent<(<C extends "symbol" | "object" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | import('react').ComponentType<any> = "button">(props: {
|
|
8
10
|
as?: C | undefined;
|
|
@@ -296,7 +298,9 @@ declare const _default: import('react').MemoExoticComponent<(<C extends "symbol"
|
|
|
296
298
|
} & {
|
|
297
299
|
loading?: boolean;
|
|
298
300
|
loadingText?: React.ReactNode;
|
|
299
|
-
|
|
301
|
+
/** 아이콘 컴포넌트의 size prop을 우선시할지 여부 (기본값: false) */
|
|
302
|
+
preserveIconSize?: boolean;
|
|
303
|
+
}, "ref"> & Omit<import('react').PropsWithoutRef<import('react').ComponentProps<C>>, "as" | "key" | "radius" | keyof import('react').ButtonHTMLAttributes<HTMLButtonElement> | "loading" | "size" | "css" | "variant" | "fullWidth" | "loadingText" | "preserveIconSize"> & {
|
|
300
304
|
ref?: import('react').Ref<import('react').ElementRef<C>> | undefined;
|
|
301
305
|
}) => React.ReactElement)>;
|
|
302
306
|
export default _default;
|
|
@@ -61,7 +61,7 @@ export declare const iconButtonRecipe: import('../../../styled-system/types').Re
|
|
|
61
61
|
h: number;
|
|
62
62
|
w: number;
|
|
63
63
|
p: "4px";
|
|
64
|
-
'
|
|
64
|
+
'&:not([data-preserve-icon-size="true"]) svg': {
|
|
65
65
|
width: "20px";
|
|
66
66
|
height: "20px";
|
|
67
67
|
};
|
|
@@ -70,7 +70,7 @@ export declare const iconButtonRecipe: import('../../../styled-system/types').Re
|
|
|
70
70
|
h: number;
|
|
71
71
|
w: number;
|
|
72
72
|
p: "4px";
|
|
73
|
-
'
|
|
73
|
+
'&:not([data-preserve-icon-size="true"]) svg': {
|
|
74
74
|
width: "24px";
|
|
75
75
|
height: "24px";
|
|
76
76
|
};
|
|
@@ -79,7 +79,7 @@ export declare const iconButtonRecipe: import('../../../styled-system/types').Re
|
|
|
79
79
|
h: number;
|
|
80
80
|
w: number;
|
|
81
81
|
p: "8px";
|
|
82
|
-
'
|
|
82
|
+
'&:not([data-preserve-icon-size="true"]) svg': {
|
|
83
83
|
width: "24px";
|
|
84
84
|
height: "24px";
|
|
85
85
|
};
|
|
@@ -2,10 +2,12 @@ import { HTMLStyledProps } from '../../../styled-system/jsx';
|
|
|
2
2
|
import { IconButtonVariantProps } from './icon-button.recipe';
|
|
3
3
|
export type IconButtonProps = HTMLStyledProps<'button'> & IconButtonVariantProps & {
|
|
4
4
|
loading?: boolean;
|
|
5
|
+
/** 아이콘 컴포넌트의 size prop을 우선시할지 여부 (기본값: false) */
|
|
6
|
+
preserveIconSize?: boolean;
|
|
5
7
|
};
|
|
6
8
|
declare const _default: import('react').MemoExoticComponent<(<C extends "symbol" | "object" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | import('react').ComponentType<any> = "button">(props: {
|
|
7
9
|
as?: C | undefined;
|
|
8
|
-
} & Omit<Omit<IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "ref"> & Omit<import('react').PropsWithoutRef<import('react').ComponentProps<C>>, "as" | "key" | keyof import('react').ButtonHTMLAttributes<HTMLButtonElement> | "loading" | "size" | "css" | "variant"> & {
|
|
10
|
+
} & Omit<Omit<IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "ref"> & Omit<import('react').PropsWithoutRef<import('react').ComponentProps<C>>, "as" | "key" | keyof import('react').ButtonHTMLAttributes<HTMLButtonElement> | "loading" | "size" | "css" | "variant" | "preserveIconSize"> & {
|
|
9
11
|
ref?: import('react').Ref<import('react').ElementRef<C>> | undefined;
|
|
10
12
|
}) => React.ReactElement)>;
|
|
11
13
|
export default _default;
|