@deque/cauldron-styles 6.0.0 → 6.1.0-canary.33d6b541

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 (2) hide show
  1. package/dist/index.css +349 -128
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -423,6 +423,8 @@ p {
423
423
  --button-text-color-light: var(--white);
424
424
  --button-focus-ring-color: var(--focus-light);
425
425
  --button-thin-height: 23px;
426
+
427
+ --button-height: 36px;
426
428
  }
427
429
 
428
430
  .Button--primary,
@@ -436,7 +438,7 @@ p {
436
438
  padding: 0 16px;
437
439
  position: relative;
438
440
  text-align: center;
439
- min-height: 36px;
441
+ min-height: var(--button-height);
440
442
  min-width: 100px;
441
443
  display: inline-grid;
442
444
  grid-auto-flow: column;
@@ -512,7 +514,7 @@ button.Link {
512
514
  background-color: var(--button-background-color-primary-disabled);
513
515
  }
514
516
 
515
- .Button--primary:active {
517
+ .Button--primary:not([disabled]):not([aria-disabled='true']):active {
516
518
  background: var(--button-background-color-primary-active);
517
519
  }
518
520
 
@@ -528,7 +530,7 @@ button.Link {
528
530
  background-color: var(--button-background-color-secondary-disabled);
529
531
  }
530
532
 
531
- .Button--secondary:active {
533
+ .Button--secondary:not([disabled]):not([aria-disabled='true']):active {
532
534
  background-color: var(--button-background-color-secondary-active);
533
535
  }
534
536
 
@@ -545,7 +547,7 @@ button.Link {
545
547
  background-color: var(--button-background-color-error-disabled);
546
548
  }
547
549
 
548
- .Button--error:active {
550
+ .Button--error:not([disabled]):not([aria-disabled='true']):active {
549
551
  background-color: var(--button-background-color-error-active);
550
552
  }
551
553
 
@@ -642,12 +644,15 @@ button.Link {
642
644
  color: var(--dark-workspace-color);
643
645
  }
644
646
 
645
- .cauldron--theme-dark .Button--primary:active,
646
- .cauldron--theme-dark .Button--secondary:active {
647
+ .cauldron--theme-dark
648
+ .Button--primary:not([disabled]):not([aria-disabled='true']):active,
649
+ .cauldron--theme-dark
650
+ .Button--secondary:not([disabled]):not([aria-disabled='true']):active {
647
651
  color: var(--accent-medium);
648
652
  }
649
653
 
650
- .cauldron--theme-dark .Button--error:active {
654
+ .cauldron--theme-dark
655
+ .Button--error:not([disabled]):not([aria-disabled='true']):active {
651
656
  background-color: #fea7a6;
652
657
  color: var(--accent-medium);
653
658
  }
@@ -685,38 +690,37 @@ button.Link {
685
690
  }
686
691
 
687
692
  :root {
693
+ /* Primary */
694
+ --icon-button-primary-color: var(--button-text-color-light);
688
695
  --icon-button-background-color-primary: var(
689
696
  --button-background-color-primary
690
697
  );
691
- --icon-button-background-color-primary-disabled: var(
692
- --button-background-color-primary-disabled
693
- );
694
698
  --icon-button-background-color-primary-active: var(
695
699
  --button-background-color-primary-active
696
700
  );
697
701
  --icon-button-outline-color-primary: var(--button-outline-color-primary);
698
702
 
703
+ --icon-button-large-height: var(--button-height);
704
+
705
+ /* Secondary */
706
+ --icon-button-secondary-color: var(--button-text-color-dark);
699
707
  --icon-button-background-color-secondary: var(
700
708
  --button-background-color-secondary
701
709
  );
702
- --icon-button-background-color-secondary-disabled: var(
703
- --button-background-color-secondary-disabled
704
- );
705
710
  --icon-button-background-color-secondary-active: var(
706
711
  --button-background-color-secondary-active
707
712
  );
708
713
  --icon-button-outline-color-secondary: var(--button-outline-color-secondary);
709
714
  --icon-button-border-color-secondary: var(--gray-40);
710
715
 
716
+ /* Error */
711
717
  --icon-button-background-color-error: var(--button-background-color-error);
712
- --icon-button-background-color-error-disabled: var(
713
- --button-background-color-error-disabled
714
- );
718
+ --icon-button-outline-color-error: var(--button-outline-color-error);
715
719
  --icon-button-background-color-error-active: var(
716
720
  --button-background-color-error-active
717
721
  );
718
- --icon-button-outline-color-error: var(--button-outline-color-error);
719
722
 
723
+ /* Deprecated variables */
720
724
  --icon-button-content-color-light-disabled: #ccc;
721
725
  --icon-button-background-color-light: #dadada;
722
726
  --icon-button-background-color-light-active: #c2c2c2;
@@ -727,6 +731,12 @@ button.Link {
727
731
  --icon-button-background-color-dark-disabled: var(--accent-medium);
728
732
  --icon-button-background-color-dark-active: var(--accent-dark);
729
733
  --icon-button-outline-color-dark: var(--icon-button-background-color-dark);
734
+ --icon-button-background-color-secondary-disabled: var(
735
+ --button-background-color-secondary-disabled
736
+ );
737
+ --icon-button-background-color-error-disabled: var(
738
+ --button-background-color-error-disabled
739
+ );
730
740
  }
731
741
 
732
742
  .IconButton {
@@ -778,21 +788,26 @@ a.IconButton {
778
788
  pointer-events: none;
779
789
  }
780
790
 
781
- .IconButton--secondary[aria-disabled='true'],
782
- .IconButton--secondary[disabled] {
791
+ .IconButton--large {
792
+ height: var(--icon-button-large-height);
793
+ width: var(--icon-button-large-height);
794
+ }
795
+
796
+ .IconButton--secondary:is([aria-disabled='true'], [disabled]),
797
+ .IconButton--secondary:is([aria-disabled='true'], [disabled]):active {
783
798
  color: var(--disabled);
784
799
  background-color: var(--button-background-color-secondary-disabled);
785
800
  cursor: default;
786
801
  }
787
802
 
788
- .IconButton--primary[aria-disabled='true'],
789
- .IconButton--primary[disabled] {
803
+ .IconButton--primary:is([aria-disabled='true'], [disabled]),
804
+ .IconButton--primary:is([aria-disabled='true'], [disabled]):active {
790
805
  background-color: var(--button-background-color-primary-disabled);
791
806
  cursor: default;
792
807
  }
793
808
 
794
- .IconButton--error[aria-disabled='true'],
795
- .IconButton--error[disabled] {
809
+ .IconButton--error:is([aria-disabled='true'], [disabled]),
810
+ .IconButton--error:is([aria-disabled='true'], [disabled]):active {
796
811
  color: var(--button-text-color-light);
797
812
  background-color: var(--button-background-color-error-disabled);
798
813
  cursor: default;
@@ -804,7 +819,7 @@ a.IconButton {
804
819
 
805
820
  .IconButton--primary {
806
821
  background-color: var(--icon-button-background-color-primary);
807
- color: var(--button-text-color-light);
822
+ color: var(--icon-button-primary-color);
808
823
  }
809
824
 
810
825
  .IconButton--primary:not([disabled]):not([aria-disabled='true']):hover:before {
@@ -818,10 +833,12 @@ a.IconButton {
818
833
  .IconButton--secondary {
819
834
  border: 1px solid var(--icon-button-border-color-secondary);
820
835
  background-color: var(--icon-button-background-color-secondary);
821
- color: var(--button-text-color-dark);
836
+ color: var(--icon-button-secondary-color);
822
837
  }
823
838
 
824
- .IconButton--secondary:not([disabled]):not([aria-disabled='true']):hover:before {
839
+ .IconButton--secondary:not([disabled]):not(
840
+ [aria-disabled='true']
841
+ ):hover:before {
825
842
  box-shadow: 0 0 0 1px var(--icon-button-outline-color-secondary);
826
843
  }
827
844
 
@@ -845,57 +862,91 @@ a.IconButton {
845
862
  /* Dark Theme */
846
863
 
847
864
  .cauldron--theme-dark {
848
- --icon-button-border-color-secondary: var(--accent-medium);
849
- --icon-button-background-color-secondary: var(--accent-medium);
850
- --icon-button-background-color-primary: var(--gray-20);
851
865
  --icon-button-icon-color: var(--white);
852
- }
853
-
854
- .cauldron--theme-dark .IconButton--error {
855
- background-color: var(--accent-dark);
856
- color: var(--white);
866
+ --icon-button-outline-shadow-color: var(--accent-medium);
867
+ --icon-button-disabled-color: var(--dark-workspace-color);
868
+ --icon-button-active-color: var(--accent-medium);
869
+
870
+ /* Primary */
871
+ --icon-button-primary-color: var(--white);
872
+ --icon-button-background-color-primary: var(--accent-medium);
873
+ --icon-button-background-color-primary-active: var(--accent-info-active);
874
+ --icon-button-outline-color-primary: var(--accent-info);
875
+ --icon-button-border-color-primary: var(--accent-info);
876
+
877
+ /* Secondary */
878
+ --icon-button-border-color-secondary: var(--accent-light);
879
+ --icon-button-background-color-secondary: var(--accent-medium);
880
+ --icon-button-secondary-color: var(--white);
881
+ --icon-button-background-color-secondary-active: var(--accent-light);
882
+ --icon-button-outline-color-secondary: var(--accent-light);
883
+
884
+ /* Error */
885
+ --icon-button-background-color-error: var(--accent-medium);
886
+ --icon-button-border-color-error: var(--accent-danger);
887
+ --icon-button-outline-color-error: var(--accent-danger);
888
+ --icon-button-background-color-error-active: var(
889
+ --button-background-color-error-active
890
+ );
857
891
  }
858
892
 
859
893
  .cauldron--theme-dark .IconButton--primary {
860
- color: var(--gray-90);
894
+ border: 2px solid var(--icon-button-border-color-primary);
861
895
  }
862
896
 
863
- .cauldron--theme-dark .IconButton--primary[aria-disabled='true'],
864
- .cauldron--theme-dark .IconButton--primary[disabled] {
865
- background-color: var(--gray-20);
866
- color: var(--gray-40);
897
+ .cauldron--theme-dark .IconButton--secondary {
898
+ border-width: 2px;
867
899
  }
868
900
 
869
- .cauldron--theme-dark .IconButton--secondary[aria-disabled='true'],
870
- .cauldron--theme-dark .IconButton--secondary[disabled] {
871
- color: #5d676f;
901
+ .cauldron--theme-dark .IconButton--error {
902
+ border: 2px solid var(--icon-button-border-color-error);
872
903
  }
873
904
 
874
- .cauldron--theme-dark .IconButton--secondary {
875
- color: var(--white);
905
+ .cauldron--theme-dark
906
+ .IconButton--primary:is([aria-disabled='true'], [disabled]),
907
+ .cauldron--theme-dark
908
+ .IconButton--secondary:is([aria-disabled='true'], [disabled]),
909
+ .cauldron--theme-dark
910
+ .IconButton--error:is([aria-disabled='true'], [disabled]) {
911
+ color: var(--icon-button-disabled-color);
876
912
  }
877
913
 
878
- .cauldron--theme-dark .IconButton--error {
879
- background-color: var(--accent-danger);
880
- color: var(--accent-dark);
914
+ .cauldron--theme-dark .IconButton--primary:active,
915
+ .cauldron--theme-dark .IconButton--secondary:active,
916
+ .cauldron--theme-dark .IconButton--error:active {
917
+ color: var(--icon-button-active-color);
881
918
  }
882
919
 
883
- .cauldron--theme-dark .IconButton--primary:active {
884
- background-color: #e5ebec;
920
+ .cauldron--theme-dark
921
+ .IconButton:is([aria-disabled='true'], [disabled]):active {
922
+ color: var(--icon-button-disabled-color);
885
923
  }
886
924
 
887
- .cauldron--theme-dark .IconButton--secondary:active {
888
- background-color: var(--accent-dark);
925
+ .cauldron--theme-dark
926
+ .IconButton--primary:not([disabled]):not(
927
+ [aria-disabled='true']
928
+ ):hover:before {
929
+ box-shadow: 0 0 0 1px var(--icon-button-outline-shadow-color),
930
+ 0 0 0 2px var(--icon-button-outline-color-primary);
889
931
  }
890
932
 
891
933
  .cauldron--theme-dark
892
- .IconButton--primary:not([disabled]):not([aria-disabled='true']):hover:before {
893
- box-shadow: 0 0 0 1px var(--accent-light);
934
+ .IconButton--secondary:not([disabled]):not(
935
+ [aria-disabled='true']
936
+ ):hover:before {
937
+ box-shadow: 0 0 0 1px var(--icon-button-outline-shadow-color),
938
+ 0 0 0 2px var(--icon-button-outline-color-secondary);
894
939
  }
895
940
 
896
941
  .cauldron--theme-dark
897
- .IconButton--secondary:not([disabled]):not([aria-disabled='true']):hover:before {
898
- box-shadow: 0 0 0 1px var(--white);
942
+ .IconButton--error:not([disabled]):not([aria-disabled='true']):hover:before {
943
+ box-shadow: 0 0 0 1px var(--icon-button-outline-shadow-color),
944
+ 0 0 0 2px var(--icon-button-outline-color-error);
945
+ }
946
+
947
+ .cauldron--theme-dark .IconButton:focus:before {
948
+ box-shadow: 0 0 0 2px var(--icon-button-outline-shadow-color),
949
+ 0 0 0 4px var(--button-focus-ring-color, --focus);
899
950
  }
900
951
 
901
952
  :root {
@@ -1010,8 +1061,8 @@ a.IconButton {
1010
1061
  }
1011
1062
 
1012
1063
  .Dialog__close svg {
1013
- height: 100%;
1014
- width: 100%;
1064
+ /* match icon size with height/width of button */
1065
+ --icon-size: 100%;
1015
1066
  }
1016
1067
 
1017
1068
  .cauldron--theme-dark .Dialog__close {
@@ -1228,6 +1279,7 @@ ul.semantic-only {
1228
1279
  .cauldron--theme-dark {
1229
1280
  --field-background-color: var(--accent-medium);
1230
1281
  --field-content-color: var(--white);
1282
+ --field-border-color: #74818b;
1231
1283
  --field-border-color-hover: var(--accent-info-light);
1232
1284
  --field-border-color-focus: var(--accent-info);
1233
1285
  --field-border-color-focus-hover: var(--accent-info-light);
@@ -1289,7 +1341,7 @@ textarea:focus,
1289
1341
  [role='spinbutton']:focus {
1290
1342
  outline: 0;
1291
1343
  border: 1px solid var(--field-border-color-focus);
1292
- box-shadow: 0 0 0 2px var(--field-border-color-focus),
1344
+ box-shadow: 0 0 0 1px var(--field-border-color-focus),
1293
1345
  0 0 5px var(--field-border-color-focus-glow),
1294
1346
  inset 0 1px 2px rgba(0, 0, 0, 0.05);
1295
1347
  }
@@ -1314,6 +1366,9 @@ textarea:focus:hover,
1314
1366
  [role='listbox']:focus:hover,
1315
1367
  [role='spinbutton']:focus:hover {
1316
1368
  border: 1px solid var(--field-border-color-focus-hover);
1369
+ box-shadow: 0 0 0 1px var(--field-border-color-focus-hover),
1370
+ 0 0 5px var(--field-border-color-focus-glow),
1371
+ inset 0 1px 2px rgba(0, 0, 0, 0.05);
1317
1372
  }
1318
1373
 
1319
1374
  input.Field--has-error,
@@ -1325,6 +1380,8 @@ textarea.Field--has-error,
1325
1380
  [role='listbox'].Field--has-error,
1326
1381
  [role='spinbutton'].Field--has-error {
1327
1382
  border: 1px solid var(--field-border-color-error);
1383
+ box-shadow: 0 0 0 1px var(--field-border-color-error),
1384
+ inset 0 1px 2px rgba(0, 0, 0, 0.05);
1328
1385
  }
1329
1386
 
1330
1387
  .Checkbox__overlay.Field--has-error {
@@ -1357,9 +1414,9 @@ textarea.Field--has-error:focus,
1357
1414
  [role='listbox'].Field--has-error:focus,
1358
1415
  [role='spinbutton'].Field--has-error:focus {
1359
1416
  border: 1px solid var(--field-border-color-error);
1360
- box-shadow: 0 0 0 1px var(--field-border-color-error-hover),
1361
- inset 0 2px 3px 0 rgba(0, 0, 0, 0.05),
1362
- 0 0 5px 0 var(--field-border-color-error-focus-glow);
1417
+ box-shadow: 0 0 0 1px var(--field-border-color-error),
1418
+ 0 0 5px var(--field-border-color-error-focus-glow),
1419
+ inset 0 1px 2px rgba(0, 0, 0, 0.05);
1363
1420
  }
1364
1421
 
1365
1422
  input.Field--has-error:focus:hover,
@@ -1627,11 +1684,13 @@ textarea.Field--has-error:focus:hover,
1627
1684
  .Radio__overlay--disabled.Icon--radio-checked,
1628
1685
  .Checkbox__overlay--disabled.Icon--checkbox-checked {
1629
1686
  color: var(--field-icon-checked-disabled-color);
1687
+ cursor: default;
1630
1688
  }
1631
1689
 
1632
1690
  .Checkbox__overlay--disabled.Icon--checkbox-unchecked,
1633
1691
  .Radio__overlay--disabled.Icon--radio-unchecked {
1634
1692
  color: var(--field-icon-unchecked-disabled-color);
1693
+ cursor: default;
1635
1694
  }
1636
1695
 
1637
1696
  .Field__label:hover ~ .Radio__overlay:not(.Radio__overlay--disabled),
@@ -3052,21 +3111,25 @@ button.TooltipTabstop {
3052
3111
  }
3053
3112
 
3054
3113
  :root {
3055
- --tabs-border-color: #b3bfc6;
3114
+ --tabs-border-color: var(--stroke-light);
3056
3115
  --tab-shadow-color: var(--accent-primary);
3057
- --tab-inactive-background-color: var(--gray-20);
3058
- --tab-inactive-text-color: var(--gray-60);
3059
- --tab-active-background-color: var(--white);
3116
+ --tab-inactive-background-color: #fff;
3117
+ --tab-inactive-text-color: var(--gray-80);
3118
+ --tab-active-background-color: #fff;
3119
+ --tab-hover-background-color: var(--gray-20);
3120
+ --tab-panel-color: var(--gray-80);
3060
3121
  --tabs-active-text-color: var(--gray-90);
3061
3122
  }
3062
3123
 
3063
3124
  .cauldron--theme-dark {
3064
- --tabs-border-color: #5d676f;
3125
+ --tabs-border-color: var(--stroke-dark);
3065
3126
  --tab-shadow-color: var(--accent-info);
3066
3127
  --tab-inactive-background-color: var(--accent-medium);
3067
3128
  --tab-inactive-text-color: var(--accent-light);
3068
- --tab-active-background-color: var(--accent-dark);
3069
- --tabs-active-text-color: var(--white);
3129
+ --tab-active-background-color: var(--accent-medium);
3130
+ --tab-hover-background-color: var(--accent-dark);
3131
+ --tab-panel-color: var(--accent-light);
3132
+ --tabs-active-text-color: #fff;
3070
3133
  }
3071
3134
 
3072
3135
  .Tabs {
@@ -3083,6 +3146,13 @@ button.TooltipTabstop {
3083
3146
  display: inline-block;
3084
3147
  }
3085
3148
 
3149
+ .Tabs--horizontal {
3150
+ width: 100%;
3151
+ border: 1px solid var(--tabs-border-color);
3152
+ background-color: var(--tab-inactive-background-color);
3153
+ border-bottom: 0;
3154
+ }
3155
+
3086
3156
  .Tablist {
3087
3157
  display: flex;
3088
3158
  flex-direction: row;
@@ -3093,6 +3163,10 @@ button.TooltipTabstop {
3093
3163
  flex-direction: column;
3094
3164
  }
3095
3165
 
3166
+ .Tabs--horizontal .Tablist {
3167
+ border-left: 0;
3168
+ }
3169
+
3096
3170
  .Tab {
3097
3171
  display: flex;
3098
3172
  justify-content: center;
@@ -3116,32 +3190,40 @@ button.TooltipTabstop {
3116
3190
  border-right: none;
3117
3191
  }
3118
3192
 
3193
+ .Tabs--horizontal .Tab {
3194
+ border-top: 0;
3195
+ }
3196
+
3119
3197
  .cauldron--theme-light .Tabs--vertical .Tab:last-child {
3120
3198
  border-bottom: 1px solid var(--tabs-border-color);
3121
3199
  }
3122
3200
 
3123
3201
  .Tab:hover {
3124
3202
  cursor: pointer;
3125
- background-color: var(--tab-active-background-color);
3203
+ background-color: var(--tab-hover-background-color);
3126
3204
  color: var(--tabs-active-text-color);
3127
3205
  }
3128
3206
 
3129
3207
  .Tab--active {
3130
3208
  color: var(--tabs-active-text-color);
3131
3209
  background-color: var(--tab-active-background-color);
3132
- font-weight: bold;
3210
+ font-weight: var(--font-weight-medium);
3133
3211
  text-decoration: none;
3134
3212
  box-shadow: inset 0 4px 0 var(--tab-shadow-color);
3135
3213
  z-index: 1;
3136
3214
  }
3137
3215
 
3216
+ .Tab--active:hover {
3217
+ background-color: var(--tab-active-background-color);
3218
+ }
3219
+
3138
3220
  .Tabs--vertical .Tab--active {
3139
3221
  box-shadow: inset 4px 0 0 var(--tab-shadow-color);
3140
3222
  }
3141
3223
 
3142
3224
  .TabPanel {
3143
3225
  overflow-wrap: break-word;
3144
- color: var(--tabs-active-text-color);
3226
+ color: var(--tab-panel-color);
3145
3227
  background-color: var(--tab-active-background-color);
3146
3228
  border: 1px solid var(--tabs-border-color);
3147
3229
  padding: 1rem;
@@ -3251,7 +3333,16 @@ button.TooltipTabstop {
3251
3333
  background: var(--table-header-background-color);
3252
3334
  font-weight: var(--font-weight-medium);
3253
3335
  color: var(--table-header-text-color);
3254
- border-bottom: 3px solid var(--table-row-border-color);
3336
+ border-bottom: 2px solid var(--table-row-border-color);
3337
+ }
3338
+
3339
+ .TableBody .TableHeader {
3340
+ border-bottom-width: 1px;
3341
+ border-right: 2px solid var(--table-row-border-color);
3342
+ }
3343
+
3344
+ .TableBody .TableRow:last-child .TableHeader {
3345
+ border-bottom: none;
3255
3346
  }
3256
3347
 
3257
3348
  .TableHeader[aria-sort] {
@@ -3338,6 +3429,11 @@ button.TooltipTabstop {
3338
3429
  border-bottom: 2px solid var(--gray-40);
3339
3430
  }
3340
3431
 
3432
+ .Table--border .TableBody .TableHeader {
3433
+ border-bottom-width: 1px;
3434
+ border-right: 2px solid var(--table-row-border-color);
3435
+ }
3436
+
3341
3437
  .cauldron--theme-dark .Table--border,
3342
3438
  .cauldron--theme-dark .Table--border .TableHeader,
3343
3439
  .cauldron--theme-dark .Table--border .TableFooter,
@@ -3473,15 +3569,62 @@ button.TooltipTabstop {
3473
3569
  }
3474
3570
  }
3475
3571
 
3476
- .Stepper {
3477
- --step-indicator-size: 2em;
3478
- --step-line-height: 0.53em;
3479
- --step-line-offset: 1.33em;
3572
+ :root {
3573
+ --step-indicator-size: 1.75rem;
3574
+ --step-line-height: 0.5rem;
3575
+ --step-line-offset: 1.438rem;
3576
+
3577
+ --step-indicator-content-size: 1rem;
3578
+
3579
+ --step-label-color: var(--gray-60);
3580
+ --step-line-color: var(--accent-light);
3581
+ --step-indicator-background: var(--accent-light);
3582
+ --step-indicator-color: var(--gray-90);
3583
+
3584
+ --step-current-indicator-background: #fff;
3585
+ --step-current-indicator-color: var(--accent-dark);
3586
+ --step-current-indicator-shadow: 0 0 0 2px var(--accent-dark);
3587
+ --step-current-complete-line-border-color: var(--accent-dark);
3588
+
3589
+ --step-complete-indicator-background: var(--accent-dark);
3590
+ --step-complete-indicator-color: #fff;
3591
+
3592
+ --step-current-label-color: var(--gray-90);
3593
+ --step-complete-indicator-svg-color: var(--accent-success);
3594
+
3595
+ --stepper-color: var(--gray-90);
3596
+ }
3597
+
3598
+ /* Dark theme variables */
3599
+
3600
+ .cauldron--theme-dark {
3601
+ --step-label-color: var(--accent-light);
3602
+ --step-line-color: var(--accent-medium);
3603
+ --step-indicator-color: #fff;
3604
+ --step-indicator-background: var(--accent-medium);
3605
+
3606
+ --step-current-indicator-background: #fff;
3607
+ --step-current-indicator-color: var(--accent-dark);
3608
+ --step-current-indicator-shadow: 0 0 0 2px var(--accent-dark),
3609
+ 0 0 0 4px var(--accent-info);
3610
+ --step-current-complete-line-border-color: var(--accent-info);
3480
3611
 
3612
+ --step-complete-indicator-background: var(--accent-info);
3613
+ --step-complete-indicator-color: var(--accent-dark);
3614
+
3615
+ --step-current-label-color: #fff;
3616
+ --step-complete-indicator-svg-color: #000;
3617
+
3618
+ --stepper-color: var(--accent-light);
3619
+ --stepper-background-color: var(--accent-dark);
3620
+ }
3621
+
3622
+ .Stepper {
3481
3623
  display: flex;
3482
3624
  padding: var(--space-medium);
3483
3625
  align-items: flex-start;
3484
- color: var(--gray-90);
3626
+ color: var(--stepper-color);
3627
+ background-color: var(--stepper-background-color);
3485
3628
  counter-reset: stepper;
3486
3629
  list-style-type: none;
3487
3630
  margin: 0 auto;
@@ -3499,7 +3642,7 @@ button.TooltipTabstop {
3499
3642
  left: calc(-50% + var(--step-line-offset));
3500
3643
  right: calc(50% + var(--step-line-offset));
3501
3644
  flex: 1 1 auto;
3502
- border-top: var(--step-line-height) solid var(--accent-light);
3645
+ border-top: var(--step-line-height) solid var(--step-line-color);
3503
3646
  }
3504
3647
 
3505
3648
  .Stepper__step:first-child .Stepper__step-line {
@@ -3516,16 +3659,16 @@ button.TooltipTabstop {
3516
3659
  width: var(--step-indicator-size);
3517
3660
  height: var(--step-indicator-size);
3518
3661
  border-radius: 50%;
3519
- background: var(--accent-light);
3520
- color: var(--gray-90);
3662
+ background: var(--step-indicator-background);
3663
+ color: var(--step-indicator-color);
3521
3664
  display: flex;
3522
3665
  align-items: center;
3523
3666
  justify-content: center;
3524
3667
  flex-shrink: 0;
3525
3668
  }
3526
3669
 
3527
- .Stepper__step-indicator::before {
3528
- font-size: var(--text-size-smallest);
3670
+ .Stepper__step-indicator:before {
3671
+ font-size: var(--text-size-small);
3529
3672
  counter-increment: stepper;
3530
3673
  content: counter(stepper);
3531
3674
  }
@@ -3535,62 +3678,46 @@ button.TooltipTabstop {
3535
3678
  width: 100%;
3536
3679
  padding-top: var(--space-smallest);
3537
3680
  font-size: var(--text-size-smaller);
3681
+ color: var(--step-label-color);
3538
3682
  }
3539
3683
 
3540
3684
  /*
3541
3685
  status-specific styles
3542
3686
  */
3543
3687
 
3544
- .Stepper__step--current .Stepper__step-indicator {
3545
- background: var(--white);
3546
- color: var(--accent-dark);
3547
- box-shadow: 0 0 0 2px var(--accent-dark);
3548
- }
3549
-
3550
- .Stepper__step--current .Stepper__step-label {
3551
- font-weight: var(--font-weight-bold);
3552
- }
3553
-
3554
- .Stepper__step--current .Stepper__step-line,
3555
- .Stepper__step--complete .Stepper__step-line {
3556
- border-color: var(--accent-dark);
3557
- }
3558
-
3559
- .Stepper__step--complete .Stepper__step-indicator {
3560
- background: var(--accent-dark);
3561
- color: var(--white);
3688
+ .Stepper__step--current-indicator {
3689
+ background: var(--step-current-indicator-background);
3690
+ color: var(--step-current-indicator-color);
3691
+ box-shadow: var(--step-current-indicator-shadow);
3562
3692
  }
3563
3693
 
3564
- /* Dark Theme */
3565
-
3566
- .cauldron--theme-dark .Stepper {
3567
- color: var(--accent-light);
3568
- background-color: var(--accent-dark);
3694
+ .Stepper__step--current-indicator:before {
3695
+ font-weight: var(--font-weight-medium);
3569
3696
  }
3570
3697
 
3571
- .cauldron--theme-dark .Stepper__step-line {
3572
- border-top: var(--step-line-height) solid var(--accent-medium);
3698
+ .Stepper__step--current-label {
3699
+ font-weight: var(--font-weight-medium);
3700
+ color: var(--step-current-label-color);
3573
3701
  }
3574
3702
 
3575
- .cauldron--theme-dark .Stepper__step-indicator {
3576
- color: var(--white);
3577
- background: var(--accent-medium);
3703
+ .Stepper__step--current-line,
3704
+ .Stepper__step--complete-line {
3705
+ border-color: var(--step-current-complete-line-border-color);
3578
3706
  }
3579
3707
 
3580
- .cauldron--theme-dark .Stepper__step--current .Stepper__step-indicator {
3581
- background: var(--white);
3582
- color: var(--accent-dark);
3583
- box-shadow: 0 0 0 2px var(--accent-dark), 0 0 0 4px var(--accent-info);
3708
+ .Stepper__step--complete-indicator {
3709
+ background: var(--step-complete-indicator-background);
3710
+ color: var(--step-complete-indicator-color);
3584
3711
  }
3585
3712
 
3586
- .cauldron--theme-dark .Stepper__step--current .Stepper__step-line,
3587
- .cauldron--theme-dark .Stepper__step--complete .Stepper__step-line {
3588
- border-color: var(--accent-info);
3713
+ .Stepper__step--complete-indicator:before {
3714
+ content: '';
3589
3715
  }
3590
3716
 
3591
- .cauldron--theme-dark .Stepper__step--complete .Stepper__step-indicator {
3592
- background: var(--accent-info);
3593
- color: var(--accent-dark);
3717
+ .Stepper__step--complete-indicator svg {
3718
+ height: var(--step-indicator-content-size);
3719
+ width: var(--step-indicator-content-size);
3720
+ color: var(--step-complete-indicator-svg-color);
3594
3721
  }
3595
3722
 
3596
3723
  :root {
@@ -3871,7 +3998,6 @@ fieldset.Panel {
3871
3998
  align-items: center;
3872
3999
  background-color: var(--top-nav-background-color);
3873
4000
  color: var(--top-nav-text-color);
3874
- border-bottom: 1px solid var(--top-nav-border-bottom-color);
3875
4001
  }
3876
4002
 
3877
4003
  .NavBar > ul {
@@ -3879,6 +4005,7 @@ fieldset.Panel {
3879
4005
  list-style-type: none;
3880
4006
  display: flex;
3881
4007
  z-index: var(--z-index-top-nav);
4008
+ border-bottom: 1px solid var(--top-nav-border-bottom-color);
3882
4009
  }
3883
4010
 
3884
4011
  .NavBar > ul > li {
@@ -3890,7 +4017,6 @@ fieldset.Panel {
3890
4017
  display: flex;
3891
4018
  align-items: center;
3892
4019
  background-color: var(--top-nav-background-color);
3893
- border-bottom: 1px solid var(--top-nav-border-bottom-color);
3894
4020
  border-right: 1px solid var(--top-nav-box-shadow-color);
3895
4021
  transition: background-color 0.3s ease;
3896
4022
  }
@@ -3995,6 +4121,12 @@ fieldset.Panel {
3995
4121
  margin-right: var(--space-smallest);
3996
4122
  }
3997
4123
 
4124
+ @media (max-width: 64rem) {
4125
+ .NavBar {
4126
+ padding: 0 var(--space-small);
4127
+ }
4128
+ }
4129
+
3998
4130
  @media (max-width: 61.25rem) {
3999
4131
  .NavBar > ul > li {
4000
4132
  font-size: var(--text-size-small);
@@ -4710,8 +4842,11 @@ button.Accordion__trigger {
4710
4842
  border: 1px solid var(--combobox-input-border-color);
4711
4843
  }
4712
4844
 
4713
- .Combobox__input:hover,
4714
- .cauldron--theme-dark .Combobox__input:hover {
4845
+ .cauldron--theme-dark .Combobox__input--error {
4846
+ border: 1px solid var(--combobox-input-error-border-color);
4847
+ }
4848
+
4849
+ .Combobox__input:hover {
4715
4850
  border-color: var(--combobox-input-border-hover-color);
4716
4851
  }
4717
4852
 
@@ -4723,7 +4858,7 @@ button.Accordion__trigger {
4723
4858
 
4724
4859
  .Combobox__input:focus-within {
4725
4860
  border: 1px solid var(--combobox-input-border-focus-color);
4726
- box-shadow: 0 0 0 2px var(--combobox-input-border-focus-color),
4861
+ box-shadow: 0 0 0 1px var(--combobox-input-border-focus-color),
4727
4862
  0 0 5px var(--combobox-input-border-focus-glow-color),
4728
4863
  inset 0 1px 2px rgba(0, 0, 0, 0.05);
4729
4864
  }
@@ -4866,16 +5001,102 @@ button.Accordion__trigger {
4866
5001
 
4867
5002
  .Combobox__input--error {
4868
5003
  border: 1px solid var(--combobox-input-error-border-color);
5004
+ box-shadow: 0 0 0 1px var(--combobox-input-error-border-color),
5005
+ inset 0 1px 2px rgba(0, 0, 0, 0.05);
4869
5006
  }
4870
5007
 
4871
5008
  .Combobox__input--error:focus-within {
4872
5009
  border: 1px solid var(--combobox-input-error-border-color);
4873
- box-shadow: 0 0 0 1px var(--combobox-input-error-focus-border-color),
4874
- inset 0 2px 3px 0 rgba(0, 0, 0, 0.05),
4875
- 0 0 5px 0 var(--combobox-input-error-focus-border-glow-color);
5010
+ box-shadow: 0 0 0 1px var(--combobox-input-error-border-color),
5011
+ 0 0 5px var(--field-border-color-error-focus-glow),
5012
+ inset 0 1px 2px rgba(0, 0, 0, 0.05);
5013
+ }
5014
+
5015
+ .Combobox__input--error:focus-within:hover {
5016
+ border: 1px solid var(--combobox-input-error-border-color);
5017
+ box-shadow: 0 0 0 1px var(--combobox-input-error-border-color),
5018
+ 0 0 5px var(--field-border-color-error-focus-glow),
5019
+ inset 0 1px 2px rgba(0, 0, 0, 0.05);
5020
+ }
5021
+
5022
+ .Combobox__input--error:hover {
5023
+ border: 1px solid var(--combobox-input-error-border-color);
5024
+ box-shadow: 0 0 0 1px var(--combobox-input-error-border-color),
5025
+ inset 0 1px 2px rgba(0, 0, 0, 0.05);
4876
5026
  }
4877
5027
 
4878
5028
  .ComboboxListbox__empty {
4879
5029
  padding: var(--space-smaller);
4880
5030
  text-align: center;
4881
5031
  }
5032
+
5033
+ :root {
5034
+ --timeline-mark-color: var(--accent-success-dark);
5035
+ --timeline-mark-border-color: #fff;
5036
+ --timeline-separator-color: var(--gray-40);
5037
+ --timeline-icon-size: 18px;
5038
+ }
5039
+
5040
+ .cauldron--theme-dark {
5041
+ --timeline-mark-color: var(--accent-success-light);
5042
+ --timeline-mark-border-color: var(--accent-medium);
5043
+ --timeline-separator-color: #54636f;
5044
+ }
5045
+
5046
+ .Timeline {
5047
+ margin: 0;
5048
+ padding: 0;
5049
+ }
5050
+
5051
+ .Timeline:is(ol) {
5052
+ list-style-type: none;
5053
+ }
5054
+
5055
+ .TimelineItem {
5056
+ display: flex;
5057
+ margin-left: var(--space-smaller);
5058
+ }
5059
+
5060
+ .TimelineItem:not(:last-child) {
5061
+ min-height: 3.75rem;
5062
+ padding-bottom: var(--space-half);
5063
+ }
5064
+
5065
+ .TimelineItem:not(:last-child) .TimelineItem__details {
5066
+ padding-bottom: var(--space-smaller);
5067
+ }
5068
+
5069
+ .TimelineItem__separator {
5070
+ display: flex;
5071
+ flex-direction: column;
5072
+ width: var(--timeline-icon-size);
5073
+ --icon-size: var(--timeline-icon-size);
5074
+ }
5075
+
5076
+ .TimelineItem__separator:empty:before,
5077
+ .TimelineItem__separator > * {
5078
+ transform: translateX(calc(-50% + 2px));
5079
+ margin-bottom: var(--space-smallest);
5080
+ max-width: var(--timeline-icon-size);
5081
+ }
5082
+
5083
+ .TimelineItem__separator:empty:before {
5084
+ content: '';
5085
+ display: block;
5086
+ height: 8px;
5087
+ width: 8px;
5088
+ margin-top: var(--space-half);
5089
+ border-radius: 50%;
5090
+ background-color: var(--timeline-mark-color);
5091
+ }
5092
+
5093
+ .TimelineItem:not(:last-child) .TimelineItem__separator:after {
5094
+ content: '';
5095
+ display: block;
5096
+ flex: 1;
5097
+ width: 6px;
5098
+ border-radius: 3px;
5099
+ background-color: var(--timeline-separator-color);
5100
+ border: 1px solid var(--timeline-mark-border-color);
5101
+ transform: translateX(-1px);
5102
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "6.0.0",
3
+ "version": "6.1.0-canary.33d6b541",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",