@fremtind/jokul 4.1.5 → 4.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 (68) hide show
  1. package/build/build-stats.html +1 -1
  2. package/build/cjs/components/help/Help.cjs +1 -1
  3. package/build/cjs/components/help/Help.cjs.map +1 -1
  4. package/build/cjs/components/help/Help.d.cts +1 -1
  5. package/build/cjs/components/help/index.cjs +1 -1
  6. package/build/cjs/components/help/index.d.cts +1 -1
  7. package/build/cjs/components/help/types.d.cts +4 -0
  8. package/build/cjs/components/modal/Modal.cjs +1 -1
  9. package/build/cjs/components/modal/Modal.cjs.map +1 -1
  10. package/build/cjs/components/modal/Modal.d.cts +2 -9
  11. package/build/cjs/components/modal/index.d.cts +1 -1
  12. package/build/cjs/components/modal/types.d.cts +18 -0
  13. package/build/es/components/help/Help.d.ts +1 -1
  14. package/build/es/components/help/Help.js +1 -1
  15. package/build/es/components/help/Help.js.map +1 -1
  16. package/build/es/components/help/index.d.ts +1 -1
  17. package/build/es/components/help/index.js +1 -1
  18. package/build/es/components/help/types.d.ts +4 -0
  19. package/build/es/components/modal/Modal.d.ts +2 -9
  20. package/build/es/components/modal/Modal.js +1 -1
  21. package/build/es/components/modal/Modal.js.map +1 -1
  22. package/build/es/components/modal/index.d.ts +1 -1
  23. package/build/es/components/modal/types.d.ts +18 -0
  24. package/package.json +1 -1
  25. package/styles/components/countdown/countdown.css +2 -2
  26. package/styles/components/countdown/countdown.min.css +1 -1
  27. package/styles/components/datepicker/_calendar-date-button.scss +5 -5
  28. package/styles/components/datepicker/_calendar.scss +5 -6
  29. package/styles/components/datepicker/datepicker.css +13 -5
  30. package/styles/components/datepicker/datepicker.min.css +1 -1
  31. package/styles/components/feedback/feedback.css +2 -2
  32. package/styles/components/feedback/feedback.min.css +1 -1
  33. package/styles/components/file-input/file-input.css +9 -9
  34. package/styles/components/file-input/file-input.min.css +1 -1
  35. package/styles/components/help/help.css +19 -13
  36. package/styles/components/help/help.min.css +1 -1
  37. package/styles/components/help/help.scss +21 -13
  38. package/styles/components/input-group/_labels.scss +8 -12
  39. package/styles/components/input-group/input-group.css +8 -10
  40. package/styles/components/input-group/input-group.min.css +1 -1
  41. package/styles/components/loader/loader.css +6 -6
  42. package/styles/components/loader/loader.min.css +1 -1
  43. package/styles/components/loader/skeleton-loader.css +3 -3
  44. package/styles/components/loader/skeleton-loader.min.css +1 -1
  45. package/styles/components/message/message.css +2 -2
  46. package/styles/components/message/message.min.css +1 -1
  47. package/styles/components/modal/_layout.scss +22 -0
  48. package/styles/components/modal/_modal-base.scss +32 -0
  49. package/styles/components/modal/_motion.scss +45 -0
  50. package/styles/components/modal/_overlay.scss +20 -0
  51. package/styles/components/modal/_parts.scss +33 -0
  52. package/styles/components/modal/_placement.scss +59 -0
  53. package/styles/components/modal/modal.css +117 -33
  54. package/styles/components/modal/modal.min.css +1 -1
  55. package/styles/components/modal/modal.scss +6 -95
  56. package/styles/components/progress-bar/progress-bar.css +1 -1
  57. package/styles/components/progress-bar/progress-bar.min.css +1 -1
  58. package/styles/components/segmented-control/segmented-control.css +8 -10
  59. package/styles/components/segmented-control/segmented-control.min.css +1 -1
  60. package/styles/components/system-message/system-message.css +2 -2
  61. package/styles/components/system-message/system-message.min.css +1 -1
  62. package/styles/components/toast/toast.css +4 -4
  63. package/styles/components/toast/toast.min.css +1 -1
  64. package/styles/components-beta/select/select.css +1 -1
  65. package/styles/components-beta/select/select.min.css +1 -1
  66. package/styles/components-beta/select/select.scss +1 -1
  67. package/styles/styles.css +179 -83
  68. 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-u2qilbe forwards;
470
+ animation: 400ms cubic-bezier(0, 0, 0.3, 1) 250ms jkl-support-icon-entrance-uz58f67 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-left: initial;
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-2);
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-u2qilbe {
536
+ @keyframes jkl-support-icon-entrance-uz58f67 {
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-u2qilbs;
888
+ animation-name: jkl-loader-left-spin-uz58f6g;
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-u2qilc1;
892
+ animation-name: jkl-loader-middle-spin-uz58f73;
895
893
  margin-right: var(--jkl-loader-spacing);
896
894
  }
897
895
  .jkl-loader__dot--right {
898
- animation-name: jkl-loader-right-spin-u2qilc8;
896
+ animation-name: jkl-loader-right-spin-uz58f7o;
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-u2qilbs {
903
+ @keyframes jkl-loader-left-spin-uz58f6g {
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-u2qilc1 {
917
+ @keyframes jkl-loader-middle-spin-uz58f73 {
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-u2qilc8 {
934
+ @keyframes jkl-loader-right-spin-uz58f7o {
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-u2qilce;
974
+ animation: 2s ease infinite jkl-blink-uz58f86;
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-u2qilce;
1022
+ animation: 2s ease-in-out infinite jkl-blink-uz58f86;
1025
1023
  }
1026
1024
  }
1027
- @keyframes jkl-blink-u2qilce {
1025
+ @keyframes jkl-blink-uz58f86 {
1028
1026
  0% {
1029
1027
  opacity: 1;
1030
1028
  }
@@ -1893,6 +1891,7 @@
1893
1891
  }
1894
1892
  }
1895
1893
  @layer jokul.components {
1894
+ /* Base layout */
1896
1895
  .jkl-modal-container,
1897
1896
  .jkl-modal-overlay {
1898
1897
  position: fixed;
@@ -1901,29 +1900,46 @@
1901
1900
  .jkl-modal-container {
1902
1901
  z-index: 9000;
1903
1902
  display: flex;
1903
+ align-items: center;
1904
+ justify-content: center;
1904
1905
  }
1905
1906
  .jkl-modal-container[aria-hidden=true] {
1906
- display: none;
1907
+ visibility: hidden;
1908
+ pointer-events: none;
1907
1909
  }
1910
+ }
1911
+ @layer jokul.components {
1908
1912
  .jkl-modal-overlay {
1909
1913
  background-color: rgba(27, 25, 23, 0.8);
1914
+ opacity: 0;
1915
+ transition-timing-function: ease-out;
1916
+ transition-duration: 250ms;
1917
+ transition-property: opacity;
1918
+ }
1919
+ .jkl-modal-container:not([aria-hidden=true]) .jkl-modal-overlay {
1920
+ opacity: 1;
1910
1921
  }
1922
+ @media (prefers-reduced-motion: reduce) {
1923
+ .jkl-modal-overlay {
1924
+ transition-duration: 0ms;
1925
+ }
1926
+ }
1927
+ }
1928
+ @layer jokul.components {
1911
1929
  .jkl-modal {
1912
- --jkl-modal-padding: var(--jkl-unit-50);
1913
- --jkl-modal-min-width: 13.75rem;
1914
- --jkl-modal-max-width: 41.25rem;
1915
- margin: auto;
1930
+ --margin: var(--jkl-spacing-m);
1931
+ container-type: inline-size;
1932
+ box-sizing: border-box;
1933
+ margin: var(--margin);
1934
+ padding: var(--modal-padding, var(--jkl-unit-40));
1916
1935
  z-index: 9000;
1917
- position: relative;
1918
1936
  background-color: var(--jkl-color-background-container-high);
1919
- border-radius: 0.125rem;
1937
+ border-radius: var(--jkl-border-radius-l);
1920
1938
  box-shadow: 0 0.25rem 0.75rem rgba(37, 42, 49, 0.03);
1921
- width: 100%;
1922
- min-width: var(--jkl-modal-min-width);
1923
- max-width: var(--jkl-modal-max-width);
1939
+ width: min(100vw - 2 * var(--margin), var(--modal-width, 60ch));
1940
+ max-width: none;
1924
1941
  max-height: 90vh;
1925
1942
  overflow: auto;
1926
- padding: var(--jkl-modal-padding);
1927
1943
  display: flex;
1928
1944
  flex-direction: column;
1929
1945
  }
@@ -1932,26 +1948,100 @@
1932
1948
  border-color: CanvasText;
1933
1949
  }
1934
1950
  }
1935
- @media (width >= 0) and (max-width: 679px) {
1936
- .jkl-modal {
1937
- margin: auto var(--jkl-unit-30);
1938
- }
1951
+ }
1952
+ @layer jokul.components {
1953
+ .jkl-modal-container--slide-in {
1954
+ --jkl-modal-slide-x: 0px;
1955
+ --jkl-modal-slide-y: 12px;
1956
+ transition-timing-function: ease-in;
1957
+ transition-duration: 250ms;
1958
+ transition-property: visibility;
1959
+ transition-duration: 0ms;
1939
1960
  }
1940
- .jkl-modal-header {
1941
- --jkl-modal-header-margin: 0 0 var(--jkl-unit-20);
1961
+ .jkl-modal-container--slide-in[aria-hidden=true] {
1962
+ display: flex;
1963
+ visibility: hidden;
1964
+ pointer-events: none;
1965
+ transition-delay: 250ms;
1942
1966
  }
1943
- @media (width >= 0) and (max-width: 679px) {
1944
- .jkl-modal-header {
1945
- --jkl-modal-header-margin: 0 0 var(--jkl-unit-15);
1967
+ .jkl-modal-container--slide-in:not([aria-hidden=true]) {
1968
+ visibility: visible;
1969
+ transition-delay: 0ms;
1970
+ }
1971
+ .jkl-modal-container--slide-in .jkl-modal {
1972
+ transition-timing-function: ease-out;
1973
+ transition-duration: 250ms;
1974
+ transition-property: transform, opacity;
1975
+ transform: translate(var(--jkl-modal-slide-x), var(--jkl-modal-slide-y));
1976
+ opacity: 0;
1977
+ will-change: transform, opacity;
1978
+ }
1979
+ .jkl-modal-container--slide-in:not([aria-hidden=true]) .jkl-modal {
1980
+ transform: translate(0, 0);
1981
+ opacity: 1;
1982
+ }
1983
+ @media (prefers-reduced-motion: reduce) {
1984
+ .jkl-modal-container--slide-in .jkl-modal {
1985
+ transition-duration: 0ms;
1946
1986
  }
1947
1987
  }
1988
+ }
1989
+ @layer jokul.components {
1990
+ /* Placement: bottom */
1991
+ .jkl-modal-container--placement-bottom {
1992
+ align-items: flex-end;
1993
+ }
1994
+ .jkl-modal-container--placement-bottom.jkl-modal-container--slide-in {
1995
+ --jkl-modal-slide-x: 0px;
1996
+ --jkl-modal-slide-y: 24px;
1997
+ }
1998
+ .jkl-modal-container--placement-bottom .jkl-modal {
1999
+ --margin: 0px;
2000
+ width: min(100vw, var(--modal-width, 100vw));
2001
+ border-bottom-left-radius: 0;
2002
+ border-bottom-right-radius: 0;
2003
+ }
2004
+ /* Placement: left */
2005
+ .jkl-modal-container--placement-left {
2006
+ justify-content: flex-start;
2007
+ }
2008
+ .jkl-modal-container--placement-left.jkl-modal-container--slide-in {
2009
+ --jkl-modal-slide-x: -24px;
2010
+ --jkl-modal-slide-y: 0px;
2011
+ }
2012
+ .jkl-modal-container--placement-left .jkl-modal {
2013
+ height: 100%;
2014
+ max-height: 100%;
2015
+ margin-block: 0;
2016
+ margin-inline-start: 0;
2017
+ border-top-left-radius: 0;
2018
+ border-bottom-left-radius: 0;
2019
+ }
2020
+ /* Placement: right */
2021
+ .jkl-modal-container--placement-right {
2022
+ justify-content: flex-end;
2023
+ }
2024
+ .jkl-modal-container--placement-right.jkl-modal-container--slide-in {
2025
+ --jkl-modal-slide-x: 24px;
2026
+ --jkl-modal-slide-y: 0px;
2027
+ }
2028
+ .jkl-modal-container--placement-right .jkl-modal {
2029
+ height: 100%;
2030
+ max-height: 100%;
2031
+ margin-block: 0;
2032
+ margin-inline-end: 0;
2033
+ border-top-right-radius: 0;
2034
+ border-bottom-right-radius: 0;
2035
+ }
2036
+ }
2037
+ @layer jokul.components {
1948
2038
  .jkl-modal-header {
2039
+ --jkl-modal-header-margin: 0 0 var(--jkl-unit-20);
1949
2040
  display: flex;
1950
2041
  flex-direction: row;
1951
2042
  justify-content: space-between;
1952
2043
  align-items: center;
1953
2044
  margin: var(--jkl-modal-header-margin);
1954
- gap: var(--jkl-modal-gap);
1955
2045
  }
1956
2046
  .jkl-modal-body {
1957
2047
  font-size: var(--jkl-font-size-3);
@@ -1966,20 +2056,12 @@
1966
2056
  --jkl-icon-weight: 400;
1967
2057
  }
1968
2058
  .jkl-modal-actions {
1969
- --jkl-modal-actions-margin: var(--jkl-unit-50) 0 0 0;
1970
- }
1971
- @media (width >= 0) and (max-width: 679px) {
1972
- .jkl-modal-actions {
1973
- --jkl-modal-actions-margin: var(--jkl-unit-40) 0 0 0;
1974
- }
1975
- }
1976
- .jkl-modal-actions {
1977
- margin: var(--jkl-modal-actions-margin);
2059
+ margin-block-start: var(--jkl-unit-50);
1978
2060
  display: flex;
1979
2061
  flex-direction: column;
1980
- gap: var(--jkl-unit-20);
2062
+ gap: var(--jkl-unit-15) var(--jkl-unit-20);
1981
2063
  }
1982
- @media (min-width: 60ch) {
2064
+ @container (width > 35ch /* ~380px ved vanlig zoom/size */) {
1983
2065
  .jkl-modal-actions {
1984
2066
  flex-direction: row-reverse;
1985
2067
  align-self: flex-end;
@@ -2011,10 +2093,10 @@
2011
2093
  }
2012
2094
  }
2013
2095
  .jkl-countdown__tracker {
2014
- animation: jkl-downcount-u2qildc var(--duration) linear forwards;
2096
+ animation: jkl-downcount-uz58f9a var(--duration) linear forwards;
2015
2097
  animation-play-state: var(--play-state, running);
2016
2098
  }
2017
- @keyframes jkl-downcount-u2qildc {
2099
+ @keyframes jkl-downcount-uz58f9a {
2018
2100
  from {
2019
2101
  width: 100%;
2020
2102
  }
@@ -2024,12 +2106,16 @@
2024
2106
  }
2025
2107
  }
2026
2108
  @layer jokul.components {
2027
- @media (width >= 0) and (max-width: 374px) {
2028
- --jkl-calendar-padding: var(--jkl-unit-05) var(--jkl-unit-10) var(--jkl-unit-20);
2029
- }
2030
2109
  .jkl-calendar {
2031
2110
  --jkl-calendar-padding: var(--jkl-unit-15) var(--jkl-unit-20) var(--jkl-unit-20);
2032
2111
  --jkl-calendar-gap: var(--jkl-unit-15);
2112
+ }
2113
+ @media (width >= 0) and (max-width: 374px) {
2114
+ .jkl-calendar {
2115
+ --jkl-calendar-padding: var(--jkl-unit-05) var(--jkl-unit-10) var(--jkl-unit-20);
2116
+ }
2117
+ }
2118
+ .jkl-calendar {
2033
2119
  display: block;
2034
2120
  background-color: var(--jkl-color-background-container-high);
2035
2121
  color: var(--jkl-color);
@@ -2142,11 +2228,15 @@
2142
2228
  }
2143
2229
  }
2144
2230
  @layer jokul.components {
2231
+ .jkl-calendar-date-button {
2232
+ --jkl-calendar-date-size: var(--jkl-unit-50);
2233
+ }
2145
2234
  @media (width >= 0) and (max-width: 374px) {
2146
- --jkl-calendar-date-size: var(--jkl-unit-40);
2235
+ .jkl-calendar-date-button {
2236
+ --jkl-calendar-date-size: var(--jkl-unit-40);
2237
+ }
2147
2238
  }
2148
2239
  .jkl-calendar-date-button {
2149
- --jkl-calendar-date-size: var(--jkl-unit-50);
2150
2240
  font-size: var(--jkl-font-size-2);
2151
2241
  line-height: var(--jkl-line-height-tight);
2152
2242
  font-weight: 400;
@@ -2507,12 +2597,12 @@
2507
2597
  --jkl-icon-size: 1.2em;
2508
2598
  }
2509
2599
  .jkl-feedback__fade-in {
2510
- animation: jkl-show-u2qildu 0.25s ease-out;
2600
+ animation: jkl-show-uz58f9x 0.25s ease-out;
2511
2601
  }
2512
2602
  .jkl-feedback__buttons {
2513
2603
  display: flex;
2514
2604
  }
2515
- @keyframes jkl-show-u2qildu {
2605
+ @keyframes jkl-show-uz58f9x {
2516
2606
  from {
2517
2607
  transform: translate3d(0, 0.5rem, 0);
2518
2608
  opacity: 0;
@@ -2729,7 +2819,7 @@
2729
2819
  --background-color: var(--jkl-color-background-alert-success);
2730
2820
  }
2731
2821
  .jkl-message--dismissed {
2732
- animation: jkl-dismiss-u2qilee 400ms ease-in-out forwards;
2822
+ animation: jkl-dismiss-uz58fa3 400ms ease-in-out forwards;
2733
2823
  transition: visibility 0ms 400ms;
2734
2824
  visibility: hidden;
2735
2825
  }
@@ -2751,7 +2841,7 @@
2751
2841
  .jkl-form-error-message {
2752
2842
  padding-bottom: calc(var(--jkl-unit-base) * 5);
2753
2843
  }
2754
- @keyframes jkl-dismiss-u2qilee {
2844
+ @keyframes jkl-dismiss-uz58fa3 {
2755
2845
  from {
2756
2846
  opacity: 1;
2757
2847
  transform: translate3d(0, 0, 0);
@@ -4100,7 +4190,7 @@
4100
4190
  transition-timing-function: ease;
4101
4191
  transition-duration: 150ms;
4102
4192
  }
4103
- @keyframes jkl-downcount-u2qileq {
4193
+ @keyframes jkl-downcount-uz58fau {
4104
4194
  from {
4105
4195
  width: 100%;
4106
4196
  }
@@ -4117,7 +4207,7 @@
4117
4207
  }
4118
4208
  .jkl-select--beta {
4119
4209
  --border-color: var(--jkl-color-border-input);
4120
- --background-color: var(transparent);
4210
+ --background-color: transparent;
4121
4211
  --color: var(--jkl-color-text-default);
4122
4212
  --box-shadow: 0 0 0 jkl.rem(1px) transparent;
4123
4213
  --border-width: 0.0625rem;
@@ -4610,7 +4700,7 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-select--beta s
4610
4700
  margin-bottom: 0;
4611
4701
  }
4612
4702
  .jkl-system-message--dismissed {
4613
- animation: jkl-dismiss-u2qilfp 400ms forwards;
4703
+ animation: jkl-dismiss-uz58fbx 400ms forwards;
4614
4704
  transition: block 400ms 400ms;
4615
4705
  }
4616
4706
  .jkl-system-message--info {
@@ -4640,7 +4730,7 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-select--beta s
4640
4730
  border-width: 4px;
4641
4731
  }
4642
4732
  }
4643
- @keyframes jkl-dismiss-u2qilfp {
4733
+ @keyframes jkl-dismiss-uz58fbx {
4644
4734
  from {
4645
4735
  opacity: 1;
4646
4736
  transform: translateY(0);
@@ -5477,12 +5567,12 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-select--beta s
5477
5567
  }
5478
5568
  .jkl-toast[data-animation=entering],
5479
5569
  .jkl-toast[data-animation=queued] {
5480
- animation: jkl-entering-u2qilg1 200ms ease-out forwards;
5570
+ animation: jkl-entering-uz58fc9 200ms ease-out forwards;
5481
5571
  }
5482
5572
  .jkl-toast[data-animation=exiting] {
5483
- animation: jkl-exiting-u2qilgf 150ms ease-in forwards;
5573
+ animation: jkl-exiting-uz58fcr 150ms ease-in forwards;
5484
5574
  }
5485
- @keyframes jkl-entering-u2qilg1 {
5575
+ @keyframes jkl-entering-uz58fc9 {
5486
5576
  from {
5487
5577
  opacity: 0;
5488
5578
  transform: translate3d(0, 50%, 0);
@@ -5492,7 +5582,7 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-select--beta s
5492
5582
  transform: translate3d(0, 0, 0);
5493
5583
  }
5494
5584
  }
5495
- @keyframes jkl-exiting-u2qilgf {
5585
+ @keyframes jkl-exiting-uz58fcr {
5496
5586
  from {
5497
5587
  opacity: 1;
5498
5588
  transform: translate3d(0, 0, 0);
@@ -7086,29 +7176,35 @@ html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-toggle-slider:
7086
7176
  }
7087
7177
 
7088
7178
  @layer jokul.components {
7179
+ .jkl-help {
7180
+ anchor-scope: all;
7181
+ display: inline;
7182
+ }
7089
7183
  .jkl-help-trigger {
7090
7184
  vertical-align: middle;
7091
7185
  width: fit-content;
7092
7186
  height: fit-content;
7187
+ padding: 0 !important;
7188
+ overflow: visible !important;
7189
+ anchor-name: --trigger;
7190
+ }
7191
+ .jkl-help-trigger::after {
7192
+ content: "";
7193
+ display: block;
7194
+ z-index: 0;
7195
+ position: absolute;
7196
+ inset-inline: -50%;
7197
+ inset-block: -20%;
7093
7198
  }
7094
7199
  .jkl-help-popover {
7095
- max-width: 40ch;
7200
+ width: max-content;
7201
+ max-width: min(40ch, 80vw);
7096
7202
  padding: var(--jkl-unit-30);
7097
7203
  margin: var(--jkl-unit-05);
7098
- inset: auto;
7099
- border: none;
7204
+ position-anchor: --trigger;
7100
7205
  background-color: var(--jkl-color-background-container-inverted);
7101
7206
  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;
7207
+ anchor-name: --help-box;
7112
7208
  }
7113
7209
  .jkl-help-popover[data-position=top] {
7114
7210
  position-area: top center;