@teamturing/react-kit 2.26.4 → 2.27.1
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/README.md +17 -1
- package/dist/core/Flash/index.d.ts +5 -3
- package/dist/index.js +86 -13
- package/esm/core/Checkbox/index.js +1 -0
- package/esm/core/Flash/index.js +45 -13
- package/esm/packages/icons/esm/Auto.js +20 -0
- package/esm/packages/icons/esm/ExternalLink.js +27 -0
- package/esm/packages/icons/esm/index.js +2 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,4 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
튜링 내에서 웹 애플리케이션을 만들 때 필요한 리액트의 핵심 컴포넌트, 훅을 모아둔 패키지입니다.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## 설치
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
yarn add @teamturing/react-kit styled-components styled-system @emotion/is-prop-valid
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 시작하기
|
|
12
|
+
|
|
13
|
+
```jsx
|
|
14
|
+
<StyleSheetManager shouldForwardProp={isPropValid}>
|
|
15
|
+
<ThemeProvider>
|
|
16
|
+
<App />
|
|
17
|
+
</ThemeProvider>
|
|
18
|
+
</StyleSheetManager>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[Pretendard](https://github.com/orioncactus/pretendard) 폰트와 사용하는 것을 추천합니다.
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { ComponentType, HTMLAttributes, HTMLProps, ReactElement, SVGProps } from 'react';
|
|
1
|
+
import { ComponentType, ElementType, HTMLAttributes, HTMLProps, ReactElement, ReactNode, SVGProps } from 'react';
|
|
2
2
|
import { SxProp } from '../../utils/styled-system';
|
|
3
|
-
type FlashVariantType = 'neutral' | 'danger' | 'assist';
|
|
3
|
+
type FlashVariantType = 'neutral' | 'danger' | 'assist' | 'accent';
|
|
4
4
|
type Props = {
|
|
5
5
|
variant?: FlashVariantType;
|
|
6
6
|
icon?: ComponentType<SVGProps<SVGSVGElement>>;
|
|
7
|
+
trailingVisual?: ElementType | ReactNode;
|
|
7
8
|
buttons?: Array<ReactElement<HTMLProps<HTMLButtonElement>>>;
|
|
8
9
|
} & SxProp & HTMLAttributes<HTMLDivElement>;
|
|
9
10
|
declare const _default: import("react").ForwardRefExoticComponent<{
|
|
10
11
|
variant?: FlashVariantType | undefined;
|
|
11
12
|
icon?: ComponentType<SVGProps<SVGSVGElement>> | undefined;
|
|
13
|
+
trailingVisual?: string | number | boolean | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | import("react").ReactPortal | null | undefined;
|
|
12
14
|
buttons?: ReactElement<HTMLProps<HTMLButtonElement>, string | import("react").JSXElementConstructor<any>>[] | undefined;
|
|
13
15
|
} & SxProp & HTMLAttributes<HTMLDivElement> & {
|
|
14
|
-
children?:
|
|
16
|
+
children?: ReactNode;
|
|
15
17
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
18
|
export default _default;
|
|
17
19
|
export type { Props as FlashProps };
|
package/dist/index.js
CHANGED
|
@@ -1326,6 +1326,22 @@ const SvgArrowUpLimit = props => /*#__PURE__*/React__namespace.createElement("sv
|
|
|
1326
1326
|
clipRule: "evenodd"
|
|
1327
1327
|
}));
|
|
1328
1328
|
|
|
1329
|
+
const SvgAuto = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
1330
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1331
|
+
width: "1em",
|
|
1332
|
+
height: "1em",
|
|
1333
|
+
fill: "none",
|
|
1334
|
+
viewBox: "0 0 24 24"
|
|
1335
|
+
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
1336
|
+
fill: "currentColor",
|
|
1337
|
+
fillRule: "evenodd",
|
|
1338
|
+
d: "m23.723 10.94-2.037-2.78a1.2 1.2 0 0 0-1.936 0l-2.037 2.78c-.58.793-.014 1.909.968 1.909h.88a7.543 7.543 0 0 1-3.73 5.695c-2.301 1.334-5.25 1.334-7.553 0a1.1 1.1 0 0 0-1.102 1.904 9.755 9.755 0 0 0 4.88 1.314 9.756 9.756 0 0 0 4.878-1.313 9.803 9.803 0 0 0 3.57-3.57 9.74 9.74 0 0 0 1.258-4.03h.993a1.2 1.2 0 0 0 .968-1.91m-18.183.213h-.992a7.594 7.594 0 0 1 .962-2.93 7.61 7.61 0 0 1 2.768-2.766c2.302-1.332 5.25-1.332 7.554 0a1.1 1.1 0 0 0 1.102-1.905c-2.972-1.718-6.787-1.718-9.758 0a9.812 9.812 0 0 0-3.57 3.57 9.775 9.775 0 0 0-1.258 4.03H1.244a1.2 1.2 0 0 0-.968 1.91l2.148 2.932a1.2 1.2 0 0 0 1.936 0l2.148-2.932a1.2 1.2 0 0 0-.968-1.91",
|
|
1339
|
+
clipRule: "evenodd"
|
|
1340
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
1341
|
+
fill: "currentColor",
|
|
1342
|
+
d: "M10.354 14.963a.912.912 0 1 1-1.732-.568l1.909-5.617a1.2 1.2 0 0 1 1.136-.814h.663a1.2 1.2 0 0 1 1.137.815l1.902 5.623a.908.908 0 1 1-1.725.564l-.316-1H10.67l-.316.997Zm.748-2.369h1.793l-.864-2.742h-.064l-.865 2.742Z"
|
|
1343
|
+
}));
|
|
1344
|
+
|
|
1329
1345
|
const SvgBarchart = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
1330
1346
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1331
1347
|
width: "1em",
|
|
@@ -2272,6 +2288,29 @@ const SvgExclamationPointInCircle = props => /*#__PURE__*/React__namespace.creat
|
|
|
2272
2288
|
clipRule: "evenodd"
|
|
2273
2289
|
}));
|
|
2274
2290
|
|
|
2291
|
+
const SvgExternalLink = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
2292
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2293
|
+
width: "1em",
|
|
2294
|
+
height: "1em",
|
|
2295
|
+
fill: "none",
|
|
2296
|
+
viewBox: "0 0 24 24"
|
|
2297
|
+
}, props), /*#__PURE__*/React__namespace.createElement("path", {
|
|
2298
|
+
fill: "currentColor",
|
|
2299
|
+
fillRule: "evenodd",
|
|
2300
|
+
d: "M5.953 4.326c-.899 0-1.627.728-1.627 1.627v12.094c0 .899.728 1.627 1.627 1.627h12.094c.899 0 1.627-.728 1.627-1.627V12A1.163 1.163 0 1 1 22 12v6.047A3.953 3.953 0 0 1 18.047 22H5.953A3.953 3.953 0 0 1 2 18.047V5.953A3.953 3.953 0 0 1 5.953 2H12a1.163 1.163 0 1 1 0 2.326H5.953Z",
|
|
2301
|
+
clipRule: "evenodd"
|
|
2302
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
2303
|
+
fill: "currentColor",
|
|
2304
|
+
fillRule: "evenodd",
|
|
2305
|
+
d: "M13.308 10.682a1.06 1.06 0 0 0 1.5 0l5.668-5.668a1.06 1.06 0 0 0-1.5-1.5l-5.668 5.668a1.06 1.06 0 0 0 0 1.5Z",
|
|
2306
|
+
clipRule: "evenodd"
|
|
2307
|
+
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
2308
|
+
fill: "currentColor",
|
|
2309
|
+
fillRule: "evenodd",
|
|
2310
|
+
d: "M15.24 3.163c0-.642.52-1.163 1.163-1.163h4.419c.642 0 1.162.52 1.162 1.163V7.58a1.163 1.163 0 0 1-2.325 0V4.326h-3.256c-.642 0-1.163-.521-1.163-1.163Z",
|
|
2311
|
+
clipRule: "evenodd"
|
|
2312
|
+
}));
|
|
2313
|
+
|
|
2275
2314
|
const SvgEyeOff = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
2276
2315
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2277
2316
|
width: "1em",
|
|
@@ -4613,6 +4652,7 @@ var icons = /*#__PURE__*/Object.freeze({
|
|
|
4613
4652
|
ArrowUpDownIcon: SvgArrowUpDown,
|
|
4614
4653
|
ArrowUpIcon: SvgArrowUp,
|
|
4615
4654
|
ArrowUpLimitIcon: SvgArrowUpLimit,
|
|
4655
|
+
AutoIcon: SvgAuto,
|
|
4616
4656
|
BarchartIcon: SvgBarchart,
|
|
4617
4657
|
BookIcon: SvgBook,
|
|
4618
4658
|
BookmarkAnimationIcon: SvgBookmarkAnimation,
|
|
@@ -4674,6 +4714,7 @@ var icons = /*#__PURE__*/Object.freeze({
|
|
|
4674
4714
|
EqualIcon: SvgEqual,
|
|
4675
4715
|
EraserIcon: SvgEraser,
|
|
4676
4716
|
ExclamationPointInCircleIcon: SvgExclamationPointInCircle,
|
|
4717
|
+
ExternalLinkIcon: SvgExternalLink,
|
|
4677
4718
|
EyeOffIcon: SvgEyeOff,
|
|
4678
4719
|
EyeOnIcon: SvgEyeOn,
|
|
4679
4720
|
FaceHappyIcon: SvgFaceHappy,
|
|
@@ -17216,6 +17257,7 @@ const BaseCheckbox = styled__default.default(UnstyledCheckbox)`
|
|
|
17216
17257
|
border-color: ${({
|
|
17217
17258
|
theme
|
|
17218
17259
|
}) => theme.colors['border/disabled']};
|
|
17260
|
+
cursor: not-allowed;
|
|
17219
17261
|
}
|
|
17220
17262
|
|
|
17221
17263
|
&:checked {
|
|
@@ -19279,7 +19321,8 @@ const BaseEmptyState = styled__default.default.div`
|
|
|
19279
19321
|
|
|
19280
19322
|
const Flash = ({
|
|
19281
19323
|
variant = 'neutral',
|
|
19282
|
-
icon: Icon = variant === 'danger' ? SvgWarning : variant === 'assist' ? SvgTwinkle : SvgInfoInCircle,
|
|
19324
|
+
icon: Icon = variant === 'danger' ? SvgWarning : variant === 'assist' ? SvgTwinkle : variant === 'accent' ? SvgInfoInCircle : SvgInfoInCircle,
|
|
19325
|
+
trailingVisual: TrailingVisual,
|
|
19283
19326
|
buttons,
|
|
19284
19327
|
children,
|
|
19285
19328
|
...props
|
|
@@ -19289,7 +19332,9 @@ const Flash = ({
|
|
|
19289
19332
|
ref: ref,
|
|
19290
19333
|
variant: variant,
|
|
19291
19334
|
...props,
|
|
19292
|
-
children: [/*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
19335
|
+
children: [/*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
19336
|
+
className: 'flash__leading_icon'
|
|
19337
|
+
}), /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
19293
19338
|
className: 'flash__content',
|
|
19294
19339
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
19295
19340
|
className: 'flash__content__children',
|
|
@@ -19298,7 +19343,10 @@ const Flash = ({
|
|
|
19298
19343
|
className: 'flash__content__buttons',
|
|
19299
19344
|
children: buttons
|
|
19300
19345
|
}) : null]
|
|
19301
|
-
})
|
|
19346
|
+
}), TrailingVisual ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
19347
|
+
className: 'flash__trailing_visual',
|
|
19348
|
+
children: typeof TrailingVisual !== 'string' && reactIsExports.isValidElementType(TrailingVisual) ? /*#__PURE__*/jsxRuntimeExports.jsx(TrailingVisual, {}) : TrailingVisual
|
|
19349
|
+
}) : null]
|
|
19302
19350
|
});
|
|
19303
19351
|
};
|
|
19304
19352
|
const BaseFlash = styled__default.default.div`
|
|
@@ -19309,15 +19357,24 @@ const BaseFlash = styled__default.default.div`
|
|
|
19309
19357
|
align-items: flex-start;
|
|
19310
19358
|
padding: ${({
|
|
19311
19359
|
theme
|
|
19312
|
-
}) => forcePixelValue(theme.space[
|
|
19360
|
+
}) => forcePixelValue(theme.space[3])};
|
|
19313
19361
|
border-radius: ${({
|
|
19314
19362
|
theme
|
|
19315
19363
|
}) => forcePixelValue(theme.radii.xs)};
|
|
19364
|
+
column-gap: ${({
|
|
19365
|
+
theme
|
|
19366
|
+
}) => forcePixelValue(theme.space[2])};
|
|
19367
|
+
|
|
19368
|
+
& .flash__content {
|
|
19369
|
+
flex: 1;
|
|
19370
|
+
display: flex;
|
|
19371
|
+
flex-direction: column;
|
|
19372
|
+
}
|
|
19316
19373
|
|
|
19317
19374
|
& .flash__content__children {
|
|
19318
19375
|
font-size: ${({
|
|
19319
19376
|
theme
|
|
19320
|
-
}) => forcePixelValue(theme.fontSizes.
|
|
19377
|
+
}) => forcePixelValue(theme.fontSizes.xxs)};
|
|
19321
19378
|
font-weight: ${({
|
|
19322
19379
|
theme
|
|
19323
19380
|
}) => theme.fontWeights.medium};
|
|
@@ -19337,12 +19394,22 @@ const BaseFlash = styled__default.default.div`
|
|
|
19337
19394
|
}) => forcePixelValue(theme.space[2])};
|
|
19338
19395
|
}
|
|
19339
19396
|
|
|
19340
|
-
&
|
|
19341
|
-
min-width: ${forcePixelValue(
|
|
19342
|
-
height: ${forcePixelValue(
|
|
19343
|
-
|
|
19397
|
+
& .flash__leading_icon {
|
|
19398
|
+
min-width: ${forcePixelValue(16)};
|
|
19399
|
+
height: ${forcePixelValue(16)};
|
|
19400
|
+
}
|
|
19401
|
+
|
|
19402
|
+
& .flash__trailing_visual {
|
|
19403
|
+
display: flex;
|
|
19404
|
+
flex-direction: column;
|
|
19405
|
+
|
|
19406
|
+
svg {
|
|
19407
|
+
width: ${forcePixelValue(16)};
|
|
19408
|
+
height: ${forcePixelValue(16)};
|
|
19409
|
+
color: ${({
|
|
19344
19410
|
theme
|
|
19345
|
-
}) =>
|
|
19411
|
+
}) => theme.colors['icon/neutral/bold']};
|
|
19412
|
+
}
|
|
19346
19413
|
}
|
|
19347
19414
|
|
|
19348
19415
|
${({
|
|
@@ -19352,13 +19419,13 @@ const BaseFlash = styled__default.default.div`
|
|
|
19352
19419
|
variants: {
|
|
19353
19420
|
neutral: {
|
|
19354
19421
|
'backgroundColor': 'bg/neutral',
|
|
19355
|
-
'&
|
|
19422
|
+
'& .flash__leading_icon': {
|
|
19356
19423
|
color: 'icon/neutral/bold'
|
|
19357
19424
|
}
|
|
19358
19425
|
},
|
|
19359
19426
|
danger: {
|
|
19360
19427
|
'backgroundColor': 'bg/danger',
|
|
19361
|
-
'&
|
|
19428
|
+
'& .flash__leading_icon': {
|
|
19362
19429
|
color: 'icon/danger'
|
|
19363
19430
|
}
|
|
19364
19431
|
},
|
|
@@ -19367,9 +19434,15 @@ const BaseFlash = styled__default.default.div`
|
|
|
19367
19434
|
'borderWidth': 1,
|
|
19368
19435
|
'borderStyle': 'solid',
|
|
19369
19436
|
'borderColor': 'transparent',
|
|
19370
|
-
'&
|
|
19437
|
+
'& .flash__leading_icon': {
|
|
19371
19438
|
color: 'icon/primary'
|
|
19372
19439
|
}
|
|
19440
|
+
},
|
|
19441
|
+
accent: {
|
|
19442
|
+
'backgroundColor': 'bg/accent/blue/subtlest',
|
|
19443
|
+
'& .flash__leading_icon': {
|
|
19444
|
+
color: 'icon/accent/blue'
|
|
19445
|
+
}
|
|
19373
19446
|
}
|
|
19374
19447
|
}
|
|
19375
19448
|
})}
|
package/esm/core/Flash/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import SvgTwinkle from '../../packages/icons/esm/Twinkle.js';
|
|
|
4
4
|
import SvgWarning from '../../packages/icons/esm/Warning.js';
|
|
5
5
|
import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
|
|
6
6
|
import { isNullable } from '../../packages/utils/esm/isNullable.js';
|
|
7
|
+
import { r as reactIsExports } from '../../node_modules/react-is/index.js';
|
|
7
8
|
import styled from 'styled-components';
|
|
8
9
|
import '../../node_modules/styled-system/dist/index.esm.js';
|
|
9
10
|
import { sx } from '../../utils/styled-system/index.js';
|
|
@@ -12,7 +13,8 @@ import { variant } from '../../node_modules/@styled-system/variant/dist/index.es
|
|
|
12
13
|
|
|
13
14
|
const Flash = ({
|
|
14
15
|
variant = 'neutral',
|
|
15
|
-
icon: Icon = variant === 'danger' ? SvgWarning : variant === 'assist' ? SvgTwinkle : SvgInfoInCircle,
|
|
16
|
+
icon: Icon = variant === 'danger' ? SvgWarning : variant === 'assist' ? SvgTwinkle : variant === 'accent' ? SvgInfoInCircle : SvgInfoInCircle,
|
|
17
|
+
trailingVisual: TrailingVisual,
|
|
16
18
|
buttons,
|
|
17
19
|
children,
|
|
18
20
|
...props
|
|
@@ -22,7 +24,9 @@ const Flash = ({
|
|
|
22
24
|
ref: ref,
|
|
23
25
|
variant: variant,
|
|
24
26
|
...props,
|
|
25
|
-
children: [/*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
27
|
+
children: [/*#__PURE__*/jsxRuntimeExports.jsx(Icon, {
|
|
28
|
+
className: 'flash__leading_icon'
|
|
29
|
+
}), /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
26
30
|
className: 'flash__content',
|
|
27
31
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
28
32
|
className: 'flash__content__children',
|
|
@@ -31,7 +35,10 @@ const Flash = ({
|
|
|
31
35
|
className: 'flash__content__buttons',
|
|
32
36
|
children: buttons
|
|
33
37
|
}) : null]
|
|
34
|
-
})
|
|
38
|
+
}), TrailingVisual ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
39
|
+
className: 'flash__trailing_visual',
|
|
40
|
+
children: typeof TrailingVisual !== 'string' && reactIsExports.isValidElementType(TrailingVisual) ? /*#__PURE__*/jsxRuntimeExports.jsx(TrailingVisual, {}) : TrailingVisual
|
|
41
|
+
}) : null]
|
|
35
42
|
});
|
|
36
43
|
};
|
|
37
44
|
const BaseFlash = styled.div`
|
|
@@ -42,15 +49,24 @@ const BaseFlash = styled.div`
|
|
|
42
49
|
align-items: flex-start;
|
|
43
50
|
padding: ${({
|
|
44
51
|
theme
|
|
45
|
-
}) => forcePixelValue(theme.space[
|
|
52
|
+
}) => forcePixelValue(theme.space[3])};
|
|
46
53
|
border-radius: ${({
|
|
47
54
|
theme
|
|
48
55
|
}) => forcePixelValue(theme.radii.xs)};
|
|
56
|
+
column-gap: ${({
|
|
57
|
+
theme
|
|
58
|
+
}) => forcePixelValue(theme.space[2])};
|
|
59
|
+
|
|
60
|
+
& .flash__content {
|
|
61
|
+
flex: 1;
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
}
|
|
49
65
|
|
|
50
66
|
& .flash__content__children {
|
|
51
67
|
font-size: ${({
|
|
52
68
|
theme
|
|
53
|
-
}) => forcePixelValue(theme.fontSizes.
|
|
69
|
+
}) => forcePixelValue(theme.fontSizes.xxs)};
|
|
54
70
|
font-weight: ${({
|
|
55
71
|
theme
|
|
56
72
|
}) => theme.fontWeights.medium};
|
|
@@ -70,12 +86,22 @@ const BaseFlash = styled.div`
|
|
|
70
86
|
}) => forcePixelValue(theme.space[2])};
|
|
71
87
|
}
|
|
72
88
|
|
|
73
|
-
&
|
|
74
|
-
min-width: ${forcePixelValue(
|
|
75
|
-
height: ${forcePixelValue(
|
|
76
|
-
|
|
89
|
+
& .flash__leading_icon {
|
|
90
|
+
min-width: ${forcePixelValue(16)};
|
|
91
|
+
height: ${forcePixelValue(16)};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
& .flash__trailing_visual {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
|
|
98
|
+
svg {
|
|
99
|
+
width: ${forcePixelValue(16)};
|
|
100
|
+
height: ${forcePixelValue(16)};
|
|
101
|
+
color: ${({
|
|
77
102
|
theme
|
|
78
|
-
}) =>
|
|
103
|
+
}) => theme.colors['icon/neutral/bold']};
|
|
104
|
+
}
|
|
79
105
|
}
|
|
80
106
|
|
|
81
107
|
${({
|
|
@@ -85,13 +111,13 @@ const BaseFlash = styled.div`
|
|
|
85
111
|
variants: {
|
|
86
112
|
neutral: {
|
|
87
113
|
'backgroundColor': 'bg/neutral',
|
|
88
|
-
'&
|
|
114
|
+
'& .flash__leading_icon': {
|
|
89
115
|
color: 'icon/neutral/bold'
|
|
90
116
|
}
|
|
91
117
|
},
|
|
92
118
|
danger: {
|
|
93
119
|
'backgroundColor': 'bg/danger',
|
|
94
|
-
'&
|
|
120
|
+
'& .flash__leading_icon': {
|
|
95
121
|
color: 'icon/danger'
|
|
96
122
|
}
|
|
97
123
|
},
|
|
@@ -100,9 +126,15 @@ const BaseFlash = styled.div`
|
|
|
100
126
|
'borderWidth': 1,
|
|
101
127
|
'borderStyle': 'solid',
|
|
102
128
|
'borderColor': 'transparent',
|
|
103
|
-
'&
|
|
129
|
+
'& .flash__leading_icon': {
|
|
104
130
|
color: 'icon/primary'
|
|
105
131
|
}
|
|
132
|
+
},
|
|
133
|
+
accent: {
|
|
134
|
+
'backgroundColor': 'bg/accent/blue/subtlest',
|
|
135
|
+
'& .flash__leading_icon': {
|
|
136
|
+
color: 'icon/accent/blue'
|
|
137
|
+
}
|
|
106
138
|
}
|
|
107
139
|
}
|
|
108
140
|
})}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
const SvgAuto = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: "1em",
|
|
7
|
+
height: "1em",
|
|
8
|
+
fill: "none",
|
|
9
|
+
viewBox: "0 0 24 24"
|
|
10
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
fillRule: "evenodd",
|
|
13
|
+
d: "m23.723 10.94-2.037-2.78a1.2 1.2 0 0 0-1.936 0l-2.037 2.78c-.58.793-.014 1.909.968 1.909h.88a7.543 7.543 0 0 1-3.73 5.695c-2.301 1.334-5.25 1.334-7.553 0a1.1 1.1 0 0 0-1.102 1.904 9.755 9.755 0 0 0 4.88 1.314 9.756 9.756 0 0 0 4.878-1.313 9.803 9.803 0 0 0 3.57-3.57 9.74 9.74 0 0 0 1.258-4.03h.993a1.2 1.2 0 0 0 .968-1.91m-18.183.213h-.992a7.594 7.594 0 0 1 .962-2.93 7.61 7.61 0 0 1 2.768-2.766c2.302-1.332 5.25-1.332 7.554 0a1.1 1.1 0 0 0 1.102-1.905c-2.972-1.718-6.787-1.718-9.758 0a9.812 9.812 0 0 0-3.57 3.57 9.775 9.775 0 0 0-1.258 4.03H1.244a1.2 1.2 0 0 0-.968 1.91l2.148 2.932a1.2 1.2 0 0 0 1.936 0l2.148-2.932a1.2 1.2 0 0 0-.968-1.91",
|
|
14
|
+
clipRule: "evenodd"
|
|
15
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
d: "M10.354 14.963a.912.912 0 1 1-1.732-.568l1.909-5.617a1.2 1.2 0 0 1 1.136-.814h.663a1.2 1.2 0 0 1 1.137.815l1.902 5.623a.908.908 0 1 1-1.725.564l-.316-1H10.67l-.316.997Zm.748-2.369h1.793l-.864-2.742h-.064l-.865 2.742Z"
|
|
18
|
+
}));
|
|
19
|
+
|
|
20
|
+
export { SvgAuto as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { extends as _extends } from './_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
const SvgExternalLink = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: "1em",
|
|
7
|
+
height: "1em",
|
|
8
|
+
fill: "none",
|
|
9
|
+
viewBox: "0 0 24 24"
|
|
10
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
fillRule: "evenodd",
|
|
13
|
+
d: "M5.953 4.326c-.899 0-1.627.728-1.627 1.627v12.094c0 .899.728 1.627 1.627 1.627h12.094c.899 0 1.627-.728 1.627-1.627V12A1.163 1.163 0 1 1 22 12v6.047A3.953 3.953 0 0 1 18.047 22H5.953A3.953 3.953 0 0 1 2 18.047V5.953A3.953 3.953 0 0 1 5.953 2H12a1.163 1.163 0 1 1 0 2.326H5.953Z",
|
|
14
|
+
clipRule: "evenodd"
|
|
15
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
fillRule: "evenodd",
|
|
18
|
+
d: "M13.308 10.682a1.06 1.06 0 0 0 1.5 0l5.668-5.668a1.06 1.06 0 0 0-1.5-1.5l-5.668 5.668a1.06 1.06 0 0 0 0 1.5Z",
|
|
19
|
+
clipRule: "evenodd"
|
|
20
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
21
|
+
fill: "currentColor",
|
|
22
|
+
fillRule: "evenodd",
|
|
23
|
+
d: "M15.24 3.163c0-.642.52-1.163 1.163-1.163h4.419c.642 0 1.162.52 1.162 1.163V7.58a1.163 1.163 0 0 1-2.325 0V4.326h-3.256c-.642 0-1.163-.521-1.163-1.163Z",
|
|
24
|
+
clipRule: "evenodd"
|
|
25
|
+
}));
|
|
26
|
+
|
|
27
|
+
export { SvgExternalLink as default };
|
|
@@ -16,6 +16,7 @@ export { default as ArrowRightLimitIcon } from './ArrowRightLimit.js';
|
|
|
16
16
|
export { default as ArrowUpIcon } from './ArrowUp.js';
|
|
17
17
|
export { default as ArrowUpDownIcon } from './ArrowUpDown.js';
|
|
18
18
|
export { default as ArrowUpLimitIcon } from './ArrowUpLimit.js';
|
|
19
|
+
export { default as AutoIcon } from './Auto.js';
|
|
19
20
|
export { default as BarchartIcon } from './Barchart.js';
|
|
20
21
|
export { default as BookIcon } from './Book.js';
|
|
21
22
|
export { default as BookmarkIcon } from './Bookmark.js';
|
|
@@ -77,6 +78,7 @@ export { default as EnterIcon } from './Enter.js';
|
|
|
77
78
|
export { default as EqualIcon } from './Equal.js';
|
|
78
79
|
export { default as EraserIcon } from './Eraser.js';
|
|
79
80
|
export { default as ExclamationPointInCircleIcon } from './ExclamationPointInCircle.js';
|
|
81
|
+
export { default as ExternalLinkIcon } from './ExternalLink.js';
|
|
80
82
|
export { default as EyeOffIcon } from './EyeOff.js';
|
|
81
83
|
export { default as EyeOnIcon } from './EyeOn.js';
|
|
82
84
|
export { default as FaceHappyIcon } from './FaceHappy.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.27.1",
|
|
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",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@floating-ui/react-dom": "^2.0.2",
|
|
57
57
|
"@primer/behaviors": "^1.3.6",
|
|
58
|
-
"@teamturing/icons": "^1.
|
|
58
|
+
"@teamturing/icons": "^1.41.0",
|
|
59
59
|
"@teamturing/token-studio": "^1.6.0",
|
|
60
60
|
"@teamturing/utils": "^1.3.0",
|
|
61
61
|
"framer-motion": "^10.16.4",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"react-textarea-autosize": "^8.5.3",
|
|
67
67
|
"styled-system": "^5.1.5"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "b2c810fa21527d0a188655ac141f41df83ca7503"
|
|
70
70
|
}
|