@norges-domstoler/dds-components 0.0.0-dev-20250725135721 → 0.0.0-dev-20250731112157

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
@@ -612,185 +612,6 @@
612
612
  transform: rotate(0) translateY(0);
613
613
  }
614
614
 
615
- /* src/components/helpers/CharCounter/CharCounter.module.css */
616
- :where(.CharCounter_container) {
617
- margin-left: auto;
618
- }
619
-
620
- /* src/components/Typography/Typography/TextOverflowEllipsis/TextOverflowEllipsis.module.css */
621
- .TextOverflowEllipsis_wrapper {
622
- max-width: 100%;
623
- }
624
- .TextOverflowEllipsis_inner {
625
- white-space: nowrap;
626
- overflow: hidden;
627
- text-overflow: ellipsis;
628
- }
629
-
630
- /* src/components/Typography/Typography/Typography.module.css */
631
- .Typography_container {
632
- -webkit-user-select: text;
633
- -moz-user-select: text;
634
- user-select: text;
635
- }
636
-
637
- /* src/components/helpers/styling/focus.module.css */
638
- .focus_focused,
639
- .focus_focusable:focus-visible,
640
- .focus_focusable-focus:focus,
641
- .focus_focusable-within:focus-within,
642
- .focus_has-focusable-input:has(input:focus-visible),
643
- .focus_focusable-sibling:focus-visible + .focus_focus-styled-sibling {
644
- outline: var(--dds-focus-outline);
645
- outline-offset: var(--dds-focus-outline-offset);
646
- box-shadow: var(--dds-focus-box-shadow);
647
- }
648
- .focus_focusable--inset:focus-visible {
649
- outline: var(--dds-focus-outline);
650
- outline-offset: var(--dds-focus-outline-inset);
651
- box-shadow: var(--dds-focus-box-shadow);
652
- }
653
-
654
- /* src/components/Icon/Icon.module.css */
655
- .Icon_svg {
656
- display: inline-block;
657
- transition: fill 0.2s;
658
- flex-shrink: 0;
659
- }
660
-
661
- /* src/components/Typography/Label/Label.module.css */
662
- .Label_read-only {
663
- display: flex;
664
- }
665
- .Label_read-only__icon {
666
- align-self: center;
667
- flex-shrink: 0;
668
- margin-inline-end: var(--dds-spacing-x0-125);
669
- width: 1.25em;
670
- height: 1.25em;
671
- }
672
-
673
- /* src/components/helpers/Input/Input.module.css */
674
- .Input_container {
675
- position: relative;
676
- }
677
- .Input_input-group {
678
- position: relative;
679
- }
680
- :where(.Input_input) {
681
- position: relative;
682
- color: var(--dds-color-text-default);
683
- border: 1px solid var(--dds-color-border-default);
684
- background-color: var(--dds-color-surface-default);
685
- padding: var(--dds-spacing-x0-75) var(--dds-spacing-x1) var(--dds-spacing-x0-75) var(--dds-spacing-x0-75);
686
- border-radius: var(--dds-border-radius-input);
687
- margin: 0;
688
- box-sizing: border-box;
689
- box-shadow: none;
690
- @media (prefers-reduced-motion: no-preference) {
691
- transition:
692
- box-shadow 0.2s,
693
- border-color 0.2s,
694
- background-color 0.2s,
695
- var(--dds-focus-transition);
696
- }
697
- &[type=text],
698
- &[type=password],
699
- &[type=number],
700
- &[type=tel],
701
- &[type=date],
702
- &[type=url],
703
- &[type=email],
704
- &[type=search],
705
- &[type=datetime-local] {
706
- -webkit-appearance: none;
707
- }
708
- &:hover:enabled:-moz-read-write:not(:focus-visible):not(.Input_disabled):not(.Input_read-only) {
709
- border-color: var(--dds-color-border-action-hover);
710
- box-shadow: 0 0 0 1px var(--dds-color-border-action-hover);
711
- }
712
- &:hover:enabled:read-write:not(:focus-visible):not(.Input_disabled):not(.Input_read-only) {
713
- border-color: var(--dds-color-border-action-hover);
714
- box-shadow: 0 0 0 1px var(--dds-color-border-action-hover);
715
- }
716
- }
717
- :where(.Input_input--stateful) {
718
- -webkit-appearance: textfield;
719
- &:enabled:-moz-read-only {
720
- box-shadow: none;
721
- border: 1px solid var(--dds-color-border-default);
722
- background-color: var(--dds-color-surface-field-disabled);
723
- color: var(--dds-color-text-medium);
724
- cursor: default;
725
- }
726
- &:not(.Input_disabled).Input_read-only,
727
- &:enabled:read-only {
728
- box-shadow: none;
729
- border: 1px solid var(--dds-color-border-default);
730
- background-color: var(--dds-color-surface-field-disabled);
731
- color: var(--dds-color-text-medium);
732
- cursor: default;
733
- }
734
- &.Input_disabled,
735
- &:disabled {
736
- box-shadow: none;
737
- border: 1px solid var(--dds-color-border-subtle);
738
- background-color: var(--dds-color-surface-field-disabled);
739
- color: var(--dds-color-text-subtle);
740
- cursor: not-allowed;
741
- }
742
- }
743
- :where(.Input_input--hover:hover) {
744
- border-color: var(--dds-color-border-action-hover);
745
- box-shadow: 0 0 0 1px var(--dds-color-border-action-hover);
746
- }
747
- :where(.Input_input--stateful-danger) {
748
- border-color: var(--dds-color-border-danger);
749
- box-shadow: 0 0 0 1px var(--dds-color-border-danger);
750
- &:hover:enabled:-moz-read-write:not(:focus-within) {
751
- border-color: var(--dds-color-border-danger);
752
- box-shadow: 0 0 0 1px var(--dds-color-border-danger);
753
- }
754
- &:not(.Input_disabled):hover:not(:focus-within),
755
- &:hover:enabled:read-write:not(:focus-within) {
756
- border-color: var(--dds-color-border-danger);
757
- box-shadow: 0 0 0 1px var(--dds-color-border-danger);
758
- }
759
- &:focus-within:enabled:-moz-read-write,
760
- &:hover:focus-within:enabled:-moz-read-write,
761
- &:active:enabled:-moz-read-write {
762
- border-color: 1px solid var(--dds-color-border-default);
763
- }
764
- &:not(.Input_disabled):focus-within,
765
- &:focus-within:enabled:read-write,
766
- &:hover:focus-within:enabled:read-write,
767
- &:active:enabled:read-write {
768
- border-color: 1px solid var(--dds-color-border-default);
769
- }
770
- }
771
- :where(.Input_input--medium) {
772
- padding: var(--dds-spacing-x0-75);
773
- }
774
- :where(.Input_input--small) {
775
- padding: var(--dds-spacing-x0-5) var(--dds-spacing-x0-75);
776
- }
777
- :where(.Input_input--xsmall) {
778
- padding: var(--dds-spacing-x0-25) var(--dds-spacing-x0-5);
779
- }
780
- :where(.Input_input--with-affix) {
781
- gap: var(--dds-spacing-x1);
782
- }
783
- :where(.Input_label) {
784
- display: block;
785
- }
786
- :where(.Input_input-group__absolute-element) {
787
- position: absolute;
788
- top: 50%;
789
- transform: translate(0, -50%);
790
- z-index: var(--dds-zindex-absolute-element);
791
- color: var(--dds-color-icon-default);
792
- }
793
-
794
615
  /* src/components/layout/common/layout.module.css */
795
616
  .layout_dds-p {
796
617
  --dds-r-p: var(--dds-r-xs-p);
@@ -1629,6 +1450,13 @@
1629
1450
  border-radius: 0;
1630
1451
  }
1631
1452
 
1453
+ /* src/components/Icon/Icon.module.css */
1454
+ .Icon_svg {
1455
+ display: inline-block;
1456
+ transition: fill 0.2s;
1457
+ flex-shrink: 0;
1458
+ }
1459
+
1632
1460
  /* src/components/ThemeProvider/ThemeProvider.module.css */
1633
1461
  .ThemeProvider_global-variables {
1634
1462
  --dds-color-text-body: var(--dds-color-text-default);
@@ -1723,6 +1551,52 @@
1723
1551
  display: none;
1724
1552
  }
1725
1553
 
1554
+ /* src/components/helpers/styling/focus.module.css */
1555
+ .focus_focused,
1556
+ .focus_focusable:focus-visible,
1557
+ .focus_focusable-focus:focus,
1558
+ .focus_focusable-within:focus-within,
1559
+ .focus_has-focusable-input:has(input:focus-visible),
1560
+ .focus_focusable-sibling:focus-visible + .focus_focus-styled-sibling {
1561
+ outline: var(--dds-focus-outline);
1562
+ outline-offset: var(--dds-focus-outline-offset);
1563
+ box-shadow: var(--dds-focus-box-shadow);
1564
+ }
1565
+ .focus_focusable--inset:focus-visible {
1566
+ outline: var(--dds-focus-outline);
1567
+ outline-offset: var(--dds-focus-outline-inset);
1568
+ box-shadow: var(--dds-focus-box-shadow);
1569
+ }
1570
+
1571
+ /* src/components/Typography/Typography/TextOverflowEllipsis/TextOverflowEllipsis.module.css */
1572
+ .TextOverflowEllipsis_wrapper {
1573
+ max-width: 100%;
1574
+ }
1575
+ .TextOverflowEllipsis_inner {
1576
+ white-space: nowrap;
1577
+ overflow: hidden;
1578
+ text-overflow: ellipsis;
1579
+ }
1580
+
1581
+ /* src/components/Typography/Typography/Typography.module.css */
1582
+ .Typography_container {
1583
+ -webkit-user-select: text;
1584
+ -moz-user-select: text;
1585
+ user-select: text;
1586
+ }
1587
+
1588
+ /* src/components/Typography/Label/Label.module.css */
1589
+ .Label_read-only {
1590
+ display: flex;
1591
+ }
1592
+ .Label_read-only__icon {
1593
+ align-self: center;
1594
+ flex-shrink: 0;
1595
+ margin-inline-end: var(--dds-spacing-x0-125);
1596
+ width: 1.25em;
1597
+ height: 1.25em;
1598
+ }
1599
+
1726
1600
  /* src/components/BackLink/BackLink.module.css */
1727
1601
  .BackLink_icon {
1728
1602
  display: inline;
@@ -2503,6 +2377,127 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2503
2377
  text-decoration: underline line-through;
2504
2378
  }
2505
2379
 
2380
+ /* src/components/helpers/Input/Input.module.css */
2381
+ .Input_container {
2382
+ position: relative;
2383
+ }
2384
+ .Input_input-group {
2385
+ position: relative;
2386
+ }
2387
+ :where(.Input_input) {
2388
+ position: relative;
2389
+ color: var(--dds-color-text-default);
2390
+ border: 1px solid var(--dds-color-border-default);
2391
+ background-color: var(--dds-color-surface-default);
2392
+ padding: var(--dds-spacing-x0-75) var(--dds-spacing-x1) var(--dds-spacing-x0-75) var(--dds-spacing-x0-75);
2393
+ border-radius: var(--dds-border-radius-input);
2394
+ margin: 0;
2395
+ box-sizing: border-box;
2396
+ box-shadow: none;
2397
+ @media (prefers-reduced-motion: no-preference) {
2398
+ transition:
2399
+ box-shadow 0.2s,
2400
+ border-color 0.2s,
2401
+ background-color 0.2s,
2402
+ var(--dds-focus-transition);
2403
+ }
2404
+ &[type=text],
2405
+ &[type=password],
2406
+ &[type=number],
2407
+ &[type=tel],
2408
+ &[type=date],
2409
+ &[type=url],
2410
+ &[type=email],
2411
+ &[type=search],
2412
+ &[type=datetime-local] {
2413
+ -webkit-appearance: none;
2414
+ }
2415
+ &:hover:enabled:-moz-read-write:not(:focus-visible):not(.Input_disabled):not(.Input_read-only) {
2416
+ border-color: var(--dds-color-border-action-hover);
2417
+ box-shadow: 0 0 0 1px var(--dds-color-border-action-hover);
2418
+ }
2419
+ &:hover:enabled:read-write:not(:focus-visible):not(.Input_disabled):not(.Input_read-only) {
2420
+ border-color: var(--dds-color-border-action-hover);
2421
+ box-shadow: 0 0 0 1px var(--dds-color-border-action-hover);
2422
+ }
2423
+ }
2424
+ :where(.Input_input--stateful) {
2425
+ -webkit-appearance: textfield;
2426
+ &:enabled:-moz-read-only {
2427
+ box-shadow: none;
2428
+ border: 1px solid var(--dds-color-border-default);
2429
+ background-color: var(--dds-color-surface-field-disabled);
2430
+ color: var(--dds-color-text-medium);
2431
+ cursor: default;
2432
+ }
2433
+ &:not(.Input_disabled).Input_read-only,
2434
+ &:enabled:read-only {
2435
+ box-shadow: none;
2436
+ border: 1px solid var(--dds-color-border-default);
2437
+ background-color: var(--dds-color-surface-field-disabled);
2438
+ color: var(--dds-color-text-medium);
2439
+ cursor: default;
2440
+ }
2441
+ &.Input_disabled,
2442
+ &:disabled {
2443
+ box-shadow: none;
2444
+ border: 1px solid var(--dds-color-border-subtle);
2445
+ background-color: var(--dds-color-surface-field-disabled);
2446
+ color: var(--dds-color-text-subtle);
2447
+ cursor: not-allowed;
2448
+ }
2449
+ }
2450
+ :where(.Input_input--hover:hover) {
2451
+ border-color: var(--dds-color-border-action-hover);
2452
+ box-shadow: 0 0 0 1px var(--dds-color-border-action-hover);
2453
+ }
2454
+ :where(.Input_input--stateful-danger) {
2455
+ border-color: var(--dds-color-border-danger);
2456
+ box-shadow: 0 0 0 1px var(--dds-color-border-danger);
2457
+ &:hover:enabled:-moz-read-write:not(:focus-within) {
2458
+ border-color: var(--dds-color-border-danger);
2459
+ box-shadow: 0 0 0 1px var(--dds-color-border-danger);
2460
+ }
2461
+ &:not(.Input_disabled):hover:not(:focus-within),
2462
+ &:hover:enabled:read-write:not(:focus-within) {
2463
+ border-color: var(--dds-color-border-danger);
2464
+ box-shadow: 0 0 0 1px var(--dds-color-border-danger);
2465
+ }
2466
+ &:focus-within:enabled:-moz-read-write,
2467
+ &:hover:focus-within:enabled:-moz-read-write,
2468
+ &:active:enabled:-moz-read-write {
2469
+ border-color: 1px solid var(--dds-color-border-default);
2470
+ }
2471
+ &:not(.Input_disabled):focus-within,
2472
+ &:focus-within:enabled:read-write,
2473
+ &:hover:focus-within:enabled:read-write,
2474
+ &:active:enabled:read-write {
2475
+ border-color: 1px solid var(--dds-color-border-default);
2476
+ }
2477
+ }
2478
+ :where(.Input_input--medium) {
2479
+ padding: var(--dds-spacing-x0-75);
2480
+ }
2481
+ :where(.Input_input--small) {
2482
+ padding: var(--dds-spacing-x0-5) var(--dds-spacing-x0-75);
2483
+ }
2484
+ :where(.Input_input--xsmall) {
2485
+ padding: var(--dds-spacing-x0-25) var(--dds-spacing-x0-5);
2486
+ }
2487
+ :where(.Input_input--with-affix) {
2488
+ gap: var(--dds-spacing-x1);
2489
+ }
2490
+ :where(.Input_label) {
2491
+ display: block;
2492
+ }
2493
+ :where(.Input_input-group__absolute-element) {
2494
+ position: absolute;
2495
+ top: 50%;
2496
+ transform: translate(0, -50%);
2497
+ z-index: var(--dds-zindex-absolute-element);
2498
+ color: var(--dds-color-icon-default);
2499
+ }
2500
+
2506
2501
  /* src/components/DescriptionList/DescriptionList.module.css */
2507
2502
  .DescriptionList_list {
2508
2503
  & > dt:first-of-type {
@@ -2767,6 +2762,11 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
2767
2762
  padding-bottom: var(--dds-spacing-x0-5);
2768
2763
  }
2769
2764
 
2765
+ /* src/components/helpers/CharCounter/CharCounter.module.css */
2766
+ :where(.CharCounter_container) {
2767
+ margin-left: auto;
2768
+ }
2769
+
2770
2770
  /* src/components/helpers/InlineIconButton/InlineIconButton.module.css */
2771
2771
  .InlineIconButton_button {
2772
2772
  display: inline-flex;