@teamturing/react-kit 2.19.23 → 2.19.24

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.
@@ -1,7 +1,7 @@
1
1
  import { ComponentType, ElementType, HTMLAttributes, ReactNode, SVGProps, MouseEvent as ReactMouseEvent, KeyboardEvent as ReactKeyboardEvent } from 'react';
2
2
  import { ResponsiveValue } from 'styled-system';
3
3
  import { SxProp } from '../../utils/styled-system';
4
- type PillSizeType = 'm';
4
+ type PillSizeType = 's' | 'm';
5
5
  type PillVariantType = 'outlined' | 'secondary';
6
6
  type Props = {
7
7
  /**
@@ -40,7 +40,7 @@ declare const _default: import("react").ForwardRefExoticComponent<{
40
40
  * 크기를 정의합니다.
41
41
  * 반응형 디자인이 적용됩니다.
42
42
  */
43
- size?: ResponsiveValue<"m"> | undefined;
43
+ size?: ResponsiveValue<PillSizeType> | undefined;
44
44
  /**
45
45
  * 색을 정의합니다.
46
46
  * hover, active, focused, disabled, loading 등의 모든 상황에 관여합니다.
package/dist/index.js CHANGED
@@ -22542,9 +22542,6 @@ const Pill = ({
22542
22542
  const BasePill = styled__default.default(UnstyledButton)`
22543
22543
  display: inline-flex;
22544
22544
  align-items: center;
22545
- border-radius: ${({
22546
- theme
22547
- }) => forcePixelValue(theme.radii.xs)};
22548
22545
  column-gap: ${({
22549
22546
  theme
22550
22547
  }) => forcePixelValue(theme.space[2])};
@@ -22593,10 +22590,28 @@ const BasePill = styled__default.default(UnstyledButton)`
22593
22590
  }) => variant({
22594
22591
  prop: 'size',
22595
22592
  variants: {
22593
+ s: {
22594
+ 'pl': 2,
22595
+ 'pr': !hasRemoveButton ? 2 : 0.25,
22596
+ 'height': forcePixelValue(20),
22597
+ 'borderRadius': 'xxs',
22598
+ 'fontSize': theme.fontSizes.xxs,
22599
+ 'fontWeight': theme.fontWeights.medium,
22600
+ 'lineHeight': theme.lineHeights[2],
22601
+ 'columnGap': 0.25,
22602
+ '& svg': {
22603
+ minWidth: 12,
22604
+ height: 12
22605
+ },
22606
+ '& > div': {
22607
+ p: 1
22608
+ }
22609
+ },
22596
22610
  m: {
22597
22611
  'pl': 3,
22598
22612
  'pr': !hasRemoveButton ? 3 : 1,
22599
22613
  'height': forcePixelValue(32),
22614
+ 'borderRadius': 'xs',
22600
22615
  'fontSize': theme.fontSizes.xxs,
22601
22616
  'fontWeight': theme.fontWeights.medium,
22602
22617
  'lineHeight': theme.lineHeights[2],
@@ -71,9 +71,6 @@ const Pill = ({
71
71
  const BasePill = styled(UnstyledButton)`
72
72
  display: inline-flex;
73
73
  align-items: center;
74
- border-radius: ${({
75
- theme
76
- }) => forcePixelValue(theme.radii.xs)};
77
74
  column-gap: ${({
78
75
  theme
79
76
  }) => forcePixelValue(theme.space[2])};
@@ -122,10 +119,28 @@ const BasePill = styled(UnstyledButton)`
122
119
  }) => variant({
123
120
  prop: 'size',
124
121
  variants: {
122
+ s: {
123
+ 'pl': 2,
124
+ 'pr': !hasRemoveButton ? 2 : 0.25,
125
+ 'height': forcePixelValue(20),
126
+ 'borderRadius': 'xxs',
127
+ 'fontSize': theme.fontSizes.xxs,
128
+ 'fontWeight': theme.fontWeights.medium,
129
+ 'lineHeight': theme.lineHeights[2],
130
+ 'columnGap': 0.25,
131
+ '& svg': {
132
+ minWidth: 12,
133
+ height: 12
134
+ },
135
+ '& > div': {
136
+ p: 1
137
+ }
138
+ },
125
139
  m: {
126
140
  'pl': 3,
127
141
  'pr': !hasRemoveButton ? 3 : 1,
128
142
  'height': forcePixelValue(32),
143
+ 'borderRadius': 'xs',
129
144
  'fontSize': theme.fontSizes.xxs,
130
145
  'fontWeight': theme.fontWeights.medium,
131
146
  'lineHeight': theme.lineHeights[2],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.19.23",
3
+ "version": "2.19.24",
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",
@@ -62,5 +62,5 @@
62
62
  "react-is": "^18.2.0",
63
63
  "styled-system": "^5.1.5"
64
64
  },
65
- "gitHead": "58ccb149838349dd9245d2deaf370d14d4040ce9"
65
+ "gitHead": "f2cd17bfe61fb493b4ae8b36a1f1bd433838caa1"
66
66
  }