@canlooks/can-ui 0.0.98 → 0.0.100
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/cjs/components/accordion/accordion.style.js +88 -86
- package/dist/cjs/components/actionSheet/actionSheet.style.js +35 -33
- package/dist/cjs/components/alert/alert.style.js +44 -42
- package/dist/cjs/components/anchorList/anchorList.style.js +40 -38
- package/dist/cjs/components/app/app.style.js +24 -17
- package/dist/cjs/components/avatar/avatar.style.js +22 -20
- package/dist/cjs/components/avatar/avatarGroup.style.js +24 -22
- package/dist/cjs/components/backdrop/backdrop.style.js +11 -9
- package/dist/cjs/components/badge/badge.style.js +42 -40
- package/dist/cjs/components/bottomNavigation/bottomNavigation.style.js +61 -59
- package/dist/cjs/components/boundary/errorBoundary.style.js +11 -9
- package/dist/cjs/components/breadcrumb/breadcrumb.style.js +8 -6
- package/dist/cjs/components/bubble/bubble.style.js +10 -8
- package/dist/cjs/components/bubbleConfirm/bubbleConfirm.style.js +37 -35
- package/dist/cjs/components/button/button.style.js +219 -197
- package/dist/cjs/components/calendar/calendar.style.js +93 -91
- package/dist/cjs/components/card/card.style.js +47 -44
- package/dist/cjs/components/cascade/cascade.style.js +58 -54
- package/dist/cjs/components/checkboxBase/checkboxBase.style.js +122 -120
- package/dist/cjs/components/colorPicker/colorPicker.style.js +68 -64
- package/dist/cjs/components/counter/counter.style.js +19 -17
- package/dist/cjs/components/curd/curd.style.js +70 -66
- package/dist/cjs/components/curd/curdColumnConfig.style.js +17 -15
- package/dist/cjs/components/dataGrid/dataGrid.style.js +113 -111
- package/dist/cjs/components/dateTimePicker/dateTimePicker.style.js +31 -27
- package/dist/cjs/components/dateTimePicker/timer.style.js +29 -27
- package/dist/cjs/components/dateTimeRangePicker/dateTimeRangePicker.style.js +7 -5
- package/dist/cjs/components/descriptions/descriptions.style.js +99 -95
- package/dist/cjs/components/dialog/dialog.style.js +98 -96
- package/dist/cjs/components/divider/divider.style.js +17 -15
- package/dist/cjs/components/drawer/drawer.style.js +78 -77
- package/dist/cjs/components/dropdown/dropdown.style.js +10 -8
- package/dist/cjs/components/form/form.style.js +27 -25
- package/dist/cjs/components/gallery/gallery.style.js +82 -80
- package/dist/cjs/components/image/image.style.js +35 -33
- package/dist/cjs/components/input/input.style.js +27 -26
- package/dist/cjs/components/inputBase/inputBase.style.js +164 -162
- package/dist/cjs/components/loading/loading.style.js +17 -15
- package/dist/cjs/components/loadingIndicator/loadingIndicator.style.js +10 -8
- package/dist/cjs/components/loadingMask/loadingMask.style.js +19 -17
- package/dist/cjs/components/menu/menu.style.js +3 -1
- package/dist/cjs/components/menuItem/menuItem.style.js +94 -90
- package/dist/cjs/components/modal/modal.style.js +11 -9
- package/dist/cjs/components/optionsBase/optionsBase.style.js +10 -8
- package/dist/cjs/components/overlayBase/overlayBase.style.js +15 -13
- package/dist/cjs/components/pagination/pagination.style.js +31 -29
- package/dist/cjs/components/palette/palette.style.d.ts +1 -1
- package/dist/cjs/components/palette/palette.style.js +115 -113
- package/dist/cjs/components/pickerDialog/pickerDialog.style.js +25 -23
- package/dist/cjs/components/pinchable/pinchable.style.js +10 -8
- package/dist/cjs/components/placeholder/placeholder.style.js +28 -26
- package/dist/cjs/components/popper/popper.style.js +43 -39
- package/dist/cjs/components/progress/progress.style.js +111 -111
- package/dist/cjs/components/rating/rating.style.js +52 -50
- package/dist/cjs/components/resizable/resizable.style.js +229 -223
- package/dist/cjs/components/scrollbar/scrollbar.style.js +71 -69
- package/dist/cjs/components/segmented/segmented.style.js +79 -77
- package/dist/cjs/components/select/select.style.js +36 -34
- package/dist/cjs/components/selectedList/selectedList.style.js +9 -7
- package/dist/cjs/components/serialInput/serialInput.style.js +4 -2
- package/dist/cjs/components/skeleton/skeleton.style.js +53 -47
- package/dist/cjs/components/slidableActions/slidableActions.style.js +45 -43
- package/dist/cjs/components/slider/slider.style.js +129 -127
- package/dist/cjs/components/snackbarBase/snackbarBase.style.js +96 -94
- package/dist/cjs/components/status/status.style.js +13 -11
- package/dist/cjs/components/stepper/step.style.js +217 -216
- package/dist/cjs/components/stepper/stepper.style.js +5 -3
- package/dist/cjs/components/switch/switch.style.js +73 -71
- package/dist/cjs/components/table/table.style.js +83 -81
- package/dist/cjs/components/table/tableSticky.style.js +33 -31
- package/dist/cjs/components/tabs/tabs.style.js +161 -159
- package/dist/cjs/components/tabs/tabsEllipsis.style.js +5 -3
- package/dist/cjs/components/tag/tag.style.js +96 -94
- package/dist/cjs/components/textarea/textarea.style.js +27 -25
- package/dist/cjs/components/theme/themeVariables.d.ts +1 -0
- package/dist/cjs/components/theme/themeVariables.js +3 -1
- package/dist/cjs/components/timeline/timeline.style.js +112 -108
- package/dist/cjs/components/toggleButton/toggleButton.style.js +7 -5
- package/dist/cjs/components/tooltip/tooltip.style.js +13 -11
- package/dist/cjs/components/touchRipple/touchRipple.style.js +19 -17
- package/dist/cjs/components/transfer/transfer.style.js +42 -40
- package/dist/cjs/components/transitionBase/transitionBase.style.js +101 -94
- package/dist/cjs/components/transportStyle/transportStyle.style.d.ts +1 -0
- package/dist/cjs/components/transportStyle/transportStyle.style.js +57 -0
- package/dist/cjs/components/tree/tree.style.js +83 -79
- package/dist/cjs/components/tree/treeDnd.style.js +131 -129
- package/dist/cjs/components/treeSelect/treeSelect.style.js +35 -33
- package/dist/cjs/components/typography/typography.style.js +98 -96
- package/dist/cjs/components/upload/dropArea.style.js +31 -29
- package/dist/cjs/components/upload/upload.style.js +106 -104
- package/dist/cjs/components/waterfall/waterfall.style.js +7 -5
- package/dist/cjs/extensions/documentViewer/documentViewer.style.js +43 -41
- package/dist/esm/components/accordion/accordion.style.js +88 -86
- package/dist/esm/components/actionSheet/actionSheet.style.js +35 -33
- package/dist/esm/components/alert/alert.style.js +44 -42
- package/dist/esm/components/anchorList/anchorList.style.js +40 -38
- package/dist/esm/components/app/app.style.js +24 -17
- package/dist/esm/components/avatar/avatar.style.js +22 -20
- package/dist/esm/components/avatar/avatarGroup.style.js +24 -22
- package/dist/esm/components/backdrop/backdrop.style.js +11 -9
- package/dist/esm/components/badge/badge.style.js +42 -40
- package/dist/esm/components/bottomNavigation/bottomNavigation.style.js +61 -59
- package/dist/esm/components/boundary/errorBoundary.style.js +11 -9
- package/dist/esm/components/breadcrumb/breadcrumb.style.js +8 -6
- package/dist/esm/components/bubble/bubble.style.js +10 -8
- package/dist/esm/components/bubbleConfirm/bubbleConfirm.style.js +37 -35
- package/dist/esm/components/button/button.style.js +219 -197
- package/dist/esm/components/calendar/calendar.style.js +93 -91
- package/dist/esm/components/card/card.style.js +58 -55
- package/dist/esm/components/cascade/cascade.style.js +58 -54
- package/dist/esm/components/checkboxBase/checkboxBase.style.js +122 -120
- package/dist/esm/components/colorPicker/colorPicker.style.js +69 -65
- package/dist/esm/components/counter/counter.style.js +19 -17
- package/dist/esm/components/curd/curd.style.js +70 -66
- package/dist/esm/components/curd/curdColumnConfig.style.js +17 -15
- package/dist/esm/components/dataGrid/dataGrid.style.js +113 -111
- package/dist/esm/components/dateTimePicker/dateTimePicker.style.js +31 -27
- package/dist/esm/components/dateTimePicker/timer.style.js +29 -27
- package/dist/esm/components/dateTimeRangePicker/dateTimeRangePicker.style.js +7 -5
- package/dist/esm/components/descriptions/descriptions.style.js +99 -95
- package/dist/esm/components/dialog/dialog.style.js +98 -96
- package/dist/esm/components/divider/divider.style.js +17 -15
- package/dist/esm/components/drawer/drawer.style.js +78 -77
- package/dist/esm/components/dropdown/dropdown.style.js +10 -8
- package/dist/esm/components/form/form.style.js +27 -25
- package/dist/esm/components/gallery/gallery.style.js +82 -80
- package/dist/esm/components/image/image.style.js +35 -33
- package/dist/esm/components/input/input.style.js +27 -26
- package/dist/esm/components/inputBase/inputBase.style.js +164 -162
- package/dist/esm/components/loading/loading.style.js +17 -15
- package/dist/esm/components/loadingIndicator/loadingIndicator.style.js +10 -8
- package/dist/esm/components/loadingMask/loadingMask.style.js +19 -17
- package/dist/esm/components/menu/menu.style.js +3 -1
- package/dist/esm/components/menuItem/menuItem.style.js +94 -90
- package/dist/esm/components/modal/modal.style.js +11 -9
- package/dist/esm/components/optionsBase/optionsBase.style.js +10 -8
- package/dist/esm/components/overlayBase/overlayBase.style.js +15 -13
- package/dist/esm/components/pagination/pagination.style.js +31 -29
- package/dist/esm/components/palette/palette.style.d.ts +1 -1
- package/dist/esm/components/palette/palette.style.js +113 -111
- package/dist/esm/components/pickerDialog/pickerDialog.style.js +25 -23
- package/dist/esm/components/pinchable/pinchable.style.js +10 -8
- package/dist/esm/components/placeholder/placeholder.style.js +28 -26
- package/dist/esm/components/popper/popper.style.js +43 -39
- package/dist/esm/components/progress/progress.style.js +111 -111
- package/dist/esm/components/rating/rating.style.js +52 -50
- package/dist/esm/components/resizable/resizable.style.js +229 -223
- package/dist/esm/components/scrollbar/scrollbar.style.js +71 -69
- package/dist/esm/components/segmented/segmented.style.js +79 -77
- package/dist/esm/components/select/select.style.js +36 -34
- package/dist/esm/components/selectedList/selectedList.style.js +9 -7
- package/dist/esm/components/serialInput/serialInput.style.js +4 -2
- package/dist/esm/components/skeleton/skeleton.style.js +53 -47
- package/dist/esm/components/slidableActions/slidableActions.style.js +45 -43
- package/dist/esm/components/slider/slider.style.js +129 -127
- package/dist/esm/components/snackbarBase/snackbarBase.style.js +96 -94
- package/dist/esm/components/status/status.style.js +13 -11
- package/dist/esm/components/stepper/step.style.js +217 -216
- package/dist/esm/components/stepper/stepper.style.js +5 -3
- package/dist/esm/components/switch/switch.style.js +73 -71
- package/dist/esm/components/table/table.style.js +83 -81
- package/dist/esm/components/table/tableSticky.style.js +33 -31
- package/dist/esm/components/tabs/tabs.style.js +161 -159
- package/dist/esm/components/tabs/tabsEllipsis.style.js +5 -3
- package/dist/esm/components/tag/tag.style.js +96 -94
- package/dist/esm/components/textarea/textarea.style.js +27 -25
- package/dist/esm/components/theme/themeVariables.d.ts +1 -0
- package/dist/esm/components/theme/themeVariables.js +2 -0
- package/dist/esm/components/timeline/timeline.style.js +112 -108
- package/dist/esm/components/toggleButton/toggleButton.style.js +7 -5
- package/dist/esm/components/tooltip/tooltip.style.js +13 -11
- package/dist/esm/components/touchRipple/touchRipple.style.js +19 -17
- package/dist/esm/components/transfer/transfer.style.js +42 -40
- package/dist/esm/components/transitionBase/transitionBase.style.js +101 -94
- package/dist/esm/components/transportStyle/transportStyle.style.d.ts +1 -0
- package/dist/esm/components/transportStyle/transportStyle.style.js +54 -0
- package/dist/esm/components/tree/tree.style.js +83 -79
- package/dist/esm/components/tree/treeDnd.style.js +131 -129
- package/dist/esm/components/treeSelect/treeSelect.style.js +35 -33
- package/dist/esm/components/typography/typography.style.js +98 -96
- package/dist/esm/components/upload/dropArea.style.js +31 -29
- package/dist/esm/components/upload/upload.style.js +106 -104
- package/dist/esm/components/waterfall/waterfall.style.js +7 -5
- package/dist/esm/extensions/documentViewer/documentViewer.style.js +43 -41
- package/package.json +1 -1
|
@@ -21,12 +21,12 @@ exports.classes = (0, utils_1.defineInnerClasses)('tabs', [
|
|
|
21
21
|
exports.indicatorWidth = 2;
|
|
22
22
|
function useStyle({ color, variant }) {
|
|
23
23
|
const colorValue = (0, utils_1.useColor)(color);
|
|
24
|
-
return (0, utils_1.useCss)(({ divider, text, easing, background, spacing, borderRadius, gray
|
|
24
|
+
return (0, utils_1.useCss)(({ divider, text, easing, background, spacing, borderRadius, gray }) => {
|
|
25
25
|
const commonStyle = (0, react_1.css) `
|
|
26
26
|
display: flex;
|
|
27
27
|
position: relative;
|
|
28
28
|
overflow: hidden;
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
.${exports.classes.scroll} {
|
|
31
31
|
flex: 1;
|
|
32
32
|
display: flex;
|
|
@@ -37,7 +37,7 @@ function useStyle({ color, variant }) {
|
|
|
37
37
|
&::-webkit-scrollbar {
|
|
38
38
|
display: none;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
.${exports.classes.scrollWrap} {
|
|
42
42
|
flex: 1;
|
|
43
43
|
display: flex;
|
|
@@ -114,7 +114,7 @@ function useStyle({ color, variant }) {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
&::after {
|
|
118
118
|
content: '';
|
|
119
119
|
background-color: ${divider};
|
|
120
120
|
position: absolute;
|
|
@@ -150,18 +150,18 @@ function useStyle({ color, variant }) {
|
|
|
150
150
|
|
|
151
151
|
&[data-position=top],
|
|
152
152
|
&[data-position=bottom] {
|
|
153
|
-
|
|
153
|
+
&::after {
|
|
154
154
|
height: 1px;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
&[data-position=top] {
|
|
158
|
-
|
|
158
|
+
&::after {
|
|
159
159
|
inset: auto 0 0 0;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
&[data-position=bottom] {
|
|
164
|
-
|
|
164
|
+
&::after {
|
|
165
165
|
inset: 0 0 auto 0;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
@@ -173,18 +173,18 @@ function useStyle({ color, variant }) {
|
|
|
173
173
|
flex-direction: column;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
&::after {
|
|
177
177
|
width: 1px;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
&[data-position=left] {
|
|
181
|
-
|
|
181
|
+
&::after {
|
|
182
182
|
inset: 0 0 0 auto;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
&[data-position=right] {
|
|
187
|
-
|
|
187
|
+
&::after {
|
|
188
188
|
inset: 0 auto 0 0;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
@@ -193,18 +193,18 @@ function useStyle({ color, variant }) {
|
|
|
193
193
|
&:not([data-read-only=true]):not([data-disabled=true]) {
|
|
194
194
|
.${exports.classes.tab}:not([data-disabled=true]) {
|
|
195
195
|
cursor: pointer;
|
|
196
|
-
|
|
196
|
+
|
|
197
197
|
&:not([data-active=true]):hover {
|
|
198
198
|
color: ${gray(.65)};
|
|
199
199
|
}
|
|
200
|
-
|
|
200
|
+
|
|
201
201
|
&:not([data-active=true]):active {
|
|
202
202
|
transition: color 0s;
|
|
203
203
|
color: ${text.primary};
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
|
|
207
|
+
|
|
208
208
|
&[data-disabled=true] {
|
|
209
209
|
.${exports.classes.tab} {
|
|
210
210
|
cursor: not-allowed;
|
|
@@ -213,187 +213,189 @@ function useStyle({ color, variant }) {
|
|
|
213
213
|
`;
|
|
214
214
|
return variant === 'line'
|
|
215
215
|
? (0, react_1.css) `
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.${exports.classes.tab} {
|
|
223
|
-
transition: color .25s ${easing.easeOut};
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
&[data-position=top],
|
|
227
|
-
&[data-position=bottom] {
|
|
228
|
-
.${exports.classes.tab} {
|
|
229
|
-
padding: 10px 0;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
&[data-size=small] {
|
|
233
|
-
.${exports.classes.tab} {
|
|
234
|
-
padding: 6px 0;
|
|
216
|
+
@layer reset {
|
|
217
|
+
${commonStyle}
|
|
218
|
+
.${exports.classes.scrollWrap} {
|
|
219
|
+
gap: 0 ${spacing[10]}px;
|
|
235
220
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
&[data-size=large] {
|
|
221
|
+
|
|
239
222
|
.${exports.classes.tab} {
|
|
240
|
-
|
|
223
|
+
transition: color .25s ${easing.easeOut};
|
|
241
224
|
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
&[data-position=top] {
|
|
246
|
-
.${exports.classes.tab} {
|
|
247
|
-
border-bottom: ${exports.indicatorWidth}px solid transparent;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
225
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
226
|
+
&[data-position=top],
|
|
227
|
+
&[data-position=bottom] {
|
|
228
|
+
.${exports.classes.tab} {
|
|
229
|
+
padding: 10px 0;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
&[data-size=small] {
|
|
233
|
+
.${exports.classes.tab} {
|
|
234
|
+
padding: 6px 0;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&[data-size=large] {
|
|
239
|
+
.${exports.classes.tab} {
|
|
240
|
+
padding: 14px 0;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
256
244
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
245
|
+
&[data-position=top] {
|
|
246
|
+
.${exports.classes.tab} {
|
|
247
|
+
border-bottom: ${exports.indicatorWidth}px solid transparent;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
262
250
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
251
|
+
&[data-position=bottom] {
|
|
252
|
+
.${exports.classes.tab} {
|
|
253
|
+
border-top: ${exports.indicatorWidth}px solid transparent;
|
|
254
|
+
}
|
|
266
255
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
256
|
+
|
|
257
|
+
&[data-position=left],
|
|
258
|
+
&[data-position=right] {
|
|
259
|
+
.${exports.classes.tab} {
|
|
260
|
+
padding: 10px 18px;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
&[data-size=small] {
|
|
264
|
+
.${exports.classes.tab} {
|
|
265
|
+
padding: 6px 18px;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
&[data-size=large] {
|
|
270
|
+
.${exports.classes.tab} {
|
|
271
|
+
padding: 14px 18px;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
272
274
|
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
275
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
276
|
+
&[data-position=left] {
|
|
277
|
+
.${exports.classes.tab} {
|
|
278
|
+
border-right: ${exports.indicatorWidth}px solid transparent;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
281
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
282
|
+
&[data-position=right] {
|
|
283
|
+
.${exports.classes.tab} {
|
|
284
|
+
border-left: ${exports.indicatorWidth}px solid transparent;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
287
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
288
|
+
.${exports.classes.indicator} {
|
|
289
|
+
position: absolute;
|
|
290
|
+
z-index: 1;
|
|
291
|
+
transition-property: width, height, left, top;
|
|
292
|
+
transition-duration: .3s;
|
|
293
|
+
transition-timing-function: ${easing.bounce};
|
|
294
|
+
}
|
|
295
295
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
296
|
+
&:not([data-animating=true]) {
|
|
297
|
+
.${exports.classes.indicator} {
|
|
298
|
+
display: none;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
299
301
|
}
|
|
300
|
-
}
|
|
301
302
|
`
|
|
302
303
|
// variant === 'card'
|
|
303
304
|
: (0, react_1.css) `
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.${exports.classes.tab} {
|
|
311
|
-
border: 1px solid ${gray(.1)};
|
|
312
|
-
background-color: ${background.body};
|
|
313
|
-
transition: color .25s ${easing.easeOut}, background-color .25s ${easing.easeOut};
|
|
314
|
-
|
|
315
|
-
&[data-active=true] {
|
|
316
|
-
background-color: ${background.content};
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
&[data-position=top],
|
|
321
|
-
&[data-position=bottom] {
|
|
322
|
-
.${exports.classes.tab} {
|
|
323
|
-
padding: 10px 15px;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
&[data-size=small] {
|
|
327
|
-
.${exports.classes.tab} {
|
|
328
|
-
padding: 6px 15px;
|
|
305
|
+
@layer reset {
|
|
306
|
+
${commonStyle}
|
|
307
|
+
.${exports.classes.scrollWrap} {
|
|
308
|
+
gap: ${spacing[1]}px;
|
|
329
309
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
&[data-size=large] {
|
|
310
|
+
|
|
333
311
|
.${exports.classes.tab} {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
}
|
|
312
|
+
border: 1px solid ${gray(.1)};
|
|
313
|
+
background-color: ${background.body};
|
|
314
|
+
transition: color .25s ${easing.easeOut}, background-color .25s ${easing.easeOut};
|
|
338
315
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
316
|
+
&[data-active=true] {
|
|
317
|
+
background-color: ${background.content};
|
|
318
|
+
}
|
|
319
|
+
}
|
|
342
320
|
|
|
343
|
-
&[data-
|
|
344
|
-
|
|
321
|
+
&[data-position=top],
|
|
322
|
+
&[data-position=bottom] {
|
|
323
|
+
.${exports.classes.tab} {
|
|
324
|
+
padding: 10px 15px;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
&[data-size=small] {
|
|
328
|
+
.${exports.classes.tab} {
|
|
329
|
+
padding: 6px 15px;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
&[data-size=large] {
|
|
334
|
+
.${exports.classes.tab} {
|
|
335
|
+
padding: 14px 15px;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
345
338
|
}
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
339
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
340
|
+
&[data-position=top] {
|
|
341
|
+
.${exports.classes.tab} {
|
|
342
|
+
border-radius: ${borderRadius}px ${borderRadius}px 0 0;
|
|
352
343
|
|
|
353
|
-
|
|
354
|
-
|
|
344
|
+
&[data-active=true] {
|
|
345
|
+
border-bottom-color: ${background.content};
|
|
346
|
+
}
|
|
347
|
+
}
|
|
355
348
|
}
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
349
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
padding: 9px 18px;
|
|
363
|
-
}
|
|
350
|
+
&[data-position=bottom] {
|
|
351
|
+
.${exports.classes.tab} {
|
|
352
|
+
border-radius: 0 0 ${borderRadius}px ${borderRadius}px;
|
|
364
353
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
354
|
+
&[data-active=true] {
|
|
355
|
+
border-top-color: ${background.content};
|
|
356
|
+
}
|
|
357
|
+
}
|
|
368
358
|
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
359
|
+
|
|
360
|
+
&[data-position=left],
|
|
361
|
+
&[data-position=right] {
|
|
362
|
+
.${exports.classes.tab} {
|
|
363
|
+
padding: 9px 18px;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
&[data-size=small] {
|
|
367
|
+
.${exports.classes.tab} {
|
|
368
|
+
padding: 5px 18px;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
&[data-size=large] {
|
|
373
|
+
.${exports.classes.tab} {
|
|
374
|
+
padding: 13px 18px;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
374
377
|
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
378
|
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
379
|
+
&[data-position=left] {
|
|
380
|
+
.${exports.classes.tab} {
|
|
381
|
+
border-radius: ${borderRadius}px 0 0 ${borderRadius}px;
|
|
381
382
|
|
|
382
|
-
|
|
383
|
-
|
|
383
|
+
&[data-active=true] {
|
|
384
|
+
border-right-color: ${background.content};
|
|
385
|
+
}
|
|
386
|
+
}
|
|
384
387
|
}
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
388
|
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
&[data-position=right] {
|
|
390
|
+
.${exports.classes.tab} {
|
|
391
|
+
border-radius: 0 ${borderRadius}px ${borderRadius}px 0;
|
|
391
392
|
|
|
392
|
-
|
|
393
|
-
|
|
393
|
+
&[data-active=true] {
|
|
394
|
+
border-left-color: ${background.content};
|
|
395
|
+
}
|
|
396
|
+
}
|
|
394
397
|
}
|
|
395
398
|
}
|
|
396
|
-
}
|
|
397
399
|
`;
|
|
398
400
|
}, [colorValue, variant]);
|
|
399
401
|
}
|
|
@@ -8,9 +8,11 @@ const optionsBase_style_1 = require("../optionsBase/optionsBase.style");
|
|
|
8
8
|
exports.tabsEllipsisPopperStyle = (0, utils_1.defineCss)(theme => [
|
|
9
9
|
(0, popper_style_1.popperStyleCallback)(theme),
|
|
10
10
|
(0, react_1.css) `
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
@layer reset {
|
|
12
|
+
.${optionsBase_style_1.classes.root} .${optionsBase_style_1.classes.optionsList} {
|
|
13
|
+
max-width: 360px;
|
|
14
|
+
overflow: hidden auto;
|
|
15
|
+
}
|
|
14
16
|
}
|
|
15
17
|
`
|
|
16
18
|
]);
|
|
@@ -17,107 +17,109 @@ function useStyle({ color }) {
|
|
|
17
17
|
return (0, utils_1.useCss)(({ spacing, borderRadius, divider, gray, easing }) => {
|
|
18
18
|
const c = (0, color_1.default)(colorValue);
|
|
19
19
|
return (0, react_1.css) `
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
gap: 4px;
|
|
36
|
-
border-radius: 4px;
|
|
37
|
-
padding: ${spacing[1]}px ${spacing[2]}px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&[data-shape=rounded] {
|
|
41
|
-
border-radius: 1000em;
|
|
42
|
-
padding: ${spacing[1]}px 8px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&[data-size=medium] {
|
|
46
|
-
padding: ${spacing[2]}px ${spacing[3]}px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&[data-size=large] {
|
|
50
|
-
padding: 10px ${spacing[4]}px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
border-width: 1px;
|
|
54
|
-
|
|
55
|
-
&[data-variant=pure] {
|
|
56
|
-
border-width: 0;
|
|
57
|
-
padding: ${spacing[1] + 1}px ${spacing[2] + 1}px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
border-style: solid;
|
|
61
|
-
border-color: ${color === 'text' ? divider : c.alpha(.5).string()};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
&[data-variant=outlined],
|
|
65
|
-
&[data-variant=pure] {
|
|
66
|
-
color: ${colorValue};
|
|
67
|
-
background-color: ${c.alpha(.1).string()};
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&[data-variant=filled] {
|
|
71
|
-
color: #ffffff;
|
|
72
|
-
background-color: ${colorValue};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&[data-size=small] {
|
|
76
|
-
.${exports.classes.close} {
|
|
20
|
+
@layer reset {
|
|
21
|
+
line-height: 1;
|
|
22
|
+
display: inline-flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
|
|
25
|
+
.${exports.classes.content} {
|
|
26
|
+
flex: 1;
|
|
27
|
+
min-width: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
font-size: 1em;
|
|
31
|
+
gap: ${spacing[1]}px;
|
|
32
|
+
border-radius: ${borderRadius}px;
|
|
33
|
+
|
|
34
|
+
&[data-size=small] {
|
|
77
35
|
font-size: ${13 / 14}em;
|
|
36
|
+
gap: 4px;
|
|
37
|
+
border-radius: 4px;
|
|
38
|
+
padding: ${spacing[1]}px ${spacing[2]}px;
|
|
78
39
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
40
|
+
|
|
41
|
+
&[data-shape=rounded] {
|
|
42
|
+
border-radius: 1000em;
|
|
43
|
+
padding: ${spacing[1]}px 8px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[data-size=medium] {
|
|
47
|
+
padding: ${spacing[2]}px ${spacing[3]}px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&[data-size=large] {
|
|
51
|
+
padding: 10px ${spacing[4]}px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
border-width: 1px;
|
|
55
|
+
|
|
56
|
+
&[data-variant=pure] {
|
|
57
|
+
border-width: 0;
|
|
58
|
+
padding: ${spacing[1] + 1}px ${spacing[2] + 1}px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
border-style: solid;
|
|
62
|
+
border-color: ${color === 'text' ? divider : c.alpha(.5).string()};
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
&[data-variant=outlined],
|
|
66
|
+
&[data-variant=pure] {
|
|
67
|
+
color: ${colorValue};
|
|
68
|
+
background-color: ${c.alpha(.1).string()};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&[data-variant=filled] {
|
|
72
|
+
color: #ffffff;
|
|
73
|
+
background-color: ${colorValue};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&[data-size=small] {
|
|
77
|
+
.${exports.classes.close} {
|
|
78
|
+
font-size: ${13 / 14}em;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&[data-variant=filled] {
|
|
83
|
+
.${exports.classes.close} {
|
|
84
|
+
color: ${gray(.1)};
|
|
85
|
+
-webkit-tap-highlight-color: transparent;
|
|
86
|
+
|
|
87
|
+
&:hover {
|
|
88
|
+
color: ${gray(.2)};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:active {
|
|
92
|
+
transition: color 0s;
|
|
93
|
+
color: ${gray(.3)}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&[data-clickable=true] {
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
transition: filter .25s ${easing.easeOut};
|
|
101
|
+
|
|
86
102
|
&:hover {
|
|
87
|
-
|
|
103
|
+
filter: brightness(1.2);
|
|
88
104
|
}
|
|
89
|
-
|
|
105
|
+
|
|
90
106
|
&:active {
|
|
91
|
-
transition:
|
|
92
|
-
|
|
107
|
+
transition: filter 0s;
|
|
108
|
+
filter: brightness(.8);
|
|
93
109
|
}
|
|
94
110
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
filter: brightness(.8);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&[data-compact=row] {
|
|
112
|
-
&:not([data-last=true]) {
|
|
113
|
-
border-top-right-radius: 0;
|
|
114
|
-
border-bottom-right-radius: 0;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&:not([data-first=true]) {
|
|
118
|
-
border-top-left-radius: 0;
|
|
119
|
-
border-bottom-left-radius: 0;
|
|
120
|
-
margin-left: -1px;
|
|
111
|
+
|
|
112
|
+
&[data-compact=row] {
|
|
113
|
+
&:not([data-last=true]) {
|
|
114
|
+
border-top-right-radius: 0;
|
|
115
|
+
border-bottom-right-radius: 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&:not([data-first=true]) {
|
|
119
|
+
border-top-left-radius: 0;
|
|
120
|
+
border-bottom-left-radius: 0;
|
|
121
|
+
margin-left: -1px;
|
|
122
|
+
}
|
|
121
123
|
}
|
|
122
124
|
}
|
|
123
125
|
`;
|