@teamturing/react-kit 2.42.3 → 2.43.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/dist/core/Grid/index.d.ts +8 -0
- package/dist/index.js +33 -12
- package/dist/theme/index.d.ts +2 -0
- package/esm/core/Grid/index.js +25 -10
- package/esm/packages/token-studio/esm/foundation/gradient/colorStopList/index.js +2 -1
- package/esm/packages/token-studio/esm/token/gradient/index.js +7 -2
- package/package.json +3 -3
|
@@ -7,6 +7,10 @@ type Props = {
|
|
|
7
7
|
gapX?: ResponsiveValue<SpaceKey>;
|
|
8
8
|
gapY?: ResponsiveValue<SpaceKey>;
|
|
9
9
|
wrap?: ResponsiveValue<boolean>;
|
|
10
|
+
/**
|
|
11
|
+
* 화면의 레이아웃을 위해 사용하는 경우 document size를 넘어가는 경우를 방지하기 위해 사용합니다.
|
|
12
|
+
*/
|
|
13
|
+
layout?: boolean;
|
|
10
14
|
} & Pick<ViewProps, 'alignItems' | 'justifyContent' | 'sx'> & Pick<HTMLAttributes<HTMLDivElement>, 'className'> & AsProp;
|
|
11
15
|
type UnitSizeType = 'min' | 'max' | number;
|
|
12
16
|
type GridUnitProps = {
|
|
@@ -16,6 +20,10 @@ declare const _default: import("react").ForwardRefExoticComponent<{
|
|
|
16
20
|
gapX?: ResponsiveValue<0 | 1 | 20 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 12 | 14 | 16 | 18 | "-80" | "-50" | "-48" | "-40" | "-32" | "-30" | "-28" | "-24" | "-20" | "-18" | "-16" | "-14" | "-12" | "-10" | "-8" | "-7" | "-6" | "-5" | "-4" | "-3" | "-2" | "-1" | "-0.5" | "-0.25" | 0.25 | 0.5 | 24 | 28 | 30 | 32 | 40 | 48 | 50 | 80> | undefined;
|
|
17
21
|
gapY?: ResponsiveValue<0 | 1 | 20 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 12 | 14 | 16 | 18 | "-80" | "-50" | "-48" | "-40" | "-32" | "-30" | "-28" | "-24" | "-20" | "-18" | "-16" | "-14" | "-12" | "-10" | "-8" | "-7" | "-6" | "-5" | "-4" | "-3" | "-2" | "-1" | "-0.5" | "-0.25" | 0.25 | 0.5 | 24 | 28 | 30 | 32 | 40 | 48 | 50 | 80> | undefined;
|
|
18
22
|
wrap?: ResponsiveValue<boolean> | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* 화면의 레이아웃을 위해 사용하는 경우 document size를 넘어가는 경우를 방지하기 위해 사용합니다.
|
|
25
|
+
*/
|
|
26
|
+
layout?: boolean | undefined;
|
|
19
27
|
} & Pick<ViewProps, "alignItems" | "justifyContent" | "sx"> & Pick<HTMLAttributes<HTMLDivElement>, "className"> & AsProp & {
|
|
20
28
|
children?: import("react").ReactNode;
|
|
21
29
|
} & import("react").RefAttributes<HTMLDivElement>> & {
|
package/dist/index.js
CHANGED
|
@@ -6675,28 +6675,43 @@ const BaseGrid = styled__default.default(View)({
|
|
|
6675
6675
|
display: 'flex',
|
|
6676
6676
|
flexDirection: 'row'
|
|
6677
6677
|
}, ({
|
|
6678
|
-
theme
|
|
6678
|
+
theme,
|
|
6679
|
+
layout
|
|
6679
6680
|
}) => variant({
|
|
6680
6681
|
prop: 'gapX',
|
|
6681
6682
|
variants: Object.fromEntries(Object.entries(theme.space).map(([key, value]) => {
|
|
6682
6683
|
const styleValue = {
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6684
|
+
...(layout ? {
|
|
6685
|
+
'& > *': {
|
|
6686
|
+
pl: forcePixelValue(value)
|
|
6687
|
+
},
|
|
6688
|
+
'ml': forcePixelValue(-value)
|
|
6689
|
+
} : {
|
|
6690
|
+
'& > *': {
|
|
6691
|
+
px: forcePixelValue(value / 2)
|
|
6692
|
+
},
|
|
6693
|
+
'mx': forcePixelValue(-value / 2)
|
|
6694
|
+
})
|
|
6687
6695
|
};
|
|
6688
6696
|
return [key, styleValue];
|
|
6689
6697
|
}))
|
|
6690
6698
|
}), ({
|
|
6691
|
-
theme
|
|
6699
|
+
theme,
|
|
6700
|
+
layout
|
|
6692
6701
|
}) => variant({
|
|
6693
6702
|
prop: 'gapY',
|
|
6694
6703
|
variants: Object.fromEntries(Object.entries(theme.space).map(([key, value]) => {
|
|
6695
6704
|
const styleValue = {
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6705
|
+
...(layout ? {
|
|
6706
|
+
'& > *': {
|
|
6707
|
+
pt: forcePixelValue(value)
|
|
6708
|
+
}
|
|
6709
|
+
} : {
|
|
6710
|
+
'& > *': {
|
|
6711
|
+
mt: forcePixelValue(value)
|
|
6712
|
+
}
|
|
6713
|
+
}),
|
|
6714
|
+
mt: forcePixelValue(-value)
|
|
6700
6715
|
};
|
|
6701
6716
|
return [key, styleValue];
|
|
6702
6717
|
}))
|
|
@@ -39168,7 +39183,8 @@ const colorStopList = {
|
|
|
39168
39183
|
colorStopListVioletPink: '#8E6CF0, #CF75F3',
|
|
39169
39184
|
colorStopListBlackGray: '#0F0E0F, #595959',
|
|
39170
39185
|
colorStopListWhite: '#FFFFFF, #FFFFFF00',
|
|
39171
|
-
colorStopListBlack: '#000000, #00000000'
|
|
39186
|
+
colorStopListBlack: '#000000, #00000000',
|
|
39187
|
+
colorStopListPinkVioletBlue: '#FF6DEB, #8E6EF1, #5F9EFF'
|
|
39172
39188
|
};
|
|
39173
39189
|
|
|
39174
39190
|
const direction = {
|
|
@@ -39181,12 +39197,16 @@ const direction = {
|
|
|
39181
39197
|
|
|
39182
39198
|
const generateGradientTokenValue = (direction$1, colorStopList$1) => `${direction[direction$1]}, ${colorStopList[colorStopList$1]}`;
|
|
39183
39199
|
const textGradient = {
|
|
39184
|
-
'text/accent': generateGradientTokenValue('directionToRightBottom', 'colorStopListVioletPink')
|
|
39200
|
+
'text/accent': generateGradientTokenValue('directionToRightBottom', 'colorStopListVioletPink'),
|
|
39201
|
+
'text/accent/pinkblue': generateGradientTokenValue('directionToRightBottom', 'colorStopListPinkVioletBlue')
|
|
39185
39202
|
};
|
|
39186
39203
|
const bgGradient = {
|
|
39187
39204
|
'bg/accent/violet': generateGradientTokenValue('directionToRightBottom', 'colorStopListVioletPink'),
|
|
39188
39205
|
'bg/accent/neutral': generateGradientTokenValue('directionToRightBottom', 'colorStopListBlackGray')
|
|
39189
39206
|
};
|
|
39207
|
+
const iconGradient = {
|
|
39208
|
+
'icon/accent/pinkblue': generateGradientTokenValue('directionToRightBottom', 'colorStopListPinkVioletBlue')
|
|
39209
|
+
};
|
|
39190
39210
|
const borderGradient = {
|
|
39191
39211
|
'border/accent/violet': generateGradientTokenValue('directionToRightBottom', 'colorStopListVioletPink')
|
|
39192
39212
|
};
|
|
@@ -39206,6 +39226,7 @@ const overlayGradient = {
|
|
|
39206
39226
|
};
|
|
39207
39227
|
const gradient = {
|
|
39208
39228
|
...textGradient,
|
|
39229
|
+
...iconGradient,
|
|
39209
39230
|
...bgGradient,
|
|
39210
39231
|
...borderGradient,
|
|
39211
39232
|
...overlayGradient
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -295,7 +295,9 @@ declare const theme: {
|
|
|
295
295
|
readonly 'border/accent/violet': string;
|
|
296
296
|
readonly 'bg/accent/violet': string;
|
|
297
297
|
readonly 'bg/accent/neutral': string;
|
|
298
|
+
readonly 'icon/accent/pinkblue': string;
|
|
298
299
|
readonly 'text/accent': string;
|
|
300
|
+
readonly 'text/accent/pinkblue': string;
|
|
299
301
|
};
|
|
300
302
|
shadows: {
|
|
301
303
|
'shadow/overlay': string;
|
package/esm/core/Grid/index.js
CHANGED
|
@@ -31,28 +31,43 @@ const BaseGrid = styled(View)({
|
|
|
31
31
|
display: 'flex',
|
|
32
32
|
flexDirection: 'row'
|
|
33
33
|
}, ({
|
|
34
|
-
theme
|
|
34
|
+
theme,
|
|
35
|
+
layout
|
|
35
36
|
}) => variant({
|
|
36
37
|
prop: 'gapX',
|
|
37
38
|
variants: Object.fromEntries(Object.entries(theme.space).map(([key, value]) => {
|
|
38
39
|
const styleValue = {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
...(layout ? {
|
|
41
|
+
'& > *': {
|
|
42
|
+
pl: forcePixelValue(value)
|
|
43
|
+
},
|
|
44
|
+
'ml': forcePixelValue(-value)
|
|
45
|
+
} : {
|
|
46
|
+
'& > *': {
|
|
47
|
+
px: forcePixelValue(value / 2)
|
|
48
|
+
},
|
|
49
|
+
'mx': forcePixelValue(-value / 2)
|
|
50
|
+
})
|
|
43
51
|
};
|
|
44
52
|
return [key, styleValue];
|
|
45
53
|
}))
|
|
46
54
|
}), ({
|
|
47
|
-
theme
|
|
55
|
+
theme,
|
|
56
|
+
layout
|
|
48
57
|
}) => variant({
|
|
49
58
|
prop: 'gapY',
|
|
50
59
|
variants: Object.fromEntries(Object.entries(theme.space).map(([key, value]) => {
|
|
51
60
|
const styleValue = {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
61
|
+
...(layout ? {
|
|
62
|
+
'& > *': {
|
|
63
|
+
pt: forcePixelValue(value)
|
|
64
|
+
}
|
|
65
|
+
} : {
|
|
66
|
+
'& > *': {
|
|
67
|
+
mt: forcePixelValue(value)
|
|
68
|
+
}
|
|
69
|
+
}),
|
|
70
|
+
mt: forcePixelValue(-value)
|
|
56
71
|
};
|
|
57
72
|
return [key, styleValue];
|
|
58
73
|
}))
|
|
@@ -2,7 +2,8 @@ const colorStopList = {
|
|
|
2
2
|
colorStopListVioletPink: '#8E6CF0, #CF75F3',
|
|
3
3
|
colorStopListBlackGray: '#0F0E0F, #595959',
|
|
4
4
|
colorStopListWhite: '#FFFFFF, #FFFFFF00',
|
|
5
|
-
colorStopListBlack: '#000000, #00000000'
|
|
5
|
+
colorStopListBlack: '#000000, #00000000',
|
|
6
|
+
colorStopListPinkVioletBlue: '#FF6DEB, #8E6EF1, #5F9EFF'
|
|
6
7
|
};
|
|
7
8
|
|
|
8
9
|
export { colorStopList as default };
|
|
@@ -3,12 +3,16 @@ import direction from '../../foundation/gradient/direction/index.js';
|
|
|
3
3
|
|
|
4
4
|
const generateGradientTokenValue = (direction$1, colorStopList$1) => `${direction[direction$1]}, ${colorStopList[colorStopList$1]}`;
|
|
5
5
|
const textGradient = {
|
|
6
|
-
'text/accent': generateGradientTokenValue('directionToRightBottom', 'colorStopListVioletPink')
|
|
6
|
+
'text/accent': generateGradientTokenValue('directionToRightBottom', 'colorStopListVioletPink'),
|
|
7
|
+
'text/accent/pinkblue': generateGradientTokenValue('directionToRightBottom', 'colorStopListPinkVioletBlue')
|
|
7
8
|
};
|
|
8
9
|
const bgGradient = {
|
|
9
10
|
'bg/accent/violet': generateGradientTokenValue('directionToRightBottom', 'colorStopListVioletPink'),
|
|
10
11
|
'bg/accent/neutral': generateGradientTokenValue('directionToRightBottom', 'colorStopListBlackGray')
|
|
11
12
|
};
|
|
13
|
+
const iconGradient = {
|
|
14
|
+
'icon/accent/pinkblue': generateGradientTokenValue('directionToRightBottom', 'colorStopListPinkVioletBlue')
|
|
15
|
+
};
|
|
12
16
|
const borderGradient = {
|
|
13
17
|
'border/accent/violet': generateGradientTokenValue('directionToRightBottom', 'colorStopListVioletPink')
|
|
14
18
|
};
|
|
@@ -28,9 +32,10 @@ const overlayGradient = {
|
|
|
28
32
|
};
|
|
29
33
|
const gradient = {
|
|
30
34
|
...textGradient,
|
|
35
|
+
...iconGradient,
|
|
31
36
|
...bgGradient,
|
|
32
37
|
...borderGradient,
|
|
33
38
|
...overlayGradient
|
|
34
39
|
};
|
|
35
40
|
|
|
36
|
-
export { bgGradient, borderGradient, gradient as default, overlayGradient, textGradient };
|
|
41
|
+
export { bgGradient, borderGradient, gradient as default, iconGradient, overlayGradient, textGradient };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.43.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",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@floating-ui/react-dom": "^2.0.2",
|
|
57
57
|
"@primer/behaviors": "^1.3.6",
|
|
58
58
|
"@teamturing/icons": "^1.49.0",
|
|
59
|
-
"@teamturing/token-studio": "^1.
|
|
59
|
+
"@teamturing/token-studio": "^1.11.0",
|
|
60
60
|
"@teamturing/utils": "^1.4.0",
|
|
61
61
|
"framer-motion": "^10.16.4",
|
|
62
62
|
"lodash.debounce": "^4.0.8",
|
|
@@ -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": "7a5a4ccc3b698c7c5f4e2fe6f8cb209cdf38e245"
|
|
70
70
|
}
|