@navikt/aksel-stylelint 6.0.0 → 6.1.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/index.css CHANGED
@@ -1,7 +1,7 @@
1
1
  @charset "UTF-8";
2
2
  /**
3
3
  * Do not edit directly
4
- * Generated on Mon, 19 Feb 2024 14:06:51 GMT
4
+ * Generated on Fri, 01 Mar 2024 19:01:55 GMT
5
5
  */
6
6
  :root, :host {
7
7
  --a-spacing-1-alt: 0.375rem;
@@ -4397,7 +4397,6 @@ button.navds-internalheader__title:active,
4397
4397
  }
4398
4398
  .navds-link:hover {
4399
4399
  text-decoration: none;
4400
- color: var(--ac-link-hover-text, var(--a-text-action-hover));
4401
4400
  }
4402
4401
  .navds-link.navds-link--remove-underline {
4403
4402
  text-decoration: none;
@@ -4673,7 +4672,7 @@ button.navds-internalheader__title:active,
4673
4672
  }
4674
4673
  @keyframes akselModalFadeIn {
4675
4674
  from {
4676
- opacity: 0;
4675
+ opacity: 0.0001; /* Safari will not set focus inside the modal when it opens if we set this to 0 */
4677
4676
  transform: translate3d(0, calc(5% + 4px), 0);
4678
4677
  }
4679
4678
 
@@ -23,9 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- const jest_preset_stylelint_1 = require("jest-preset-stylelint");
26
+ const stylelint_test_rule_node_1 = require("stylelint-test-rule-node");
27
27
  const _1 = __importStar(require("."));
28
- (0, jest_preset_stylelint_1.getTestRule)()({
28
+ (0, stylelint_test_rule_node_1.testRule)({
29
29
  plugins: ["./dist/index.js"],
30
30
  ruleName: _1.default.ruleName,
31
31
  config: true,
@@ -23,9 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- const jest_preset_stylelint_1 = require("jest-preset-stylelint");
26
+ const stylelint_test_rule_node_1 = require("stylelint-test-rule-node");
27
27
  const _1 = __importStar(require("."));
28
- (0, jest_preset_stylelint_1.getTestRule)()({
28
+ (0, stylelint_test_rule_node_1.testRule)({
29
29
  plugins: ["./dist/index.js"],
30
30
  ruleName: _1.default.ruleName,
31
31
  config: true,
@@ -23,9 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- const jest_preset_stylelint_1 = require("jest-preset-stylelint");
26
+ const stylelint_test_rule_node_1 = require("stylelint-test-rule-node");
27
27
  const _1 = __importStar(require("."));
28
- (0, jest_preset_stylelint_1.getTestRule)()({
28
+ (0, stylelint_test_rule_node_1.testRule)({
29
29
  plugins: ["./dist/index.js"],
30
30
  ruleName: _1.default.ruleName,
31
31
  config: true,
@@ -23,9 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- const jest_preset_stylelint_1 = require("jest-preset-stylelint");
26
+ const stylelint_test_rule_node_1 = require("stylelint-test-rule-node");
27
27
  const _1 = __importStar(require("."));
28
- (0, jest_preset_stylelint_1.getTestRule)()({
28
+ (0, stylelint_test_rule_node_1.testRule)({
29
29
  plugins: ["./dist/index.js"],
30
30
  ruleName: _1.default.ruleName,
31
31
  config: true,
@@ -23,10 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- const jest_preset_stylelint_1 = require("jest-preset-stylelint");
26
+ const stylelint_test_rule_node_1 = require("stylelint-test-rule-node");
27
27
  const _1 = __importStar(require("."));
28
28
  const deprecations_1 = require("../../deprecations");
29
- (0, jest_preset_stylelint_1.getTestRule)()({
29
+ (0, stylelint_test_rule_node_1.testRule)({
30
30
  plugins: ["./dist/index.js"],
31
31
  ruleName: _1.default.ruleName,
32
32
  config: true,
@@ -23,9 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- const jest_preset_stylelint_1 = require("jest-preset-stylelint");
26
+ const stylelint_test_rule_node_1 = require("stylelint-test-rule-node");
27
27
  const _1 = __importStar(require("."));
28
- (0, jest_preset_stylelint_1.getTestRule)()({
28
+ (0, stylelint_test_rule_node_1.testRule)({
29
29
  plugins: ["./dist/index.js"],
30
30
  ruleName: _1.default.ruleName,
31
31
  config: true,
package/dist/tokens.json CHANGED
@@ -174,7 +174,6 @@
174
174
  },
175
175
  "link": {
176
176
  "--ac-link-text": "--a-text-action",
177
- "--ac-link-hover-text": "--a-text-action-hover",
178
177
  "--ac-link-focus-text": "--a-text-on-action",
179
178
  "--ac-link-focus-bg": "--a-border-focus",
180
179
  "--ac-link-focus-border": "--a-border-focus",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/aksel-stylelint",
3
- "version": "6.0.0",
3
+ "version": "6.1.1",
4
4
  "author": "Aksel | NAV",
5
5
  "homepage": "https://aksel.nav.no/grunnleggende/kode/stylelint",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "/dist"
27
27
  ],
28
28
  "scripts": {
29
- "test": "jest",
29
+ "test": "yarn build && node --import tsx --test ./dist/**/*.test.js",
30
30
  "copy-css": "node -e \"require('fs').copyFileSync('../core/css/dist/index.css','dist/index.css')\"",
31
31
  "copy-tokens": "node -e \"require('fs').copyFileSync('../core/css/tokens.json','dist/tokens.json')\"",
32
32
  "copy": "yarn copy-css && yarn copy-tokens",
@@ -35,26 +35,14 @@
35
35
  "dev": "yarn watch:lint"
36
36
  },
37
37
  "devDependencies": {
38
- "@navikt/ds-css": "^6.0.0",
39
- "@navikt/ds-tokens": "^6.0.0",
40
- "@types/jest": "^29.0.0",
38
+ "@navikt/ds-css": "^6.1.1",
39
+ "@navikt/ds-tokens": "^6.1.1",
41
40
  "concurrently": "7.2.1",
42
- "copyfiles": "2.4.1",
43
- "jest": "^29.0.0",
44
- "jest-preset-stylelint": "^6.1.0",
45
41
  "postcss-selector-parser": "^6.0.13",
46
42
  "postcss-value-parser": "^4.2.0",
47
43
  "stylelint": "^14.8.5",
48
- "ts-jest": "^29.0.0",
44
+ "stylelint-test-rule-node": "^0.2.1",
45
+ "tsx": "^4.7.1",
49
46
  "typescript": "^5.1.6"
50
- },
51
- "jest": {
52
- "preset": "jest-preset-stylelint",
53
- "testMatch": [
54
- "**/*.test.ts"
55
- ],
56
- "transform": {
57
- "^.+\\.ts?$": "ts-jest"
58
- }
59
47
  }
60
48
  }