@teamturing/react-kit 1.1.6 → 1.2.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/core/Button/index.d.ts +71 -0
- package/dist/core/GradientText/index.d.ts +5 -5
- package/dist/core/IconButton/index.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +446 -111
- package/esm/packages/react-kit/src/core/Button/index.js +347 -0
- package/esm/packages/react-kit/src/index.js +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ComponentType, SVGProps } from 'react';
|
|
2
|
+
import { ResponsiveValue } from 'styled-system';
|
|
3
|
+
import { UnstyledButtonProps } from '../_UnstyledButton';
|
|
4
|
+
type Props = {
|
|
5
|
+
/**
|
|
6
|
+
* 크기를 정의합니다.
|
|
7
|
+
* 반응형 디자인이 적용됩니다.
|
|
8
|
+
*/
|
|
9
|
+
size?: ResponsiveValue<'l' | 'm' | 's'>;
|
|
10
|
+
/**
|
|
11
|
+
* 색을 정의합니다.
|
|
12
|
+
* hover, active, focused, disabled, loading 등의 모든 상황에 관여합니다.
|
|
13
|
+
*/
|
|
14
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'outlined' | 'plain' | 'danger';
|
|
15
|
+
/**
|
|
16
|
+
* 감싸고 있는 컨테이너의 너비를 채웁니다.
|
|
17
|
+
*/
|
|
18
|
+
fillWidth?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 비활성화 상태를 정의합니다.
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* 로딩 상태를 정의합니다.
|
|
25
|
+
*/
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 텍스트 앞에 보여질 아이콘을 정의합니다.
|
|
29
|
+
*/
|
|
30
|
+
leadingIcon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
31
|
+
/**
|
|
32
|
+
* 텍스트 뒤에 보여질 아이콘을 정의합니다.
|
|
33
|
+
*/
|
|
34
|
+
trailingIcon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
35
|
+
} & UnstyledButtonProps;
|
|
36
|
+
declare const Button: import("react").ForwardRefExoticComponent<{
|
|
37
|
+
/**
|
|
38
|
+
* 크기를 정의합니다.
|
|
39
|
+
* 반응형 디자인이 적용됩니다.
|
|
40
|
+
*/
|
|
41
|
+
size?: ResponsiveValue<"s" | "m" | "l"> | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* 색을 정의합니다.
|
|
44
|
+
* hover, active, focused, disabled, loading 등의 모든 상황에 관여합니다.
|
|
45
|
+
*/
|
|
46
|
+
variant?: "primary" | "secondary" | "tertiary" | "outlined" | "plain" | "danger" | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* 감싸고 있는 컨테이너의 너비를 채웁니다.
|
|
49
|
+
*/
|
|
50
|
+
fillWidth?: boolean | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* 비활성화 상태를 정의합니다.
|
|
53
|
+
*/
|
|
54
|
+
disabled?: boolean | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* 로딩 상태를 정의합니다.
|
|
57
|
+
*/
|
|
58
|
+
loading?: boolean | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* 텍스트 앞에 보여질 아이콘을 정의합니다.
|
|
61
|
+
*/
|
|
62
|
+
leadingIcon?: ComponentType<SVGProps<SVGSVGElement>> | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* 텍스트 뒤에 보여질 아이콘을 정의합니다.
|
|
65
|
+
*/
|
|
66
|
+
trailingIcon?: ComponentType<SVGProps<SVGSVGElement>> | undefined;
|
|
67
|
+
} & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("../../utils/styled-system").SxProp & {
|
|
68
|
+
children?: import("react").ReactNode;
|
|
69
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
70
|
+
export default Button;
|
|
71
|
+
export type { Props as ButtonProps };
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
declare const GradientText: import("styled-components").IStyledComponent<"web", {
|
|
4
4
|
key?: import("react").Key | null | undefined;
|
|
5
5
|
id?: string | undefined;
|
|
6
|
-
backgroundColor?: import("styled-system").ResponsiveValue<"link" | "
|
|
7
|
-
color?: import("styled-system").ResponsiveValue<"link" | "
|
|
6
|
+
backgroundColor?: import("styled-system").ResponsiveValue<"link" | "icon/neutral" | "scale/violet/0" | "scale/violet/1" | "scale/violet/2" | "scale/violet/3" | "scale/violet/4" | "scale/violet/5" | "scale/violet/6" | "scale/violet/7" | "scale/violet/8" | "scale/violet/9" | "dim" | "link/hovered" | "link/pressed" | "link/neutral" | "link/neutral/hovered" | "link/neutral/pressed" | "link/neutral/bold" | "link/neutral/bold/hovered" | "link/neutral/bold/pressed" | "link/disabled" | "icon/neutral/bold" | "icon/neutral/bolder" | "icon/accent/gray" | "icon/accent/blue" | "icon/accent/blue/bold" | "icon/accent/green" | "icon/accent/yellow" | "icon/accent/red" | "icon/inverse" | "icon/disabled" | "icon/disabled/subtler" | "icon/selected/primary" | "icon/selected/neutral" | "icon/primary" | "icon/primary/subtle" | "icon/primary/bold" | "icon/success" | "icon/warning" | "icon/danger" | "border/neutral/subtle" | "border/neutral" | "border/neutral/bolder" | "border/input" | "border/inverse" | "border/disabled" | "border/primary" | "border/hovered" | "border/focused" | "border/danger" | "border/success" | "bg/secondary" | "bg/secondary/hovered" | "bg/secondary/pressed" | "bg/primary" | "bg/primary/hovered" | "bg/primary/pressed" | "bg/neutral/subtler" | "bg/neutral/subtler/hovered" | "bg/neutral/subtler/pressed" | "bg/neutral/subtle" | "bg/neutral/subtle/hovered" | "bg/neutral/subtle/pressed" | "bg/neutral" | "bg/neutral/hovered" | "bg/neutral/pressed" | "bg/neutral/bold" | "bg/neutral/bold/hovered" | "bg/neutral/bold/pressed" | "bg/neutral/bolder" | "bg/neutral/bolder/hovered" | "bg/neutral/bolder/pressed" | "bg/disabled" | "bg/disabled/subtlest" | "bg/input" | "bg/accent/green/subtlest" | "bg/accent/yellow/subtlest" | "bg/accent/red/subtlest" | "bg/accent/red/subtle" | "bg/accent/red" | "bg/accent/gray/subtlest" | "bg/accent/blue/subtlest" | "bg/selected/violet" | "bg/selected/neutral" | "bg/selected/neutral/subtle" | "bg/inverse" | "bg/inverse/subtlest" | "bg/success" | "bg/success/bold" | "bg/warning" | "bg/warning/bold" | "bg/danger" | "bg/danger/bold" | "bg/danger/bold/hovered" | "bg/danger/bold/pressed" | "text/primary" | "text/accent/blue" | "text/accent/green" | "text/accent/yellow" | "text/accent/red" | "text/neutral/subtlest" | "text/neutral/subtler" | "text/neutral/subtle" | "text/neutral" | "text/inverse" | "text/inverse/subtle" | "text/inverse/subtler" | "text/disabled" | "text/success" | "text/warning" | "text/danger" | "text/selected/neutral", import("styled-system").Theme<import("styled-system").TLengthStyledSystem>> | undefined;
|
|
7
|
+
color?: import("styled-system").ResponsiveValue<"link" | "icon/neutral" | "scale/violet/0" | "scale/violet/1" | "scale/violet/2" | "scale/violet/3" | "scale/violet/4" | "scale/violet/5" | "scale/violet/6" | "scale/violet/7" | "scale/violet/8" | "scale/violet/9" | "dim" | "link/hovered" | "link/pressed" | "link/neutral" | "link/neutral/hovered" | "link/neutral/pressed" | "link/neutral/bold" | "link/neutral/bold/hovered" | "link/neutral/bold/pressed" | "link/disabled" | "icon/neutral/bold" | "icon/neutral/bolder" | "icon/accent/gray" | "icon/accent/blue" | "icon/accent/blue/bold" | "icon/accent/green" | "icon/accent/yellow" | "icon/accent/red" | "icon/inverse" | "icon/disabled" | "icon/disabled/subtler" | "icon/selected/primary" | "icon/selected/neutral" | "icon/primary" | "icon/primary/subtle" | "icon/primary/bold" | "icon/success" | "icon/warning" | "icon/danger" | "border/neutral/subtle" | "border/neutral" | "border/neutral/bolder" | "border/input" | "border/inverse" | "border/disabled" | "border/primary" | "border/hovered" | "border/focused" | "border/danger" | "border/success" | "bg/secondary" | "bg/secondary/hovered" | "bg/secondary/pressed" | "bg/primary" | "bg/primary/hovered" | "bg/primary/pressed" | "bg/neutral/subtler" | "bg/neutral/subtler/hovered" | "bg/neutral/subtler/pressed" | "bg/neutral/subtle" | "bg/neutral/subtle/hovered" | "bg/neutral/subtle/pressed" | "bg/neutral" | "bg/neutral/hovered" | "bg/neutral/pressed" | "bg/neutral/bold" | "bg/neutral/bold/hovered" | "bg/neutral/bold/pressed" | "bg/neutral/bolder" | "bg/neutral/bolder/hovered" | "bg/neutral/bolder/pressed" | "bg/disabled" | "bg/disabled/subtlest" | "bg/input" | "bg/accent/green/subtlest" | "bg/accent/yellow/subtlest" | "bg/accent/red/subtlest" | "bg/accent/red/subtle" | "bg/accent/red" | "bg/accent/gray/subtlest" | "bg/accent/blue/subtlest" | "bg/selected/violet" | "bg/selected/neutral" | "bg/selected/neutral/subtle" | "bg/inverse" | "bg/inverse/subtlest" | "bg/success" | "bg/success/bold" | "bg/warning" | "bg/warning/bold" | "bg/danger" | "bg/danger/bold" | "bg/danger/bold/hovered" | "bg/danger/bold/pressed" | "text/primary" | "text/accent/blue" | "text/accent/green" | "text/accent/yellow" | "text/accent/red" | "text/neutral/subtlest" | "text/neutral/subtler" | "text/neutral/subtle" | "text/neutral" | "text/inverse" | "text/inverse/subtle" | "text/inverse/subtler" | "text/disabled" | "text/success" | "text/warning" | "text/danger" | "text/selected/neutral", import("styled-system").Theme<import("styled-system").TLengthStyledSystem>> | undefined;
|
|
8
8
|
content?: string | undefined;
|
|
9
|
-
fontSize?: import("styled-system").ResponsiveValue<"s" | "m" | "
|
|
9
|
+
fontSize?: import("styled-system").ResponsiveValue<"s" | "m" | "xxs" | "xs" | "l" | "xl" | "xxl" | "display1" | "display2" | "display3" | "display4", import("styled-system").Theme<import("styled-system").TLengthStyledSystem>> | undefined;
|
|
10
10
|
fontWeight?: import("styled-system").ResponsiveValue<"bold" | "medium" | "regular", import("styled-system").Theme<import("styled-system").TLengthStyledSystem>> | undefined;
|
|
11
11
|
lineHeight?: import("styled-system").ResponsiveValue<2 | 1, import("styled-system").Theme<import("styled-system").TLengthStyledSystem>> | undefined;
|
|
12
12
|
opacity?: import("styled-system").ResponsiveValue<import("csstype").Property.Opacity, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
|
@@ -279,9 +279,9 @@ declare const GradientText: import("styled-components").IStyledComponent<"web",
|
|
|
279
279
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLSpanElement> | undefined;
|
|
280
280
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
281
281
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLSpanElement> | undefined;
|
|
282
|
-
bg?: import("styled-system").ResponsiveValue<"link" | "
|
|
282
|
+
bg?: import("styled-system").ResponsiveValue<"link" | "icon/neutral" | "scale/violet/0" | "scale/violet/1" | "scale/violet/2" | "scale/violet/3" | "scale/violet/4" | "scale/violet/5" | "scale/violet/6" | "scale/violet/7" | "scale/violet/8" | "scale/violet/9" | "dim" | "link/hovered" | "link/pressed" | "link/neutral" | "link/neutral/hovered" | "link/neutral/pressed" | "link/neutral/bold" | "link/neutral/bold/hovered" | "link/neutral/bold/pressed" | "link/disabled" | "icon/neutral/bold" | "icon/neutral/bolder" | "icon/accent/gray" | "icon/accent/blue" | "icon/accent/blue/bold" | "icon/accent/green" | "icon/accent/yellow" | "icon/accent/red" | "icon/inverse" | "icon/disabled" | "icon/disabled/subtler" | "icon/selected/primary" | "icon/selected/neutral" | "icon/primary" | "icon/primary/subtle" | "icon/primary/bold" | "icon/success" | "icon/warning" | "icon/danger" | "border/neutral/subtle" | "border/neutral" | "border/neutral/bolder" | "border/input" | "border/inverse" | "border/disabled" | "border/primary" | "border/hovered" | "border/focused" | "border/danger" | "border/success" | "bg/secondary" | "bg/secondary/hovered" | "bg/secondary/pressed" | "bg/primary" | "bg/primary/hovered" | "bg/primary/pressed" | "bg/neutral/subtler" | "bg/neutral/subtler/hovered" | "bg/neutral/subtler/pressed" | "bg/neutral/subtle" | "bg/neutral/subtle/hovered" | "bg/neutral/subtle/pressed" | "bg/neutral" | "bg/neutral/hovered" | "bg/neutral/pressed" | "bg/neutral/bold" | "bg/neutral/bold/hovered" | "bg/neutral/bold/pressed" | "bg/neutral/bolder" | "bg/neutral/bolder/hovered" | "bg/neutral/bolder/pressed" | "bg/disabled" | "bg/disabled/subtlest" | "bg/input" | "bg/accent/green/subtlest" | "bg/accent/yellow/subtlest" | "bg/accent/red/subtlest" | "bg/accent/red/subtle" | "bg/accent/red" | "bg/accent/gray/subtlest" | "bg/accent/blue/subtlest" | "bg/selected/violet" | "bg/selected/neutral" | "bg/selected/neutral/subtle" | "bg/inverse" | "bg/inverse/subtlest" | "bg/success" | "bg/success/bold" | "bg/warning" | "bg/warning/bold" | "bg/danger" | "bg/danger/bold" | "bg/danger/bold/hovered" | "bg/danger/bold/pressed" | "text/primary" | "text/accent/blue" | "text/accent/green" | "text/accent/yellow" | "text/accent/red" | "text/neutral/subtlest" | "text/neutral/subtler" | "text/neutral/subtle" | "text/neutral" | "text/inverse" | "text/inverse/subtle" | "text/inverse/subtler" | "text/disabled" | "text/success" | "text/warning" | "text/danger" | "text/selected/neutral", import("styled-system").Theme<import("styled-system").TLengthStyledSystem>> | undefined;
|
|
283
283
|
sx?: import("../../utils/styled-system").BetterSystemStyleObject | undefined;
|
|
284
|
-
typography?: import("styled-system").ResponsiveValue<"s" | "m" | "
|
|
284
|
+
typography?: import("styled-system").ResponsiveValue<"s" | "m" | "xxs" | "xs" | "l" | "xl" | "xxl" | "display1" | "display2" | "display3" | "display4" | "xxl/regular" | "xxl/bold" | "xl/regular" | "xl/bold" | "l/regular" | "l/bold" | "m/regular" | "m/bold" | "s/regular" | "s/bold" | "xs/regular" | "xs/bold" | "xxs/regular" | "xxs/bold"> | undefined;
|
|
285
285
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
286
286
|
}>;
|
|
287
287
|
export default GradientText;
|
|
@@ -39,7 +39,7 @@ declare const IconButton: import("react").ForwardRefExoticComponent<{
|
|
|
39
39
|
* 색을 정의합니다.
|
|
40
40
|
* hover, active, focused, disabled, loading 등의 모든 상황에 관여합니다.
|
|
41
41
|
*/
|
|
42
|
-
variant?: "primary" | "secondary" | "tertiary" | "outlined" | "plain
|
|
42
|
+
variant?: "primary" | "secondary" | "tertiary" | "outlined" | "plain" | "danger" | "plain-bold" | "plain-subtle" | undefined;
|
|
43
43
|
/**
|
|
44
44
|
* 비활성화 상태를 정의합니다.
|
|
45
45
|
*/
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -21,6 +21,21 @@ function _interopNamespaceDefault(e) {
|
|
|
21
21
|
|
|
22
22
|
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React$1);
|
|
23
23
|
|
|
24
|
+
function _extends$2() {
|
|
25
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function (target) {
|
|
26
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
27
|
+
var source = arguments[i];
|
|
28
|
+
for (var key in source) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
30
|
+
target[key] = source[key];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return target;
|
|
35
|
+
};
|
|
36
|
+
return _extends$2.apply(this, arguments);
|
|
37
|
+
}
|
|
38
|
+
|
|
24
39
|
const gray = {
|
|
25
40
|
gray50: '#F9FAFB',
|
|
26
41
|
gray100: '#F3F4F6',
|
|
@@ -2884,8 +2899,8 @@ var shadow = system({
|
|
|
2884
2899
|
}
|
|
2885
2900
|
});
|
|
2886
2901
|
|
|
2887
|
-
function _extends$
|
|
2888
|
-
_extends$
|
|
2902
|
+
function _extends$1() {
|
|
2903
|
+
_extends$1 = Object.assign || function (target) {
|
|
2889
2904
|
for (var i = 1; i < arguments.length; i++) {
|
|
2890
2905
|
var source = arguments[i];
|
|
2891
2906
|
for (var key in source) {
|
|
@@ -2896,7 +2911,7 @@ function _extends$2() {
|
|
|
2896
2911
|
}
|
|
2897
2912
|
return target;
|
|
2898
2913
|
};
|
|
2899
|
-
return _extends$
|
|
2914
|
+
return _extends$1.apply(this, arguments);
|
|
2900
2915
|
}
|
|
2901
2916
|
|
|
2902
2917
|
// based on https://github.com/developit/dlv
|
|
@@ -3022,7 +3037,7 @@ var positiveOrNegative = function positiveOrNegative(scale, value) {
|
|
|
3022
3037
|
};
|
|
3023
3038
|
var transforms = ['margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'top', 'bottom', 'left', 'right'].reduce(function (acc, curr) {
|
|
3024
3039
|
var _extends2;
|
|
3025
|
-
return _extends$
|
|
3040
|
+
return _extends$1({}, acc, (_extends2 = {}, _extends2[curr] = positiveOrNegative, _extends2));
|
|
3026
3041
|
}, {});
|
|
3027
3042
|
var responsive = function responsive(styles) {
|
|
3028
3043
|
return function (theme) {
|
|
@@ -3057,7 +3072,7 @@ var css = function css(args) {
|
|
|
3057
3072
|
if (props === void 0) {
|
|
3058
3073
|
props = {};
|
|
3059
3074
|
}
|
|
3060
|
-
var theme = _extends$
|
|
3075
|
+
var theme = _extends$1({}, defaultTheme, {}, props.theme || props);
|
|
3061
3076
|
var result = {};
|
|
3062
3077
|
var obj = typeof args === 'function' ? args(theme) : args;
|
|
3063
3078
|
var styles = responsive(obj)(theme);
|
|
@@ -3066,7 +3081,7 @@ var css = function css(args) {
|
|
|
3066
3081
|
var val = typeof x === 'function' ? x(theme) : x;
|
|
3067
3082
|
if (key === 'variant') {
|
|
3068
3083
|
var variant = css(get(theme, val))(theme);
|
|
3069
|
-
result = _extends$
|
|
3084
|
+
result = _extends$1({}, result, {}, variant);
|
|
3070
3085
|
continue;
|
|
3071
3086
|
}
|
|
3072
3087
|
if (val && typeof val === 'object') {
|
|
@@ -3191,6 +3206,75 @@ position.zIndex;
|
|
|
3191
3206
|
position.bottom;
|
|
3192
3207
|
position.left;
|
|
3193
3208
|
|
|
3209
|
+
function _extends() {
|
|
3210
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
3211
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
3212
|
+
var source = arguments[i];
|
|
3213
|
+
for (var key in source) {
|
|
3214
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
3215
|
+
target[key] = source[key];
|
|
3216
|
+
}
|
|
3217
|
+
}
|
|
3218
|
+
}
|
|
3219
|
+
return target;
|
|
3220
|
+
};
|
|
3221
|
+
return _extends.apply(this, arguments);
|
|
3222
|
+
}
|
|
3223
|
+
|
|
3224
|
+
const SvgProgressGradient = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
3225
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3226
|
+
width: "1em",
|
|
3227
|
+
height: "1em",
|
|
3228
|
+
fill: "none",
|
|
3229
|
+
viewBox: "0 0 24 24"
|
|
3230
|
+
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
3231
|
+
fill: "currentColor",
|
|
3232
|
+
fillRule: "evenodd",
|
|
3233
|
+
d: "M12 1.4a1.1 1.1 0 0 0-1.1 1.1v3.042a1.1 1.1 0 0 0 2.2 0V2.5A1.101 1.101 0 0 0 12 1.4Z",
|
|
3234
|
+
clipRule: "evenodd"
|
|
3235
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
3236
|
+
fill: "currentColor",
|
|
3237
|
+
fillRule: "evenodd",
|
|
3238
|
+
d: "M6.656 8.211a1.097 1.097 0 0 0 1.556 0 1.101 1.101 0 0 0 0-1.556L6.06 4.505A1.101 1.101 0 0 0 4.505 6.06l2.15 2.151h.001Z",
|
|
3239
|
+
clipRule: "evenodd",
|
|
3240
|
+
opacity: 0.16
|
|
3241
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
3242
|
+
fill: "currentColor",
|
|
3243
|
+
fillRule: "evenodd",
|
|
3244
|
+
d: "M6.642 12a1.1 1.1 0 0 0-1.1-1.1H2.5a1.1 1.1 0 0 0 0 2.2h3.042a1.1 1.1 0 0 0 1.1-1.1Z",
|
|
3245
|
+
clipRule: "evenodd",
|
|
3246
|
+
opacity: 0.32
|
|
3247
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
3248
|
+
fill: "currentColor",
|
|
3249
|
+
fillRule: "evenodd",
|
|
3250
|
+
d: "m6.656 15.789-2.151 2.15a1.101 1.101 0 0 0 1.556 1.556l2.15-2.15a1.101 1.101 0 0 0-1.555-1.556ZM12 17.358a1.1 1.1 0 0 0-1.1 1.1V21.5a1.1 1.1 0 0 0 2.2 0v-3.042a1.1 1.1 0 0 0-1.1-1.1Z",
|
|
3251
|
+
clipRule: "evenodd",
|
|
3252
|
+
opacity: 0.56
|
|
3253
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
3254
|
+
fill: "currentColor",
|
|
3255
|
+
fillRule: "evenodd",
|
|
3256
|
+
d: "M17.344 15.789a1.1 1.1 0 0 0-1.556 1.556l2.151 2.15a1.098 1.098 0 0 0 1.878-.778 1.1 1.1 0 0 0-.322-.778l-2.15-2.15h-.001ZM21.5 10.9h-3.042a1.1 1.1 0 0 0 0 2.2H21.5a1.1 1.1 0 0 0 0-2.2ZM16.566 8.534c.281 0 .563-.107.778-.322l2.151-2.151a1.1 1.1 0 0 0-1.556-1.556l-2.15 2.15a1.1 1.1 0 0 0 .777 1.879Z",
|
|
3257
|
+
clipRule: "evenodd",
|
|
3258
|
+
opacity: 0.72
|
|
3259
|
+
}));
|
|
3260
|
+
|
|
3261
|
+
const spin = nt`
|
|
3262
|
+
from {
|
|
3263
|
+
transform: rotate(0);
|
|
3264
|
+
}
|
|
3265
|
+
to {
|
|
3266
|
+
transform: rotate(360deg);
|
|
3267
|
+
}
|
|
3268
|
+
`;
|
|
3269
|
+
const Spinner = Qe(SvgProgressGradient)`
|
|
3270
|
+
animation: ${spin} 1000ms infinite steps(8, end);
|
|
3271
|
+
`;
|
|
3272
|
+
Spinner.defaultProps = {
|
|
3273
|
+
width: 32,
|
|
3274
|
+
height: 32,
|
|
3275
|
+
color: color$1['icon/neutral']
|
|
3276
|
+
};
|
|
3277
|
+
|
|
3194
3278
|
// Support CSS custom properties in the `sx` prop
|
|
3195
3279
|
|
|
3196
3280
|
const sx = props => css$1(props.sx);
|
|
@@ -3213,6 +3297,355 @@ const wordBreak = system({
|
|
|
3213
3297
|
}
|
|
3214
3298
|
});
|
|
3215
3299
|
|
|
3300
|
+
const View = Qe.div`
|
|
3301
|
+
${compose(layout, color, flexbox, background, border, position, shadow)}
|
|
3302
|
+
${sx}
|
|
3303
|
+
`;
|
|
3304
|
+
|
|
3305
|
+
const UnstyledButton = Qe.button`
|
|
3306
|
+
background: none;
|
|
3307
|
+
border: 0;
|
|
3308
|
+
padding: 0;
|
|
3309
|
+
outline: none;
|
|
3310
|
+
cursor: pointer;
|
|
3311
|
+
|
|
3312
|
+
${sx}
|
|
3313
|
+
`;
|
|
3314
|
+
|
|
3315
|
+
const Button = /*#__PURE__*/React$1.forwardRef(({
|
|
3316
|
+
size = 'm',
|
|
3317
|
+
variant = 'primary',
|
|
3318
|
+
fillWidth = false,
|
|
3319
|
+
disabled = false,
|
|
3320
|
+
loading = false,
|
|
3321
|
+
leadingIcon: LeadingIcon,
|
|
3322
|
+
trailingIcon: TrailingIcon,
|
|
3323
|
+
children,
|
|
3324
|
+
...props
|
|
3325
|
+
}, ref) => {
|
|
3326
|
+
return /*#__PURE__*/React.createElement(BaseButton, _extends$2({
|
|
3327
|
+
ref: ref,
|
|
3328
|
+
size: size,
|
|
3329
|
+
disabled: disabled || loading,
|
|
3330
|
+
$disabled: disabled,
|
|
3331
|
+
$loading: loading,
|
|
3332
|
+
variant: variant,
|
|
3333
|
+
leadingIcon: LeadingIcon,
|
|
3334
|
+
trailingIcon: TrailingIcon,
|
|
3335
|
+
fillWidth: fillWidth
|
|
3336
|
+
}, props), /*#__PURE__*/React.createElement(View, {
|
|
3337
|
+
sx: {
|
|
3338
|
+
display: 'flex',
|
|
3339
|
+
flexDirection: 'row',
|
|
3340
|
+
alignItems: 'center',
|
|
3341
|
+
justifyContent: 'center',
|
|
3342
|
+
columnGap: 1,
|
|
3343
|
+
visibility: !loading ? 'initial' : 'hidden'
|
|
3344
|
+
}
|
|
3345
|
+
}, LeadingIcon ? /*#__PURE__*/React.createElement(LeadingIcon, null) : null, children, TrailingIcon ? /*#__PURE__*/React.createElement(TrailingIcon, null) : null), loading ? /*#__PURE__*/React.createElement(View, {
|
|
3346
|
+
sx: {
|
|
3347
|
+
position: 'absolute',
|
|
3348
|
+
top: 0,
|
|
3349
|
+
right: 0,
|
|
3350
|
+
bottom: 0,
|
|
3351
|
+
left: 0,
|
|
3352
|
+
display: 'flex',
|
|
3353
|
+
alignItems: 'center',
|
|
3354
|
+
justifyContent: 'center'
|
|
3355
|
+
}
|
|
3356
|
+
}, /*#__PURE__*/React.createElement(BaseSpinner, {
|
|
3357
|
+
size: size,
|
|
3358
|
+
variant: variant
|
|
3359
|
+
})) : null);
|
|
3360
|
+
});
|
|
3361
|
+
const BaseButton = Qe(UnstyledButton)(({
|
|
3362
|
+
$loading,
|
|
3363
|
+
$disabled,
|
|
3364
|
+
fillWidth
|
|
3365
|
+
}) => ({
|
|
3366
|
+
'position': 'relative',
|
|
3367
|
+
'borderRadius': radii.full,
|
|
3368
|
+
'backgroundColor': 'black',
|
|
3369
|
+
'transition': 'background-color 100ms, color 100ms',
|
|
3370
|
+
'cursor': $loading ? 'progress' : $disabled ? 'not-allowed' : 'pointer',
|
|
3371
|
+
'width': fillWidth ? '100%' : 'initial',
|
|
3372
|
+
'& svg': {
|
|
3373
|
+
transition: 'color 100ms'
|
|
3374
|
+
}
|
|
3375
|
+
}), ({
|
|
3376
|
+
leadingIcon,
|
|
3377
|
+
trailingIcon
|
|
3378
|
+
}) => variant({
|
|
3379
|
+
prop: 'size',
|
|
3380
|
+
variants: {
|
|
3381
|
+
l: {
|
|
3382
|
+
'pl': leadingIcon && !trailingIcon ? 3 : 4,
|
|
3383
|
+
'pr': !leadingIcon && trailingIcon ? 3 : 4,
|
|
3384
|
+
'py': 3,
|
|
3385
|
+
'height': 'initial',
|
|
3386
|
+
'maxHeight': 'initial',
|
|
3387
|
+
'fontSize': typography$1['s'].fontSize,
|
|
3388
|
+
'fontWeight': typography$1['s'].fontWeight,
|
|
3389
|
+
'lineHeight': typography$1['s'].lineHeight,
|
|
3390
|
+
'& svg': {
|
|
3391
|
+
width: 20,
|
|
3392
|
+
height: 20
|
|
3393
|
+
}
|
|
3394
|
+
},
|
|
3395
|
+
m: {
|
|
3396
|
+
'pl': leadingIcon && !trailingIcon ? 3 : 4,
|
|
3397
|
+
'pr': !leadingIcon && trailingIcon ? 3 : 4,
|
|
3398
|
+
'py': 2,
|
|
3399
|
+
'height': 'initial',
|
|
3400
|
+
'maxHeight': 'initial',
|
|
3401
|
+
'fontSize': typography$1['xs'].fontSize,
|
|
3402
|
+
'fontWeight': typography$1['xs'].fontWeight,
|
|
3403
|
+
'lineHeight': typography$1['xs'].lineHeight,
|
|
3404
|
+
'& svg': {
|
|
3405
|
+
width: 16,
|
|
3406
|
+
height: 16
|
|
3407
|
+
}
|
|
3408
|
+
},
|
|
3409
|
+
s: {
|
|
3410
|
+
'pl': leadingIcon && !trailingIcon ? 2 : 3,
|
|
3411
|
+
'pr': !leadingIcon && trailingIcon ? 2 : 3,
|
|
3412
|
+
'py': 0,
|
|
3413
|
+
'height': 32,
|
|
3414
|
+
'maxHeight': 32,
|
|
3415
|
+
'fontSize': typography$1['xxs'].fontSize,
|
|
3416
|
+
'fontWeight': typography$1['xxs'].fontWeight,
|
|
3417
|
+
'lineHeight': typography$1['xxs'].lineHeight,
|
|
3418
|
+
'& svg': {
|
|
3419
|
+
width: 12,
|
|
3420
|
+
height: 12
|
|
3421
|
+
}
|
|
3422
|
+
}
|
|
3423
|
+
}
|
|
3424
|
+
}), ({
|
|
3425
|
+
$disabled
|
|
3426
|
+
}) => variant({
|
|
3427
|
+
prop: 'variant',
|
|
3428
|
+
variants: {
|
|
3429
|
+
primary: {
|
|
3430
|
+
'backgroundColor': color$1['bg/primary'],
|
|
3431
|
+
'color': color$1['text/inverse'],
|
|
3432
|
+
'& svg': {
|
|
3433
|
+
color: color$1['icon/inverse']
|
|
3434
|
+
},
|
|
3435
|
+
':hover:not(:disabled)': {
|
|
3436
|
+
backgroundColor: color$1['bg/primary/hovered']
|
|
3437
|
+
},
|
|
3438
|
+
':active:not(:disabled)': {
|
|
3439
|
+
backgroundColor: color$1['bg/primary/pressed']
|
|
3440
|
+
},
|
|
3441
|
+
':focus-visible': {
|
|
3442
|
+
outlineColor: color$1['border/focused'],
|
|
3443
|
+
outlineStyle: 'solid',
|
|
3444
|
+
outlineWidth: 2,
|
|
3445
|
+
outlineOffset: 2
|
|
3446
|
+
},
|
|
3447
|
+
...($disabled ? {
|
|
3448
|
+
'backgroundColor': color$1['bg/disabled'],
|
|
3449
|
+
'color': color$1['text/disabled'],
|
|
3450
|
+
'& svg': {
|
|
3451
|
+
color: color$1['icon/disabled']
|
|
3452
|
+
}
|
|
3453
|
+
} : {})
|
|
3454
|
+
},
|
|
3455
|
+
secondary: {
|
|
3456
|
+
'backgroundColor': color$1['bg/secondary'],
|
|
3457
|
+
'color': color$1['text/primary'],
|
|
3458
|
+
'& svg': {
|
|
3459
|
+
color: color$1['icon/primary']
|
|
3460
|
+
},
|
|
3461
|
+
':hover:not(:disabled)': {
|
|
3462
|
+
backgroundColor: color$1['bg/secondary/hovered']
|
|
3463
|
+
},
|
|
3464
|
+
':active:not(:disabled)': {
|
|
3465
|
+
backgroundColor: color$1['bg/secondary/pressed']
|
|
3466
|
+
},
|
|
3467
|
+
':focus-visible': {
|
|
3468
|
+
outlineColor: color$1['border/focused'],
|
|
3469
|
+
outlineStyle: 'solid',
|
|
3470
|
+
outlineWidth: 2,
|
|
3471
|
+
outlineOffset: 2
|
|
3472
|
+
},
|
|
3473
|
+
...($disabled ? {
|
|
3474
|
+
'backgroundColor': color$1['bg/disabled'],
|
|
3475
|
+
'color': color$1['text/disabled'],
|
|
3476
|
+
'& svg': {
|
|
3477
|
+
color: color$1['icon/disabled']
|
|
3478
|
+
}
|
|
3479
|
+
} : {})
|
|
3480
|
+
},
|
|
3481
|
+
tertiary: {
|
|
3482
|
+
'backgroundColor': color$1['bg/neutral'],
|
|
3483
|
+
'color': color$1['text/neutral'],
|
|
3484
|
+
'& svg': {
|
|
3485
|
+
color: color$1['icon/accent/gray']
|
|
3486
|
+
},
|
|
3487
|
+
':hover:not(:disabled)': {
|
|
3488
|
+
backgroundColor: color$1['bg/neutral/hovered']
|
|
3489
|
+
},
|
|
3490
|
+
':active:not(:disabled)': {
|
|
3491
|
+
backgroundColor: color$1['bg/neutral/pressed']
|
|
3492
|
+
},
|
|
3493
|
+
':focus-visible': {
|
|
3494
|
+
outlineColor: color$1['border/focused'],
|
|
3495
|
+
outlineStyle: 'solid',
|
|
3496
|
+
outlineWidth: 2,
|
|
3497
|
+
outlineOffset: 2
|
|
3498
|
+
},
|
|
3499
|
+
...($disabled ? {
|
|
3500
|
+
'backgroundColor': color$1['bg/disabled'],
|
|
3501
|
+
'color': color$1['text/disabled'],
|
|
3502
|
+
'& svg': {
|
|
3503
|
+
color: color$1['icon/disabled']
|
|
3504
|
+
}
|
|
3505
|
+
} : {})
|
|
3506
|
+
},
|
|
3507
|
+
outlined: {
|
|
3508
|
+
'backgroundColor': color$1['bg/neutral/subtler'],
|
|
3509
|
+
'color': color$1['text/neutral/subtle'],
|
|
3510
|
+
'& svg': {
|
|
3511
|
+
color: color$1['icon/neutral/bolder']
|
|
3512
|
+
},
|
|
3513
|
+
':after': {
|
|
3514
|
+
content: '""',
|
|
3515
|
+
position: 'absolute',
|
|
3516
|
+
top: 0,
|
|
3517
|
+
right: 0,
|
|
3518
|
+
bottom: 0,
|
|
3519
|
+
left: 0,
|
|
3520
|
+
borderWidth: 1,
|
|
3521
|
+
borderStyle: 'solid',
|
|
3522
|
+
borderColor: color$1['border/neutral/bolder'],
|
|
3523
|
+
borderRadius: radii.full,
|
|
3524
|
+
boxSizing: 'border-box'
|
|
3525
|
+
},
|
|
3526
|
+
':hover:not(:disabled)': {
|
|
3527
|
+
backgroundColor: color$1['bg/neutral/subtler/hovered']
|
|
3528
|
+
},
|
|
3529
|
+
':active:not(:disabled)': {
|
|
3530
|
+
backgroundColor: color$1['bg/neutral/subtler/pressed']
|
|
3531
|
+
},
|
|
3532
|
+
':focus-visible': {
|
|
3533
|
+
outlineColor: color$1['border/focused'],
|
|
3534
|
+
outlineStyle: 'solid',
|
|
3535
|
+
outlineWidth: 2,
|
|
3536
|
+
outlineOffset: 2
|
|
3537
|
+
},
|
|
3538
|
+
...($disabled ? {
|
|
3539
|
+
'backgroundColor': color$1['bg/disabled'],
|
|
3540
|
+
'color': color$1['text/disabled'],
|
|
3541
|
+
'& svg': {
|
|
3542
|
+
color: color$1['icon/disabled']
|
|
3543
|
+
},
|
|
3544
|
+
':after': {
|
|
3545
|
+
display: 'none'
|
|
3546
|
+
}
|
|
3547
|
+
} : {})
|
|
3548
|
+
},
|
|
3549
|
+
plain: {
|
|
3550
|
+
'backgroundColor': color$1['bg/neutral/subtler'],
|
|
3551
|
+
'color': color$1['text/neutral/subtle'],
|
|
3552
|
+
'& svg': {
|
|
3553
|
+
color: color$1['icon/neutral/bolder']
|
|
3554
|
+
},
|
|
3555
|
+
':hover:not(:disabled)': {
|
|
3556
|
+
'color': color$1['text/neutral'],
|
|
3557
|
+
'& svg': {
|
|
3558
|
+
color: color$1['icon/accent/gray']
|
|
3559
|
+
}
|
|
3560
|
+
},
|
|
3561
|
+
':active:not(:disabled)': {
|
|
3562
|
+
'color': color$1['text/neutral'],
|
|
3563
|
+
'& svg': {
|
|
3564
|
+
color: color$1['icon/accent/gray']
|
|
3565
|
+
}
|
|
3566
|
+
},
|
|
3567
|
+
':focus-visible': {
|
|
3568
|
+
outlineColor: color$1['border/focused'],
|
|
3569
|
+
outlineStyle: 'solid',
|
|
3570
|
+
outlineWidth: 2,
|
|
3571
|
+
outlineOffset: 2
|
|
3572
|
+
},
|
|
3573
|
+
...($disabled ? {
|
|
3574
|
+
'backgroundColor': color$1['bg/disabled'],
|
|
3575
|
+
'color': color$1['text/disabled'],
|
|
3576
|
+
'& svg': {
|
|
3577
|
+
color: color$1['icon/disabled']
|
|
3578
|
+
}
|
|
3579
|
+
} : {})
|
|
3580
|
+
},
|
|
3581
|
+
danger: {
|
|
3582
|
+
'backgroundColor': color$1['bg/danger/bold'],
|
|
3583
|
+
'color': color$1['text/inverse'],
|
|
3584
|
+
'& svg': {
|
|
3585
|
+
color: color$1['icon/inverse']
|
|
3586
|
+
},
|
|
3587
|
+
':hover:not(:disabled)': {
|
|
3588
|
+
backgroundColor: color$1['bg/danger/bold/hovered']
|
|
3589
|
+
},
|
|
3590
|
+
':active:not(:disabled)': {
|
|
3591
|
+
backgroundColor: color$1['bg/danger/bold/pressed']
|
|
3592
|
+
},
|
|
3593
|
+
':focus-visible': {
|
|
3594
|
+
outlineColor: color$1['border/focused'],
|
|
3595
|
+
outlineStyle: 'solid',
|
|
3596
|
+
outlineWidth: 2,
|
|
3597
|
+
outlineOffset: 2
|
|
3598
|
+
},
|
|
3599
|
+
...($disabled ? {
|
|
3600
|
+
'backgroundColor': color$1['bg/disabled'],
|
|
3601
|
+
'color': color$1['text/disabled'],
|
|
3602
|
+
'& svg': {
|
|
3603
|
+
color: color$1['icon/disabled']
|
|
3604
|
+
}
|
|
3605
|
+
} : {})
|
|
3606
|
+
}
|
|
3607
|
+
}
|
|
3608
|
+
}));
|
|
3609
|
+
const BaseSpinner = Qe(Spinner)(variant({
|
|
3610
|
+
prop: 'size',
|
|
3611
|
+
variants: {
|
|
3612
|
+
l: {
|
|
3613
|
+
width: 20,
|
|
3614
|
+
height: 20
|
|
3615
|
+
},
|
|
3616
|
+
m: {
|
|
3617
|
+
width: 16,
|
|
3618
|
+
height: 16
|
|
3619
|
+
},
|
|
3620
|
+
s: {
|
|
3621
|
+
width: 16,
|
|
3622
|
+
height: 16
|
|
3623
|
+
}
|
|
3624
|
+
}
|
|
3625
|
+
}), variant({
|
|
3626
|
+
prop: 'variant',
|
|
3627
|
+
variants: {
|
|
3628
|
+
primary: {
|
|
3629
|
+
color: color$1['icon/inverse']
|
|
3630
|
+
},
|
|
3631
|
+
secondary: {
|
|
3632
|
+
color: color$1['icon/primary']
|
|
3633
|
+
},
|
|
3634
|
+
tertiary: {
|
|
3635
|
+
color: color$1['icon/accent/gray']
|
|
3636
|
+
},
|
|
3637
|
+
outlined: {
|
|
3638
|
+
color: color$1['icon/neutral/bolder']
|
|
3639
|
+
},
|
|
3640
|
+
plain: {
|
|
3641
|
+
color: color$1['icon/neutral/bolder']
|
|
3642
|
+
},
|
|
3643
|
+
danger: {
|
|
3644
|
+
color: color$1['icon/inverse']
|
|
3645
|
+
}
|
|
3646
|
+
}
|
|
3647
|
+
}));
|
|
3648
|
+
|
|
3216
3649
|
const Chip = ({
|
|
3217
3650
|
children,
|
|
3218
3651
|
size = 'm',
|
|
@@ -3432,21 +3865,6 @@ const GradientText = Qe(Text)`
|
|
|
3432
3865
|
-webkit-text-fill-color: transparent;
|
|
3433
3866
|
`;
|
|
3434
3867
|
|
|
3435
|
-
function _extends$1() {
|
|
3436
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
3437
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
3438
|
-
var source = arguments[i];
|
|
3439
|
-
for (var key in source) {
|
|
3440
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
3441
|
-
target[key] = source[key];
|
|
3442
|
-
}
|
|
3443
|
-
}
|
|
3444
|
-
}
|
|
3445
|
-
return target;
|
|
3446
|
-
};
|
|
3447
|
-
return _extends$1.apply(this, arguments);
|
|
3448
|
-
}
|
|
3449
|
-
|
|
3450
3868
|
/**
|
|
3451
3869
|
* CSS에서 사용할 수 있는 픽셀값으로 강제합니다.
|
|
3452
3870
|
*/
|
|
@@ -3458,11 +3876,6 @@ const isArray = value => Array.isArray(value);
|
|
|
3458
3876
|
|
|
3459
3877
|
const isNullable = value => value === null || value === undefined;
|
|
3460
3878
|
|
|
3461
|
-
const View = Qe.div`
|
|
3462
|
-
${compose(layout, color, flexbox, background, border, position, shadow)}
|
|
3463
|
-
${sx}
|
|
3464
|
-
`;
|
|
3465
|
-
|
|
3466
3879
|
const Grid = /*#__PURE__*/React$1.forwardRef(({
|
|
3467
3880
|
children,
|
|
3468
3881
|
wrap: propWrap = true,
|
|
@@ -3472,7 +3885,7 @@ const Grid = /*#__PURE__*/React$1.forwardRef(({
|
|
|
3472
3885
|
...props
|
|
3473
3886
|
}, ref) => {
|
|
3474
3887
|
const wrap = Array.isArray(propWrap) ? propWrap.map(value => value === true ? 'true' : 'false') : propWrap === true ? 'true' : 'false';
|
|
3475
|
-
return /*#__PURE__*/React.createElement(BaseGrid, _extends$
|
|
3888
|
+
return /*#__PURE__*/React.createElement(BaseGrid, _extends$2({
|
|
3476
3889
|
ref: ref,
|
|
3477
3890
|
gapX: gapX,
|
|
3478
3891
|
gapY: gapY,
|
|
@@ -3542,7 +3955,7 @@ const Unit = ({
|
|
|
3542
3955
|
const percentage = Math.round(size * 100 * 10000) / 10000;
|
|
3543
3956
|
return size === 'max' ? '100%' : size === 'min' ? 'none' : `${percentage}%`;
|
|
3544
3957
|
};
|
|
3545
|
-
return /*#__PURE__*/React.createElement(View, _extends$
|
|
3958
|
+
return /*#__PURE__*/React.createElement(View, _extends$2({}, mapValueToResponsiveValueProps(size, value => ({
|
|
3546
3959
|
display: value === 0 ? 'none' : 'initial',
|
|
3547
3960
|
flowGrow: getFlexGrowBySize(value),
|
|
3548
3961
|
flex: getFlexBySize(value),
|
|
@@ -3557,85 +3970,6 @@ var index$1 = Object.assign(Grid, {
|
|
|
3557
3970
|
Unit
|
|
3558
3971
|
});
|
|
3559
3972
|
|
|
3560
|
-
function _extends() {
|
|
3561
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
3562
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
3563
|
-
var source = arguments[i];
|
|
3564
|
-
for (var key in source) {
|
|
3565
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
3566
|
-
target[key] = source[key];
|
|
3567
|
-
}
|
|
3568
|
-
}
|
|
3569
|
-
}
|
|
3570
|
-
return target;
|
|
3571
|
-
};
|
|
3572
|
-
return _extends.apply(this, arguments);
|
|
3573
|
-
}
|
|
3574
|
-
|
|
3575
|
-
const SvgProgressGradient = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
3576
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3577
|
-
width: "1em",
|
|
3578
|
-
height: "1em",
|
|
3579
|
-
fill: "none",
|
|
3580
|
-
viewBox: "0 0 24 24"
|
|
3581
|
-
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
3582
|
-
fill: "currentColor",
|
|
3583
|
-
fillRule: "evenodd",
|
|
3584
|
-
d: "M12 1.4a1.1 1.1 0 0 0-1.1 1.1v3.042a1.1 1.1 0 0 0 2.2 0V2.5A1.101 1.101 0 0 0 12 1.4Z",
|
|
3585
|
-
clipRule: "evenodd"
|
|
3586
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
3587
|
-
fill: "currentColor",
|
|
3588
|
-
fillRule: "evenodd",
|
|
3589
|
-
d: "M6.656 8.211a1.097 1.097 0 0 0 1.556 0 1.101 1.101 0 0 0 0-1.556L6.06 4.505A1.101 1.101 0 0 0 4.505 6.06l2.15 2.151h.001Z",
|
|
3590
|
-
clipRule: "evenodd",
|
|
3591
|
-
opacity: 0.16
|
|
3592
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
3593
|
-
fill: "currentColor",
|
|
3594
|
-
fillRule: "evenodd",
|
|
3595
|
-
d: "M6.642 12a1.1 1.1 0 0 0-1.1-1.1H2.5a1.1 1.1 0 0 0 0 2.2h3.042a1.1 1.1 0 0 0 1.1-1.1Z",
|
|
3596
|
-
clipRule: "evenodd",
|
|
3597
|
-
opacity: 0.32
|
|
3598
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
3599
|
-
fill: "currentColor",
|
|
3600
|
-
fillRule: "evenodd",
|
|
3601
|
-
d: "m6.656 15.789-2.151 2.15a1.101 1.101 0 0 0 1.556 1.556l2.15-2.15a1.101 1.101 0 0 0-1.555-1.556ZM12 17.358a1.1 1.1 0 0 0-1.1 1.1V21.5a1.1 1.1 0 0 0 2.2 0v-3.042a1.1 1.1 0 0 0-1.1-1.1Z",
|
|
3602
|
-
clipRule: "evenodd",
|
|
3603
|
-
opacity: 0.56
|
|
3604
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
3605
|
-
fill: "currentColor",
|
|
3606
|
-
fillRule: "evenodd",
|
|
3607
|
-
d: "M17.344 15.789a1.1 1.1 0 0 0-1.556 1.556l2.151 2.15a1.098 1.098 0 0 0 1.878-.778 1.1 1.1 0 0 0-.322-.778l-2.15-2.15h-.001ZM21.5 10.9h-3.042a1.1 1.1 0 0 0 0 2.2H21.5a1.1 1.1 0 0 0 0-2.2ZM16.566 8.534c.281 0 .563-.107.778-.322l2.151-2.151a1.1 1.1 0 0 0-1.556-1.556l-2.15 2.15a1.1 1.1 0 0 0 .777 1.879Z",
|
|
3608
|
-
clipRule: "evenodd",
|
|
3609
|
-
opacity: 0.72
|
|
3610
|
-
}));
|
|
3611
|
-
|
|
3612
|
-
const spin = nt`
|
|
3613
|
-
from {
|
|
3614
|
-
transform: rotate(0);
|
|
3615
|
-
}
|
|
3616
|
-
to {
|
|
3617
|
-
transform: rotate(360deg);
|
|
3618
|
-
}
|
|
3619
|
-
`;
|
|
3620
|
-
const Spinner = Qe(SvgProgressGradient)`
|
|
3621
|
-
animation: ${spin} 1000ms infinite steps(8, end);
|
|
3622
|
-
`;
|
|
3623
|
-
Spinner.defaultProps = {
|
|
3624
|
-
width: 32,
|
|
3625
|
-
height: 32,
|
|
3626
|
-
color: color$1['icon/neutral']
|
|
3627
|
-
};
|
|
3628
|
-
|
|
3629
|
-
const UnstyledButton = Qe.button`
|
|
3630
|
-
background: none;
|
|
3631
|
-
border: 0;
|
|
3632
|
-
padding: 0;
|
|
3633
|
-
outline: none;
|
|
3634
|
-
cursor: pointer;
|
|
3635
|
-
|
|
3636
|
-
${sx}
|
|
3637
|
-
`;
|
|
3638
|
-
|
|
3639
3973
|
const IconButton = /*#__PURE__*/React$1.forwardRef(({
|
|
3640
3974
|
icon: Icon,
|
|
3641
3975
|
size = 'm',
|
|
@@ -3645,7 +3979,7 @@ const IconButton = /*#__PURE__*/React$1.forwardRef(({
|
|
|
3645
3979
|
type = 'button',
|
|
3646
3980
|
...props
|
|
3647
3981
|
}, ref) => {
|
|
3648
|
-
return /*#__PURE__*/React.createElement(BaseIconButton, _extends$
|
|
3982
|
+
return /*#__PURE__*/React.createElement(BaseIconButton, _extends$2({
|
|
3649
3983
|
ref: ref,
|
|
3650
3984
|
type: type,
|
|
3651
3985
|
icon: Icon,
|
|
@@ -3846,7 +4180,7 @@ const IconToggleButton = ({
|
|
|
3846
4180
|
sx,
|
|
3847
4181
|
...props
|
|
3848
4182
|
}) => {
|
|
3849
|
-
return /*#__PURE__*/React.createElement(BaseIconToggleButton, _extends$
|
|
4183
|
+
return /*#__PURE__*/React.createElement(BaseIconToggleButton, _extends$2({
|
|
3850
4184
|
icon: Icon,
|
|
3851
4185
|
size: size,
|
|
3852
4186
|
variant: variant,
|
|
@@ -3954,7 +4288,7 @@ const Stack = /*#__PURE__*/React$1.forwardRef(({
|
|
|
3954
4288
|
children,
|
|
3955
4289
|
alignItems = 'center',
|
|
3956
4290
|
...props
|
|
3957
|
-
}, ref) => /*#__PURE__*/React.createElement(BaseStack, _extends$
|
|
4291
|
+
}, ref) => /*#__PURE__*/React.createElement(BaseStack, _extends$2({
|
|
3958
4292
|
ref: ref,
|
|
3959
4293
|
alignItems: alignItems,
|
|
3960
4294
|
gapX: gapX,
|
|
@@ -3999,7 +4333,7 @@ const StyledIcon = ({
|
|
|
3999
4333
|
icon: Icon,
|
|
4000
4334
|
sx,
|
|
4001
4335
|
...props
|
|
4002
|
-
}) => /*#__PURE__*/React.createElement(View, _extends$
|
|
4336
|
+
}) => /*#__PURE__*/React.createElement(View, _extends$2({}, props, {
|
|
4003
4337
|
color: props.color,
|
|
4004
4338
|
sx: {
|
|
4005
4339
|
'& svg': {
|
|
@@ -4011,6 +4345,7 @@ const StyledIcon = ({
|
|
|
4011
4345
|
}
|
|
4012
4346
|
}), /*#__PURE__*/React.createElement(Icon, null));
|
|
4013
4347
|
|
|
4348
|
+
exports.Button = Button;
|
|
4014
4349
|
exports.Chip = Chip;
|
|
4015
4350
|
exports.GradientText = GradientText;
|
|
4016
4351
|
exports.Grid = index$1;
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { extends as _extends } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import color from '../../../../token-studio/esm/token/color/index.js';
|
|
3
|
+
import radii from '../../../../token-studio/esm/token/radii/index.js';
|
|
4
|
+
import typography from '../../../../token-studio/esm/token/typography/index.js';
|
|
5
|
+
import { forwardRef } from 'react';
|
|
6
|
+
import Qe from '../../../../../node_modules/styled-components/dist/styled-components.esm.js';
|
|
7
|
+
import '../../../../../node_modules/styled-system/dist/index.esm.js';
|
|
8
|
+
import Spinner from '../Spinner/index.js';
|
|
9
|
+
import View from '../View/index.js';
|
|
10
|
+
import UnstyledButton from '../_UnstyledButton.js';
|
|
11
|
+
import { variant } from '../../../../../node_modules/@styled-system/variant/dist/index.esm.js';
|
|
12
|
+
|
|
13
|
+
const Button = /*#__PURE__*/forwardRef(({
|
|
14
|
+
size = 'm',
|
|
15
|
+
variant = 'primary',
|
|
16
|
+
fillWidth = false,
|
|
17
|
+
disabled = false,
|
|
18
|
+
loading = false,
|
|
19
|
+
leadingIcon: LeadingIcon,
|
|
20
|
+
trailingIcon: TrailingIcon,
|
|
21
|
+
children,
|
|
22
|
+
...props
|
|
23
|
+
}, ref) => {
|
|
24
|
+
return /*#__PURE__*/React.createElement(BaseButton, _extends({
|
|
25
|
+
ref: ref,
|
|
26
|
+
size: size,
|
|
27
|
+
disabled: disabled || loading,
|
|
28
|
+
$disabled: disabled,
|
|
29
|
+
$loading: loading,
|
|
30
|
+
variant: variant,
|
|
31
|
+
leadingIcon: LeadingIcon,
|
|
32
|
+
trailingIcon: TrailingIcon,
|
|
33
|
+
fillWidth: fillWidth
|
|
34
|
+
}, props), /*#__PURE__*/React.createElement(View, {
|
|
35
|
+
sx: {
|
|
36
|
+
display: 'flex',
|
|
37
|
+
flexDirection: 'row',
|
|
38
|
+
alignItems: 'center',
|
|
39
|
+
justifyContent: 'center',
|
|
40
|
+
columnGap: 1,
|
|
41
|
+
visibility: !loading ? 'initial' : 'hidden'
|
|
42
|
+
}
|
|
43
|
+
}, LeadingIcon ? /*#__PURE__*/React.createElement(LeadingIcon, null) : null, children, TrailingIcon ? /*#__PURE__*/React.createElement(TrailingIcon, null) : null), loading ? /*#__PURE__*/React.createElement(View, {
|
|
44
|
+
sx: {
|
|
45
|
+
position: 'absolute',
|
|
46
|
+
top: 0,
|
|
47
|
+
right: 0,
|
|
48
|
+
bottom: 0,
|
|
49
|
+
left: 0,
|
|
50
|
+
display: 'flex',
|
|
51
|
+
alignItems: 'center',
|
|
52
|
+
justifyContent: 'center'
|
|
53
|
+
}
|
|
54
|
+
}, /*#__PURE__*/React.createElement(BaseSpinner, {
|
|
55
|
+
size: size,
|
|
56
|
+
variant: variant
|
|
57
|
+
})) : null);
|
|
58
|
+
});
|
|
59
|
+
const BaseButton = Qe(UnstyledButton)(({
|
|
60
|
+
$loading,
|
|
61
|
+
$disabled,
|
|
62
|
+
fillWidth
|
|
63
|
+
}) => ({
|
|
64
|
+
'position': 'relative',
|
|
65
|
+
'borderRadius': radii.full,
|
|
66
|
+
'backgroundColor': 'black',
|
|
67
|
+
'transition': 'background-color 100ms, color 100ms',
|
|
68
|
+
'cursor': $loading ? 'progress' : $disabled ? 'not-allowed' : 'pointer',
|
|
69
|
+
'width': fillWidth ? '100%' : 'initial',
|
|
70
|
+
'& svg': {
|
|
71
|
+
transition: 'color 100ms'
|
|
72
|
+
}
|
|
73
|
+
}), ({
|
|
74
|
+
leadingIcon,
|
|
75
|
+
trailingIcon
|
|
76
|
+
}) => variant({
|
|
77
|
+
prop: 'size',
|
|
78
|
+
variants: {
|
|
79
|
+
l: {
|
|
80
|
+
'pl': leadingIcon && !trailingIcon ? 3 : 4,
|
|
81
|
+
'pr': !leadingIcon && trailingIcon ? 3 : 4,
|
|
82
|
+
'py': 3,
|
|
83
|
+
'height': 'initial',
|
|
84
|
+
'maxHeight': 'initial',
|
|
85
|
+
'fontSize': typography['s'].fontSize,
|
|
86
|
+
'fontWeight': typography['s'].fontWeight,
|
|
87
|
+
'lineHeight': typography['s'].lineHeight,
|
|
88
|
+
'& svg': {
|
|
89
|
+
width: 20,
|
|
90
|
+
height: 20
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
m: {
|
|
94
|
+
'pl': leadingIcon && !trailingIcon ? 3 : 4,
|
|
95
|
+
'pr': !leadingIcon && trailingIcon ? 3 : 4,
|
|
96
|
+
'py': 2,
|
|
97
|
+
'height': 'initial',
|
|
98
|
+
'maxHeight': 'initial',
|
|
99
|
+
'fontSize': typography['xs'].fontSize,
|
|
100
|
+
'fontWeight': typography['xs'].fontWeight,
|
|
101
|
+
'lineHeight': typography['xs'].lineHeight,
|
|
102
|
+
'& svg': {
|
|
103
|
+
width: 16,
|
|
104
|
+
height: 16
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
s: {
|
|
108
|
+
'pl': leadingIcon && !trailingIcon ? 2 : 3,
|
|
109
|
+
'pr': !leadingIcon && trailingIcon ? 2 : 3,
|
|
110
|
+
'py': 0,
|
|
111
|
+
'height': 32,
|
|
112
|
+
'maxHeight': 32,
|
|
113
|
+
'fontSize': typography['xxs'].fontSize,
|
|
114
|
+
'fontWeight': typography['xxs'].fontWeight,
|
|
115
|
+
'lineHeight': typography['xxs'].lineHeight,
|
|
116
|
+
'& svg': {
|
|
117
|
+
width: 12,
|
|
118
|
+
height: 12
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}), ({
|
|
123
|
+
$disabled
|
|
124
|
+
}) => variant({
|
|
125
|
+
prop: 'variant',
|
|
126
|
+
variants: {
|
|
127
|
+
primary: {
|
|
128
|
+
'backgroundColor': color['bg/primary'],
|
|
129
|
+
'color': color['text/inverse'],
|
|
130
|
+
'& svg': {
|
|
131
|
+
color: color['icon/inverse']
|
|
132
|
+
},
|
|
133
|
+
':hover:not(:disabled)': {
|
|
134
|
+
backgroundColor: color['bg/primary/hovered']
|
|
135
|
+
},
|
|
136
|
+
':active:not(:disabled)': {
|
|
137
|
+
backgroundColor: color['bg/primary/pressed']
|
|
138
|
+
},
|
|
139
|
+
':focus-visible': {
|
|
140
|
+
outlineColor: color['border/focused'],
|
|
141
|
+
outlineStyle: 'solid',
|
|
142
|
+
outlineWidth: 2,
|
|
143
|
+
outlineOffset: 2
|
|
144
|
+
},
|
|
145
|
+
...($disabled ? {
|
|
146
|
+
'backgroundColor': color['bg/disabled'],
|
|
147
|
+
'color': color['text/disabled'],
|
|
148
|
+
'& svg': {
|
|
149
|
+
color: color['icon/disabled']
|
|
150
|
+
}
|
|
151
|
+
} : {})
|
|
152
|
+
},
|
|
153
|
+
secondary: {
|
|
154
|
+
'backgroundColor': color['bg/secondary'],
|
|
155
|
+
'color': color['text/primary'],
|
|
156
|
+
'& svg': {
|
|
157
|
+
color: color['icon/primary']
|
|
158
|
+
},
|
|
159
|
+
':hover:not(:disabled)': {
|
|
160
|
+
backgroundColor: color['bg/secondary/hovered']
|
|
161
|
+
},
|
|
162
|
+
':active:not(:disabled)': {
|
|
163
|
+
backgroundColor: color['bg/secondary/pressed']
|
|
164
|
+
},
|
|
165
|
+
':focus-visible': {
|
|
166
|
+
outlineColor: color['border/focused'],
|
|
167
|
+
outlineStyle: 'solid',
|
|
168
|
+
outlineWidth: 2,
|
|
169
|
+
outlineOffset: 2
|
|
170
|
+
},
|
|
171
|
+
...($disabled ? {
|
|
172
|
+
'backgroundColor': color['bg/disabled'],
|
|
173
|
+
'color': color['text/disabled'],
|
|
174
|
+
'& svg': {
|
|
175
|
+
color: color['icon/disabled']
|
|
176
|
+
}
|
|
177
|
+
} : {})
|
|
178
|
+
},
|
|
179
|
+
tertiary: {
|
|
180
|
+
'backgroundColor': color['bg/neutral'],
|
|
181
|
+
'color': color['text/neutral'],
|
|
182
|
+
'& svg': {
|
|
183
|
+
color: color['icon/accent/gray']
|
|
184
|
+
},
|
|
185
|
+
':hover:not(:disabled)': {
|
|
186
|
+
backgroundColor: color['bg/neutral/hovered']
|
|
187
|
+
},
|
|
188
|
+
':active:not(:disabled)': {
|
|
189
|
+
backgroundColor: color['bg/neutral/pressed']
|
|
190
|
+
},
|
|
191
|
+
':focus-visible': {
|
|
192
|
+
outlineColor: color['border/focused'],
|
|
193
|
+
outlineStyle: 'solid',
|
|
194
|
+
outlineWidth: 2,
|
|
195
|
+
outlineOffset: 2
|
|
196
|
+
},
|
|
197
|
+
...($disabled ? {
|
|
198
|
+
'backgroundColor': color['bg/disabled'],
|
|
199
|
+
'color': color['text/disabled'],
|
|
200
|
+
'& svg': {
|
|
201
|
+
color: color['icon/disabled']
|
|
202
|
+
}
|
|
203
|
+
} : {})
|
|
204
|
+
},
|
|
205
|
+
outlined: {
|
|
206
|
+
'backgroundColor': color['bg/neutral/subtler'],
|
|
207
|
+
'color': color['text/neutral/subtle'],
|
|
208
|
+
'& svg': {
|
|
209
|
+
color: color['icon/neutral/bolder']
|
|
210
|
+
},
|
|
211
|
+
':after': {
|
|
212
|
+
content: '""',
|
|
213
|
+
position: 'absolute',
|
|
214
|
+
top: 0,
|
|
215
|
+
right: 0,
|
|
216
|
+
bottom: 0,
|
|
217
|
+
left: 0,
|
|
218
|
+
borderWidth: 1,
|
|
219
|
+
borderStyle: 'solid',
|
|
220
|
+
borderColor: color['border/neutral/bolder'],
|
|
221
|
+
borderRadius: radii.full,
|
|
222
|
+
boxSizing: 'border-box'
|
|
223
|
+
},
|
|
224
|
+
':hover:not(:disabled)': {
|
|
225
|
+
backgroundColor: color['bg/neutral/subtler/hovered']
|
|
226
|
+
},
|
|
227
|
+
':active:not(:disabled)': {
|
|
228
|
+
backgroundColor: color['bg/neutral/subtler/pressed']
|
|
229
|
+
},
|
|
230
|
+
':focus-visible': {
|
|
231
|
+
outlineColor: color['border/focused'],
|
|
232
|
+
outlineStyle: 'solid',
|
|
233
|
+
outlineWidth: 2,
|
|
234
|
+
outlineOffset: 2
|
|
235
|
+
},
|
|
236
|
+
...($disabled ? {
|
|
237
|
+
'backgroundColor': color['bg/disabled'],
|
|
238
|
+
'color': color['text/disabled'],
|
|
239
|
+
'& svg': {
|
|
240
|
+
color: color['icon/disabled']
|
|
241
|
+
},
|
|
242
|
+
':after': {
|
|
243
|
+
display: 'none'
|
|
244
|
+
}
|
|
245
|
+
} : {})
|
|
246
|
+
},
|
|
247
|
+
plain: {
|
|
248
|
+
'backgroundColor': color['bg/neutral/subtler'],
|
|
249
|
+
'color': color['text/neutral/subtle'],
|
|
250
|
+
'& svg': {
|
|
251
|
+
color: color['icon/neutral/bolder']
|
|
252
|
+
},
|
|
253
|
+
':hover:not(:disabled)': {
|
|
254
|
+
'color': color['text/neutral'],
|
|
255
|
+
'& svg': {
|
|
256
|
+
color: color['icon/accent/gray']
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
':active:not(:disabled)': {
|
|
260
|
+
'color': color['text/neutral'],
|
|
261
|
+
'& svg': {
|
|
262
|
+
color: color['icon/accent/gray']
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
':focus-visible': {
|
|
266
|
+
outlineColor: color['border/focused'],
|
|
267
|
+
outlineStyle: 'solid',
|
|
268
|
+
outlineWidth: 2,
|
|
269
|
+
outlineOffset: 2
|
|
270
|
+
},
|
|
271
|
+
...($disabled ? {
|
|
272
|
+
'backgroundColor': color['bg/disabled'],
|
|
273
|
+
'color': color['text/disabled'],
|
|
274
|
+
'& svg': {
|
|
275
|
+
color: color['icon/disabled']
|
|
276
|
+
}
|
|
277
|
+
} : {})
|
|
278
|
+
},
|
|
279
|
+
danger: {
|
|
280
|
+
'backgroundColor': color['bg/danger/bold'],
|
|
281
|
+
'color': color['text/inverse'],
|
|
282
|
+
'& svg': {
|
|
283
|
+
color: color['icon/inverse']
|
|
284
|
+
},
|
|
285
|
+
':hover:not(:disabled)': {
|
|
286
|
+
backgroundColor: color['bg/danger/bold/hovered']
|
|
287
|
+
},
|
|
288
|
+
':active:not(:disabled)': {
|
|
289
|
+
backgroundColor: color['bg/danger/bold/pressed']
|
|
290
|
+
},
|
|
291
|
+
':focus-visible': {
|
|
292
|
+
outlineColor: color['border/focused'],
|
|
293
|
+
outlineStyle: 'solid',
|
|
294
|
+
outlineWidth: 2,
|
|
295
|
+
outlineOffset: 2
|
|
296
|
+
},
|
|
297
|
+
...($disabled ? {
|
|
298
|
+
'backgroundColor': color['bg/disabled'],
|
|
299
|
+
'color': color['text/disabled'],
|
|
300
|
+
'& svg': {
|
|
301
|
+
color: color['icon/disabled']
|
|
302
|
+
}
|
|
303
|
+
} : {})
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}));
|
|
307
|
+
const BaseSpinner = Qe(Spinner)(variant({
|
|
308
|
+
prop: 'size',
|
|
309
|
+
variants: {
|
|
310
|
+
l: {
|
|
311
|
+
width: 20,
|
|
312
|
+
height: 20
|
|
313
|
+
},
|
|
314
|
+
m: {
|
|
315
|
+
width: 16,
|
|
316
|
+
height: 16
|
|
317
|
+
},
|
|
318
|
+
s: {
|
|
319
|
+
width: 16,
|
|
320
|
+
height: 16
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}), variant({
|
|
324
|
+
prop: 'variant',
|
|
325
|
+
variants: {
|
|
326
|
+
primary: {
|
|
327
|
+
color: color['icon/inverse']
|
|
328
|
+
},
|
|
329
|
+
secondary: {
|
|
330
|
+
color: color['icon/primary']
|
|
331
|
+
},
|
|
332
|
+
tertiary: {
|
|
333
|
+
color: color['icon/accent/gray']
|
|
334
|
+
},
|
|
335
|
+
outlined: {
|
|
336
|
+
color: color['icon/neutral/bolder']
|
|
337
|
+
},
|
|
338
|
+
plain: {
|
|
339
|
+
color: color['icon/neutral/bolder']
|
|
340
|
+
},
|
|
341
|
+
danger: {
|
|
342
|
+
color: color['icon/inverse']
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}));
|
|
346
|
+
|
|
347
|
+
export { Button as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "React components, hooks for create teamturing web application",
|
|
5
5
|
"author": "Sungchang Park <psch300@gmail.com> (https://github.com/psch300)",
|
|
6
6
|
"homepage": "https://github.com/weareteamturing/bombe#readme",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"@teamturing/icons": "^1.17.6",
|
|
49
49
|
"@teamturing/token-studio": "^1.1.6"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "9a886f294a5301d5733ea151fca77233a541ff96"
|
|
52
52
|
}
|