@fremtind/jokul 4.1.5 → 5.0.0-next.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/build/build-stats.html +1 -1
- package/build/cjs/components/help/Help.cjs +1 -1
- package/build/cjs/components/help/Help.cjs.map +1 -1
- package/build/cjs/components/help/Help.d.cts +1 -1
- package/build/cjs/components/help/index.cjs +1 -1
- package/build/cjs/components/help/index.d.cts +1 -1
- package/build/cjs/components/help/types.d.cts +4 -0
- package/build/cjs/components/link/Link.cjs +1 -1
- package/build/cjs/components/link/Link.cjs.map +1 -1
- package/build/cjs/components/link/Link.d.cts +2 -2
- package/build/cjs/components/link/types.d.cts +4 -1
- package/build/es/components/help/Help.d.ts +1 -1
- package/build/es/components/help/Help.js +1 -1
- package/build/es/components/help/Help.js.map +1 -1
- package/build/es/components/help/index.d.ts +1 -1
- package/build/es/components/help/index.js +1 -1
- package/build/es/components/help/types.d.ts +4 -0
- package/build/es/components/link/Link.d.ts +2 -2
- package/build/es/components/link/Link.js +1 -1
- package/build/es/components/link/Link.js.map +1 -1
- package/build/es/components/link/types.d.ts +4 -1
- package/package.json +1 -1
- package/styles/components/countdown/countdown.css +2 -2
- package/styles/components/countdown/countdown.min.css +1 -1
- package/styles/components/feedback/feedback.css +2 -2
- package/styles/components/feedback/feedback.min.css +1 -1
- package/styles/components/file-input/file-input.css +9 -9
- package/styles/components/file-input/file-input.min.css +1 -1
- package/styles/components/help/help.css +19 -13
- package/styles/components/help/help.min.css +1 -1
- package/styles/components/help/help.scss +21 -13
- package/styles/components/input-group/_labels.scss +8 -12
- package/styles/components/input-group/input-group.css +8 -10
- package/styles/components/input-group/input-group.min.css +1 -1
- package/styles/components/loader/loader.css +6 -6
- package/styles/components/loader/loader.min.css +1 -1
- package/styles/components/loader/skeleton-loader.css +3 -3
- package/styles/components/loader/skeleton-loader.min.css +1 -1
- package/styles/components/message/message.css +2 -2
- package/styles/components/message/message.min.css +1 -1
- package/styles/components/progress-bar/progress-bar.css +1 -1
- package/styles/components/progress-bar/progress-bar.min.css +1 -1
- package/styles/components/segmented-control/segmented-control.css +8 -10
- package/styles/components/segmented-control/segmented-control.min.css +1 -1
- package/styles/components/system-message/system-message.css +2 -2
- package/styles/components/system-message/system-message.min.css +1 -1
- package/styles/components/toast/toast.css +4 -4
- package/styles/components/toast/toast.min.css +1 -1
- package/styles/styles.css +49 -45
- package/styles/styles.min.css +2 -2
package/styles/styles.css
CHANGED
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
--color: var(--jkl-color-text-default);
|
|
468
468
|
}
|
|
469
469
|
.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 {
|
|
470
|
-
animation: 400ms cubic-bezier(0, 0, 0.3, 1) 250ms jkl-support-icon-entrance-
|
|
470
|
+
animation: 400ms cubic-bezier(0, 0, 0.3, 1) 250ms jkl-support-icon-entrance-uyjs4yv forwards;
|
|
471
471
|
}
|
|
472
472
|
.jkl-form-support-label--sr-only {
|
|
473
473
|
border: 0 !important;
|
|
@@ -482,33 +482,27 @@
|
|
|
482
482
|
white-space: nowrap !important; /* 3 */
|
|
483
483
|
}
|
|
484
484
|
.jkl-label {
|
|
485
|
-
--jkl-label-small-margin: 0 0 var(--jkl-unit-15) 0;
|
|
486
|
-
--jkl-label-medium-margin: 0 0 var(--jkl-unit-20) 0;
|
|
487
|
-
--jkl-label-large-margin: 0 0 var(--jkl-unit-30) -0.0625rem;
|
|
488
485
|
display: block;
|
|
489
|
-
margin
|
|
486
|
+
margin: 0 0 var(--jkl-spacing-8) 0;
|
|
490
487
|
color: var(--jkl-color-text-default);
|
|
491
488
|
}
|
|
492
489
|
.jkl-label--small {
|
|
493
|
-
font-size: var(--jkl-font-size-
|
|
490
|
+
font-size: var(--jkl-font-size-3);
|
|
494
491
|
line-height: var(--jkl-line-height-tight);
|
|
495
492
|
font-weight: 400;
|
|
496
493
|
--jkl-icon-weight: 300;
|
|
497
|
-
margin: var(--jkl-label-small-margin);
|
|
498
494
|
}
|
|
499
495
|
.jkl-label--medium {
|
|
500
496
|
font-size: var(--jkl-font-size-3);
|
|
501
497
|
line-height: var(--jkl-line-height-tight);
|
|
502
498
|
font-weight: 400;
|
|
503
499
|
--jkl-icon-weight: 300;
|
|
504
|
-
margin: var(--jkl-label-medium-margin);
|
|
505
500
|
}
|
|
506
501
|
.jkl-label--large {
|
|
507
502
|
font-size: var(--jkl-font-size-5);
|
|
508
503
|
line-height: var(--jkl-line-height-tight);
|
|
509
504
|
font-weight: 400;
|
|
510
505
|
--jkl-icon-weight: 300;
|
|
511
|
-
margin: var(--jkl-label-large-margin);
|
|
512
506
|
}
|
|
513
507
|
.jkl-label--sr-only {
|
|
514
508
|
border: 0 !important;
|
|
@@ -522,6 +516,10 @@
|
|
|
522
516
|
width: 1px !important;
|
|
523
517
|
white-space: nowrap !important; /* 3 */
|
|
524
518
|
}
|
|
519
|
+
.jkl-label .jkl-help {
|
|
520
|
+
position: relative;
|
|
521
|
+
top: -0.1ex;
|
|
522
|
+
}
|
|
525
523
|
.jkl-input-group-description {
|
|
526
524
|
font-size: var(--jkl-font-size-2);
|
|
527
525
|
line-height: var(--jkl-line-height-tight);
|
|
@@ -535,7 +533,7 @@
|
|
|
535
533
|
.jkl-label:has(+ .jkl-input-group-description) {
|
|
536
534
|
margin-block-end: var(--jkl-spacing-4);
|
|
537
535
|
}
|
|
538
|
-
@keyframes jkl-support-icon-entrance-
|
|
536
|
+
@keyframes jkl-support-icon-entrance-uyjs4yv {
|
|
539
537
|
0% {
|
|
540
538
|
margin-right: 0;
|
|
541
539
|
opacity: 0;
|
|
@@ -887,22 +885,22 @@
|
|
|
887
885
|
animation: 2500ms linear infinite;
|
|
888
886
|
}
|
|
889
887
|
.jkl-loader__dot--left {
|
|
890
|
-
animation-name: jkl-loader-left-spin-
|
|
888
|
+
animation-name: jkl-loader-left-spin-uyjs4z5;
|
|
891
889
|
margin-right: calc(var(--jkl-loader-spacing) * 0.9);
|
|
892
890
|
}
|
|
893
891
|
.jkl-loader__dot--middle {
|
|
894
|
-
animation-name: jkl-loader-middle-spin-
|
|
892
|
+
animation-name: jkl-loader-middle-spin-uyjs4zu;
|
|
895
893
|
margin-right: var(--jkl-loader-spacing);
|
|
896
894
|
}
|
|
897
895
|
.jkl-loader__dot--right {
|
|
898
|
-
animation-name: jkl-loader-right-spin-
|
|
896
|
+
animation-name: jkl-loader-right-spin-uyjs500;
|
|
899
897
|
}
|
|
900
898
|
@media screen and (forced-colors: active) {
|
|
901
899
|
.jkl-loader__dot {
|
|
902
900
|
background-color: CanvasText;
|
|
903
901
|
}
|
|
904
902
|
}
|
|
905
|
-
@keyframes jkl-loader-left-spin-
|
|
903
|
+
@keyframes jkl-loader-left-spin-uyjs4z5 {
|
|
906
904
|
0% {
|
|
907
905
|
transform: rotate(0) scale(0);
|
|
908
906
|
}
|
|
@@ -916,7 +914,7 @@
|
|
|
916
914
|
transform: rotate(180deg) scale(0);
|
|
917
915
|
}
|
|
918
916
|
}
|
|
919
|
-
@keyframes jkl-loader-middle-spin-
|
|
917
|
+
@keyframes jkl-loader-middle-spin-uyjs4zu {
|
|
920
918
|
0% {
|
|
921
919
|
transform: rotate(20deg) scale(0);
|
|
922
920
|
}
|
|
@@ -933,7 +931,7 @@
|
|
|
933
931
|
transform: rotate(200deg) scale(0);
|
|
934
932
|
}
|
|
935
933
|
}
|
|
936
|
-
@keyframes jkl-loader-right-spin-
|
|
934
|
+
@keyframes jkl-loader-right-spin-uyjs500 {
|
|
937
935
|
0% {
|
|
938
936
|
transform: rotate(40deg) scale(0);
|
|
939
937
|
}
|
|
@@ -973,7 +971,7 @@
|
|
|
973
971
|
@media screen and (forced-colors: active) {
|
|
974
972
|
.jkl-skeleton-element {
|
|
975
973
|
border: 1px solid CanvasText;
|
|
976
|
-
animation: 2s ease infinite jkl-blink-
|
|
974
|
+
animation: 2s ease infinite jkl-blink-uyjs506;
|
|
977
975
|
}
|
|
978
976
|
}
|
|
979
977
|
.jkl-skeleton-input {
|
|
@@ -1021,10 +1019,10 @@
|
|
|
1021
1019
|
}
|
|
1022
1020
|
@media screen and (forced-colors: active) {
|
|
1023
1021
|
.jkl-skeleton-table {
|
|
1024
|
-
animation: 2s ease-in-out infinite jkl-blink-
|
|
1022
|
+
animation: 2s ease-in-out infinite jkl-blink-uyjs506;
|
|
1025
1023
|
}
|
|
1026
1024
|
}
|
|
1027
|
-
@keyframes jkl-blink-
|
|
1025
|
+
@keyframes jkl-blink-uyjs506 {
|
|
1028
1026
|
0% {
|
|
1029
1027
|
opacity: 1;
|
|
1030
1028
|
}
|
|
@@ -2011,10 +2009,10 @@
|
|
|
2011
2009
|
}
|
|
2012
2010
|
}
|
|
2013
2011
|
.jkl-countdown__tracker {
|
|
2014
|
-
animation: jkl-downcount-
|
|
2012
|
+
animation: jkl-downcount-uyjs51b var(--duration) linear forwards;
|
|
2015
2013
|
animation-play-state: var(--play-state, running);
|
|
2016
2014
|
}
|
|
2017
|
-
@keyframes jkl-downcount-
|
|
2015
|
+
@keyframes jkl-downcount-uyjs51b {
|
|
2018
2016
|
from {
|
|
2019
2017
|
width: 100%;
|
|
2020
2018
|
}
|
|
@@ -2507,12 +2505,12 @@
|
|
|
2507
2505
|
--jkl-icon-size: 1.2em;
|
|
2508
2506
|
}
|
|
2509
2507
|
.jkl-feedback__fade-in {
|
|
2510
|
-
animation: jkl-show-
|
|
2508
|
+
animation: jkl-show-uyjs52a 0.25s ease-out;
|
|
2511
2509
|
}
|
|
2512
2510
|
.jkl-feedback__buttons {
|
|
2513
2511
|
display: flex;
|
|
2514
2512
|
}
|
|
2515
|
-
@keyframes jkl-show-
|
|
2513
|
+
@keyframes jkl-show-uyjs52a {
|
|
2516
2514
|
from {
|
|
2517
2515
|
transform: translate3d(0, 0.5rem, 0);
|
|
2518
2516
|
opacity: 0;
|
|
@@ -2729,7 +2727,7 @@
|
|
|
2729
2727
|
--background-color: var(--jkl-color-background-alert-success);
|
|
2730
2728
|
}
|
|
2731
2729
|
.jkl-message--dismissed {
|
|
2732
|
-
animation: jkl-dismiss-
|
|
2730
|
+
animation: jkl-dismiss-uyjs532 400ms ease-in-out forwards;
|
|
2733
2731
|
transition: visibility 0ms 400ms;
|
|
2734
2732
|
visibility: hidden;
|
|
2735
2733
|
}
|
|
@@ -2751,7 +2749,7 @@
|
|
|
2751
2749
|
.jkl-form-error-message {
|
|
2752
2750
|
padding-bottom: calc(var(--jkl-unit-base) * 5);
|
|
2753
2751
|
}
|
|
2754
|
-
@keyframes jkl-dismiss-
|
|
2752
|
+
@keyframes jkl-dismiss-uyjs532 {
|
|
2755
2753
|
from {
|
|
2756
2754
|
opacity: 1;
|
|
2757
2755
|
transform: translate3d(0, 0, 0);
|
|
@@ -4100,7 +4098,7 @@
|
|
|
4100
4098
|
transition-timing-function: ease;
|
|
4101
4099
|
transition-duration: 150ms;
|
|
4102
4100
|
}
|
|
4103
|
-
@keyframes jkl-downcount-
|
|
4101
|
+
@keyframes jkl-downcount-uyjs53m {
|
|
4104
4102
|
from {
|
|
4105
4103
|
width: 100%;
|
|
4106
4104
|
}
|
|
@@ -4610,7 +4608,7 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-select--beta s
|
|
|
4610
4608
|
margin-bottom: 0;
|
|
4611
4609
|
}
|
|
4612
4610
|
.jkl-system-message--dismissed {
|
|
4613
|
-
animation: jkl-dismiss-
|
|
4611
|
+
animation: jkl-dismiss-uyjs543 400ms forwards;
|
|
4614
4612
|
transition: block 400ms 400ms;
|
|
4615
4613
|
}
|
|
4616
4614
|
.jkl-system-message--info {
|
|
@@ -4640,7 +4638,7 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-select--beta s
|
|
|
4640
4638
|
border-width: 4px;
|
|
4641
4639
|
}
|
|
4642
4640
|
}
|
|
4643
|
-
@keyframes jkl-dismiss-
|
|
4641
|
+
@keyframes jkl-dismiss-uyjs543 {
|
|
4644
4642
|
from {
|
|
4645
4643
|
opacity: 1;
|
|
4646
4644
|
transform: translateY(0);
|
|
@@ -5477,12 +5475,12 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-select--beta s
|
|
|
5477
5475
|
}
|
|
5478
5476
|
.jkl-toast[data-animation=entering],
|
|
5479
5477
|
.jkl-toast[data-animation=queued] {
|
|
5480
|
-
animation: jkl-entering-
|
|
5478
|
+
animation: jkl-entering-uyjs54k 200ms ease-out forwards;
|
|
5481
5479
|
}
|
|
5482
5480
|
.jkl-toast[data-animation=exiting] {
|
|
5483
|
-
animation: jkl-exiting-
|
|
5481
|
+
animation: jkl-exiting-uyjs558 150ms ease-in forwards;
|
|
5484
5482
|
}
|
|
5485
|
-
@keyframes jkl-entering-
|
|
5483
|
+
@keyframes jkl-entering-uyjs54k {
|
|
5486
5484
|
from {
|
|
5487
5485
|
opacity: 0;
|
|
5488
5486
|
transform: translate3d(0, 50%, 0);
|
|
@@ -5492,7 +5490,7 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-select--beta s
|
|
|
5492
5490
|
transform: translate3d(0, 0, 0);
|
|
5493
5491
|
}
|
|
5494
5492
|
}
|
|
5495
|
-
@keyframes jkl-exiting-
|
|
5493
|
+
@keyframes jkl-exiting-uyjs558 {
|
|
5496
5494
|
from {
|
|
5497
5495
|
opacity: 1;
|
|
5498
5496
|
transform: translate3d(0, 0, 0);
|
|
@@ -7086,29 +7084,35 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-toggle-slider:
|
|
|
7086
7084
|
}
|
|
7087
7085
|
|
|
7088
7086
|
@layer jokul.components {
|
|
7087
|
+
.jkl-help {
|
|
7088
|
+
anchor-scope: all;
|
|
7089
|
+
display: inline;
|
|
7090
|
+
}
|
|
7089
7091
|
.jkl-help-trigger {
|
|
7090
7092
|
vertical-align: middle;
|
|
7091
7093
|
width: fit-content;
|
|
7092
7094
|
height: fit-content;
|
|
7095
|
+
padding: 0 !important;
|
|
7096
|
+
overflow: visible !important;
|
|
7097
|
+
anchor-name: --trigger;
|
|
7098
|
+
}
|
|
7099
|
+
.jkl-help-trigger::after {
|
|
7100
|
+
content: "";
|
|
7101
|
+
display: block;
|
|
7102
|
+
z-index: 0;
|
|
7103
|
+
position: absolute;
|
|
7104
|
+
inset-inline: -50%;
|
|
7105
|
+
inset-block: -20%;
|
|
7093
7106
|
}
|
|
7094
7107
|
.jkl-help-popover {
|
|
7095
|
-
|
|
7108
|
+
width: max-content;
|
|
7109
|
+
max-width: min(40ch, 80vw);
|
|
7096
7110
|
padding: var(--jkl-unit-30);
|
|
7097
7111
|
margin: var(--jkl-unit-05);
|
|
7098
|
-
|
|
7099
|
-
border: none;
|
|
7112
|
+
position-anchor: --trigger;
|
|
7100
7113
|
background-color: var(--jkl-color-background-container-inverted);
|
|
7101
7114
|
color: var(--jkl-color-text-inverted);
|
|
7102
|
-
|
|
7103
|
-
.jkl-help-popover header button {
|
|
7104
|
-
display: none;
|
|
7105
|
-
}
|
|
7106
|
-
.jkl-help-popover .title {
|
|
7107
|
-
font-size: var(--jkl-font-size-7);
|
|
7108
|
-
line-height: var(--jkl-line-height-tight);
|
|
7109
|
-
font-weight: 400;
|
|
7110
|
-
--jkl-icon-weight: 300;
|
|
7111
|
-
font-weight: bold;
|
|
7115
|
+
anchor-name: --help-box;
|
|
7112
7116
|
}
|
|
7113
7117
|
.jkl-help-popover[data-position=top] {
|
|
7114
7118
|
position-area: top center;
|