@maggioli-design-system/styles 17.1.0 → 17.2.1

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.
@@ -180,6 +180,17 @@
180
180
  syntax: '*';
181
181
  }
182
182
 
183
+ /* The part of its height a corner may take, for the components whose radius is
184
+ * always past half their height: 0.5 where the browser clamps, less where
185
+ * corner-shape cannot be drawn (corner.ts). `inherits: true` for the same reason
186
+ * as the shape: the fallback block declares it on :root. */
187
+
188
+ @property --magma-corner-cap {
189
+ inherits: true;
190
+ initial-value: 0.5;
191
+ syntax: '<number>';
192
+ }
193
+
183
194
  /* z-index */
184
195
 
185
196
  @property --magma-header-z-index {
@@ -474,7 +485,7 @@
474
485
 
475
486
  @property --mds-badge-radius {
476
487
  inherits: true;
477
- initial-value: 16px;
488
+ initial-value: 1000px;
478
489
  syntax: '<length>';
479
490
  }
480
491
 
@@ -608,28 +619,16 @@
608
619
  syntax: '<color>';
609
620
  }
610
621
 
611
- @property --mds-breadcrumb-button-color-current {
612
- inherits: true;
613
- initial-value: rgb(5 5 5);
614
- syntax: '<color>';
615
- }
616
-
617
- @property --mds-breadcrumb-current-button-color {
618
- inherits: true;
619
- initial-value: rgb(119 119 119);
620
- syntax: '<color>';
621
- }
622
-
623
622
  /* mds-button-dropdown */
624
623
  @property --mds-button-dropdown-radius {
625
624
  inherits: true;
626
- initial-value: 24px;
625
+ initial-value: 40px;
627
626
  syntax: '<length>';
628
627
  }
629
628
 
630
629
  @property --mds-button-dropdown-window-radius {
631
630
  inherits: true;
632
- initial-value: 24px;
631
+ initial-value: 40px;
633
632
  syntax: '<length>';
634
633
  }
635
634
 
@@ -658,18 +657,6 @@
658
657
  syntax: '<number>';
659
658
  }
660
659
 
661
- @property --mds-button-border-high-contrast-hover-width {
662
- inherits: true;
663
- initial-value: 3px;
664
- syntax: '<length>';
665
- }
666
-
667
- @property --mds-button-border-high-contrast-width {
668
- inherits: true;
669
- initial-value: 2px;
670
- syntax: '<length>';
671
- }
672
-
673
660
  @property --mds-button-border-hover-opacity {
674
661
  inherits: true;
675
662
  initial-value: 0.75;
@@ -718,6 +705,12 @@
718
705
  syntax: '<length>';
719
706
  }
720
707
 
708
+ @property --mds-button-label-transform {
709
+ inherits: true;
710
+ initial-value: uppercase;
711
+ syntax: 'none | capitalize | uppercase | lowercase | full-width | full-size-kana';
712
+ }
713
+
721
714
  @property --mds-button-line-clamp {
722
715
  inherits: true;
723
716
  initial-value: 1;
@@ -730,223 +723,6 @@
730
723
  syntax: '<length>';
731
724
  }
732
725
 
733
- /* mds-calendar-cell */
734
- @property --mds-calendar-cell-background {
735
- inherits: true;
736
- initial-value: transparent;
737
- syntax: '<color>';
738
- }
739
-
740
- @property --mds-calendar-cell-boundaries-background {
741
- inherits: true;
742
- initial-value: transparent;
743
- syntax: '<color>';
744
- }
745
-
746
- @property --mds-calendar-cell-boundaries-color {
747
- inherits: true;
748
- initial-value: rgb(5 5 5);
749
- syntax: '<color>';
750
- }
751
-
752
- @property --mds-calendar-cell-boundaries-padding {
753
- inherits: true;
754
- initial-value: 4px;
755
- syntax: '<length>';
756
- }
757
-
758
- @property --mds-calendar-cell-color {
759
- inherits: true;
760
- initial-value: rgb(5 5 5);
761
- syntax: '<color>';
762
- }
763
-
764
- @property --mds-calendar-cell-disabled-background {
765
- inherits: true;
766
- initial-value: transparent;
767
- syntax: '<color>';
768
- }
769
-
770
- @property --mds-calendar-cell-disabled-color {
771
- inherits: true;
772
- initial-value: rgb(119 119 119);
773
- syntax: '<color>';
774
- }
775
-
776
- @property --mds-calendar-cell-other-month-background {
777
- inherits: true;
778
- initial-value: transparent;
779
- syntax: '<color>';
780
- }
781
-
782
- @property --mds-calendar-cell-other-month-color {
783
- inherits: true;
784
- initial-value: rgb(119 119 119);
785
- syntax: '<color>';
786
- }
787
-
788
- @property --mds-calendar-cell-preselection-current-month-background {
789
- inherits: true;
790
- initial-value: rgb(204 212 226);
791
- syntax: '<color>';
792
- }
793
-
794
- @property --mds-calendar-cell-preselection-current-month-boundaries-background {
795
- inherits: true;
796
- initial-value: rgb( 236 237 240 );
797
- syntax: '<color>';
798
- }
799
-
800
- @property --mds-calendar-cell-preselection-current-month-boundaries-color {
801
- inherits: true;
802
- initial-value: rgb(119 119 119);
803
- syntax: '<color>';
804
- }
805
-
806
- @property --mds-calendar-cell-preselection-current-month-color {
807
- inherits: true;
808
- initial-value: rgb(119 119 119);
809
- syntax: '<color>';
810
- }
811
-
812
- @property --mds-calendar-cell-preselection-other-month-background {
813
- inherits: true;
814
- initial-value: rgb(220 224 231);
815
- syntax: '<color>';
816
- }
817
-
818
- @property --mds-calendar-cell-preselection-other-month-boundaries-background {
819
- inherits: true;
820
- initial-value: rgb(248 248 248);
821
- syntax: '<color>';
822
- }
823
-
824
- @property --mds-calendar-cell-preselection-other-month-boundaries-color {
825
- inherits: true;
826
- initial-value: rgb(119 119 119);
827
- syntax: '<color>';
828
- }
829
-
830
- @property --mds-calendar-cell-preselection-other-month-color {
831
- inherits: true;
832
- initial-value: rgb(119 119 119);
833
- syntax: '<color>';
834
- }
835
-
836
- @property --mds-calendar-cell-preselection-today-background {
837
- inherits: true;
838
- initial-value: rgb(220 224 231);
839
- syntax: '<color>';
840
- }
841
-
842
- @property --mds-calendar-cell-preselection-today-color {
843
- inherits: true;
844
- initial-value: rgb(7 76 204);
845
- syntax: '<color>';
846
- }
847
-
848
- @property --mds-calendar-cell-selection-boundaries-border-radius {
849
- inherits: true;
850
- initial-value: 200px;
851
- syntax: '<length>';
852
- }
853
-
854
- @property --mds-calendar-cell-selection-current-month-background {
855
- inherits: true;
856
- initial-value: rgb(36 103 231);
857
- syntax: '<color>';
858
- }
859
-
860
- @property --mds-calendar-cell-selection-current-month-boundaries-background {
861
- inherits: true;
862
- initial-value: rgb(248 248 248);
863
- syntax: '<color>';
864
- }
865
-
866
- @property --mds-calendar-cell-selection-current-month-boundaries-color {
867
- inherits: true;
868
- initial-value: rgb(73 73 73);
869
- syntax: '<color>';
870
- }
871
-
872
- @property --mds-calendar-cell-selection-current-month-color {
873
- inherits: true;
874
- initial-value: rgb(255 255 255);
875
- syntax: '<color>';
876
- }
877
-
878
- @property --mds-calendar-cell-selection-current-month-weekend-background {
879
- inherits: true;
880
- initial-value: rgb(7 76 204);
881
- syntax: '<color>';
882
- }
883
-
884
- @property --mds-calendar-cell-selection-current-month-weekend-boundaries-background {
885
- inherits: true;
886
- initial-value: rgb( 7 76 204 );
887
- syntax: '<color>';
888
- }
889
-
890
- @property --mds-calendar-cell-selection-current-month-weekend-boundaries-color {
891
- inherits: true;
892
- initial-value: rgb(73 73 73);
893
- syntax: '<color>';
894
- }
895
-
896
- @property --mds-calendar-cell-selection-current-month-weekend-color {
897
- inherits: true;
898
- initial-value: rgb(148 172 218);
899
- syntax: '<color>';
900
- }
901
-
902
- @property --mds-calendar-cell-selection-other-month-background {
903
- inherits: true;
904
- initial-value: rgb(204 212 226);
905
- syntax: '<color>';
906
- }
907
-
908
- @property --mds-calendar-cell-selection-other-month-boundaries-background {
909
- inherits: true;
910
- initial-value: rgb(236 237 240);
911
- syntax: '<color>';
912
- }
913
-
914
- @property --mds-calendar-cell-selection-other-month-boundaries-color {
915
- inherits: true;
916
- initial-value: rgb(119 119 119);
917
- syntax: '<color>';
918
- }
919
-
920
- @property --mds-calendar-cell-selection-other-month-color {
921
- inherits: true;
922
- initial-value: rgb(99 99 99);
923
- syntax: '<color>';
924
- }
925
-
926
- @property --mds-calendar-cell-selection-week-boundaries-border-radius {
927
- inherits: true;
928
- initial-value: 200px;
929
- syntax: '<length>';
930
- }
931
-
932
- @property --mds-calendar-cell-size {
933
- inherits: true;
934
- initial-value: 48px;
935
- syntax: '<length>';
936
- }
937
-
938
- @property --mds-calendar-cell-weekend-background {
939
- inherits: true;
940
- initial-value: transparent;
941
- syntax: '<color>';
942
- }
943
-
944
- @property --mds-calendar-cell-weekend-color {
945
- inherits: true;
946
- initial-value: rgb(99 99 99);
947
- syntax: '<color>';
948
- }
949
-
950
726
  /* mds-calendar */
951
727
  @property --mds-calendar-background {
952
728
  inherits: true;
@@ -956,16 +732,10 @@
956
732
 
957
733
  @property --mds-calendar-border-radius {
958
734
  inherits: true;
959
- initial-value: 16px;
735
+ initial-value: 28px;
960
736
  syntax: '<length>';
961
737
  }
962
738
 
963
- @property --mds-calendar-day-number-color {
964
- inherits: true;
965
- initial-value: rgb(5 5 5);
966
- syntax: '<color>';
967
- }
968
-
969
739
  @property --mds-calendar-max-width {
970
740
  inherits: true;
971
741
  initial-value: 480px;
@@ -1006,7 +776,7 @@
1006
776
  /* mds-chip */
1007
777
  @property --mds-chip-background {
1008
778
  inherits: true;
1009
- initial-value: rgb(225 225 225);
779
+ initial-value: rgb(255 255 255);
1010
780
  syntax: '<color>';
1011
781
  }
1012
782
 
@@ -1068,7 +838,7 @@
1068
838
 
1069
839
  @property --mds-dropdown-backdrop-duration {
1070
840
  inherits: true;
1071
- initial-value: 200ms;
841
+ initial-value: 300ms;
1072
842
  syntax: '<time>';
1073
843
  }
1074
844
 
@@ -1298,7 +1068,7 @@
1298
1068
 
1299
1069
  @property --mds-entity-icon-radius {
1300
1070
  inherits: true;
1301
- initial-value: 12px;
1071
+ initial-value: 20px;
1302
1072
  syntax: '<length>';
1303
1073
  }
1304
1074
 
@@ -1433,18 +1203,6 @@
1433
1203
  syntax: 'true | false';
1434
1204
  }
1435
1205
 
1436
- @property --mds-header-color {
1437
- inherits: true;
1438
- initial-value: rgb(5 5 5);
1439
- syntax: '<color>';
1440
- }
1441
-
1442
- @property --mds-header-icon-color {
1443
- inherits: true;
1444
- initial-value: rgb(5 5 5);
1445
- syntax: '<color>';
1446
- }
1447
-
1448
1206
  @property --mds-header-inline-margin {
1449
1207
  inherits: true;
1450
1208
  initial-value: 24px;
@@ -1727,12 +1485,6 @@
1727
1485
  syntax: '<color>';
1728
1486
  }
1729
1487
 
1730
- @property --mds-input-date-icon-color-rgb {
1731
- inherits: true;
1732
- initial-value: 0 0 0;
1733
- syntax: '<integer>+';
1734
- }
1735
-
1736
1488
  @property --mds-input-date-variant-color-rgb {
1737
1489
  inherits: true;
1738
1490
  initial-value: 0 0 0;
@@ -2104,13 +1856,13 @@
2104
1856
  /* mds-keyboard */
2105
1857
  @property --mds-keyboard-background {
2106
1858
  inherits: true;
2107
- initial-value: rgb(201 208 219);
1859
+ initial-value: rgb(208 208 208);
2108
1860
  syntax: '<color>';
2109
1861
  }
2110
1862
 
2111
1863
  @property --mds-keyboard-background-default {
2112
1864
  inherits: true;
2113
- initial-value: rgb(201 208 219);
1865
+ initial-value: rgb(208 208 208);
2114
1866
  syntax: '<color>';
2115
1867
  }
2116
1868
 
@@ -2420,67 +2172,6 @@
2420
2172
  syntax: '<number>';
2421
2173
  }
2422
2174
 
2423
- /* mds-paginator-item */
2424
- @property --mds-paginator-item-background {
2425
- inherits: true;
2426
- initial-value: transparent;
2427
- syntax: '<color>';
2428
- }
2429
-
2430
- @property --mds-paginator-item-background-disabled {
2431
- inherits: true;
2432
- initial-value: rgb(225 225 225);
2433
- syntax: '<color>';
2434
- }
2435
-
2436
- @property --mds-paginator-item-background-hover {
2437
- inherits: true;
2438
- initial-value: rgb(208 208 208);
2439
- syntax: '<color>';
2440
- }
2441
-
2442
- @property --mds-paginator-item-background-selected {
2443
- inherits: true;
2444
- initial-value: rgb(7 76 204);
2445
- syntax: '<color>';
2446
- }
2447
-
2448
- @property --mds-paginator-item-color {
2449
- inherits: true;
2450
- initial-value: rgb(5 5 5);
2451
- syntax: '<color>';
2452
- }
2453
-
2454
- @property --mds-paginator-item-color-disabled {
2455
- inherits: true;
2456
- initial-value: rgb(119 119 119);
2457
- syntax: '<color>';
2458
- }
2459
-
2460
- @property --mds-paginator-item-color-hover {
2461
- inherits: true;
2462
- initial-value: rgb(5 5 5);
2463
- syntax: '<color>';
2464
- }
2465
-
2466
- @property --mds-paginator-item-color-selected {
2467
- inherits: true;
2468
- initial-value: rgb(255 255 255);
2469
- syntax: '<color>';
2470
- }
2471
-
2472
- @property --mds-paginator-item-radius {
2473
- inherits: true;
2474
- initial-value: 200px;
2475
- syntax: '<length>';
2476
- }
2477
-
2478
- @property --mds-paginator-item-size {
2479
- inherits: true;
2480
- initial-value: 36px;
2481
- syntax: '<length>';
2482
- }
2483
-
2484
2175
  /* mds-paginator */
2485
2176
  @property --mds-paginator-background {
2486
2177
  inherits: true;
@@ -2595,11 +2286,7 @@
2595
2286
  }
2596
2287
 
2597
2288
  /* mds-price-table-features */
2598
- @property --mds-price-table-features-border-color {
2599
- inherits: true;
2600
- initial-value: rgb(219 219 219);
2601
- syntax: '<color>';
2602
- }
2289
+
2603
2290
 
2604
2291
  /* mds-price-table-list-item */
2605
2292
  @property --mds-price-table-list-item-supported-icon-color {
@@ -2648,7 +2335,7 @@
2648
2335
 
2649
2336
  @property --mds-progress-radius {
2650
2337
  inherits: true;
2651
- initial-value: 28px;
2338
+ initial-value: 40px;
2652
2339
  syntax: '<length>';
2653
2340
  }
2654
2341
 
@@ -3095,7 +2782,13 @@
3095
2782
  /* mds-table */
3096
2783
  @property --mds-table-border-color {
3097
2784
  inherits: true;
3098
- initial-value: rgb(196 196 196);
2785
+ initial-value: rgb(219 219 219);
2786
+ syntax: '<color>';
2787
+ }
2788
+
2789
+ @property --mds-table-separator-color {
2790
+ inherits: true;
2791
+ initial-value: rgb(219 219 219);
3099
2792
  syntax: '<color>';
3100
2793
  }
3101
2794
 
@@ -3130,6 +2823,13 @@
3130
2823
  syntax: '<color>';
3131
2824
  }
3132
2825
 
2826
+ /* mds-toast-region */
2827
+ @property --mds-toast-region-gap {
2828
+ inherits: true;
2829
+ initial-value: 8px;
2830
+ syntax: '<length>';
2831
+ }
2832
+
3133
2833
  /* mds-toast */
3134
2834
  @property --mds-toast-background {
3135
2835
  inherits: true;
@@ -3213,7 +2913,7 @@
3213
2913
  /* mds-tree-item */
3214
2914
  @property --mds-tree-item-branch-border-radius {
3215
2915
  inherits: true;
3216
- initial-value: 16px;
2916
+ initial-value: 28px;
3217
2917
  syntax: '<length>';
3218
2918
  }
3219
2919
 
@@ -3224,24 +2924,6 @@
3224
2924
  syntax: 'true | false';
3225
2925
  }
3226
2926
 
3227
- @property --mds-tree-toggle-icon-chevron-expanded-background {
3228
- inherits: true;
3229
- initial-value: rgb(36 103 231);
3230
- syntax: '<color>';
3231
- }
3232
-
3233
- @property --mds-tree-toggle-icon-chevron-expanded-color {
3234
- inherits: true;
3235
- initial-value: rgb(255 255 255);
3236
- syntax: '<color>';
3237
- }
3238
-
3239
- @property --mds-tree-toggle-icon-folder-expanded-color {
3240
- inherits: true;
3241
- initial-value: rgb(36 103 231);
3242
- syntax: '<color>';
3243
- }
3244
-
3245
2927
  /* mds-url-view */
3246
2928
  @property --mds-url-view-background {
3247
2929
  inherits: true;
@@ -3257,7 +2939,7 @@
3257
2939
 
3258
2940
  @property --mds-url-view-radius {
3259
2941
  inherits: true;
3260
- initial-value: 12px;
2942
+ initial-value: 20px;
3261
2943
  syntax: '<length>';
3262
2944
  }
3263
2945
 
@@ -3316,9 +2998,14 @@
3316
2998
 
3317
2999
  --magma-radius-full is the same under every shape on purpose: the pill is out
3318
3000
  of the axis (see corner.ts).
3001
+
3002
+ A browser without corner-shape gets the round scale back from the last block,
3003
+ and --magma-corner-cap, the part of its height a corner may take, drops from
3004
+ 0.5 to the round look-alike of a squircle cut to half the height.
3319
3005
  */
3320
3006
  :root {
3321
3007
  --magma-corner-shape: squircle;
3008
+ --magma-corner-cap: 0.5;
3322
3009
 
3323
3010
  --magma-radius-none: var(--radius-none);
3324
3011
  --magma-radius-3xs: var(--radius-squircle-3xs);
@@ -3337,6 +3024,7 @@
3337
3024
 
3338
3025
  [data-corner-shape='round'] {
3339
3026
  --magma-corner-shape: round;
3027
+ --magma-corner-cap: 0.5;
3340
3028
 
3341
3029
  --magma-radius-none: var(--radius-none);
3342
3030
  --magma-radius-3xs: var(--radius-3xs);
@@ -3355,6 +3043,7 @@
3355
3043
 
3356
3044
  [data-corner-shape='squircle'] {
3357
3045
  --magma-corner-shape: squircle;
3046
+ --magma-corner-cap: 0.5;
3358
3047
 
3359
3048
  --magma-radius-none: var(--radius-none);
3360
3049
  --magma-radius-3xs: var(--radius-squircle-3xs);
@@ -3370,3 +3059,25 @@
3370
3059
  --magma-radius-5xl: var(--radius-squircle-5xl);
3371
3060
  --magma-radius-full: var(--radius-full);
3372
3061
  }
3062
+
3063
+ @supports not (corner-shape: squircle) {
3064
+ :root:not([data-corner-shape='round']),
3065
+ [data-corner-shape='squircle'] {
3066
+ --magma-corner-shape: round;
3067
+ --magma-corner-cap: 0.2915;
3068
+
3069
+ --magma-radius-none: var(--radius-none);
3070
+ --magma-radius-3xs: var(--radius-3xs);
3071
+ --magma-radius-2xs: var(--radius-2xs);
3072
+ --magma-radius-xs: var(--radius-xs);
3073
+ --magma-radius-sm: var(--radius-sm);
3074
+ --magma-radius-md: var(--radius-md);
3075
+ --magma-radius-lg: var(--radius-lg);
3076
+ --magma-radius-xl: var(--radius-xl);
3077
+ --magma-radius-2xl: var(--radius-2xl);
3078
+ --magma-radius-3xl: var(--radius-3xl);
3079
+ --magma-radius-4xl: var(--radius-4xl);
3080
+ --magma-radius-5xl: var(--radius-5xl);
3081
+ --magma-radius-full: var(--radius-full);
3082
+ }
3083
+ }