@fremtind/jokul 4.7.1 → 4.7.3

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 (45) hide show
  1. package/build/build-stats.html +1 -1
  2. package/build/cjs/components/text-area/BaseTextArea.cjs +1 -1
  3. package/build/cjs/components/text-area/BaseTextArea.cjs.map +1 -1
  4. package/build/es/components/text-area/BaseTextArea.js +1 -1
  5. package/build/es/components/text-area/BaseTextArea.js.map +1 -1
  6. package/package.json +1 -1
  7. package/styles/components/button/button.css +7 -2
  8. package/styles/components/button/button.min.css +1 -1
  9. package/styles/components/button/button.scss +9 -3
  10. package/styles/components/countdown/countdown.css +2 -2
  11. package/styles/components/countdown/countdown.min.css +1 -1
  12. package/styles/components/expander/expandable.css +8 -3
  13. package/styles/components/expander/expandable.min.css +1 -1
  14. package/styles/components/expander/expandable.scss +7 -5
  15. package/styles/components/feedback/feedback.css +2 -2
  16. package/styles/components/feedback/feedback.min.css +1 -1
  17. package/styles/components/file-input/file-input.css +16 -11
  18. package/styles/components/file-input/file-input.min.css +1 -1
  19. package/styles/components/input-group/input-group.css +2 -2
  20. package/styles/components/input-group/input-group.min.css +1 -1
  21. package/styles/components/loader/loader.css +6 -6
  22. package/styles/components/loader/loader.min.css +1 -1
  23. package/styles/components/loader/skeleton-loader.css +3 -3
  24. package/styles/components/loader/skeleton-loader.min.css +1 -1
  25. package/styles/components/message/message.css +2 -2
  26. package/styles/components/message/message.min.css +1 -1
  27. package/styles/components/modal/_layout.scss +2 -0
  28. package/styles/components/modal/modal.css +1 -0
  29. package/styles/components/modal/modal.min.css +1 -1
  30. package/styles/components/popover/popover.css +1 -1
  31. package/styles/components/popover/popover.min.css +1 -1
  32. package/styles/components/popover/popover.scss +1 -1
  33. package/styles/components/progress-bar/progress-bar.css +1 -1
  34. package/styles/components/progress-bar/progress-bar.min.css +1 -1
  35. package/styles/components/segmented-control/segmented-control.css +2 -2
  36. package/styles/components/segmented-control/segmented-control.min.css +1 -1
  37. package/styles/components/select/select.css +1 -1
  38. package/styles/components/select/select.min.css +1 -1
  39. package/styles/components/select/select.scss +5 -3
  40. package/styles/components/system-message/system-message.css +2 -2
  41. package/styles/components/system-message/system-message.min.css +1 -1
  42. package/styles/components/toast/toast.css +4 -4
  43. package/styles/components/toast/toast.min.css +1 -1
  44. package/styles/styles.css +42 -31
  45. package/styles/styles.min.css +1 -1
package/styles/styles.css CHANGED
@@ -481,7 +481,7 @@
481
481
  --color: var(--jkl-color-text-default);
482
482
  }
483
483
  .jkl-form-support-label--error .jkl-form-support-label__icon, .jkl-form-support-label--warning .jkl-form-support-label__icon, .jkl-form-support-label--success .jkl-form-support-label__icon {
484
- animation: 400ms cubic-bezier(0, 0, 0.3, 1) 250ms jkl-support-icon-entrance-uuo87ie forwards;
484
+ animation: 400ms cubic-bezier(0, 0, 0.3, 1) 250ms jkl-support-icon-entrance-ummpbqq forwards;
485
485
  }
486
486
  .jkl-form-support-label--sr-only {
487
487
  border: 0 !important;
@@ -547,7 +547,7 @@
547
547
  .jkl-label:has(+ .jkl-input-group-description) {
548
548
  margin-block-end: var(--jkl-spacing-4);
549
549
  }
550
- @keyframes jkl-support-icon-entrance-uuo87ie {
550
+ @keyframes jkl-support-icon-entrance-ummpbqq {
551
551
  0% {
552
552
  margin-right: 0;
553
553
  opacity: 0;
@@ -766,6 +766,7 @@
766
766
  --jkl-button-padding-icon-button: var(--jkl-unit-10);
767
767
  --jkl-button-tertiary-padding-icon: var(--jkl-unit-05);
768
768
  --jkl-button-text-ink-offset: 0.1em;
769
+ --button-min-width: 9ch;
769
770
  --jkl-icon-weight: var(--jkl-icon-weight-bold);
770
771
  --text-color: var(--jkl-color-text-default);
771
772
  --background-color: transparent;
@@ -796,7 +797,10 @@
796
797
  transition-property: background-color;
797
798
  }
798
799
  .jkl-button:has(.jkl-button__text) {
799
- min-width: 9.5ch;
800
+ min-width: var(--button-min-width);
801
+ }
802
+ .jkl-button:has(.jkl-button__text):has(.jkl-icon) {
803
+ min-width: initial;
800
804
  }
801
805
  .jkl-button:has(.jkl-icon:first-child) {
802
806
  padding-inline-start: var(--jkl-button-padding-icon);
@@ -815,6 +819,7 @@
815
819
  display: flex;
816
820
  flex-direction: row;
817
821
  align-items: center;
822
+ justify-content: center;
818
823
  gap: calc(var(--jkl-unit-base) * 0.25);
819
824
  pointer-events: none;
820
825
  }
@@ -831,7 +836,7 @@
831
836
  }
832
837
  .jkl-button__text {
833
838
  display: block;
834
- width: 100%;
839
+ min-width: 0;
835
840
  max-width: 100%;
836
841
  padding-block-start: var(--jkl-button-text-ink-offset);
837
842
  margin-block-start: calc(var(--jkl-button-text-ink-offset) * -1);
@@ -904,22 +909,22 @@
904
909
  animation: 2500ms linear infinite;
905
910
  }
906
911
  .jkl-loader__dot--left {
907
- animation-name: jkl-loader-left-spin-uuo87ix;
912
+ animation-name: jkl-loader-left-spin-ummpbqw;
908
913
  margin-right: calc(var(--jkl-loader-spacing) * 0.9);
909
914
  }
910
915
  .jkl-loader__dot--middle {
911
- animation-name: jkl-loader-middle-spin-uuo87jb;
916
+ animation-name: jkl-loader-middle-spin-ummpbrr;
912
917
  margin-right: var(--jkl-loader-spacing);
913
918
  }
914
919
  .jkl-loader__dot--right {
915
- animation-name: jkl-loader-right-spin-uuo87js;
920
+ animation-name: jkl-loader-right-spin-ummpbsg;
916
921
  }
917
922
  @media screen and (forced-colors: active) {
918
923
  .jkl-loader__dot {
919
924
  background-color: CanvasText;
920
925
  }
921
926
  }
922
- @keyframes jkl-loader-left-spin-uuo87ix {
927
+ @keyframes jkl-loader-left-spin-ummpbqw {
923
928
  0% {
924
929
  transform: rotate(0) scale(0);
925
930
  }
@@ -933,7 +938,7 @@
933
938
  transform: rotate(180deg) scale(0);
934
939
  }
935
940
  }
936
- @keyframes jkl-loader-middle-spin-uuo87jb {
941
+ @keyframes jkl-loader-middle-spin-ummpbrr {
937
942
  0% {
938
943
  transform: rotate(20deg) scale(0);
939
944
  }
@@ -950,7 +955,7 @@
950
955
  transform: rotate(200deg) scale(0);
951
956
  }
952
957
  }
953
- @keyframes jkl-loader-right-spin-uuo87js {
958
+ @keyframes jkl-loader-right-spin-ummpbsg {
954
959
  0% {
955
960
  transform: rotate(40deg) scale(0);
956
961
  }
@@ -990,7 +995,7 @@
990
995
  @media screen and (forced-colors: active) {
991
996
  .jkl-skeleton-element {
992
997
  border: 1px solid CanvasText;
993
- animation: 2s ease infinite jkl-blink-uuo87ju;
998
+ animation: 2s ease infinite jkl-blink-ummpbt7;
994
999
  }
995
1000
  }
996
1001
  .jkl-skeleton-input {
@@ -1038,10 +1043,10 @@
1038
1043
  }
1039
1044
  @media screen and (forced-colors: active) {
1040
1045
  .jkl-skeleton-table {
1041
- animation: 2s ease-in-out infinite jkl-blink-uuo87ju;
1046
+ animation: 2s ease-in-out infinite jkl-blink-ummpbt7;
1042
1047
  }
1043
1048
  }
1044
- @keyframes jkl-blink-uuo87ju {
1049
+ @keyframes jkl-blink-ummpbt7 {
1045
1050
  0% {
1046
1051
  opacity: 1;
1047
1052
  }
@@ -1950,6 +1955,7 @@
1950
1955
  inset: 0;
1951
1956
  }
1952
1957
  .jkl-modal-container {
1958
+ --jkl-floating-z-index: 10000;
1953
1959
  z-index: 9000;
1954
1960
  display: flex;
1955
1961
  align-items: center;
@@ -2145,10 +2151,10 @@
2145
2151
  }
2146
2152
  }
2147
2153
  .jkl-countdown__tracker {
2148
- animation: jkl-downcount-uuo87ky var(--duration) linear forwards;
2154
+ animation: jkl-downcount-ummpbu2 var(--duration) linear forwards;
2149
2155
  animation-play-state: var(--play-state, running);
2150
2156
  }
2151
- @keyframes jkl-downcount-uuo87ky {
2157
+ @keyframes jkl-downcount-ummpbu2 {
2152
2158
  from {
2153
2159
  width: 100%;
2154
2160
  }
@@ -2433,7 +2439,7 @@
2433
2439
  }
2434
2440
  .jkl-popover {
2435
2441
  padding: var(--popover-padding, 0);
2436
- z-index: 10000;
2442
+ z-index: var(--jkl-floating-z-index, 10000);
2437
2443
  box-shadow: 0 4px 20px 0 var(--jkl-datepicker-box-shadow);
2438
2444
  background-color: var(--jkl-color-background-container-high);
2439
2445
  border-radius: var(--jkl-border-radius-s);
@@ -2513,12 +2519,16 @@
2513
2519
  @layer jokul.components {
2514
2520
  .jkl-expandable {
2515
2521
  background-color: var(--jkl-color-background-container-low);
2516
- border: 1px solid transparent;
2517
2522
  border-radius: var(--border-radius);
2518
2523
  box-sizing: border-box;
2519
2524
  width: 100%;
2520
2525
  overflow: hidden;
2521
2526
  }
2527
+ @media screen and (forced-colors: active) {
2528
+ .jkl-expandable {
2529
+ border: 1px solid CanvasText;
2530
+ }
2531
+ }
2522
2532
  .jkl-expandable__content[data-expanded=true] {
2523
2533
  height: auto;
2524
2534
  }
@@ -2532,13 +2542,13 @@
2532
2542
  padding: var(--jkl-unit-20);
2533
2543
  }
2534
2544
  .jkl-expandable--stroke {
2535
- border-color: var(--jkl-color-border-separator);
2545
+ border: 1px solid var(--jkl-color-border-separator);
2536
2546
  background-color: transparent;
2537
2547
  border-radius: 0;
2538
2548
  border-radius: var(--border-top-left-radius) var(--border-top-right-radius) var(--border-bottom-right-radius) var(--border-bottom-left-radius);
2539
2549
  }
2540
2550
  .jkl-expandable__wrapper {
2541
- --border-radius: 0.25rem;
2551
+ --border-radius: var(--jkl-border-radius-m);
2542
2552
  --outline-offset: 3px;
2543
2553
  --stroke-outline-offset: 3px;
2544
2554
  --border-top-left-radius: var(--border-radius);
@@ -2593,6 +2603,7 @@
2593
2603
  text-align: left;
2594
2604
  cursor: pointer;
2595
2605
  color: var(--jkl-color);
2606
+ -webkit-tap-highlight-color: transparent;
2596
2607
  display: flex;
2597
2608
  gap: 0.5rem;
2598
2609
  align-items: center;
@@ -2662,12 +2673,12 @@
2662
2673
  --jkl-icon-size: 1.2em;
2663
2674
  }
2664
2675
  .jkl-feedback__fade-in {
2665
- animation: jkl-show-uuo87l5 0.25s ease-out;
2676
+ animation: jkl-show-ummpbuc 0.25s ease-out;
2666
2677
  }
2667
2678
  .jkl-feedback__buttons {
2668
2679
  display: flex;
2669
2680
  }
2670
- @keyframes jkl-show-uuo87l5 {
2681
+ @keyframes jkl-show-ummpbuc {
2671
2682
  from {
2672
2683
  transform: translate3d(0, 0.5rem, 0);
2673
2684
  opacity: 0;
@@ -2882,7 +2893,7 @@
2882
2893
  --background-color: var(--jkl-color-background-alert-success);
2883
2894
  }
2884
2895
  .jkl-message--dismissed {
2885
- animation: jkl-dismiss-uuo87lo 400ms ease-in-out forwards;
2896
+ animation: jkl-dismiss-ummpbuj 400ms ease-in-out forwards;
2886
2897
  transition: visibility 0ms 400ms;
2887
2898
  visibility: hidden;
2888
2899
  }
@@ -2904,7 +2915,7 @@
2904
2915
  .jkl-form-error-message {
2905
2916
  padding-bottom: calc(var(--jkl-unit-base) * 5);
2906
2917
  }
2907
- @keyframes jkl-dismiss-uuo87lo {
2918
+ @keyframes jkl-dismiss-ummpbuj {
2908
2919
  from {
2909
2920
  opacity: 1;
2910
2921
  transform: translate3d(0, 0, 0);
@@ -4493,7 +4504,7 @@
4493
4504
  background: none;
4494
4505
  box-shadow: none;
4495
4506
  border-radius: 0;
4496
- z-index: 7000;
4507
+ z-index: var(--jkl-floating-z-index, 7000);
4497
4508
  }
4498
4509
  @media (prefers-reduced-motion: no-preference) {
4499
4510
  .jkl-select__options-menu {
@@ -4580,7 +4591,7 @@
4580
4591
  transition-timing-function: ease;
4581
4592
  transition-duration: 150ms;
4582
4593
  }
4583
- @keyframes jkl-downcount-uuo87lr {
4594
+ @keyframes jkl-downcount-ummpbvh {
4584
4595
  from {
4585
4596
  width: 100%;
4586
4597
  }
@@ -5084,7 +5095,7 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-select--beta s
5084
5095
  margin-bottom: 0;
5085
5096
  }
5086
5097
  .jkl-system-message--dismissed {
5087
- animation: jkl-dismiss-uuo87mz 400ms forwards;
5098
+ animation: jkl-dismiss-ummpbw7 400ms forwards;
5088
5099
  transition: block 400ms 400ms;
5089
5100
  }
5090
5101
  .jkl-system-message--info {
@@ -5114,7 +5125,7 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-select--beta s
5114
5125
  border-width: 4px;
5115
5126
  }
5116
5127
  }
5117
- @keyframes jkl-dismiss-uuo87mz {
5128
+ @keyframes jkl-dismiss-ummpbw7 {
5118
5129
  from {
5119
5130
  opacity: 1;
5120
5131
  transform: translateY(0);
@@ -5951,12 +5962,12 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-select--beta s
5951
5962
  }
5952
5963
  .jkl-toast[data-animation=entering],
5953
5964
  .jkl-toast[data-animation=queued] {
5954
- animation: jkl-entering-uuo87n4 200ms ease-out forwards;
5965
+ animation: jkl-entering-ummpbwy 200ms ease-out forwards;
5955
5966
  }
5956
5967
  .jkl-toast[data-animation=exiting] {
5957
- animation: jkl-exiting-uuo87nj 150ms ease-in forwards;
5968
+ animation: jkl-exiting-ummpbxb 150ms ease-in forwards;
5958
5969
  }
5959
- @keyframes jkl-entering-uuo87n4 {
5970
+ @keyframes jkl-entering-ummpbwy {
5960
5971
  from {
5961
5972
  opacity: 0;
5962
5973
  transform: translate3d(0, 50%, 0);
@@ -5966,7 +5977,7 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-select--beta s
5966
5977
  transform: translate3d(0, 0, 0);
5967
5978
  }
5968
5979
  }
5969
- @keyframes jkl-exiting-uuo87nj {
5980
+ @keyframes jkl-exiting-ummpbxb {
5970
5981
  from {
5971
5982
  opacity: 1;
5972
5983
  transform: translate3d(0, 0, 0);