@navikt/aksel-stylelint 7.2.1 → 7.3.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.
Files changed (2) hide show
  1. package/dist/index.css +199 -2
  2. package/package.json +5 -5
package/dist/index.css CHANGED
@@ -3,7 +3,7 @@
3
3
  * Do not edit directly, this file was auto-generated.
4
4
  */
5
5
  :root, :host {
6
- --a-version: "7.2.1";
6
+ --a-version: "7.3.0";
7
7
  --a-spacing-1-alt: 0.375rem;
8
8
  --a-spacing-05: 0.125rem;
9
9
  --a-spacing-32: 8rem;
@@ -771,8 +771,9 @@ button,
771
771
  [type="submit"] {
772
772
  -webkit-appearance: button;
773
773
  }
774
+ /* Make elements with the HTML hidden attribute stay hidden by default. */
774
775
  [hidden] {
775
- display: none;
776
+ display: none !important;
776
777
  }
777
778
  /* https://web.dev/prefers-reduced-motion/ */
778
779
  @media (prefers-reduced-motion: reduce) {
@@ -2389,6 +2390,201 @@ body,
2389
2390
  color: graytext;
2390
2391
  }
2391
2392
  }
2393
+ .navds-action-menu__content {
2394
+ overflow: hidden;
2395
+ box-shadow: var(--a-shadow-medium);
2396
+ border-radius: var(--a-border-radius-large);
2397
+ }
2398
+ /* stylelint-disable csstools/value-no-unknown-custom-properties */
2399
+ .navds-action-menu__content > .navds-action-menu__content-inner {
2400
+ --__ac-action-menu-content-p: var(--a-spacing-2);
2401
+ --__ac-action-menu-item-pr: var(--a-spacing-3);
2402
+ --__ac-action-menu-item-pl: var(--a-spacing-2);
2403
+ --__ac-action-menu-item-height: 2rem;
2404
+
2405
+ border-radius: var(--a-border-radius-large);
2406
+ background-color: var(--a-surface-default);
2407
+ min-width: 128px;
2408
+ max-width: min(95vw, 640px);
2409
+ transform-origin: var(--__ac-action-menu-content-transform-origin);
2410
+ animation-duration: 160ms;
2411
+ animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
2412
+ padding: var(--__ac-action-menu-content-p);
2413
+ overflow: auto;
2414
+ max-height: var(--__ac-action-menu-content-available-height);
2415
+ }
2416
+ .navds-action-menu__content:where([data-state="open"]):where([data-side="bottom"]) {
2417
+ animation-name: aksel-action-from-bottom, aksel-action-fade-in;
2418
+ }
2419
+ .navds-action-menu__content:where([data-state="open"]):where([data-side="top"]) {
2420
+ animation-name: aksel-action-from-top, aksel-action-fade-in;
2421
+ }
2422
+ .navds-action-menu__content:where([data-state="open"]):where([data-side="left"]) {
2423
+ animation-name: aksel-action-from-left, aksel-action-fade-in;
2424
+ }
2425
+ .navds-action-menu__content:where([data-state="open"]):where([data-side="right"]) {
2426
+ animation-name: aksel-action-from-right, aksel-action-fade-in;
2427
+ }
2428
+ @keyframes aksel-action-from-bottom {
2429
+ from {
2430
+ transform: translateY(-4px);
2431
+ }
2432
+
2433
+ to {
2434
+ transform: translateY(0);
2435
+ }
2436
+ }
2437
+ @keyframes aksel-action-from-top {
2438
+ from {
2439
+ transform: translateY(4px);
2440
+ }
2441
+
2442
+ to {
2443
+ transform: translateY(0);
2444
+ }
2445
+ }
2446
+ @keyframes aksel-action-from-left {
2447
+ from {
2448
+ transform: translateX(4px);
2449
+ }
2450
+
2451
+ to {
2452
+ transform: translateY(0);
2453
+ }
2454
+ }
2455
+ @keyframes aksel-action-from-right {
2456
+ from {
2457
+ transform: translateX(-4px);
2458
+ }
2459
+
2460
+ to {
2461
+ transform: translateY(0);
2462
+ }
2463
+ }
2464
+ @keyframes aksel-action-fade-in {
2465
+ from {
2466
+ opacity: 0.01;
2467
+ }
2468
+
2469
+ to {
2470
+ opacity: 1;
2471
+ }
2472
+ }
2473
+ .navds-action-menu__item {
2474
+ display: flex;
2475
+ align-items: center;
2476
+ gap: var(--a-spacing-2);
2477
+ min-height: var(--__ac-action-menu-item-height);
2478
+ cursor: default;
2479
+ border-radius: var(--a-border-radius-medium);
2480
+ position: relative;
2481
+ padding-left: var(--__ac-action-menu-item-pl);
2482
+ padding-right: var(--__ac-action-menu-item-pr);
2483
+ font-size: var(--a-font-size-medium);
2484
+ scroll-margin-block: var(--__ac-action-menu-content-p);
2485
+ line-height: 1.5;
2486
+ color: var(--a-text-default);
2487
+ text-decoration: none;
2488
+ }
2489
+ .navds-action-menu__item svg {
2490
+ flex-shrink: 0;
2491
+ }
2492
+ .navds-action-menu__item--has-icon {
2493
+ --__ac-action-menu-item-pl: var(--a-spacing-6);
2494
+ }
2495
+ .navds-action-menu__sub-trigger {
2496
+ --__ac-action-menu-item-pr: var(--a-spacing-05);
2497
+ }
2498
+ .navds-action-menu__item:focus {
2499
+ outline: none;
2500
+ background-color: var(--a-surface-action-subtle-hover);
2501
+ color: var(--a-text-default);
2502
+ }
2503
+ .navds-action-menu__item--danger {
2504
+ color: var(--a-text-danger);
2505
+ }
2506
+ .navds-action-menu__item--danger:focus {
2507
+ background-color: var(--a-surface-danger-subtle);
2508
+ }
2509
+ .navds-action-menu__marker {
2510
+ display: flex;
2511
+ align-items: center;
2512
+ gap: var(--a-spacing-1);
2513
+ }
2514
+ .navds-action-menu__marker--right {
2515
+ margin-left: auto;
2516
+ padding-left: var(--a-spacing-4);
2517
+ }
2518
+ .navds-action-menu__marker--left {
2519
+ position: absolute;
2520
+ left: 0;
2521
+ width: var(--__ac-action-menu-item-pl);
2522
+ display: inline-flex;
2523
+ justify-content: center;
2524
+ }
2525
+ .navds-action-menu__marker-icon svg {
2526
+ font-size: 18px;
2527
+ flex-shrink: 0;
2528
+ }
2529
+ .navds-action-menu__shortcut {
2530
+ background-color: var(--a-surface-neutral-subtle);
2531
+ color: var(--a-text-default);
2532
+ border-radius: var(--a-border-radius-small);
2533
+ padding: 0 var(--a-spacing-1);
2534
+ min-width: 1.125rem;
2535
+ height: 1.125rem;
2536
+ line-height: 1;
2537
+ display: inline-flex;
2538
+ align-items: center;
2539
+ justify-content: center;
2540
+ font-size: var(--a-font-size-small);
2541
+ }
2542
+ .navds-action-menu__label {
2543
+ display: flex;
2544
+ align-items: center;
2545
+ min-height: calc(var(--__ac-action-menu-item-height) - 6px);
2546
+ padding-right: var(--__ac-action-menu-item-pr);
2547
+ padding-left: var(--__ac-action-menu-item-pl);
2548
+ color: var(--a-text-subtle);
2549
+ border-radius: var(--a-border-radius-medium);
2550
+ user-select: none;
2551
+ cursor: default;
2552
+ font-size: var(--a-font-size-small);
2553
+ }
2554
+ .navds-action-menu__divider {
2555
+ height: 1px;
2556
+ margin-block: var(--a-spacing-2);
2557
+ background-color: var(--a-border-divider);
2558
+ }
2559
+ .navds-action-menu__indicator {
2560
+ display: grid;
2561
+ place-content: center;
2562
+ }
2563
+ .navds-action-menu__indicator-icon {
2564
+ font-size: 14px;
2565
+ }
2566
+ .navds-action-menu__indicator-icon--unchecked,
2567
+ .navds-action-menu__indicator-icon--checked,
2568
+ .navds-action-menu__indicator-icon--indeterminate {
2569
+ display: none;
2570
+ }
2571
+ .navds-action-menu__indicator[data-state="unchecked"] .navds-action-menu__indicator-icon--unchecked {
2572
+ display: block;
2573
+ }
2574
+ .navds-action-menu__indicator:where([data-state="checked"]) .navds-action-menu__indicator-icon--checked {
2575
+ display: block;
2576
+ }
2577
+ .navds-action-menu__indicator:where([data-state="indeterminate"]) .navds-action-menu__indicator-icon--indeterminate {
2578
+ display: block;
2579
+ }
2580
+ .navds-action-menu__item:where([aria-disabled="true"]) {
2581
+ color: var(--a-text-subtle);
2582
+ opacity: 0.5;
2583
+ pointer-events: none;
2584
+ }
2585
+ .navds-action-menu__sub-trigger:where([data-state="open"]) {
2586
+ background-color: var(--a-surface-neutral-subtle);
2587
+ }
2392
2588
  .navds-expansioncard {
2393
2589
  --__ac-expansioncard-border-color: var(--ac-expansioncard-border-color, var(--a-border-default));
2394
2590
  --__ac-expansioncard-border-radius: var(--ac-expansioncard-border-radius, var(--a-border-radius-large));
@@ -7264,6 +7460,7 @@ _:future,
7264
7460
  }
7265
7461
  .navds-list__item-marker--icon {
7266
7462
  font-size: 1.5rem;
7463
+ justify-content: center;
7267
7464
  color: var(--ac-list-marker-icon-color, var(--ac-list-marker-color, var(--a-icon-default)));
7268
7465
  }
7269
7466
  .navds-box-bg {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/aksel-stylelint",
3
- "version": "7.2.1",
3
+ "version": "7.3.0",
4
4
  "author": "Aksel | NAV",
5
5
  "homepage": "https://aksel.nav.no/grunnleggende/kode/stylelint",
6
6
  "repository": {
@@ -35,14 +35,14 @@
35
35
  "dev": "yarn watch:lint"
36
36
  },
37
37
  "devDependencies": {
38
- "@navikt/ds-css": "^7.2.1",
39
- "@navikt/ds-tokens": "^7.2.1",
40
- "concurrently": "7.2.1",
38
+ "@navikt/ds-css": "^7.3.0",
39
+ "@navikt/ds-tokens": "^7.3.0",
40
+ "concurrently": "9.0.1",
41
41
  "postcss-selector-parser": "^6.0.13",
42
42
  "postcss-value-parser": "^4.2.0",
43
43
  "stylelint": "^14.8.5",
44
44
  "stylelint-test-rule-node": "^0.2.1",
45
45
  "tsx": "^4.7.1",
46
- "typescript": "^5.1.6"
46
+ "typescript": "5.5.4"
47
47
  }
48
48
  }