@teamturing/react-kit 2.60.2 → 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/core/GradientText/index.d.ts +22 -11
- package/dist/core/Pagination/index.d.ts +286 -12
- package/dist/core/Text/index.d.ts +282 -2
- package/dist/core/_UnstyledButton.d.ts +280 -1
- package/dist/index.js +674 -1680
- 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 +6 -4
- 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 +6 -4
- 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 +6 -12
- 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
|
@@ -128,8 +128,10 @@ const ActionListItem = ({
|
|
|
128
128
|
})]
|
|
129
129
|
});
|
|
130
130
|
};
|
|
131
|
-
const VisualWrapper = styled(View)
|
|
132
|
-
|
|
131
|
+
const VisualWrapper = /*#__PURE__*/styled(View).withConfig({
|
|
132
|
+
displayName: "ActionListItem__VisualWrapper",
|
|
133
|
+
componentId: "sc-cpn5js-0"
|
|
134
|
+
})(["", ""], variant({
|
|
133
135
|
prop: 'variant',
|
|
134
136
|
variants: {
|
|
135
137
|
neutral: {
|
|
@@ -145,40 +147,23 @@ const VisualWrapper = styled(View)`
|
|
|
145
147
|
}
|
|
146
148
|
}
|
|
147
149
|
}
|
|
148
|
-
})
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
font-size: ${({
|
|
150
|
+
}));
|
|
151
|
+
const BaseActionListItem = /*#__PURE__*/styled.li.withConfig({
|
|
152
|
+
displayName: "ActionListItem__BaseActionListItem",
|
|
153
|
+
componentId: "sc-cpn5js-1"
|
|
154
|
+
})(["display:flex;align-items:flex-start;font-size:", ";font-weight:", ";line-height:", ";& svg{width:", ";height:", ";}padding:", ";background-color:", ";border-radius:", ";cursor:pointer;transition:background-color 100ms;", " ", " ", ";"], ({
|
|
155
155
|
theme
|
|
156
|
-
}) => forcePixelValue(theme.fontSizes.xs)
|
|
157
|
-
font-weight: ${({
|
|
156
|
+
}) => forcePixelValue(theme.fontSizes.xs), ({
|
|
158
157
|
theme
|
|
159
|
-
}) => theme.fontWeights.medium
|
|
160
|
-
line-height: ${({
|
|
158
|
+
}) => theme.fontWeights.medium, ({
|
|
161
159
|
theme
|
|
162
|
-
}) => theme.lineHeights[2]
|
|
163
|
-
|
|
164
|
-
& svg {
|
|
165
|
-
width: ${forcePixelValue(20)};
|
|
166
|
-
height: ${forcePixelValue(20)};
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
padding: ${({
|
|
160
|
+
}) => theme.lineHeights[2], forcePixelValue(20), forcePixelValue(20), ({
|
|
170
161
|
theme
|
|
171
|
-
}) => forcePixelValue(theme.space[3])
|
|
172
|
-
background-color: ${({
|
|
162
|
+
}) => forcePixelValue(theme.space[3]), ({
|
|
173
163
|
theme
|
|
174
|
-
}) => theme.colors['bg/neutral/subtler']
|
|
175
|
-
border-radius: ${({
|
|
164
|
+
}) => theme.colors['bg/neutral/subtler'], ({
|
|
176
165
|
theme
|
|
177
|
-
}) => forcePixelValue(theme.radii.xs)
|
|
178
|
-
cursor: pointer;
|
|
179
|
-
transition: background-color 100ms;
|
|
180
|
-
|
|
181
|
-
${({
|
|
166
|
+
}) => forcePixelValue(theme.radii.xs), ({
|
|
182
167
|
theme,
|
|
183
168
|
disabled
|
|
184
169
|
}) => disabled ? css`
|
|
@@ -202,9 +187,7 @@ const BaseActionListItem = styled.li`
|
|
|
202
187
|
outline-color: ${theme.colors['border/focused']};
|
|
203
188
|
outline-offset: ${forcePixelValue(-2)};
|
|
204
189
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
${({
|
|
190
|
+
`, ({
|
|
208
191
|
theme,
|
|
209
192
|
disabled,
|
|
210
193
|
variant
|
|
@@ -212,93 +195,30 @@ const BaseActionListItem = styled.li`
|
|
|
212
195
|
color: ${theme.colors['text/danger']};
|
|
213
196
|
` : !disabled && variant === 'neutral' ? css`
|
|
214
197
|
color: ${theme.colors['text/neutral']};
|
|
215
|
-
` : null
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
position: relative;
|
|
221
|
-
|
|
222
|
-
width: ${forcePixelValue(20)};
|
|
223
|
-
height: ${forcePixelValue(20)};
|
|
224
|
-
|
|
225
|
-
border-width: ${forcePixelValue(2)};
|
|
226
|
-
border-style: solid;
|
|
227
|
-
border-color: ${({
|
|
198
|
+
` : null, sx);
|
|
199
|
+
const FakeCheckbox = /*#__PURE__*/styled.div.withConfig({
|
|
200
|
+
displayName: "ActionListItem__FakeCheckbox",
|
|
201
|
+
componentId: "sc-cpn5js-2"
|
|
202
|
+
})(["position:relative;width:", ";height:", ";border-width:", ";border-style:solid;border-color:", ";border-radius:", ";cursor:pointer;transition:visibility 200ms;&::before{visibility:hidden;content:'';display:grid;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:", ";background-color:", ";mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.6 17.2C10.3 17.2 10 17.1 9.80001 16.8L5.20001 12.2C4.70001 11.7 4.70001 11 5.20001 10.5C5.70001 9.99998 6.40001 9.99998 6.90001 10.5L10.6 14.2L17.2 7.59998C17.7 7.09998 18.4 7.09998 18.9 7.59998C19.4 8.09998 19.4 8.79998 18.9 9.29998L11.5 16.7C11.2 17.1 10.9 17.2 10.6 17.2Z' fill='%238D94A0'/%3E%3C/svg%3E%0A\");-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.6 17.2C10.3 17.2 10 17.1 9.80001 16.8L5.20001 12.2C4.70001 11.7 4.70001 11 5.20001 10.5C5.70001 9.99998 6.40001 9.99998 6.90001 10.5L10.6 14.2L17.2 7.59998C17.7 7.09998 18.4 7.09998 18.9 7.59998C19.4 8.09998 19.4 8.79998 18.9 9.29998L11.5 16.7C11.2 17.1 10.9 17.2 10.6 17.2Z' fill='%238D94A0'/%3E%3C/svg%3E%0A\");mask-size:100%;-webkit-mask-size:100%;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;}&[aria-disabled='true']{background-color:", ";border-color:", ";}&[aria-checked='true']{background-color:", ";border-width:0;&::before{visibility:visible;}&[aria-disabled='true']{background-color:", ";border-color:", ";&::before{background-color:", ";}}}", ""], forcePixelValue(20), forcePixelValue(20), forcePixelValue(2), ({
|
|
228
203
|
theme
|
|
229
|
-
}) => theme.colors['border/neutral']
|
|
230
|
-
border-radius: ${({
|
|
204
|
+
}) => theme.colors['border/neutral'], ({
|
|
231
205
|
theme
|
|
232
|
-
}) => `${forcePixelValue(theme.radii.xxs)}
|
|
233
|
-
cursor: pointer;
|
|
234
|
-
|
|
235
|
-
transition: visibility 200ms;
|
|
236
|
-
|
|
237
|
-
&::before {
|
|
238
|
-
visibility: hidden;
|
|
239
|
-
|
|
240
|
-
content: '';
|
|
241
|
-
display: grid;
|
|
242
|
-
position: absolute;
|
|
243
|
-
|
|
244
|
-
top: 0;
|
|
245
|
-
right: 0;
|
|
246
|
-
bottom: 0;
|
|
247
|
-
left: 0;
|
|
248
|
-
|
|
249
|
-
border-radius: ${({
|
|
206
|
+
}) => `${forcePixelValue(theme.radii.xxs)}`, ({
|
|
250
207
|
theme
|
|
251
|
-
}) => `${forcePixelValue(theme.radii.xxs)}
|
|
252
|
-
|
|
253
|
-
background-color: ${({
|
|
208
|
+
}) => `${forcePixelValue(theme.radii.xxs)}`, ({
|
|
254
209
|
theme
|
|
255
|
-
}) => theme.colors['icon/inverse']
|
|
256
|
-
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.6 17.2C10.3 17.2 10 17.1 9.80001 16.8L5.20001 12.2C4.70001 11.7 4.70001 11 5.20001 10.5C5.70001 9.99998 6.40001 9.99998 6.90001 10.5L10.6 14.2L17.2 7.59998C17.7 7.09998 18.4 7.09998 18.9 7.59998C19.4 8.09998 19.4 8.79998 18.9 9.29998L11.5 16.7C11.2 17.1 10.9 17.2 10.6 17.2Z' fill='%238D94A0'/%3E%3C/svg%3E%0A");
|
|
257
|
-
-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.6 17.2C10.3 17.2 10 17.1 9.80001 16.8L5.20001 12.2C4.70001 11.7 4.70001 11 5.20001 10.5C5.70001 9.99998 6.40001 9.99998 6.90001 10.5L10.6 14.2L17.2 7.59998C17.7 7.09998 18.4 7.09998 18.9 7.59998C19.4 8.09998 19.4 8.79998 18.9 9.29998L11.5 16.7C11.2 17.1 10.9 17.2 10.6 17.2Z' fill='%238D94A0'/%3E%3C/svg%3E%0A");
|
|
258
|
-
mask-size: 100%;
|
|
259
|
-
-webkit-mask-size: 100%;
|
|
260
|
-
mask-repeat: no-repeat;
|
|
261
|
-
-webkit-mask-repeat: no-repeat;
|
|
262
|
-
mask-position: center;
|
|
263
|
-
-webkit-mask-position: center;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
&[aria-disabled='true'] {
|
|
267
|
-
background-color: ${({
|
|
210
|
+
}) => theme.colors['icon/inverse'], ({
|
|
268
211
|
theme
|
|
269
|
-
}) => theme.colors['bg/disabled']
|
|
270
|
-
border-color: ${({
|
|
212
|
+
}) => theme.colors['bg/disabled'], ({
|
|
271
213
|
theme
|
|
272
|
-
}) => theme.colors['border/disabled']
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
&[aria-checked='true'] {
|
|
276
|
-
background-color: ${({
|
|
214
|
+
}) => theme.colors['border/disabled'], ({
|
|
277
215
|
theme
|
|
278
|
-
}) => theme.colors['bg/primary']
|
|
279
|
-
border-width: 0;
|
|
280
|
-
|
|
281
|
-
&::before {
|
|
282
|
-
visibility: visible;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
&[aria-disabled='true'] {
|
|
286
|
-
background-color: ${({
|
|
216
|
+
}) => theme.colors['bg/primary'], ({
|
|
287
217
|
theme
|
|
288
|
-
}) => theme.colors['bg/disabled']
|
|
289
|
-
border-color: ${({
|
|
218
|
+
}) => theme.colors['bg/disabled'], ({
|
|
290
219
|
theme
|
|
291
|
-
}) => theme.colors['border/disabled']
|
|
292
|
-
|
|
293
|
-
&::before {
|
|
294
|
-
background-color: ${({
|
|
220
|
+
}) => theme.colors['border/disabled'], ({
|
|
295
221
|
theme
|
|
296
|
-
}) => theme.colors['icon/disabled']
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
${sx}
|
|
302
|
-
`;
|
|
222
|
+
}) => theme.colors['icon/disabled'], sx);
|
|
303
223
|
|
|
304
224
|
export { ActionListItem as default };
|
|
@@ -12,27 +12,19 @@ const ActionListSectionHeader = ({
|
|
|
12
12
|
...props
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
|
-
const BaseActionListSectionHeader = styled.div
|
|
16
|
-
|
|
15
|
+
const BaseActionListSectionHeader = /*#__PURE__*/styled.div.withConfig({
|
|
16
|
+
displayName: "ActionListSectionHeader__BaseActionListSectionHeader",
|
|
17
|
+
componentId: "sc-sx3na3-0"
|
|
18
|
+
})(["color:", ";font-size:", ";font-weight:", ";line-height:", ";white-space:pre-wrap;padding:", ";", ";"], ({
|
|
17
19
|
theme
|
|
18
|
-
}) => theme.colors['text/neutral/subtlest']
|
|
19
|
-
font-size: ${({
|
|
20
|
+
}) => theme.colors['text/neutral/subtlest'], ({
|
|
20
21
|
theme
|
|
21
|
-
}) => forcePixelValue(theme.fontSizes.xxs)
|
|
22
|
-
font-weight: ${({
|
|
22
|
+
}) => forcePixelValue(theme.fontSizes.xxs), ({
|
|
23
23
|
theme
|
|
24
|
-
}) => theme.fontWeights.bold
|
|
25
|
-
line-height: ${({
|
|
24
|
+
}) => theme.fontWeights.bold, ({
|
|
26
25
|
theme
|
|
27
|
-
}) => theme.lineHeights[2]
|
|
28
|
-
|
|
29
|
-
white-space: pre-wrap;
|
|
30
|
-
|
|
31
|
-
padding: ${({
|
|
26
|
+
}) => theme.lineHeights[2], ({
|
|
32
27
|
theme
|
|
33
|
-
}) => `${forcePixelValue(theme.space[1])} ${forcePixelValue(theme.space[3])}}
|
|
34
|
-
|
|
35
|
-
${sx};
|
|
36
|
-
`;
|
|
28
|
+
}) => `${forcePixelValue(theme.space[1])} ${forcePixelValue(theme.space[3])}}`, sx);
|
|
37
29
|
|
|
38
30
|
export { ActionListSectionHeader as default };
|
|
@@ -24,13 +24,10 @@ const ActionList = ({
|
|
|
24
24
|
})
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
const BaseActionList = styled.ul
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
${sx}
|
|
33
|
-
`;
|
|
27
|
+
const BaseActionList = /*#__PURE__*/styled.ul.withConfig({
|
|
28
|
+
displayName: "ActionList__BaseActionList",
|
|
29
|
+
componentId: "sc-1epqzss-0"
|
|
30
|
+
})(["list-style:none;padding:0;margin:0;", ""], sx);
|
|
34
31
|
var index = Object.assign(ActionList, {
|
|
35
32
|
Item: ActionListItem,
|
|
36
33
|
SectionDivider: ActionListSectionDivider,
|
package/esm/core/Avatar/index.js
CHANGED
|
@@ -23,13 +23,12 @@ const Avatar = /*#__PURE__*/forwardRef(({
|
|
|
23
23
|
size: size,
|
|
24
24
|
...props
|
|
25
25
|
}));
|
|
26
|
-
const BaseAvatar = styled(Image)
|
|
27
|
-
|
|
26
|
+
const BaseAvatar = /*#__PURE__*/styled(Image).withConfig({
|
|
27
|
+
displayName: "Avatar__BaseAvatar",
|
|
28
|
+
componentId: "sc-1f1ok6x-0"
|
|
29
|
+
})(["border-radius:", ";object-fit:cover;", " ", ""], ({
|
|
28
30
|
theme
|
|
29
|
-
}) => forcePixelValue(theme.radii.full)
|
|
30
|
-
object-fit: cover;
|
|
31
|
-
|
|
32
|
-
${variant({
|
|
31
|
+
}) => forcePixelValue(theme.radii.full), variant({
|
|
33
32
|
prop: 'size',
|
|
34
33
|
variants: {
|
|
35
34
|
xxs: {
|
|
@@ -65,9 +64,6 @@ const BaseAvatar = styled(Image)`
|
|
|
65
64
|
height: 64
|
|
66
65
|
}
|
|
67
66
|
}
|
|
68
|
-
})
|
|
69
|
-
|
|
70
|
-
${sx}
|
|
71
|
-
`;
|
|
67
|
+
}), sx);
|
|
72
68
|
|
|
73
69
|
export { Avatar as default };
|
|
@@ -18,12 +18,10 @@ const AvatarGroupItem = ({
|
|
|
18
18
|
})
|
|
19
19
|
})
|
|
20
20
|
});
|
|
21
|
-
const BaseAvatarGroupItem = styled.li
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
margin: 0;
|
|
26
|
-
`;
|
|
21
|
+
const BaseAvatarGroupItem = /*#__PURE__*/styled.li.withConfig({
|
|
22
|
+
displayName: "AvatarGroupItem__BaseAvatarGroupItem",
|
|
23
|
+
componentId: "sc-1cmo31h-0"
|
|
24
|
+
})(["display:inline-flex;list-style:none;padding:0;margin:0;"]);
|
|
27
25
|
var AvatarGroupItem$1 = /*#__PURE__*/forwardRef(AvatarGroupItem);
|
|
28
26
|
|
|
29
27
|
export { AvatarGroupItem$1 as default };
|
|
@@ -80,45 +80,24 @@ const AvatarGroup = ({
|
|
|
80
80
|
}) : null]
|
|
81
81
|
});
|
|
82
82
|
};
|
|
83
|
-
const AvatarGroupWrapper = styled.div
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
const AvatarGroupWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
84
|
+
displayName: "AvatarGroup__AvatarGroupWrapper",
|
|
85
|
+
componentId: "sc-17ktc6b-0"
|
|
86
|
+
})(["display:inline-flex;align-items:center;column-gap:", ";"], ({
|
|
87
87
|
theme
|
|
88
|
-
}) => forcePixelValue(theme.space[1])
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
margin: 0;
|
|
94
|
-
|
|
95
|
-
display: inline-flex;
|
|
96
|
-
flex-direction: row-reverse;
|
|
97
|
-
align-items: center;
|
|
98
|
-
|
|
99
|
-
& > * {
|
|
100
|
-
position: relative;
|
|
101
|
-
background-color: ${({
|
|
88
|
+
}) => forcePixelValue(theme.space[1]));
|
|
89
|
+
const BaseAvatarGroup = /*#__PURE__*/styled.ol.withConfig({
|
|
90
|
+
displayName: "AvatarGroup__BaseAvatarGroup",
|
|
91
|
+
componentId: "sc-17ktc6b-1"
|
|
92
|
+
})(["list-style:none;padding:0;margin:0;display:inline-flex;flex-direction:row-reverse;align-items:center;& > *{position:relative;background-color:", ";padding:", ";border-radius:", ";margin-left:", ";&:last-child{margin-left:0;}}", ""], ({
|
|
102
93
|
theme
|
|
103
|
-
}) => theme.colors['border/neutral/subtle']
|
|
104
|
-
padding: ${({
|
|
94
|
+
}) => theme.colors['border/neutral/subtle'], ({
|
|
105
95
|
theme
|
|
106
|
-
}) => forcePixelValue(theme.space['0.25'])
|
|
107
|
-
border-radius: ${({
|
|
96
|
+
}) => forcePixelValue(theme.space['0.25']), ({
|
|
108
97
|
theme
|
|
109
|
-
}) => forcePixelValue(theme.radii.full)
|
|
110
|
-
|
|
111
|
-
margin-left: ${({
|
|
98
|
+
}) => forcePixelValue(theme.radii.full), ({
|
|
112
99
|
theme
|
|
113
|
-
}) => forcePixelValue(theme.space[-1])
|
|
114
|
-
|
|
115
|
-
&:last-child {
|
|
116
|
-
margin-left: 0;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
${sx}
|
|
121
|
-
`;
|
|
100
|
+
}) => forcePixelValue(theme.space[-1]), sx);
|
|
122
101
|
var index = Object.assign( /*#__PURE__*/forwardRef(AvatarGroup), {
|
|
123
102
|
Item: AvatarGroupItem
|
|
124
103
|
});
|
|
@@ -17,11 +17,9 @@ const BadgeAttacher = ({
|
|
|
17
17
|
}
|
|
18
18
|
})]
|
|
19
19
|
});
|
|
20
|
-
const BadgeAttacherWrapper = styled.div
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
${sx}
|
|
25
|
-
`;
|
|
20
|
+
const BadgeAttacherWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
21
|
+
displayName: "BadgeAttacher__BadgeAttacherWrapper",
|
|
22
|
+
componentId: "sc-9c4lfq-0"
|
|
23
|
+
})(["position:relative;width:fit-content;", ""], sx);
|
|
26
24
|
|
|
27
25
|
export { BadgeAttacher as default };
|
|
@@ -32,43 +32,26 @@ const BreadcrumbsItem = ({
|
|
|
32
32
|
children: baseBreadCrumbsItem
|
|
33
33
|
}) : baseBreadCrumbsItem;
|
|
34
34
|
};
|
|
35
|
-
const BaseBreadcrumbsItem = styled.a
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
const BaseBreadcrumbsItem = /*#__PURE__*/styled.a.withConfig({
|
|
36
|
+
displayName: "BreadcrumbsItem__BaseBreadcrumbsItem",
|
|
37
|
+
componentId: "sc-p481rg-0"
|
|
38
|
+
})(["display:inline-block;font-size:", ";font-weight:", ";line-height:", ";color:", ";cursor:pointer;&:hover{text-decoration:underline;}text-overflow:ellipsis;overflow:hidden;word-break:break-word;white-space:nowrap;max-width:", ";", ""], ({
|
|
38
39
|
theme
|
|
39
|
-
}) => forcePixelValue(theme.fontSizes.xxs)
|
|
40
|
-
font-weight: ${({
|
|
40
|
+
}) => forcePixelValue(theme.fontSizes.xxs), ({
|
|
41
41
|
theme
|
|
42
|
-
}) => theme.fontWeights.medium
|
|
43
|
-
line-height: ${({
|
|
42
|
+
}) => theme.fontWeights.medium, ({
|
|
44
43
|
theme
|
|
45
|
-
}) => theme.lineHeights[2]
|
|
46
|
-
color: ${({
|
|
44
|
+
}) => theme.lineHeights[2], ({
|
|
47
45
|
theme
|
|
48
|
-
}) => theme.colors['text/neutral/subtlest']
|
|
49
|
-
cursor: pointer;
|
|
50
|
-
|
|
51
|
-
&:hover {
|
|
52
|
-
text-decoration: underline;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
text-overflow: ellipsis;
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
word-break: break-word;
|
|
58
|
-
white-space: nowrap;
|
|
59
|
-
|
|
60
|
-
max-width: ${({
|
|
46
|
+
}) => theme.colors['text/neutral/subtlest'], ({
|
|
61
47
|
truncatedWidth
|
|
62
|
-
}) => truncatedWidth ? forcePixelValue(truncatedWidth) : ''
|
|
63
|
-
|
|
64
|
-
${({
|
|
48
|
+
}) => truncatedWidth ? forcePixelValue(truncatedWidth) : '', ({
|
|
65
49
|
selected
|
|
66
50
|
}) => selected ? css`
|
|
67
51
|
color: ${({
|
|
68
52
|
theme
|
|
69
53
|
}) => theme.colors['text/neutral/subtle']};
|
|
70
54
|
pointer-events: none;
|
|
71
|
-
` : ''
|
|
72
|
-
`;
|
|
55
|
+
` : '');
|
|
73
56
|
|
|
74
57
|
export { BreadcrumbsItem as default };
|
|
@@ -24,47 +24,28 @@ const Breadcrumbs = ({
|
|
|
24
24
|
}))
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
const BaseBreadcrumbs = styled.nav
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
flex-wrap: wrap;
|
|
32
|
-
|
|
33
|
-
column-gap: ${({
|
|
27
|
+
const BaseBreadcrumbs = /*#__PURE__*/styled.nav.withConfig({
|
|
28
|
+
displayName: "Breadcrumbs__BaseBreadcrumbs",
|
|
29
|
+
componentId: "sc-1lwv2x7-0"
|
|
30
|
+
})(["display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;column-gap:", ";row-gap:", ";"], ({
|
|
34
31
|
theme
|
|
35
|
-
}) => forcePixelValue(theme.space[2])
|
|
36
|
-
row-gap: ${({
|
|
32
|
+
}) => forcePixelValue(theme.space[2]), ({
|
|
37
33
|
theme
|
|
38
|
-
}) => forcePixelValue(theme.space[1])
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
&::after {
|
|
44
|
-
content: '/';
|
|
45
|
-
font-size: ${({
|
|
34
|
+
}) => forcePixelValue(theme.space[1]));
|
|
35
|
+
const BreadcrumbsItemWrapper = /*#__PURE__*/styled.span.withConfig({
|
|
36
|
+
displayName: "Breadcrumbs__BreadcrumbsItemWrapper",
|
|
37
|
+
componentId: "sc-1lwv2x7-1"
|
|
38
|
+
})(["display:inline-flex;&::after{content:'/';font-size:", ";font-weight:", ";line-height:", ";color:", ";margin-left:", ";}&:last-child{&::after{content:none;}}"], ({
|
|
46
39
|
theme
|
|
47
|
-
}) => forcePixelValue(theme.fontSizes.xxs)
|
|
48
|
-
font-weight: ${({
|
|
40
|
+
}) => forcePixelValue(theme.fontSizes.xxs), ({
|
|
49
41
|
theme
|
|
50
|
-
}) => theme.fontWeights.medium
|
|
51
|
-
line-height: ${({
|
|
42
|
+
}) => theme.fontWeights.medium, ({
|
|
52
43
|
theme
|
|
53
|
-
}) => theme.lineHeights[2]
|
|
54
|
-
color: ${({
|
|
44
|
+
}) => theme.lineHeights[2], ({
|
|
55
45
|
theme
|
|
56
|
-
}) => theme.colors['text/neutral/subtlest']
|
|
57
|
-
margin-left: ${({
|
|
46
|
+
}) => theme.colors['text/neutral/subtlest'], ({
|
|
58
47
|
theme
|
|
59
|
-
}) => forcePixelValue(theme.space[2])
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&:last-child {
|
|
63
|
-
&::after {
|
|
64
|
-
content: none;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
`;
|
|
48
|
+
}) => forcePixelValue(theme.space[2]));
|
|
68
49
|
var index = Object.assign(Breadcrumbs, {
|
|
69
50
|
Item: BreadcrumbsItem
|
|
70
51
|
});
|
package/esm/core/Button/index.js
CHANGED
|
@@ -64,7 +64,10 @@ const Button = /*#__PURE__*/forwardRef(({
|
|
|
64
64
|
}) : null]
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
|
-
const BaseButton = styled(UnstyledButton)(
|
|
67
|
+
const BaseButton = /*#__PURE__*/styled(UnstyledButton).withConfig({
|
|
68
|
+
displayName: "Button__BaseButton",
|
|
69
|
+
componentId: "sc-1yhc0ra-0"
|
|
70
|
+
})(({
|
|
68
71
|
$loading,
|
|
69
72
|
$disabled,
|
|
70
73
|
fillWidth,
|
|
@@ -327,7 +330,10 @@ const BaseButton = styled(UnstyledButton)(({
|
|
|
327
330
|
}
|
|
328
331
|
}
|
|
329
332
|
}));
|
|
330
|
-
const BaseSpinner = styled(Spinner)(
|
|
333
|
+
const BaseSpinner = /*#__PURE__*/styled(Spinner).withConfig({
|
|
334
|
+
displayName: "Button__BaseSpinner",
|
|
335
|
+
componentId: "sc-1yhc0ra-1"
|
|
336
|
+
})(variant({
|
|
331
337
|
prop: 'size',
|
|
332
338
|
variants: {
|
|
333
339
|
l: {
|
package/esm/core/Card/index.js
CHANGED
|
@@ -11,18 +11,13 @@ import { border } from '../../node_modules/@styled-system/border/dist/index.esm.
|
|
|
11
11
|
import { position } from '../../node_modules/@styled-system/position/dist/index.esm.js';
|
|
12
12
|
import { shadow } from '../../node_modules/@styled-system/shadow/dist/index.esm.js';
|
|
13
13
|
|
|
14
|
-
const Card = styled.div
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
const Card = /*#__PURE__*/styled.div.withConfig({
|
|
15
|
+
displayName: "Card",
|
|
16
|
+
componentId: "sc-1eobla7-0"
|
|
17
|
+
})(["border-width:", ";border-style:solid;border-color:", ";border-radius:", ";", " ", ""], forcePixelValue(1), ({
|
|
18
18
|
theme
|
|
19
|
-
}) => theme.colors['border/neutral']
|
|
20
|
-
border-radius: ${({
|
|
19
|
+
}) => theme.colors['border/neutral'], ({
|
|
21
20
|
theme
|
|
22
|
-
}) => forcePixelValue(theme.radii['s'])
|
|
23
|
-
|
|
24
|
-
${compose(layout, color, flexbox, background, border, position, shadow)}
|
|
25
|
-
${sx}
|
|
26
|
-
`;
|
|
21
|
+
}) => forcePixelValue(theme.radii['s']), compose(layout, color, flexbox, background, border, position, shadow), sx);
|
|
27
22
|
|
|
28
23
|
export { Card as default };
|