@navikt/aksel-stylelint 5.2.1 → 5.3.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.
- package/dist/deprecations.js +11 -0
- package/dist/index.css +128 -51
- package/dist/tokens.json +2 -2
- package/package.json +3 -3
package/dist/deprecations.js
CHANGED
|
@@ -32,4 +32,15 @@ exports.deprecations = [
|
|
|
32
32
|
classes: ["navds-modal__content"],
|
|
33
33
|
message: "Renamed to `.navds-modal__body` in v5.0.0",
|
|
34
34
|
},
|
|
35
|
+
{
|
|
36
|
+
classes: ["navds-guide__illustration"],
|
|
37
|
+
message: "Use `.navds-guide` instead",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
classes: [
|
|
41
|
+
"navds-guide__illustration--small",
|
|
42
|
+
"navds-guide__illustration--medium",
|
|
43
|
+
],
|
|
44
|
+
message: "There is no 1:1 replacement for this, the size will depend on the 'poster' prop and the viewport width",
|
|
45
|
+
},
|
|
35
46
|
];
|
package/dist/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/**
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on
|
|
4
|
+
* Generated on Sun, 03 Sep 2023 10:42:10 GMT
|
|
5
5
|
*/
|
|
6
6
|
:root, :host {
|
|
7
7
|
--a-spacing-05: 0.125rem;
|
|
@@ -877,6 +877,14 @@ body,
|
|
|
877
877
|
.navds-body-long.navds-typo--spacing {
|
|
878
878
|
margin-bottom: var(--a-spacing-7);
|
|
879
879
|
}
|
|
880
|
+
.navds-body-long--large {
|
|
881
|
+
font-size: var(--a-font-size-xlarge);
|
|
882
|
+
letter-spacing: -0.0013em;
|
|
883
|
+
line-height: var(--a-font-line-height-xlarge);
|
|
884
|
+
}
|
|
885
|
+
.navds-body-long--large.navds-typo--spacing {
|
|
886
|
+
margin-bottom: var(--a-spacing-10);
|
|
887
|
+
}
|
|
880
888
|
.navds-body-long--small {
|
|
881
889
|
font-size: var(--a-font-size-medium);
|
|
882
890
|
letter-spacing: 0.002em;
|
|
@@ -895,6 +903,14 @@ body,
|
|
|
895
903
|
.navds-body-short.navds-typo--spacing {
|
|
896
904
|
margin-bottom: var(--a-spacing-3);
|
|
897
905
|
}
|
|
906
|
+
.navds-body-short--large {
|
|
907
|
+
font-size: var(--a-font-size-xlarge);
|
|
908
|
+
letter-spacing: -0.0013em;
|
|
909
|
+
line-height: var(--a-font-line-height-large);
|
|
910
|
+
}
|
|
911
|
+
.navds-body-short--large.navds-typo--spacing {
|
|
912
|
+
margin-bottom: var(--a-spacing-4);
|
|
913
|
+
}
|
|
898
914
|
.navds-body-short--small {
|
|
899
915
|
font-size: var(--a-font-size-medium);
|
|
900
916
|
letter-spacing: 0.002em;
|
|
@@ -948,6 +964,42 @@ body,
|
|
|
948
964
|
.navds-error-message {
|
|
949
965
|
color: var(--ac-typo-error-text, var(--a-text-danger));
|
|
950
966
|
}
|
|
967
|
+
.navds-typo--truncate {
|
|
968
|
+
overflow: hidden;
|
|
969
|
+
white-space: nowrap;
|
|
970
|
+
text-overflow: ellipsis;
|
|
971
|
+
}
|
|
972
|
+
.navds-typo--semibold {
|
|
973
|
+
font-weight: var(--a-font-weight-bold);
|
|
974
|
+
}
|
|
975
|
+
.navds-typo--align-start {
|
|
976
|
+
text-align: start;
|
|
977
|
+
}
|
|
978
|
+
.navds-typo--align-center {
|
|
979
|
+
text-align: center;
|
|
980
|
+
}
|
|
981
|
+
.navds-typo--align-end {
|
|
982
|
+
text-align: end;
|
|
983
|
+
}
|
|
984
|
+
.navds-typo--visually-hidden {
|
|
985
|
+
border: 0 !important;
|
|
986
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
987
|
+
height: 1px !important;
|
|
988
|
+
margin: -1px !important;
|
|
989
|
+
overflow: hidden !important;
|
|
990
|
+
padding: 0 !important;
|
|
991
|
+
top: 0 !important;
|
|
992
|
+
position: absolute !important;
|
|
993
|
+
white-space: nowrap !important;
|
|
994
|
+
width: 1px !important;
|
|
995
|
+
}
|
|
996
|
+
.navds-typo--color-subtle {
|
|
997
|
+
color: var(--a-text-subtle);
|
|
998
|
+
}
|
|
999
|
+
[data-theme="dark"].navds-typo--color-subtle,
|
|
1000
|
+
[data-theme="dark"] .navds-typo--color-subtle {
|
|
1001
|
+
--a-text-subtle: var(--a-gray-300);
|
|
1002
|
+
}
|
|
951
1003
|
/**************************
|
|
952
1004
|
* .navds-grid *
|
|
953
1005
|
**************************/
|
|
@@ -1147,6 +1199,9 @@ body,
|
|
|
1147
1199
|
grid-column: span 12;
|
|
1148
1200
|
}
|
|
1149
1201
|
}
|
|
1202
|
+
.navds-accordion {
|
|
1203
|
+
--__ac-accordion-header-shadow-color: var(--ac-accordion-header-border, var(--a-border-divider));
|
|
1204
|
+
}
|
|
1150
1205
|
.navds-accordion__item:focus-within {
|
|
1151
1206
|
position: relative;
|
|
1152
1207
|
}
|
|
@@ -1154,7 +1209,6 @@ body,
|
|
|
1154
1209
|
* Header *
|
|
1155
1210
|
*************************/
|
|
1156
1211
|
.navds-accordion__header {
|
|
1157
|
-
--__ac-accordion-header-shadow-color: var(--ac-accordion-header-border, var(--a-border-divider));
|
|
1158
1212
|
--__ac-accordion-header-shadow: inset 2px 0 0 0 var(--a-transparent), inset -2px 0 0 0 var(--a-transparent),
|
|
1159
1213
|
inset 0 2px 0 0 var(--__ac-accordion-header-shadow-color);
|
|
1160
1214
|
|
|
@@ -2315,67 +2369,90 @@ body,
|
|
|
2315
2369
|
transform: translateY(0);
|
|
2316
2370
|
}
|
|
2317
2371
|
}
|
|
2318
|
-
/**
|
|
2319
|
-
* GuidePanel component
|
|
2320
|
-
*/
|
|
2321
2372
|
.navds-guide-panel {
|
|
2373
|
+
--__ac-guide-panel-guide-size: 4rem;
|
|
2374
|
+
|
|
2322
2375
|
position: relative;
|
|
2323
|
-
padding-
|
|
2376
|
+
padding-top: calc(var(--__ac-guide-panel-guide-size) / 2);
|
|
2377
|
+
}
|
|
2378
|
+
.navds-guide {
|
|
2379
|
+
background: var(--ac-guide-panel-illustration-bg, var(--a-surface-alt-3-subtle));
|
|
2380
|
+
border: 2px solid var(--ac-guide-panel-border, var(--a-border-alt-3));
|
|
2381
|
+
border-radius: var(--a-border-radius-full);
|
|
2382
|
+
overflow: hidden;
|
|
2383
|
+
position: absolute;
|
|
2384
|
+
width: var(--__ac-guide-panel-guide-size);
|
|
2385
|
+
height: var(--__ac-guide-panel-guide-size);
|
|
2386
|
+
left: 50%;
|
|
2387
|
+
transform: translate(-50%, -50%);
|
|
2388
|
+
}
|
|
2389
|
+
.navds-guide svg,
|
|
2390
|
+
.navds-guide img {
|
|
2391
|
+
height: 100%;
|
|
2392
|
+
width: 100%;
|
|
2324
2393
|
}
|
|
2325
2394
|
.navds-guide-panel__content {
|
|
2326
2395
|
background-color: var(--ac-guide-panel-bg, var(--a-surface-default));
|
|
2327
|
-
border
|
|
2328
|
-
border:
|
|
2329
|
-
|
|
2330
|
-
padding: var(--a-spacing-6);
|
|
2331
|
-
padding-left: var(--a-spacing-14);
|
|
2332
|
-
}
|
|
2333
|
-
.navds-guide-panel--poster {
|
|
2334
|
-
padding-left: 0;
|
|
2396
|
+
border: 2px solid var(--ac-guide-panel-border, var(--a-border-alt-3));
|
|
2397
|
+
border-radius: var(--a-border-radius-large);
|
|
2398
|
+
padding: var(--a-spacing-4);
|
|
2335
2399
|
padding-top: var(--a-spacing-12);
|
|
2336
2400
|
}
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
}
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
}
|
|
2347
|
-
.navds-guide-panel--poster .navds-guide {
|
|
2348
|
-
left: 50%;
|
|
2349
|
-
top: 0;
|
|
2401
|
+
@media (min-width: 480px) {
|
|
2402
|
+
.navds-guide-panel {
|
|
2403
|
+
--__ac-guide-panel-guide-size: 6.25rem;
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
.navds-guide-panel__content {
|
|
2407
|
+
padding: var(--a-spacing-8);
|
|
2408
|
+
padding-top: 4.25rem;
|
|
2409
|
+
}
|
|
2350
2410
|
}
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
display: flex;
|
|
2356
|
-
align-items: center;
|
|
2357
|
-
justify-content: center;
|
|
2358
|
-
border-radius: var(--a-border-radius-full);
|
|
2411
|
+
/* not-poster */
|
|
2412
|
+
.navds-guide-panel--not-poster {
|
|
2413
|
+
padding-top: 0;
|
|
2414
|
+
padding-left: calc(var(--__ac-guide-panel-guide-size) / 2);
|
|
2359
2415
|
}
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
overflow: hidden;
|
|
2416
|
+
.navds-guide-panel--not-poster .navds-guide {
|
|
2417
|
+
left: 0;
|
|
2418
|
+
top: var(--a-spacing-5);
|
|
2419
|
+
transform: none;
|
|
2365
2420
|
}
|
|
2366
|
-
.navds-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2421
|
+
.navds-guide-panel--not-poster .navds-guide-panel__content {
|
|
2422
|
+
padding: var(--a-spacing-4);
|
|
2423
|
+
padding-left: var(--a-spacing-10);
|
|
2424
|
+
min-height: calc(var(--__ac-guide-panel-guide-size) + var(--a-spacing-5) + var(--a-spacing-5));
|
|
2370
2425
|
}
|
|
2371
|
-
|
|
2372
|
-
.navds-
|
|
2373
|
-
|
|
2374
|
-
|
|
2426
|
+
@media (min-width: 480px) {
|
|
2427
|
+
.navds-guide-panel--not-poster {
|
|
2428
|
+
--__ac-guide-panel-guide-size: 5rem;
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
.navds-guide-panel--not-poster .navds-guide-panel__content {
|
|
2432
|
+
padding: var(--a-spacing-6);
|
|
2433
|
+
padding-left: var(--a-spacing-14);
|
|
2434
|
+
}
|
|
2375
2435
|
}
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2436
|
+
/* responsive-poster (on desktop) */
|
|
2437
|
+
@media (min-width: 480px) {
|
|
2438
|
+
.navds-guide-panel--responsive-poster {
|
|
2439
|
+
--__ac-guide-panel-guide-size: 5rem;
|
|
2440
|
+
|
|
2441
|
+
padding-top: 0;
|
|
2442
|
+
padding-left: calc(var(--__ac-guide-panel-guide-size) / 2);
|
|
2443
|
+
}
|
|
2444
|
+
|
|
2445
|
+
.navds-guide-panel--responsive-poster .navds-guide {
|
|
2446
|
+
left: 0;
|
|
2447
|
+
top: var(--a-spacing-5);
|
|
2448
|
+
transform: none;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
.navds-guide-panel--responsive-poster .navds-guide-panel__content {
|
|
2452
|
+
padding: var(--a-spacing-6);
|
|
2453
|
+
padding-left: var(--a-spacing-14);
|
|
2454
|
+
min-height: calc(var(--__ac-guide-panel-guide-size) + var(--a-spacing-5) + var(--a-spacing-5));
|
|
2455
|
+
}
|
|
2379
2456
|
}
|
|
2380
2457
|
/*
|
|
2381
2458
|
Order matters; rearrange with care
|
package/dist/tokens.json
CHANGED
|
@@ -156,8 +156,8 @@
|
|
|
156
156
|
},
|
|
157
157
|
"guidepanel": {
|
|
158
158
|
"--ac-guide-panel-bg": "--a-surface-default",
|
|
159
|
-
"--ac-guide-panel-border": "--a-border-
|
|
160
|
-
"--ac-guide-panel-illustration-bg": "--a-surface-
|
|
159
|
+
"--ac-guide-panel-border": "--a-border-alt-3",
|
|
160
|
+
"--ac-guide-panel-illustration-bg": "--a-surface-alt-3-subtle"
|
|
161
161
|
},
|
|
162
162
|
"helptext": {
|
|
163
163
|
"--ac-help-text-button-color": "--a-surface-action",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/aksel-stylelint",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.1",
|
|
4
4
|
"author": "Aksel | NAV",
|
|
5
5
|
"homepage": "https://aksel.nav.no/grunnleggende/kode/stylelint",
|
|
6
6
|
"repository": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"dev": "yarn watch:lint"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@navikt/ds-css": "^5.
|
|
39
|
-
"@navikt/ds-tokens": "^5.
|
|
38
|
+
"@navikt/ds-css": "^5.3.1",
|
|
39
|
+
"@navikt/ds-tokens": "^5.3.1",
|
|
40
40
|
"@types/jest": "^29.0.0",
|
|
41
41
|
"concurrently": "7.2.1",
|
|
42
42
|
"copyfiles": "2.4.1",
|