@volvo-cars/css 2.0.0 → 2.1.0

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/meta.json CHANGED
@@ -1,5 +1,18 @@
1
1
  {
2
- "deprecatedClasses": [],
2
+ "deprecatedClasses": [
3
+ {
4
+ "name": "layout-4-5"
5
+ },
6
+ {
7
+ "name": "layout-5-4"
8
+ },
9
+ {
10
+ "name": "layout-6-4"
11
+ },
12
+ {
13
+ "name": "layout-4-6"
14
+ }
15
+ ],
3
16
  "classNames": [
4
17
  "-m-12",
5
18
  "-m-16",
@@ -203,6 +216,8 @@
203
216
  "current:border-primary",
204
217
  "current:text-inverted",
205
218
  "current:text-primary",
219
+ "cursor-auto",
220
+ "cursor-pointer",
206
221
  "details-open:rotate-180",
207
222
  "dialog-large",
208
223
  "dialog-small",
@@ -1438,6 +1453,7 @@
1438
1453
  "my-sm",
1439
1454
  "my-xl",
1440
1455
  "my-xs",
1456
+ "navigation-bar",
1441
1457
  "object-contain",
1442
1458
  "object-cover",
1443
1459
  "object-fill",
@@ -1502,6 +1518,8 @@
1502
1518
  "pl-8",
1503
1519
  "pl-pagemargin",
1504
1520
  "pl-pageoffset",
1521
+ "pointer-events-auto",
1522
+ "pointer-events-none",
1505
1523
  "pr-0",
1506
1524
  "pr-12",
1507
1525
  "pr-16",
@@ -1584,6 +1602,7 @@
1584
1602
  "scale-pressed",
1585
1603
  "scale-zoomed",
1586
1604
  "scrollbar-none",
1605
+ "select-none",
1587
1606
  "selectable-card",
1588
1607
  "selected:bg-accent-blue-medium",
1589
1608
  "selected:bg-surface-neutral",
@@ -2202,7 +2221,7 @@
2202
2221
  "name": "backdrop",
2203
2222
  "prefixes": [],
2204
2223
  "declarations": [
2205
- "background-color: #000000a3"
2224
+ "background-color: var(--v-color-ornament-scrim)"
2206
2225
  ],
2207
2226
  "layer": "volvo.blocks"
2208
2227
  },
@@ -2383,13 +2402,7 @@
2383
2402
  {
2384
2403
  "name": "dialog-small",
2385
2404
  "prefixes": [],
2386
- "declarations": [
2387
- "width: var(--v-size-grid-xs)",
2388
- "border-end-end-radius: var(--_dialog-radius)",
2389
- "border-end-start-radius: var(--_dialog-radius)",
2390
- "max-width: calc(100vw - 3rem)",
2391
- "margin-bottom: auto"
2392
- ],
2405
+ "declarations": [],
2393
2406
  "layer": "volvo.blocks"
2394
2407
  },
2395
2408
  {
@@ -2477,6 +2490,15 @@
2477
2490
  "declarations": [],
2478
2491
  "layer": "volvo.blocks"
2479
2492
  },
2493
+ {
2494
+ "name": "input-floating-label",
2495
+ "prefixes": [],
2496
+ "declarations": [
2497
+ "contain: content",
2498
+ "min-width: fit-content"
2499
+ ],
2500
+ "layer": "volvo.layout"
2501
+ },
2480
2502
  {
2481
2503
  "name": "chip-selectable",
2482
2504
  "prefixes": [],
@@ -2488,7 +2510,8 @@
2488
2510
  "max-width: 100%",
2489
2511
  "height: 2.5rem",
2490
2512
  "padding-inline: var(--v-space-16)",
2491
- "font: var(--v-font-16)",
2513
+ "font-size: var(--v-font-16-size)",
2514
+ "line-height: var(--v-font-16-lineheight)",
2492
2515
  "color: var(--_color)",
2493
2516
  "white-space: nowrap",
2494
2517
  "user-select: none",
@@ -2514,7 +2537,8 @@
2514
2537
  "max-width: 100%",
2515
2538
  "height: 2.5rem",
2516
2539
  "padding-inline: var(--v-space-16)",
2517
- "font: var(--v-font-16)",
2540
+ "font-size: var(--v-font-16-size)",
2541
+ "line-height: var(--v-font-16-lineheight)",
2518
2542
  "color: var(--_color)",
2519
2543
  "white-space: nowrap",
2520
2544
  "user-select: none",
@@ -2530,15 +2554,6 @@
2530
2554
  ],
2531
2555
  "layer": "volvo.blocks"
2532
2556
  },
2533
- {
2534
- "name": "input-floating-label",
2535
- "prefixes": [],
2536
- "declarations": [
2537
- "contain: content",
2538
- "min-width: fit-content"
2539
- ],
2540
- "layer": "volvo.layout"
2541
- },
2542
2557
  {
2543
2558
  "name": "link-inline",
2544
2559
  "prefixes": [],
@@ -2911,15 +2926,14 @@
2911
2926
  "--_border-color-dark: var(--_dark-toggle) var(--v-color-ornament-primary)",
2912
2927
  "--_border-color: var(--_border-color-dark, transparent)",
2913
2928
  "column-gap: var(--v-space-16)",
2914
- "width: var(--v-size-grid-sm)",
2929
+ "max-width: min(var(--v-size-overlay-narrow),\n calc(100vw - calc(2 * var(--v-space-pagemargin))))",
2915
2930
  "background-color: var(--v-color-always-black)",
2916
2931
  "border-radius: var(--v-shape-default)",
2917
2932
  "box-shadow: inset 0 0 0 1px var(--_border-color)",
2918
2933
  "view-transition-class: slide-bottom",
2919
2934
  "grid-template-columns: min-content auto min-content",
2920
2935
  "place-items: center start",
2921
- "display: grid",
2922
- "width: var(--v-size-grid-xs)"
2936
+ "display: grid"
2923
2937
  ],
2924
2938
  "layer": "volvo.blocks"
2925
2939
  },
@@ -2944,7 +2958,8 @@
2944
2958
  "width: fit-content",
2945
2959
  "padding-block: var(--v-space-2)",
2946
2960
  "padding-inline: var(--v-space-8)",
2947
- "font: var(--v-font-12)",
2961
+ "font-size: var(--v-font-12-size)",
2962
+ "line-height: var(--v-font-12-lineheight)",
2948
2963
  "border-radius: var(--v-shape-default)",
2949
2964
  "color: var(--v-color-foreground-inverted)",
2950
2965
  "background-color: var(--v-color-surface-neutral)"
@@ -2958,7 +2973,8 @@
2958
2973
  "width: fit-content",
2959
2974
  "padding-block: var(--v-space-2)",
2960
2975
  "padding-inline: var(--v-space-8)",
2961
- "font: var(--v-font-12)",
2976
+ "font-size: var(--v-font-12-size)",
2977
+ "line-height: var(--v-font-12-lineheight)",
2962
2978
  "border-radius: var(--v-shape-default)",
2963
2979
  "box-shadow: inset 0 0 0 1px\n var(--_border-color, var(--v-color-ornament-primary))"
2964
2980
  ],
@@ -2971,7 +2987,8 @@
2971
2987
  "width: fit-content",
2972
2988
  "padding-block: var(--v-space-2)",
2973
2989
  "padding-inline: var(--v-space-8)",
2974
- "font: var(--v-font-12)",
2990
+ "font-size: var(--v-font-12-size)",
2991
+ "line-height: var(--v-font-12-lineheight)",
2975
2992
  "border-radius: var(--v-shape-default)",
2976
2993
  "background-color: var(--v-color-surface-gray)"
2977
2994
  ],
@@ -3400,6 +3417,24 @@
3400
3417
  ],
3401
3418
  "layer": "volvo.layout"
3402
3419
  },
3420
+ {
3421
+ "name": "navigation-bar",
3422
+ "prefixes": [],
3423
+ "declarations": [
3424
+ "position: var(--navigation-bar-position, sticky)",
3425
+ "z-index: var(--v-index-navigation)",
3426
+ "column-gap: var(--v-space-16)",
3427
+ "min-height: var(--v-size-navigation-bar-height)",
3428
+ "max-height: var(--v-size-navigation-bar-height)",
3429
+ "padding-inline: var(--v-space-pageoffset)",
3430
+ "background-color: var(--v-color-background-primary)",
3431
+ "grid-template-columns: 1fr auto 1fr",
3432
+ "align-items: center",
3433
+ "display: grid",
3434
+ "top: 0"
3435
+ ],
3436
+ "layer": "volvo.layout"
3437
+ },
3403
3438
  {
3404
3439
  "name": "fade-in",
3405
3440
  "prefixes": [],
@@ -9647,6 +9682,38 @@
9647
9682
  ],
9648
9683
  "layer": "volvo.utilities"
9649
9684
  },
9685
+ {
9686
+ "name": "pointer-events-none",
9687
+ "prefixes": [],
9688
+ "declarations": [
9689
+ "pointer-events: none"
9690
+ ],
9691
+ "layer": "volvo.utilities"
9692
+ },
9693
+ {
9694
+ "name": "pointer-events-auto",
9695
+ "prefixes": [],
9696
+ "declarations": [
9697
+ "pointer-events: auto"
9698
+ ],
9699
+ "layer": "volvo.utilities"
9700
+ },
9701
+ {
9702
+ "name": "cursor-pointer",
9703
+ "prefixes": [],
9704
+ "declarations": [
9705
+ "cursor: pointer"
9706
+ ],
9707
+ "layer": "volvo.utilities"
9708
+ },
9709
+ {
9710
+ "name": "cursor-auto",
9711
+ "prefixes": [],
9712
+ "declarations": [
9713
+ "cursor: auto"
9714
+ ],
9715
+ "layer": "volvo.utilities"
9716
+ },
9650
9717
  {
9651
9718
  "name": "static",
9652
9719
  "prefixes": [],
@@ -9768,6 +9835,14 @@
9768
9835
  ],
9769
9836
  "layer": "volvo.utilities"
9770
9837
  },
9838
+ {
9839
+ "name": "select-none",
9840
+ "prefixes": [],
9841
+ "declarations": [
9842
+ "user-select: none"
9843
+ ],
9844
+ "layer": "volvo.utilities"
9845
+ },
9771
9846
  {
9772
9847
  "name": "scrollbar-none",
9773
9848
  "prefixes": [],
@@ -10656,6 +10731,13 @@
10656
10731
  "meta": {},
10657
10732
  "value": "-1"
10658
10733
  },
10734
+ {
10735
+ "css": "--v-size-navigation-bar-height",
10736
+ "type": "size",
10737
+ "category": "navigation-bar-height",
10738
+ "meta": {},
10739
+ "value": "var(--v-space-48)"
10740
+ },
10659
10741
  {
10660
10742
  "css": "--v-grid-columns",
10661
10743
  "type": "grid",
@@ -10761,7 +10843,9 @@
10761
10843
  "type": "color",
10762
10844
  "property": "foreground",
10763
10845
  "variant": "primary",
10764
- "meta": {},
10846
+ "meta": {
10847
+ "description": "Use for primary text, icons and borders."
10848
+ },
10765
10849
  "value": [
10766
10850
  "#ffffff",
10767
10851
  "#000000"
@@ -10773,7 +10857,7 @@
10773
10857
  "property": "foreground",
10774
10858
  "variant": "secondary",
10775
10859
  "meta": {
10776
- "description": "Use for primary text, icons and borders."
10860
+ "description": "Use for secondary text, icons and borders."
10777
10861
  },
10778
10862
  "value": [
10779
10863
  "#969696",
@@ -10786,7 +10870,7 @@
10786
10870
  "property": "foreground",
10787
10871
  "variant": "tertiary",
10788
10872
  "meta": {
10789
- "description": "Use for secondary text, icons and borders."
10873
+ "description": "The lightest possible foreground color acceptable for UI fills. Should not be used for body text."
10790
10874
  },
10791
10875
  "value": [
10792
10876
  "#787878"
@@ -10798,7 +10882,7 @@
10798
10882
  "property": "foreground",
10799
10883
  "variant": "inverted",
10800
10884
  "meta": {
10801
- "description": "The lightest possible foreground color acceptable for UI fills. Should not be used for body text."
10885
+ "description": "The inverse of the primary foreground color. For use on filled surfaces."
10802
10886
  },
10803
10887
  "value": [
10804
10888
  "#000000",
@@ -10812,7 +10896,7 @@
10812
10896
  "variant": "blue",
10813
10897
  "category": "accent",
10814
10898
  "meta": {
10815
- "description": "The inverse of the primary foreground color. For use on filled surfaces."
10899
+ "description": "For emphasized selection borders and graphic accents (icons, illustrations)."
10816
10900
  },
10817
10901
  "value": [
10818
10902
  "#3354ff",
@@ -10826,7 +10910,7 @@
10826
10910
  "variant": "green",
10827
10911
  "category": "feedback",
10828
10912
  "meta": {
10829
- "description": "For emphasized selection borders and graphic accents (icons, illustrations)."
10913
+ "description": "Use as a foreground or border color to highlight successful states and positive actions."
10830
10914
  },
10831
10915
  "value": [
10832
10916
  "#07ca31",
@@ -10840,7 +10924,7 @@
10840
10924
  "variant": "red",
10841
10925
  "category": "feedback",
10842
10926
  "meta": {
10843
- "description": "Use as a foreground or border color to highlight successful states and positive actions."
10927
+ "description": "Use as a foreground or border color to highlight errors, invalid data, and destructive actions."
10844
10928
  },
10845
10929
  "value": [
10846
10930
  "#ef6658",
@@ -10854,7 +10938,7 @@
10854
10938
  "variant": "orange",
10855
10939
  "category": "feedback",
10856
10940
  "meta": {
10857
- "description": "Use as a foreground or border color to highlight errors, invalid data, and destructive actions."
10941
+ "description": "Use as a foreground or border color to highlight warnings, invalid or missing data, and actions that require caution."
10858
10942
  },
10859
10943
  "value": [
10860
10944
  "#ff9933",
@@ -10867,7 +10951,7 @@
10867
10951
  "property": "surface",
10868
10952
  "variant": "neutral",
10869
10953
  "meta": {
10870
- "description": "Use as a foreground or border color to highlight warnings, invalid or missing data, and actions that require caution."
10954
+ "description": "Used as a surface fill for UI elements like buttons and form controls. Combine with Foreground / Inverted foreground color."
10871
10955
  },
10872
10956
  "value": [
10873
10957
  "#ffffff",
@@ -10880,7 +10964,7 @@
10880
10964
  "property": "surface",
10881
10965
  "variant": "gray",
10882
10966
  "meta": {
10883
- "description": "Used as a surface fill for UI elements like buttons and form controls. Combine with Foreground / Inverted foreground color."
10967
+ "description": "Used as surface fill."
10884
10968
  },
10885
10969
  "value": [
10886
10970
  "#3b3b3b",
@@ -10894,7 +10978,7 @@
10894
10978
  "variant": "blue",
10895
10979
  "category": "accent",
10896
10980
  "meta": {
10897
- "description": "Used as surface fill."
10981
+ "description": "Used as an emphasized surface fill for UI elements like buttons and form controls."
10898
10982
  },
10899
10983
  "value": [
10900
10984
  "#3354ff",
@@ -10921,7 +11005,7 @@
10921
11005
  "variant": "green",
10922
11006
  "category": "feedback",
10923
11007
  "meta": {
10924
- "description": "Used as an emphasized surface fill for UI elements like buttons and form controls."
11008
+ "description": "Used as a surface fill for UI elements like buttons and form controls to signify positive actions. Combine with Always White foreground color."
10925
11009
  },
10926
11010
  "value": [
10927
11011
  "#048220"
@@ -10934,7 +11018,7 @@
10934
11018
  "variant": "orange",
10935
11019
  "category": "feedback",
10936
11020
  "meta": {
10937
- "description": "Used as a surface fill for UI elements like buttons and form controls to signify positive actions. Combine with Always White foreground color."
11021
+ "description": "[Deprecated]"
10938
11022
  },
10939
11023
  "value": [
10940
11024
  "#ce6700"
@@ -10947,7 +11031,7 @@
10947
11031
  "variant": "red",
10948
11032
  "category": "feedback",
10949
11033
  "meta": {
10950
- "description": "[Deprecated]"
11034
+ "description": "Used as a surface fill for UI elements like buttons and form controls to signify destructive actions. Combine with Always White foreground color."
10951
11035
  },
10952
11036
  "value": [
10953
11037
  "#e52715"
@@ -10959,7 +11043,7 @@
10959
11043
  "property": "background",
10960
11044
  "variant": "primary",
10961
11045
  "meta": {
10962
- "description": "Used as a surface fill for UI elements like buttons and form controls to signify destructive actions. Combine with Always White foreground color."
11046
+ "description": "Use as a primary background color."
10963
11047
  },
10964
11048
  "value": [
10965
11049
  "#000000",
@@ -10972,7 +11056,7 @@
10972
11056
  "property": "background",
10973
11057
  "variant": "secondary",
10974
11058
  "meta": {
10975
- "description": "Use as a primary background color."
11059
+ "description": "Use as a secondary background color for elevated sections."
10976
11060
  },
10977
11061
  "value": [
10978
11062
  "#171717",
@@ -10986,7 +11070,7 @@
10986
11070
  "variant": "gray",
10987
11071
  "category": "feedback",
10988
11072
  "meta": {
10989
- "description": "Use as a background color to highlight warnings, invalid or missing data, and states that require caution."
11073
+ "description": "Use as a background color to indicate informational messages."
10990
11074
  },
10991
11075
  "value": [
10992
11076
  "#242424",
@@ -11000,7 +11084,7 @@
11000
11084
  "variant": "green",
11001
11085
  "category": "feedback",
11002
11086
  "meta": {
11003
- "description": "Use as a secondary background color for elevated sections."
11087
+ "description": "Use as a background color to highlight successful and positive states."
11004
11088
  },
11005
11089
  "value": [
11006
11090
  "#02310c",
@@ -11014,7 +11098,7 @@
11014
11098
  "variant": "red",
11015
11099
  "category": "feedback",
11016
11100
  "meta": {
11017
- "description": "Use as a background color to highlight successful and positive states."
11101
+ "description": "Use as a background color to highlight errors, invalid data, and destructive states."
11018
11102
  },
11019
11103
  "value": [
11020
11104
  "#4a0d07",
@@ -11028,7 +11112,7 @@
11028
11112
  "variant": "orange",
11029
11113
  "category": "feedback",
11030
11114
  "meta": {
11031
- "description": "Use as a background color to highlight errors, invalid data, and destructive states."
11115
+ "description": "Use as a background color to highlight warnings, invalid or missing data, and states that require caution."
11032
11116
  },
11033
11117
  "value": [
11034
11118
  "#522900",
@@ -11041,7 +11125,7 @@
11041
11125
  "variant": "white",
11042
11126
  "category": "always",
11043
11127
  "meta": {
11044
- "description": "Use as a background color to indicate informational messages."
11128
+ "description": "Always white regardless of color mode."
11045
11129
  },
11046
11130
  "value": [
11047
11131
  "#ffffff"
@@ -11053,7 +11137,7 @@
11053
11137
  "variant": "black",
11054
11138
  "category": "always",
11055
11139
  "meta": {
11056
- "description": "Always white regardless of color mode."
11140
+ "description": "Always black regardless of colour mode."
11057
11141
  },
11058
11142
  "value": [
11059
11143
  "#000000"
@@ -11065,7 +11149,7 @@
11065
11149
  "property": "ornament",
11066
11150
  "variant": "primary",
11067
11151
  "meta": {
11068
- "description": "Always black regardless of colour mode."
11152
+ "description": "Use for strokes or dividers to visually group or separate elements."
11069
11153
  },
11070
11154
  "value": [
11071
11155
  "rgb(100% 100% 100% / 0.16)",
@@ -11078,7 +11162,7 @@
11078
11162
  "property": "ornament",
11079
11163
  "variant": "scrim",
11080
11164
  "meta": {
11081
- "description": "Use for strokes or dividers to visually group or separate elements."
11165
+ "description": "Used as a backdrop that usually sits behind a Side sheet or Dialog component."
11082
11166
  },
11083
11167
  "value": [
11084
11168
  "rgb(9.0196% 9.0196% 9.0196% / 0.64)"
@@ -11091,7 +11175,7 @@
11091
11175
  "scale": "strong",
11092
11176
  "variant": "primary",
11093
11177
  "meta": {
11094
- "description": "Used as a backdrop that usually sits behind a Side sheet or Dialog component."
11178
+ "description": "Use for state layers with foreground/primary."
11095
11179
  },
11096
11180
  "value": [
11097
11181
  "rgb(100% 100% 100% / 0.24)",
@@ -11133,7 +11217,7 @@
11133
11217
  "scale": "strong",
11134
11218
  "variant": "inverted",
11135
11219
  "meta": {
11136
- "description": "Use for state layers with foreground/primary."
11220
+ "description": "Use for state layers with foreground/inverted."
11137
11221
  },
11138
11222
  "value": [
11139
11223
  "rgb(0% 0% 0% / 0.24)",
@@ -11176,7 +11260,7 @@
11176
11260
  "variant": "blue",
11177
11261
  "category": "accent",
11178
11262
  "meta": {
11179
- "description": "Use for state layers with foreground/inverted."
11263
+ "description": "Use for state layers with foreground/accent/blue."
11180
11264
  },
11181
11265
  "value": [
11182
11266
  "rgb(20% 32.941% 100% / 0.24)",
@@ -11221,7 +11305,7 @@
11221
11305
  "variant": "red",
11222
11306
  "category": "feedback",
11223
11307
  "meta": {
11224
- "description": "Use for state layers with foreground/accent/blue."
11308
+ "description": "Use for state layers with foreground/feedback/red."
11225
11309
  },
11226
11310
  "value": [
11227
11311
  "rgb(89.804% 15.294% 8.2353% / 0.24)",
@@ -11266,7 +11350,7 @@
11266
11350
  "variant": "black",
11267
11351
  "category": "always",
11268
11352
  "meta": {
11269
- "description": "Use for state layers with foreground/feedback/red."
11353
+ "description": "Use for state layers with an always/black foreground color."
11270
11354
  },
11271
11355
  "value": [
11272
11356
  "rgb(0% 0% 0% / 0.24)",
@@ -11311,7 +11395,7 @@
11311
11395
  "variant": "white",
11312
11396
  "category": "always",
11313
11397
  "meta": {
11314
- "description": "Use for state layers with an always/black foreground color."
11398
+ "description": "Use for state layers with an always/white foreground color."
11315
11399
  },
11316
11400
  "value": [
11317
11401
  "rgb(100% 100% 100% / 0.24)",
@@ -11348,6 +11432,24 @@
11348
11432
  "rgb(100% 100% 100% / 0.04)"
11349
11433
  ]
11350
11434
  },
11435
+ {
11436
+ "css": "--v-border-width-default",
11437
+ "type": "border",
11438
+ "variant": "width-default",
11439
+ "meta": {
11440
+ "description": "Use for any UI element that needs a border in the default state."
11441
+ },
11442
+ "value": "1px"
11443
+ },
11444
+ {
11445
+ "css": "--v-border-width-selected",
11446
+ "type": "border",
11447
+ "variant": "width-selected",
11448
+ "meta": {
11449
+ "description": "Use for any UI element that needs a border in the selected state."
11450
+ },
11451
+ "value": "2px"
11452
+ },
11351
11453
  {
11352
11454
  "css": "--v-space-2",
11353
11455
  "type": "space",
@@ -11522,24 +11624,6 @@
11522
11624
  },
11523
11625
  "value": "round(clamp(1rem, 1.429vw + 0.571rem, 2rem), 2px)"
11524
11626
  },
11525
- {
11526
- "css": "--v-border-width-default",
11527
- "type": "border",
11528
- "variant": "width-default",
11529
- "meta": {
11530
- "description": "Use for any UI element that needs a border in the default state."
11531
- },
11532
- "value": "1px"
11533
- },
11534
- {
11535
- "css": "--v-border-width-selected",
11536
- "type": "border",
11537
- "variant": "width-selected",
11538
- "meta": {
11539
- "description": "Use for any UI element that needs a border in the selected state."
11540
- },
11541
- "value": "2px"
11542
- },
11543
11627
  {
11544
11628
  "css": "--v-size-overlay-narrow",
11545
11629
  "type": "size",
@@ -11558,7 +11642,7 @@
11558
11642
  "meta": {
11559
11643
  "description": "Used to set the width of large overlays such as sheet, large dialogs"
11560
11644
  },
11561
- "value": "60ch"
11645
+ "value": "65ch"
11562
11646
  },
11563
11647
  {
11564
11648
  "css": "--v-size-sidebar-narrow",