@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
@@ -1,191 +1,193 @@
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.
4
3
  */
5
- :root,
6
- [data-layout-density=comfortable],
7
- [data-density=comfortable] {
8
- --jkl-checkbox-font-size: var(--jkl-body-font-size);
9
- --jkl-checkbox-line-height: var(--jkl-body-line-height);
10
- --jkl-checkbox-font-weight: var(--jkl-body-font-weight);
11
- --jkl-checkbox-height: 3rem;
12
- --jkl-checkbox-box-size: 1.5rem;
13
- --jkl-checkbox-line-height: 2rem;
14
- }
15
- @media (width >= 0) and (max-width: 679px) {
4
+ /**
5
+ * Do not edit directly, this file was auto-generated.
6
+ */
7
+ @layer jokul.components {
16
8
  :root,
17
9
  [data-layout-density=comfortable],
18
10
  [data-density=comfortable] {
19
- --jkl-checkbox-height: 2.5rem;
11
+ --jkl-checkbox-font-size: var(--jkl-body-font-size);
12
+ --jkl-checkbox-line-height: var(--jkl-body-line-height);
13
+ --jkl-checkbox-font-weight: var(--jkl-body-font-weight);
14
+ --jkl-checkbox-height: 3rem;
20
15
  --jkl-checkbox-box-size: 1.5rem;
21
- --jkl-checkbox-line-height: 1.75rem;
22
- }
23
- }
24
-
25
- [data-layout-density=compact],
26
- [data-density=compact] {
27
- --jkl-checkbox-font-size: var(--jkl-small-font-size);
28
- --jkl-checkbox-line-height: var(--jkl-small-line-height);
29
- --jkl-checkbox-font-weight: var(--jkl-small-font-weight);
30
- --jkl-checkbox-height: 1.75rem;
31
- --jkl-checkbox-box-size: 1.125rem;
32
- --jkl-checkbox-line-height: 1.5rem;
33
- }
34
-
35
- @keyframes jkl-checkbox-checked-u9ylohs {
36
- 0% {
37
- width: 0;
38
- height: 0;
39
- }
40
- 40% {
41
- width: 18%;
42
- height: 0;
16
+ --jkl-checkbox-line-height: 2rem;
43
17
  }
44
- 100% {
45
- width: 18%;
46
- height: 58%;
18
+ @media (width >= 0) and (max-width: 679px) {
19
+ :root,
20
+ [data-layout-density=comfortable],
21
+ [data-density=comfortable] {
22
+ --jkl-checkbox-height: 2.5rem;
23
+ --jkl-checkbox-box-size: 1.5rem;
24
+ --jkl-checkbox-line-height: 1.75rem;
25
+ }
26
+ }
27
+ [data-layout-density=compact],
28
+ [data-density=compact] {
29
+ --jkl-checkbox-font-size: var(--jkl-small-font-size);
30
+ --jkl-checkbox-line-height: var(--jkl-small-line-height);
31
+ --jkl-checkbox-font-weight: var(--jkl-small-font-weight);
32
+ --jkl-checkbox-height: 1.75rem;
33
+ --jkl-checkbox-box-size: 1.125rem;
34
+ --jkl-checkbox-line-height: 1.5rem;
35
+ }
36
+ @keyframes jkl-checkbox-checked-udrzh3s {
37
+ 0% {
38
+ width: 0;
39
+ height: 0;
40
+ }
41
+ 40% {
42
+ width: 18%;
43
+ height: 0;
44
+ }
45
+ 100% {
46
+ width: 18%;
47
+ height: 58%;
48
+ }
49
+ }
50
+ @keyframes jkl-checkbox-indeterminate-udrzh48 {
51
+ 0% {
52
+ width: 0;
53
+ }
54
+ 100% {
55
+ width: 66%;
56
+ }
57
+ }
58
+ .jkl-checkbox {
59
+ --box-color: var(--jkl-color-border-action);
60
+ --check-color: var(--jkl-color-border-action);
61
+ --text-color: var(--jkl-color-text-default);
62
+ --background-color: transparent;
63
+ font-size: var(--jkl-checkbox-font-size);
64
+ line-height: var(--jkl-checkbox-line-height);
65
+ font-weight: var(--jkl-checkbox-font-weight);
66
+ display: flex;
67
+ flex-wrap: wrap;
68
+ min-height: var(--jkl-checkbox-height);
69
+ color: var(--text-color);
70
+ position: relative;
71
+ }
72
+ .jkl-checkbox__input {
73
+ position: absolute;
74
+ opacity: 0;
75
+ top: var(--jkl-checkbox-box-size);
76
+ left: calc(-0.5 * var(--jkl-checkbox-box-size));
77
+ }
78
+ .jkl-checkbox__input:checked + .jkl-checkbox__label .jkl-checkbox__check-mark::after {
79
+ animation: jkl-checkbox-checked-udrzh3s 150ms ease-in-out forwards;
80
+ opacity: 1;
81
+ }
82
+ .jkl-checkbox__input:indeterminate:not(:checked) + .jkl-checkbox__label .jkl-checkbox__indeterminate-mark::after {
83
+ animation: jkl-checkbox-indeterminate-udrzh48 150ms ease-in-out forwards;
84
+ opacity: 1;
85
+ }
86
+ .jkl-checkbox__input:focus-visible + .jkl-checkbox__label {
87
+ color: var(--jkl-checkbox-focus-color);
88
+ }
89
+ .jkl-checkbox__input:focus-visible + .jkl-checkbox__label > .jkl-checkbox__mark {
90
+ outline: 3px solid var(--jkl-color-border-action);
91
+ outline-offset: 3px;
92
+ }
93
+ .jkl-checkbox__input:disabled + .jkl-checkbox__label {
94
+ color: var(--jkl-checkbox-disabled-color);
95
+ }
96
+ .jkl-checkbox__input:active {
97
+ --background-color: var(--jkl-color-background-input-focus);
98
+ }
99
+ .jkl-checkbox__label {
100
+ display: flex;
101
+ min-width: 0;
102
+ max-width: 100%;
103
+ cursor: pointer;
104
+ flex-shrink: 0;
105
+ }
106
+ .jkl-checkbox__label:hover .jkl-checkbox__mark, .jkl-checkbox__label:active .jkl-checkbox__mark {
107
+ outline: 1px solid var(--box-color);
108
+ }
109
+ .jkl-checkbox__text {
110
+ margin: calc((var(--jkl-checkbox-height) - var(--jkl-checkbox-line-height)) * 0.5) 0;
111
+ translate: 0 0.0625rem;
112
+ transition-timing-function: ease;
113
+ transition-duration: 150ms;
114
+ transition-property: color;
47
115
  }
48
- }
49
- @keyframes jkl-checkbox-indeterminate-u9yloih {
50
- 0% {
51
- width: 0;
52
- }
53
- 100% {
54
- width: 66%;
55
- }
56
- }
57
- .jkl-checkbox {
58
- --box-color: var(--jkl-color-border-action);
59
- --check-color: var(--jkl-color-border-action);
60
- --text-color: var(--jkl-color-text-default);
61
- --background-color: transparent;
62
- font-size: var(--jkl-checkbox-font-size);
63
- line-height: var(--jkl-checkbox-line-height);
64
- font-weight: var(--jkl-checkbox-font-weight);
65
- display: flex;
66
- flex-wrap: wrap;
67
- min-height: var(--jkl-checkbox-height);
68
- color: var(--text-color);
69
- position: relative;
70
- }
71
- .jkl-checkbox__input {
72
- position: absolute;
73
- opacity: 0;
74
- top: var(--jkl-checkbox-box-size);
75
- left: calc(-0.5 * var(--jkl-checkbox-box-size));
76
- }
77
- .jkl-checkbox__input:checked + .jkl-checkbox__label .jkl-checkbox__check-mark::after {
78
- animation: jkl-checkbox-checked-u9ylohs 150ms ease-in-out forwards;
79
- opacity: 1;
80
- }
81
- .jkl-checkbox__input:indeterminate:not(:checked) + .jkl-checkbox__label .jkl-checkbox__indeterminate-mark::after {
82
- animation: jkl-checkbox-indeterminate-u9yloih 150ms ease-in-out forwards;
83
- opacity: 1;
84
- }
85
- .jkl-checkbox__input:focus-visible + .jkl-checkbox__label {
86
- color: var(--jkl-checkbox-focus-color);
87
- }
88
- .jkl-checkbox__input:focus-visible + .jkl-checkbox__label > .jkl-checkbox__mark {
89
- outline: 3px solid var(--jkl-color-border-action);
90
- outline-offset: 3px;
91
- }
92
- .jkl-checkbox__input:disabled + .jkl-checkbox__label {
93
- color: var(--jkl-checkbox-disabled-color);
94
- }
95
- .jkl-checkbox__input:active {
96
- --background-color: var(--jkl-color-background-input-focus);
97
- }
98
- .jkl-checkbox__label {
99
- display: flex;
100
- min-width: 0;
101
- max-width: 100%;
102
- cursor: pointer;
103
- flex-shrink: 0;
104
- }
105
- .jkl-checkbox__label:hover .jkl-checkbox__mark, .jkl-checkbox__label:active .jkl-checkbox__mark {
106
- outline: 1px solid var(--box-color);
107
- }
108
- .jkl-checkbox__text {
109
- margin: calc((var(--jkl-checkbox-height) - var(--jkl-checkbox-line-height)) * 0.5) 0;
110
- translate: 0 0.0625rem;
111
- transition-timing-function: ease;
112
- transition-duration: 150ms;
113
- transition-property: color;
114
- }
115
- .jkl-checkbox__mark {
116
- box-sizing: border-box;
117
- position: relative;
118
- height: var(--jkl-checkbox-box-size);
119
- width: var(--jkl-checkbox-box-size);
120
- margin-block: calc((var(--jkl-checkbox-height) - var(--jkl-checkbox-box-size)) * 0.5);
121
- margin-inline-end: var(--jkl-unit-10);
122
- align-self: flex-start;
123
- flex-shrink: 0;
124
- outline: none;
125
- border-radius: 0;
126
- border: 1px solid;
127
- border-color: var(--box-color);
128
- background-color: var(--background-color);
129
- transition-timing-function: ease;
130
- transition-duration: 150ms;
131
- transition-property: background-color;
132
- }
133
- @media screen and (forced-colors: active) {
134
116
  .jkl-checkbox__mark {
135
- outline: revert;
136
- border: 1px solid ButtonText;
137
- }
138
- }
139
- .jkl-checkbox__check-mark::after {
140
- content: "";
141
- position: absolute;
142
- transform-origin: bottom left;
143
- bottom: 42%;
144
- left: 18%;
145
- display: block;
146
- width: 18%;
147
- height: 58%;
148
- transform: rotate(45deg);
149
- border: solid 0.125rem var(--check-color);
150
- border-left-width: 0;
151
- border-top-width: 0;
152
- opacity: 0;
153
- transition-timing-function: ease;
154
- transition-duration: 150ms;
155
- transition-property: opacity, border-color;
156
- }
157
- @media screen and (forced-colors: active) {
117
+ box-sizing: border-box;
118
+ position: relative;
119
+ height: var(--jkl-checkbox-box-size);
120
+ width: var(--jkl-checkbox-box-size);
121
+ margin-block: calc((var(--jkl-checkbox-height) - var(--jkl-checkbox-box-size)) * 0.5);
122
+ margin-inline-end: var(--jkl-unit-10);
123
+ align-self: flex-start;
124
+ flex-shrink: 0;
125
+ outline: none;
126
+ border-radius: 0;
127
+ border: 1px solid;
128
+ border-color: var(--box-color);
129
+ background-color: var(--background-color);
130
+ transition-timing-function: ease;
131
+ transition-duration: 150ms;
132
+ transition-property: background-color;
133
+ }
134
+ @media screen and (forced-colors: active) {
135
+ .jkl-checkbox__mark {
136
+ outline: revert;
137
+ border: 1px solid ButtonText;
138
+ }
139
+ }
158
140
  .jkl-checkbox__check-mark::after {
159
- border-color: ButtonText;
160
- }
161
- }
162
- .jkl-checkbox__indeterminate-mark::after {
163
- --width: 66%;
164
- --thickness: 0.125rem;
165
- content: "";
166
- position: absolute;
167
- bottom: calc(50% - var(--thickness) / 2);
168
- left: calc((100% - var(--width)) / 2);
169
- display: block;
170
- width: var(--width);
171
- border-bottom: solid var(--thickness) var(--check-color);
172
- opacity: 0;
173
- transition-timing-function: ease;
174
- transition-duration: 150ms;
175
- transition-property: opacity, border-color;
176
- }
177
- @media screen and (forced-colors: active) {
141
+ content: "";
142
+ position: absolute;
143
+ transform-origin: bottom left;
144
+ bottom: 42%;
145
+ left: 18%;
146
+ display: block;
147
+ width: 18%;
148
+ height: 58%;
149
+ transform: rotate(45deg);
150
+ border: solid 0.125rem var(--check-color);
151
+ border-left-width: 0;
152
+ border-top-width: 0;
153
+ opacity: 0;
154
+ transition-timing-function: ease;
155
+ transition-duration: 150ms;
156
+ transition-property: opacity, border-color;
157
+ }
158
+ @media screen and (forced-colors: active) {
159
+ .jkl-checkbox__check-mark::after {
160
+ border-color: ButtonText;
161
+ }
162
+ }
178
163
  .jkl-checkbox__indeterminate-mark::after {
179
- border-color: ButtonText;
180
- }
181
- }
182
- .jkl-checkbox--inline {
183
- display: inline-flex;
184
- }
185
- .jkl-checkbox--inline:not(:last-of-type) {
186
- margin-right: calc(var(--jkl-unit-10) * 3);
187
- }
188
- .jkl-checkbox--error {
189
- --background-color: var(--jkl-color-background-alert-error);
190
- --check-color: var(--jkl-color-text-on-alert);
164
+ --width: 66%;
165
+ --thickness: 0.125rem;
166
+ content: "";
167
+ position: absolute;
168
+ bottom: calc(50% - var(--thickness) / 2);
169
+ left: calc((100% - var(--width)) / 2);
170
+ display: block;
171
+ width: var(--width);
172
+ border-bottom: solid var(--thickness) var(--check-color);
173
+ opacity: 0;
174
+ transition-timing-function: ease;
175
+ transition-duration: 150ms;
176
+ transition-property: opacity, border-color;
177
+ }
178
+ @media screen and (forced-colors: active) {
179
+ .jkl-checkbox__indeterminate-mark::after {
180
+ border-color: ButtonText;
181
+ }
182
+ }
183
+ .jkl-checkbox--inline {
184
+ display: inline-flex;
185
+ }
186
+ .jkl-checkbox--inline:not(:last-of-type) {
187
+ margin-right: calc(var(--jkl-unit-10) * 3);
188
+ }
189
+ .jkl-checkbox--error {
190
+ --background-color: var(--jkl-color-background-alert-error);
191
+ --check-color: var(--jkl-color-text-on-alert);
192
+ }
191
193
  }
@@ -1 +1 @@
1
- :root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-checkbox-font-size:var(--jkl-body-font-size);--jkl-checkbox-line-height:var(--jkl-body-line-height);--jkl-checkbox-font-weight:var(--jkl-body-font-weight);--jkl-checkbox-height:3rem;--jkl-checkbox-box-size:1.5rem;--jkl-checkbox-line-height:2rem}@media (width >= 0) and (max-width:679px){:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-checkbox-height:2.5rem;--jkl-checkbox-box-size:1.5rem;--jkl-checkbox-line-height:1.75rem}}[data-density=compact],[data-layout-density=compact]{--jkl-checkbox-font-size:var(--jkl-small-font-size);--jkl-checkbox-line-height:var(--jkl-small-line-height);--jkl-checkbox-font-weight:var(--jkl-small-font-weight);--jkl-checkbox-height:1.75rem;--jkl-checkbox-box-size:1.125rem;--jkl-checkbox-line-height:1.5rem}@keyframes jkl-checkbox-checked-u9ylohs{0%{height:0;width:0}40%{height:0;width:18%}to{height:58%;width:18%}}@keyframes jkl-checkbox-indeterminate-u9yloih{0%{width:0}to{width:66%}}.jkl-checkbox{--box-color:var(--jkl-color-border-action);--check-color:var(--jkl-color-border-action);--text-color:var(--jkl-color-text-default);--background-color:#0000;color:var(--text-color);display:flex;flex-wrap:wrap;font-size:var(--jkl-checkbox-font-size);font-weight:var(--jkl-checkbox-font-weight);line-height:var(--jkl-checkbox-line-height);min-height:var(--jkl-checkbox-height);position:relative}.jkl-checkbox__input{left:calc(var(--jkl-checkbox-box-size)*-.5);opacity:0;position:absolute;top:var(--jkl-checkbox-box-size)}.jkl-checkbox__input:checked+.jkl-checkbox__label .jkl-checkbox__check-mark:after{animation:jkl-checkbox-checked-u9ylohs .15s ease-in-out forwards;opacity:1}.jkl-checkbox__input:indeterminate:not(:checked)+.jkl-checkbox__label .jkl-checkbox__indeterminate-mark:after{animation:jkl-checkbox-indeterminate-u9yloih .15s ease-in-out forwards;opacity:1}.jkl-checkbox__input:focus-visible+.jkl-checkbox__label{color:var(--jkl-checkbox-focus-color)}.jkl-checkbox__input:focus-visible+.jkl-checkbox__label>.jkl-checkbox__mark{outline:3px solid var(--jkl-color-border-action);outline-offset:3px}.jkl-checkbox__input:disabled+.jkl-checkbox__label{color:var(--jkl-checkbox-disabled-color)}.jkl-checkbox__input:active{--background-color:var(--jkl-color-background-input-focus)}.jkl-checkbox__label{cursor:pointer;display:flex;flex-shrink:0;max-width:100%;min-width:0}.jkl-checkbox__label:active .jkl-checkbox__mark,.jkl-checkbox__label:hover .jkl-checkbox__mark{outline:1px solid var(--box-color)}.jkl-checkbox__text{margin:calc((var(--jkl-checkbox-height) - var(--jkl-checkbox-line-height))*.5) 0;transition-duration:.15s;transition-property:color;transition-timing-function:ease;translate:0 .0625rem}.jkl-checkbox__mark{box-sizing:border-box;height:var(--jkl-checkbox-box-size);margin-block:calc((var(--jkl-checkbox-height) - var(--jkl-checkbox-box-size))*.5);position:relative;width:var(--jkl-checkbox-box-size);-webkit-margin-end:var(--jkl-unit-10);align-self:flex-start;background-color:var(--background-color);border:1px solid;border-color:var(--box-color);border-radius:0;flex-shrink:0;margin-inline-end:var(--jkl-unit-10);outline:none;transition-duration:.15s;transition-property:background-color;transition-timing-function:ease}@media screen and (forced-colors:active){.jkl-checkbox__mark{border:1px solid ButtonText;outline:revert}}.jkl-checkbox__check-mark:after{border-bottom:.125rem solid var(--check-color);border-left-width:.125rem;border-left:0 solid var(--check-color);border-right:.125rem solid var(--check-color);border-top-width:.125rem;border-top:0 solid var(--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__check-mark:after{border-color:ButtonText}}.jkl-checkbox__indeterminate-mark:after{--width:66%;--thickness:0.125rem;border-bottom:solid var(--thickness) var(--check-color);bottom:calc(50% - var(--thickness)/2);content:"";display:block;left:calc((100% - var(--width))/2);opacity:0;position:absolute;transition-duration:.15s;transition-property:opacity,border-color;transition-timing-function:ease;width:var(--width)}@media screen and (forced-colors:active){.jkl-checkbox__indeterminate-mark:after{border-color:ButtonText}}.jkl-checkbox--inline{display:inline-flex}.jkl-checkbox--inline:not(:last-of-type){margin-right:calc(var(--jkl-unit-10)*3)}.jkl-checkbox--error{--background-color:var(--jkl-color-background-alert-error);--check-color:var(--jkl-color-text-on-alert)}
1
+ @layer jokul.components{:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-checkbox-font-size:var(--jkl-body-font-size);--jkl-checkbox-line-height:var(--jkl-body-line-height);--jkl-checkbox-font-weight:var(--jkl-body-font-weight);--jkl-checkbox-height:3rem;--jkl-checkbox-box-size:1.5rem;--jkl-checkbox-line-height:2rem}@media (width >= 0) and (max-width:679px){:root,[data-density=comfortable],[data-layout-density=comfortable]{--jkl-checkbox-height:2.5rem;--jkl-checkbox-box-size:1.5rem;--jkl-checkbox-line-height:1.75rem}}[data-density=compact],[data-layout-density=compact]{--jkl-checkbox-font-size:var(--jkl-small-font-size);--jkl-checkbox-line-height:var(--jkl-small-line-height);--jkl-checkbox-font-weight:var(--jkl-small-font-weight);--jkl-checkbox-height:1.75rem;--jkl-checkbox-box-size:1.125rem;--jkl-checkbox-line-height:1.5rem}@keyframes jkl-checkbox-checked-udrzh3s{0%{height:0;width:0}40%{height:0;width:18%}to{height:58%;width:18%}}@keyframes jkl-checkbox-indeterminate-udrzh48{0%{width:0}to{width:66%}}.jkl-checkbox{--box-color:var(--jkl-color-border-action);--check-color:var(--jkl-color-border-action);--text-color:var(--jkl-color-text-default);--background-color:#0000;color:var(--text-color);display:flex;flex-wrap:wrap;font-size:var(--jkl-checkbox-font-size);font-weight:var(--jkl-checkbox-font-weight);line-height:var(--jkl-checkbox-line-height);min-height:var(--jkl-checkbox-height);position:relative}.jkl-checkbox__input{left:calc(var(--jkl-checkbox-box-size)*-.5);opacity:0;position:absolute;top:var(--jkl-checkbox-box-size)}.jkl-checkbox__input:checked+.jkl-checkbox__label .jkl-checkbox__check-mark:after{animation:jkl-checkbox-checked-udrzh3s .15s ease-in-out forwards;opacity:1}.jkl-checkbox__input:indeterminate:not(:checked)+.jkl-checkbox__label .jkl-checkbox__indeterminate-mark:after{animation:jkl-checkbox-indeterminate-udrzh48 .15s ease-in-out forwards;opacity:1}.jkl-checkbox__input:focus-visible+.jkl-checkbox__label{color:var(--jkl-checkbox-focus-color)}.jkl-checkbox__input:focus-visible+.jkl-checkbox__label>.jkl-checkbox__mark{outline:3px solid var(--jkl-color-border-action);outline-offset:3px}.jkl-checkbox__input:disabled+.jkl-checkbox__label{color:var(--jkl-checkbox-disabled-color)}.jkl-checkbox__input:active{--background-color:var(--jkl-color-background-input-focus)}.jkl-checkbox__label{cursor:pointer;display:flex;flex-shrink:0;max-width:100%;min-width:0}.jkl-checkbox__label:active .jkl-checkbox__mark,.jkl-checkbox__label:hover .jkl-checkbox__mark{outline:1px solid var(--box-color)}.jkl-checkbox__text{margin:calc((var(--jkl-checkbox-height) - var(--jkl-checkbox-line-height))*.5) 0;transition-duration:.15s;transition-property:color;transition-timing-function:ease;translate:0 .0625rem}.jkl-checkbox__mark{box-sizing:border-box;height:var(--jkl-checkbox-box-size);margin-block:calc((var(--jkl-checkbox-height) - var(--jkl-checkbox-box-size))*.5);position:relative;width:var(--jkl-checkbox-box-size);-webkit-margin-end:var(--jkl-unit-10);align-self:flex-start;background-color:var(--background-color);border:1px solid;border-color:var(--box-color);border-radius:0;flex-shrink:0;margin-inline-end:var(--jkl-unit-10);outline:none;transition-duration:.15s;transition-property:background-color;transition-timing-function:ease}@media screen and (forced-colors:active){.jkl-checkbox__mark{border:1px solid ButtonText;outline:revert}}.jkl-checkbox__check-mark:after{border-bottom:.125rem solid var(--check-color);border-left-width:.125rem;border-left:0 solid var(--check-color);border-right:.125rem solid var(--check-color);border-top-width:.125rem;border-top:0 solid var(--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__check-mark:after{border-color:ButtonText}}.jkl-checkbox__indeterminate-mark:after{--width:66%;--thickness:0.125rem;border-bottom:solid var(--thickness) var(--check-color);bottom:calc(50% - var(--thickness)/2);content:"";display:block;left:calc((100% - var(--width))/2);opacity:0;position:absolute;transition-duration:.15s;transition-property:opacity,border-color;transition-timing-function:ease;width:var(--width)}@media screen and (forced-colors:active){.jkl-checkbox__indeterminate-mark:after{border-color:ButtonText}}.jkl-checkbox--inline{display:inline-flex}.jkl-checkbox--inline:not(:last-of-type){margin-right:calc(var(--jkl-unit-10)*3)}.jkl-checkbox--error{--background-color:var(--jkl-color-background-alert-error);--check-color:var(--jkl-color-text-on-alert)}}