@fremtind/jokul 0.1.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 (358) hide show
  1. package/LICENSE +21 -0
  2. package/build/build-stats.html +4842 -0
  3. package/build/cjs/components/ScreenReaderOnly.js +2 -0
  4. package/build/cjs/components/ScreenReaderOnly.js.map +1 -0
  5. package/build/cjs/components/SlotComponent.js +2 -0
  6. package/build/cjs/components/SlotComponent.js.map +1 -0
  7. package/build/cjs/components/index.js +2 -0
  8. package/build/cjs/components/index.js.map +1 -0
  9. package/build/cjs/components/navigation/Link.js +2 -0
  10. package/build/cjs/components/navigation/Link.js.map +1 -0
  11. package/build/cjs/components/navigation/NavLink.js +2 -0
  12. package/build/cjs/components/navigation/NavLink.js.map +1 -0
  13. package/build/cjs/components/navigation/index.js +2 -0
  14. package/build/cjs/components/navigation/index.js.map +1 -0
  15. package/build/cjs/core/as-child.js +2 -0
  16. package/build/cjs/core/as-child.js.map +1 -0
  17. package/build/cjs/core/index.js +2 -0
  18. package/build/cjs/core/index.js.map +1 -0
  19. package/build/cjs/core/polymorphism.js +2 -0
  20. package/build/cjs/core/polymorphism.js.map +1 -0
  21. package/build/cjs/core/tokens.js +2 -0
  22. package/build/cjs/core/tokens.js.map +1 -0
  23. package/build/cjs/core/types.js +2 -0
  24. package/build/cjs/core/types.js.map +1 -0
  25. package/build/cjs/core/utils/breakpoints.js +2 -0
  26. package/build/cjs/core/utils/breakpoints.js.map +1 -0
  27. package/build/cjs/core/utils/density.js +2 -0
  28. package/build/cjs/core/utils/density.js.map +1 -0
  29. package/build/cjs/core/utils/getValuePair.js +2 -0
  30. package/build/cjs/core/utils/getValuePair.js.map +1 -0
  31. package/build/cjs/core/utils/index.js +2 -0
  32. package/build/cjs/core/utils/index.js.map +1 -0
  33. package/build/cjs/core/utils/mergeProps.js +2 -0
  34. package/build/cjs/core/utils/mergeProps.js.map +1 -0
  35. package/build/cjs/core/utils/mergeRefs.js +2 -0
  36. package/build/cjs/core/utils/mergeRefs.js.map +1 -0
  37. package/build/cjs/core/utils/motion.js +2 -0
  38. package/build/cjs/core/utils/motion.js.map +1 -0
  39. package/build/cjs/core/utils/tabListener.js +2 -0
  40. package/build/cjs/core/utils/tabListener.js.map +1 -0
  41. package/build/cjs/hooks/index.js +2 -0
  42. package/build/cjs/hooks/index.js.map +1 -0
  43. package/build/cjs/hooks/mediaQueryUtils.js +2 -0
  44. package/build/cjs/hooks/mediaQueryUtils.js.map +1 -0
  45. package/build/cjs/hooks/useAnimatedDetails/index.js +2 -0
  46. package/build/cjs/hooks/useAnimatedDetails/index.js.map +1 -0
  47. package/build/cjs/hooks/useAnimatedDetails/useAnimatedDetails.js +2 -0
  48. package/build/cjs/hooks/useAnimatedDetails/useAnimatedDetails.js.map +1 -0
  49. package/build/cjs/hooks/useAnimatedHeight/index.js +2 -0
  50. package/build/cjs/hooks/useAnimatedHeight/index.js.map +1 -0
  51. package/build/cjs/hooks/useAnimatedHeight/types.js +2 -0
  52. package/build/cjs/hooks/useAnimatedHeight/types.js.map +1 -0
  53. package/build/cjs/hooks/useAnimatedHeight/useAnimatedHeight.js +2 -0
  54. package/build/cjs/hooks/useAnimatedHeight/useAnimatedHeight.js.map +1 -0
  55. package/build/cjs/hooks/useAnimatedHeight/useAnimatedHeightBetween.js +2 -0
  56. package/build/cjs/hooks/useAnimatedHeight/useAnimatedHeightBetween.js.map +1 -0
  57. package/build/cjs/hooks/useAnimatedHeight/useAutoAnimateHeight.js +2 -0
  58. package/build/cjs/hooks/useAnimatedHeight/useAutoAnimateHeight.js.map +1 -0
  59. package/build/cjs/hooks/useAriaLiveRegion/index.js +2 -0
  60. package/build/cjs/hooks/useAriaLiveRegion/index.js.map +1 -0
  61. package/build/cjs/hooks/useAriaLiveRegion/useAriaLiveRegion.js +2 -0
  62. package/build/cjs/hooks/useAriaLiveRegion/useAriaLiveRegion.js.map +1 -0
  63. package/build/cjs/hooks/useBrowserPreferences/index.js +2 -0
  64. package/build/cjs/hooks/useBrowserPreferences/index.js.map +1 -0
  65. package/build/cjs/hooks/useBrowserPreferences/useBrowserPreferences.js +2 -0
  66. package/build/cjs/hooks/useBrowserPreferences/useBrowserPreferences.js.map +1 -0
  67. package/build/cjs/hooks/useClickOutside/index.js +2 -0
  68. package/build/cjs/hooks/useClickOutside/index.js.map +1 -0
  69. package/build/cjs/hooks/useClickOutside/useClickOutside.js +2 -0
  70. package/build/cjs/hooks/useClickOutside/useClickOutside.js.map +1 -0
  71. package/build/cjs/hooks/useElementDimensions/index.js +2 -0
  72. package/build/cjs/hooks/useElementDimensions/index.js.map +1 -0
  73. package/build/cjs/hooks/useElementDimensions/useElementDimensions.js +2 -0
  74. package/build/cjs/hooks/useElementDimensions/useElementDimensions.js.map +1 -0
  75. package/build/cjs/hooks/useFocusOutside/index.js +2 -0
  76. package/build/cjs/hooks/useFocusOutside/index.js.map +1 -0
  77. package/build/cjs/hooks/useFocusOutside/useFocusOutside.js +2 -0
  78. package/build/cjs/hooks/useFocusOutside/useFocusOutside.js.map +1 -0
  79. package/build/cjs/hooks/useId/index.js +2 -0
  80. package/build/cjs/hooks/useId/index.js.map +1 -0
  81. package/build/cjs/hooks/useId/useId.js +2 -0
  82. package/build/cjs/hooks/useId/useId.js.map +1 -0
  83. package/build/cjs/hooks/useIntersectionObserver/index.js +2 -0
  84. package/build/cjs/hooks/useIntersectionObserver/index.js.map +1 -0
  85. package/build/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -0
  86. package/build/cjs/hooks/useIntersectionObserver/useIntersectionObserver.js.map +1 -0
  87. package/build/cjs/hooks/useKeyListener/index.js +2 -0
  88. package/build/cjs/hooks/useKeyListener/index.js.map +1 -0
  89. package/build/cjs/hooks/useKeyListener/useKeyListener.js +2 -0
  90. package/build/cjs/hooks/useKeyListener/useKeyListener.js.map +1 -0
  91. package/build/cjs/hooks/useListNavigation/index.js +2 -0
  92. package/build/cjs/hooks/useListNavigation/index.js.map +1 -0
  93. package/build/cjs/hooks/useListNavigation/useListNavigation.js +2 -0
  94. package/build/cjs/hooks/useListNavigation/useListNavigation.js.map +1 -0
  95. package/build/cjs/hooks/useLocalStorage/index.js +2 -0
  96. package/build/cjs/hooks/useLocalStorage/index.js.map +1 -0
  97. package/build/cjs/hooks/useLocalStorage/useLocalStorage.js +2 -0
  98. package/build/cjs/hooks/useLocalStorage/useLocalStorage.js.map +1 -0
  99. package/build/cjs/hooks/useMutationObserver/index.js +2 -0
  100. package/build/cjs/hooks/useMutationObserver/index.js.map +1 -0
  101. package/build/cjs/hooks/useMutationObserver/useMutationObserver.js +2 -0
  102. package/build/cjs/hooks/useMutationObserver/useMutationObserver.js.map +1 -0
  103. package/build/cjs/hooks/usePreviousValue/index.js +2 -0
  104. package/build/cjs/hooks/usePreviousValue/index.js.map +1 -0
  105. package/build/cjs/hooks/usePreviousValue/usePreviousValue.js +2 -0
  106. package/build/cjs/hooks/usePreviousValue/usePreviousValue.js.map +1 -0
  107. package/build/cjs/hooks/useProgressiveImg/index.js +2 -0
  108. package/build/cjs/hooks/useProgressiveImg/index.js.map +1 -0
  109. package/build/cjs/hooks/useProgressiveImg/useProgressiveImg.js +2 -0
  110. package/build/cjs/hooks/useProgressiveImg/useProgressiveImg.js.map +1 -0
  111. package/build/cjs/hooks/useScreen/index.js +2 -0
  112. package/build/cjs/hooks/useScreen/index.js.map +1 -0
  113. package/build/cjs/hooks/useScreen/state.js +2 -0
  114. package/build/cjs/hooks/useScreen/state.js.map +1 -0
  115. package/build/cjs/hooks/useScreen/useScreen.js +2 -0
  116. package/build/cjs/hooks/useScreen/useScreen.js.map +1 -0
  117. package/build/cjs/hooks/useScrollIntoView/index.js +2 -0
  118. package/build/cjs/hooks/useScrollIntoView/index.js.map +1 -0
  119. package/build/cjs/hooks/useScrollIntoView/useScrollIntoView.js +2 -0
  120. package/build/cjs/hooks/useScrollIntoView/useScrollIntoView.js.map +1 -0
  121. package/build/cjs/hooks/useSwipeGesture/index.js +2 -0
  122. package/build/cjs/hooks/useSwipeGesture/index.js.map +1 -0
  123. package/build/cjs/hooks/useSwipeGesture/useSwipeGesture.js +2 -0
  124. package/build/cjs/hooks/useSwipeGesture/useSwipeGesture.js.map +1 -0
  125. package/build/clsx-BeLtu-UY.js +2 -0
  126. package/build/clsx-BeLtu-UY.js.map +1 -0
  127. package/build/clsx-E3yX_9sL.cjs +2 -0
  128. package/build/clsx-E3yX_9sL.cjs.map +1 -0
  129. package/build/components/ScreenReaderOnly.d.ts +6 -0
  130. package/build/components/SlotComponent.d.ts +7 -0
  131. package/build/components/index.d.ts +2 -0
  132. package/build/components/navigation/Link.d.ts +5 -0
  133. package/build/components/navigation/NavLink.d.ts +6 -0
  134. package/build/components/navigation/index.d.ts +2 -0
  135. package/build/core/as-child.d.ts +39 -0
  136. package/build/core/index.d.ts +7 -0
  137. package/build/core/polymorphism.d.ts +11 -0
  138. package/build/core/tokens.d.ts +351 -0
  139. package/build/core/types.d.ts +42 -0
  140. package/build/core/utils/breakpoints.d.ts +6 -0
  141. package/build/core/utils/density.d.ts +1 -0
  142. package/build/core/utils/getValuePair.d.ts +2 -0
  143. package/build/core/utils/index.d.ts +8 -0
  144. package/build/core/utils/mergeProps.d.ts +3 -0
  145. package/build/core/utils/mergeRefs.d.ts +3 -0
  146. package/build/core/utils/motion.d.ts +16 -0
  147. package/build/core/utils/tabListener.d.ts +1 -0
  148. package/build/es/components/ScreenReaderOnly.js +2 -0
  149. package/build/es/components/ScreenReaderOnly.js.map +1 -0
  150. package/build/es/components/SlotComponent.js +2 -0
  151. package/build/es/components/SlotComponent.js.map +1 -0
  152. package/build/es/components/index.js +2 -0
  153. package/build/es/components/index.js.map +1 -0
  154. package/build/es/components/navigation/Link.js +2 -0
  155. package/build/es/components/navigation/Link.js.map +1 -0
  156. package/build/es/components/navigation/NavLink.js +2 -0
  157. package/build/es/components/navigation/NavLink.js.map +1 -0
  158. package/build/es/components/navigation/index.js +2 -0
  159. package/build/es/components/navigation/index.js.map +1 -0
  160. package/build/es/core/as-child.js +2 -0
  161. package/build/es/core/as-child.js.map +1 -0
  162. package/build/es/core/index.js +2 -0
  163. package/build/es/core/index.js.map +1 -0
  164. package/build/es/core/polymorphism.js +2 -0
  165. package/build/es/core/polymorphism.js.map +1 -0
  166. package/build/es/core/tokens.js +2 -0
  167. package/build/es/core/tokens.js.map +1 -0
  168. package/build/es/core/types.js +2 -0
  169. package/build/es/core/types.js.map +1 -0
  170. package/build/es/core/utils/breakpoints.js +2 -0
  171. package/build/es/core/utils/breakpoints.js.map +1 -0
  172. package/build/es/core/utils/density.js +2 -0
  173. package/build/es/core/utils/density.js.map +1 -0
  174. package/build/es/core/utils/getValuePair.js +2 -0
  175. package/build/es/core/utils/getValuePair.js.map +1 -0
  176. package/build/es/core/utils/index.js +2 -0
  177. package/build/es/core/utils/index.js.map +1 -0
  178. package/build/es/core/utils/mergeProps.js +2 -0
  179. package/build/es/core/utils/mergeProps.js.map +1 -0
  180. package/build/es/core/utils/mergeRefs.js +2 -0
  181. package/build/es/core/utils/mergeRefs.js.map +1 -0
  182. package/build/es/core/utils/motion.js +2 -0
  183. package/build/es/core/utils/motion.js.map +1 -0
  184. package/build/es/core/utils/tabListener.js +2 -0
  185. package/build/es/core/utils/tabListener.js.map +1 -0
  186. package/build/es/hooks/index.js +2 -0
  187. package/build/es/hooks/index.js.map +1 -0
  188. package/build/es/hooks/mediaQueryUtils.js +2 -0
  189. package/build/es/hooks/mediaQueryUtils.js.map +1 -0
  190. package/build/es/hooks/useAnimatedDetails/index.js +2 -0
  191. package/build/es/hooks/useAnimatedDetails/index.js.map +1 -0
  192. package/build/es/hooks/useAnimatedDetails/useAnimatedDetails.js +2 -0
  193. package/build/es/hooks/useAnimatedDetails/useAnimatedDetails.js.map +1 -0
  194. package/build/es/hooks/useAnimatedHeight/index.js +2 -0
  195. package/build/es/hooks/useAnimatedHeight/index.js.map +1 -0
  196. package/build/es/hooks/useAnimatedHeight/types.js +2 -0
  197. package/build/es/hooks/useAnimatedHeight/types.js.map +1 -0
  198. package/build/es/hooks/useAnimatedHeight/useAnimatedHeight.js +2 -0
  199. package/build/es/hooks/useAnimatedHeight/useAnimatedHeight.js.map +1 -0
  200. package/build/es/hooks/useAnimatedHeight/useAnimatedHeightBetween.js +2 -0
  201. package/build/es/hooks/useAnimatedHeight/useAnimatedHeightBetween.js.map +1 -0
  202. package/build/es/hooks/useAnimatedHeight/useAutoAnimateHeight.js +2 -0
  203. package/build/es/hooks/useAnimatedHeight/useAutoAnimateHeight.js.map +1 -0
  204. package/build/es/hooks/useAriaLiveRegion/index.js +2 -0
  205. package/build/es/hooks/useAriaLiveRegion/index.js.map +1 -0
  206. package/build/es/hooks/useAriaLiveRegion/useAriaLiveRegion.js +2 -0
  207. package/build/es/hooks/useAriaLiveRegion/useAriaLiveRegion.js.map +1 -0
  208. package/build/es/hooks/useBrowserPreferences/index.js +2 -0
  209. package/build/es/hooks/useBrowserPreferences/index.js.map +1 -0
  210. package/build/es/hooks/useBrowserPreferences/useBrowserPreferences.js +2 -0
  211. package/build/es/hooks/useBrowserPreferences/useBrowserPreferences.js.map +1 -0
  212. package/build/es/hooks/useClickOutside/index.js +2 -0
  213. package/build/es/hooks/useClickOutside/index.js.map +1 -0
  214. package/build/es/hooks/useClickOutside/useClickOutside.js +2 -0
  215. package/build/es/hooks/useClickOutside/useClickOutside.js.map +1 -0
  216. package/build/es/hooks/useElementDimensions/index.js +2 -0
  217. package/build/es/hooks/useElementDimensions/index.js.map +1 -0
  218. package/build/es/hooks/useElementDimensions/useElementDimensions.js +2 -0
  219. package/build/es/hooks/useElementDimensions/useElementDimensions.js.map +1 -0
  220. package/build/es/hooks/useFocusOutside/index.js +2 -0
  221. package/build/es/hooks/useFocusOutside/index.js.map +1 -0
  222. package/build/es/hooks/useFocusOutside/useFocusOutside.js +2 -0
  223. package/build/es/hooks/useFocusOutside/useFocusOutside.js.map +1 -0
  224. package/build/es/hooks/useId/index.js +2 -0
  225. package/build/es/hooks/useId/index.js.map +1 -0
  226. package/build/es/hooks/useId/useId.js +2 -0
  227. package/build/es/hooks/useId/useId.js.map +1 -0
  228. package/build/es/hooks/useIntersectionObserver/index.js +2 -0
  229. package/build/es/hooks/useIntersectionObserver/index.js.map +1 -0
  230. package/build/es/hooks/useIntersectionObserver/useIntersectionObserver.js +2 -0
  231. package/build/es/hooks/useIntersectionObserver/useIntersectionObserver.js.map +1 -0
  232. package/build/es/hooks/useKeyListener/index.js +2 -0
  233. package/build/es/hooks/useKeyListener/index.js.map +1 -0
  234. package/build/es/hooks/useKeyListener/useKeyListener.js +2 -0
  235. package/build/es/hooks/useKeyListener/useKeyListener.js.map +1 -0
  236. package/build/es/hooks/useListNavigation/index.js +2 -0
  237. package/build/es/hooks/useListNavigation/index.js.map +1 -0
  238. package/build/es/hooks/useListNavigation/useListNavigation.js +2 -0
  239. package/build/es/hooks/useListNavigation/useListNavigation.js.map +1 -0
  240. package/build/es/hooks/useLocalStorage/index.js +2 -0
  241. package/build/es/hooks/useLocalStorage/index.js.map +1 -0
  242. package/build/es/hooks/useLocalStorage/useLocalStorage.js +2 -0
  243. package/build/es/hooks/useLocalStorage/useLocalStorage.js.map +1 -0
  244. package/build/es/hooks/useMutationObserver/index.js +2 -0
  245. package/build/es/hooks/useMutationObserver/index.js.map +1 -0
  246. package/build/es/hooks/useMutationObserver/useMutationObserver.js +2 -0
  247. package/build/es/hooks/useMutationObserver/useMutationObserver.js.map +1 -0
  248. package/build/es/hooks/usePreviousValue/index.js +2 -0
  249. package/build/es/hooks/usePreviousValue/index.js.map +1 -0
  250. package/build/es/hooks/usePreviousValue/usePreviousValue.js +2 -0
  251. package/build/es/hooks/usePreviousValue/usePreviousValue.js.map +1 -0
  252. package/build/es/hooks/useProgressiveImg/index.js +2 -0
  253. package/build/es/hooks/useProgressiveImg/index.js.map +1 -0
  254. package/build/es/hooks/useProgressiveImg/useProgressiveImg.js +2 -0
  255. package/build/es/hooks/useProgressiveImg/useProgressiveImg.js.map +1 -0
  256. package/build/es/hooks/useScreen/index.js +2 -0
  257. package/build/es/hooks/useScreen/index.js.map +1 -0
  258. package/build/es/hooks/useScreen/state.js +2 -0
  259. package/build/es/hooks/useScreen/state.js.map +1 -0
  260. package/build/es/hooks/useScreen/useScreen.js +2 -0
  261. package/build/es/hooks/useScreen/useScreen.js.map +1 -0
  262. package/build/es/hooks/useScrollIntoView/index.js +2 -0
  263. package/build/es/hooks/useScrollIntoView/index.js.map +1 -0
  264. package/build/es/hooks/useScrollIntoView/useScrollIntoView.js +2 -0
  265. package/build/es/hooks/useScrollIntoView/useScrollIntoView.js.map +1 -0
  266. package/build/es/hooks/useSwipeGesture/index.js +2 -0
  267. package/build/es/hooks/useSwipeGesture/index.js.map +1 -0
  268. package/build/es/hooks/useSwipeGesture/useSwipeGesture.js +2 -0
  269. package/build/es/hooks/useSwipeGesture/useSwipeGesture.js.map +1 -0
  270. package/build/hooks/index.d.ts +18 -0
  271. package/build/hooks/mediaQueryUtils.d.ts +21 -0
  272. package/build/hooks/useAnimatedDetails/index.d.ts +1 -0
  273. package/build/hooks/useAnimatedDetails/useAnimatedDetails.d.ts +20 -0
  274. package/build/hooks/useAnimatedHeight/index.d.ts +4 -0
  275. package/build/hooks/useAnimatedHeight/types.d.ts +26 -0
  276. package/build/hooks/useAnimatedHeight/useAnimatedHeight.d.ts +10 -0
  277. package/build/hooks/useAnimatedHeight/useAnimatedHeightBetween.d.ts +10 -0
  278. package/build/hooks/useAnimatedHeight/useAutoAnimateHeight.d.ts +20 -0
  279. package/build/hooks/useAriaLiveRegion/index.d.ts +1 -0
  280. package/build/hooks/useAriaLiveRegion/useAriaLiveRegion.d.ts +15 -0
  281. package/build/hooks/useBrowserPreferences/index.d.ts +1 -0
  282. package/build/hooks/useBrowserPreferences/useBrowserPreferences.d.ts +12 -0
  283. package/build/hooks/useClickOutside/index.d.ts +1 -0
  284. package/build/hooks/useClickOutside/useClickOutside.d.ts +7 -0
  285. package/build/hooks/useElementDimensions/index.d.ts +1 -0
  286. package/build/hooks/useElementDimensions/useElementDimensions.d.ts +11 -0
  287. package/build/hooks/useFocusOutside/index.d.ts +1 -0
  288. package/build/hooks/useFocusOutside/useFocusOutside.d.ts +7 -0
  289. package/build/hooks/useId/index.d.ts +1 -0
  290. package/build/hooks/useId/useId.d.ts +11 -0
  291. package/build/hooks/useIntersectionObserver/index.d.ts +1 -0
  292. package/build/hooks/useIntersectionObserver/useIntersectionObserver.d.ts +13 -0
  293. package/build/hooks/useKeyListener/index.d.ts +1 -0
  294. package/build/hooks/useKeyListener/useKeyListener.d.ts +8 -0
  295. package/build/hooks/useListNavigation/index.d.ts +1 -0
  296. package/build/hooks/useListNavigation/useListNavigation.d.ts +7 -0
  297. package/build/hooks/useLocalStorage/index.d.ts +1 -0
  298. package/build/hooks/useLocalStorage/useLocalStorage.d.ts +1 -0
  299. package/build/hooks/useMutationObserver/index.d.ts +1 -0
  300. package/build/hooks/useMutationObserver/useMutationObserver.d.ts +9 -0
  301. package/build/hooks/usePreviousValue/index.d.ts +1 -0
  302. package/build/hooks/usePreviousValue/usePreviousValue.d.ts +6 -0
  303. package/build/hooks/useProgressiveImg/index.d.ts +1 -0
  304. package/build/hooks/useProgressiveImg/useProgressiveImg.d.ts +10 -0
  305. package/build/hooks/useScreen/index.d.ts +2 -0
  306. package/build/hooks/useScreen/state.d.ts +17 -0
  307. package/build/hooks/useScreen/useScreen.d.ts +6 -0
  308. package/build/hooks/useScrollIntoView/index.d.ts +1 -0
  309. package/build/hooks/useScrollIntoView/useScrollIntoView.d.ts +11 -0
  310. package/build/hooks/useSwipeGesture/index.d.ts +1 -0
  311. package/build/hooks/useSwipeGesture/useSwipeGesture.d.ts +27 -0
  312. package/package.json +83 -0
  313. package/src/components/navigation/styles/link.css +152 -0
  314. package/src/components/navigation/styles/link.min.css +1 -0
  315. package/src/components/navigation/styles/link.scss +138 -0
  316. package/src/core/jkl/_colors.scss +26 -0
  317. package/src/core/jkl/_convert.scss +96 -0
  318. package/src/core/jkl/_helpers.scss +20 -0
  319. package/src/core/jkl/_index.scss +18 -0
  320. package/src/core/jkl/_legacy-tokens.scss +22 -0
  321. package/src/core/jkl/_motion.scss +62 -0
  322. package/src/core/jkl/_navigation.scss +9 -0
  323. package/src/core/jkl/_ornaments.scss +26 -0
  324. package/src/core/jkl/_reset.scss +43 -0
  325. package/src/core/jkl/_responsive-units.scss +30 -0
  326. package/src/core/jkl/_screenreader.scss +59 -0
  327. package/src/core/jkl/_screens.scss +135 -0
  328. package/src/core/jkl/_shadows.scss +25 -0
  329. package/src/core/jkl/_spacing.scss +210 -0
  330. package/src/core/jkl/_theme.scss +144 -0
  331. package/src/core/jkl/_tokens.scss +148 -0
  332. package/src/core/jkl/_typography.scss +327 -0
  333. package/src/core/jkl/_underline.scss +16 -0
  334. package/src/core/jkl/_z-index.scss +23 -0
  335. package/src/core/styles/_color-tokens.scss +75 -0
  336. package/src/core/styles/_headings.scss +29 -0
  337. package/src/core/styles/_index.scss +10 -0
  338. package/src/core/styles/_legacy-tokens.scss +26 -0
  339. package/src/core/styles/_normalize.scss +250 -0
  340. package/src/core/styles/_paragraphs.scss +16 -0
  341. package/src/core/styles/_reset.scss +66 -0
  342. package/src/core/styles/_screen-reader.scss +9 -0
  343. package/src/core/styles/_spacing.scss +75 -0
  344. package/src/core/styles/_tokens.scss +114 -0
  345. package/src/core/styles/core.css +1614 -0
  346. package/src/core/styles/core.min.css +1 -0
  347. package/src/core/styles/core.scss +71 -0
  348. package/src/core/styles/vind/_flex.scss +113 -0
  349. package/src/core/styles/vind/_font.scss +19 -0
  350. package/src/core/styles/vind/_margin.scss +43 -0
  351. package/src/core/styles/vind/_padding.scss +43 -0
  352. package/src/core/styles/vind/_space-between.scss +13 -0
  353. package/src/core/styles/vind/_typography.scss +47 -0
  354. package/src/core/styles/vind/_vind.scss +6 -0
  355. package/src/core/styles/vind.css +1742 -0
  356. package/src/core/styles/vind.min.css +1 -0
  357. package/src/core/styles/vind.scss +3 -0
  358. package/src/core/tokens.less +196 -0
@@ -0,0 +1,250 @@
1
+ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2
+
3
+ /* Document
4
+ ========================================================================== */
5
+
6
+ /**
7
+ * 1. Correct the line height in all browsers.
8
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
9
+ */
10
+
11
+ html {
12
+ line-height: 1.15; /* 1 */
13
+ -webkit-text-size-adjust: 100%; /* 2 */
14
+ }
15
+
16
+ /* Sections
17
+ ========================================================================== */
18
+
19
+ /**
20
+ * Remove the margin in all browsers.
21
+ */
22
+
23
+ body {
24
+ margin: 0;
25
+ }
26
+
27
+ /**
28
+ * Correct the font size and margin on `h1` elements within `section` and
29
+ * `article` contexts in Chrome, Firefox, and Safari.
30
+ */
31
+
32
+ h1 {
33
+ font-size: 2em;
34
+ margin: 0.67em 0;
35
+ }
36
+
37
+ /* Grouping content
38
+ ========================================================================== */
39
+
40
+ /**
41
+ * 1. Add the correct box sizing in Firefox.
42
+ * 2. Show the overflow in Edge and IE.
43
+ */
44
+
45
+ hr {
46
+ box-sizing: content-box; /* 1 */
47
+ height: 0; /* 1 */
48
+ overflow: visible; /* 2 */
49
+ }
50
+
51
+ /**
52
+ * 1. Correct the inheritance and scaling of font size in all browsers.
53
+ * 2. Correct the odd `em` font sizing in all browsers.
54
+ */
55
+
56
+ pre {
57
+ font-family: monospace, monospace; /* 1 */
58
+ font-size: 1em; /* 2 */
59
+ }
60
+
61
+ /* Text-level semantics
62
+ ========================================================================== */
63
+
64
+ /**
65
+ * 1. Remove the bottom border in Chrome 57-
66
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
67
+ */
68
+
69
+ abbr[title] {
70
+ border-bottom: none; /* 1 */
71
+ text-decoration: underline; /* 2 */
72
+ text-decoration: underline dotted; /* 2 */
73
+ }
74
+
75
+ /**
76
+ * Add the correct font weight in Chrome, Edge, and Safari.
77
+ */
78
+
79
+ b,
80
+ strong {
81
+ font-weight: bolder;
82
+ }
83
+
84
+ /**
85
+ * 1. Correct the inheritance and scaling of font size in all browsers.
86
+ * 2. Correct the odd `em` font sizing in all browsers.
87
+ */
88
+
89
+ code,
90
+ kbd,
91
+ samp {
92
+ font-family: monospace, monospace; /* 1 */
93
+ font-size: 1em; /* 2 */
94
+ }
95
+
96
+ /**
97
+ * Add the correct font size in all browsers.
98
+ */
99
+
100
+ small {
101
+ font-size: 80%;
102
+ }
103
+
104
+ /**
105
+ * Prevent `sub` and `sup` elements from affecting the line height in
106
+ * all browsers.
107
+ */
108
+
109
+ sub,
110
+ sup {
111
+ font-size: 75%;
112
+ line-height: 0;
113
+ position: relative;
114
+ vertical-align: baseline;
115
+ }
116
+
117
+ sub {
118
+ bottom: -0.25em;
119
+ }
120
+
121
+ sup {
122
+ top: -0.5em;
123
+ }
124
+
125
+ /* Forms
126
+ ========================================================================== */
127
+
128
+ /**
129
+ * 1. Change the font styles in all browsers.
130
+ * 2. Remove the margin in Firefox and Safari.
131
+ */
132
+
133
+ button,
134
+ input,
135
+ optgroup,
136
+ select,
137
+ textarea {
138
+ font-family: inherit; /* 1 */
139
+ font-size: 100%; /* 1 */
140
+ line-height: 1.15; /* 1 */
141
+ margin: 0; /* 2 */
142
+ }
143
+
144
+ /**
145
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
146
+ * 1. Remove the inheritance of text transform in Firefox.
147
+ */
148
+
149
+ button,
150
+ select {
151
+ /* 1 */
152
+ text-transform: none;
153
+ }
154
+
155
+ /**
156
+ * Correct the inability to style clickable types in iOS and Safari.
157
+ */
158
+
159
+ button,
160
+ [type="button"],
161
+ [type="reset"],
162
+ [type="submit"] {
163
+ -webkit-appearance: button;
164
+ }
165
+
166
+ /**
167
+ * Correct the padding in Firefox.
168
+ */
169
+
170
+ fieldset {
171
+ padding: 0.35em 0.75em 0.625em;
172
+ }
173
+
174
+ /**
175
+ * 1. Correct the text wrapping in Edge and IE.
176
+ * 2. Remove the padding so developers are not caught out when they zero out
177
+ * `fieldset` elements in all browsers.
178
+ */
179
+
180
+ legend {
181
+ box-sizing: border-box; /* 1 */
182
+ display: table; /* 1 */
183
+ max-width: 100%; /* 1 */
184
+ padding: 0; /* 2 */
185
+ white-space: normal; /* 1 */
186
+ }
187
+
188
+ /**
189
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
190
+ */
191
+
192
+ progress {
193
+ vertical-align: baseline;
194
+ }
195
+
196
+ /**
197
+ * Correct the cursor style of increment and decrement buttons in Chrome.
198
+ */
199
+
200
+ [type="number"]::-webkit-inner-spin-button,
201
+ [type="number"]::-webkit-outer-spin-button {
202
+ height: auto;
203
+ }
204
+
205
+ /**
206
+ * 1. Correct the odd appearance in Chrome and Safari.
207
+ * 2. Correct the outline style in Safari.
208
+ */
209
+
210
+ [type="search"] {
211
+ -webkit-appearance: textfield; /* 1 */
212
+ outline-offset: -2px; /* 2 */
213
+ }
214
+
215
+ /**
216
+ * Remove the inner padding in Chrome and Safari on macOS.
217
+ */
218
+
219
+ [type="search"]::-webkit-search-decoration {
220
+ -webkit-appearance: none;
221
+ }
222
+
223
+ /**
224
+ * 1. Correct the inability to style clickable types in iOS and Safari.
225
+ * 2. Change font properties to `inherit` in Safari.
226
+ */
227
+
228
+ ::-webkit-file-upload-button {
229
+ -webkit-appearance: button; /* 1 */
230
+ font: inherit; /* 2 */
231
+ }
232
+
233
+ /* Interactive
234
+ ========================================================================== */
235
+
236
+ /*
237
+ * Add the correct display in Edge, IE 10+, and Firefox.
238
+ */
239
+
240
+ details {
241
+ display: block;
242
+ }
243
+
244
+ /*
245
+ * Add the correct display in all browsers.
246
+ */
247
+
248
+ summary {
249
+ display: list-item;
250
+ }
@@ -0,0 +1,16 @@
1
+ @use "../jkl";
2
+
3
+ .jkl-body {
4
+ @include jkl.text-style("body");
5
+ }
6
+
7
+ .jkl-bold {
8
+ @include jkl.text-style("body") {
9
+ --jkl-icon-weight: #{jkl.$icon-weight-bold};
10
+ font-weight: jkl.$typography-weight-bold;
11
+ }
12
+ }
13
+
14
+ .jkl-small {
15
+ @include jkl.text-style("small");
16
+ }
@@ -0,0 +1,66 @@
1
+ /* Text blocks
2
+ ========================================================================== */
3
+
4
+ /**
5
+ * Remove default margins from all block-level text elements
6
+ * such as `p` and headings
7
+ */
8
+
9
+ h1,
10
+ h2,
11
+ h3,
12
+ h4,
13
+ h5,
14
+ h6,
15
+ p {
16
+ margin: 0;
17
+ }
18
+
19
+ /* Forms
20
+ ========================================================================== */
21
+
22
+ /**
23
+ * Remove margins from fieldset element.
24
+ */
25
+
26
+ fieldset {
27
+ margin: 0;
28
+ border: 0;
29
+ padding: 0;
30
+ display: block;
31
+ line-height: 1;
32
+ }
33
+
34
+ /* Forms
35
+ ========================================================================== */
36
+
37
+ /**
38
+ * Remove borders from table elements.
39
+ */
40
+
41
+ table {
42
+ border-collapse: collapse;
43
+ }
44
+
45
+ /**
46
+ * Remove margins from table elements.
47
+ */
48
+
49
+ table,
50
+ thead,
51
+ tbody,
52
+ tr,
53
+ td,
54
+ th {
55
+ margin: 0;
56
+ padding: 0;
57
+ }
58
+
59
+ /*
60
+ * https://css-tricks.com/the-hidden-attribute-is-visibly-weak/
61
+ * tl;dr – hidden er en User Agent style, så hvis et element har noen som helst display som ikke er
62
+ * hidden vil ikke hidden-attributtet gjøre noe som helst visuelt. Her gjør vi det til vår egen author style.
63
+ */
64
+ .jkl [hidden] {
65
+ display: none;
66
+ }
@@ -0,0 +1,9 @@
1
+ @use "../jkl";
2
+
3
+ .jkl-sr-only {
4
+ @include jkl.screenreader-only;
5
+
6
+ &--focusable {
7
+ @include jkl.screenreader-only-focusable;
8
+ }
9
+ }
@@ -0,0 +1,75 @@
1
+ @use "sass:list";
2
+ @use "sass:map";
3
+ @use "sass:string";
4
+ @use "../jkl/spacing";
5
+ @use "../jkl/screens";
6
+
7
+ @function get-class-name($spacing-combination) {
8
+ $class-name: "jkl-spacing";
9
+ @each $spacing in $spacing-combination {
10
+ $class-name: "#{$class-name}-#{$spacing}";
11
+ }
12
+ @return $class-name;
13
+ }
14
+
15
+ // Sett CSS-variabler for alle spacing-kombinasjoner
16
+ :root {
17
+ @each $spacing-combination in spacing.$combinations {
18
+ $_step: list.nth($spacing-combination, 1);
19
+
20
+ --#{get-class-name($spacing-combination)}: #{map.get(spacing.$spacing, $_step)};
21
+ }
22
+
23
+ @include screens.from-medium-device {
24
+ @each $spacing-combination in spacing.$combinations {
25
+ @if list.length($spacing-combination) > 1 {
26
+ $_step: list.nth($spacing-combination, 2);
27
+
28
+ --#{get-class-name($spacing-combination)}: #{map.get(spacing.$spacing, $_step)};
29
+ }
30
+ }
31
+ }
32
+
33
+ @include screens.from-large-device {
34
+ @each $spacing-combination in spacing.$combinations {
35
+ @if list.length($spacing-combination) > 2 {
36
+ $_step: list.nth($spacing-combination, 3);
37
+
38
+ --#{get-class-name($spacing-combination)}: #{map.get(spacing.$spacing, $_step)};
39
+ }
40
+ }
41
+ }
42
+ }
43
+
44
+ // Lag nytteklasser for alle spacing-kombinasjoner og -posisjoner
45
+ @each $spacing-combination in spacing.$combinations {
46
+ $_class-name: get-class-name($spacing-combination);
47
+ .#{$_class-name} {
48
+ &--all {
49
+ margin: var(--#{$_class-name});
50
+ }
51
+
52
+ @each $position in spacing.$positions {
53
+ &--#{$position} {
54
+ margin-#{$position}: var(--#{$_class-name});
55
+ }
56
+ }
57
+ }
58
+ }
59
+
60
+ // Lag nytteklasser for de gamle spacingene for å sikre bakoverkompatibilitet
61
+ @each $spacing, $value in spacing.$spacing {
62
+ @if not list.index(spacing.$combinations, $spacing) {
63
+ .jkl-spacing-#{$spacing} {
64
+ &--all {
65
+ margin: $value;
66
+ }
67
+
68
+ @each $position in spacing.$positions {
69
+ &--#{$position} {
70
+ margin-#{$position}: $value;
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
@@ -0,0 +1,114 @@
1
+ /**
2
+ * Do not edit directly
3
+ * Generated on Tue, 10 Sep 2024 05:21:22 GMT
4
+ */
5
+
6
+ :root {
7
+ --jkl-color-brand-snohvit: #f9f9f9;
8
+ --jkl-color-brand-varde: #e0dbd4;
9
+ --jkl-color-brand-granitt: #1b1917;
10
+ --jkl-color-brand-hvit: #ffffff;
11
+ --jkl-color-brand-svart: #000000;
12
+ --jkl-color-brand-skifer: #313030;
13
+ --jkl-color-brand-fjellgra: #444141;
14
+ --jkl-color-brand-stein: #636060;
15
+ --jkl-color-brand-svaberg: #c8c5c3;
16
+ --jkl-color-brand-dis: #ece9e5;
17
+ --jkl-color-brand-sand: #f4f2ef;
18
+ --jkl-color-functional-info: #d3d3f6;
19
+ --jkl-color-functional-info-dark: #a9a9ca;
20
+ --jkl-color-functional-success: #acd3b5;
21
+ --jkl-color-functional-success-dark: #94b79b;
22
+ --jkl-color-functional-warning: #efdd9e;
23
+ --jkl-color-functional-warning-dark: #decc8d;
24
+ --jkl-color-functional-error: #f6b3b3;
25
+ --jkl-color-functional-error-dark: #de9e9e;
26
+ --jkl-spacing-0: 0;
27
+ --jkl-spacing-2: 0.125rem;
28
+ --jkl-spacing-4: 0.25rem;
29
+ --jkl-spacing-8: 0.5rem;
30
+ --jkl-spacing-12: 0.75rem;
31
+ --jkl-spacing-16: 1rem;
32
+ --jkl-spacing-24: 1.5rem;
33
+ --jkl-spacing-32: 2rem;
34
+ --jkl-spacing-40: 2.5rem;
35
+ --jkl-spacing-64: 4rem;
36
+ --jkl-spacing-104: 6.5rem;
37
+ --jkl-spacing-168: 10.5rem;
38
+ --jkl-typography-weight-normal: 400;
39
+ --jkl-typography-weight-bold: 700;
40
+ --jkl-typography-font-size-16: 1rem;
41
+ --jkl-typography-font-size-18: 1.125rem;
42
+ --jkl-typography-font-size-20: 1.25rem;
43
+ --jkl-typography-font-size-21: 1.3125rem;
44
+ --jkl-typography-font-size-23: 1.4375rem;
45
+ --jkl-typography-font-size-25: 1.5625rem;
46
+ --jkl-typography-font-size-26: 1.625rem;
47
+ --jkl-typography-font-size-28: 1.75rem;
48
+ --jkl-typography-font-size-30: 1.875rem;
49
+ --jkl-typography-font-size-36: 2.25rem;
50
+ --jkl-typography-font-size-44: 2.75rem;
51
+ --jkl-typography-font-size-56: 3.5rem;
52
+ --jkl-typography-line-height-24: 1.5rem;
53
+ --jkl-typography-line-height-28: 1.75rem;
54
+ --jkl-typography-line-height-32: 2rem;
55
+ --jkl-typography-line-height-36: 2.25rem;
56
+ --jkl-typography-line-height-40: 2.5rem;
57
+ --jkl-typography-line-height-44: 2.75rem;
58
+ --jkl-typography-line-height-52: 3.25rem;
59
+ --jkl-typography-line-height-64: 4rem;
60
+ --jkl-typography-title-small-font-size: 2.25rem;
61
+ --jkl-typography-title-small-line-height: 2.75rem;
62
+ --jkl-typography-title-small-font-weight: 400;
63
+ --jkl-typography-title-base-font-size: 3.5rem;
64
+ --jkl-typography-title-base-line-height: 4rem;
65
+ --jkl-typography-title-base-font-weight: 400;
66
+ --jkl-typography-title-small-small-font-size: 1.875rem;
67
+ --jkl-typography-title-small-small-line-height: 2.25rem;
68
+ --jkl-typography-title-small-small-font-weight: 400;
69
+ --jkl-typography-title-small-base-font-size: 2.75rem;
70
+ --jkl-typography-title-small-base-line-height: 3.25rem;
71
+ --jkl-typography-title-small-base-font-weight: 400;
72
+ --jkl-typography-heading-1-small-font-size: 1.625rem;
73
+ --jkl-typography-heading-1-small-line-height: 2rem;
74
+ --jkl-typography-heading-1-small-font-weight: 400;
75
+ --jkl-typography-heading-1-base-font-size: 2.25rem;
76
+ --jkl-typography-heading-1-base-line-height: 2.75rem;
77
+ --jkl-typography-heading-1-base-font-weight: 400;
78
+ --jkl-typography-heading-2-small-font-size: 1.4375rem;
79
+ --jkl-typography-heading-2-small-line-height: 2rem;
80
+ --jkl-typography-heading-2-small-font-weight: 400;
81
+ --jkl-typography-heading-2-base-font-size: 1.75rem;
82
+ --jkl-typography-heading-2-base-line-height: 2.5rem;
83
+ --jkl-typography-heading-2-base-font-weight: 400;
84
+ --jkl-typography-heading-3-small-font-size: 1.3125rem;
85
+ --jkl-typography-heading-3-small-line-height: 1.75rem;
86
+ --jkl-typography-heading-3-small-font-weight: 700;
87
+ --jkl-typography-heading-3-base-font-size: 1.5625rem;
88
+ --jkl-typography-heading-3-base-line-height: 2rem;
89
+ --jkl-typography-heading-3-base-font-weight: 700;
90
+ --jkl-typography-heading-4-small-font-size: 1.125rem;
91
+ --jkl-typography-heading-4-small-line-height: 1.5rem;
92
+ --jkl-typography-heading-4-small-font-weight: 700;
93
+ --jkl-typography-heading-4-base-font-size: 1.3125rem;
94
+ --jkl-typography-heading-4-base-line-height: 1.75rem;
95
+ --jkl-typography-heading-4-base-font-weight: 700;
96
+ --jkl-typography-heading-5-small-font-size: 1rem;
97
+ --jkl-typography-heading-5-small-line-height: 1.5rem;
98
+ --jkl-typography-heading-5-small-font-weight: 700;
99
+ --jkl-typography-heading-5-base-font-size: 1rem;
100
+ --jkl-typography-heading-5-base-line-height: 1.5rem;
101
+ --jkl-typography-heading-5-base-font-weight: 700;
102
+ --jkl-typography-body-small-font-size: 1.125rem;
103
+ --jkl-typography-body-small-line-height: 1.75rem;
104
+ --jkl-typography-body-small-font-weight: 400;
105
+ --jkl-typography-body-base-font-size: 1.25rem;
106
+ --jkl-typography-body-base-line-height: 2rem;
107
+ --jkl-typography-body-base-font-weight: 400;
108
+ --jkl-typography-small-small-font-size: 1rem;
109
+ --jkl-typography-small-small-line-height: 1.5rem;
110
+ --jkl-typography-small-small-font-weight: 400;
111
+ --jkl-typography-small-base-font-size: 1rem;
112
+ --jkl-typography-small-base-line-height: 1.5rem;
113
+ --jkl-typography-small-base-font-weight: 400;
114
+ }