@fremtind/jokul 1.4.1 → 1.5.1

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 (258) hide show
  1. package/build/build-stats.html +1 -1
  2. package/build/cjs/components/card/CardImage.cjs.map +1 -1
  3. package/build/cjs/components/card/CardImage.d.cts +2 -1
  4. package/build/cjs/components/cookie-consent/CookieConsent.cjs +1 -1
  5. package/build/cjs/components/cookie-consent/CookieConsent.cjs.map +1 -1
  6. package/build/cjs/components/feedback/questions/SmileyQuestion.cjs +1 -1
  7. package/build/cjs/components/feedback/questions/SmileyQuestion.cjs.map +1 -1
  8. package/build/cjs/components/help/Help.cjs +1 -1
  9. package/build/cjs/components/help/Help.cjs.map +1 -1
  10. package/build/cjs/components/image/Image.cjs +1 -1
  11. package/build/cjs/components/image/Image.cjs.map +1 -1
  12. package/build/cjs/components/image/Image.d.cts +1 -2
  13. package/build/cjs/core/tokens/style-dictionary/build.cjs +2 -0
  14. package/build/cjs/core/tokens/style-dictionary/build.cjs.map +1 -0
  15. package/build/cjs/core/tokens/style-dictionary/build.d.cts +0 -0
  16. package/build/cjs/core/tokens/style-dictionary/config.cjs +2 -0
  17. package/build/cjs/core/tokens/style-dictionary/config.cjs.map +1 -0
  18. package/build/cjs/core/tokens/style-dictionary/config.d.cts +4 -0
  19. package/build/cjs/core/tokens/style-dictionary/filters/index.cjs +2 -0
  20. package/build/cjs/core/tokens/style-dictionary/filters/index.cjs.map +1 -0
  21. package/build/cjs/core/tokens/style-dictionary/filters/index.d.cts +3 -0
  22. package/build/cjs/core/tokens/style-dictionary/formats/css-dynamic-color-variables.cjs +2 -0
  23. package/build/cjs/core/tokens/style-dictionary/formats/css-dynamic-color-variables.cjs.map +1 -0
  24. package/build/cjs/core/tokens/style-dictionary/formats/css-dynamic-color-variables.d.cts +3 -0
  25. package/build/cjs/core/tokens/style-dictionary/formats/css-theme-variables.cjs +2 -0
  26. package/build/cjs/core/tokens/style-dictionary/formats/css-theme-variables.cjs.map +1 -0
  27. package/build/cjs/core/tokens/style-dictionary/formats/css-theme-variables.d.cts +3 -0
  28. package/build/cjs/core/tokens/style-dictionary/formats/index.cjs +2 -0
  29. package/build/cjs/core/tokens/style-dictionary/formats/index.cjs.map +1 -0
  30. package/build/cjs/core/tokens/style-dictionary/formats/index.d.cts +6 -0
  31. package/build/cjs/core/tokens/style-dictionary/formats/javascript-esm.cjs +2 -0
  32. package/build/cjs/core/tokens/style-dictionary/formats/javascript-esm.cjs.map +1 -0
  33. package/build/cjs/core/tokens/style-dictionary/formats/javascript-esm.d.cts +3 -0
  34. package/build/cjs/core/tokens/style-dictionary/formats/scss-theme-variables.cjs +2 -0
  35. package/build/cjs/core/tokens/style-dictionary/formats/scss-theme-variables.cjs.map +1 -0
  36. package/build/cjs/core/tokens/style-dictionary/formats/scss-theme-variables.d.cts +3 -0
  37. package/build/cjs/core/tokens/style-dictionary/formats/tailwindcss-colors.cjs +2 -0
  38. package/build/cjs/core/tokens/style-dictionary/formats/tailwindcss-colors.cjs.map +1 -0
  39. package/build/cjs/core/tokens/style-dictionary/formats/tailwindcss-colors.d.cts +3 -0
  40. package/build/cjs/core/tokens/style-dictionary/register.cjs +2 -0
  41. package/build/cjs/core/tokens/style-dictionary/register.cjs.map +1 -0
  42. package/build/cjs/core/tokens/style-dictionary/register.d.cts +1 -0
  43. package/build/cjs/core/tokens/style-dictionary/transforms/index.cjs +2 -0
  44. package/build/cjs/core/tokens/style-dictionary/transforms/index.cjs.map +1 -0
  45. package/build/cjs/core/tokens/style-dictionary/transforms/index.d.cts +2 -0
  46. package/build/cjs/core/tokens/style-dictionary/transforms/strip-light-dark.cjs +2 -0
  47. package/build/cjs/core/tokens/style-dictionary/transforms/strip-light-dark.cjs.map +1 -0
  48. package/build/cjs/core/tokens/style-dictionary/transforms/strip-light-dark.d.cts +3 -0
  49. package/build/cjs/core/tokens.cjs +1 -1
  50. package/build/cjs/core/tokens.cjs.map +1 -1
  51. package/build/cjs/core/tokens.d.cts +15 -52
  52. package/build/cjs/tailwind/colors.cjs.map +1 -1
  53. package/build/cjs/tailwind/colors.d.cts +1 -2
  54. package/build/es/components/card/CardImage.d.ts +2 -1
  55. package/build/es/components/card/CardImage.js.map +1 -1
  56. package/build/es/components/cookie-consent/CookieConsent.js +1 -1
  57. package/build/es/components/cookie-consent/CookieConsent.js.map +1 -1
  58. package/build/es/components/feedback/questions/SmileyQuestion.js +1 -1
  59. package/build/es/components/feedback/questions/SmileyQuestion.js.map +1 -1
  60. package/build/es/components/help/Help.js +1 -1
  61. package/build/es/components/help/Help.js.map +1 -1
  62. package/build/es/components/image/Image.d.ts +1 -2
  63. package/build/es/components/image/Image.js +1 -1
  64. package/build/es/components/image/Image.js.map +1 -1
  65. package/build/es/core/tokens/style-dictionary/build.d.ts +0 -0
  66. package/build/es/core/tokens/style-dictionary/build.js +2 -0
  67. package/build/es/core/tokens/style-dictionary/build.js.map +1 -0
  68. package/build/es/core/tokens/style-dictionary/config.d.ts +4 -0
  69. package/build/es/core/tokens/style-dictionary/config.js +2 -0
  70. package/build/es/core/tokens/style-dictionary/config.js.map +1 -0
  71. package/build/es/core/tokens/style-dictionary/filters/index.d.ts +3 -0
  72. package/build/es/core/tokens/style-dictionary/filters/index.js +2 -0
  73. package/build/es/core/tokens/style-dictionary/filters/index.js.map +1 -0
  74. package/build/es/core/tokens/style-dictionary/formats/css-dynamic-color-variables.d.ts +3 -0
  75. package/build/es/core/tokens/style-dictionary/formats/css-dynamic-color-variables.js +2 -0
  76. package/build/es/core/tokens/style-dictionary/formats/css-dynamic-color-variables.js.map +1 -0
  77. package/build/es/core/tokens/style-dictionary/formats/css-theme-variables.d.ts +3 -0
  78. package/build/es/core/tokens/style-dictionary/formats/css-theme-variables.js +2 -0
  79. package/build/es/core/tokens/style-dictionary/formats/css-theme-variables.js.map +1 -0
  80. package/build/es/core/tokens/style-dictionary/formats/index.d.ts +6 -0
  81. package/build/es/core/tokens/style-dictionary/formats/index.js +2 -0
  82. package/build/es/core/tokens/style-dictionary/formats/index.js.map +1 -0
  83. package/build/es/core/tokens/style-dictionary/formats/javascript-esm.d.ts +3 -0
  84. package/build/es/core/tokens/style-dictionary/formats/javascript-esm.js +2 -0
  85. package/build/es/core/tokens/style-dictionary/formats/javascript-esm.js.map +1 -0
  86. package/build/es/core/tokens/style-dictionary/formats/scss-theme-variables.d.ts +3 -0
  87. package/build/es/core/tokens/style-dictionary/formats/scss-theme-variables.js +2 -0
  88. package/build/es/core/tokens/style-dictionary/formats/scss-theme-variables.js.map +1 -0
  89. package/build/es/core/tokens/style-dictionary/formats/tailwindcss-colors.d.ts +3 -0
  90. package/build/es/core/tokens/style-dictionary/formats/tailwindcss-colors.js +2 -0
  91. package/build/es/core/tokens/style-dictionary/formats/tailwindcss-colors.js.map +1 -0
  92. package/build/es/core/tokens/style-dictionary/register.d.ts +1 -0
  93. package/build/es/core/tokens/style-dictionary/register.js +2 -0
  94. package/build/es/core/tokens/style-dictionary/register.js.map +1 -0
  95. package/build/es/core/tokens/style-dictionary/transforms/index.d.ts +2 -0
  96. package/build/es/core/tokens/style-dictionary/transforms/index.js +2 -0
  97. package/build/es/core/tokens/style-dictionary/transforms/index.js.map +1 -0
  98. package/build/es/core/tokens/style-dictionary/transforms/strip-light-dark.d.ts +3 -0
  99. package/build/es/core/tokens/style-dictionary/transforms/strip-light-dark.js +2 -0
  100. package/build/es/core/tokens/style-dictionary/transforms/strip-light-dark.js.map +1 -0
  101. package/build/es/core/tokens.d.ts +15 -52
  102. package/build/es/core/tokens.js +1 -1
  103. package/build/es/core/tokens.js.map +1 -1
  104. package/build/es/tailwind/colors.d.ts +1 -2
  105. package/build/es/tailwind/colors.js.map +1 -1
  106. package/package.json +3 -2
  107. package/styles/components/autosuggest/autosuggest.css +8 -6
  108. package/styles/components/breadcrumb/breadcrumb.css +4 -2
  109. package/styles/components/button/button.css +7 -2
  110. package/styles/components/button/button.min.css +1 -1
  111. package/styles/components/button/button.scss +4 -0
  112. package/styles/components/card/card.css +9 -5
  113. package/styles/components/card/card.min.css +1 -1
  114. package/styles/components/card/card.scss +7 -4
  115. package/styles/components/checkbox/checkbox.css +181 -179
  116. package/styles/components/checkbox/checkbox.min.css +1 -1
  117. package/styles/components/checkbox/checkbox.scss +189 -180
  118. package/styles/components/checkbox-panel/checkbox-panel.css +60 -54
  119. package/styles/components/checkbox-panel/checkbox-panel.min.css +3 -1
  120. package/styles/components/checkbox-panel/checkbox-panel.scss +58 -54
  121. package/styles/components/checkbox-panel/development/styles.css +4 -2
  122. package/styles/components/chip/chip.css +4 -2
  123. package/styles/components/combobox/combobox.css +6 -4
  124. package/styles/components/cookie-consent/cookie-consent.css +4 -2
  125. package/styles/components/countdown/countdown.css +34 -31
  126. package/styles/components/countdown/countdown.min.css +1 -1
  127. package/styles/components/countdown/countdown.scss +14 -12
  128. package/styles/components/datepicker/datepicker.css +8 -6
  129. package/styles/components/description-list/description-list.css +38 -34
  130. package/styles/components/description-list/description-list.min.css +1 -1
  131. package/styles/components/description-list/description-list.scss +18 -16
  132. package/styles/components/expander/expandable.css +4 -2
  133. package/styles/components/feedback/feedback.css +6 -4
  134. package/styles/components/feedback/feedback.min.css +1 -1
  135. package/styles/components/file/file.css +4 -2
  136. package/styles/components/file-input/file-input.css +219 -217
  137. package/styles/components/file-input/file-input.min.css +1 -1
  138. package/styles/components/help/help.css +6 -16
  139. package/styles/components/help/help.min.css +1 -1
  140. package/styles/components/help/help.scss +2 -17
  141. package/styles/components/icon/icon.css +128 -130
  142. package/styles/components/icon/icon.min.css +1 -1
  143. package/styles/components/icon/icon.scss +96 -92
  144. package/styles/components/icon-button/icon-button.css +51 -47
  145. package/styles/components/icon-button/icon-button.min.css +1 -1
  146. package/styles/components/icon-button/icon-button.scss +26 -24
  147. package/styles/components/image/image.css +31 -27
  148. package/styles/components/image/image.min.css +1 -1
  149. package/styles/components/image/image.scss +27 -25
  150. package/styles/components/input-group/input-group.css +6 -4
  151. package/styles/components/input-group/input-group.min.css +1 -1
  152. package/styles/components/link/link.css +6 -4
  153. package/styles/components/link/link.min.css +1 -1
  154. package/styles/components/link/link.scss +2 -3
  155. package/styles/components/link-list/link-list.css +4 -2
  156. package/styles/components/list/list.css +66 -62
  157. package/styles/components/list/list.min.css +1 -1
  158. package/styles/components/list/list.scss +69 -67
  159. package/styles/components/loader/loader.css +98 -95
  160. package/styles/components/loader/loader.min.css +1 -1
  161. package/styles/components/loader/loader.scss +91 -88
  162. package/styles/components/loader/skeleton-loader.css +119 -121
  163. package/styles/components/loader/skeleton-loader.min.css +1 -1
  164. package/styles/components/loader/skeleton-loader.scss +128 -126
  165. package/styles/components/logo/logo.css +83 -83
  166. package/styles/components/logo/logo.min.css +1 -1
  167. package/styles/components/logo/logo.scss +71 -67
  168. package/styles/components/menu/_menu-divider.scss +7 -5
  169. package/styles/components/menu/_menu-item.scss +55 -53
  170. package/styles/components/menu/menu.css +121 -119
  171. package/styles/components/menu/menu.min.css +1 -1
  172. package/styles/components/menu/menu.scss +28 -24
  173. package/styles/components/message/message.css +6 -4
  174. package/styles/components/message/message.min.css +1 -1
  175. package/styles/components/modal/modal.css +104 -108
  176. package/styles/components/modal/modal.min.css +1 -1
  177. package/styles/components/modal/modal.scss +82 -79
  178. package/styles/components/nav-link/nav-link.css +66 -62
  179. package/styles/components/nav-link/nav-link.min.css +1 -1
  180. package/styles/components/nav-link/nav-link.scss +48 -46
  181. package/styles/components/pagination/development/styles.css +4 -2
  182. package/styles/components/pagination/pagination.css +4 -2
  183. package/styles/components/popover/popover.css +23 -21
  184. package/styles/components/popover/popover.min.css +1 -1
  185. package/styles/components/popover/popover.scss +14 -12
  186. package/styles/components/progress-bar/progress-bar.css +35 -32
  187. package/styles/components/progress-bar/progress-bar.min.css +1 -1
  188. package/styles/components/progress-bar/progress-bar.scss +16 -14
  189. package/styles/components/radio-button/radio-button.css +6 -4
  190. package/styles/components/radio-button/radio-button.min.css +1 -1
  191. package/styles/components/radio-panel/development/styles.css +4 -2
  192. package/styles/components/radio-panel/radio-panel.css +60 -56
  193. package/styles/components/radio-panel/radio-panel.min.css +1 -1
  194. package/styles/components/radio-panel/radio-panel.scss +55 -54
  195. package/styles/components/segmented-control/segmented-control.css +133 -136
  196. package/styles/components/segmented-control/segmented-control.min.css +1 -1
  197. package/styles/components/segmented-control/segmented-control.scss +1 -1
  198. package/styles/components/select/select.css +4 -2
  199. package/styles/components/summary-table/development/summary-table-example.css +4 -2
  200. package/styles/components/summary-table/summary-table.css +56 -54
  201. package/styles/components/summary-table/summary-table.min.css +1 -1
  202. package/styles/components/summary-table/summary-table.scss +44 -42
  203. package/styles/components/system-message/system-message.css +6 -4
  204. package/styles/components/system-message/system-message.min.css +1 -1
  205. package/styles/components/table/table.css +4 -2
  206. package/styles/components/tabs/tabs.css +125 -128
  207. package/styles/components/tabs/tabs.min.css +1 -1
  208. package/styles/components/tabs/tabs.scss +90 -93
  209. package/styles/components/tag/tag.css +4 -2
  210. package/styles/components/text-area/text-area.css +4 -2
  211. package/styles/components/text-input/text-input.css +4 -2
  212. package/styles/components/toast/toast.css +8 -6
  213. package/styles/components/toast/toast.min.css +1 -1
  214. package/styles/components/toggle-switch/toggle-switch.css +14 -12
  215. package/styles/components/tooltip/tooltip.css +4 -2
  216. package/styles/core/_layers.scss +3 -0
  217. package/styles/core/core.css +1573 -1434
  218. package/styles/core/core.min.css +2 -1
  219. package/styles/core/core.scss +5 -76
  220. package/styles/core/global/_base-class.scss +30 -0
  221. package/styles/core/global/_index.scss +2 -0
  222. package/styles/core/global/_top-layer.scss +20 -0
  223. package/styles/core/jkl/_index.scss +1 -1
  224. package/styles/core/jkl/_legacy-tokens.scss +152 -5
  225. package/styles/core/jkl/_tokens.scss +36 -152
  226. package/styles/core/jkl/_typography.scss +1 -0
  227. package/styles/core/resets/_index.scss +2 -0
  228. package/styles/core/resets/_normalize.scss +251 -0
  229. package/styles/core/resets/_reset.scss +68 -0
  230. package/styles/core/theme/_color-tokens.scss +73 -0
  231. package/styles/core/theme/_dynamic-spacing.scss +55 -0
  232. package/styles/core/theme/_index.scss +8 -0
  233. package/styles/core/theme/_legacy-color-tokens.scss +81 -0
  234. package/styles/core/theme/_legacy-tokens.scss +150 -0
  235. package/styles/core/theme/_old-vars.scss +30 -0
  236. package/styles/core/theme/_spacing-tokens.scss +30 -0
  237. package/styles/core/theme/_tokens.scss +30 -0
  238. package/styles/core/theme/_typography.scss +27 -0
  239. package/styles/core/utility/_headings.scss +31 -0
  240. package/styles/core/utility/_index.scss +4 -0
  241. package/styles/core/utility/_paragraphs.scss +18 -0
  242. package/styles/core/utility/_screen-reader.scss +11 -0
  243. package/styles/core/utility/_spacing.scss +49 -0
  244. package/styles/shared/input/shared-input-styles.css +4 -2
  245. package/styles/shared/input-panel/shared.css +4 -2
  246. package/styles/shared/track/track.css +4 -2
  247. package/styles/styles.css +1452 -1474
  248. package/styles/styles.min.css +3 -1
  249. package/styles/core/_color-tokens.scss +0 -78
  250. package/styles/core/_headings.scss +0 -29
  251. package/styles/core/_index.scss +0 -9
  252. package/styles/core/_legacy-tokens.scss +0 -38
  253. package/styles/core/_normalize.scss +0 -250
  254. package/styles/core/_paragraphs.scss +0 -16
  255. package/styles/core/_reset.scss +0 -66
  256. package/styles/core/_screen-reader.scss +0 -9
  257. package/styles/core/_spacing.scss +0 -86
  258. package/styles/core/_tokens.scss +0 -129
@@ -3,237 +3,246 @@
3
3
  @use "../../core/jkl";
4
4
  @use "../../core/jkl/colors";
5
5
 
6
- @include jkl.comfortable-density-variables {
7
- @include jkl.declare-font-variables("jkl-checkbox", "body");
6
+ @layer jokul.components {
7
+ @include jkl.comfortable-density-variables {
8
+ @include jkl.declare-font-variables("jkl-checkbox", "body");
8
9
 
9
- --jkl-checkbox-height: #{jkl.rem(48px)};
10
- --jkl-checkbox-box-size: #{jkl.rem(24px)};
11
- --jkl-checkbox-line-height: #{jkl.rem(32px)};
12
-
13
- @include jkl.small-device {
14
- --jkl-checkbox-height: #{jkl.rem(40px)};
10
+ --jkl-checkbox-height: #{jkl.rem(48px)};
15
11
  --jkl-checkbox-box-size: #{jkl.rem(24px)};
16
- --jkl-checkbox-line-height: #{jkl.rem(28px)};
17
- }
18
- }
12
+ --jkl-checkbox-line-height: #{jkl.rem(32px)};
19
13
 
20
- @include jkl.compact-density-variables {
21
- @include jkl.declare-font-variables("jkl-checkbox", "small");
14
+ @include jkl.small-device {
15
+ --jkl-checkbox-height: #{jkl.rem(40px)};
16
+ --jkl-checkbox-box-size: #{jkl.rem(24px)};
17
+ --jkl-checkbox-line-height: #{jkl.rem(28px)};
18
+ }
19
+ }
22
20
 
23
- --jkl-checkbox-height: #{jkl.rem(28px)};
24
- --jkl-checkbox-box-size: #{jkl.rem(18px)};
25
- --jkl-checkbox-line-height: #{jkl.rem(24px)};
26
- }
21
+ @include jkl.compact-density-variables {
22
+ @include jkl.declare-font-variables("jkl-checkbox", "small");
27
23
 
28
- $_checkbox-checked-animation-name: jkl-checkbox-checked-#{string.unique-id()};
29
- $_checkbox-indeterminate-animation-name: jkl-checkbox-indeterminate-#{string.unique-id(
24
+ --jkl-checkbox-height: #{jkl.rem(28px)};
25
+ --jkl-checkbox-box-size: #{jkl.rem(18px)};
26
+ --jkl-checkbox-line-height: #{jkl.rem(24px)};
27
+ }
30
28
 
29
+ $_checkbox-checked-animation-name: jkl-checkbox-checked-#{string.unique-id(
30
+
31
+ )};
32
+ $_checkbox-indeterminate-animation-name: jkl-checkbox-indeterminate-#{string.unique-id(
33
+
31
34
  )};
32
35
 
33
- @keyframes #{$_checkbox-checked-animation-name} {
34
- 0% {
35
- width: 0;
36
- height: 0;
37
- }
36
+ @keyframes #{$_checkbox-checked-animation-name} {
37
+ 0% {
38
+ width: 0;
39
+ height: 0;
40
+ }
38
41
 
39
- 40% {
40
- width: 18%;
41
- height: 0;
42
- }
42
+ 40% {
43
+ width: 18%;
44
+ height: 0;
45
+ }
43
46
 
44
- 100% {
45
- width: 18%;
46
- height: 58%;
47
+ 100% {
48
+ width: 18%;
49
+ height: 58%;
50
+ }
47
51
  }
48
- }
49
52
 
50
- @keyframes #{$_checkbox-indeterminate-animation-name} {
51
- 0% {
52
- width: 0;
53
- }
53
+ @keyframes #{$_checkbox-indeterminate-animation-name} {
54
+ 0% {
55
+ width: 0;
56
+ }
54
57
 
55
- 100% {
56
- width: 66%;
58
+ 100% {
59
+ width: 66%;
60
+ }
57
61
  }
58
- }
59
62
 
60
- .jkl-checkbox {
61
- --box-color: var(--jkl-color-border-action);
62
- --check-color: var(--jkl-color-border-action);
63
- --text-color: var(--jkl-color-text-default);
64
- --background-color: transparent;
65
-
66
- @include jkl.use-font-variables("jkl-checkbox");
67
-
68
- display: flex;
69
- flex-wrap: wrap;
70
- min-height: var(--jkl-checkbox-height);
71
- color: var(--text-color);
72
- position: relative;
73
-
74
- &__input {
75
- // Hide native checkbox
76
- position: absolute;
77
- opacity: 0;
78
- // Make sure that when the browser scrolls here because of focus, the control
79
- // is positioned below the label so that the label becomes visible.
80
- top: var(--jkl-checkbox-box-size);
81
- left: calc(-0.5 * var(--jkl-checkbox-box-size));
82
-
83
- &:checked {
84
- + .jkl-checkbox__label .jkl-checkbox__check-mark::after {
85
- animation: $_checkbox-checked-animation-name
86
- jkl.timing("productive") ease-in-out forwards;
87
- opacity: 1;
63
+ .jkl-checkbox {
64
+ --box-color: var(--jkl-color-border-action);
65
+ --check-color: var(--jkl-color-border-action);
66
+ --text-color: var(--jkl-color-text-default);
67
+ --background-color: transparent;
68
+
69
+ @include jkl.use-font-variables("jkl-checkbox");
70
+
71
+ display: flex;
72
+ flex-wrap: wrap;
73
+ min-height: var(--jkl-checkbox-height);
74
+ color: var(--text-color);
75
+ position: relative;
76
+
77
+ &__input {
78
+ // Hide native checkbox
79
+ position: absolute;
80
+ opacity: 0;
81
+ // Make sure that when the browser scrolls here because of focus, the control
82
+ // is positioned below the label so that the label becomes visible.
83
+ top: var(--jkl-checkbox-box-size);
84
+ left: calc(-0.5 * var(--jkl-checkbox-box-size));
85
+
86
+ &:checked {
87
+ + .jkl-checkbox__label .jkl-checkbox__check-mark::after {
88
+ animation: $_checkbox-checked-animation-name
89
+ jkl.timing("productive") ease-in-out forwards;
90
+ opacity: 1;
91
+ }
88
92
  }
89
- }
90
93
 
91
- &:indeterminate:not(:checked) {
92
- + .jkl-checkbox__label .jkl-checkbox__indeterminate-mark::after {
93
- animation: $_checkbox-indeterminate-animation-name
94
- jkl.timing("productive") ease-in-out forwards;
95
- opacity: 1;
94
+ &:indeterminate:not(:checked) {
95
+ + .jkl-checkbox__label
96
+ .jkl-checkbox__indeterminate-mark::after {
97
+ animation: $_checkbox-indeterminate-animation-name
98
+ jkl.timing("productive") ease-in-out forwards;
99
+ opacity: 1;
100
+ }
96
101
  }
97
- }
98
102
 
99
- &:focus-visible + .jkl-checkbox__label {
100
- color: var(--jkl-checkbox-focus-color);
103
+ &:focus-visible + .jkl-checkbox__label {
104
+ color: var(--jkl-checkbox-focus-color);
101
105
 
102
- & > .jkl-checkbox__mark {
103
- @include jkl.focus-outline;
106
+ & > .jkl-checkbox__mark {
107
+ @include jkl.focus-outline;
108
+ }
104
109
  }
105
- }
106
110
 
107
- &:disabled + .jkl-checkbox__label {
108
- color: var(--jkl-checkbox-disabled-color);
109
- }
111
+ &:disabled + .jkl-checkbox__label {
112
+ color: var(--jkl-checkbox-disabled-color);
113
+ }
110
114
 
111
- &:active {
112
- --background-color: var(--jkl-color-background-input-focus);
115
+ &:active {
116
+ --background-color: var(--jkl-color-background-input-focus);
117
+ }
113
118
  }
114
- }
115
119
 
116
- &__label {
117
- display: flex;
118
- min-width: 0;
119
- max-width: 100%;
120
- cursor: pointer;
121
- flex-shrink: 0;
122
-
123
- &:hover,
124
- &:active {
125
- .jkl-checkbox__mark {
126
- outline: 1px solid var(--box-color);
120
+ &__label {
121
+ display: flex;
122
+ min-width: 0;
123
+ max-width: 100%;
124
+ cursor: pointer;
125
+ flex-shrink: 0;
126
+
127
+ &:hover,
128
+ &:active {
129
+ .jkl-checkbox__mark {
130
+ outline: 1px solid var(--box-color);
131
+ }
127
132
  }
128
133
  }
129
- }
130
134
 
131
- &__text {
132
- margin: calc(
133
- (var(--jkl-checkbox-height) - var(--jkl-checkbox-line-height)) *
134
- 0.5
135
- )
136
- 0;
137
- translate: 0 jkl.rem(1px);
135
+ &__text {
136
+ margin: calc(
137
+ (
138
+ var(--jkl-checkbox-height) - var(--jkl-checkbox-line-height)
139
+ )
140
+ * 0.5
141
+ ) 0;
142
+ translate: 0 jkl.rem(1px);
138
143
 
139
- @include jkl.motion;
140
- transition-property: color;
141
- }
144
+ @include jkl.motion;
145
+ transition-property: color;
146
+ }
142
147
 
143
- &__mark {
144
- box-sizing: border-box;
145
- position: relative;
146
- height: var(--jkl-checkbox-box-size);
147
- width: var(--jkl-checkbox-box-size);
148
-
149
- margin-block: calc(
150
- (var(--jkl-checkbox-height) - var(--jkl-checkbox-box-size)) * 0.5
151
- );
152
- margin-inline-end: var(--jkl-unit-10);
153
- align-self: flex-start;
154
- flex-shrink: 0; // Don't allow the mark to shrink in case of really long text
155
-
156
- outline: none;
157
- border-radius: 0; // fixes rounded corners in iOS Safari
158
- border: 1px solid;
159
- border-color: var(--box-color);
160
- background-color: var(--background-color);
161
-
162
- @include jkl.motion;
163
- transition-property: background-color;
164
-
165
- @include jkl.forced-colors-mode {
166
- outline: revert;
167
- border: 1px solid ButtonText;
148
+ &__mark {
149
+ box-sizing: border-box;
150
+ position: relative;
151
+ height: var(--jkl-checkbox-box-size);
152
+ width: var(--jkl-checkbox-box-size);
153
+
154
+ margin-block: calc(
155
+ (
156
+ var(--jkl-checkbox-height) - var(--jkl-checkbox-box-size)
157
+ )
158
+ * 0.5
159
+ );
160
+ margin-inline-end: var(--jkl-unit-10);
161
+ align-self: flex-start;
162
+ flex-shrink: 0; // Don't allow the mark to shrink in case of really long text
163
+
164
+ outline: none;
165
+ border-radius: 0; // fixes rounded corners in iOS Safari
166
+ border: 1px solid;
167
+ border-color: var(--box-color);
168
+ background-color: var(--background-color);
169
+
170
+ @include jkl.motion;
171
+ transition-property: background-color;
172
+
173
+ @include jkl.forced-colors-mode {
174
+ outline: revert;
175
+ border: 1px solid ButtonText;
176
+ }
168
177
  }
169
- }
170
178
 
171
- // This is the check marker
172
- &__check-mark {
173
- &::after {
174
- content: "";
175
- position: absolute;
176
- transform-origin: bottom left;
177
- bottom: 42%;
178
- left: 18%;
179
+ // This is the check marker
180
+ &__check-mark {
181
+ &::after {
182
+ content: "";
183
+ position: absolute;
184
+ transform-origin: bottom left;
185
+ bottom: 42%;
186
+ left: 18%;
179
187
 
180
- display: block;
181
- width: 18%;
182
- height: 58%;
183
- transform: rotate(45deg);
188
+ display: block;
189
+ width: 18%;
190
+ height: 58%;
191
+ transform: rotate(45deg);
184
192
 
185
- border: solid jkl.rem(2px) var(--check-color);
186
- border-left-width: 0;
187
- border-top-width: 0;
193
+ border: solid jkl.rem(2px) var(--check-color);
194
+ border-left-width: 0;
195
+ border-top-width: 0;
188
196
 
189
- opacity: 0;
197
+ opacity: 0;
190
198
 
191
- @include jkl.motion;
192
- transition-property: opacity, border-color;
199
+ @include jkl.motion;
200
+ transition-property: opacity, border-color;
193
201
 
194
- @include jkl.forced-colors-mode {
195
- border-color: ButtonText;
202
+ @include jkl.forced-colors-mode {
203
+ border-color: ButtonText;
204
+ }
196
205
  }
197
206
  }
198
- }
199
207
 
200
- // This is the indeterminate marker
201
- &__indeterminate-mark {
202
- &::after {
203
- --width: 66%;
204
- --thickness: #{jkl.rem(2px)};
208
+ // This is the indeterminate marker
209
+ &__indeterminate-mark {
210
+ &::after {
211
+ --width: 66%;
212
+ --thickness: #{jkl.rem(2px)};
205
213
 
206
- content: "";
207
- position: absolute;
208
- bottom: calc(50% - (var(--thickness) / 2));
209
- left: calc((100% - var(--width)) / 2);
214
+ content: "";
215
+ position: absolute;
216
+ bottom: calc(50% - var(--thickness) / 2);
217
+ left: calc((100% - var(--width)) / 2);
210
218
 
211
- display: block;
212
- width: var(--width);
219
+ display: block;
220
+ width: var(--width);
213
221
 
214
- border-bottom: solid var(--thickness) var(--check-color);
222
+ border-bottom: solid var(--thickness) var(--check-color);
215
223
 
216
- opacity: 0;
224
+ opacity: 0;
217
225
 
218
- @include jkl.motion;
219
- transition-property: opacity, border-color;
226
+ @include jkl.motion;
227
+ transition-property: opacity, border-color;
220
228
 
221
- @include jkl.forced-colors-mode {
222
- border-color: ButtonText;
229
+ @include jkl.forced-colors-mode {
230
+ border-color: ButtonText;
231
+ }
223
232
  }
224
233
  }
225
- }
226
234
 
227
- &--inline {
228
- display: inline-flex;
235
+ &--inline {
236
+ display: inline-flex;
229
237
 
230
- &:not(:last-of-type) {
231
- margin-right: jkl.$unit-30;
238
+ &:not(:last-of-type) {
239
+ margin-right: jkl.$unit-30;
240
+ }
232
241
  }
233
- }
234
242
 
235
- &--error {
236
- --background-color: var(--jkl-color-background-alert-error);
237
- --check-color: var(--jkl-color-text-on-alert);
243
+ &--error {
244
+ --background-color: var(--jkl-color-background-alert-error);
245
+ --check-color: var(--jkl-color-text-on-alert);
246
+ }
238
247
  }
239
248
  }
@@ -1,6 +1,8 @@
1
1
  /**
2
- * Do not edit directly
3
- * Generated on Wed, 18 Dec 2024 12:25:37 GMT
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+ /**
5
+ * Do not edit directly, this file was auto-generated.
4
6
  */
5
7
  .jkl-input-panel {
6
8
  --outer-border-color: var(--jkl-color-border-input);
@@ -62,7 +64,7 @@
62
64
  --outer-border-thickness: 0.125rem;
63
65
  }
64
66
 
65
- @keyframes jkl-checkbox-checked-uggsrqu {
67
+ @keyframes jkl-checkbox-checked-ub3y1c5 {
66
68
  0% {
67
69
  width: 0;
68
70
  height: 0;
@@ -76,59 +78,63 @@
76
78
  height: 58%;
77
79
  }
78
80
  }
79
- .jkl-checkbox-panel {
80
- --checkbox-background-color: transparent;
81
- --checkbox-box-color: var(--jkl-color-border-action);
82
- --checkbox-check-color: var(--jkl-color-border-action);
83
- }
84
- .jkl-checkbox-panel__decorator {
85
- box-sizing: border-box;
86
- height: var(--jkl-checkbox-box-size);
87
- width: var(--jkl-checkbox-box-size);
88
- position: relative;
89
- outline: none;
90
- border-radius: 0;
91
- border: 1px solid;
92
- border-color: var(--checkbox-box-color);
93
- background-color: var(--checkbox-background-color);
94
- transition-timing-function: ease;
95
- transition-duration: 150ms;
96
- transition-property: background-color;
97
- }
98
- @media screen and (forced-colors: active) {
81
+ @layer jokul.components {
82
+ .jkl-checkbox-panel {
83
+ --checkbox-background-color: transparent;
84
+ --checkbox-box-color: var(--jkl-color-border-action);
85
+ --checkbox-check-color: var(--jkl-color-border-action);
86
+ }
99
87
  .jkl-checkbox-panel__decorator {
100
- outline: revert;
101
- border: 1px solid ButtonText;
88
+ box-sizing: border-box;
89
+ height: var(--jkl-checkbox-box-size);
90
+ width: var(--jkl-checkbox-box-size);
91
+ position: relative;
92
+ outline: none;
93
+ border-radius: 0;
94
+ border: 1px solid;
95
+ border-color: var(--checkbox-box-color);
96
+ background-color: var(--checkbox-background-color);
97
+ transition-timing-function: ease;
98
+ transition-duration: 150ms;
99
+ transition-property: background-color;
100
+ }
101
+ @media screen and (forced-colors: active) {
102
+ .jkl-checkbox-panel__decorator {
103
+ outline: revert;
104
+ border: 1px solid ButtonText;
105
+ }
102
106
  }
103
- }
104
- .jkl-checkbox-panel__decorator::after {
105
- content: "";
106
- position: absolute;
107
- transform-origin: bottom left;
108
- bottom: 42%;
109
- left: 18%;
110
- display: block;
111
- width: 18%;
112
- height: 58%;
113
- transform: rotate(45deg);
114
- border: solid 0.125rem var(--checkbox-check-color);
115
- border-left-width: 0;
116
- border-top-width: 0;
117
- opacity: 0;
118
- transition-timing-function: ease;
119
- transition-duration: 150ms;
120
- transition-property: opacity, border-color;
121
- }
122
- @media screen and (forced-colors: active) {
123
107
  .jkl-checkbox-panel__decorator::after {
124
- border-color: ButtonText;
108
+ content: "";
109
+ position: absolute;
110
+ transform-origin: bottom left;
111
+ bottom: 42%;
112
+ left: 18%;
113
+ display: block;
114
+ width: 18%;
115
+ height: 58%;
116
+ transform: rotate(45deg);
117
+ border: solid 0.125rem var(--checkbox-check-color);
118
+ border-left-width: 0;
119
+ border-top-width: 0;
120
+ opacity: 0;
121
+ transition-timing-function: ease;
122
+ transition-duration: 150ms;
123
+ transition-property: opacity, border-color;
124
+ }
125
+ @media screen and (forced-colors: active) {
126
+ .jkl-checkbox-panel__decorator::after {
127
+ border-color: ButtonText;
128
+ }
129
+ }
130
+ .jkl-checkbox-panel:has(:checked) .jkl-checkbox-panel__decorator::after {
131
+ animation: jkl-checkbox-checked-ub3y1c5 150ms ease-in-out forwards;
132
+ opacity: 1;
133
+ }
134
+ .jkl-checkbox-panel:has([aria-invalid=true]) {
135
+ --checkbox-background-color: var(
136
+ --jkl-color-background-alert-error
137
+ );
138
+ --checkbox-check-color: var(--jkl-color-text-on-alert);
125
139
  }
126
- }
127
- .jkl-checkbox-panel:has(:checked) .jkl-checkbox-panel__decorator::after {
128
- animation: jkl-checkbox-checked-uggsrqu 150ms ease-in-out forwards;
129
- opacity: 1;
130
- }
131
- .jkl-checkbox-panel:has([aria-invalid=true]) {
132
- --checkbox-background-color: var(--jkl-color-background-alert-error);
133
- --checkbox-check-color: var(--jkl-color-text-on-alert);
134
140
  }
@@ -1 +1,3 @@
1
- .jkl-input-panel{--outer-border-color:var(--jkl-color-border-input);--outer-border-thickness:0.0625rem;--background-color:#0000;background-color:var(--background-color);border-radius:4px;box-shadow:inset 0 0 0 var(--outer-border-thickness) var(--outer-border-color);cursor:pointer;padding-left:1rem}.jkl-input-panel__input{opacity:0;position:absolute;top:-6px}.jkl-input-panel__label{align-items:center;cursor:pointer;display:grid;gap:.5rem;grid-template-columns:-webkit-min-content fit-content(30%) 1fr;grid-template-columns:min-content fit-content(30%) 1fr}.jkl-input-panel__main-label{padding-block:1.5rem}.jkl-input-panel__extra-label{align-self:stretch;margin-left:1rem;margin-right:1rem}.jkl-input-panel__extra-label>:first-child{padding-right:1rem}.jkl-input-panel__extra-label--text{align-items:center;display:flex;height:100%}.jkl-input-panel__content{cursor:default;height:0;overflow:hidden;padding-right:1.5rem}.jkl-input-panel:has([aria-expanded=true]) .jkl-input-panel__content,.jkl-input-panel__content[data-alwaysopen=true]{height:auto;padding-bottom:24px}.jkl-input-panel:has(:focus-visible){outline:3px solid var(--jkl-color-border-action);outline-offset:3px}.jkl-input-panel:has(:checked){--background-color:var(--jkl-color-background-container-high)}.jkl-input-panel:hover{--outer-border-color:var(--jkl-color-border-separator-hover);--outer-border-thickness:0.125rem}@keyframes jkl-checkbox-checked-uggsrqu{0%{height:0;width:0}40%{height:0;width:18%}to{height:58%;width:18%}}.jkl-checkbox-panel{--checkbox-background-color:#0000;--checkbox-box-color:var(--jkl-color-border-action);--checkbox-check-color:var(--jkl-color-border-action)}.jkl-checkbox-panel__decorator{background-color:var(--checkbox-background-color);border:1px solid;border-color:var(--checkbox-box-color);border-radius:0;box-sizing:border-box;height:var(--jkl-checkbox-box-size);outline:none;position:relative;transition-duration:.15s;transition-property:background-color;transition-timing-function:ease;width:var(--jkl-checkbox-box-size)}@media screen and (forced-colors:active){.jkl-checkbox-panel__decorator{border:1px solid ButtonText;outline:revert}}.jkl-checkbox-panel__decorator:after{border-bottom:.125rem solid var(--checkbox-check-color);border-left-width:.125rem;border-left:0 solid var(--checkbox-check-color);border-right:.125rem solid var(--checkbox-check-color);border-top-width:.125rem;border-top:0 solid var(--checkbox-check-color);bottom:42%;content:"";display:block;height:58%;left:18%;opacity:0;position:absolute;transform:rotate(45deg);transform-origin:bottom left;transition-duration:.15s;transition-property:opacity,border-color;transition-timing-function:ease;width:18%}@media screen and (forced-colors:active){.jkl-checkbox-panel__decorator:after{border-color:ButtonText}}.jkl-checkbox-panel:has(:checked) .jkl-checkbox-panel__decorator:after{animation:jkl-checkbox-checked-uggsrqu .15s ease-in-out forwards;opacity:1}.jkl-checkbox-panel:has([aria-invalid=true]){--checkbox-background-color:var(--jkl-color-background-alert-error);--checkbox-check-color:var(--jkl-color-text-on-alert)}
1
+ .jkl-input-panel{--outer-border-color:var(--jkl-color-border-input);--outer-border-thickness:0.0625rem;--background-color:#0000;background-color:var(--background-color);border-radius:4px;box-shadow:inset 0 0 0 var(--outer-border-thickness) var(--outer-border-color);cursor:pointer;padding-left:1rem}.jkl-input-panel__input{opacity:0;position:absolute;top:-6px}.jkl-input-panel__label{align-items:center;cursor:pointer;display:grid;gap:.5rem;grid-template-columns:-webkit-min-content fit-content(30%) 1fr;grid-template-columns:min-content fit-content(30%) 1fr}.jkl-input-panel__main-label{padding-block:1.5rem}.jkl-input-panel__extra-label{align-self:stretch;margin-left:1rem;margin-right:1rem}.jkl-input-panel__extra-label>:first-child{padding-right:1rem}.jkl-input-panel__extra-label--text{align-items:center;display:flex;height:100%}.jkl-input-panel__content{cursor:default;height:0;overflow:hidden;padding-right:1.5rem}.jkl-input-panel:has([aria-expanded=true]) .jkl-input-panel__content,.jkl-input-panel__content[data-alwaysopen=true]{height:auto;padding-bottom:24px}.jkl-input-panel:has(:focus-visible){outline:3px solid var(--jkl-color-border-action);outline-offset:3px}.jkl-input-panel:has(:checked){--background-color:var(--jkl-color-background-container-high)}.jkl-input-panel:hover{--outer-border-color:var(--jkl-color-border-separator-hover);--outer-border-thickness:0.125rem}@keyframes jkl-checkbox-checked-ub3y1c5{0%{height:0;width:0}40%{height:0;width:18%}to{height:58%;width:18%}}@layer jokul.components{.jkl-checkbox-panel{--checkbox-background-color:#0000;--checkbox-box-color:var(--jkl-color-border-action);--checkbox-check-color:var(--jkl-color-border-action)}.jkl-checkbox-panel__decorator{background-color:var(--checkbox-background-color);border:1px solid;border-color:var(--checkbox-box-color);border-radius:0;box-sizing:border-box;height:var(--jkl-checkbox-box-size);outline:none;position:relative;transition-duration:.15s;transition-property:background-color;transition-timing-function:ease;width:var(--jkl-checkbox-box-size)}@media screen and (forced-colors:active){.jkl-checkbox-panel__decorator{border:1px solid ButtonText;outline:revert}}.jkl-checkbox-panel__decorator:after{border-bottom:.125rem solid var(--checkbox-check-color);border-left-width:.125rem;border-left:0 solid var(--checkbox-check-color);border-right:.125rem solid var(--checkbox-check-color);border-top-width:.125rem;border-top:0 solid var(--checkbox-check-color);bottom:42%;content:"";display:block;height:58%;left:18%;opacity:0;position:absolute;transform:rotate(45deg);transform-origin:bottom left;transition-duration:.15s;transition-property:opacity,border-color;transition-timing-function:ease;width:18%}@media screen and (forced-colors:active){.jkl-checkbox-panel__decorator:after{border-color:ButtonText}}.jkl-checkbox-panel:has(:checked) .jkl-checkbox-panel__decorator:after{animation:jkl-checkbox-checked-ub3y1c5 .15s ease-in-out forwards;opacity:1}.jkl-checkbox-panel:has([aria-invalid=true]){--checkbox-background-color:var(
2
+ --jkl-color-background-alert-error
3
+ );--checkbox-check-color:var(--jkl-color-text-on-alert)}}