@teamturing/react-kit 2.50.0 → 2.51.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.
@@ -6,7 +6,7 @@ import { ActionListSectionHeaderProps } from './ActionListSectionHeader';
6
6
  type Props = {
7
7
  /**
8
8
  * ActionList의 아이템에 선택이 되어있다는 것을 표시할 때 사용하는 속성입니다.
9
- * `undefine`: 선택에 대한 표시를 하지 않습니다.
9
+ * `undefined`: 선택에 대한 표시를 하지 않습니다.
10
10
  * `single`: 하나의 선택된 아이템에 대해, CheckIcon을 보여줍니다.
11
11
  * `multiple`: 모든 아이템에 Checkbox를 표시합니다.
12
12
  */
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { ColorKey, RadiiKey } from '@teamturing/token-studio';
3
+ import { BackgroundProps, BorderColorProps, BorderProps, BorderRadiusProps, ColorProps, FlexboxProps, LayoutProps, PositionProps, ShadowProps, Theme } from 'styled-system';
4
+ import { SxProp } from '../../utils/styled-system';
5
+ type Props = {} & SxProp & LayoutProps & ColorProps<Theme, ColorKey> & FlexboxProps & BackgroundProps & BorderProps & BorderColorProps<Theme, ColorKey> & PositionProps & ShadowProps<Theme> & BorderRadiusProps<Theme, RadiiKey>;
6
+ declare const Card: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Props>>;
7
+ export default Card;
8
+ export type { Props as CardProps };
package/dist/index.d.ts CHANGED
@@ -17,6 +17,8 @@ export { default as Breadcrumbs } from './core/Breadcrumbs';
17
17
  export type { BreadcrumbsProps } from './core/Breadcrumbs';
18
18
  export { default as Button } from './core/Button';
19
19
  export type { ButtonProps } from './core/Button';
20
+ export { default as Card } from './core/Card';
21
+ export type { CardProps } from './core/Card';
20
22
  export { default as Checkbox } from './core/Checkbox';
21
23
  export type { CheckboxProps } from './core/Checkbox';
22
24
  export { default as Chip } from './core/Chip';
package/dist/index.js CHANGED
@@ -35952,6 +35952,20 @@ const BaseSpinner = styled__default.default(Spinner)(variant({
35952
35952
  }
35953
35953
  }));
35954
35954
 
35955
+ const Card = styled__default.default.div`
35956
+ border-width: ${forcePixelValue(1)};
35957
+ border-style: solid;
35958
+ border-color: ${({
35959
+ theme
35960
+ }) => theme.colors['border/neutral']};
35961
+ border-radius: ${({
35962
+ theme
35963
+ }) => forcePixelValue(theme.radii['s'])};
35964
+
35965
+ ${compose(layout$1, color$2, flexbox, background, border, position, shadow$1)}
35966
+ ${sx}
35967
+ `;
35968
+
35955
35969
  const useSafeLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? React.useLayoutEffect : React.useEffect;
35956
35970
 
35957
35971
  const Checkbox = ({
@@ -42178,7 +42192,7 @@ const textColor$2 = {
42178
42192
  'text/neutral/subtler': palette.gray400,
42179
42193
  'text/neutral/subtle': palette.gray200,
42180
42194
  'text/neutral': palette.gray50,
42181
- 'text/inverse': palette.white,
42195
+ 'text/inverse': palette.gray900,
42182
42196
  'text/inverse/subtle': palette.gray700,
42183
42197
  'text/inverse/subtler': palette.gray600,
42184
42198
  'text/disabled': palette.gray500,
@@ -43653,6 +43667,7 @@ exports.AvatarGroup = index$c;
43653
43667
  exports.BadgeAttacher = BadgeAttacher;
43654
43668
  exports.Breadcrumbs = index$b;
43655
43669
  exports.Button = Button;
43670
+ exports.Card = Card;
43656
43671
  exports.Checkbox = Checkbox$1;
43657
43672
  exports.Chip = Chip;
43658
43673
  exports.ClickArea = index$a;
@@ -801,7 +801,7 @@ declare const gpaiDarkTheme: {
801
801
  readonly 'text/neutral/subtler': "#8D94A0";
802
802
  readonly 'text/neutral/subtle': "#E5E7EB";
803
803
  readonly 'text/neutral': "#F9FAFB";
804
- readonly 'text/inverse': "#FFFFFF";
804
+ readonly 'text/inverse': "#33373B";
805
805
  readonly 'text/inverse/subtle': "#575C64";
806
806
  readonly 'text/inverse/subtler': "#6F7680";
807
807
  readonly 'text/disabled': "#7A828D";
@@ -0,0 +1,28 @@
1
+ import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
2
+ import styled from 'styled-components';
3
+ import '../../node_modules/styled-system/dist/index.esm.js';
4
+ import { sx } from '../../utils/styled-system/index.js';
5
+ import { compose } from '../../node_modules/@styled-system/core/dist/index.esm.js';
6
+ import { layout } from '../../node_modules/@styled-system/layout/dist/index.esm.js';
7
+ import { color } from '../../node_modules/@styled-system/color/dist/index.esm.js';
8
+ import { flexbox } from '../../node_modules/@styled-system/flexbox/dist/index.esm.js';
9
+ import { background } from '../../node_modules/@styled-system/background/dist/index.esm.js';
10
+ import { border } from '../../node_modules/@styled-system/border/dist/index.esm.js';
11
+ import { position } from '../../node_modules/@styled-system/position/dist/index.esm.js';
12
+ import { shadow } from '../../node_modules/@styled-system/shadow/dist/index.esm.js';
13
+
14
+ const Card = styled.div`
15
+ border-width: ${forcePixelValue(1)};
16
+ border-style: solid;
17
+ border-color: ${({
18
+ theme
19
+ }) => theme.colors['border/neutral']};
20
+ border-radius: ${({
21
+ theme
22
+ }) => forcePixelValue(theme.radii['s'])};
23
+
24
+ ${compose(layout, color, flexbox, background, border, position, shadow)}
25
+ ${sx}
26
+ `;
27
+
28
+ export { Card as default };
package/esm/index.js CHANGED
@@ -5,6 +5,7 @@ export { default as AvatarGroup } from './core/AvatarGroup/index.js';
5
5
  export { default as BadgeAttacher } from './core/BadgeAttacher/index.js';
6
6
  export { default as Breadcrumbs } from './core/Breadcrumbs/index.js';
7
7
  export { default as Button } from './core/Button/index.js';
8
+ export { default as Card } from './core/Card/index.js';
8
9
  export { default as Checkbox } from './core/Checkbox/index.js';
9
10
  export { default as Chip } from './core/Chip/index.js';
10
11
  export { default as ClickArea } from './core/ClickArea/index.js';
@@ -11,7 +11,7 @@ const textColor = {
11
11
  'text/neutral/subtler': palette.gray400,
12
12
  'text/neutral/subtle': palette.gray200,
13
13
  'text/neutral': palette.gray50,
14
- 'text/inverse': palette.white,
14
+ 'text/inverse': palette.gray900,
15
15
  'text/inverse/subtle': palette.gray700,
16
16
  'text/inverse/subtler': palette.gray600,
17
17
  'text/disabled': palette.gray500,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.50.0",
3
+ "version": "2.51.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",
@@ -56,7 +56,7 @@
56
56
  "@floating-ui/react": "^0.27.16",
57
57
  "@primer/behaviors": "^1.3.6",
58
58
  "@teamturing/icons": "^1.54.0",
59
- "@teamturing/token-studio": "^1.16.0",
59
+ "@teamturing/token-studio": "^1.16.1",
60
60
  "@teamturing/utils": "^1.5.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": "3bc1664a2228d255c71917a2ccda8c3d6a4c0f56"
69
+ "gitHead": "6d7c93197425ae82216518e407d5a57fda93d453"
70
70
  }