@teamturing/react-kit 1.2.4 → 1.2.6
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.js +44 -54
- package/esm/core/Button/index.js +2 -8
- package/esm/core/Chip/index.js +1 -4
- package/esm/core/GradientText/index.js +7 -5
- package/esm/core/Grid/index.js +1 -4
- package/esm/core/IconButton/index.js +1 -4
- package/esm/core/IconToggleButton/index.js +1 -4
- package/esm/core/Space/index.js +5 -4
- package/esm/core/Spinner/index.js +11 -5
- package/esm/core/Stack/index.js +1 -4
- package/esm/core/Text/index.js +1 -4
- package/esm/core/View/index.js +4 -4
- package/esm/core/_UnstyledButton.js +9 -4
- package/package.json +8 -6
package/dist/index.js
CHANGED
|
@@ -1623,11 +1623,17 @@ const SvgProgressGradient = props => /*#__PURE__*/React__namespace.createElement
|
|
|
1623
1623
|
opacity: 0.72
|
|
1624
1624
|
}));
|
|
1625
1625
|
|
|
1626
|
-
const spin = styled.keyframes
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1626
|
+
const spin = styled.keyframes`
|
|
1627
|
+
from {
|
|
1628
|
+
transform: rotate(0);
|
|
1629
|
+
}
|
|
1630
|
+
to {
|
|
1631
|
+
transform: rotate(360deg);
|
|
1632
|
+
}
|
|
1633
|
+
`;
|
|
1634
|
+
const Spinner = styled(SvgProgressGradient)`
|
|
1635
|
+
animation: ${spin} 1000ms infinite steps(8, end);
|
|
1636
|
+
`;
|
|
1631
1637
|
Spinner.defaultProps = {
|
|
1632
1638
|
width: 32,
|
|
1633
1639
|
height: 32,
|
|
@@ -1656,15 +1662,20 @@ const wordBreak = system({
|
|
|
1656
1662
|
}
|
|
1657
1663
|
});
|
|
1658
1664
|
|
|
1659
|
-
const View = styled.div
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1665
|
+
const View = styled.div`
|
|
1666
|
+
${compose(layout, color, flexbox, background, border, position, shadow)}
|
|
1667
|
+
${sx}
|
|
1668
|
+
`;
|
|
1669
|
+
|
|
1670
|
+
const UnstyledButton = styled.button`
|
|
1671
|
+
background: none;
|
|
1672
|
+
border: 0;
|
|
1673
|
+
padding: 0;
|
|
1674
|
+
outline: none;
|
|
1675
|
+
cursor: pointer;
|
|
1663
1676
|
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
componentId: "sc-j96ib-0"
|
|
1667
|
-
})(["background:none;border:0;padding:0;outline:none;cursor:pointer;", ""], sx);
|
|
1677
|
+
${sx}
|
|
1678
|
+
`;
|
|
1668
1679
|
|
|
1669
1680
|
var jsxRuntime = {exports: {}};
|
|
1670
1681
|
|
|
@@ -2914,10 +2925,7 @@ const Button = /*#__PURE__*/React.forwardRef(({
|
|
|
2914
2925
|
}) : null]
|
|
2915
2926
|
});
|
|
2916
2927
|
});
|
|
2917
|
-
const BaseButton = styled(UnstyledButton)
|
|
2918
|
-
displayName: "Button__BaseButton",
|
|
2919
|
-
componentId: "sc-1yhc0ra-0"
|
|
2920
|
-
})(({
|
|
2928
|
+
const BaseButton = styled(UnstyledButton)(({
|
|
2921
2929
|
$loading,
|
|
2922
2930
|
$disabled,
|
|
2923
2931
|
fillWidth
|
|
@@ -3165,10 +3173,7 @@ const BaseButton = styled(UnstyledButton).withConfig({
|
|
|
3165
3173
|
}
|
|
3166
3174
|
}
|
|
3167
3175
|
}));
|
|
3168
|
-
const BaseSpinner = styled(Spinner)
|
|
3169
|
-
displayName: "Button__BaseSpinner",
|
|
3170
|
-
componentId: "sc-1yhc0ra-1"
|
|
3171
|
-
})(variant({
|
|
3176
|
+
const BaseSpinner = styled(Spinner)(variant({
|
|
3172
3177
|
prop: 'size',
|
|
3173
3178
|
variants: {
|
|
3174
3179
|
l: {
|
|
@@ -3223,10 +3228,7 @@ const Chip = ({
|
|
|
3223
3228
|
trailingIcon: TrailingIcon,
|
|
3224
3229
|
children: [LeadingIcon ? /*#__PURE__*/jsxRuntimeExports.jsx(LeadingIcon, {}) : null, children, TrailingIcon ? /*#__PURE__*/jsxRuntimeExports.jsx(TrailingIcon, {}) : null]
|
|
3225
3230
|
});
|
|
3226
|
-
const BaseChip = styled.span
|
|
3227
|
-
displayName: "Chip__BaseChip",
|
|
3228
|
-
componentId: "sc-sq73uo-0"
|
|
3229
|
-
})({
|
|
3231
|
+
const BaseChip = styled.span({
|
|
3230
3232
|
position: 'relative',
|
|
3231
3233
|
width: 'fit-content',
|
|
3232
3234
|
borderRadius: radii.full,
|
|
@@ -3382,10 +3384,7 @@ const BaseChip = styled.span.withConfig({
|
|
|
3382
3384
|
}
|
|
3383
3385
|
}), sx);
|
|
3384
3386
|
|
|
3385
|
-
const Text = styled.span
|
|
3386
|
-
displayName: "Text",
|
|
3387
|
-
componentId: "sc-yuorjy-0"
|
|
3388
|
-
})({
|
|
3387
|
+
const Text = styled.span({
|
|
3389
3388
|
'display': 'block',
|
|
3390
3389
|
'whiteSpace': 'pre-wrap',
|
|
3391
3390
|
'& > span': {
|
|
@@ -3425,12 +3424,14 @@ Text.defaultProps = {
|
|
|
3425
3424
|
color: 'text/neutral'
|
|
3426
3425
|
};
|
|
3427
3426
|
|
|
3428
|
-
const GradientText = styled(Text)
|
|
3429
|
-
|
|
3430
|
-
componentId: "sc-1jku3z1-0"
|
|
3431
|
-
})(["background:", ";background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;"], ({
|
|
3427
|
+
const GradientText = styled(Text)`
|
|
3428
|
+
background: ${({
|
|
3432
3429
|
theme
|
|
3433
|
-
}) => `linear-gradient(${theme.gradients['text/accent']})`
|
|
3430
|
+
}) => `linear-gradient(${theme.gradients['text/accent']})`};
|
|
3431
|
+
background-clip: text;
|
|
3432
|
+
-webkit-background-clip: text;
|
|
3433
|
+
-webkit-text-fill-color: transparent;
|
|
3434
|
+
`;
|
|
3434
3435
|
|
|
3435
3436
|
/**
|
|
3436
3437
|
* CSS에서 사용할 수 있는 픽셀값으로 강제합니다.
|
|
@@ -3462,10 +3463,7 @@ const Grid = /*#__PURE__*/React.forwardRef(({
|
|
|
3462
3463
|
children: children
|
|
3463
3464
|
});
|
|
3464
3465
|
});
|
|
3465
|
-
const BaseGrid = styled(View)
|
|
3466
|
-
displayName: "Grid__BaseGrid",
|
|
3467
|
-
componentId: "sc-4l957f-0"
|
|
3468
|
-
})({
|
|
3466
|
+
const BaseGrid = styled(View)({
|
|
3469
3467
|
display: 'flex',
|
|
3470
3468
|
flexDirection: 'row'
|
|
3471
3469
|
}, variant({
|
|
@@ -3569,10 +3567,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(({
|
|
|
3569
3567
|
})
|
|
3570
3568
|
});
|
|
3571
3569
|
});
|
|
3572
|
-
const BaseIconButton = styled(UnstyledButton)
|
|
3573
|
-
displayName: "IconButton__BaseIconButton",
|
|
3574
|
-
componentId: "sc-13ybfes-0"
|
|
3575
|
-
})(({
|
|
3570
|
+
const BaseIconButton = styled(UnstyledButton)(({
|
|
3576
3571
|
$loading,
|
|
3577
3572
|
$disabled
|
|
3578
3573
|
}) => ({
|
|
@@ -3773,10 +3768,7 @@ const IconToggleButton = ({
|
|
|
3773
3768
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {})
|
|
3774
3769
|
});
|
|
3775
3770
|
};
|
|
3776
|
-
const BaseIconToggleButton = styled(UnstyledButton)
|
|
3777
|
-
displayName: "IconToggleButton__BaseIconToggleButton",
|
|
3778
|
-
componentId: "sc-1y68w0-0"
|
|
3779
|
-
})(({
|
|
3771
|
+
const BaseIconToggleButton = styled(UnstyledButton)(({
|
|
3780
3772
|
$disabled
|
|
3781
3773
|
}) => ({
|
|
3782
3774
|
'position': 'relative',
|
|
@@ -3863,10 +3855,11 @@ const ItemList = ({
|
|
|
3863
3855
|
});
|
|
3864
3856
|
};
|
|
3865
3857
|
|
|
3866
|
-
const Space = styled.div
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
}
|
|
3858
|
+
const Space = styled.div`
|
|
3859
|
+
width: inherit;
|
|
3860
|
+
${space};
|
|
3861
|
+
${sx}
|
|
3862
|
+
`;
|
|
3870
3863
|
|
|
3871
3864
|
const Stack = /*#__PURE__*/React.forwardRef(({
|
|
3872
3865
|
gapX = 0,
|
|
@@ -3882,10 +3875,7 @@ const Stack = /*#__PURE__*/React.forwardRef(({
|
|
|
3882
3875
|
...props,
|
|
3883
3876
|
children: children
|
|
3884
3877
|
}));
|
|
3885
|
-
const BaseStack = styled(View)
|
|
3886
|
-
displayName: "Stack__BaseStack",
|
|
3887
|
-
componentId: "sc-1lqh56h-0"
|
|
3888
|
-
})({
|
|
3878
|
+
const BaseStack = styled(View)({
|
|
3889
3879
|
display: 'flex',
|
|
3890
3880
|
flexDirection: 'row',
|
|
3891
3881
|
flexWrap: 'wrap'
|
package/esm/core/Button/index.js
CHANGED
|
@@ -60,10 +60,7 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
60
60
|
}) : null]
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
|
-
const BaseButton = styled(UnstyledButton)
|
|
64
|
-
displayName: "Button__BaseButton",
|
|
65
|
-
componentId: "sc-1yhc0ra-0"
|
|
66
|
-
})(({
|
|
63
|
+
const BaseButton = styled(UnstyledButton)(({
|
|
67
64
|
$loading,
|
|
68
65
|
$disabled,
|
|
69
66
|
fillWidth
|
|
@@ -311,10 +308,7 @@ const BaseButton = styled(UnstyledButton).withConfig({
|
|
|
311
308
|
}
|
|
312
309
|
}
|
|
313
310
|
}));
|
|
314
|
-
const BaseSpinner = styled(Spinner)
|
|
315
|
-
displayName: "Button__BaseSpinner",
|
|
316
|
-
componentId: "sc-1yhc0ra-1"
|
|
317
|
-
})(variant({
|
|
311
|
+
const BaseSpinner = styled(Spinner)(variant({
|
|
318
312
|
prop: 'size',
|
|
319
313
|
variants: {
|
|
320
314
|
l: {
|
package/esm/core/Chip/index.js
CHANGED
|
@@ -22,10 +22,7 @@ const Chip = ({
|
|
|
22
22
|
trailingIcon: TrailingIcon,
|
|
23
23
|
children: [LeadingIcon ? /*#__PURE__*/jsxRuntimeExports.jsx(LeadingIcon, {}) : null, children, TrailingIcon ? /*#__PURE__*/jsxRuntimeExports.jsx(TrailingIcon, {}) : null]
|
|
24
24
|
});
|
|
25
|
-
const BaseChip = styled.span
|
|
26
|
-
displayName: "Chip__BaseChip",
|
|
27
|
-
componentId: "sc-sq73uo-0"
|
|
28
|
-
})({
|
|
25
|
+
const BaseChip = styled.span({
|
|
29
26
|
position: 'relative',
|
|
30
27
|
width: 'fit-content',
|
|
31
28
|
borderRadius: radii.full,
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import Text from '../Text/index.js';
|
|
3
3
|
|
|
4
|
-
const GradientText = styled(Text)
|
|
5
|
-
|
|
6
|
-
componentId: "sc-1jku3z1-0"
|
|
7
|
-
})(["background:", ";background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;"], ({
|
|
4
|
+
const GradientText = styled(Text)`
|
|
5
|
+
background: ${({
|
|
8
6
|
theme
|
|
9
|
-
}) => `linear-gradient(${theme.gradients['text/accent']})`
|
|
7
|
+
}) => `linear-gradient(${theme.gradients['text/accent']})`};
|
|
8
|
+
background-clip: text;
|
|
9
|
+
-webkit-background-clip: text;
|
|
10
|
+
-webkit-text-fill-color: transparent;
|
|
11
|
+
`;
|
|
10
12
|
|
|
11
13
|
export { GradientText as default };
|
package/esm/core/Grid/index.js
CHANGED
|
@@ -28,10 +28,7 @@ const Grid = /*#__PURE__*/forwardRef(({
|
|
|
28
28
|
children: children
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
|
-
const BaseGrid = styled(View)
|
|
32
|
-
displayName: "Grid__BaseGrid",
|
|
33
|
-
componentId: "sc-4l957f-0"
|
|
34
|
-
})({
|
|
31
|
+
const BaseGrid = styled(View)({
|
|
35
32
|
display: 'flex',
|
|
36
33
|
flexDirection: 'row'
|
|
37
34
|
}, variant({
|
|
@@ -32,10 +32,7 @@ const IconButton = /*#__PURE__*/forwardRef(({
|
|
|
32
32
|
})
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
|
-
const BaseIconButton = styled(UnstyledButton)
|
|
36
|
-
displayName: "IconButton__BaseIconButton",
|
|
37
|
-
componentId: "sc-13ybfes-0"
|
|
38
|
-
})(({
|
|
35
|
+
const BaseIconButton = styled(UnstyledButton)(({
|
|
39
36
|
$loading,
|
|
40
37
|
$disabled
|
|
41
38
|
}) => ({
|
|
@@ -29,10 +29,7 @@ const IconToggleButton = ({
|
|
|
29
29
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {})
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
const BaseIconToggleButton = styled(UnstyledButton)
|
|
33
|
-
displayName: "IconToggleButton__BaseIconToggleButton",
|
|
34
|
-
componentId: "sc-1y68w0-0"
|
|
35
|
-
})(({
|
|
32
|
+
const BaseIconToggleButton = styled(UnstyledButton)(({
|
|
36
33
|
$disabled
|
|
37
34
|
}) => ({
|
|
38
35
|
'position': 'relative',
|
package/esm/core/Space/index.js
CHANGED
|
@@ -3,9 +3,10 @@ import '../../node_modules/styled-system/dist/index.esm.js';
|
|
|
3
3
|
import { sx } from '../../utils/styled-system/index.js';
|
|
4
4
|
import { space } from '../../node_modules/@styled-system/space/dist/index.esm.js';
|
|
5
5
|
|
|
6
|
-
const Space = styled.div
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
6
|
+
const Space = styled.div`
|
|
7
|
+
width: inherit;
|
|
8
|
+
${space};
|
|
9
|
+
${sx}
|
|
10
|
+
`;
|
|
10
11
|
|
|
11
12
|
export { Space as default };
|
|
@@ -3,11 +3,17 @@ import SvgProgressGradient from '../../packages/icons/esm/ProgressGradient.js';
|
|
|
3
3
|
import color from '../../packages/token-studio/esm/token/color/index.js';
|
|
4
4
|
import styled, { keyframes } from 'styled-components';
|
|
5
5
|
|
|
6
|
-
const spin = keyframes
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
const spin = keyframes`
|
|
7
|
+
from {
|
|
8
|
+
transform: rotate(0);
|
|
9
|
+
}
|
|
10
|
+
to {
|
|
11
|
+
transform: rotate(360deg);
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
const Spinner = styled(SvgProgressGradient)`
|
|
15
|
+
animation: ${spin} 1000ms infinite steps(8, end);
|
|
16
|
+
`;
|
|
11
17
|
Spinner.defaultProps = {
|
|
12
18
|
width: 32,
|
|
13
19
|
height: 32,
|
package/esm/core/Stack/index.js
CHANGED
|
@@ -21,10 +21,7 @@ const Stack = /*#__PURE__*/forwardRef(({
|
|
|
21
21
|
...props,
|
|
22
22
|
children: children
|
|
23
23
|
}));
|
|
24
|
-
const BaseStack = styled(View)
|
|
25
|
-
displayName: "Stack__BaseStack",
|
|
26
|
-
componentId: "sc-1lqh56h-0"
|
|
27
|
-
})({
|
|
24
|
+
const BaseStack = styled(View)({
|
|
28
25
|
display: 'flex',
|
|
29
26
|
flexDirection: 'row',
|
|
30
27
|
flexWrap: 'wrap'
|
package/esm/core/Text/index.js
CHANGED
|
@@ -6,10 +6,7 @@ import { variant } from '../../node_modules/@styled-system/variant/dist/index.es
|
|
|
6
6
|
import { compose } from '../../node_modules/@styled-system/core/dist/index.esm.js';
|
|
7
7
|
import { color } from '../../node_modules/@styled-system/color/dist/index.esm.js';
|
|
8
8
|
|
|
9
|
-
const Text = styled.span
|
|
10
|
-
displayName: "Text",
|
|
11
|
-
componentId: "sc-yuorjy-0"
|
|
12
|
-
})({
|
|
9
|
+
const Text = styled.span({
|
|
13
10
|
'display': 'block',
|
|
14
11
|
'whiteSpace': 'pre-wrap',
|
|
15
12
|
'& > span': {
|
package/esm/core/View/index.js
CHANGED
|
@@ -10,9 +10,9 @@ import { border } from '../../node_modules/@styled-system/border/dist/index.esm.
|
|
|
10
10
|
import { position } from '../../node_modules/@styled-system/position/dist/index.esm.js';
|
|
11
11
|
import { shadow } from '../../node_modules/@styled-system/shadow/dist/index.esm.js';
|
|
12
12
|
|
|
13
|
-
const View = styled.div
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
const View = styled.div`
|
|
14
|
+
${compose(layout, color, flexbox, background, border, position, shadow)}
|
|
15
|
+
${sx}
|
|
16
|
+
`;
|
|
17
17
|
|
|
18
18
|
export { View as default };
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { sx } from '../utils/styled-system/index.js';
|
|
3
3
|
|
|
4
|
-
const UnstyledButton = styled.button
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
const UnstyledButton = styled.button`
|
|
5
|
+
background: none;
|
|
6
|
+
border: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
outline: none;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
|
|
11
|
+
${sx}
|
|
12
|
+
`;
|
|
8
13
|
|
|
9
14
|
export { UnstyledButton as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
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",
|
|
@@ -11,9 +11,11 @@
|
|
|
11
11
|
"esm"
|
|
12
12
|
],
|
|
13
13
|
"exports": {
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
".": {
|
|
15
|
+
"require": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./esm/index.js"
|
|
18
|
+
}
|
|
17
19
|
},
|
|
18
20
|
"repository": {
|
|
19
21
|
"type": "git",
|
|
@@ -32,9 +34,9 @@
|
|
|
32
34
|
"@types/lodash-es": "^4.17.9",
|
|
33
35
|
"@types/styled-system": "^5.1.17",
|
|
34
36
|
"@types/styled-system__css": "^5.0.17",
|
|
35
|
-
"babel-plugin-styled-components": "^2.1.4",
|
|
36
37
|
"csstype": "^3.1.2",
|
|
37
38
|
"react": "^18.2.0",
|
|
39
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
38
40
|
"styled-components": "^6.0.7"
|
|
39
41
|
},
|
|
40
42
|
"peerDependencies": {
|
|
@@ -49,5 +51,5 @@
|
|
|
49
51
|
"@teamturing/token-studio": "^1.1.6",
|
|
50
52
|
"styled-system": "^5.1.5"
|
|
51
53
|
},
|
|
52
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "132ebfc316f17f955e98cb7a55cdebce59b219be"
|
|
53
55
|
}
|