@react-md/core 1.0.0-next.5 → 1.0.0-next.6

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.
Files changed (74) hide show
  1. package/.turbo/turbo-build.log +5 -5
  2. package/CHANGELOG.md +6 -0
  3. package/dist/_core.scss +157 -240
  4. package/dist/_utils.scss +10 -0
  5. package/dist/app-bar/_app-bar.scss +95 -93
  6. package/dist/avatar/_avatar.scss +49 -47
  7. package/dist/badge/_badge.scss +19 -17
  8. package/dist/box/_box.scss +57 -55
  9. package/dist/button/_button.scss +122 -120
  10. package/dist/card/_card.scss +72 -70
  11. package/dist/chip/_chip.scss +105 -103
  12. package/dist/dialog/_dialog.scss +128 -126
  13. package/dist/divider/_divider.scss +24 -22
  14. package/dist/draggable/_draggable.scss +16 -12
  15. package/dist/expansion-panel/_expansion-panel.scss +69 -52
  16. package/dist/form/Form.d.ts +1 -1
  17. package/dist/form/Form.js +2 -1
  18. package/dist/form/Form.js.map +1 -1
  19. package/dist/form/_form.scss +1175 -1127
  20. package/dist/icon/_icon.scss +64 -62
  21. package/dist/interaction/_interaction.scss +39 -35
  22. package/dist/layout/_layout.scss +68 -67
  23. package/dist/link/_link.scss +52 -50
  24. package/dist/list/_list.scss +124 -122
  25. package/dist/menu/_menu.scss +9 -7
  26. package/dist/overlay/_overlay.scss +25 -23
  27. package/dist/progress/_progress.scss +11 -6
  28. package/dist/responsive-item/_responsive-item.scss +91 -89
  29. package/dist/segmented-button/_segmented-button.scss +54 -49
  30. package/dist/sheet/_sheet.scss +84 -82
  31. package/dist/snackbar/_snackbar.scss +128 -123
  32. package/dist/table/_table.scss +159 -157
  33. package/dist/tabs/_tabs.scss +10 -8
  34. package/dist/tooltip/_tooltip.scss +60 -58
  35. package/dist/transition/_transition.scss +44 -39
  36. package/dist/tree/_tree.scss +83 -81
  37. package/dist/typography/_typography.scss +58 -49
  38. package/dist/window-splitter/_window-splitter.scss +72 -70
  39. package/package.json +1 -1
  40. package/src/_core.scss +157 -240
  41. package/src/_utils.scss +10 -0
  42. package/src/app-bar/_app-bar.scss +95 -93
  43. package/src/avatar/_avatar.scss +49 -47
  44. package/src/badge/_badge.scss +19 -17
  45. package/src/box/_box.scss +57 -55
  46. package/src/button/_button.scss +122 -120
  47. package/src/card/_card.scss +72 -70
  48. package/src/chip/_chip.scss +105 -103
  49. package/src/dialog/_dialog.scss +128 -126
  50. package/src/divider/_divider.scss +24 -22
  51. package/src/draggable/_draggable.scss +16 -12
  52. package/src/expansion-panel/_expansion-panel.scss +69 -52
  53. package/src/form/Form.tsx +2 -1
  54. package/src/form/_form.scss +1175 -1127
  55. package/src/icon/_icon.scss +64 -62
  56. package/src/interaction/_interaction.scss +39 -35
  57. package/src/layout/_layout.scss +68 -67
  58. package/src/link/_link.scss +52 -50
  59. package/src/list/_list.scss +124 -122
  60. package/src/menu/_menu.scss +9 -7
  61. package/src/overlay/_overlay.scss +25 -23
  62. package/src/progress/_progress.scss +11 -6
  63. package/src/responsive-item/_responsive-item.scss +91 -89
  64. package/src/segmented-button/_segmented-button.scss +54 -49
  65. package/src/sheet/_sheet.scss +84 -82
  66. package/src/snackbar/_snackbar.scss +128 -123
  67. package/src/table/_table.scss +159 -157
  68. package/src/tabs/_tabs.scss +10 -8
  69. package/src/tooltip/_tooltip.scss +60 -58
  70. package/src/transition/_transition.scss +44 -39
  71. package/src/tree/_tree.scss +83 -81
  72. package/src/typography/_typography.scss +58 -49
  73. package/src/window-splitter/_window-splitter.scss +72 -70
  74. package/tsconfig.json +2 -2
@@ -1,18 +1,18 @@
1
1
 
2
- > @react-md/core@1.0.0-next.4 build /home/mlaursen/code/react-md/packages/core
2
+ > @react-md/core@1.0.0-next.5 build /home/mlaursen/code/react-md/packages/core
3
3
  > npm-run-all build-esm build-scss build-types
4
4
 
5
5
 
6
- > @react-md/core@1.0.0-next.4 build-esm /home/mlaursen/code/react-md/packages/core
6
+ > @react-md/core@1.0.0-next.5 build-esm /home/mlaursen/code/react-md/packages/core
7
7
  > swc src -d ./dist
8
8
 
9
- Successfully compiled: 368 files with swc (551.18ms)
9
+ Successfully compiled: 368 files with swc (365.46ms)
10
10
 
11
- > @react-md/core@1.0.0-next.4 build-scss /home/mlaursen/code/react-md/packages/core
11
+ > @react-md/core@1.0.0-next.5 build-scss /home/mlaursen/code/react-md/packages/core
12
12
  > node scripts/copySassFiles.js
13
13
 
14
14
  Copied 38 scss files
15
15
 
16
- > @react-md/core@1.0.0-next.4 build-types /home/mlaursen/code/react-md/packages/core
16
+ > @react-md/core@1.0.0-next.5 build-types /home/mlaursen/code/react-md/packages/core
17
17
  > tsc -P tsconfig.types.json
18
18
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @react-md/core
2
2
 
3
+ ## 1.0.0-next.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed missing use client directives, styling issues in labels and expansion panels, and removing unused layers.
8
+
3
9
  ## 1.0.0-next.5
4
10
 
5
11
  ### Patch Changes
package/dist/_core.scss CHANGED
@@ -140,160 +140,162 @@ $_layer-order: (
140
140
  }
141
141
  }
142
142
 
143
- @mixin css-utils {
144
- .rmd-display-none {
145
- display: none !important;
146
- }
143
+ @mixin css-utils($disable-layer: false) {
144
+ @include utils.optional-layer(utils, $disable-layer) {
145
+ .rmd-display-none {
146
+ display: none !important;
147
+ }
147
148
 
148
- .rmd-sr-only {
149
- @include utils.sr-only(true);
150
- }
149
+ .rmd-sr-only {
150
+ @include utils.sr-only(true);
151
+ }
151
152
 
152
- .rmd-phone-sr-only {
153
- @include media-queries.phone-media {
154
- @include utils.sr-only;
153
+ .rmd-phone-sr-only {
154
+ @include media-queries.phone-media {
155
+ @include utils.sr-only;
156
+ }
155
157
  }
156
- }
157
158
 
158
- .rmd-outline {
159
- // inset box-shadow is faded on the lower right half? use outline instead
160
- outline: theme.theme-get-var(outline-width) solid
161
- theme.theme-get-var(outline-color);
162
- outline-offset: utils.negate-var(theme.theme-get-var(outline-width));
163
- }
159
+ .rmd-outline {
160
+ // inset box-shadow is faded on the lower right half? use outline instead
161
+ outline: theme.theme-get-var(outline-width) solid
162
+ theme.theme-get-var(outline-color);
163
+ outline-offset: utils.negate-var(theme.theme-get-var(outline-width));
164
+ }
164
165
 
165
- .rmd-greyscale-outline {
166
- @include theme.theme-set-var(outline-color, outline-grey-color);
167
- }
166
+ .rmd-greyscale-outline {
167
+ @include theme.theme-set-var(outline-color, outline-grey-color);
168
+ }
168
169
 
169
- .rmd-background-container {
170
- @include theme.theme-use-var(background-color);
171
- @include theme.theme-use-var(color, on-background-color, currentcolor);
172
- }
170
+ .rmd-background-container {
171
+ @include theme.theme-use-var(background-color);
172
+ @include theme.theme-use-var(color, on-background-color, currentcolor);
173
+ }
173
174
 
174
- @each $color in (primary, secondary, warning, success, error) {
175
- $theme-name: $color + "-color";
176
- $on-theme-name: "on-" + $theme-name;
175
+ @each $color in (primary, secondary, warning, success, error) {
176
+ $theme-name: $color + "-color";
177
+ $on-theme-name: "on-" + $theme-name;
177
178
 
178
- .rmd-#{$color}-container {
179
- @include theme.theme-set-var(background-color, $theme-name);
180
- @include theme.theme-set-var(on-background-color, $on-theme-name);
181
- }
179
+ .rmd-#{$color}-container {
180
+ @include theme.theme-set-var(background-color, $theme-name);
181
+ @include theme.theme-set-var(on-background-color, $on-theme-name);
182
+ }
182
183
 
183
- .rmd-#{$theme-name} {
184
- @include theme.theme-use-var(color, $theme-name);
185
- }
184
+ .rmd-#{$theme-name} {
185
+ @include theme.theme-use-var(color, $theme-name);
186
+ }
186
187
 
187
- .rmd-#{$on-theme-name} {
188
- @include theme.theme-use-var(color, $on-theme-name);
189
- }
188
+ .rmd-#{$on-theme-name} {
189
+ @include theme.theme-use-var(color, $on-theme-name);
190
+ }
190
191
 
191
- .rmd-#{$color}-outline {
192
- @include theme.theme-set-var(outline-color, $theme-name);
192
+ .rmd-#{$color}-outline {
193
+ @include theme.theme-set-var(outline-color, $theme-name);
194
+ }
193
195
  }
194
- }
195
196
 
196
- @each $color in (primary, secondary, hint, disabled) {
197
- .rmd-text-#{$color}-color {
198
- @include theme.theme-use-var(color, text-#{$color}-color);
197
+ @each $color in (primary, secondary, hint, disabled) {
198
+ .rmd-text-#{$color}-color {
199
+ @include theme.theme-use-var(color, text-#{$color}-color);
200
+ }
199
201
  }
200
- }
201
202
 
202
- .rmd-light-surface {
203
- @include interaction.use-light-surface;
204
- @include theme.theme-set-var(
205
- text-primary-color,
206
- theme.$light-theme-text-primary-color
207
- );
208
- @include theme.theme-set-var(
209
- text-secondary-color,
210
- theme.$light-theme-text-secondary-color
211
- );
212
- @include theme.theme-set-var(
213
- text-hint-color,
214
- theme.$light-theme-text-hint-color
215
- );
216
- @include theme.theme-set-var(
217
- text-disabled-color,
218
- theme.$dark-theme-text-disabled-color
219
- );
220
- }
203
+ .rmd-light-surface {
204
+ @include interaction.use-light-surface;
205
+ @include theme.theme-set-var(
206
+ text-primary-color,
207
+ theme.$light-theme-text-primary-color
208
+ );
209
+ @include theme.theme-set-var(
210
+ text-secondary-color,
211
+ theme.$light-theme-text-secondary-color
212
+ );
213
+ @include theme.theme-set-var(
214
+ text-hint-color,
215
+ theme.$light-theme-text-hint-color
216
+ );
217
+ @include theme.theme-set-var(
218
+ text-disabled-color,
219
+ theme.$dark-theme-text-disabled-color
220
+ );
221
+ }
221
222
 
222
- .rmd-dark-surface {
223
- @include interaction.use-dark-surface;
224
- @include theme.theme-set-var(
225
- text-primary-color,
226
- theme.$dark-theme-text-primary-color
227
- );
228
- @include theme.theme-set-var(
229
- text-secondary-color,
230
- theme.$dark-theme-text-secondary-color
231
- );
232
- @include theme.theme-set-var(
233
- text-hint-color,
234
- theme.$dark-theme-text-hint-color
235
- );
236
- @include theme.theme-set-var(
237
- text-disabled-color,
238
- theme.$dark-theme-text-disabled-color
239
- );
240
- }
223
+ .rmd-dark-surface {
224
+ @include interaction.use-dark-surface;
225
+ @include theme.theme-set-var(
226
+ text-primary-color,
227
+ theme.$dark-theme-text-primary-color
228
+ );
229
+ @include theme.theme-set-var(
230
+ text-secondary-color,
231
+ theme.$dark-theme-text-secondary-color
232
+ );
233
+ @include theme.theme-set-var(
234
+ text-hint-color,
235
+ theme.$dark-theme-text-hint-color
236
+ );
237
+ @include theme.theme-set-var(
238
+ text-disabled-color,
239
+ theme.$dark-theme-text-disabled-color
240
+ );
241
+ }
241
242
 
242
- .rmd-no-margin {
243
- margin: 0;
244
- }
243
+ .rmd-no-margin {
244
+ margin: 0;
245
+ }
245
246
 
246
- .rmd-no-margin-top {
247
- margin-top: 0;
248
- }
247
+ .rmd-no-margin-top {
248
+ margin-top: 0;
249
+ }
249
250
 
250
- .rmd-no-margin-bottom {
251
- margin-bottom: 0;
252
- }
251
+ .rmd-no-margin-bottom {
252
+ margin-bottom: 0;
253
+ }
253
254
 
254
- .rmd-centered {
255
- margin: 0 auto;
256
- }
255
+ .rmd-centered {
256
+ margin: 0 auto;
257
+ }
257
258
 
258
- .rmd-nowrap {
259
- white-space: nowrap;
260
- }
259
+ .rmd-nowrap {
260
+ white-space: nowrap;
261
+ }
261
262
 
262
- .rmd-ellipsis {
263
- @include typography.text-overflow(null);
264
- }
263
+ .rmd-ellipsis {
264
+ @include typography.text-overflow(null);
265
+ }
265
266
 
266
- @each $alignment in typography.$text-alignments {
267
- .rmd-align-#{$alignment} {
268
- @if $alignment != center {
269
- @include utils.auto-rtl(text-align, $alignment);
270
- } @else {
271
- text-align: $alignment;
267
+ @each $alignment in typography.$text-alignments {
268
+ .rmd-align-#{$alignment} {
269
+ @if $alignment != center {
270
+ @include utils.auto-rtl(text-align, $alignment);
271
+ } @else {
272
+ text-align: $alignment;
273
+ }
272
274
  }
273
275
  }
274
- }
275
276
 
276
- @each $decoration in typography.$text-decorations {
277
- .rmd-#{$decoration} {
278
- text-decoration: $decoration;
277
+ @each $decoration in typography.$text-decorations {
278
+ .rmd-#{$decoration} {
279
+ text-decoration: $decoration;
280
+ }
279
281
  }
280
- }
281
282
 
282
- @each $transform in typography.$text-transforms {
283
- .rmd-#{$transform} {
284
- text-transform: $transform;
283
+ @each $transform in typography.$text-transforms {
284
+ .rmd-#{$transform} {
285
+ text-transform: $transform;
286
+ }
285
287
  }
286
- }
287
288
 
288
- @each $font-style in typography.$font-styles {
289
- .rmd-#{$font-style} {
290
- font-style: $font-style;
289
+ @each $font-style in typography.$font-styles {
290
+ .rmd-#{$font-style} {
291
+ font-style: $font-style;
292
+ }
291
293
  }
292
- }
293
294
 
294
- @each $name, $font-weight in typography.$font-weights {
295
- .rmd-#{$name} {
296
- font-weight: $font-weight;
295
+ @each $name, $font-weight in typography.$font-weights {
296
+ .rmd-#{$name} {
297
+ font-weight: $font-weight;
298
+ }
297
299
  }
298
300
  }
299
301
  }
@@ -363,124 +365,39 @@ $_layer-order: (
363
365
  @include css-reset;
364
366
 
365
367
  @layer #{$_layer-order};
366
- @layer utils {
367
- @include css-utils;
368
- }
369
-
370
- @layer app-bar {
371
- @include app-bar.styles;
372
- }
373
- @layer avatar {
374
- @include avatar.styles;
375
- }
376
- @layer badge {
377
- @include badge.styles;
378
- }
379
- @layer box {
380
- @include box.styles;
381
- }
382
- @layer button {
383
- @include button.styles;
384
- }
385
- @layer card {
386
- @include card.styles;
387
- }
388
- @layer chip {
389
- @include chip.styles;
390
- }
391
-
392
- @layer dialog {
393
- @include dialog.styles;
394
- }
395
- @layer divider {
396
- @include divider.styles;
397
- }
398
- @layer draggable {
399
- @include draggable.styles;
400
- }
401
- @layer expansion-panel {
402
- @include expansion-panel.styles;
403
- }
404
-
405
- @layer form {
406
- @include form.styles;
407
- }
408
-
409
- @layer icon {
410
- @include icon.styles;
411
- }
412
-
413
- @layer interaction {
414
- @include interaction.styles;
415
- }
416
-
417
- @layer layout {
418
- @include layout.styles;
419
- }
420
-
421
- @layer link {
422
- @include link.styles;
423
- }
424
-
425
- @layer list {
426
- @include list.styles;
427
- }
428
-
429
- @layer menu {
430
- @include menu.styles;
431
- }
432
-
433
- @layer overlay {
434
- @include overlay.styles;
435
- }
436
-
437
- @layer progress {
438
- @include progress.styles;
439
- }
440
-
441
- @layer responsive-item {
442
- @include responsive-item.styles;
443
- }
444
-
445
- @layer segmented-button {
446
- @include segmented-button.styles;
447
- }
448
-
449
- @layer sheet {
450
- @include sheet.styles;
451
- }
452
-
453
- @layer snackbar {
454
- @include snackbar.styles;
455
- }
456
-
457
- @layer table {
458
- @include table.styles;
459
- }
460
-
461
- @layer tabs {
462
- @include tabs.styles;
463
- }
464
-
465
- @layer tooltip {
466
- @include tooltip.styles;
467
- }
468
-
469
- @layer transition {
470
- @include transition.transition-styles;
471
- }
472
-
473
- @layer tree {
474
- @include tree.styles;
475
- }
476
-
477
- @layer typography {
478
- @include typography.typography-styles;
479
- }
480
-
481
- @layer window-splitter {
482
- @include window-splitter.styles;
483
- }
368
+ @include css-utils;
369
+
370
+ @include app-bar.styles;
371
+ @include avatar.styles;
372
+ @include badge.styles;
373
+ @include box.styles;
374
+ @include button.styles;
375
+ @include card.styles;
376
+ @include chip.styles;
377
+ @include dialog.styles;
378
+ @include divider.styles;
379
+ @include draggable.styles;
380
+ @include expansion-panel.styles;
381
+ @include form.styles;
382
+ @include icon.styles;
383
+ @include interaction.styles;
384
+ @include layout.styles;
385
+ @include link.styles;
386
+ @include list.styles;
387
+ @include menu.styles;
388
+ @include overlay.styles;
389
+ @include progress.styles;
390
+ @include responsive-item.styles;
391
+ @include segmented-button.styles;
392
+ @include sheet.styles;
393
+ @include snackbar.styles;
394
+ @include table.styles;
395
+ @include tabs.styles;
396
+ @include tooltip.styles;
397
+ @include transition.transition-styles;
398
+ @include tree.styles;
399
+ @include typography.typography-styles;
400
+ @include window-splitter.styles;
484
401
 
485
402
  @if not theme.$disable-default-root-theme {
486
403
  :root {
package/dist/_utils.scss CHANGED
@@ -336,3 +336,13 @@ $_swappable-properties: text-align;
336
336
  }
337
337
  }
338
338
  }
339
+
340
+ @mixin optional-layer($name, $disabled) {
341
+ @if $disabled {
342
+ @content;
343
+ } @else {
344
+ @layer #{$name} {
345
+ @content;
346
+ }
347
+ }
348
+ }