@teamturing/react-kit 2.60.3 → 2.61.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.
- package/dist/index.js +671 -1674
- package/esm/core/ActionList/ActionListItem.js +31 -111
- package/esm/core/ActionList/ActionListSectionHeader.js +9 -17
- package/esm/core/ActionList/index.js +4 -7
- package/esm/core/Avatar/index.js +6 -10
- package/esm/core/AvatarGroup/AvatarGroupItem.js +4 -6
- package/esm/core/AvatarGroup/index.js +13 -34
- package/esm/core/BadgeAttacher/index.js +4 -6
- package/esm/core/Breadcrumbs/BreadcrumbsItem.js +10 -27
- package/esm/core/Breadcrumbs/index.js +15 -34
- package/esm/core/Button/index.js +8 -2
- package/esm/core/Card/index.js +6 -11
- package/esm/core/Checkbox/index.js +26 -122
- package/esm/core/CheckboxOrRadioGroupFormControl/CheckboxOrRadioGroupFormControlErrorMessage.js +4 -3
- package/esm/core/CheckboxOrRadioGroupFormControl/CheckboxOrRadioGroupFormControlLabel.js +15 -30
- package/esm/core/CheckboxOrRadioGroupFormControl/CheckboxOrRadioGroupFormControlSuccessMessage.js +4 -3
- package/esm/core/Chip/index.js +4 -1
- package/esm/core/ClickArea/index.js +5 -6
- package/esm/core/CounterBadge/index.js +7 -14
- package/esm/core/Datagrid/DatagridBody.js +5 -19
- package/esm/core/Datagrid/DatagridHeader.js +6 -15
- package/esm/core/Datagrid/DatagridSubheader.js +7 -13
- package/esm/core/Datagrid/index.js +10 -18
- package/esm/core/Dialog/_UnstyledDialogBody.js +5 -9
- package/esm/core/Dialog/_UnstyledDialogFooter.js +5 -8
- package/esm/core/Dialog/_UnstyledDialogHeader.js +5 -8
- package/esm/core/Dialog/index.js +9 -15
- package/esm/core/Drawer/_UnstyledDrawerBody.js +5 -9
- package/esm/core/Drawer/_UnstyledDrawerFooter.js +5 -8
- package/esm/core/Drawer/_UnstyledDrawerHeader.js +5 -8
- package/esm/core/Drawer/index.js +9 -16
- package/esm/core/EmptyState/index.js +12 -31
- package/esm/core/FileItem/index.js +4 -1
- package/esm/core/Flash/index.js +14 -59
- package/esm/core/FormControl/FormControlErrorMessage.js +4 -3
- package/esm/core/FormControl/FormControlLabel.js +15 -30
- package/esm/core/FormControl/FormControlSuccessMessage.js +4 -3
- package/esm/core/GradientText/index.js +5 -2
- package/esm/core/Grid/index.js +4 -1
- package/esm/core/HorizontalDivider/index.js +4 -11
- package/esm/core/IconButton/index.js +4 -1
- package/esm/core/IconToggleButton/index.js +4 -1
- package/esm/core/Image/index.js +4 -4
- package/esm/core/Overlay/index.js +8 -18
- package/esm/core/Pagination/index.js +45 -109
- package/esm/core/Pill/index.js +12 -46
- package/esm/core/Radio/index.js +21 -90
- package/esm/core/SearchSelectInput/index.js +26 -88
- package/esm/core/Select/SelectOption.js +4 -1
- package/esm/core/Select/index.js +30 -96
- package/esm/core/Space/index.js +4 -5
- package/esm/core/Spinner/index.js +10 -10
- package/esm/core/Stack/index.js +4 -1
- package/esm/core/Switch/index.js +17 -65
- package/esm/core/Tab/TabItem.js +4 -1
- package/esm/core/Text/index.js +5 -2
- package/esm/core/TextInput/TextInputTrailingAction.js +10 -31
- package/esm/core/TextInput/index.js +40 -107
- package/esm/core/Textarea/index.js +40 -109
- package/esm/core/Toast/index.js +4 -1
- package/esm/core/Tooltip/BaseTooltip.js +12 -41
- package/esm/core/UploadInput/index.js +22 -90
- package/esm/core/View/index.js +4 -4
- package/esm/core/_UnstyledButton.js +5 -10
- package/esm/core/_UnstyledTable/UnstyledTableBody.js +4 -3
- package/esm/core/_UnstyledTable/UnstyledTableCell.js +4 -3
- package/esm/core/_UnstyledTable/UnstyledTableHead.js +4 -3
- package/esm/core/_UnstyledTable/UnstyledTableRow.js +4 -3
- package/esm/core/_UnstyledTable/index.js +4 -5
- package/package.json +3 -2
|
@@ -92,89 +92,36 @@ const UploadInput = ({
|
|
|
92
92
|
})]
|
|
93
93
|
});
|
|
94
94
|
};
|
|
95
|
-
const UploadInputWrapper = styled.div
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
flex-direction: column;
|
|
100
|
-
align-items: center;
|
|
101
|
-
justify-content: center;
|
|
102
|
-
row-gap: ${({
|
|
95
|
+
const UploadInputWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
96
|
+
displayName: "UploadInput__UploadInputWrapper",
|
|
97
|
+
componentId: "sc-1q0agb1-0"
|
|
98
|
+
})(["width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;row-gap:", ";padding:", ";& > svg{width:16px;height:16px;color:", ";}& > span{font-size:", ";font-weight:", ";line-height:", ";color:", ";}border-width:", ";border-style:dashed;border-color:", ";border-radius:", ";background-color:", ";&.upload-input__wrapper__active{background-color:", ";}position:relative;&:after{content:'';position:absolute;top:", ";right:", ";bottom:", ";left:", ";border:", " solid transparent;border-radius:", ";pointer-events:none;}&:focus-within{&:after{border-color:", ";}}& > button:focus-visible{outline:none;}", " transition:background-color 200ms ease-in-out;"], ({
|
|
103
99
|
theme
|
|
104
|
-
}) => forcePixelValue(theme.space[2])
|
|
105
|
-
padding: ${({
|
|
100
|
+
}) => forcePixelValue(theme.space[2]), ({
|
|
106
101
|
theme
|
|
107
|
-
}) => forcePixelValue(theme.space[4])
|
|
108
|
-
|
|
109
|
-
& > svg {
|
|
110
|
-
width: 16px;
|
|
111
|
-
height: 16px;
|
|
112
|
-
color: ${({
|
|
102
|
+
}) => forcePixelValue(theme.space[4]), ({
|
|
113
103
|
theme
|
|
114
|
-
}) => theme.colors['icon/neutral/bold']
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
& > span {
|
|
118
|
-
font-size: ${({
|
|
104
|
+
}) => theme.colors['icon/neutral/bold'], ({
|
|
119
105
|
theme
|
|
120
|
-
}) => forcePixelValue(theme.fontSizes.xs)
|
|
121
|
-
font-weight: ${({
|
|
106
|
+
}) => forcePixelValue(theme.fontSizes.xs), ({
|
|
122
107
|
theme
|
|
123
|
-
}) => theme.fontWeights.medium
|
|
124
|
-
line-height: ${({
|
|
108
|
+
}) => theme.fontWeights.medium, ({
|
|
125
109
|
theme
|
|
126
|
-
}) => theme.lineHeights[2]
|
|
127
|
-
color: ${({
|
|
110
|
+
}) => theme.lineHeights[2], ({
|
|
128
111
|
theme
|
|
129
|
-
}) => theme.colors['text/neutral/subtlest']
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
border-width: ${forcePixelValue(1)};
|
|
133
|
-
border-style: dashed;
|
|
134
|
-
border-color: ${({
|
|
112
|
+
}) => theme.colors['text/neutral/subtlest'], forcePixelValue(1), ({
|
|
135
113
|
theme
|
|
136
|
-
}) => theme.colors['border/neutral/bolder']
|
|
137
|
-
border-radius: ${({
|
|
114
|
+
}) => theme.colors['border/neutral/bolder'], ({
|
|
138
115
|
theme
|
|
139
|
-
}) => forcePixelValue(theme.radii.xs)
|
|
140
|
-
background-color: ${({
|
|
116
|
+
}) => forcePixelValue(theme.radii.xs), ({
|
|
141
117
|
theme
|
|
142
|
-
}) => theme.colors['bg/neutral/subtlest']
|
|
143
|
-
|
|
144
|
-
&.upload-input__wrapper__active {
|
|
145
|
-
background-color: ${({
|
|
118
|
+
}) => theme.colors['bg/neutral/subtlest'], ({
|
|
146
119
|
theme
|
|
147
|
-
}) => theme.colors['bg/selected/subtle']
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
position: relative;
|
|
151
|
-
&:after {
|
|
152
|
-
content: '';
|
|
153
|
-
position: absolute;
|
|
154
|
-
top: ${forcePixelValue(-1)};
|
|
155
|
-
right: ${forcePixelValue(-1)};
|
|
156
|
-
bottom: ${forcePixelValue(-1)};
|
|
157
|
-
left: ${forcePixelValue(-1)};
|
|
158
|
-
|
|
159
|
-
border: ${forcePixelValue(2)} solid transparent;
|
|
160
|
-
border-radius: ${({
|
|
120
|
+
}) => theme.colors['bg/selected/subtle'], forcePixelValue(-1), forcePixelValue(-1), forcePixelValue(-1), forcePixelValue(-1), forcePixelValue(2), ({
|
|
161
121
|
theme
|
|
162
|
-
}) => forcePixelValue(theme.radii.xs)
|
|
163
|
-
pointer-events: none;
|
|
164
|
-
}
|
|
165
|
-
&:focus-within {
|
|
166
|
-
&:after {
|
|
167
|
-
border-color: ${({
|
|
122
|
+
}) => forcePixelValue(theme.radii.xs), ({
|
|
168
123
|
theme
|
|
169
|
-
}) => theme.colors['border/focused']
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
& > button:focus-visible {
|
|
174
|
-
outline: none;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
${({
|
|
124
|
+
}) => theme.colors['border/focused'], ({
|
|
178
125
|
theme,
|
|
179
126
|
disabled
|
|
180
127
|
}) => disabled ? {
|
|
@@ -186,26 +133,11 @@ const UploadInputWrapper = styled.div`
|
|
|
186
133
|
'& > span': {
|
|
187
134
|
color: theme.colors['text/disabled']
|
|
188
135
|
}
|
|
189
|
-
} : {}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
font-size: inherit;
|
|
195
|
-
font-weight: inherit;
|
|
196
|
-
line-height: inherit;
|
|
197
|
-
font-family: inherit;
|
|
198
|
-
border-radius: inherit;
|
|
199
|
-
color: inherit;
|
|
200
|
-
transition: inherit;
|
|
201
|
-
|
|
202
|
-
border: 0;
|
|
203
|
-
background-color: transparent;
|
|
204
|
-
width: 100%;
|
|
205
|
-
&:focus {
|
|
206
|
-
outline: 0;
|
|
207
|
-
}
|
|
208
|
-
`;
|
|
136
|
+
} : {});
|
|
137
|
+
const UnstyledInput = /*#__PURE__*/styled.input.withConfig({
|
|
138
|
+
displayName: "UploadInput__UnstyledInput",
|
|
139
|
+
componentId: "sc-1q0agb1-1"
|
|
140
|
+
})(["font-size:inherit;font-weight:inherit;line-height:inherit;font-family:inherit;border-radius:inherit;color:inherit;transition:inherit;border:0;background-color:transparent;width:100%;&:focus{outline:0;}"]);
|
|
209
141
|
var index = /*#__PURE__*/forwardRef(UploadInput);
|
|
210
142
|
|
|
211
143
|
export { index as default };
|
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 = /*#__PURE__*/styled.div.withConfig({
|
|
14
|
+
displayName: "View",
|
|
15
|
+
componentId: "sc-1v428e-0"
|
|
16
|
+
})(["", " ", ""], compose(layout, color, flexbox, background, border, position, shadow, gap, columnGap, rowGap), sx);
|
|
17
17
|
|
|
18
18
|
export { View as default };
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { sx } from '../utils/styled-system/index.js';
|
|
3
3
|
|
|
4
|
-
const UnstyledButton = styled.button.attrs(props => ({
|
|
4
|
+
const UnstyledButton = /*#__PURE__*/styled.button.attrs(props => ({
|
|
5
5
|
type: props.type ?? 'button'
|
|
6
|
-
}))
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
outline: none;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
|
|
13
|
-
${sx}
|
|
14
|
-
`;
|
|
6
|
+
})).withConfig({
|
|
7
|
+
displayName: "_UnstyledButton__UnstyledButton",
|
|
8
|
+
componentId: "sc-j96ib-0"
|
|
9
|
+
})(["background:none;border:0;padding:0;outline:none;cursor:pointer;", ""], sx);
|
|
15
10
|
|
|
16
11
|
export { UnstyledButton as default };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { sx } from '../../utils/styled-system/index.js';
|
|
3
3
|
|
|
4
|
-
const UnstyledTableBody = styled.tbody
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const UnstyledTableBody = /*#__PURE__*/styled.tbody.withConfig({
|
|
5
|
+
displayName: "UnstyledTableBody",
|
|
6
|
+
componentId: "sc-uj992b-0"
|
|
7
|
+
})(["", ""], sx);
|
|
7
8
|
|
|
8
9
|
export { UnstyledTableBody as default };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { sx } from '../../utils/styled-system/index.js';
|
|
3
3
|
|
|
4
|
-
const UnstyledTableCell = styled.td
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const UnstyledTableCell = /*#__PURE__*/styled.td.withConfig({
|
|
5
|
+
displayName: "UnstyledTableCell",
|
|
6
|
+
componentId: "sc-1cmo9z9-0"
|
|
7
|
+
})(["", ""], sx);
|
|
7
8
|
|
|
8
9
|
export { UnstyledTableCell as default };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { sx } from '../../utils/styled-system/index.js';
|
|
3
3
|
|
|
4
|
-
const UnstyledTableHead = styled.thead
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const UnstyledTableHead = /*#__PURE__*/styled.thead.withConfig({
|
|
5
|
+
displayName: "UnstyledTableHead",
|
|
6
|
+
componentId: "sc-1o3dlyt-0"
|
|
7
|
+
})(["", ""], sx);
|
|
7
8
|
|
|
8
9
|
export { UnstyledTableHead as default };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { sx } from '../../utils/styled-system/index.js';
|
|
3
3
|
|
|
4
|
-
const UnstyledTableRow = styled.tr
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const UnstyledTableRow = /*#__PURE__*/styled.tr.withConfig({
|
|
5
|
+
displayName: "UnstyledTableRow",
|
|
6
|
+
componentId: "sc-1a9loy1-0"
|
|
7
|
+
})(["", ""], sx);
|
|
7
8
|
|
|
8
9
|
export { UnstyledTableRow as default };
|
|
@@ -5,11 +5,10 @@ import UnstyledTableCell from './UnstyledTableCell.js';
|
|
|
5
5
|
import UnstyledTableHead from './UnstyledTableHead.js';
|
|
6
6
|
import UnstyledTableRow from './UnstyledTableRow.js';
|
|
7
7
|
|
|
8
|
-
const UnstyledTable = styled.table
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
`;
|
|
8
|
+
const UnstyledTable = /*#__PURE__*/styled.table.withConfig({
|
|
9
|
+
displayName: "_UnstyledTable__UnstyledTable",
|
|
10
|
+
componentId: "sc-1okwtam-0"
|
|
11
|
+
})(["border-collapse:collapse;", ""], sx);
|
|
13
12
|
var index = Object.assign(UnstyledTable, {
|
|
14
13
|
Head: UnstyledTableHead,
|
|
15
14
|
Body: UnstyledTableBody,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.61.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",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"@types/react-is": "^18.2.2",
|
|
38
38
|
"@types/styled-system": "^5.1.17",
|
|
39
39
|
"@types/styled-system__css": "^5.0.17",
|
|
40
|
+
"babel-plugin-styled-components": "^2.1.4",
|
|
40
41
|
"csstype": "^3.1.2",
|
|
41
42
|
"react": "^18.2.0",
|
|
42
43
|
"rollup-plugin-postcss": "^4.0.2",
|
|
@@ -64,5 +65,5 @@
|
|
|
64
65
|
"react-textarea-autosize": "^8.5.3",
|
|
65
66
|
"styled-system": "^5.1.5"
|
|
66
67
|
},
|
|
67
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "65f4730be1122623728516fa64e4f2b9b4a4a39f"
|
|
68
69
|
}
|