@teamturing/react-kit 2.19.22 → 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<
|
|
43
|
+
size?: ResponsiveValue<PillSizeType> | undefined;
|
|
44
44
|
/**
|
|
45
45
|
* 색을 정의합니다.
|
|
46
46
|
* hover, active, focused, disabled, loading 등의 모든 상황에 관여합니다.
|
package/dist/index.js
CHANGED
|
@@ -21342,6 +21342,10 @@ const SearchSelectInput = ({
|
|
|
21342
21342
|
const focusInput = () => {
|
|
21343
21343
|
labelInputRef.current?.focus();
|
|
21344
21344
|
};
|
|
21345
|
+
const handleClose = () => {
|
|
21346
|
+
focusInput();
|
|
21347
|
+
onClose?.();
|
|
21348
|
+
};
|
|
21345
21349
|
const {
|
|
21346
21350
|
id,
|
|
21347
21351
|
disabled,
|
|
@@ -21395,7 +21399,7 @@ const SearchSelectInput = ({
|
|
|
21395
21399
|
...focusZoneSettings
|
|
21396
21400
|
},
|
|
21397
21401
|
onOpen: onOpen,
|
|
21398
|
-
onClose:
|
|
21402
|
+
onClose: handleClose,
|
|
21399
21403
|
renderOverlay: (overlayProps, overlayHandler, {
|
|
21400
21404
|
elements
|
|
21401
21405
|
}) => /*#__PURE__*/jsxRuntimeExports.jsxs(Overlay$1, {
|
|
@@ -22538,9 +22542,6 @@ const Pill = ({
|
|
|
22538
22542
|
const BasePill = styled__default.default(UnstyledButton)`
|
|
22539
22543
|
display: inline-flex;
|
|
22540
22544
|
align-items: center;
|
|
22541
|
-
border-radius: ${({
|
|
22542
|
-
theme
|
|
22543
|
-
}) => forcePixelValue(theme.radii.xs)};
|
|
22544
22545
|
column-gap: ${({
|
|
22545
22546
|
theme
|
|
22546
22547
|
}) => forcePixelValue(theme.space[2])};
|
|
@@ -22589,10 +22590,28 @@ const BasePill = styled__default.default(UnstyledButton)`
|
|
|
22589
22590
|
}) => variant({
|
|
22590
22591
|
prop: 'size',
|
|
22591
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
|
+
},
|
|
22592
22610
|
m: {
|
|
22593
22611
|
'pl': 3,
|
|
22594
22612
|
'pr': !hasRemoveButton ? 3 : 1,
|
|
22595
22613
|
'height': forcePixelValue(32),
|
|
22614
|
+
'borderRadius': 'xs',
|
|
22596
22615
|
'fontSize': theme.fontSizes.xxs,
|
|
22597
22616
|
'fontWeight': theme.fontWeights.medium,
|
|
22598
22617
|
'lineHeight': theme.lineHeights[2],
|
package/esm/core/Pill/index.js
CHANGED
|
@@ -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],
|
|
@@ -39,6 +39,10 @@ const SearchSelectInput = ({
|
|
|
39
39
|
const focusInput = () => {
|
|
40
40
|
labelInputRef.current?.focus();
|
|
41
41
|
};
|
|
42
|
+
const handleClose = () => {
|
|
43
|
+
focusInput();
|
|
44
|
+
onClose?.();
|
|
45
|
+
};
|
|
42
46
|
const {
|
|
43
47
|
id,
|
|
44
48
|
disabled,
|
|
@@ -92,7 +96,7 @@ const SearchSelectInput = ({
|
|
|
92
96
|
...focusZoneSettings
|
|
93
97
|
},
|
|
94
98
|
onOpen: onOpen,
|
|
95
|
-
onClose:
|
|
99
|
+
onClose: handleClose,
|
|
96
100
|
renderOverlay: (overlayProps, overlayHandler, {
|
|
97
101
|
elements
|
|
98
102
|
}) => /*#__PURE__*/jsxRuntimeExports.jsxs(Overlay, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.19.
|
|
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": "
|
|
65
|
+
"gitHead": "f2cd17bfe61fb493b4ae8b36a1f1bd433838caa1"
|
|
66
66
|
}
|