@navikt/aksel-stylelint 3.4.2 → 4.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/deprecations.js +14 -0
- package/dist/index.css +559 -23
- package/dist/rules/aksel-design-token-exists/index.test.js +1 -1
- package/dist/rules/aksel-no-deprecated-classes/index.js +6 -1
- package/dist/rules/aksel-no-deprecated-classes/index.test.js +9 -0
- package/dist/tokens.json +61 -4
- package/dist/utils.js +0 -2
- package/package.json +4 -5
- package/dist/internal-tokens.json +0 -48
package/dist/deprecations.js
CHANGED
|
@@ -6,4 +6,18 @@ exports.deprecations = [
|
|
|
6
6
|
classes: ["navdsi-deprecated-example", "navdsi-other-deprecated-example"],
|
|
7
7
|
message: "Removed in vX.X.X, see documentation [link] for more information",
|
|
8
8
|
},
|
|
9
|
+
{
|
|
10
|
+
classes: [
|
|
11
|
+
"navdsi-dropdown",
|
|
12
|
+
"navdsi-copy-to-clipboard",
|
|
13
|
+
"navdsi-header",
|
|
14
|
+
"navdsi-timeline",
|
|
15
|
+
],
|
|
16
|
+
message: "Class were moved to '@navikt/ds-css' and renamed with 'navds'-prefix in v4.0.0. Docs: https://aksel.nav.no/grunnleggende/kode/endringslogg#h728704adeb59.",
|
|
17
|
+
deprecatePrefix: true,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
classes: ["navds-chips--icon-left"],
|
|
21
|
+
message: "In v4.1.0 Chips. Toggle no longer handles special alignment for checkmark-icon, thus removing this class",
|
|
22
|
+
},
|
|
9
23
|
];
|
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 Thu, 08 Jun 2023 12:52:00 GMT
|
|
5
5
|
*/
|
|
6
6
|
:root, :host {
|
|
7
7
|
--a-spacing-05: 0.125rem;
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
--a-icon-action: var(--a-blue-500);
|
|
190
190
|
--a-icon-action-on-action-subtle: var(--a-blue-600);
|
|
191
191
|
--a-icon-action-selected: var(--a-deepblue-500);
|
|
192
|
-
--a-icon-subtle: var(--a-
|
|
192
|
+
--a-icon-subtle: var(--a-grayalpha-700);
|
|
193
193
|
--a-icon-default: var(--a-gray-900);
|
|
194
194
|
--a-surface-alt-3: var(--a-deepblue-500);
|
|
195
195
|
--a-surface-alt-3-strong: var(--a-deepblue-800);
|
|
@@ -261,8 +261,26 @@
|
|
|
261
261
|
--a-text-action-selected: var(--a-deepblue-500);
|
|
262
262
|
--a-text-danger: var(--a-red-500);
|
|
263
263
|
--a-text-visited: var(--a-purple-500);
|
|
264
|
-
--a-text-subtle: var(--a-grayalpha-
|
|
264
|
+
--a-text-subtle: var(--a-grayalpha-700);
|
|
265
265
|
--a-text-default: var(--a-gray-900);
|
|
266
|
+
--a-data-border-6: var(--a-purple-400);
|
|
267
|
+
--a-data-border-5: var(--a-green-400);
|
|
268
|
+
--a-data-border-4: var(--a-lightblue-700);
|
|
269
|
+
--a-data-border-3: var(--a-orange-600);
|
|
270
|
+
--a-data-border-2: var(--a-deepblue-500);
|
|
271
|
+
--a-data-border-1: var(--a-blue-400);
|
|
272
|
+
--a-data-surface-6-subtle: var(--a-purple-200);
|
|
273
|
+
--a-data-surface-6: var(--a-purple-400);
|
|
274
|
+
--a-data-surface-5-subtle: var(--a-green-200);
|
|
275
|
+
--a-data-surface-5: var(--a-green-400);
|
|
276
|
+
--a-data-surface-4-subtle: var(--a-lightblue-500);
|
|
277
|
+
--a-data-surface-4: var(--a-lightblue-700);
|
|
278
|
+
--a-data-surface-3-subtle: var(--a-orange-300);
|
|
279
|
+
--a-data-surface-3: var(--a-orange-600);
|
|
280
|
+
--a-data-surface-2-subtle: var(--a-deepblue-200);
|
|
281
|
+
--a-data-surface-2: var(--a-deepblue-500);
|
|
282
|
+
--a-data-surface-1-subtle: var(--a-blue-100);
|
|
283
|
+
--a-data-surface-1: var(--a-blue-400);
|
|
266
284
|
--a-border-alt-3: var(--a-deepblue-500);
|
|
267
285
|
--a-border-alt-2: var(--a-limegreen-700);
|
|
268
286
|
--a-border-alt-1: var(--a-purple-400);
|
|
@@ -735,6 +753,8 @@ button,
|
|
|
735
753
|
--ac-button-secondary-hover-bg: var(--a-gray-800);
|
|
736
754
|
--ac-button-secondary-focus-border: var(--a-blue-200);
|
|
737
755
|
--ac-button-secondary-active-bg: var(--a-gray-700);
|
|
756
|
+
--ac-form-description: var(--a-text-on-inverted);
|
|
757
|
+
--ac-form-description: var(--a-text-on-inverted);
|
|
738
758
|
--ac-textfield-text: var(--a-text-on-inverted);
|
|
739
759
|
--ac-textfield-bg: var(--a-surface-inverted);
|
|
740
760
|
--ac-textfield-border: var(--a-border-on-inverted);
|
|
@@ -1243,9 +1263,12 @@ body,
|
|
|
1243
1263
|
* Content *
|
|
1244
1264
|
*************************/
|
|
1245
1265
|
.navds-accordion__content {
|
|
1246
|
-
padding: 0 var(--a-spacing-3) var(--a-spacing-5)
|
|
1266
|
+
padding: 0 var(--a-spacing-3) var(--a-spacing-5);
|
|
1247
1267
|
animation: fadeAccordionContent 250ms ease;
|
|
1248
1268
|
}
|
|
1269
|
+
.navds-accordion--indent > :where(.navds-accordion__item) > :where(.navds-accordion__content) {
|
|
1270
|
+
padding: 0 var(--a-spacing-3) var(--a-spacing-5) var(--a-spacing-11);
|
|
1271
|
+
}
|
|
1249
1272
|
.navds-accordion__content--closed {
|
|
1250
1273
|
display: none;
|
|
1251
1274
|
}
|
|
@@ -1770,7 +1793,7 @@ body,
|
|
|
1770
1793
|
cursor: pointer;
|
|
1771
1794
|
align-items: center;
|
|
1772
1795
|
justify-content: center;
|
|
1773
|
-
gap: var(--a-spacing-
|
|
1796
|
+
gap: var(--a-spacing-1);
|
|
1774
1797
|
margin: 0;
|
|
1775
1798
|
padding: 0 var(--a-spacing-3);
|
|
1776
1799
|
text-decoration: none;
|
|
@@ -1782,13 +1805,13 @@ body,
|
|
|
1782
1805
|
padding: 0 var(--a-spacing-2);
|
|
1783
1806
|
}
|
|
1784
1807
|
.navds-chips__toggle {
|
|
1785
|
-
box-shadow: inset 0 0 0 1px var(--ac-chip-toggle-border, var(--a-border-
|
|
1786
|
-
background-color: var(--ac-chip-toggle-bg, var(--a-surface-
|
|
1808
|
+
box-shadow: inset 0 0 0 1px var(--ac-chip-toggle-border, var(--a-border-subtle));
|
|
1809
|
+
background-color: var(--ac-chip-toggle-bg, var(--a-surface-action-subtle));
|
|
1787
1810
|
color: var(--ac-chip-toggle-text, var(--a-text-default));
|
|
1788
1811
|
}
|
|
1789
1812
|
.navds-chips__toggle:hover {
|
|
1790
|
-
box-shadow: inset 0 0 0 1px var(--ac-chip-toggle-hover-border, var(--a-border-
|
|
1791
|
-
background-color: var(--ac-chip-toggle-hover-bg, var(--a-surface-
|
|
1813
|
+
box-shadow: inset 0 0 0 1px var(--ac-chip-toggle-hover-border, var(--a-border-subtle-hover));
|
|
1814
|
+
background-color: var(--ac-chip-toggle-hover-bg, var(--a-surface-action-subtle-hover));
|
|
1792
1815
|
}
|
|
1793
1816
|
.navds-chips__toggle[aria-pressed="true"] {
|
|
1794
1817
|
box-shadow: none;
|
|
@@ -1798,6 +1821,24 @@ body,
|
|
|
1798
1821
|
.navds-chips__toggle[aria-pressed="true"]:hover {
|
|
1799
1822
|
background-color: var(--ac-chip-toggle-pressed-hover-bg, var(--a-surface-action-selected-hover));
|
|
1800
1823
|
}
|
|
1824
|
+
/* Toggle variant neutral */
|
|
1825
|
+
.navds-chips__toggle--neutral {
|
|
1826
|
+
box-shadow: inset 0 0 0 1px var(--ac-chip-toggle-neutral-border, var(--a-border-subtle));
|
|
1827
|
+
background-color: var(--ac-chip-toggle-neutral-bg, var(--a-surface-neutral-subtle));
|
|
1828
|
+
color: var(--ac-chip-toggle-neutral-text, var(--a-text-default));
|
|
1829
|
+
}
|
|
1830
|
+
.navds-chips__toggle--neutral:hover {
|
|
1831
|
+
box-shadow: inset 0 0 0 1px var(--ac-chip-toggle-neutral-hover-border, var(--a-border-subtle-hover));
|
|
1832
|
+
background-color: var(--ac-chip-toggle-neutral-hover-bg, var(--a-surface-neutral-subtle-hover));
|
|
1833
|
+
}
|
|
1834
|
+
.navds-chips__toggle--neutral[aria-pressed="true"] {
|
|
1835
|
+
box-shadow: none;
|
|
1836
|
+
background-color: var(--ac-chip-toggle-neutral-pressed-bg, var(--a-surface-neutral-selected));
|
|
1837
|
+
color: var(--ac-chip-toggle-neutral-pressed-text, var(--a-text-on-neutral));
|
|
1838
|
+
}
|
|
1839
|
+
.navds-chips__toggle--neutral[aria-pressed="true"]:hover {
|
|
1840
|
+
background-color: var(--ac-chip-toggle-neutral-pressed-hover-bg, var(--a-surface-neutral-selected));
|
|
1841
|
+
}
|
|
1801
1842
|
.navds-chips__toggle:focus-visible {
|
|
1802
1843
|
box-shadow: 0 0 0 2px var(--ac-chip-toggle-focus, var(--a-border-focus));
|
|
1803
1844
|
}
|
|
@@ -1836,17 +1877,6 @@ body,
|
|
|
1836
1877
|
place-items: center;
|
|
1837
1878
|
border-radius: var(--a-border-radius-full);
|
|
1838
1879
|
}
|
|
1839
|
-
.navds-chips__toggle-icon {
|
|
1840
|
-
width: 1.5rem;
|
|
1841
|
-
height: 1.5rem;
|
|
1842
|
-
display: grid;
|
|
1843
|
-
place-items: center;
|
|
1844
|
-
border-radius: var(--a-border-radius-full);
|
|
1845
|
-
}
|
|
1846
|
-
.navds-chips--small .navds-chips__toggle-icon {
|
|
1847
|
-
width: 1.25rem;
|
|
1848
|
-
height: 1.25rem;
|
|
1849
|
-
}
|
|
1850
1880
|
.navds-chips--small .navds-chips__removable-icon {
|
|
1851
1881
|
width: 1.25rem;
|
|
1852
1882
|
height: 1.25rem;
|
|
@@ -1887,9 +1917,6 @@ body,
|
|
|
1887
1917
|
.navds-chips--small .navds-chips--icon-right {
|
|
1888
1918
|
padding-right: var(--a-spacing-05);
|
|
1889
1919
|
}
|
|
1890
|
-
.navds-chips--small .navds-chips--icon-left {
|
|
1891
|
-
padding-left: 0.375rem;
|
|
1892
|
-
}
|
|
1893
1920
|
[data-theme="dark"] .navds-copybutton,
|
|
1894
1921
|
[data-theme="dark"].navds-copybutton {
|
|
1895
1922
|
--a-text-action: var(--a-blue-300);
|
|
@@ -2016,6 +2043,72 @@ body,
|
|
|
2016
2043
|
cursor: not-allowed;
|
|
2017
2044
|
opacity: 0.3;
|
|
2018
2045
|
}
|
|
2046
|
+
.navds-dropdown__menu {
|
|
2047
|
+
overflow: hidden;
|
|
2048
|
+
padding: var(--a-spacing-2) 0;
|
|
2049
|
+
color: var(--ac-dropdown-text, var(--a-text-default));
|
|
2050
|
+
width: 27ch;
|
|
2051
|
+
max-height: 616px;
|
|
2052
|
+
overflow-y: auto;
|
|
2053
|
+
}
|
|
2054
|
+
.navds-dropdown__divider {
|
|
2055
|
+
margin: var(--a-spacing-3) 0;
|
|
2056
|
+
border: none;
|
|
2057
|
+
border-bottom: 1px solid var(--a-border-divider);
|
|
2058
|
+
}
|
|
2059
|
+
.navds-dropdown__menu > :not(.navds-dropdown__divider):not(.navds-dropdown__list) {
|
|
2060
|
+
margin: 0 var(--a-spacing-4) var(--a-spacing-3);
|
|
2061
|
+
}
|
|
2062
|
+
.navds-dropdown__list {
|
|
2063
|
+
margin: 0;
|
|
2064
|
+
padding: 0;
|
|
2065
|
+
list-style: none;
|
|
2066
|
+
}
|
|
2067
|
+
.navds-dropdown__list-item {
|
|
2068
|
+
margin: 0;
|
|
2069
|
+
}
|
|
2070
|
+
.navds-dropdown__list-heading {
|
|
2071
|
+
margin: var(--a-spacing-1) var(--a-spacing-4) var(--a-spacing-3);
|
|
2072
|
+
}
|
|
2073
|
+
.navds-dropdown__item {
|
|
2074
|
+
border: none;
|
|
2075
|
+
margin: 0;
|
|
2076
|
+
overflow: visible;
|
|
2077
|
+
background: transparent;
|
|
2078
|
+
color: var(--ac-dropdown-item-text, var(--a-text-action));
|
|
2079
|
+
font: inherit;
|
|
2080
|
+
text-decoration: none;
|
|
2081
|
+
text-align: left;
|
|
2082
|
+
cursor: pointer;
|
|
2083
|
+
width: 100%;
|
|
2084
|
+
display: flex;
|
|
2085
|
+
align-items: center;
|
|
2086
|
+
gap: var(--a-spacing-2);
|
|
2087
|
+
padding: var(--a-spacing-1) var(--a-spacing-4);
|
|
2088
|
+
}
|
|
2089
|
+
.navds-dropdown__item:hover {
|
|
2090
|
+
background-color: var(--ac-dropdown-item-hover-bg, var(--a-surface-action-subtle-hover));
|
|
2091
|
+
}
|
|
2092
|
+
.navds-dropdown__item:active {
|
|
2093
|
+
background-color: var(--ac-dropdown-item-active-bg, var(--a-surface-action-active));
|
|
2094
|
+
color: var(--ac-dropdown-item-active-text, var(--a-text-on-action));
|
|
2095
|
+
}
|
|
2096
|
+
.navds-dropdown__item:focus-visible {
|
|
2097
|
+
outline: none;
|
|
2098
|
+
box-shadow: inset 0 0 0 2px var(--a-border-focus);
|
|
2099
|
+
}
|
|
2100
|
+
@supports not selector(:focus-visible) {
|
|
2101
|
+
.navds-dropdown__item:focus {
|
|
2102
|
+
outline: none;
|
|
2103
|
+
box-shadow: inset 0 0 0 2px var(--a-border-focus);
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
.navds-dropdown__item:disabled {
|
|
2107
|
+
color: var(--ac-dropdown-item-text, var(--a-text-action));
|
|
2108
|
+
opacity: 0.3;
|
|
2109
|
+
background: transparent;
|
|
2110
|
+
cursor: not-allowed;
|
|
2111
|
+
}
|
|
2019
2112
|
.navds-expansioncard {
|
|
2020
2113
|
--__ac-expansioncard-border-color: var(--ac-expansioncard-border-color, var(--a-border-default));
|
|
2021
2114
|
--__ac-expansioncard-border-radius: var(--ac-expansioncard-border-radius, var(--a-border-radius-large));
|
|
@@ -2257,6 +2350,9 @@ body,
|
|
|
2257
2350
|
.navds-fieldset > :not(:first-child):not(:empty) {
|
|
2258
2351
|
margin-top: var(--a-spacing-2);
|
|
2259
2352
|
}
|
|
2353
|
+
.navds-fieldset__description {
|
|
2354
|
+
color: var(--ac-form-description, var(--a-text-subtle));
|
|
2355
|
+
}
|
|
2260
2356
|
.navds-fieldset > .navds-fieldset__description:not(:empty) {
|
|
2261
2357
|
margin-top: 0.125rem;
|
|
2262
2358
|
}
|
|
@@ -2278,6 +2374,7 @@ body,
|
|
|
2278
2374
|
}
|
|
2279
2375
|
.navds-form-field__description {
|
|
2280
2376
|
margin-top: -6px;
|
|
2377
|
+
color: var(--ac-form-description, var(--a-text-subtle));
|
|
2281
2378
|
}
|
|
2282
2379
|
.navds-form-field .navds-error-message,
|
|
2283
2380
|
.navds-fieldset .navds-error-message {
|
|
@@ -3144,6 +3241,82 @@ body,
|
|
|
3144
3241
|
display: inherit;
|
|
3145
3242
|
}
|
|
3146
3243
|
}
|
|
3244
|
+
.navds-internalheader {
|
|
3245
|
+
display: flex;
|
|
3246
|
+
align-self: stretch;
|
|
3247
|
+
background: var(--ac-internalheader-bg, var(--a-surface-inverted));
|
|
3248
|
+
min-height: var(--a-spacing-12);
|
|
3249
|
+
|
|
3250
|
+
--navds-internalheader-focus: inset 0 0 0 2px var(--a-border-focus-on-inverted);
|
|
3251
|
+
}
|
|
3252
|
+
.navds-internalheader__title {
|
|
3253
|
+
border: none;
|
|
3254
|
+
overflow: visible;
|
|
3255
|
+
background: transparent;
|
|
3256
|
+
font: inherit;
|
|
3257
|
+
font-weight: var(--a-font-weight-bold);
|
|
3258
|
+
line-height: normal;
|
|
3259
|
+
text-align: left;
|
|
3260
|
+
padding: 0 var(--a-spacing-5) 0 var(--a-spacing-6);
|
|
3261
|
+
border-right: 1px solid var(--ac-internalheader-divider, var(--a-gray-600));
|
|
3262
|
+
display: flex;
|
|
3263
|
+
align-items: center;
|
|
3264
|
+
text-decoration: none;
|
|
3265
|
+
margin: 0;
|
|
3266
|
+
color: var(--ac-internalheader-text, var(--a-text-on-inverted));
|
|
3267
|
+
}
|
|
3268
|
+
button.navds-internalheader__title {
|
|
3269
|
+
cursor: pointer;
|
|
3270
|
+
}
|
|
3271
|
+
.navds-internalheader__user {
|
|
3272
|
+
padding: 0 var(--a-spacing-5);
|
|
3273
|
+
border-left: 1px solid var(--ac-internalheader-divider, var(--a-gray-600));
|
|
3274
|
+
display: flex;
|
|
3275
|
+
align-items: center;
|
|
3276
|
+
}
|
|
3277
|
+
.navds-internalheader__button {
|
|
3278
|
+
border: none;
|
|
3279
|
+
margin: 0;
|
|
3280
|
+
padding: 0 var(--a-spacing-3);
|
|
3281
|
+
overflow: visible;
|
|
3282
|
+
background: transparent;
|
|
3283
|
+
font: inherit;
|
|
3284
|
+
line-height: normal;
|
|
3285
|
+
cursor: pointer;
|
|
3286
|
+
text-align: left;
|
|
3287
|
+
display: flex;
|
|
3288
|
+
align-items: center;
|
|
3289
|
+
justify-self: center;
|
|
3290
|
+
gap: var(--a-spacing-2);
|
|
3291
|
+
border-left: 1px solid var(--ac-internalheader-divider, var(--a-gray-600));
|
|
3292
|
+
color: var(--ac-internalheader-text, var(--a-text-on-inverted));
|
|
3293
|
+
}
|
|
3294
|
+
a.navds-internalheader__title:hover,
|
|
3295
|
+
button.navds-internalheader__title:hover,
|
|
3296
|
+
.navds-internalheader__button:hover {
|
|
3297
|
+
background-color: var(--ac-internalheader-hover-bg, var(--a-surface-inverted-hover));
|
|
3298
|
+
}
|
|
3299
|
+
.navds-internalheader__title:focus-visible,
|
|
3300
|
+
.navds-internalheader__button:focus-visible {
|
|
3301
|
+
box-shadow: var(--navds-internalheader-focus);
|
|
3302
|
+
outline: none;
|
|
3303
|
+
}
|
|
3304
|
+
@supports not selector(:focus-visible) {
|
|
3305
|
+
.navds-internalheader__title:focus,
|
|
3306
|
+
.navds-internalheader__button:focus {
|
|
3307
|
+
box-shadow: var(--navds-internalheader-focus);
|
|
3308
|
+
outline: none;
|
|
3309
|
+
}
|
|
3310
|
+
}
|
|
3311
|
+
a.navds-internalheader__title:active,
|
|
3312
|
+
button.navds-internalheader__title:active,
|
|
3313
|
+
.navds-internalheader__button:active {
|
|
3314
|
+
background-color: var(--ac-internalheader-active-bg, var(--a-surface-inverted-active));
|
|
3315
|
+
}
|
|
3316
|
+
.navds-internalheader__user-button {
|
|
3317
|
+
padding-left: var(--a-spacing-5);
|
|
3318
|
+
gap: var(--a-spacing-4);
|
|
3319
|
+
}
|
|
3147
3320
|
.navds-link {
|
|
3148
3321
|
color: var(--ac-link-text, var(--a-text-action));
|
|
3149
3322
|
text-decoration: underline;
|
|
@@ -3820,6 +3993,324 @@ body,
|
|
|
3820
3993
|
background-color: var(--ac-tag-alt-3-moderate-bg, var(--a-surface-alt-3-moderate));
|
|
3821
3994
|
color: var(--ac-tag-alt-3-moderate-text, var(--a-text-default));
|
|
3822
3995
|
}
|
|
3996
|
+
.navds-timeline {
|
|
3997
|
+
position: relative;
|
|
3998
|
+
display: grid;
|
|
3999
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
4000
|
+
width: 100%;
|
|
4001
|
+
min-width: fit-content;
|
|
4002
|
+
align-items: center;
|
|
4003
|
+
}
|
|
4004
|
+
.navds-timeline__axislabels {
|
|
4005
|
+
position: relative;
|
|
4006
|
+
height: 1rem;
|
|
4007
|
+
box-sizing: content-box;
|
|
4008
|
+
grid-column: 2;
|
|
4009
|
+
}
|
|
4010
|
+
.navds-timeline__row-label {
|
|
4011
|
+
white-space: nowrap;
|
|
4012
|
+
width: auto;
|
|
4013
|
+
margin-right: var(--a-spacing-4);
|
|
4014
|
+
grid-column: 1;
|
|
4015
|
+
min-height: 1.5rem;
|
|
4016
|
+
display: flex;
|
|
4017
|
+
align-items: center;
|
|
4018
|
+
gap: var(--a-spacing-2);
|
|
4019
|
+
}
|
|
4020
|
+
.navds-timeline__row-label:where(:nth-last-child(2)) {
|
|
4021
|
+
align-self: flex-end;
|
|
4022
|
+
}
|
|
4023
|
+
.navds-timeline__axislabels-label {
|
|
4024
|
+
position: absolute;
|
|
4025
|
+
color: var(--ac-timeline-axislabel-text, var(--a-text-subtle));
|
|
4026
|
+
white-space: nowrap;
|
|
4027
|
+
}
|
|
4028
|
+
.navds-timeline__row {
|
|
4029
|
+
display: flex;
|
|
4030
|
+
background: var(--ac-timeline-row-bg, var(--a-surface-subtle));
|
|
4031
|
+
margin: var(--a-spacing-4) 0;
|
|
4032
|
+
grid-column: 2;
|
|
4033
|
+
}
|
|
4034
|
+
.navds-timeline__row--active {
|
|
4035
|
+
background: var(--ac-timeline-row-active-bg, var(--a-surface-selected));
|
|
4036
|
+
}
|
|
4037
|
+
.navds-timeline__row:last-of-type {
|
|
4038
|
+
margin-bottom: 0;
|
|
4039
|
+
}
|
|
4040
|
+
.navds-timeline__row-periods {
|
|
4041
|
+
min-height: 1.5rem;
|
|
4042
|
+
position: relative;
|
|
4043
|
+
width: 100%;
|
|
4044
|
+
margin: 0;
|
|
4045
|
+
}
|
|
4046
|
+
.navds-timeline__row-periods > li {
|
|
4047
|
+
list-style-type: none;
|
|
4048
|
+
}
|
|
4049
|
+
.navds-timeline__period {
|
|
4050
|
+
height: 100%;
|
|
4051
|
+
border-radius: var(--a-border-radius-full);
|
|
4052
|
+
position: absolute;
|
|
4053
|
+
padding: 0;
|
|
4054
|
+
display: flex;
|
|
4055
|
+
align-items: center;
|
|
4056
|
+
z-index: 2;
|
|
4057
|
+
border: none;
|
|
4058
|
+
font-size: 1rem;
|
|
4059
|
+
}
|
|
4060
|
+
.navds-timeline__period--inner {
|
|
4061
|
+
margin: 0 var(--a-spacing-1);
|
|
4062
|
+
overflow: hidden;
|
|
4063
|
+
white-space: nowrap;
|
|
4064
|
+
text-overflow: clip;
|
|
4065
|
+
text-align: left;
|
|
4066
|
+
display: flex;
|
|
4067
|
+
align-items: center;
|
|
4068
|
+
}
|
|
4069
|
+
.navds-timeline__period--inner svg {
|
|
4070
|
+
flex-shrink: 0;
|
|
4071
|
+
}
|
|
4072
|
+
.navds-timeline__period--clickable {
|
|
4073
|
+
cursor: pointer;
|
|
4074
|
+
}
|
|
4075
|
+
.navds-timeline__period--success {
|
|
4076
|
+
background: var(--ac-timeline-period-success-bg, var(--a-surface-success-subtle));
|
|
4077
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-period-success-border, var(--a-border-success));
|
|
4078
|
+
}
|
|
4079
|
+
.navds-timeline__period--success.navds-timeline__period--clickable:hover {
|
|
4080
|
+
background: var(--a-surface-success-subtle-hover);
|
|
4081
|
+
background: var(--ac-timeline-period-success-bg-hover, var(--a-surface-success-subtle-hover));
|
|
4082
|
+
}
|
|
4083
|
+
.navds-timeline__period--warning {
|
|
4084
|
+
background: var(--ac-timeline-period-warning-bg, var(--a-surface-warning-subtle));
|
|
4085
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-period-warning-border, var(--a-border-warning));
|
|
4086
|
+
}
|
|
4087
|
+
.navds-timeline__period--warning.navds-timeline__period--clickable:hover {
|
|
4088
|
+
background: var(--ac-timeline-period-warning-bg-hover, var(--a-surface-warning-subtle-hover));
|
|
4089
|
+
}
|
|
4090
|
+
.navds-timeline__period--danger {
|
|
4091
|
+
background: var(--ac-timeline-period-danger-bg, var(--a-surface-danger-subtle));
|
|
4092
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-period-danger-border, var(--a-border-danger));
|
|
4093
|
+
}
|
|
4094
|
+
.navds-timeline__period--danger.navds-timeline__period--clickable:hover {
|
|
4095
|
+
background: var(--ac-timeline-period-danger-bg-hover, var(--a-surface-danger-subtle-hover));
|
|
4096
|
+
}
|
|
4097
|
+
.navds-timeline__period--info {
|
|
4098
|
+
background: var(--ac-timeline-period-info-bg, var(--a-surface-info-subtle));
|
|
4099
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-period-info-border, var(--a-border-info));
|
|
4100
|
+
}
|
|
4101
|
+
.navds-timeline__period--info.navds-timeline__period--clickable:hover {
|
|
4102
|
+
background: var(--ac-timeline-period-info-bg-hover, var(--a-surface-info-subtle-hover));
|
|
4103
|
+
}
|
|
4104
|
+
.navds-timeline__period--neutral {
|
|
4105
|
+
background: var(--ac-timeline-period-neutral-bg, var(--a-bg-subtle));
|
|
4106
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-period-neutral-border, var(--a-border-default));
|
|
4107
|
+
}
|
|
4108
|
+
.navds-timeline__period--neutral.navds-timeline__period--clickable:hover {
|
|
4109
|
+
background: var(--ac-timeline-period-neutral-bg-hover, var(--a-gray-200));
|
|
4110
|
+
}
|
|
4111
|
+
.navds-timeline__period--connected-both {
|
|
4112
|
+
border-radius: 0;
|
|
4113
|
+
}
|
|
4114
|
+
.navds-timeline__period--connected-right {
|
|
4115
|
+
border-bottom-right-radius: 0;
|
|
4116
|
+
border-top-right-radius: 0;
|
|
4117
|
+
}
|
|
4118
|
+
.navds-timeline__period--connected-left {
|
|
4119
|
+
border-bottom-left-radius: 0;
|
|
4120
|
+
border-top-left-radius: 0;
|
|
4121
|
+
}
|
|
4122
|
+
.navds-timeline__period--selected {
|
|
4123
|
+
box-shadow: inset 0 0 0 2px var(--ac-timeline-period-selected-border, var(--a-border-action-selected));
|
|
4124
|
+
z-index: 3;
|
|
4125
|
+
}
|
|
4126
|
+
.navds-timeline__pin-wrapper {
|
|
4127
|
+
position: absolute;
|
|
4128
|
+
grid-column: 2;
|
|
4129
|
+
top: 0;
|
|
4130
|
+
z-index: 1;
|
|
4131
|
+
height: 100%;
|
|
4132
|
+
display: flex;
|
|
4133
|
+
flex-direction: column-reverse;
|
|
4134
|
+
isolation: isolate;
|
|
4135
|
+
|
|
4136
|
+
--navdsc-timeline-pin-size: 0.9rem;
|
|
4137
|
+
}
|
|
4138
|
+
.navds-timeline__pin-button {
|
|
4139
|
+
border: none;
|
|
4140
|
+
cursor: pointer;
|
|
4141
|
+
background: var(--a-surface-default);
|
|
4142
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg, var(--a-surface-danger)),
|
|
4143
|
+
0 0 0 4px var(--ac-timeline-pin-bg, var(--a-surface-danger)), 0 0 0 5px var(--a-surface-default);
|
|
4144
|
+
z-index: 2;
|
|
4145
|
+
border-radius: var(--a-border-radius-full);
|
|
4146
|
+
padding: 3.5px;
|
|
4147
|
+
position: relative;
|
|
4148
|
+
}
|
|
4149
|
+
.navds-timeline__pin-button::before {
|
|
4150
|
+
content: "";
|
|
4151
|
+
inset: 0;
|
|
4152
|
+
position: absolute;
|
|
4153
|
+
width: 25px;
|
|
4154
|
+
height: 25px;
|
|
4155
|
+
border-radius: var(--a-border-radius-full);
|
|
4156
|
+
left: calc(-12.5px + 3.5px);
|
|
4157
|
+
top: calc(-12.5px + 3.5px);
|
|
4158
|
+
}
|
|
4159
|
+
.navds-timeline__pin-button:focus-visible {
|
|
4160
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg, var(--a-surface-danger)),
|
|
4161
|
+
0 0 0 3px var(--ac-timeline-pin-bg, var(--a-surface-danger)), 0 0 0 4px var(--a-surface-default),
|
|
4162
|
+
0 0 0 6px var(--a-border-focus);
|
|
4163
|
+
outline: none;
|
|
4164
|
+
}
|
|
4165
|
+
.navds-timeline__pin-button:hover {
|
|
4166
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)),
|
|
4167
|
+
0 0 0 4px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)), 0 0 0 5px var(--a-surface-default);
|
|
4168
|
+
}
|
|
4169
|
+
.navds-timeline__pin-button:hover:focus-visible {
|
|
4170
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)),
|
|
4171
|
+
0 0 0 3px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)), 0 0 0 4px var(--a-surface-default),
|
|
4172
|
+
0 0 0 6px var(--a-border-focus);
|
|
4173
|
+
}
|
|
4174
|
+
@supports not selector(:focus-visible) {
|
|
4175
|
+
.navds-timeline__pin-button:focus {
|
|
4176
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg, var(--a-surface-danger)),
|
|
4177
|
+
0 0 0 3px var(--ac-timeline-pin-bg, var(--a-surface-danger)), 0 0 0 4px var(--a-surface-default),
|
|
4178
|
+
0 0 0 6px var(--a-border-focus);
|
|
4179
|
+
outline: none;
|
|
4180
|
+
}
|
|
4181
|
+
|
|
4182
|
+
.navds-timeline__pin-button:hover:focus {
|
|
4183
|
+
box-shadow: inset 0 0 0 1px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)),
|
|
4184
|
+
0 0 0 3px var(--ac-timeline-pin-bg-hover, var(--a-surface-danger-hover)), 0 0 0 4px var(--a-surface-default),
|
|
4185
|
+
0 0 0 6px var(--a-border-focus);
|
|
4186
|
+
}
|
|
4187
|
+
}
|
|
4188
|
+
.navds-timeline__pin-wrapper::before {
|
|
4189
|
+
content: "";
|
|
4190
|
+
top: var(--navdsc-timeline-pin-size);
|
|
4191
|
+
height: calc(94% - var(--navdsc-timeline-pin-size));
|
|
4192
|
+
width: 1px;
|
|
4193
|
+
margin: 0 auto;
|
|
4194
|
+
background: var(--a-surface-inverted);
|
|
4195
|
+
}
|
|
4196
|
+
.navds-timeline__zoom {
|
|
4197
|
+
margin-top: var(--a-spacing-6);
|
|
4198
|
+
float: right;
|
|
4199
|
+
display: flex;
|
|
4200
|
+
list-style-type: none;
|
|
4201
|
+
}
|
|
4202
|
+
.navds-timeline__zoom-button {
|
|
4203
|
+
all: unset;
|
|
4204
|
+
cursor: pointer;
|
|
4205
|
+
padding: 6px 9px 6px 8px;
|
|
4206
|
+
border: 1px solid var(--ac-timeline-zoom-border, var(--a-border-default));
|
|
4207
|
+
border-width: 1px 0 1px 1px;
|
|
4208
|
+
background: var(--ac-timeline-zoom-bg, var(--a-surface-default));
|
|
4209
|
+
}
|
|
4210
|
+
.navds-timeline__zoom li:first-child .navds-timeline__zoom-button {
|
|
4211
|
+
border-radius: var(--a-border-radius-medium) 0 0 var(--a-border-radius-medium);
|
|
4212
|
+
}
|
|
4213
|
+
.navds-timeline__zoom li:last-child .navds-timeline__zoom-button {
|
|
4214
|
+
border-width: 1px;
|
|
4215
|
+
border-radius: 0 var(--a-border-radius-medium) var(--a-border-radius-medium) 0;
|
|
4216
|
+
}
|
|
4217
|
+
.navds-timeline__zoom li:only-child .navds-timeline__zoom-button {
|
|
4218
|
+
border-radius: var(--a-border-radius-medium);
|
|
4219
|
+
}
|
|
4220
|
+
.navds-timeline__zoom-button:not([aria-pressed="true"]):hover {
|
|
4221
|
+
background: var(--ac-timeline-zoom-bg-hover, var(--a-surface-action-subtle-hover));
|
|
4222
|
+
}
|
|
4223
|
+
.navds-timeline__zoom-button[aria-pressed="true"] {
|
|
4224
|
+
background: var(--ac-timeline-zoom-selected-bg, var(--a-surface-inverted));
|
|
4225
|
+
color: var(--ac-timeline-zoom-selected-text, var(--a-text-on-inverted));
|
|
4226
|
+
}
|
|
4227
|
+
.navds-timeline__period:focus-visible {
|
|
4228
|
+
outline: none;
|
|
4229
|
+
z-index: 4;
|
|
4230
|
+
box-shadow: 0 0 0 2px var(--a-border-focus);
|
|
4231
|
+
}
|
|
4232
|
+
.navds-timeline__period--selected:focus-visible {
|
|
4233
|
+
box-shadow: inset 0 0 0 2px var(--ac-timeline-period-selected-border, var(--a-border-action-selected)),
|
|
4234
|
+
0 0 0 2px var(--a-border-focus);
|
|
4235
|
+
z-index: 3;
|
|
4236
|
+
}
|
|
4237
|
+
.navds-timeline__zoom li:focus-within {
|
|
4238
|
+
z-index: var(--a-z-index-focus);
|
|
4239
|
+
}
|
|
4240
|
+
.navds-timeline__zoom-button:focus-visible {
|
|
4241
|
+
box-shadow: 0 0 0 1px var(--a-surface-default), 0 0 0 3px var(--a-border-focus);
|
|
4242
|
+
border-width: 1px;
|
|
4243
|
+
}
|
|
4244
|
+
.navds-timeline__zoom li:not(:last-child) .navds-timeline__zoom-button:focus-visible {
|
|
4245
|
+
margin-right: 2px;
|
|
4246
|
+
padding-right: 6px;
|
|
4247
|
+
}
|
|
4248
|
+
@supports not selector(:focus-visible) {
|
|
4249
|
+
.navds-timeline__period:focus {
|
|
4250
|
+
outline: none;
|
|
4251
|
+
z-index: 4;
|
|
4252
|
+
box-shadow: 0 0 0 2px var(--a-border-focus);
|
|
4253
|
+
}
|
|
4254
|
+
|
|
4255
|
+
.navds-timeline__period--selected:focus {
|
|
4256
|
+
box-shadow: inset 0 0 0 2px var(--ac-timeline-period-selected-border, var(--a-border-action-selected)),
|
|
4257
|
+
0 0 0 2px var(--a-border-focus);
|
|
4258
|
+
z-index: 3;
|
|
4259
|
+
}
|
|
4260
|
+
|
|
4261
|
+
.navds-timeline__zoom-button:focus {
|
|
4262
|
+
box-shadow: 0 0 0 1px var(--a-surface-default), 0 0 0 3px var(--a-border-focus);
|
|
4263
|
+
border-width: 1px;
|
|
4264
|
+
}
|
|
4265
|
+
|
|
4266
|
+
.navds-timeline__zoom li:not(:last-child) .navds-timeline__zoom-button:focus {
|
|
4267
|
+
margin-right: 2px;
|
|
4268
|
+
padding-right: 6px;
|
|
4269
|
+
}
|
|
4270
|
+
}
|
|
4271
|
+
/**
|
|
4272
|
+
* Timeline Popover
|
|
4273
|
+
*/
|
|
4274
|
+
.navds-timeline__popover {
|
|
4275
|
+
z-index: var(--a-z-index-popover);
|
|
4276
|
+
background-color: var(--ac-popover-bg, var(--a-surface-default));
|
|
4277
|
+
box-shadow: var(--a-shadow-medium);
|
|
4278
|
+
border: 1px solid;
|
|
4279
|
+
border-color: var(--ac-popover-border, var(--a-border-default));
|
|
4280
|
+
border-radius: var(--a-border-radius-medium);
|
|
4281
|
+
}
|
|
4282
|
+
.navds-timeline__popover:focus {
|
|
4283
|
+
outline: none;
|
|
4284
|
+
}
|
|
4285
|
+
.navds-timeline__popover-content {
|
|
4286
|
+
padding: var(--a-spacing-3);
|
|
4287
|
+
}
|
|
4288
|
+
.navds-timeline__popover-arrow {
|
|
4289
|
+
position: absolute;
|
|
4290
|
+
z-index: -1;
|
|
4291
|
+
transform: rotate(45deg);
|
|
4292
|
+
background-color: var(--ac-popover-bg, var(--a-surface-default));
|
|
4293
|
+
border: 1px solid;
|
|
4294
|
+
border-color: var(--ac-popover-border, var(--a-border-default));
|
|
4295
|
+
width: 1rem;
|
|
4296
|
+
height: 1rem;
|
|
4297
|
+
}
|
|
4298
|
+
.navds-timeline__popover[data-placement^="top"] > .navds-timeline__popover-arrow {
|
|
4299
|
+
border-left-color: transparent;
|
|
4300
|
+
border-top-color: transparent;
|
|
4301
|
+
}
|
|
4302
|
+
.navds-timeline__popover[data-placement^="bottom"] > .navds-timeline__popover-arrow {
|
|
4303
|
+
border-bottom-color: transparent;
|
|
4304
|
+
border-right-color: transparent;
|
|
4305
|
+
}
|
|
4306
|
+
.navds-timeline__popover[data-placement^="left"] > .navds-timeline__popover-arrow {
|
|
4307
|
+
border-left-color: transparent;
|
|
4308
|
+
border-bottom-color: transparent;
|
|
4309
|
+
}
|
|
4310
|
+
.navds-timeline__popover[data-placement^="right"] > .navds-timeline__popover-arrow {
|
|
4311
|
+
border-right-color: transparent;
|
|
4312
|
+
border-top-color: transparent;
|
|
4313
|
+
}
|
|
3823
4314
|
@keyframes tooltipFadeIn {
|
|
3824
4315
|
0% {
|
|
3825
4316
|
opacity: 0;
|
|
@@ -4092,6 +4583,51 @@ body,
|
|
|
4092
4583
|
.navds-read-more--open > .navds-read-more__button:hover > .navds-read-more__expand-icon {
|
|
4093
4584
|
transform: translateY(-1px) rotate(-180deg);
|
|
4094
4585
|
}
|
|
4586
|
+
.navds-skeleton {
|
|
4587
|
+
display: block;
|
|
4588
|
+
background-color: var(--ac-skeleton-bg, var(--a-surface-neutral-moderate));
|
|
4589
|
+
height: 1.3em;
|
|
4590
|
+
animation: akselSkeletonAnimation 0.8s linear infinite alternate;
|
|
4591
|
+
}
|
|
4592
|
+
.navds-skeleton--has-children {
|
|
4593
|
+
color: transparent;
|
|
4594
|
+
}
|
|
4595
|
+
.navds-skeleton--has-children > * {
|
|
4596
|
+
visibility: hidden;
|
|
4597
|
+
}
|
|
4598
|
+
.navds-skeleton--has-children.navds-skeleton--no-height {
|
|
4599
|
+
height: auto;
|
|
4600
|
+
}
|
|
4601
|
+
.navds-skeleton--has-children.navds-skeleton--no-width {
|
|
4602
|
+
width: fit-content;
|
|
4603
|
+
}
|
|
4604
|
+
.navds-skeleton--text {
|
|
4605
|
+
height: auto;
|
|
4606
|
+
transform-origin: 0 55%;
|
|
4607
|
+
transform: scale(1, 0.6);
|
|
4608
|
+
border-radius: var(--a-border-radius-medium);
|
|
4609
|
+
}
|
|
4610
|
+
.navds-skeleton--text:empty::before {
|
|
4611
|
+
content: "\00a0";
|
|
4612
|
+
}
|
|
4613
|
+
.navds-skeleton--circle {
|
|
4614
|
+
border-radius: var(--a-border-radius-full);
|
|
4615
|
+
}
|
|
4616
|
+
.navds-skeleton--rectangle {
|
|
4617
|
+
border-radius: 0;
|
|
4618
|
+
}
|
|
4619
|
+
.navds-skeleton--rounded {
|
|
4620
|
+
border-radius: var(--a-border-radius-xlarge);
|
|
4621
|
+
}
|
|
4622
|
+
@keyframes akselSkeletonAnimation {
|
|
4623
|
+
0% {
|
|
4624
|
+
opacity: 1;
|
|
4625
|
+
}
|
|
4626
|
+
|
|
4627
|
+
100% {
|
|
4628
|
+
opacity: 0.4;
|
|
4629
|
+
}
|
|
4630
|
+
}
|
|
4095
4631
|
.navds-stepper {
|
|
4096
4632
|
--navds-stepper-circle-size: 1.75rem;
|
|
4097
4633
|
--navds-stepper-border-width: 2px;
|
|
@@ -31,7 +31,7 @@ const _1 = __importStar(require("."));
|
|
|
31
31
|
config: true,
|
|
32
32
|
accept: [
|
|
33
33
|
{
|
|
34
|
-
code: ".foo { --ac-accordion-header-bg-hover: 1px; --ac-
|
|
34
|
+
code: ".foo { --ac-accordion-header-bg-hover: 1px; --ac-internalheader-bg: red; }",
|
|
35
35
|
description: "existing '--ac-' tokens overridden",
|
|
36
36
|
},
|
|
37
37
|
{
|
|
@@ -18,7 +18,12 @@ const ruleFunction = () => {
|
|
|
18
18
|
(0, postcss_selector_parser_1.default)((selectors) => {
|
|
19
19
|
selectors.walkClasses((className) => {
|
|
20
20
|
for (const deprecation of deprecations_1.deprecations) {
|
|
21
|
-
if (!deprecation.
|
|
21
|
+
if (!deprecation.deprecatePrefix &&
|
|
22
|
+
!deprecation.classes.includes(className.value)) {
|
|
23
|
+
continue;
|
|
24
|
+
}
|
|
25
|
+
else if (deprecation.deprecatePrefix &&
|
|
26
|
+
!deprecation.classes.some((x) => className.value.startsWith(x))) {
|
|
22
27
|
return;
|
|
23
28
|
}
|
|
24
29
|
stylelint_1.default.utils.report({
|
|
@@ -56,5 +56,14 @@ const deprecations_1 = require("../../deprecations");
|
|
|
56
56
|
column: 7,
|
|
57
57
|
endColumn: 38,
|
|
58
58
|
},
|
|
59
|
+
{
|
|
60
|
+
code: ".foo, \n .navdsi-dropdown-example \n .bar {}",
|
|
61
|
+
description: "selector with deprecated class name 1",
|
|
62
|
+
message: _1.messages.unexpected("navdsi-dropdown-example", deprecations_1.deprecations[1].message),
|
|
63
|
+
line: 2,
|
|
64
|
+
endLine: 2,
|
|
65
|
+
column: 3,
|
|
66
|
+
endColumn: 26,
|
|
67
|
+
},
|
|
59
68
|
],
|
|
60
69
|
});
|
package/dist/tokens.json
CHANGED
|
@@ -86,14 +86,22 @@
|
|
|
86
86
|
"--ac-chat-top-text": "--a-text-default"
|
|
87
87
|
},
|
|
88
88
|
"chips": {
|
|
89
|
-
"--ac-chip-toggle-border": "--a-border-
|
|
90
|
-
"--ac-chip-toggle-bg": "--a-surface-
|
|
89
|
+
"--ac-chip-toggle-border": "--a-border-subtle",
|
|
90
|
+
"--ac-chip-toggle-bg": "--a-surface-action-subtle",
|
|
91
91
|
"--ac-chip-toggle-text": "--a-text-default",
|
|
92
|
-
"--ac-chip-toggle-hover-border": "--a-border-
|
|
93
|
-
"--ac-chip-toggle-hover-bg": "--a-surface-
|
|
92
|
+
"--ac-chip-toggle-hover-border": "--a-border-subtle-hover",
|
|
93
|
+
"--ac-chip-toggle-hover-bg": "--a-surface-action-subtle-hover",
|
|
94
94
|
"--ac-chip-toggle-pressed-bg": "--a-surface-action-selected",
|
|
95
95
|
"--ac-chip-toggle-pressed-text": "--a-text-on-action",
|
|
96
96
|
"--ac-chip-toggle-pressed-hover-bg": "--a-surface-action-selected-hover",
|
|
97
|
+
"--ac-chip-toggle-neutral-border": "--a-border-subtle",
|
|
98
|
+
"--ac-chip-toggle-neutral-bg": "--a-surface-neutral-subtle",
|
|
99
|
+
"--ac-chip-toggle-neutral-text": "--a-text-default",
|
|
100
|
+
"--ac-chip-toggle-neutral-hover-border": "--a-border-subtle-hover",
|
|
101
|
+
"--ac-chip-toggle-neutral-hover-bg": "--a-surface-neutral-subtle-hover",
|
|
102
|
+
"--ac-chip-toggle-neutral-pressed-bg": "--a-surface-neutral-selected",
|
|
103
|
+
"--ac-chip-toggle-neutral-pressed-text": "--a-text-on-neutral",
|
|
104
|
+
"--ac-chip-toggle-neutral-pressed-hover-bg": "--a-surface-neutral-selected",
|
|
97
105
|
"--ac-chip-toggle-focus": "--a-border-focus",
|
|
98
106
|
"--ac-chip-removable-action-bg": "--a-surface-action-selected",
|
|
99
107
|
"--ac-chip-removable-action-text": "--a-text-on-action",
|
|
@@ -206,6 +214,9 @@
|
|
|
206
214
|
"--ac-read-more-active-bg": "--a-surface-active",
|
|
207
215
|
"--ac-read-more-line": "--a-border-divider"
|
|
208
216
|
},
|
|
217
|
+
"skeleton": {
|
|
218
|
+
"--ac-skeleton-bg": "--a-surface-neutral-moderate"
|
|
219
|
+
},
|
|
209
220
|
"stepper": {
|
|
210
221
|
"--ac-stepper-text": "--a-surface-action",
|
|
211
222
|
"--ac-stepper-line": "--a-border-default",
|
|
@@ -349,6 +360,10 @@
|
|
|
349
360
|
"--ac-radio-checkbox-error-border": "--a-border-danger",
|
|
350
361
|
"--ac-radio-checkbox-error-hover-bg": "--a-surface-danger-subtle"
|
|
351
362
|
},
|
|
363
|
+
"forms": {
|
|
364
|
+
"--ac-form-description": "--a-text-subtle",
|
|
365
|
+
"--ac-form-subdescription": "--a-text-subtle"
|
|
366
|
+
},
|
|
352
367
|
"search": {
|
|
353
368
|
"--ac-search-button-border": "--a-border-default",
|
|
354
369
|
"--ac-search-button-border-hover": "--a-border-action",
|
|
@@ -391,5 +406,47 @@
|
|
|
391
406
|
"--ac-textarea-counter-text": "--a-text-subtle",
|
|
392
407
|
"--ac-textarea-counter-error-text": "--a-text-danger",
|
|
393
408
|
"--ac-textarea-error-border": "--a-border-danger"
|
|
409
|
+
},
|
|
410
|
+
"dropdown": {
|
|
411
|
+
"--ac-dropdown-text": "--a-text-default",
|
|
412
|
+
"--ac-dropdown-item-text": "--a-text-action",
|
|
413
|
+
"--ac-dropdown-item-hover-bg": "--a-surface-action-subtle-hover",
|
|
414
|
+
"--ac-dropdown-item-active-bg": "--a-surface-action-active",
|
|
415
|
+
"--ac-dropdown-item-active-text": "--a-text-on-active"
|
|
416
|
+
},
|
|
417
|
+
"internalheader": {
|
|
418
|
+
"--ac-internalheader-bg": "--a-surface-inverted",
|
|
419
|
+
"--ac-internalheader-divider": "--a-gray-600",
|
|
420
|
+
"--ac-internalheader-text": "--a-text-on-inverted",
|
|
421
|
+
"--ac-internalheader-hover-bg": "--a-surface-inverted-hover",
|
|
422
|
+
"--ac-internalheader-active-bg": "--a-surface-inverted-active"
|
|
423
|
+
},
|
|
424
|
+
"timeline": {
|
|
425
|
+
"--ac-timeline-row-bg": "--a-surface-subtle",
|
|
426
|
+
"--ac-timeline-row-active-bg": "--a-surface-selected",
|
|
427
|
+
"--ac-timeline-period-success-bg": "--a-surface-success-subtle",
|
|
428
|
+
"--ac-timeline-period-success-border": "--a-border-success",
|
|
429
|
+
"--ac-timeline-period-success-bg-hover": "--a-surface-success-subtle-hover",
|
|
430
|
+
"--ac-timeline-period-warning-bg": "--a-surface-warning-subtle",
|
|
431
|
+
"--ac-timeline-period-warning-border": "--a-border-warning",
|
|
432
|
+
"--ac-timeline-period-warning-bg-hover": "--a-surface-warning-subtle-hover",
|
|
433
|
+
"--ac-timeline-period-danger-bg": "--a-surface-danger-subtle",
|
|
434
|
+
"--ac-timeline-period-danger-border": "--a-border-danger",
|
|
435
|
+
"--ac-timeline-period-danger-bg-hover": "--a-surface-danger-subtle-hover",
|
|
436
|
+
"--ac-timeline-period-info-bg": "--a-surface-info-subtle",
|
|
437
|
+
"--ac-timeline-period-info-border": "--a-border-info",
|
|
438
|
+
"--ac-timeline-period-info-bg-hover": "--a-surface-info-subtle-hover",
|
|
439
|
+
"--ac-timeline-period-neutral-bg": "--a-bg-subtle",
|
|
440
|
+
"--ac-timeline-period-neutral-border": "--a-border-default",
|
|
441
|
+
"--ac-timeline-period-neutral-bg-hover": "--a-gray-200",
|
|
442
|
+
"--ac-timeline-period-selected-border": "--a-border-action-selected",
|
|
443
|
+
"--ac-timeline-pin-bg": "--a-surface-danger",
|
|
444
|
+
"--ac-timeline-pin-bg-hover": "--a-surface-danger-hover",
|
|
445
|
+
"--ac-timeline-zoom-border": "--a-border-default",
|
|
446
|
+
"--ac-timeline-zoom-bg": "--a-surface-default",
|
|
447
|
+
"--ac-timeline-zoom-bg-hover": "--a-surface-action-subtle-hover",
|
|
448
|
+
"--ac-timeline-zoom-selected-bg": "--a-surface-inverted",
|
|
449
|
+
"--ac-timeline-zoom-selected-text": "--a-text-on-inverted",
|
|
450
|
+
"--ac-timeline-axislabel-text": "--a-text-subtle"
|
|
394
451
|
}
|
|
395
452
|
}
|
package/dist/utils.js
CHANGED
|
@@ -81,7 +81,6 @@ const flattenObject = (obj) => {
|
|
|
81
81
|
exports.flattenObject = flattenObject;
|
|
82
82
|
const tokenCSSFile = "./index.css";
|
|
83
83
|
const tokenJsonFile = "./tokens.json";
|
|
84
|
-
const internalTokensJSONFile = "./internal-tokens.json";
|
|
85
84
|
let allowedTokenNames = [];
|
|
86
85
|
const addTokens = (tokenJSONFile, allowedTokenNames) => {
|
|
87
86
|
const jsonFileBuffer = (0, node_fs_1.readFileSync)(`${__dirname}/${tokenJSONFile}`);
|
|
@@ -103,7 +102,6 @@ const tokenExists = (controlledPrefixes, inputToken) => {
|
|
|
103
102
|
}
|
|
104
103
|
});
|
|
105
104
|
(0, exports.addTokens)(tokenJsonFile, allowedTokenNames);
|
|
106
|
-
(0, exports.addTokens)(internalTokensJSONFile, allowedTokenNames);
|
|
107
105
|
}
|
|
108
106
|
return allowedTokenNames.includes(inputToken);
|
|
109
107
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/aksel-stylelint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"author": "Aksel | NAV",
|
|
5
5
|
"homepage": "https://aksel.nav.no/grunnleggende/kode/stylelint",
|
|
6
6
|
"repository": {
|
|
@@ -27,17 +27,16 @@
|
|
|
27
27
|
],
|
|
28
28
|
"scripts": {
|
|
29
29
|
"test": "jest",
|
|
30
|
-
"copy-internal-tokens": "node -e \"require('fs').copyFileSync('../internal/css/tokens.json','dist/internal-tokens.json')\"",
|
|
31
30
|
"copy-css": "node -e \"require('fs').copyFileSync('../core/css/dist/index.css','dist/index.css')\"",
|
|
32
31
|
"copy-tokens": "node -e \"require('fs').copyFileSync('../core/css/tokens.json','dist/tokens.json')\"",
|
|
33
|
-
"copy": "yarn copy-
|
|
32
|
+
"copy": "yarn copy-css && yarn copy-tokens",
|
|
34
33
|
"build": "tsc -p . && concurrently \"yarn:copy-*\"",
|
|
35
34
|
"watch:lint": "tsc --watch -p .",
|
|
36
35
|
"dev": "yarn watch:lint"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
|
-
"@navikt/ds-css": "^
|
|
40
|
-
"@navikt/ds-tokens": "^
|
|
38
|
+
"@navikt/ds-css": "^4.1.0",
|
|
39
|
+
"@navikt/ds-tokens": "^4.1.0",
|
|
41
40
|
"@types/jest": "^29.0.0",
|
|
42
41
|
"concurrently": "7.2.1",
|
|
43
42
|
"copyfiles": "2.4.1",
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"copytoclipboard": {
|
|
3
|
-
"--ac-copy-to-clipboard-text": "--a-text-default"
|
|
4
|
-
},
|
|
5
|
-
"dropdown": {
|
|
6
|
-
"--ac-dropdown-text": "--a-text-default",
|
|
7
|
-
"--ac-dropdown-border": "--a-border-default",
|
|
8
|
-
"--ac-dropdown-item-text": "--a-text-action",
|
|
9
|
-
"--ac-dropdown-item-hover-bg": "--a-surface-action-subtle-hover",
|
|
10
|
-
"--ac-dropdown-item-active-bg": "--a-surface-action-active",
|
|
11
|
-
"--ac-dropdown-item-active-text": "--a-text-on-active"
|
|
12
|
-
},
|
|
13
|
-
"header": {
|
|
14
|
-
"--ac-header-bg": "--a-surface-inverted",
|
|
15
|
-
"--ac-header-divider": "--a-gray-600",
|
|
16
|
-
"--ac-header-text": "--a-text-on-inverted",
|
|
17
|
-
"--ac-header-hover-bg": "--a-surface-inverted-hover",
|
|
18
|
-
"--ac-header-active-bg": "--a-surface-inverted-active"
|
|
19
|
-
},
|
|
20
|
-
"timeline": {
|
|
21
|
-
"--ac-timeline-row-bg": "--a-surface-subtle",
|
|
22
|
-
"--ac-timeline-row-active-bg": "--a-surface-selected",
|
|
23
|
-
"--ac-timeline-period-success-bg": "--a-surface-success-subtle",
|
|
24
|
-
"--ac-timeline-period-success-border": "--a-border-success",
|
|
25
|
-
"--ac-timeline-period-success-bg-hover": "--a-surface-success-subtle-hover",
|
|
26
|
-
"--ac-timeline-period-warning-bg": "--a-surface-warning-subtle",
|
|
27
|
-
"--ac-timeline-period-warning-border": "--a-border-warning",
|
|
28
|
-
"--ac-timeline-period-warning-bg-hover": "--a-surface-warning-subtle-hover",
|
|
29
|
-
"--ac-timeline-period-danger-bg": "--a-surface-danger-subtle",
|
|
30
|
-
"--ac-timeline-period-danger-border": "--a-border-danger",
|
|
31
|
-
"--ac-timeline-period-danger-bg-hover": "--a-surface-danger-subtle-hover",
|
|
32
|
-
"--ac-timeline-period-info-bg": "--a-surface-info-subtle",
|
|
33
|
-
"--ac-timeline-period-info-border": "--a-border-info",
|
|
34
|
-
"--ac-timeline-period-info-bg-hover": "--a-surface-info-subtle-hover",
|
|
35
|
-
"--ac-timeline-period-neutral-bg": "--a-bg-subtle",
|
|
36
|
-
"--ac-timeline-period-neutral-border": "--a-border-default",
|
|
37
|
-
"--ac-timeline-period-neutral-bg-hover": "--a-gray-200",
|
|
38
|
-
"--ac-timeline-period-selected-border": "--a-border-action-selected",
|
|
39
|
-
"--ac-timeline-pin-bg": "--a-surface-danger",
|
|
40
|
-
"--ac-timeline-pin-bg-hover": "--a-surface-danger-hover",
|
|
41
|
-
"--ac-timeline-zoom-border": "--a-border-default",
|
|
42
|
-
"--ac-timeline-zoom-bg": "--a-surface-default",
|
|
43
|
-
"--ac-timeline-zoom-bg-hover": "--a-surface-action-subtle-hover",
|
|
44
|
-
"--ac-timeline-zoom-selected-bg": "--a-surface-inverted",
|
|
45
|
-
"--ac-timeline-zoom-selected-text": "--a-text-on-inverted",
|
|
46
|
-
"--ac-timeline-axislabel-text": "--a-text-subtle"
|
|
47
|
-
}
|
|
48
|
-
}
|