@fremtind/jokul 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/build/build-stats.html +1 -1
  2. package/build/cjs/components/card/Card.js +1 -1
  3. package/build/cjs/components/card/Card.js.map +1 -1
  4. package/build/cjs/components/card/CardImage.js +1 -1
  5. package/build/cjs/components/card/CardImage.js.map +1 -1
  6. package/build/cjs/components/card/index.js +1 -1
  7. package/build/cjs/components/icon/Icon.js.map +1 -1
  8. package/build/cjs/components/index.js +1 -1
  9. package/build/cjs/components/input-group/FieldGroup.js +2 -0
  10. package/build/cjs/components/input-group/FieldGroup.js.map +1 -0
  11. package/build/cjs/components/input-group/InputGroup.js +2 -0
  12. package/build/cjs/components/input-group/InputGroup.js.map +1 -0
  13. package/build/cjs/components/input-group/Label.js +2 -0
  14. package/build/cjs/components/input-group/Label.js.map +1 -0
  15. package/build/cjs/components/input-group/SupportLabel.js +2 -0
  16. package/build/cjs/components/input-group/SupportLabel.js.map +1 -0
  17. package/build/cjs/components/input-group/index.js +2 -0
  18. package/build/cjs/components/link/Link.js.map +1 -1
  19. package/build/cjs/components/link/NavLink.js.map +1 -1
  20. package/build/cjs/components/link-list/LinkList.js.map +1 -1
  21. package/build/cjs/components/tooltip/PopupTip.js +2 -0
  22. package/build/cjs/components/tooltip/PopupTip.js.map +1 -0
  23. package/build/cjs/components/tooltip/Tooltip.js +2 -0
  24. package/build/cjs/components/tooltip/Tooltip.js.map +1 -0
  25. package/build/cjs/components/tooltip/TooltipContent.js +2 -0
  26. package/build/cjs/components/tooltip/TooltipContent.js.map +1 -0
  27. package/build/cjs/components/tooltip/TooltipTrigger.js +2 -0
  28. package/build/cjs/components/tooltip/TooltipTrigger.js.map +1 -0
  29. package/build/cjs/components/tooltip/index.js +2 -0
  30. package/build/cjs/core/index.js +1 -1
  31. package/build/cjs/core/tokens.js +1 -1
  32. package/build/cjs/core/tokens.js.map +1 -1
  33. package/build/cjs/hooks/useAnimatedHeight/useAnimatedHeight.js +1 -1
  34. package/build/cjs/hooks/useAnimatedHeight/useAnimatedHeight.js.map +1 -1
  35. package/build/cjs/hooks/useAnimatedHeight/useAnimatedHeightBetween.js +1 -1
  36. package/build/cjs/hooks/useAnimatedHeight/useAnimatedHeightBetween.js.map +1 -1
  37. package/build/cjs/hooks/useAnimatedHeight/useAutoAnimateHeight.js +1 -1
  38. package/build/cjs/hooks/useAnimatedHeight/useAutoAnimateHeight.js.map +1 -1
  39. package/build/cjs/hooks/useScreen/useScreen.js +1 -1
  40. package/build/cjs/hooks/useScreen/useScreen.js.map +1 -1
  41. package/build/cjs/index.js +1 -1
  42. package/build/cjs/utilities/constants/index.js +2 -0
  43. package/build/cjs/utilities/constants/index.js.map +1 -0
  44. package/build/cjs/utilities/constants/unicode.js +2 -0
  45. package/build/cjs/utilities/constants/unicode.js.map +1 -0
  46. package/build/cjs/utilities/formatters/avstand/formatAvstand.js +2 -0
  47. package/build/cjs/utilities/formatters/avstand/formatAvstand.js.map +1 -0
  48. package/build/cjs/utilities/formatters/bytes/formatBytes.js +2 -0
  49. package/build/cjs/utilities/formatters/bytes/formatBytes.js.map +1 -0
  50. package/build/cjs/utilities/formatters/date/formatDate.js +2 -0
  51. package/build/cjs/utilities/formatters/date/formatDate.js.map +1 -0
  52. package/build/cjs/utilities/formatters/fodselsnummer/formatFodselsnummer.js +2 -0
  53. package/build/cjs/utilities/formatters/fodselsnummer/formatFodselsnummer.js.map +1 -0
  54. package/build/cjs/utilities/formatters/index.js +2 -0
  55. package/build/cjs/utilities/formatters/index.js.map +1 -0
  56. package/build/cjs/utilities/formatters/kontonummer/formatKontonummer.js +2 -0
  57. package/build/cjs/utilities/formatters/kontonummer/formatKontonummer.js.map +1 -0
  58. package/build/cjs/utilities/formatters/kortnummer/formatKortnummer.js +2 -0
  59. package/build/cjs/utilities/formatters/kortnummer/formatKortnummer.js.map +1 -0
  60. package/build/cjs/utilities/formatters/organisasjonsnummer/formatOrganisasjonsnummer.js +2 -0
  61. package/build/cjs/utilities/formatters/organisasjonsnummer/formatOrganisasjonsnummer.js.map +1 -0
  62. package/build/cjs/utilities/formatters/telefonnummer/formatTelefonnummer.js +2 -0
  63. package/build/cjs/utilities/formatters/telefonnummer/formatTelefonnummer.js.map +1 -0
  64. package/build/cjs/utilities/formatters/util/formatNumber.js +2 -0
  65. package/build/cjs/utilities/formatters/util/formatNumber.js.map +1 -0
  66. package/build/cjs/utilities/formatters/util/parseNumber.js +2 -0
  67. package/build/cjs/utilities/formatters/util/parseNumber.js.map +1 -0
  68. package/build/cjs/utilities/formatters/util/registerWithMask.js +2 -0
  69. package/build/cjs/utilities/formatters/util/registerWithMask.js.map +1 -0
  70. package/build/cjs/utilities/formatters/valuta/formatValuta.js +2 -0
  71. package/build/cjs/utilities/formatters/valuta/formatValuta.js.map +1 -0
  72. package/build/cjs/utilities/index.js +2 -0
  73. package/build/cjs/utilities/index.js.map +1 -0
  74. package/build/cjs/utilities/polymorphism/SlotComponent.js +2 -0
  75. package/build/cjs/utilities/polymorphism/SlotComponent.js.map +1 -0
  76. package/build/cjs/utilities/polymorphism/index.js +2 -0
  77. package/build/cjs/utilities/polymorphism/index.js.map +1 -0
  78. package/build/cjs/utilities/polymorphism/mergeProps.js.map +1 -0
  79. package/build/cjs/utilities/polymorphism/mergeRefs.js.map +1 -0
  80. package/build/cjs/utilities/tabListener.js.map +1 -0
  81. package/build/cjs/{core/utils/getValuePair.js → utilities/valuePair.js} +1 -1
  82. package/build/cjs/utilities/valuePair.js.map +1 -0
  83. package/build/components/card/Card.d.ts +1 -1
  84. package/build/components/card/CardImage.d.ts +1 -1
  85. package/build/components/icon/Icon.d.ts +1 -1
  86. package/build/components/index.d.ts +2 -1
  87. package/build/components/input-group/FieldGroup.d.ts +16 -0
  88. package/build/components/input-group/InputGroup.d.ts +40 -0
  89. package/build/components/input-group/Label.d.ts +14 -0
  90. package/build/components/input-group/SupportLabel.d.ts +61 -0
  91. package/build/components/input-group/index.d.ts +4 -0
  92. package/build/components/link/Link.d.ts +1 -1
  93. package/build/components/link/NavLink.d.ts +1 -1
  94. package/build/components/link-list/LinkList.d.ts +1 -1
  95. package/build/components/tooltip/PopupTip.d.ts +13 -0
  96. package/build/components/tooltip/Tooltip.d.ts +122 -0
  97. package/build/components/tooltip/TooltipContent.d.ts +2 -0
  98. package/build/components/tooltip/TooltipTrigger.d.ts +2 -0
  99. package/build/components/tooltip/index.d.ts +4 -0
  100. package/build/core/index.d.ts +1 -6
  101. package/build/core/tokens.d.ts +22 -1
  102. package/build/core/types.d.ts +4 -5
  103. package/build/es/components/card/Card.js +1 -1
  104. package/build/es/components/card/Card.js.map +1 -1
  105. package/build/es/components/card/CardImage.js +1 -1
  106. package/build/es/components/card/CardImage.js.map +1 -1
  107. package/build/es/components/card/index.js +1 -1
  108. package/build/es/components/icon/Icon.js.map +1 -1
  109. package/build/es/components/index.js +1 -1
  110. package/build/es/components/input-group/FieldGroup.js +2 -0
  111. package/build/es/components/input-group/FieldGroup.js.map +1 -0
  112. package/build/es/components/input-group/InputGroup.js +2 -0
  113. package/build/es/components/input-group/InputGroup.js.map +1 -0
  114. package/build/es/components/input-group/Label.js +2 -0
  115. package/build/es/components/input-group/Label.js.map +1 -0
  116. package/build/es/components/input-group/SupportLabel.js +2 -0
  117. package/build/es/components/input-group/SupportLabel.js.map +1 -0
  118. package/build/es/components/input-group/index.js +2 -0
  119. package/build/es/components/input-group/index.js.map +1 -0
  120. package/build/es/components/link/Link.js.map +1 -1
  121. package/build/es/components/link/NavLink.js.map +1 -1
  122. package/build/es/components/link-list/LinkList.js.map +1 -1
  123. package/build/es/components/tooltip/PopupTip.js +2 -0
  124. package/build/es/components/tooltip/PopupTip.js.map +1 -0
  125. package/build/es/components/tooltip/Tooltip.js +2 -0
  126. package/build/es/components/tooltip/Tooltip.js.map +1 -0
  127. package/build/es/components/tooltip/TooltipContent.js +2 -0
  128. package/build/es/components/tooltip/TooltipContent.js.map +1 -0
  129. package/build/es/components/tooltip/TooltipTrigger.js +2 -0
  130. package/build/es/components/tooltip/TooltipTrigger.js.map +1 -0
  131. package/build/es/components/tooltip/index.js +2 -0
  132. package/build/es/components/tooltip/index.js.map +1 -0
  133. package/build/es/core/index.js +1 -1
  134. package/build/es/core/tokens.js +1 -1
  135. package/build/es/core/tokens.js.map +1 -1
  136. package/build/es/hooks/useAnimatedHeight/useAnimatedHeight.js +1 -1
  137. package/build/es/hooks/useAnimatedHeight/useAnimatedHeight.js.map +1 -1
  138. package/build/es/hooks/useAnimatedHeight/useAnimatedHeightBetween.js +1 -1
  139. package/build/es/hooks/useAnimatedHeight/useAnimatedHeightBetween.js.map +1 -1
  140. package/build/es/hooks/useAnimatedHeight/useAutoAnimateHeight.js +1 -1
  141. package/build/es/hooks/useAnimatedHeight/useAutoAnimateHeight.js.map +1 -1
  142. package/build/es/hooks/useScreen/useScreen.js +1 -1
  143. package/build/es/hooks/useScreen/useScreen.js.map +1 -1
  144. package/build/es/index.js +1 -1
  145. package/build/es/utilities/constants/index.js +2 -0
  146. package/build/es/utilities/constants/index.js.map +1 -0
  147. package/build/es/utilities/constants/unicode.js +2 -0
  148. package/build/es/utilities/constants/unicode.js.map +1 -0
  149. package/build/es/utilities/formatters/avstand/formatAvstand.js +2 -0
  150. package/build/es/utilities/formatters/avstand/formatAvstand.js.map +1 -0
  151. package/build/es/utilities/formatters/bytes/formatBytes.js +2 -0
  152. package/build/es/utilities/formatters/bytes/formatBytes.js.map +1 -0
  153. package/build/es/utilities/formatters/date/formatDate.js +2 -0
  154. package/build/es/utilities/formatters/date/formatDate.js.map +1 -0
  155. package/build/es/utilities/formatters/fodselsnummer/formatFodselsnummer.js +2 -0
  156. package/build/es/utilities/formatters/fodselsnummer/formatFodselsnummer.js.map +1 -0
  157. package/build/es/utilities/formatters/index.js +2 -0
  158. package/build/es/utilities/formatters/index.js.map +1 -0
  159. package/build/es/utilities/formatters/kontonummer/formatKontonummer.js +2 -0
  160. package/build/es/utilities/formatters/kontonummer/formatKontonummer.js.map +1 -0
  161. package/build/es/utilities/formatters/kortnummer/formatKortnummer.js +2 -0
  162. package/build/es/utilities/formatters/kortnummer/formatKortnummer.js.map +1 -0
  163. package/build/es/utilities/formatters/organisasjonsnummer/formatOrganisasjonsnummer.js +2 -0
  164. package/build/es/utilities/formatters/organisasjonsnummer/formatOrganisasjonsnummer.js.map +1 -0
  165. package/build/es/utilities/formatters/telefonnummer/formatTelefonnummer.js +2 -0
  166. package/build/es/utilities/formatters/telefonnummer/formatTelefonnummer.js.map +1 -0
  167. package/build/es/utilities/formatters/util/formatNumber.js +2 -0
  168. package/build/es/utilities/formatters/util/formatNumber.js.map +1 -0
  169. package/build/es/utilities/formatters/util/parseNumber.js +2 -0
  170. package/build/es/utilities/formatters/util/parseNumber.js.map +1 -0
  171. package/build/es/utilities/formatters/util/registerWithMask.js +2 -0
  172. package/build/es/utilities/formatters/util/registerWithMask.js.map +1 -0
  173. package/build/es/utilities/formatters/valuta/formatValuta.js +2 -0
  174. package/build/es/utilities/formatters/valuta/formatValuta.js.map +1 -0
  175. package/build/es/utilities/index.js +2 -0
  176. package/build/es/utilities/index.js.map +1 -0
  177. package/build/es/utilities/polymorphism/SlotComponent.js +2 -0
  178. package/build/es/utilities/polymorphism/SlotComponent.js.map +1 -0
  179. package/build/es/utilities/polymorphism/index.js +2 -0
  180. package/build/es/utilities/polymorphism/index.js.map +1 -0
  181. package/build/es/utilities/polymorphism/mergeProps.js.map +1 -0
  182. package/build/es/utilities/polymorphism/mergeRefs.js.map +1 -0
  183. package/build/es/utilities/tabListener.js.map +1 -0
  184. package/build/es/{core/utils/getValuePair.js → utilities/valuePair.js} +1 -1
  185. package/build/es/utilities/valuePair.js.map +1 -0
  186. package/build/index-DfvUcA5T.js +2 -0
  187. package/build/index-DfvUcA5T.js.map +1 -0
  188. package/build/index-hKyqa1PH.cjs +2 -0
  189. package/build/index-hKyqa1PH.cjs.map +1 -0
  190. package/build/index.d.ts +1 -0
  191. package/build/utilities/constants/index.d.ts +2 -0
  192. package/build/utilities/constants/unicode.d.ts +13 -0
  193. package/build/utilities/formatters/avstand/formatAvstand.d.ts +23 -0
  194. package/build/utilities/formatters/bytes/formatBytes.d.ts +8 -0
  195. package/build/utilities/formatters/date/formatDate.d.ts +15 -0
  196. package/build/utilities/formatters/fodselsnummer/formatFodselsnummer.d.ts +15 -0
  197. package/build/utilities/formatters/index.d.ts +14 -0
  198. package/build/utilities/formatters/kontonummer/formatKontonummer.d.ts +16 -0
  199. package/build/utilities/formatters/kortnummer/formatKortnummer.d.ts +15 -0
  200. package/build/utilities/formatters/organisasjonsnummer/formatOrganisasjonsnummer.d.ts +15 -0
  201. package/build/utilities/formatters/telefonnummer/formatTelefonnummer.d.ts +18 -0
  202. package/build/utilities/formatters/util/formatNumber.d.ts +14 -0
  203. package/build/utilities/formatters/util/parseNumber.d.ts +6 -0
  204. package/build/utilities/formatters/util/registerWithMask.d.ts +42 -0
  205. package/build/utilities/formatters/valuta/formatValuta.d.ts +18 -0
  206. package/build/utilities/index.d.ts +5 -0
  207. package/build/utilities/polymorphism/index.d.ts +5 -0
  208. package/build/utilities/valuePair.d.ts +6 -0
  209. package/package.json +19 -8
  210. package/src/components/card/styles/_index.scss +1 -0
  211. package/src/components/card/styles/_info-card.scss +40 -0
  212. package/src/components/card/styles/_nav-card.scss +113 -0
  213. package/src/components/card/styles/_task-card.scss +55 -0
  214. package/src/components/card/styles/card.css +332 -0
  215. package/src/components/card/styles/card.min.css +1 -0
  216. package/src/components/card/styles/card.scss +99 -0
  217. package/src/components/icon/styles/icon.css +1 -1
  218. package/src/components/icon-button/styles/_index.scss +1 -0
  219. package/src/components/icon-button/styles/icon-button.css +98 -0
  220. package/src/components/icon-button/styles/icon-button.min.css +1 -0
  221. package/src/components/icon-button/styles/icon-button.scss +59 -0
  222. package/src/components/image/styles/_index.scss +1 -0
  223. package/src/components/image/styles/image.css +30 -0
  224. package/src/components/image/styles/image.min.css +1 -0
  225. package/src/components/image/styles/image.scss +35 -0
  226. package/src/components/link/styles/link.css +1 -1
  227. package/src/components/link-list/styles/link-list.css +1 -1
  228. package/src/components/loader/styles/loader.css +7 -7
  229. package/src/components/loader/styles/loader.min.css +1 -1
  230. package/src/components/loader/styles/skeleton-loader.css +6 -6
  231. package/src/components/loader/styles/skeleton-loader.min.css +1 -1
  232. package/src/components/tag/styles/_index.scss +1 -0
  233. package/src/components/tag/styles/tag.css +71 -0
  234. package/src/components/tag/styles/tag.min.css +1 -0
  235. package/src/components/tag/styles/tag.scss +73 -0
  236. package/src/core/jkl/_legacy-tokens.scss +1 -1
  237. package/src/core/jkl/_tokens.scss +14 -1
  238. package/src/core/styles/_color-tokens.scss +1 -1
  239. package/src/core/styles/_legacy-tokens.scss +1 -1
  240. package/src/core/styles/_tokens.scss +1 -1
  241. package/src/core/styles/core.css +4 -4
  242. package/src/core/styles/vind.css +1 -1
  243. package/src/core/tokens.less +14 -1
  244. package/build/CardImage-CRhZdMQc.js +0 -2
  245. package/build/CardImage-CRhZdMQc.js.map +0 -1
  246. package/build/CardImage-CW7cnY5T.cjs +0 -2
  247. package/build/CardImage-CW7cnY5T.cjs.map +0 -1
  248. package/build/cjs/components/SlotComponent.js +0 -2
  249. package/build/cjs/components/SlotComponent.js.map +0 -1
  250. package/build/cjs/core/utils/breakpoints.js +0 -2
  251. package/build/cjs/core/utils/breakpoints.js.map +0 -1
  252. package/build/cjs/core/utils/density.js +0 -2
  253. package/build/cjs/core/utils/density.js.map +0 -1
  254. package/build/cjs/core/utils/getValuePair.js.map +0 -1
  255. package/build/cjs/core/utils/index.js +0 -2
  256. package/build/cjs/core/utils/mergeProps.js.map +0 -1
  257. package/build/cjs/core/utils/mergeRefs.js.map +0 -1
  258. package/build/cjs/core/utils/motion.js +0 -2
  259. package/build/cjs/core/utils/motion.js.map +0 -1
  260. package/build/cjs/core/utils/tabListener.js.map +0 -1
  261. package/build/core/utils/breakpoints.d.ts +0 -6
  262. package/build/core/utils/density.d.ts +0 -1
  263. package/build/core/utils/getValuePair.d.ts +0 -2
  264. package/build/core/utils/index.d.ts +0 -8
  265. package/build/core/utils/motion.d.ts +0 -16
  266. package/build/es/components/SlotComponent.js +0 -2
  267. package/build/es/components/SlotComponent.js.map +0 -1
  268. package/build/es/core/utils/breakpoints.js +0 -2
  269. package/build/es/core/utils/breakpoints.js.map +0 -1
  270. package/build/es/core/utils/density.js +0 -2
  271. package/build/es/core/utils/density.js.map +0 -1
  272. package/build/es/core/utils/getValuePair.js.map +0 -1
  273. package/build/es/core/utils/index.js +0 -2
  274. package/build/es/core/utils/mergeProps.js.map +0 -1
  275. package/build/es/core/utils/mergeRefs.js.map +0 -1
  276. package/build/es/core/utils/motion.js +0 -2
  277. package/build/es/core/utils/motion.js.map +0 -1
  278. package/build/es/core/utils/tabListener.js.map +0 -1
  279. /package/build/cjs/{core/utils → components/input-group}/index.js.map +0 -0
  280. /package/build/{es/core/utils → cjs/components/tooltip}/index.js.map +0 -0
  281. /package/build/cjs/{core → utilities/polymorphism}/as-child.js +0 -0
  282. /package/build/cjs/{core → utilities/polymorphism}/as-child.js.map +0 -0
  283. /package/build/cjs/{core/utils → utilities/polymorphism}/mergeProps.js +0 -0
  284. /package/build/cjs/{core/utils → utilities/polymorphism}/mergeRefs.js +0 -0
  285. /package/build/cjs/{core → utilities/polymorphism}/polymorphism.js +0 -0
  286. /package/build/cjs/{core → utilities/polymorphism}/polymorphism.js.map +0 -0
  287. /package/build/cjs/{core/utils → utilities}/tabListener.js +0 -0
  288. /package/build/es/{core → utilities/polymorphism}/as-child.js +0 -0
  289. /package/build/es/{core → utilities/polymorphism}/as-child.js.map +0 -0
  290. /package/build/es/{core/utils → utilities/polymorphism}/mergeProps.js +0 -0
  291. /package/build/es/{core/utils → utilities/polymorphism}/mergeRefs.js +0 -0
  292. /package/build/es/{core → utilities/polymorphism}/polymorphism.js +0 -0
  293. /package/build/es/{core → utilities/polymorphism}/polymorphism.js.map +0 -0
  294. /package/build/es/{core/utils → utilities}/tabListener.js +0 -0
  295. /package/build/{components → utilities/polymorphism}/SlotComponent.d.ts +0 -0
  296. /package/build/{core → utilities/polymorphism}/as-child.d.ts +0 -0
  297. /package/build/{core/utils → utilities/polymorphism}/mergeProps.d.ts +0 -0
  298. /package/build/{core/utils → utilities/polymorphism}/mergeRefs.d.ts +0 -0
  299. /package/build/{core → utilities/polymorphism}/polymorphism.d.ts +0 -0
  300. /package/build/{core/utils → utilities}/tabListener.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 10 Sep 2024 05:21:22 GMT
3
+ * Generated on Mon, 23 Sep 2024 08:51:40 GMT
4
4
  */
5
5
 
6
6
  @use "../jkl";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 10 Sep 2024 05:21:22 GMT
3
+ * Generated on Mon, 23 Sep 2024 08:51:40 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 10 Sep 2024 05:21:22 GMT
3
+ * Generated on Mon, 23 Sep 2024 08:51:40 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,7 +1,7 @@
1
1
  @charset "UTF-8";
2
2
  /**
3
3
  * Do not edit directly
4
- * Generated on Tue, 10 Sep 2024 05:21:22 GMT
4
+ * Generated on Mon, 23 Sep 2024 08:51:40 GMT
5
5
  */
6
6
  /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
7
7
  /* Document
@@ -287,7 +287,7 @@ th {
287
287
 
288
288
  /**
289
289
  * Do not edit directly
290
- * Generated on Tue, 10 Sep 2024 05:21:22 GMT
290
+ * Generated on Mon, 23 Sep 2024 08:51:40 GMT
291
291
  */
292
292
  :root {
293
293
  --jkl-color-brand-snohvit: #f9f9f9;
@@ -401,7 +401,7 @@ th {
401
401
 
402
402
  /**
403
403
  * Do not edit directly
404
- * Generated on Tue, 10 Sep 2024 05:21:22 GMT
404
+ * Generated on Mon, 23 Sep 2024 08:51:40 GMT
405
405
  */
406
406
  :root {
407
407
  --jkl-color-svart: #000000;
@@ -427,7 +427,7 @@ th {
427
427
 
428
428
  /**
429
429
  * Do not edit directly
430
- * Generated on Tue, 10 Sep 2024 05:21:22 GMT
430
+ * Generated on Mon, 23 Sep 2024 08:51:40 GMT
431
431
  */
432
432
  @media screen and (prefers-color-scheme: light) {
433
433
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Tue, 10 Sep 2024 05:21:22 GMT
3
+ * Generated on Mon, 23 Sep 2024 08:51:40 GMT
4
4
  */
5
5
  .jkl .flex {
6
6
  display: flex;
@@ -1,7 +1,10 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 10 Sep 2024 05:21:22 GMT
3
+ // Generated on Mon, 23 Sep 2024 08:51:40 GMT
4
4
 
5
+ @breakpoint-medium: 680px;
6
+ @breakpoint-large: 1200px;
7
+ @breakpoint-xl: 1600px;
5
8
  @color-brand-snohvit: #f9f9f9;
6
9
  @color-brand-varde: #e0dbd4;
7
10
  @color-brand-granitt: #1b1917;
@@ -104,6 +107,16 @@
104
107
  @color-info-dark: #a9a9ca;
105
108
  @color-advarsel: #efdd9e;
106
109
  @color-advarsel-dark: #decc8d;
110
+ @motion-timing-energetic: 75ms;
111
+ @motion-timing-snappy: 100ms;
112
+ @motion-timing-productive: 150ms;
113
+ @motion-timing-expressive: 250ms;
114
+ @motion-timing-lazy: 400ms;
115
+ @motion-easing-standard: ease;
116
+ @motion-easing-entrance: ease-out;
117
+ @motion-easing-exit: ease-in;
118
+ @motion-easing-ease-in-bounce-out: cubic-bezier(0, 0, 0.375, 1.17);
119
+ @motion-easing-focus: cubic-bezier(0.6, 0.2, 0.35, 1);
107
120
  @spacing-0: 0;
108
121
  @spacing-2: 0.125rem;
109
122
  @spacing-4: 0.25rem;
@@ -1,2 +0,0 @@
1
- import{jsx as o}from"react/jsx-runtime";import{c as n}from"./clsx-BeLtu-UY.js";import s from"react";import"./es/components/card/NavCard.js";import"./es/components/icon/Icon.js";import"./es/components/icon/icons/animated/ArrowVerticalAnimated.js";import"./es/components/icon/icons/animated/ArrowHorizontalAnimated.js";import"./es/components/icon/icons/animated/PlusRemoveAnimated.js";import"./es/components/icon/icons/ArrowDownIcon.js";import"./es/components/icon/icons/ArrowLeftIcon.js";import"./es/components/icon/icons/ArrowNorthEastIcon.js";import"./es/components/icon/icons/ArrowRightIcon.js";import"./es/components/icon/icons/ArrowUpIcon.js";import"./es/components/icon/icons/CalendarIcon.js";import"./es/components/icon/icons/CheckIcon.js";import"./es/components/icon/icons/ChevronDownIcon.js";import"./es/components/icon/icons/ChevronLeftIcon.js";import"./es/components/icon/icons/ChevronRightIcon.js";import"./es/components/icon/icons/ChevronUpIcon.js";import"./es/components/icon/icons/CloseIcon.js";import"./es/components/icon/icons/CopyIcon.js";import"./es/components/icon/icons/DotsIcon.js";import"./es/components/icon/icons/DragIcon.js";import"./es/components/icon/icons/ErrorIcon.js";import"./es/components/icon/icons/GreenCheckIcon.js";import"./es/components/icon/icons/HamburgerIcon.js";import"./es/components/icon/icons/InfoIcon.js";import"./es/components/icon/icons/LinkIcon.js";import"./es/components/icon/icons/PlusIcon.js";import"./es/components/icon/icons/QuestionIcon.js";import"./es/components/icon/icons/RedCrossIcon.js";import"./es/components/icon/icons/SearchIcon.js";import"./es/components/icon/icons/SuccessIcon.js";import"./es/components/icon/icons/WarningIcon.js";import"./es/components/icon/icons/MinusIcon.js";import"./es/components/icon/icons/ThumbDownIcon.js";import"./es/components/icon/icons/ThumbUpIcon.js";import"./es/components/icon/icons/TrashCanIcon.js";import"./es/components/icon/icons/PenIcon.js";import"./es/components/icon-button/IconButton.js";import"./es/components/link/Link.js";import"./es/components/link/NavLink.js";import"./es/components/link-list/LinkList.js";import"./es/components/tag/Tag.js";import{SlotComponent as c}from"./es/components/SlotComponent.js";const i=["s","m","l","xl"],e=["outlined","high","low"],t=s.forwardRef((function(s,i){const{className:e,clickable:t=!1,padding:m="s",variant:r="high",asChild:p,as:a="div",...j}=s;return o(p?c:a,{"data-testid":"jkl-card","data-clickable":t,"data-padding":m,className:n("jkl-card",`jkl-card--${r}`,e),...j,ref:i})})),m=s.forwardRef((function({as:s,asChild:i,className:e,placement:t="top",...m},r){return o(i?c:s||"img",{ref:r,className:n("jkl-card-image",`jkl-card-image--${t}`,e),...m})}));export{t as C,m as a,i as b,e as c};
2
- //# sourceMappingURL=CardImage-CRhZdMQc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardImage-CRhZdMQc.js","sources":["../src/components/card/Card.tsx","../src/components/card/CardImage.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport React from \"react\";\nimport { SlotComponent } from \"../\";\nimport { type AsChildProps, type PolymorphicPropsWithRef, type PolymorphicRef } from \"../../core\";\n\nexport const CARD_PADDINGS = [\"s\", \"m\", \"l\", \"xl\"] as const;\nexport type CardPadding = (typeof CARD_PADDINGS)[number];\nexport const CARD_VARIANTS = [\"outlined\", \"high\", \"low\"] as const;\nexport type CardVariant = (typeof CARD_VARIANTS)[number];\n\nexport type CardProps<ElementType extends React.ElementType> = PolymorphicPropsWithRef<\n ElementType,\n {\n className?: string;\n /**\n * Setter padding på kortet. Tilsvarer samme property i Figma.\n * @default \"s\"\n */\n padding?: CardPadding;\n /**\n * Angir hvilken kortvariant du vil bruke. Velg en variant som gir god kontrast\n * til bakgrunnen på siden, slik at det er enkelt å skille innholdet fra hverandre.\n * @default \"high\"\n */\n variant?: CardVariant;\n /**\n * Angir om kortet visuelt skal fremstå som klikkbart. Du må selv rendre\n * kortet som et klikkbart element (f.eks. `<a>` eller en `<Link>` fra\n * et ruting-bibliotek) og gi det en `href` eller `onClick`-handler.\n * HUSK: Sett aria-label for at støtteverktøy, som skjermlesere, ikke\n * skal lese alt innholdet i kortet.\n */\n clickable?: boolean;\n }\n>;\n\ntype CardComponent = <ElementType extends React.ElementType = \"div\">(\n props: CardProps<ElementType> & AsChildProps,\n) => React.ReactElement | null;\n\n/**\n * En allsidig kortkomponent som brukes for å gruppere innhold på en side.\n * Komponenten rendres til vanlig som en `<div>`, men du kan velge å rendre\n * den som andre elementer eller komponenter der du trenger annen semantikk\n * eller funksjonalitet.\n */\nexport const Card = React.forwardRef(function Card<ElementType extends React.ElementType = \"div\">(\n props: CardProps<ElementType>,\n ref?: PolymorphicRef<ElementType>,\n) {\n const {\n className,\n clickable = false,\n padding = \"s\",\n variant = \"high\",\n asChild,\n as = \"div\",\n ...componentProps\n } = props;\n\n const Component = asChild ? SlotComponent : as;\n\n return (\n <Component\n data-testid=\"jkl-card\"\n data-clickable={clickable}\n data-padding={padding}\n className={clsx(\"jkl-card\", `jkl-card--${variant}`, className)}\n {...componentProps}\n ref={ref}\n />\n );\n}) as CardComponent;\n","import clsx from \"clsx\";\nimport React from \"react\";\nimport { SlotComponent } from \"../\";\nimport { AsChildProps, PolymorphicPropsWithRef, PolymorphicRef } from \"../../core\";\n\nexport type CardImageProps<ElementType extends React.ElementType> = PolymorphicPropsWithRef<\n ElementType,\n {\n /**\n * Legger til riktig negativ margin avhengig av hvor i kortet bildet\n * skal plasseres. Margin justeres automatisk etter padding i kortet.\n * @default \"top\"\n */\n placement?: \"top\" | \"middle\" | \"bottom\";\n }\n>;\n\ntype CardImageComponent = <ElementType extends React.ElementType = \"img\">(\n props: CardImageProps<ElementType>,\n) => React.ReactElement | null;\n\n/**\n * Bildekomponent som kan brukes i `Card` for å sørge for at bildet\n * blør helt ut i kantene av kortet. Rendres normalt som et `<img>`-\n * element, men du kan overstyre dette med `as` dersom du f.eks. har\n * en egen komponent for å håndtere responsive bilder.\n */\nexport const CardImage = React.forwardRef(function CardImage<ElementType extends React.ElementType = \"img\">(\n { as, asChild, className, placement = \"top\", ...imageProps }: CardImageProps<ElementType> & AsChildProps,\n ref?: PolymorphicRef<ElementType>,\n) {\n const Component = asChild ? SlotComponent : as || \"img\";\n\n return (\n <Component\n ref={ref}\n className={clsx(\"jkl-card-image\", `jkl-card-image--${placement}`, className)}\n {...imageProps}\n />\n );\n}) as CardImageComponent;\n"],"names":["CARD_PADDINGS","CARD_VARIANTS","Card","React","forwardRef","props","ref","className","clickable","padding","variant","asChild","as","componentProps","jsx","SlotComponent","clsx","CardImage","placement","imageProps"],"mappings":"uqEAKO,MAAMA,EAAgB,CAAC,IAAK,IAAK,IAAK,MAEhCC,EAAgB,CAAC,WAAY,OAAQ,OAuCrCC,EAAOC,EAAMC,YAAW,SACjCC,EACAC,GAEM,MACFC,UAAAA,EACAC,UAAAA,GAAY,EACZC,QAAAA,EAAU,IACVC,QAAAA,EAAU,OACVC,QAAAA,EACAC,GAAAA,EAAK,SACFC,GACHR,EAKA,OAAAS,EAHcH,EAAUI,EAAgBH,EAGvC,CACG,cAAY,WACZ,iBAAgBJ,EAChB,eAAcC,EACdF,UAAWS,EAAK,WAAY,aAAaN,IAAWH,MAChDM,EACJP,IAAAA,GAGZ,IC7CaW,EAAYd,EAAMC,YAAW,UACpCQ,GAAAA,EAAID,QAAAA,EAASJ,UAAAA,EAAWW,UAAAA,EAAY,SAAUC,GAChDb,GAKI,OAAAQ,EAHcH,EAAUI,EAAgBH,GAAM,MAG7C,CACGN,IAAAA,EACAC,UAAWS,EAAK,iBAAkB,mBAAmBE,IAAaX,MAC9DY,GAGhB"}
@@ -1,2 +0,0 @@
1
- "use strict";const n=require("react/jsx-runtime"),o=require("./clsx-E3yX_9sL.cjs"),c=require("react");require("./cjs/components/card/NavCard.js"),require("./cjs/components/icon/Icon.js"),require("./cjs/components/icon/icons/animated/ArrowVerticalAnimated.js"),require("./cjs/components/icon/icons/animated/ArrowHorizontalAnimated.js"),require("./cjs/components/icon/icons/animated/PlusRemoveAnimated.js"),require("./cjs/components/icon/icons/ArrowDownIcon.js"),require("./cjs/components/icon/icons/ArrowLeftIcon.js"),require("./cjs/components/icon/icons/ArrowNorthEastIcon.js"),require("./cjs/components/icon/icons/ArrowRightIcon.js"),require("./cjs/components/icon/icons/ArrowUpIcon.js"),require("./cjs/components/icon/icons/CalendarIcon.js"),require("./cjs/components/icon/icons/CheckIcon.js"),require("./cjs/components/icon/icons/ChevronDownIcon.js"),require("./cjs/components/icon/icons/ChevronLeftIcon.js"),require("./cjs/components/icon/icons/ChevronRightIcon.js"),require("./cjs/components/icon/icons/ChevronUpIcon.js"),require("./cjs/components/icon/icons/CloseIcon.js"),require("./cjs/components/icon/icons/CopyIcon.js"),require("./cjs/components/icon/icons/DotsIcon.js"),require("./cjs/components/icon/icons/DragIcon.js"),require("./cjs/components/icon/icons/ErrorIcon.js"),require("./cjs/components/icon/icons/GreenCheckIcon.js"),require("./cjs/components/icon/icons/HamburgerIcon.js"),require("./cjs/components/icon/icons/InfoIcon.js"),require("./cjs/components/icon/icons/LinkIcon.js"),require("./cjs/components/icon/icons/PlusIcon.js"),require("./cjs/components/icon/icons/QuestionIcon.js"),require("./cjs/components/icon/icons/RedCrossIcon.js"),require("./cjs/components/icon/icons/SearchIcon.js"),require("./cjs/components/icon/icons/SuccessIcon.js"),require("./cjs/components/icon/icons/WarningIcon.js"),require("./cjs/components/icon/icons/MinusIcon.js"),require("./cjs/components/icon/icons/ThumbDownIcon.js"),require("./cjs/components/icon/icons/ThumbUpIcon.js"),require("./cjs/components/icon/icons/TrashCanIcon.js"),require("./cjs/components/icon/icons/PenIcon.js"),require("./cjs/components/icon-button/IconButton.js"),require("./cjs/components/link/Link.js"),require("./cjs/components/link/NavLink.js"),require("./cjs/components/link-list/LinkList.js"),require("./cjs/components/tag/Tag.js");const s=require("./cjs/components/SlotComponent.js"),e=c.forwardRef((function(c,e){const{className:i,clickable:r=!1,padding:t="s",variant:j="high",asChild:m,as:a="div",...u}=c,p=m?s.SlotComponent:a;return n.jsx(p,{"data-testid":"jkl-card","data-clickable":r,"data-padding":t,className:o.clsx("jkl-card",`jkl-card--${j}`,i),...u,ref:e})})),i=c.forwardRef((function({as:c,asChild:e,className:i,placement:r="top",...t},j){const m=e?s.SlotComponent:c||"img";return n.jsx(m,{ref:j,className:o.clsx("jkl-card-image",`jkl-card-image--${r}`,i),...t})}));exports.CARD_PADDINGS=["s","m","l","xl"],exports.CARD_VARIANTS=["outlined","high","low"],exports.Card=e,exports.CardImage=i;
2
- //# sourceMappingURL=CardImage-CW7cnY5T.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardImage-CW7cnY5T.cjs","sources":["../src/components/card/Card.tsx","../src/components/card/CardImage.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport React from \"react\";\nimport { SlotComponent } from \"../\";\nimport { type AsChildProps, type PolymorphicPropsWithRef, type PolymorphicRef } from \"../../core\";\n\nexport const CARD_PADDINGS = [\"s\", \"m\", \"l\", \"xl\"] as const;\nexport type CardPadding = (typeof CARD_PADDINGS)[number];\nexport const CARD_VARIANTS = [\"outlined\", \"high\", \"low\"] as const;\nexport type CardVariant = (typeof CARD_VARIANTS)[number];\n\nexport type CardProps<ElementType extends React.ElementType> = PolymorphicPropsWithRef<\n ElementType,\n {\n className?: string;\n /**\n * Setter padding på kortet. Tilsvarer samme property i Figma.\n * @default \"s\"\n */\n padding?: CardPadding;\n /**\n * Angir hvilken kortvariant du vil bruke. Velg en variant som gir god kontrast\n * til bakgrunnen på siden, slik at det er enkelt å skille innholdet fra hverandre.\n * @default \"high\"\n */\n variant?: CardVariant;\n /**\n * Angir om kortet visuelt skal fremstå som klikkbart. Du må selv rendre\n * kortet som et klikkbart element (f.eks. `<a>` eller en `<Link>` fra\n * et ruting-bibliotek) og gi det en `href` eller `onClick`-handler.\n * HUSK: Sett aria-label for at støtteverktøy, som skjermlesere, ikke\n * skal lese alt innholdet i kortet.\n */\n clickable?: boolean;\n }\n>;\n\ntype CardComponent = <ElementType extends React.ElementType = \"div\">(\n props: CardProps<ElementType> & AsChildProps,\n) => React.ReactElement | null;\n\n/**\n * En allsidig kortkomponent som brukes for å gruppere innhold på en side.\n * Komponenten rendres til vanlig som en `<div>`, men du kan velge å rendre\n * den som andre elementer eller komponenter der du trenger annen semantikk\n * eller funksjonalitet.\n */\nexport const Card = React.forwardRef(function Card<ElementType extends React.ElementType = \"div\">(\n props: CardProps<ElementType>,\n ref?: PolymorphicRef<ElementType>,\n) {\n const {\n className,\n clickable = false,\n padding = \"s\",\n variant = \"high\",\n asChild,\n as = \"div\",\n ...componentProps\n } = props;\n\n const Component = asChild ? SlotComponent : as;\n\n return (\n <Component\n data-testid=\"jkl-card\"\n data-clickable={clickable}\n data-padding={padding}\n className={clsx(\"jkl-card\", `jkl-card--${variant}`, className)}\n {...componentProps}\n ref={ref}\n />\n );\n}) as CardComponent;\n","import clsx from \"clsx\";\nimport React from \"react\";\nimport { SlotComponent } from \"../\";\nimport { AsChildProps, PolymorphicPropsWithRef, PolymorphicRef } from \"../../core\";\n\nexport type CardImageProps<ElementType extends React.ElementType> = PolymorphicPropsWithRef<\n ElementType,\n {\n /**\n * Legger til riktig negativ margin avhengig av hvor i kortet bildet\n * skal plasseres. Margin justeres automatisk etter padding i kortet.\n * @default \"top\"\n */\n placement?: \"top\" | \"middle\" | \"bottom\";\n }\n>;\n\ntype CardImageComponent = <ElementType extends React.ElementType = \"img\">(\n props: CardImageProps<ElementType>,\n) => React.ReactElement | null;\n\n/**\n * Bildekomponent som kan brukes i `Card` for å sørge for at bildet\n * blør helt ut i kantene av kortet. Rendres normalt som et `<img>`-\n * element, men du kan overstyre dette med `as` dersom du f.eks. har\n * en egen komponent for å håndtere responsive bilder.\n */\nexport const CardImage = React.forwardRef(function CardImage<ElementType extends React.ElementType = \"img\">(\n { as, asChild, className, placement = \"top\", ...imageProps }: CardImageProps<ElementType> & AsChildProps,\n ref?: PolymorphicRef<ElementType>,\n) {\n const Component = asChild ? SlotComponent : as || \"img\";\n\n return (\n <Component\n ref={ref}\n className={clsx(\"jkl-card-image\", `jkl-card-image--${placement}`, className)}\n {...imageProps}\n />\n );\n}) as CardImageComponent;\n"],"names":["Card","React","forwardRef","props","ref","className","clickable","padding","variant","asChild","as","componentProps","Component","SlotComponent","jsx","clsx","CardImage","placement","imageProps"],"mappings":"i0EA8CaA,EAAOC,EAAMC,YAAW,SACjCC,EACAC,GAEM,MACFC,UAAAA,EACAC,UAAAA,GAAY,EACZC,QAAAA,EAAU,IACVC,QAAAA,EAAU,OACVC,QAAAA,EACAC,GAAAA,EAAK,SACFC,GACHR,EAEES,EAAYH,EAAUI,EAAgBA,cAAAH,EAGxC,OAAAI,EAAAA,IAACF,EAAA,CACG,cAAY,WACZ,iBAAgBN,EAChB,eAAcC,EACdF,UAAWU,EAAKA,KAAA,WAAY,aAAaP,IAAWH,MAChDM,EACJP,IAAAA,GAGZ,IC7CaY,EAAYf,EAAMC,YAAW,UACpCQ,GAAAA,EAAID,QAAAA,EAASJ,UAAAA,EAAWY,UAAAA,EAAY,SAAUC,GAChDd,GAEM,MAAAQ,EAAYH,EAAUI,gBAAgBH,GAAM,MAG9C,OAAAI,EAAAA,IAACF,EAAA,CACGR,IAAAA,EACAC,UAAWU,EAAKA,KAAA,iBAAkB,mBAAmBE,IAAaZ,MAC9Da,GAGhB,0BDnC6B,CAAC,IAAK,IAAK,IAAK,4BAEhB,CAAC,WAAY,OAAQ"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),r=require("../core/utils/mergeRefs.js"),t=require("../core/utils/mergeProps.js"),n=e.forwardRef((function({children:n,...o},i){if(e.isValidElement(n))return e.cloneElement(n,{...t.mergeProps(o,n.props),ref:r.mergeRefs(i,n.ref)});if(e.Children.count(n)>1)throw new Error("Du kan kun bruke ett enkelt React-element som children i en komponent med asChild");return null}));exports.SlotComponent=n;
2
- //# sourceMappingURL=SlotComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SlotComponent.js","sources":["../../../src/components/SlotComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { mergeRefs, mergeProps } from \"../core/utils\";\n\nexport type SlotComponentProps = React.HTMLAttributes<HTMLElement> & {\n children: React.ReactElement | false | null;\n};\n\nexport const SlotComponent = React.forwardRef<HTMLElement, SlotComponentProps>(function SlotComponent(\n { children, ...slotProps },\n forwardedRef,\n) {\n if (React.isValidElement(children)) {\n return React.cloneElement(children as React.ReactElement, {\n ...mergeProps(slotProps, children.props),\n ref: mergeRefs(forwardedRef, (children as any).ref),\n });\n }\n\n if (React.Children.count(children) > 1) {\n throw new Error(\"Du kan kun bruke ett enkelt React-element som children i en komponent med asChild\");\n }\n\n return null;\n});\n"],"names":["SlotComponent","React","forwardRef","children","slotProps","forwardedRef","isValidElement","cloneElement","mergeProps","props","ref","mergeRefs","Children","count","Error"],"mappings":"0LAOaA,EAAgBC,EAAMC,YAA4C,UACzEC,SAAAA,KAAaC,GACfC,GAEI,GAAAJ,EAAMK,eAAeH,GACd,OAAAF,EAAMM,aAAaJ,EAAgC,IACnDK,aAAWJ,EAAWD,EAASM,OAClCC,IAAKC,EAAAA,UAAUN,EAAeF,EAAiBO,OAIvD,GAAIT,EAAMW,SAASC,MAAMV,GAAY,EAC3B,MAAA,IAAIW,MAAM,qFAGb,OAAA,IACX"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.breakpoints={medium:680,large:1200,xl:1600};
2
- //# sourceMappingURL=breakpoints.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"breakpoints.js","sources":["../../../../src/core/utils/breakpoints.ts"],"sourcesContent":["export type Breakpoint = keyof typeof breakpoints;\n\nexport const breakpoints = {\n medium: 680,\n large: 1200,\n xl: 1600,\n};\n"],"names":["medium","large","xl"],"mappings":"oGAE2B,CACvBA,OAAQ,IACRC,MAAO,KACPC,GAAI"}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=density.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"density.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getValuePair.js","sources":["../../../../src/core/utils/getValuePair.ts"],"sourcesContent":["import { ValuePair } from \"../index\";\n\nexport function getValuePair(item: string | ValuePair): ValuePair {\n return typeof item === \"string\" ? { value: item, label: item } : item;\n}\n"],"names":["item","value","label"],"mappings":"qGAEO,SAAsBA,GAClB,MAAgB,iBAATA,EAAoB,CAAEC,MAAOD,EAAME,MAAOF,GAASA,CACrE"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./tabListener.js"),r=require("./getValuePair.js"),s=require("./breakpoints.js"),t=require("./motion.js"),i=require("./mergeRefs.js"),o=require("./mergeProps.js");exports.initTabListener=e.initTabListener,exports.getValuePair=r.getValuePair,exports.breakpoints=s.breakpoints,exports.easings=t.easings,exports.timings=t.timings,exports.mergeRefs=i.mergeRefs,exports.mergeProps=o.mergeProps;
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mergeProps.js","sources":["../../../../src/core/utils/mergeProps.ts"],"sourcesContent":["export function mergeProps(baseProps: Record<string, any>, addedProps: Record<string, any>) {\n const overrides = { ...addedProps };\n\n for (const prop in addedProps) {\n const basePropValue = baseProps[prop];\n const addedPropValue = addedProps[prop];\n\n if (/^on[A-Z]/.test(prop)) {\n // Propen er en event handler. Slå sammen hvis\n // den finnes på både base og added\n if (basePropValue && addedPropValue) {\n overrides[prop] = (...args: unknown[]) => {\n addedPropValue(...args);\n basePropValue(...args);\n };\n } else if (basePropValue) {\n overrides[prop] = basePropValue;\n }\n }\n\n if (prop === \"style\") {\n overrides[prop] = { ...basePropValue, ...addedPropValue };\n }\n\n if (prop === \"className\") {\n overrides[prop] = [basePropValue, addedPropValue].filter(Boolean).join(\" \");\n }\n }\n\n return { ...baseProps, ...overrides };\n}\n"],"names":["baseProps","addedProps","overrides","prop","basePropValue","addedPropValue","test","args","filter","Boolean","join"],"mappings":"mGAAgB,SAAWA,EAAgCC,GACjD,MAAAC,EAAY,IAAKD,GAEvB,IAAWE,MAAAA,KAAQF,EAAY,CACrB,MAAAG,EAAgBJ,EAAUG,GAC1BE,EAAiBJ,EAAWE,GAE9B,WAAWG,KAAKH,KAGZC,GAAiBC,EACPH,EAAAC,GAAQ,IAAII,KAClBF,KAAkBE,GAClBH,KAAiBG,EAAI,EAElBH,IACPF,EAAUC,GAAQC,IAIb,UAATD,IACAD,EAAUC,GAAQ,IAAKC,KAAkBC,IAGhC,cAATF,IACUD,EAAAC,GAAQ,CAACC,EAAeC,GAAgBG,OAAOC,SAASC,KAAK,KAE/E,CAEA,MAAO,IAAKV,KAAcE,EAC9B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mergeRefs.js","sources":["../../../../src/core/utils/mergeRefs.ts"],"sourcesContent":["import React from \"react\";\n\nexport type PossibleRef<T> = React.LegacyRef<T> | undefined;\n\nexport function mergeRefs<T>(...possibleRefs: PossibleRef<T>[]): React.RefCallback<T> {\n return (instance) =>\n possibleRefs.forEach((ref) => {\n if (typeof ref === \"function\") {\n ref(instance);\n } else if (ref !== null && ref !== undefined) {\n (ref as React.MutableRefObject<T | null>).current = instance;\n }\n });\n}\n"],"names":["possibleRefs","instance","forEach","ref","current"],"mappings":"kGAIO,YAAyBA,GAC5B,OAAQC,GACJD,EAAaE,SAASC,IACC,mBAARA,EACPA,EAAIF,GACW,MAARE,IACNA,EAAyCC,QAAUH,EACxD,GAEZ"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Object.freeze({standard:"ease",entrance:"ease-out",exit:"ease-in",easeInBounceOut:"cubic-bezier(0, 0, 0.375, 1.17)",focus:"cubic-bezier(0.6, 0.2, 0.35, 1)"}),s=Object.freeze({energetic:"75ms",snappy:"100ms",productive:"150ms",expressive:"250ms",lazy:"400ms"});exports.easings=e,exports.timings=s;
2
- //# sourceMappingURL=motion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"motion.js","sources":["../../../../src/core/utils/motion.ts"],"sourcesContent":["export type Easing = keyof typeof easings;\n\nexport const easings = Object.freeze({\n standard: \"ease\",\n entrance: \"ease-out\",\n exit: \"ease-in\",\n easeInBounceOut: \"cubic-bezier(0, 0, 0.375, 1.17)\",\n focus: \"cubic-bezier(0.6, 0.2, 0.35, 1)\",\n});\n\nexport type Timing = keyof typeof timings;\n\nexport const timings = Object.freeze({\n energetic: \"75ms\",\n snappy: \"100ms\",\n productive: \"150ms\",\n expressive: \"250ms\",\n lazy: \"400ms\",\n});\n"],"names":["easings","Object","freeze","standard","entrance","exit","easeInBounceOut","focus","timings","energetic","snappy","productive","expressive","lazy"],"mappings":"gFAEa,MAAAA,EAAUC,OAAOC,OAAO,CACjCC,SAAU,OACVC,SAAU,WACVC,KAAM,UACNC,gBAAiB,kCACjBC,MAAO,oCAKEC,EAAUP,OAAOC,OAAO,CACjCO,UAAW,OACXC,OAAQ,QACRC,WAAY,QACZC,WAAY,QACZC,KAAM"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tabListener.js","sources":["../../../../src/core/utils/tabListener.ts"],"sourcesContent":["let mousenavigation = false;\nlet touchnavigation = false;\nlet touchEventFired = false;\n\nconst listeners = {\n mousedown: handleMouseDown as EventListener,\n keydown: handleKeydown as EventListener,\n touchstart: handleTouchStart as EventListener,\n};\n\nfunction removeAllListeners() {\n (Object.keys(listeners) as Array<keyof typeof listeners>).forEach((listenerType) => {\n document.removeEventListener(listenerType, listeners[listenerType]);\n });\n}\n\nfunction addListener(listenerType: keyof typeof listeners) {\n document.addEventListener(listenerType, listeners[listenerType]);\n}\n\nfunction handleMouseDown() {\n if (!mousenavigation && !touchEventFired) {\n mousenavigation = true;\n touchnavigation = false;\n const htmlElement = document.querySelector(\"html\");\n htmlElement?.setAttribute(\"data-mousenavigation\", \"true\");\n htmlElement?.removeAttribute(\"data-touchnavigation\");\n\n // Reset listeners\n removeAllListeners();\n addListener(\"touchstart\");\n addListener(\"keydown\");\n }\n}\n\nfunction handleKeydown(event: KeyboardEvent) {\n if (event.key === \"Tab\") {\n const htmlElement = document.querySelector(\"html\");\n removeAllListeners();\n htmlElement?.removeAttribute(\"data-mousenavigation\");\n htmlElement?.removeAttribute(\"data-touchnavigation\");\n mousenavigation = false;\n touchnavigation = false;\n\n // Reset listeners\n addListener(\"touchstart\");\n addListener(\"mousedown\");\n }\n}\n\nfunction handleTouchStart() {\n if (!touchnavigation) {\n mousenavigation = false;\n touchnavigation = true;\n const htmlElement = document.querySelector(\"html\");\n htmlElement?.setAttribute(\"data-touchnavigation\", \"true\");\n htmlElement?.removeAttribute(\"data-mousenavigation\");\n\n // Reset listeners\n removeAllListeners();\n addListener(\"touchstart\");\n addListener(\"keydown\");\n addListener(\"mousedown\");\n }\n\n // Most touch devices fire both touch and mouse events on touch (in that order)\n // see https://w3c.github.io/touch-events/#mouse-events\n // Set a check variable to avoid resetting the data-attribute:\n touchEventFired = true;\n setTimeout(() => {\n touchEventFired = false;\n }, 150); // Yes, it can take this long between the events\n}\n\nexport function initTabListener(): void {\n if (typeof document !== \"undefined\") {\n addListener(\"touchstart\");\n addListener(\"mousedown\");\n }\n}\n"],"names":["mousenavigation","touchnavigation","touchEventFired","listeners","mousedown","htmlElement","document","querySelector","setAttribute","removeAttribute","removeAllListeners","addListener","keydown","event","key","touchstart","setTimeout","Object","keys","forEach","listenerType","removeEventListener","addEventListener"],"mappings":"gFAAA,IAAIA,GAAkB,EAClBC,GAAkB,EAClBC,GAAkB,EAEtB,MAAMC,EAAY,CACdC,UAeJ,WACQ,IAACJ,IAAoBE,EAAiB,CACpBF,GAAA,EACAC,GAAA,EACZ,MAAAI,EAAcC,SAASC,cAAc,QAC9B,MAAAF,GAAAA,EAAAG,aAAa,uBAAwB,QAClD,MAAAH,GAAAA,EAAaI,gBAAgB,wBAGVC,IACnBC,EAAY,cACZA,EAAY,UAChB,CACJ,EA3BIC,QA6BJ,SAAuBC,GACf,GAAc,QAAdA,EAAMC,IAAe,CACf,MAAAT,EAAcC,SAASC,cAAc,QACxBG,IACnB,MAAAL,GAAAA,EAAaI,gBAAgB,wBAC7B,MAAAJ,GAAAA,EAAaI,gBAAgB,wBACXT,GAAA,EACAC,GAAA,EAGlBU,EAAY,cACZA,EAAY,YAChB,CACJ,EAzCII,WA2CJ,WACI,IAAKd,EAAiB,CACAD,GAAA,EACAC,GAAA,EACZ,MAAAI,EAAcC,SAASC,cAAc,QAC9B,MAAAF,GAAAA,EAAAG,aAAa,uBAAwB,QAClD,MAAAH,GAAAA,EAAaI,gBAAgB,wBAGVC,IACnBC,EAAY,cACZA,EAAY,WACZA,EAAY,YAChB,CAKkBT,GAAA,EAClBc,YAAW,KACWd,GAAA,CAAA,GACnB,IACP,GA9DA,SAASQ,IACJO,OAAOC,KAAKf,GAA6CgB,SAASC,IAC/Dd,SAASe,oBAAoBD,EAAcjB,EAAUiB,GAAa,GAE1E,CAEA,SAAST,EAAYS,GACjBd,SAASgB,iBAAiBF,EAAcjB,EAAUiB,GACtD,yBAwDO,kBACQd,SAAa,MACpBK,EAAY,cACZA,EAAY,aAEpB"}
@@ -1,6 +0,0 @@
1
- export type Breakpoint = keyof typeof breakpoints;
2
- export declare const breakpoints: {
3
- medium: number;
4
- large: number;
5
- xl: number;
6
- };
@@ -1 +0,0 @@
1
- export type Density = "comfortable" | "compact";
@@ -1,2 +0,0 @@
1
- import { ValuePair } from '../index';
2
- export declare function getValuePair(item: string | ValuePair): ValuePair;
@@ -1,8 +0,0 @@
1
- export { initTabListener } from './tabListener';
2
- export { getValuePair } from './getValuePair';
3
- export { breakpoints } from './breakpoints';
4
- export type { Density } from './density';
5
- export type { Timing, Easing } from './motion';
6
- export { timings, easings } from './motion';
7
- export { type PossibleRef, mergeRefs } from './mergeRefs';
8
- export { mergeProps } from './mergeProps';
@@ -1,16 +0,0 @@
1
- export type Easing = keyof typeof easings;
2
- export declare const easings: Readonly<{
3
- standard: "ease";
4
- entrance: "ease-out";
5
- exit: "ease-in";
6
- easeInBounceOut: "cubic-bezier(0, 0, 0.375, 1.17)";
7
- focus: "cubic-bezier(0.6, 0.2, 0.35, 1)";
8
- }>;
9
- export type Timing = keyof typeof timings;
10
- export declare const timings: Readonly<{
11
- energetic: "75ms";
12
- snappy: "100ms";
13
- productive: "150ms";
14
- expressive: "250ms";
15
- lazy: "400ms";
16
- }>;
@@ -1,2 +0,0 @@
1
- import e from"react";import{mergeRefs as r}from"../core/utils/mergeRefs.js";import{mergeProps as o}from"../core/utils/mergeProps.js";const n=e.forwardRef((function({children:n,...t},m){if(e.isValidElement(n))return e.cloneElement(n,{...o(t,n.props),ref:r(m,n.ref)});if(e.Children.count(n)>1)throw new Error("Du kan kun bruke ett enkelt React-element som children i en komponent med asChild");return null}));export{n as SlotComponent};
2
- //# sourceMappingURL=SlotComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SlotComponent.js","sources":["../../../src/components/SlotComponent.tsx"],"sourcesContent":["import React from \"react\";\nimport { mergeRefs, mergeProps } from \"../core/utils\";\n\nexport type SlotComponentProps = React.HTMLAttributes<HTMLElement> & {\n children: React.ReactElement | false | null;\n};\n\nexport const SlotComponent = React.forwardRef<HTMLElement, SlotComponentProps>(function SlotComponent(\n { children, ...slotProps },\n forwardedRef,\n) {\n if (React.isValidElement(children)) {\n return React.cloneElement(children as React.ReactElement, {\n ...mergeProps(slotProps, children.props),\n ref: mergeRefs(forwardedRef, (children as any).ref),\n });\n }\n\n if (React.Children.count(children) > 1) {\n throw new Error(\"Du kan kun bruke ett enkelt React-element som children i en komponent med asChild\");\n }\n\n return null;\n});\n"],"names":["SlotComponent","React","forwardRef","children","slotProps","forwardedRef","isValidElement","cloneElement","mergeProps","props","ref","mergeRefs","Children","count","Error"],"mappings":"qIAOa,MAAAA,EAAgBC,EAAMC,YAA4C,UACzEC,SAAAA,KAAaC,GACfC,GAEIJ,GAAAA,EAAMK,eAAeH,GACdF,OAAAA,EAAMM,aAAaJ,EAAgC,IACnDK,EAAWJ,EAAWD,EAASM,OAClCC,IAAKC,EAAUN,EAAeF,EAAiBO,OAIvD,GAAIT,EAAMW,SAASC,MAAMV,GAAY,EAC3B,MAAA,IAAIW,MAAM,qFAGb,OAAA,IACX"}
@@ -1,2 +0,0 @@
1
- const e={medium:680,large:1200,xl:1600};export{e as breakpoints};
2
- //# sourceMappingURL=breakpoints.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"breakpoints.js","sources":["../../../../src/core/utils/breakpoints.ts"],"sourcesContent":["export type Breakpoint = keyof typeof breakpoints;\n\nexport const breakpoints = {\n medium: 680,\n large: 1200,\n xl: 1600,\n};\n"],"names":["breakpoints","medium","large","xl"],"mappings":"AAEO,MAAMA,EAAc,CACvBC,OAAQ,IACRC,MAAO,KACPC,GAAI"}
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=density.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"density.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getValuePair.js","sources":["../../../../src/core/utils/getValuePair.ts"],"sourcesContent":["import { ValuePair } from \"../index\";\n\nexport function getValuePair(item: string | ValuePair): ValuePair {\n return typeof item === \"string\" ? { value: item, label: item } : item;\n}\n"],"names":["getValuePair","item","value","label"],"mappings":"AAEO,SAASA,EAAaC,GAClB,MAAgB,iBAATA,EAAoB,CAAEC,MAAOD,EAAME,MAAOF,GAASA,CACrE"}
@@ -1,2 +0,0 @@
1
- import{initTabListener as s}from"./tabListener.js";import{getValuePair as e}from"./getValuePair.js";import{breakpoints as r}from"./breakpoints.js";import{easings as a,timings as i}from"./motion.js";import{mergeRefs as t}from"./mergeRefs.js";import{mergeProps as m}from"./mergeProps.js";export{r as breakpoints,a as easings,e as getValuePair,s as initTabListener,m as mergeProps,t as mergeRefs,i as timings};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mergeProps.js","sources":["../../../../src/core/utils/mergeProps.ts"],"sourcesContent":["export function mergeProps(baseProps: Record<string, any>, addedProps: Record<string, any>) {\n const overrides = { ...addedProps };\n\n for (const prop in addedProps) {\n const basePropValue = baseProps[prop];\n const addedPropValue = addedProps[prop];\n\n if (/^on[A-Z]/.test(prop)) {\n // Propen er en event handler. Slå sammen hvis\n // den finnes på både base og added\n if (basePropValue && addedPropValue) {\n overrides[prop] = (...args: unknown[]) => {\n addedPropValue(...args);\n basePropValue(...args);\n };\n } else if (basePropValue) {\n overrides[prop] = basePropValue;\n }\n }\n\n if (prop === \"style\") {\n overrides[prop] = { ...basePropValue, ...addedPropValue };\n }\n\n if (prop === \"className\") {\n overrides[prop] = [basePropValue, addedPropValue].filter(Boolean).join(\" \");\n }\n }\n\n return { ...baseProps, ...overrides };\n}\n"],"names":["mergeProps","baseProps","addedProps","overrides","prop","basePropValue","addedPropValue","test","args","filter","Boolean","join"],"mappings":"AAAgB,SAAAA,EAAWC,EAAgCC,GACjDC,MAAAA,EAAY,IAAKD,GAEvB,IAAA,MAAWE,KAAQF,EAAY,CACrB,MAAAG,EAAgBJ,EAAUG,GAC1BE,EAAiBJ,EAAWE,GAE9B,WAAWG,KAAKH,KAGZC,GAAiBC,EACPH,EAAAC,GAAQ,IAAII,KAClBF,KAAkBE,GAClBH,KAAiBG,EAAI,EAElBH,IACPF,EAAUC,GAAQC,IAIb,UAATD,IACAD,EAAUC,GAAQ,IAAKC,KAAkBC,IAGhC,cAATF,IACUD,EAAAC,GAAQ,CAACC,EAAeC,GAAgBG,OAAOC,SAASC,KAAK,KAE/E,CAEA,MAAO,IAAKV,KAAcE,EAC9B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mergeRefs.js","sources":["../../../../src/core/utils/mergeRefs.ts"],"sourcesContent":["import React from \"react\";\n\nexport type PossibleRef<T> = React.LegacyRef<T> | undefined;\n\nexport function mergeRefs<T>(...possibleRefs: PossibleRef<T>[]): React.RefCallback<T> {\n return (instance) =>\n possibleRefs.forEach((ref) => {\n if (typeof ref === \"function\") {\n ref(instance);\n } else if (ref !== null && ref !== undefined) {\n (ref as React.MutableRefObject<T | null>).current = instance;\n }\n });\n}\n"],"names":["mergeRefs","possibleRefs","instance","forEach","ref","current"],"mappings":"AAIO,SAASA,KAAgBC,GAC5B,OAAQC,GACJD,EAAaE,SAASC,IACC,mBAARA,EACPA,EAAIF,GACW,MAARE,IACNA,EAAyCC,QAAUH,EAAAA,GAGpE"}
@@ -1,2 +0,0 @@
1
- const e=Object.freeze({standard:"ease",entrance:"ease-out",exit:"ease-in",easeInBounceOut:"cubic-bezier(0, 0, 0.375, 1.17)",focus:"cubic-bezier(0.6, 0.2, 0.35, 1)"}),s=Object.freeze({energetic:"75ms",snappy:"100ms",productive:"150ms",expressive:"250ms",lazy:"400ms"});export{e as easings,s as timings};
2
- //# sourceMappingURL=motion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"motion.js","sources":["../../../../src/core/utils/motion.ts"],"sourcesContent":["export type Easing = keyof typeof easings;\n\nexport const easings = Object.freeze({\n standard: \"ease\",\n entrance: \"ease-out\",\n exit: \"ease-in\",\n easeInBounceOut: \"cubic-bezier(0, 0, 0.375, 1.17)\",\n focus: \"cubic-bezier(0.6, 0.2, 0.35, 1)\",\n});\n\nexport type Timing = keyof typeof timings;\n\nexport const timings = Object.freeze({\n energetic: \"75ms\",\n snappy: \"100ms\",\n productive: \"150ms\",\n expressive: \"250ms\",\n lazy: \"400ms\",\n});\n"],"names":["easings","Object","freeze","standard","entrance","exit","easeInBounceOut","focus","timings","energetic","snappy","productive","expressive","lazy"],"mappings":"AAEa,MAAAA,EAAUC,OAAOC,OAAO,CACjCC,SAAU,OACVC,SAAU,WACVC,KAAM,UACNC,gBAAiB,kCACjBC,MAAO,oCAKEC,EAAUP,OAAOC,OAAO,CACjCO,UAAW,OACXC,OAAQ,QACRC,WAAY,QACZC,WAAY,QACZC,KAAM"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tabListener.js","sources":["../../../../src/core/utils/tabListener.ts"],"sourcesContent":["let mousenavigation = false;\nlet touchnavigation = false;\nlet touchEventFired = false;\n\nconst listeners = {\n mousedown: handleMouseDown as EventListener,\n keydown: handleKeydown as EventListener,\n touchstart: handleTouchStart as EventListener,\n};\n\nfunction removeAllListeners() {\n (Object.keys(listeners) as Array<keyof typeof listeners>).forEach((listenerType) => {\n document.removeEventListener(listenerType, listeners[listenerType]);\n });\n}\n\nfunction addListener(listenerType: keyof typeof listeners) {\n document.addEventListener(listenerType, listeners[listenerType]);\n}\n\nfunction handleMouseDown() {\n if (!mousenavigation && !touchEventFired) {\n mousenavigation = true;\n touchnavigation = false;\n const htmlElement = document.querySelector(\"html\");\n htmlElement?.setAttribute(\"data-mousenavigation\", \"true\");\n htmlElement?.removeAttribute(\"data-touchnavigation\");\n\n // Reset listeners\n removeAllListeners();\n addListener(\"touchstart\");\n addListener(\"keydown\");\n }\n}\n\nfunction handleKeydown(event: KeyboardEvent) {\n if (event.key === \"Tab\") {\n const htmlElement = document.querySelector(\"html\");\n removeAllListeners();\n htmlElement?.removeAttribute(\"data-mousenavigation\");\n htmlElement?.removeAttribute(\"data-touchnavigation\");\n mousenavigation = false;\n touchnavigation = false;\n\n // Reset listeners\n addListener(\"touchstart\");\n addListener(\"mousedown\");\n }\n}\n\nfunction handleTouchStart() {\n if (!touchnavigation) {\n mousenavigation = false;\n touchnavigation = true;\n const htmlElement = document.querySelector(\"html\");\n htmlElement?.setAttribute(\"data-touchnavigation\", \"true\");\n htmlElement?.removeAttribute(\"data-mousenavigation\");\n\n // Reset listeners\n removeAllListeners();\n addListener(\"touchstart\");\n addListener(\"keydown\");\n addListener(\"mousedown\");\n }\n\n // Most touch devices fire both touch and mouse events on touch (in that order)\n // see https://w3c.github.io/touch-events/#mouse-events\n // Set a check variable to avoid resetting the data-attribute:\n touchEventFired = true;\n setTimeout(() => {\n touchEventFired = false;\n }, 150); // Yes, it can take this long between the events\n}\n\nexport function initTabListener(): void {\n if (typeof document !== \"undefined\") {\n addListener(\"touchstart\");\n addListener(\"mousedown\");\n }\n}\n"],"names":["mousenavigation","touchnavigation","touchEventFired","listeners","mousedown","htmlElement","document","querySelector","setAttribute","removeAttribute","removeAllListeners","addListener","keydown","event","key","touchstart","setTimeout","Object","keys","forEach","listenerType","removeEventListener","addEventListener","initTabListener"],"mappings":"AAAA,IAAIA,GAAkB,EAClBC,GAAkB,EAClBC,GAAkB,EAEtB,MAAMC,EAAY,CACdC,UAeJ,WACQ,IAACJ,IAAoBE,EAAiB,CACpBF,GAAA,EACAC,GAAA,EACZI,MAAAA,EAAcC,SAASC,cAAc,QAC9B,MAAAF,GAAAA,EAAAG,aAAa,uBAAwB,QAClD,MAAAH,GAAAA,EAAaI,gBAAgB,wBAGVC,IACnBC,EAAY,cACZA,EAAY,UAChB,CACJ,EA3BIC,QA6BJ,SAAuBC,GACfA,GAAc,QAAdA,EAAMC,IAAe,CACfT,MAAAA,EAAcC,SAASC,cAAc,QACxBG,IACnB,MAAAL,GAAAA,EAAaI,gBAAgB,wBAC7B,MAAAJ,GAAAA,EAAaI,gBAAgB,wBACXT,GAAA,EACAC,GAAA,EAGlBU,EAAY,cACZA,EAAY,YAChB,CACJ,EAzCII,WA2CJ,WACI,IAAKd,EAAiB,CACAD,GAAA,EACAC,GAAA,EACZI,MAAAA,EAAcC,SAASC,cAAc,QAC9B,MAAAF,GAAAA,EAAAG,aAAa,uBAAwB,QAClD,MAAAH,GAAAA,EAAaI,gBAAgB,wBAGVC,IACnBC,EAAY,cACZA,EAAY,WACZA,EAAY,YAChB,CAKkBT,GAAA,EAClBc,YAAW,KACWd,GAAA,CAAA,GACnB,IACP,GA9DA,SAASQ,IACJO,OAAOC,KAAKf,GAA6CgB,SAASC,IAC/Dd,SAASe,oBAAoBD,EAAcjB,EAAUiB,GAAa,GAE1E,CAEA,SAAST,EAAYS,GACjBd,SAASgB,iBAAiBF,EAAcjB,EAAUiB,GACtD,CAwDO,SAASG,WACDjB,SAAa,MACpBK,EAAY,cACZA,EAAY,aAEpB"}