@react-md/core 1.0.0-next.5 → 1.0.0-next.7
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/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-lint.log +12 -0
- package/CHANGELOG.md +12 -0
- package/dist/_core.scss +157 -240
- package/dist/_utils.scss +10 -0
- package/dist/app-bar/_app-bar.scss +95 -93
- package/dist/avatar/_avatar.scss +49 -47
- package/dist/badge/_badge.scss +19 -17
- package/dist/box/_box.scss +57 -55
- package/dist/button/_button.scss +122 -120
- package/dist/card/_card.scss +72 -70
- package/dist/chip/_chip.scss +105 -103
- package/dist/dialog/_dialog.scss +128 -126
- package/dist/divider/_divider.scss +24 -22
- package/dist/draggable/_draggable.scss +16 -12
- package/dist/expansion-panel/_expansion-panel.scss +69 -52
- package/dist/form/Form.d.ts +1 -1
- package/dist/form/Form.js +2 -1
- package/dist/form/Form.js.map +1 -1
- package/dist/form/_form.scss +1175 -1128
- package/dist/icon/_icon.scss +64 -62
- package/dist/interaction/_interaction.scss +39 -35
- package/dist/layout/_layout.scss +68 -67
- package/dist/link/_link.scss +52 -50
- package/dist/list/_list.scss +124 -122
- package/dist/menu/_menu.scss +9 -7
- package/dist/overlay/_overlay.scss +25 -23
- package/dist/progress/_progress.scss +11 -6
- package/dist/responsive-item/_responsive-item.scss +91 -89
- package/dist/segmented-button/_segmented-button.scss +54 -49
- package/dist/sheet/_sheet.scss +84 -82
- package/dist/snackbar/_snackbar.scss +128 -123
- package/dist/table/_table.scss +159 -157
- package/dist/tabs/_tabs.scss +10 -8
- package/dist/tooltip/_tooltip.scss +60 -58
- package/dist/transition/_transition.scss +44 -39
- package/dist/tree/_tree.scss +83 -81
- package/dist/typography/_typography.scss +58 -49
- package/dist/window-splitter/_window-splitter.scss +72 -70
- package/package.json +1 -1
- package/src/_core.scss +157 -240
- package/src/_utils.scss +10 -0
- package/src/app-bar/_app-bar.scss +95 -93
- package/src/avatar/_avatar.scss +49 -47
- package/src/badge/_badge.scss +19 -17
- package/src/box/_box.scss +57 -55
- package/src/button/_button.scss +122 -120
- package/src/card/_card.scss +72 -70
- package/src/chip/_chip.scss +105 -103
- package/src/dialog/_dialog.scss +128 -126
- package/src/divider/_divider.scss +24 -22
- package/src/draggable/_draggable.scss +16 -12
- package/src/expansion-panel/_expansion-panel.scss +69 -52
- package/src/form/Form.tsx +2 -1
- package/src/form/_form.scss +1175 -1128
- package/src/icon/_icon.scss +64 -62
- package/src/interaction/_interaction.scss +39 -35
- package/src/layout/_layout.scss +68 -67
- package/src/link/_link.scss +52 -50
- package/src/list/_list.scss +124 -122
- package/src/menu/_menu.scss +9 -7
- package/src/overlay/_overlay.scss +25 -23
- package/src/progress/_progress.scss +11 -6
- package/src/responsive-item/_responsive-item.scss +91 -89
- package/src/segmented-button/_segmented-button.scss +54 -49
- package/src/sheet/_sheet.scss +84 -82
- package/src/snackbar/_snackbar.scss +128 -123
- package/src/table/_table.scss +159 -157
- package/src/tabs/_tabs.scss +10 -8
- package/src/tooltip/_tooltip.scss +60 -58
- package/src/transition/_transition.scss +44 -39
- package/src/tree/_tree.scss +83 -81
- package/src/typography/_typography.scss +58 -49
- package/src/window-splitter/_window-splitter.scss +72 -70
- package/tsconfig.json +2 -2
package/dist/button/_button.scss
CHANGED
|
@@ -164,160 +164,162 @@ $variables: (
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
@mixin styles {
|
|
167
|
+
@mixin styles($disable-layer: false) {
|
|
168
168
|
@if not $disable-everything {
|
|
169
|
-
.
|
|
170
|
-
|
|
171
|
-
@
|
|
172
|
-
|
|
169
|
+
@include utils.optional-layer(button, $disable-layer) {
|
|
170
|
+
.rmd-button {
|
|
171
|
+
@if not $disable-circular-progress {
|
|
172
|
+
@include progress.set-var(circular-size, $circular-progress-size);
|
|
173
|
+
}
|
|
173
174
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
175
|
+
@include icon.set-var(color, currentcolor);
|
|
176
|
+
@include icon.use-var(gap, spacing);
|
|
177
|
+
@include use-var(background-color);
|
|
178
|
+
@include use-var(color);
|
|
179
|
+
@include use-var(border-radius);
|
|
180
|
+
|
|
181
|
+
align-items: center;
|
|
182
|
+
border-width: 0;
|
|
183
|
+
display: inline-flex;
|
|
184
|
+
flex-shrink: 0;
|
|
185
|
+
justify-content: center;
|
|
186
|
+
|
|
187
|
+
@if not $disable-text {
|
|
188
|
+
&--text {
|
|
189
|
+
@include text-styles;
|
|
190
|
+
}
|
|
189
191
|
}
|
|
190
|
-
}
|
|
191
192
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
193
|
+
@if not $disable-icon {
|
|
194
|
+
&--icon {
|
|
195
|
+
@include icon.set-var(size, 1em);
|
|
196
|
+
@include set-var(border-radius, get-var(icon-border-radius));
|
|
197
|
+
@include use-var(font-size, icon-font-size);
|
|
198
|
+
@include use-var(height, icon-size);
|
|
199
|
+
@include use-var(width, icon-size);
|
|
199
200
|
|
|
200
|
-
|
|
201
|
-
|
|
201
|
+
padding: $icon-padding;
|
|
202
|
+
}
|
|
202
203
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
@if not $disable-icon-square {
|
|
205
|
+
&--icon-square {
|
|
206
|
+
@include set-var(icon-border-radius, $icon-square-border-radius);
|
|
207
|
+
}
|
|
206
208
|
}
|
|
207
|
-
}
|
|
208
209
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
@if $icon-small-size {
|
|
211
|
+
&--small {
|
|
212
|
+
font-size: $icon-small-size;
|
|
213
|
+
}
|
|
212
214
|
}
|
|
213
|
-
}
|
|
214
215
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
@if $icon-large-size {
|
|
217
|
+
&--large {
|
|
218
|
+
font-size: $icon-large-size;
|
|
219
|
+
}
|
|
218
220
|
}
|
|
219
221
|
}
|
|
220
|
-
}
|
|
221
222
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
&--responsive {
|
|
224
|
+
@include media-queries.tablet-media {
|
|
225
|
+
@include text-styles;
|
|
225
226
|
|
|
226
|
-
|
|
227
|
-
|
|
227
|
+
height: auto;
|
|
228
|
+
width: auto;
|
|
229
|
+
}
|
|
228
230
|
}
|
|
229
|
-
}
|
|
230
231
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
232
|
+
&:disabled,
|
|
233
|
+
&--disabled {
|
|
234
|
+
@include theme.theme-set-var(outline-color, currentcolor);
|
|
235
|
+
// this was added for the file input
|
|
236
|
+
@include interaction.surface-disabled($clickable: false);
|
|
237
|
+
}
|
|
237
238
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
239
|
+
@if not $disable-contained {
|
|
240
|
+
&--contained {
|
|
241
|
+
@include box-shadows.elevation-transition(
|
|
242
|
+
$contained-elevation,
|
|
243
|
+
if(
|
|
244
|
+
$disable-contained-pressed-elevation,
|
|
245
|
+
null,
|
|
246
|
+
$contained-pressed-elevation
|
|
247
|
+
),
|
|
248
|
+
"&.rmd-button--pressed",
|
|
249
|
+
$pseudo-before: false,
|
|
250
|
+
$position-relative: false
|
|
251
|
+
);
|
|
252
|
+
|
|
253
|
+
// contained buttons should _normally_ always force dark background
|
|
254
|
+
// colors for the interaction states This means use the default light
|
|
255
|
+
// theme since it is based off of the root background color
|
|
256
|
+
@if not $disable-contained-interaction-colors {
|
|
257
|
+
@include interaction.use-light-surface;
|
|
258
|
+
}
|
|
258
259
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
260
|
+
@include set-var(
|
|
261
|
+
background-color,
|
|
262
|
+
get-var(contained-background-color)
|
|
263
|
+
);
|
|
264
|
+
@include set-var(color, get-var(contained-color));
|
|
265
|
+
}
|
|
264
266
|
}
|
|
265
|
-
}
|
|
266
267
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
268
|
+
@if not $disable-async {
|
|
269
|
+
&--async {
|
|
270
|
+
@include overlay.set-var(background-color, transparent);
|
|
271
|
+
@include progress.set-var(color, currentcolor);
|
|
272
|
+
// @include progress.set-var(background-color, currentcolor);
|
|
273
|
+
}
|
|
273
274
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
&--async-overlay {
|
|
276
|
+
> * {
|
|
277
|
+
opacity: 0;
|
|
278
|
+
}
|
|
277
279
|
}
|
|
278
280
|
}
|
|
279
281
|
}
|
|
280
|
-
}
|
|
281
282
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
@if not $disable-unstyled-utility-class {
|
|
284
|
+
.rmd-button-unstyled {
|
|
285
|
+
@include unstyled;
|
|
286
|
+
}
|
|
285
287
|
}
|
|
286
|
-
}
|
|
287
288
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
289
|
+
@if not $disable-floating {
|
|
290
|
+
.rmd-fab {
|
|
291
|
+
position: fixed;
|
|
292
|
+
z-index: $floating-z-index;
|
|
292
293
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
294
|
+
@if not $disable-floating-absolute-position {
|
|
295
|
+
&--absolute {
|
|
296
|
+
@include set-var(fab-offset, 0px);
|
|
296
297
|
|
|
297
|
-
|
|
298
|
-
|
|
298
|
+
position: absolute;
|
|
299
|
+
z-index: $floating-absolute-z-index;
|
|
300
|
+
}
|
|
299
301
|
}
|
|
300
|
-
}
|
|
301
302
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
303
|
+
@each $suffix, $styles in $floating-positions {
|
|
304
|
+
&--#{$suffix} {
|
|
305
|
+
@each $property, $value in $styles {
|
|
306
|
+
@if $property == left {
|
|
307
|
+
@include utils.rtl {
|
|
308
|
+
left: auto;
|
|
309
|
+
right: calc(#{$value} + #{get-var(fab-offset)});
|
|
310
|
+
}
|
|
310
311
|
|
|
311
|
-
left: $value;
|
|
312
|
-
} @else if $property == right {
|
|
313
|
-
@include utils.rtl {
|
|
314
312
|
left: $value;
|
|
315
|
-
|
|
316
|
-
|
|
313
|
+
} @else if $property == right {
|
|
314
|
+
@include utils.rtl {
|
|
315
|
+
left: $value;
|
|
316
|
+
right: auto;
|
|
317
|
+
}
|
|
317
318
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
right: calc(#{$value} + #{get-var(fab-offset)});
|
|
320
|
+
} @else {
|
|
321
|
+
#{$property}: #{$value};
|
|
322
|
+
}
|
|
321
323
|
}
|
|
322
324
|
}
|
|
323
325
|
}
|
package/dist/card/_card.scss
CHANGED
|
@@ -86,100 +86,102 @@ $variables: (background-color, color, secondary-color);
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
@mixin styles {
|
|
89
|
+
@mixin styles($disable-layer: false) {
|
|
90
90
|
@if not $disable-everything {
|
|
91
|
-
@include
|
|
92
|
-
@include
|
|
93
|
-
|
|
91
|
+
@include utils.optional-layer(card, $disable-layer) {
|
|
92
|
+
@include theme.default-system-theme {
|
|
93
|
+
@include use-dark-theme;
|
|
94
|
+
}
|
|
94
95
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
96
|
+
.rmd-card {
|
|
97
|
+
@include use-var(background-color);
|
|
98
|
+
@include use-var(color);
|
|
99
|
+
|
|
100
|
+
border-radius: $border-radius;
|
|
101
|
+
display: inline-block;
|
|
102
|
+
max-width: 100%;
|
|
103
|
+
|
|
104
|
+
@if not $disable-raisable {
|
|
105
|
+
&--raisable {
|
|
106
|
+
@include box-shadows.elevation-transition(
|
|
107
|
+
$raisable-start-elevation,
|
|
108
|
+
$raisable-end-elevation,
|
|
109
|
+
"&:hover"
|
|
110
|
+
);
|
|
111
|
+
}
|
|
110
112
|
}
|
|
111
|
-
}
|
|
112
113
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
@if not $disable-shadowed {
|
|
115
|
+
&--shadowed {
|
|
116
|
+
@include box-shadows.box-shadow($elevation);
|
|
117
|
+
}
|
|
116
118
|
}
|
|
117
|
-
}
|
|
118
119
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
@if not $disable-bordered {
|
|
121
|
+
&--bordered {
|
|
122
|
+
border: $border-width inset $border-color;
|
|
123
|
+
}
|
|
122
124
|
}
|
|
123
|
-
}
|
|
124
125
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
@if not $disable-full-width {
|
|
127
|
+
&--full-width {
|
|
128
|
+
display: block;
|
|
129
|
+
width: 100%;
|
|
130
|
+
}
|
|
129
131
|
}
|
|
130
|
-
}
|
|
131
132
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
@if not $disable-clickable {
|
|
134
|
+
&--clickable {
|
|
135
|
+
@include interaction.surface;
|
|
136
|
+
}
|
|
135
137
|
}
|
|
136
|
-
}
|
|
137
138
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
139
|
+
&__header {
|
|
140
|
+
align-items: center;
|
|
141
|
+
column-gap: $header-spacing;
|
|
142
|
+
display: flex;
|
|
143
|
+
padding: $header-padding-top $header-padding $header-padding;
|
|
144
|
+
}
|
|
144
145
|
|
|
145
|
-
|
|
146
|
-
|
|
146
|
+
&__header-content {
|
|
147
|
+
@include typography.text-overflow;
|
|
147
148
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
flex: 1 1 auto;
|
|
150
|
+
min-width: 0;
|
|
151
|
+
}
|
|
151
152
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
// does not require custom styles
|
|
154
|
+
// &__title {
|
|
155
|
+
// }
|
|
155
156
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
// does not require custom styles
|
|
158
|
+
// &__subtitle {
|
|
159
|
+
// }
|
|
159
160
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
&__content {
|
|
162
|
+
@if not $disable-content-secondary-color {
|
|
163
|
+
&--secondary {
|
|
164
|
+
@include theme.theme-use-var(color, text-secondary-color);
|
|
165
|
+
}
|
|
164
166
|
}
|
|
165
|
-
}
|
|
166
167
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
@if $content-padding {
|
|
169
|
+
&--padded {
|
|
170
|
+
padding: $content-padding;
|
|
171
|
+
}
|
|
170
172
|
}
|
|
171
|
-
}
|
|
172
173
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
@if not $disable-content-last-child-padding {
|
|
175
|
+
&--padded-bottom:last-child {
|
|
176
|
+
padding-bottom: $content-padding-bottom;
|
|
177
|
+
}
|
|
176
178
|
}
|
|
177
179
|
}
|
|
178
|
-
}
|
|
179
180
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
@if $footer-padding {
|
|
182
|
+
&__footer {
|
|
183
|
+
padding: $footer-padding;
|
|
184
|
+
}
|
|
183
185
|
}
|
|
184
186
|
}
|
|
185
187
|
}
|