@warp-ds/elements 2.2.0-next.9 → 2.3.0-next.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/README.md +188 -26
  2. package/dist/.storybook/utilities.js +52 -0
  3. package/dist/api.js.map +1 -1
  4. package/dist/custom-elements.json +1758 -2395
  5. package/dist/index.d.ts +1127 -25
  6. package/dist/packages/affix/affix.react.stories.d.ts +9 -0
  7. package/dist/packages/affix/affix.react.stories.js +10 -0
  8. package/dist/packages/affix/affix.stories.js +25 -0
  9. package/dist/packages/affix/affix.test.js +9 -0
  10. package/dist/packages/affix/index.d.ts +0 -17
  11. package/dist/packages/affix/index.js +5 -5
  12. package/dist/packages/affix/index.js.map +4 -4
  13. package/dist/packages/affix/react.d.ts +1 -1
  14. package/dist/packages/affix/react.js +15 -2482
  15. package/dist/packages/affix/styles.js +2 -0
  16. package/dist/packages/alert/alert.react.stories.d.ts +13 -0
  17. package/dist/packages/alert/alert.react.stories.js +44 -0
  18. package/dist/packages/alert/alert.stories.js +68 -0
  19. package/dist/packages/alert/alert.test.js +18 -0
  20. package/dist/packages/alert/index.d.ts +1 -6
  21. package/dist/packages/alert/index.js +4 -4
  22. package/dist/packages/alert/index.js.map +4 -4
  23. package/dist/packages/alert/react.d.ts +1 -1
  24. package/dist/packages/alert/react.js +11 -2492
  25. package/dist/packages/alert/styles.js +2 -0
  26. package/dist/packages/attention/attention.react.stories.d.ts +15 -0
  27. package/dist/packages/attention/attention.react.stories.js +92 -0
  28. package/dist/packages/attention/attention.stories.d.ts +1 -0
  29. package/dist/packages/attention/attention.stories.js +180 -0
  30. package/dist/packages/attention/attention.test.js +11 -0
  31. package/dist/packages/attention/index.d.ts +3 -29
  32. package/dist/packages/attention/index.js +249 -19
  33. package/dist/packages/attention/index.js.map +4 -4
  34. package/dist/packages/attention/layout-styles.js +905 -0
  35. package/dist/packages/attention/locales/da/messages.mjs +1 -0
  36. package/dist/packages/attention/locales/en/messages.mjs +1 -0
  37. package/dist/packages/attention/locales/fi/messages.mjs +1 -0
  38. package/dist/packages/attention/locales/nb/messages.mjs +1 -0
  39. package/dist/packages/attention/locales/sv/messages.mjs +1 -0
  40. package/dist/packages/attention/react.d.ts +15 -1
  41. package/dist/packages/attention/react.js +17 -3405
  42. package/dist/packages/attention/styles.js +2 -0
  43. package/dist/packages/badge/badge.react.stories.d.ts +18 -0
  44. package/dist/packages/badge/badge.react.stories.js +60 -0
  45. package/dist/packages/badge/badge.stories.js +68 -0
  46. package/dist/packages/badge/badge.test.js +9 -0
  47. package/dist/packages/badge/index.d.ts +0 -5
  48. package/dist/packages/badge/index.js +1 -1
  49. package/dist/packages/badge/index.js.map +4 -4
  50. package/dist/packages/badge/react.d.ts +1 -1
  51. package/dist/packages/badge/react.js +11 -2465
  52. package/dist/packages/badge/styles.js +2 -0
  53. package/dist/packages/box/box.react.stories.d.ts +15 -0
  54. package/dist/packages/box/box.react.stories.js +45 -0
  55. package/dist/packages/box/box.stories.js +59 -0
  56. package/dist/packages/box/box.test.js +9 -0
  57. package/dist/packages/box/index.d.ts +0 -5
  58. package/dist/packages/box/index.js +11 -4
  59. package/dist/packages/box/index.js.map +4 -4
  60. package/dist/packages/box/react.d.ts +1 -1
  61. package/dist/packages/box/react.js +11 -2465
  62. package/dist/packages/box/slot.test.js +9 -0
  63. package/dist/packages/box/styles.js +2 -0
  64. package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +13 -0
  65. package/dist/packages/breadcrumbs/breadcrumbs.react.stories.js +40 -0
  66. package/dist/packages/breadcrumbs/breadcrumbs.stories.js +60 -0
  67. package/dist/packages/breadcrumbs/breadcrumbs.test.js +16 -0
  68. package/dist/packages/breadcrumbs/index.d.ts +0 -12
  69. package/dist/packages/breadcrumbs/index.js +6 -6
  70. package/dist/packages/breadcrumbs/index.js.map +4 -4
  71. package/dist/packages/breadcrumbs/locales/da/messages.mjs +1 -0
  72. package/dist/packages/breadcrumbs/locales/en/messages.mjs +1 -0
  73. package/dist/packages/breadcrumbs/locales/fi/messages.mjs +1 -0
  74. package/dist/packages/breadcrumbs/locales/nb/messages.mjs +1 -0
  75. package/dist/packages/breadcrumbs/locales/sv/messages.mjs +1 -0
  76. package/dist/packages/breadcrumbs/react.d.ts +1 -1
  77. package/dist/packages/breadcrumbs/react.js +11 -2475
  78. package/dist/packages/breadcrumbs/styles.js +2 -0
  79. package/dist/packages/button/button.react.stories.d.ts +22 -0
  80. package/dist/packages/button/button.react.stories.js +102 -0
  81. package/dist/packages/button/button.stories.d.ts +4 -0
  82. package/dist/packages/button/button.stories.js +151 -0
  83. package/dist/packages/button/button.test.js +25 -0
  84. package/dist/packages/button/index.d.ts +0 -66
  85. package/dist/packages/button/index.js +17 -11
  86. package/dist/packages/button/index.js.map +4 -4
  87. package/dist/packages/button/locales/da/messages.mjs +1 -0
  88. package/dist/packages/button/locales/en/messages.mjs +1 -0
  89. package/dist/packages/button/locales/fi/messages.mjs +1 -0
  90. package/dist/packages/button/locales/nb/messages.mjs +1 -0
  91. package/dist/packages/button/locales/sv/messages.mjs +1 -0
  92. package/dist/packages/button/react.d.ts +1 -1
  93. package/dist/packages/button/react.js +10 -2684
  94. package/dist/packages/button/styles.js +2 -0
  95. package/dist/packages/card/card.react.stories.d.ts +16 -0
  96. package/dist/packages/card/card.react.stories.js +63 -0
  97. package/dist/packages/card/card.stories.js +82 -0
  98. package/dist/packages/card/card.test.js +9 -0
  99. package/dist/packages/card/index.d.ts +1 -18
  100. package/dist/packages/card/index.js +4 -4
  101. package/dist/packages/card/index.js.map +4 -4
  102. package/dist/packages/card/locales/da/messages.mjs +1 -0
  103. package/dist/packages/card/locales/en/messages.mjs +1 -0
  104. package/dist/packages/card/locales/fi/messages.mjs +1 -0
  105. package/dist/packages/card/locales/nb/messages.mjs +1 -0
  106. package/dist/packages/card/locales/sv/messages.mjs +1 -0
  107. package/dist/packages/card/react.d.ts +1 -1
  108. package/dist/packages/card/react.js +11 -2487
  109. package/dist/packages/card/styles.js +2 -0
  110. package/dist/packages/expandable/expandable.react.stories.d.ts +18 -0
  111. package/dist/packages/expandable/expandable.react.stories.js +103 -0
  112. package/dist/packages/expandable/expandable.stories.js +132 -0
  113. package/dist/packages/expandable/expandable.test.js +24 -0
  114. package/dist/packages/expandable/index.d.ts +2 -33
  115. package/dist/packages/expandable/index.js +20 -11
  116. package/dist/packages/expandable/index.js.map +4 -4
  117. package/dist/packages/expandable/react.d.ts +1 -1
  118. package/dist/packages/expandable/react.js +11 -2495
  119. package/dist/packages/expandable/styles.js +2 -0
  120. package/dist/packages/i18n.js +45 -0
  121. package/dist/packages/link/index.d.ts +0 -5
  122. package/dist/packages/link/index.js +93 -2640
  123. package/dist/packages/link/styles.js +200 -0
  124. package/dist/packages/modal/index.js +24 -41
  125. package/dist/packages/modal/index.js.map +4 -4
  126. package/dist/packages/modal/locales/da/messages.mjs +1 -0
  127. package/dist/packages/modal/locales/en/messages.mjs +1 -0
  128. package/dist/packages/modal/locales/fi/messages.mjs +1 -0
  129. package/dist/packages/modal/locales/nb/messages.mjs +1 -0
  130. package/dist/packages/modal/locales/sv/messages.mjs +1 -0
  131. package/dist/packages/modal/modal-footer.d.ts +0 -5
  132. package/dist/packages/{dead-toggle/index.js → modal/modal-footer.js} +20 -47
  133. package/dist/packages/modal/modal-footer.js.map +7 -0
  134. package/dist/packages/modal/modal-header.d.ts +0 -5
  135. package/dist/packages/modal/modal-header.js +2567 -0
  136. package/dist/packages/modal/modal-header.js.map +7 -0
  137. package/dist/packages/modal/modal-main.d.ts +0 -5
  138. package/dist/packages/{dead-toggle/react.js → modal/modal-main.js} +124 -59
  139. package/dist/packages/{box/react.js.map → modal/modal-main.js.map} +4 -4
  140. package/dist/packages/modal/modal.react.stories.d.ts +14 -0
  141. package/dist/packages/modal/modal.react.stories.js +27 -0
  142. package/dist/packages/modal/modal.stories.d.ts +3 -3
  143. package/dist/packages/modal/modal.stories.js +254 -0
  144. package/dist/packages/modal/react.d.ts +11 -3
  145. package/dist/packages/modal/react.js +31 -2754
  146. package/dist/packages/modal/util.js +21 -0
  147. package/dist/packages/pagination/index.d.ts +0 -5
  148. package/dist/packages/pagination/index.js +19 -13
  149. package/dist/packages/pagination/index.js.map +3 -3
  150. package/dist/packages/pagination/locales/da/messages.mjs +1 -0
  151. package/dist/packages/pagination/locales/en/messages.mjs +1 -0
  152. package/dist/packages/pagination/locales/fi/messages.mjs +1 -0
  153. package/dist/packages/pagination/locales/nb/messages.mjs +1 -0
  154. package/dist/packages/pagination/locales/sv/messages.mjs +1 -0
  155. package/dist/packages/pagination/pagination.react.stories.d.ts +21 -0
  156. package/dist/packages/pagination/pagination.react.stories.js +45 -0
  157. package/dist/packages/pagination/pagination.stories.js +56 -0
  158. package/dist/packages/pagination/pagination.test.js +76 -0
  159. package/dist/packages/pagination/react.d.ts +5 -2
  160. package/dist/packages/pagination/react.js +15 -2514
  161. package/dist/packages/pagination/styles.js +2 -0
  162. package/dist/packages/pill/index.d.ts +0 -17
  163. package/dist/packages/pill/index.js +5 -5
  164. package/dist/packages/pill/index.js.map +2 -2
  165. package/dist/packages/pill/locales/da/messages.mjs +1 -0
  166. package/dist/packages/pill/locales/en/messages.mjs +1 -0
  167. package/dist/packages/pill/locales/fi/messages.mjs +1 -0
  168. package/dist/packages/pill/locales/nb/messages.mjs +1 -0
  169. package/dist/packages/pill/locales/sv/messages.mjs +1 -0
  170. package/dist/packages/pill/pill.react.stories.d.ts +23 -0
  171. package/dist/packages/pill/pill.react.stories.js +22 -0
  172. package/dist/packages/pill/pill.stories.js +33 -0
  173. package/dist/packages/pill/pill.test.js +25 -0
  174. package/dist/packages/pill/react.d.ts +7 -0
  175. package/dist/packages/pill/react.js +17 -0
  176. package/dist/packages/pill/styles.js +2 -0
  177. package/dist/packages/select/index.d.ts +4 -29
  178. package/dist/packages/select/index.js +25 -18
  179. package/dist/packages/select/index.js.map +3 -3
  180. package/dist/packages/select/locales/da/messages.mjs +1 -0
  181. package/dist/packages/select/locales/en/messages.mjs +1 -0
  182. package/dist/packages/select/locales/fi/messages.mjs +1 -0
  183. package/dist/packages/select/locales/nb/messages.mjs +1 -0
  184. package/dist/packages/select/locales/sv/messages.mjs +1 -0
  185. package/dist/packages/select/react.d.ts +6 -2
  186. package/dist/packages/select/react.js +20 -2494
  187. package/dist/packages/select/select.react.stories.d.ts +18 -0
  188. package/dist/packages/select/select.react.stories.js +28 -0
  189. package/dist/packages/select/select.stories.d.ts +7 -0
  190. package/dist/packages/select/select.stories.js +100 -0
  191. package/dist/packages/select/select.test.js +31 -0
  192. package/dist/packages/select/styles.js +2 -0
  193. package/dist/packages/slider/Slider.d.ts +2 -0
  194. package/dist/packages/slider/Slider.js +8 -0
  195. package/dist/packages/slider/SliderThumb.d.ts +2 -0
  196. package/dist/packages/slider/SliderThumb.js +8 -0
  197. package/dist/packages/slider/index.d.ts +2 -0
  198. package/dist/packages/slider/index.js +2 -0
  199. package/dist/packages/slider/oddbird-css-anchor-positioning.d.ts +2 -0
  200. package/dist/packages/slider/oddbird-css-anchor-positioning.js +3 -0
  201. package/dist/packages/slider/react.d.ts +8 -0
  202. package/dist/packages/slider/react.js +20 -0
  203. package/dist/packages/slider/slider-thumb.d.ts +57 -0
  204. package/dist/packages/{steps/index.js → slider/slider-thumb.js} +268 -28
  205. package/dist/packages/slider/slider-thumb.js.map +7 -0
  206. package/dist/packages/slider/slider.d.ts +46 -0
  207. package/dist/packages/{switch/react.js → slider/slider.js} +150 -38
  208. package/dist/packages/slider/slider.js.map +7 -0
  209. package/dist/packages/slider/slider.react.stories.d.ts +18 -0
  210. package/dist/packages/slider/slider.react.stories.js +118 -0
  211. package/dist/packages/slider/slider.stories.d.ts +18 -0
  212. package/dist/packages/slider/slider.stories.js +197 -0
  213. package/dist/packages/slider/slider.test.d.ts +4 -0
  214. package/dist/packages/slider/slider.test.js +83 -0
  215. package/dist/packages/slider/styles/w-slider-thumb.styles.d.ts +1 -0
  216. package/dist/packages/slider/styles/w-slider-thumb.styles.js +167 -0
  217. package/dist/packages/slider/styles/w-slider.styles.d.ts +1 -0
  218. package/dist/packages/slider/styles/w-slider.styles.js +134 -0
  219. package/dist/packages/slider/styles.js +2 -0
  220. package/dist/packages/{switch/index.js → styles.js} +5 -18
  221. package/dist/packages/textfield/index.d.ts +12 -26
  222. package/dist/packages/textfield/index.js +86 -28
  223. package/dist/packages/textfield/index.js.map +4 -4
  224. package/dist/packages/textfield/react.d.ts +11 -2
  225. package/dist/packages/textfield/react.js +21 -2490
  226. package/dist/packages/textfield/styles/w-textfield.styles.d.ts +1 -0
  227. package/dist/packages/textfield/styles/w-textfield.styles.js +55 -0
  228. package/dist/packages/textfield/styles.js +2 -0
  229. package/dist/packages/textfield/textfield.react.stories.d.ts +37 -0
  230. package/dist/packages/textfield/textfield.react.stories.js +88 -0
  231. package/dist/packages/textfield/textfield.stories.d.ts +1 -0
  232. package/dist/packages/textfield/textfield.stories.js +105 -0
  233. package/dist/packages/textfield/textfield.test.d.ts +1 -0
  234. package/dist/packages/textfield/textfield.test.js +68 -0
  235. package/dist/packages/toast/api.d.ts +1 -1
  236. package/dist/packages/toast/api.js +41 -0
  237. package/dist/packages/toast/index.d.ts +1 -1
  238. package/dist/packages/toast/index.js +17 -17
  239. package/dist/packages/toast/index.js.map +4 -4
  240. package/dist/packages/toast/locales/da/messages.mjs +1 -0
  241. package/dist/packages/toast/locales/en/messages.mjs +1 -0
  242. package/dist/packages/toast/locales/fi/messages.mjs +1 -0
  243. package/dist/packages/toast/locales/nb/messages.mjs +1 -0
  244. package/dist/packages/toast/locales/sv/messages.mjs +1 -0
  245. package/dist/packages/toast/styles.js +2 -0
  246. package/dist/packages/toast/toast-container.d.ts +1 -1
  247. package/dist/packages/toast/toast-container.js +2458 -0
  248. package/dist/packages/toast/toast-container.js.map +7 -0
  249. package/dist/packages/toast/toast.js +2466 -0
  250. package/dist/packages/toast/toast.js.map +7 -0
  251. package/dist/packages/toast/toast.stories.js +50 -0
  252. package/dist/packages/toast/types.js +1 -0
  253. package/dist/packages/utils/expand-transition.d.ts +3 -3
  254. package/dist/packages/utils/expand-transition.js +59 -0
  255. package/dist/packages/utils/index.js +37 -0
  256. package/dist/packages/utils/unstyled-heading.d.ts +2 -3
  257. package/dist/packages/utils/unstyled-heading.js +22 -0
  258. package/dist/packages/utils/window-exists.js +1 -0
  259. package/dist/setup-tests.js +1 -0
  260. package/dist/web-types.json +358 -449
  261. package/package.json +41 -32
  262. package/dist/index.css +0 -2
  263. package/dist/index.css.map +0 -7
  264. package/dist/index.js +0 -4285
  265. package/dist/index.js.map +0 -7
  266. package/dist/packages/affix/react.js.map +0 -7
  267. package/dist/packages/alert/react.js.map +0 -7
  268. package/dist/packages/attention/react.js.map +0 -7
  269. package/dist/packages/badge/react.js.map +0 -7
  270. package/dist/packages/breadcrumbs/react.js.map +0 -7
  271. package/dist/packages/button/react.js.map +0 -7
  272. package/dist/packages/card/react.js.map +0 -7
  273. package/dist/packages/datepicker/DatePicker.test.d.ts +0 -1
  274. package/dist/packages/datepicker/datepicker.d.ts +0 -107
  275. package/dist/packages/datepicker/datepicker.stories.d.ts +0 -11
  276. package/dist/packages/datepicker/datepicker.test.d.ts +0 -2
  277. package/dist/packages/datepicker/index.d.ts +0 -1
  278. package/dist/packages/datepicker/index.js +0 -2785
  279. package/dist/packages/datepicker/index.js.map +0 -7
  280. package/dist/packages/datepicker/locales/da/messages.d.mts +0 -1
  281. package/dist/packages/datepicker/locales/en/messages.d.mts +0 -1
  282. package/dist/packages/datepicker/locales/fi/messages.d.mts +0 -1
  283. package/dist/packages/datepicker/locales/nb/messages.d.mts +0 -1
  284. package/dist/packages/datepicker/locales/sv/messages.d.mts +0 -1
  285. package/dist/packages/datepicker/react.d.ts +0 -2
  286. package/dist/packages/datepicker/react.js +0 -2805
  287. package/dist/packages/datepicker/react.js.map +0 -7
  288. package/dist/packages/datepicker/styles/w-datepicker-calendar.styles.d.ts +0 -1
  289. package/dist/packages/datepicker/styles/w-datepicker-day.styles.d.ts +0 -1
  290. package/dist/packages/datepicker/styles/w-datepicker-month.styles.d.ts +0 -1
  291. package/dist/packages/datepicker/styles/w-datepicker.styles.d.ts +0 -1
  292. package/dist/packages/datepicker/utils.d.ts +0 -13
  293. package/dist/packages/dead-toggle/dead-toggle.stories.d.ts +0 -10
  294. package/dist/packages/dead-toggle/dead-toggle.test.d.ts +0 -1
  295. package/dist/packages/dead-toggle/index.d.ts +0 -21
  296. package/dist/packages/dead-toggle/index.js.map +0 -7
  297. package/dist/packages/dead-toggle/react.d.ts +0 -2
  298. package/dist/packages/dead-toggle/react.js.map +0 -7
  299. package/dist/packages/expandable/react.js.map +0 -7
  300. package/dist/packages/link/index.js.map +0 -7
  301. package/dist/packages/link/link.stories.d.ts +0 -20
  302. package/dist/packages/link/link.test.d.ts +0 -1
  303. package/dist/packages/link/react.d.ts +0 -2
  304. package/dist/packages/link/react.js +0 -2666
  305. package/dist/packages/link/react.js.map +0 -7
  306. package/dist/packages/modal/react.js.map +0 -7
  307. package/dist/packages/pageindicator/index.d.ts +0 -14
  308. package/dist/packages/pageindicator/index.js +0 -32
  309. package/dist/packages/pageindicator/index.js.map +0 -7
  310. package/dist/packages/pageindicator/pageindicator.stories.d.ts +0 -32
  311. package/dist/packages/pageindicator/react.d.ts +0 -2
  312. package/dist/packages/pageindicator/react.js +0 -52
  313. package/dist/packages/pageindicator/react.js.map +0 -7
  314. package/dist/packages/pageindicator/style.d.ts +0 -1
  315. package/dist/packages/pagination/react.js.map +0 -7
  316. package/dist/packages/rip-and-tear-checkbox/checkbox.d.ts +0 -64
  317. package/dist/packages/rip-and-tear-checkbox/index.css +0 -2
  318. package/dist/packages/rip-and-tear-checkbox/index.css.map +0 -7
  319. package/dist/packages/rip-and-tear-checkbox/index.d.ts +0 -6
  320. package/dist/packages/rip-and-tear-checkbox/index.js +0 -36
  321. package/dist/packages/rip-and-tear-checkbox/index.js.map +0 -7
  322. package/dist/packages/rip-and-tear-radio/base-element.d.ts +0 -46
  323. package/dist/packages/rip-and-tear-radio/custom-error-validator.d.ts +0 -6
  324. package/dist/packages/rip-and-tear-radio/form-associated-element.d.ts +0 -103
  325. package/dist/packages/rip-and-tear-radio/index.css +0 -2
  326. package/dist/packages/rip-and-tear-radio/index.css.map +0 -7
  327. package/dist/packages/rip-and-tear-radio/index.d.ts +0 -8
  328. package/dist/packages/rip-and-tear-radio/index.js +0 -34
  329. package/dist/packages/rip-and-tear-radio/index.js.map +0 -7
  330. package/dist/packages/rip-and-tear-radio/invalid.d.ts +0 -8
  331. package/dist/packages/rip-and-tear-radio/math.d.ts +0 -1
  332. package/dist/packages/rip-and-tear-radio/radio-group.d.ts +0 -72
  333. package/dist/packages/rip-and-tear-radio/radio.d.ts +0 -38
  334. package/dist/packages/rip-and-tear-radio/required-validator.d.ts +0 -11
  335. package/dist/packages/rip-and-tear-radio/slot.d.ts +0 -20
  336. package/dist/packages/rip-and-tear-radio/watch.d.ts +0 -26
  337. package/dist/packages/select/react.js.map +0 -7
  338. package/dist/packages/steps/index.d.ts +0 -43
  339. package/dist/packages/steps/index.js.map +0 -7
  340. package/dist/packages/steps/locales/da/messages.d.mts +0 -1
  341. package/dist/packages/steps/locales/en/messages.d.mts +0 -1
  342. package/dist/packages/steps/locales/fi/messages.d.mts +0 -1
  343. package/dist/packages/steps/locales/nb/messages.d.mts +0 -1
  344. package/dist/packages/steps/locales/sv/messages.d.mts +0 -1
  345. package/dist/packages/steps/react.d.ts +0 -3
  346. package/dist/packages/steps/react.js +0 -2485
  347. package/dist/packages/steps/react.js.map +0 -7
  348. package/dist/packages/steps/steps.stories.d.ts +0 -12
  349. package/dist/packages/switch/index.d.ts +0 -20
  350. package/dist/packages/switch/index.js.map +0 -7
  351. package/dist/packages/switch/react.d.ts +0 -2
  352. package/dist/packages/switch/react.js.map +0 -7
  353. package/dist/packages/switch/styles.d.ts +0 -1
  354. package/dist/packages/switch/switch.stories.d.ts +0 -9
  355. package/dist/packages/textfield/react.js.map +0 -7
  356. package/dist/vscode.css-custom-data.json +0 -6
  357. package/dist/vscode.html-custom-data.json +0 -421
  358. /package/dist/packages/{steps → slider}/styles.d.ts +0 -0
@@ -0,0 +1,2 @@
1
+ import { css } from 'lit';
2
+ export const styles = css `*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.text-center{text-align:center}.animate-inprogress{background-size:30px 30px;animation:3s linear infinite animate-inprogress;background-image:linear-gradient(135deg,#0000000d 25%,#0000 0 50%,#0000000d 0 75%,#0000 0,#0000)!important}@keyframes animate-inprogress{0%{background-position:0 0}to{background-position:60px 0}}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.bg-transparent{background-color:#0000}.bg-\\[--w-color-button-primary-background\\]{background-color:var(--w-color-button-primary-background)}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover{background-color:var(--w-color-button-primary-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}.active\\:bg-\\[--w-color-button-primary-background-active\\]:active{background-color:var(--w-color-button-primary-background-active)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-transparent{border-color:#0000}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.inline-block{display:inline-block}.inline{display:inline}.inline-flex{display:inline-flex}.hover\\:underline:hover,.focus\\:underline:focus,.active\\:underline:active{text-decoration-line:underline}.hover\\:no-underline:hover,.focus\\:no-underline:focus,.active\\:no-underline:active{text-decoration:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.justify-center{justify-content:center}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-negative{background-color:var(--w-s-color-background-negative)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-negative-hover:hover{background-color:var(--w-s-color-background-negative-hover)}.hover\\:s-bg-negative-subtle-hover:hover{background-color:var(--w-s-color-background-negative-subtle-hover)}.active\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}.active\\:s-bg-negative-active:active{background-color:var(--w-s-color-background-negative-active)}.active\\:s-bg-negative-subtle-active:active{background-color:var(--w-s-color-background-negative-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-icon{color:var(--w-s-color-icon)}.hover\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border{border-color:var(--w-s-color-border)}.hover\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.max-w-full{max-width:100%}.max-w-max{max-width:max-content}.min-h-32{min-height:3.2rem}.min-w-32{min-width:3.2rem}.w-full{width:100%}.min-h-\\[44px\\]{min-height:44px}.min-w-\\[44px\\]{min-width:44px}.p-0{padding:0}.p-4{padding:.4rem}.px-14{padding-left:1.4rem;padding-right:1.4rem}.px-16{padding-left:1.6rem;padding-right:1.6rem}.py-10{padding-top:1rem;padding-bottom:1rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.px-\\[15px\\]{padding-left:15px;padding-right:15px}.py-\\[11px\\]{padding-top:11px;padding-bottom:11px}.py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.cursor-default{cursor:default}.font-bold{font-weight:700}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-\\[24\\]{line-height:2.4rem}`;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { StoryObj } from '@storybook/react';
3
+ import { Card } from './react';
4
+ declare const _default: {
5
+ title: string;
6
+ render(args: Omit<React.HTMLAttributes<import(".").WarpCard>, "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "flat" | "keypressed" | "buttonText" | "selected" | "clickable" | "_containerClasses" | "_outlineClasses" | "_interactiveElement"> & {} & Partial<Omit<import(".").WarpCard, keyof HTMLElement>> & React.RefAttributes<import(".").WarpCard>): React.JSX.Element;
7
+ component: import("@lit/react").ReactWebComponent<import(".").WarpCard, {}>;
8
+ };
9
+ export default _default;
10
+ export type Story = StoryObj<typeof Card>;
11
+ export declare const Default: Story;
12
+ export declare const Selected: Story;
13
+ export declare const Flat: Story;
14
+ export declare const FlatSelected: Story;
15
+ export declare const Clickable: Story;
16
+ export declare const PropertyExample: Story;
@@ -0,0 +1,63 @@
1
+ import React from 'react';
2
+ import { Card } from './react';
3
+ export default {
4
+ title: 'Navigation/Card',
5
+ render(args) {
6
+ return (React.createElement(Card, { ...args },
7
+ React.createElement("div", { style: { padding: '16px' } },
8
+ React.createElement("h3", null, "Card Title"),
9
+ React.createElement("p", null, "This is card content with some example text."))));
10
+ },
11
+ component: Card,
12
+ };
13
+ export const Default = {
14
+ args: {
15
+ selected: false,
16
+ flat: false,
17
+ clickable: false,
18
+ },
19
+ };
20
+ export const Selected = {
21
+ args: {
22
+ selected: true,
23
+ flat: false,
24
+ clickable: false,
25
+ },
26
+ };
27
+ export const Flat = {
28
+ args: {
29
+ selected: false,
30
+ flat: true,
31
+ clickable: false,
32
+ },
33
+ };
34
+ export const FlatSelected = {
35
+ args: {
36
+ selected: true,
37
+ flat: true,
38
+ clickable: false,
39
+ },
40
+ };
41
+ export const Clickable = {
42
+ args: {
43
+ selected: false,
44
+ flat: false,
45
+ clickable: true,
46
+ },
47
+ };
48
+ export const PropertyExample = {
49
+ args: {
50
+ selected: false,
51
+ flat: false,
52
+ clickable: true,
53
+ },
54
+ render(args) {
55
+ return (React.createElement(Card, { ...args, style: { maxWidth: '300px' } },
56
+ React.createElement("img", { style: { width: '100%', height: '200px', objectFit: 'cover' }, src: "https://unsplash.it/300/200?random", alt: "Example image" }),
57
+ React.createElement("div", { style: { padding: '16px' } },
58
+ React.createElement("p", { style: { fontSize: '12px', color: '#666', margin: '0 0 8px 0' } }, "DNB Eiendom"),
59
+ React.createElement("p", { style: { margin: '0 0 8px 0' } }, "Stilfull og gjennomg\u00E5ende 3-roms m/balkong. Oppusset i 2019."),
60
+ React.createElement("p", { style: { fontSize: '14px', color: '#666', margin: '0 0 8px 0' } }, "B\u00F8gata 25C, 0655 Oslo"),
61
+ React.createElement("p", { style: { fontWeight: 'bold', margin: '0' } }, "52 m\u00B2 Totalpris: 4 869 039 kr"))));
62
+ },
63
+ };
@@ -0,0 +1,82 @@
1
+ import { spread } from '@open-wc/lit-helpers';
2
+ import { getStorybookHelpers } from '@wc-toolkit/storybook-helpers';
3
+ import { html } from 'lit';
4
+ import { prespread } from '../../.storybook/utilities.js';
5
+ import './index.js';
6
+ const { events, args, argTypes } = getStorybookHelpers('w-card');
7
+ const meta = {
8
+ title: 'Navigation/Card',
9
+ render(args) {
10
+ return html `
11
+ <w-card ${spread(prespread(args))}>
12
+ <div style="padding: 16px;">
13
+ <h3>Card Title</h3>
14
+ <p>This is card content with some example text.</p>
15
+ </div>
16
+ </w-card>
17
+ `;
18
+ },
19
+ args,
20
+ argTypes,
21
+ parameters: {
22
+ actions: {
23
+ handles: events,
24
+ },
25
+ },
26
+ };
27
+ export default meta;
28
+ export const Default = {
29
+ args: {
30
+ selected: false,
31
+ flat: false,
32
+ clickable: false,
33
+ },
34
+ };
35
+ export const Selected = {
36
+ args: {
37
+ selected: true,
38
+ flat: false,
39
+ clickable: false,
40
+ },
41
+ };
42
+ export const Flat = {
43
+ args: {
44
+ selected: false,
45
+ flat: true,
46
+ clickable: false,
47
+ },
48
+ };
49
+ export const FlatSelected = {
50
+ args: {
51
+ selected: true,
52
+ flat: true,
53
+ clickable: false,
54
+ },
55
+ };
56
+ export const Clickable = {
57
+ args: {
58
+ selected: false,
59
+ flat: false,
60
+ clickable: true,
61
+ },
62
+ };
63
+ export const PropertyExample = {
64
+ args: {
65
+ selected: false,
66
+ flat: false,
67
+ clickable: true,
68
+ },
69
+ render(args) {
70
+ return html `
71
+ <w-card ${spread(prespread(args))} style="max-width: 300px;">
72
+ <img style="width: 100%; height: 200px; object-fit: cover;" src="https://unsplash.it/300/200?random" alt="Example image" />
73
+ <div style="padding: 16px;">
74
+ <p style="font-size: 12px; color: #666; margin: 0 0 8px 0;">DNB Eiendom</p>
75
+ <p style="margin: 0 0 8px 0;">Stilfull og gjennomgående 3-roms m/balkong. Oppusset i 2019.</p>
76
+ <p style="font-size: 14px; color: #666; margin: 0 0 8px 0;">Bøgata 25C, 0655 Oslo</p>
77
+ <p style="font-weight: bold; margin: 0;">52 m² Totalpris: 4 869 039 kr</p>
78
+ </div>
79
+ </w-card>
80
+ `;
81
+ },
82
+ };
@@ -0,0 +1,9 @@
1
+ import { html } from 'lit';
2
+ import { expect, test } from 'vitest';
3
+ import { render } from 'vitest-browser-lit';
4
+ import './index.js';
5
+ test('renders the slotted text', async () => {
6
+ const component = html `<w-card>This is a card</w-card>`;
7
+ const page = render(component);
8
+ await expect.element(page.getByText('This is a card')).toBeVisible();
9
+ });
@@ -1,16 +1,4 @@
1
1
  import { LitElement } from 'lit';
2
- export declare const ccCard: {
3
- base: string;
4
- shadow: string;
5
- selected: string;
6
- outline: string;
7
- outlineUnselected: string;
8
- outlineSelected: string;
9
- flat: string;
10
- flatUnselected: string;
11
- flatSelected: string;
12
- a11y: string;
13
- };
14
2
  /**
15
3
  * Card is a layout component used for separating content areas on a page.
16
4
  *
@@ -29,13 +17,8 @@ declare class WarpCard extends LitElement {
29
17
  /** @internal */
30
18
  get _outlineClasses(): string;
31
19
  /** @internal */
32
- get _interactiveElement(): "" | import("lit").TemplateResult<1>;
20
+ get _interactiveElement(): import("lit").TemplateResult<1> | "";
33
21
  keypressed(e: KeyboardEvent): void;
34
22
  render(): import("lit").TemplateResult<1>;
35
23
  }
36
24
  export { WarpCard };
37
- declare global {
38
- interface HTMLElementTagNameMap {
39
- 'w-card': WarpCard;
40
- }
41
- }
@@ -1,5 +1,5 @@
1
- var be=Object.create;var N=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ge=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty;var $=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var ve=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of pe(e))!ue.call(o,a)&&a!==r&&N(o,a,{get:()=>e[a],enumerable:!(t=U(e,a))||t.enumerable});return o};var he=(o,e,r)=>(r=o!=null?be(ge(o)):{},ve(e||!o||!o.__esModule?N(r,"default",{value:o,enumerable:!0}):r,o));var _=(o,e,r,t)=>{for(var a=t>1?void 0:t?U(e,r):e,s=o.length-1,i;s>=0;s--)(i=o[s])&&(a=(t?i(e,r,a):i(a))||a);return t&&a&&N(e,r,a),a};var X=$(h=>{"use strict";Object.defineProperty(h,"__esModule",{value:!0});h.errorMessages=h.ErrorType=void 0;var f;(function(o){o.MalformedUnicode="MALFORMED_UNICODE",o.MalformedHexadecimal="MALFORMED_HEXADECIMAL",o.CodePointLimit="CODE_POINT_LIMIT",o.OctalDeprecation="OCTAL_DEPRECATION",o.EndOfString="END_OF_STRING"})(f=h.ErrorType||(h.ErrorType={}));h.errorMessages=new Map([[f.MalformedUnicode,"malformed Unicode character escape sequence"],[f.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[f.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[f.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[f.EndOfString,"malformed escape sequence at end of string"]])});var R=$(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.unraw=p.errorMessages=p.ErrorType=void 0;var l=X();Object.defineProperty(p,"ErrorType",{enumerable:!0,get:function(){return l.ErrorType}});Object.defineProperty(p,"errorMessages",{enumerable:!0,get:function(){return l.errorMessages}});function me(o){return!o.match(/[^a-f0-9]/i)?parseInt(o,16):NaN}function M(o,e,r){let t=me(o);if(Number.isNaN(t)||r!==void 0&&r!==o.length)throw new SyntaxError(l.errorMessages.get(e));return t}function we(o){let e=M(o,l.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function Z(o,e){let r=M(o,l.ErrorType.MalformedUnicode,4);if(e!==void 0){let t=M(e,l.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,t)}return String.fromCharCode(r)}function fe(o){return o.charAt(0)==="{"&&o.charAt(o.length-1)==="}"}function xe(o){if(!fe(o))throw new SyntaxError(l.errorMessages.get(l.ErrorType.MalformedUnicode));let e=o.slice(1,-1),r=M(e,l.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(t){throw t instanceof RangeError?new SyntaxError(l.errorMessages.get(l.ErrorType.CodePointLimit)):t}}function ke(o,e=!1){if(e)throw new SyntaxError(l.errorMessages.get(l.ErrorType.OctalDeprecation));let r=parseInt(o,8);return String.fromCharCode(r)}var ye=new Map([["b","\b"],["f","\f"],["n",`
2
- `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function _e(o){return ye.get(o)||o}var ze=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function H(o,e=!1){return o.replace(ze,function(r,t,a,s,i,n,c,d,u){if(t!==void 0)return"\\";if(a!==void 0)return we(a);if(s!==void 0)return xe(s);if(i!==void 0)return Z(i,n);if(c!==void 0)return Z(c);if(d==="0")return"\0";if(d!==void 0)return ke(d,!e);if(u!==void 0)return _e(u);throw new SyntaxError(l.errorMessages.get(l.ErrorType.EndOfString))})}p.unraw=H;p.default=H});import{html as S,css as Ue,LitElement as $e}from"lit";var z=function(){for(var o=[],e=arguments.length;e--;)o[e]=arguments[e];return o.reduce(function(r,t){return r.concat(typeof t=="string"?t:Array.isArray(t)?z.apply(void 0,t):typeof t=="object"&&t?Object.keys(t).map(function(a){return t[a]?a:""}):"")},[]).join(" ")};var B=he(R(),1);var g=o=>typeof o=="string",Me=o=>typeof o=="function",q=new Map,V="en";function Y(o){return[...Array.isArray(o)?o:[o],V]}function P(o,e,r){let t=Y(o);r||(r="default");let a;if(typeof r=="string")switch(a={day:"numeric",month:"short",year:"numeric"},r){case"full":a.weekday="long";case"long":a.month="long";break;case"short":a.month="numeric";break}else a=r;return E(()=>C("date",t,r),()=>new Intl.DateTimeFormat(t,a)).format(g(e)?new Date(e):e)}function Ee(o,e,r){let t;if(r||(r="default"),typeof r=="string")switch(t={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":t.timeZoneName="short";break;case"short":delete t.second}else t=r;return P(o,e,t)}function j(o,e,r){let t=Y(o);return E(()=>C("number",t,r),()=>new Intl.NumberFormat(t,r)).format(e)}function J(o,e,r,{offset:t=0,...a}){var n,c;let s=Y(o),i=e?E(()=>C("plural-ordinal",s),()=>new Intl.PluralRules(s,{type:"ordinal"})):E(()=>C("plural-cardinal",s),()=>new Intl.PluralRules(s,{type:"cardinal"}));return(c=(n=a[r])!=null?n:a[i.select(r-t)])!=null?c:a.other}function E(o,e){let r=o(),t=q.get(r);return t||(t=e(),q.set(r,t)),t}function C(o,e,r){let t=e.join("-");return`${o}-${t}-${JSON.stringify(r)}`}var K=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,G="%__lingui_octothorpe__%",Ce=(o,e,r={})=>{let t=e||o,a=i=>typeof i=="object"?i:r[i],s=(i,n)=>{let c=Object.keys(r).length?a("number"):void 0,d=j(t,i,c);return n.replace(new RegExp(G,"g"),d)};return{plural:(i,n)=>{let{offset:c=0}=n,d=J(t,!1,i,n);return s(i-c,d)},selectordinal:(i,n)=>{let{offset:c=0}=n,d=J(t,!0,i,n);return s(i-c,d)},select:Se,number:(i,n)=>j(t,i,a(n)||{style:n}),date:(i,n)=>P(t,i,a(n)||n),time:(i,n)=>Ee(t,i,a(n)||n)}},Se=(o,e)=>{var r;return(r=e[o])!=null?r:e.other};function Oe(o,e,r){return(t={},a)=>{let s=Ce(e,r,a),i=(c,d=!1)=>Array.isArray(c)?c.reduce((u,k)=>{if(k==="#"&&d)return u+G;if(g(k))return u+k;let[F,v,I]=k,O={};v==="plural"||v==="selectordinal"||v==="select"?Object.entries(I).forEach(([L,de])=>{O[L]=i(de,v==="plural"||v==="selectordinal")}):O=I;let y;if(v){let L=s[v];y=L(t[F],O)}else y=t[F];return y==null?u:u+y},""):c,n=i(o);return g(n)&&K.test(n)?(0,B.unraw)(n):g(n)?n:n?String(n):""}}var Le=Object.defineProperty,Ne=(o,e,r)=>e in o?Le(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,je=(o,e,r)=>(Ne(o,typeof e!="symbol"?e+"":e,r),r),T=class{constructor(){je(this,"_events",{})}on(e,r){var a;var t;return(a=(t=this._events)[e])!=null||(t[e]=[]),this._events[e].push(r),()=>this.removeListener(e,r)}removeListener(e,r){let t=this._getListeners(e);if(!t)return;let a=t.indexOf(r);~a&&t.splice(a,1)}emit(e,...r){let t=this._getListeners(e);t&&t.map(a=>a.apply(this,r))}_getListeners(e){let r=this._events[e];return Array.isArray(r)?r:!1}},Te=Object.defineProperty,De=(o,e,r)=>e in o?Te(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,m=(o,e,r)=>(De(o,typeof e!="symbol"?e+"":e,r),r),D=class extends T{constructor(e){var r;super(),m(this,"_locale",""),m(this,"_locales"),m(this,"_localeData",{}),m(this,"_messages",{}),m(this,"_missing"),m(this,"_messageCompiler"),m(this,"t",this._.bind(this)),e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(typeof e.locale=="string"||e.locales)&&this.activate((r=e.locale)!=null?r:V,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,r){let t=this._localeData[e];t?Object.assign(t,r):this._localeData[e]=r}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,r){typeof e=="string"?this._loadLocaleData(e,r):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,r){let t=this._messages[e];t?Object.assign(t,r):this._messages[e]=r}load(e,r){typeof e=="string"&&typeof r=="object"?this._load(e,r):Object.entries(e).forEach(([t,a])=>this._load(t,a)),this.emit("change")}loadAndActivate({locale:e,locales:r,messages:t}){this._locale=e,this._locales=r||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,r){this._locale=e,this._locales=r,this.emit("change")}_(e,r,t){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let a=t==null?void 0:t.message;e||(e=""),g(e)||(r=e.values||r,a=e.message,e=e.id);let s=this.messages[e],i=s===void 0,n=this._missing;if(n&&i)return Me(n)?n(this._locale,e):n;i&&this.emit("missing",{id:e,locale:this._locale});let c=s||a||e;return g(c)&&(this._messageCompiler?c=this._messageCompiler(c):console.warn(`Uncompiled message detected! Message:
1
+ var be=Object.create;var N=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ge=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty;var $=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var ve=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of pe(e))!ue.call(o,a)&&a!==r&&N(o,a,{get:()=>e[a],enumerable:!(t=U(e,a))||t.enumerable});return o};var he=(o,e,r)=>(r=o!=null?be(ge(o)):{},ve(e||!o||!o.__esModule?N(r,"default",{value:o,enumerable:!0}):r,o));var _=(o,e,r,t)=>{for(var a=t>1?void 0:t?U(e,r):e,s=o.length-1,i;s>=0;s--)(i=o[s])&&(a=(t?i(e,r,a):i(a))||a);return t&&a&&N(e,r,a),a};var X=$(h=>{"use strict";Object.defineProperty(h,"__esModule",{value:!0});h.errorMessages=h.ErrorType=void 0;var f;(function(o){o.MalformedUnicode="MALFORMED_UNICODE",o.MalformedHexadecimal="MALFORMED_HEXADECIMAL",o.CodePointLimit="CODE_POINT_LIMIT",o.OctalDeprecation="OCTAL_DEPRECATION",o.EndOfString="END_OF_STRING"})(f=h.ErrorType||(h.ErrorType={}));h.errorMessages=new Map([[f.MalformedUnicode,"malformed Unicode character escape sequence"],[f.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[f.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[f.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[f.EndOfString,"malformed escape sequence at end of string"]])});var H=$(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.unraw=p.errorMessages=p.ErrorType=void 0;var l=X();Object.defineProperty(p,"ErrorType",{enumerable:!0,get:function(){return l.ErrorType}});Object.defineProperty(p,"errorMessages",{enumerable:!0,get:function(){return l.errorMessages}});function me(o){return!o.match(/[^a-f0-9]/i)?parseInt(o,16):NaN}function M(o,e,r){let t=me(o);if(Number.isNaN(t)||r!==void 0&&r!==o.length)throw new SyntaxError(l.errorMessages.get(e));return t}function we(o){let e=M(o,l.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function Z(o,e){let r=M(o,l.ErrorType.MalformedUnicode,4);if(e!==void 0){let t=M(e,l.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,t)}return String.fromCharCode(r)}function fe(o){return o.charAt(0)==="{"&&o.charAt(o.length-1)==="}"}function xe(o){if(!fe(o))throw new SyntaxError(l.errorMessages.get(l.ErrorType.MalformedUnicode));let e=o.slice(1,-1),r=M(e,l.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(t){throw t instanceof RangeError?new SyntaxError(l.errorMessages.get(l.ErrorType.CodePointLimit)):t}}function ke(o,e=!1){if(e)throw new SyntaxError(l.errorMessages.get(l.ErrorType.OctalDeprecation));let r=parseInt(o,8);return String.fromCharCode(r)}var ye=new Map([["b","\b"],["f","\f"],["n",`
2
+ `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function _e(o){return ye.get(o)||o}var ze=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function R(o,e=!1){return o.replace(ze,function(r,t,a,s,i,n,c,d,u){if(t!==void 0)return"\\";if(a!==void 0)return we(a);if(s!==void 0)return xe(s);if(i!==void 0)return Z(i,n);if(c!==void 0)return Z(c);if(d==="0")return"\0";if(d!==void 0)return ke(d,!e);if(u!==void 0)return _e(u);throw new SyntaxError(l.errorMessages.get(l.ErrorType.EndOfString))})}p.unraw=R;p.default=R});var z=function(){for(var o=[],e=arguments.length;e--;)o[e]=arguments[e];return o.reduce(function(r,t){return r.concat(typeof t=="string"?t:Array.isArray(t)?z.apply(void 0,t):typeof t=="object"&&t?Object.keys(t).map(function(a){return t[a]?a:""}):"")},[]).join(" ")};var B=he(H(),1);var g=o=>typeof o=="string",Me=o=>typeof o=="function",q=new Map,V="en";function Y(o){return[...Array.isArray(o)?o:[o],V]}function P(o,e,r){let t=Y(o);r||(r="default");let a;if(typeof r=="string")switch(a={day:"numeric",month:"short",year:"numeric"},r){case"full":a.weekday="long";case"long":a.month="long";break;case"short":a.month="numeric";break}else a=r;return E(()=>C("date",t,r),()=>new Intl.DateTimeFormat(t,a)).format(g(e)?new Date(e):e)}function Ee(o,e,r){let t;if(r||(r="default"),typeof r=="string")switch(t={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":t.timeZoneName="short";break;case"short":delete t.second}else t=r;return P(o,e,t)}function j(o,e,r){let t=Y(o);return E(()=>C("number",t,r),()=>new Intl.NumberFormat(t,r)).format(e)}function J(o,e,r,{offset:t=0,...a}){var n,c;let s=Y(o),i=e?E(()=>C("plural-ordinal",s),()=>new Intl.PluralRules(s,{type:"ordinal"})):E(()=>C("plural-cardinal",s),()=>new Intl.PluralRules(s,{type:"cardinal"}));return(c=(n=a[r])!=null?n:a[i.select(r-t)])!=null?c:a.other}function E(o,e){let r=o(),t=q.get(r);return t||(t=e(),q.set(r,t)),t}function C(o,e,r){let t=e.join("-");return`${o}-${t}-${JSON.stringify(r)}`}var K=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,G="%__lingui_octothorpe__%",Ce=(o,e,r={})=>{let t=e||o,a=i=>typeof i=="object"?i:r[i],s=(i,n)=>{let c=Object.keys(r).length?a("number"):void 0,d=j(t,i,c);return n.replace(new RegExp(G,"g"),d)};return{plural:(i,n)=>{let{offset:c=0}=n,d=J(t,!1,i,n);return s(i-c,d)},selectordinal:(i,n)=>{let{offset:c=0}=n,d=J(t,!0,i,n);return s(i-c,d)},select:Se,number:(i,n)=>j(t,i,a(n)||{style:n}),date:(i,n)=>P(t,i,a(n)||n),time:(i,n)=>Ee(t,i,a(n)||n)}},Se=(o,e)=>{var r;return(r=e[o])!=null?r:e.other};function Oe(o,e,r){return(t={},a)=>{let s=Ce(e,r,a),i=(c,d=!1)=>Array.isArray(c)?c.reduce((u,k)=>{if(k==="#"&&d)return u+G;if(g(k))return u+k;let[F,v,I]=k,O={};v==="plural"||v==="selectordinal"||v==="select"?Object.entries(I).forEach(([L,de])=>{O[L]=i(de,v==="plural"||v==="selectordinal")}):O=I;let y;if(v){let L=s[v];y=L(t[F],O)}else y=t[F];return y==null?u:u+y},""):c,n=i(o);return g(n)&&K.test(n)?(0,B.unraw)(n):g(n)?n:n?String(n):""}}var Le=Object.defineProperty,Ne=(o,e,r)=>e in o?Le(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,je=(o,e,r)=>(Ne(o,typeof e!="symbol"?e+"":e,r),r),D=class{constructor(){je(this,"_events",{})}on(e,r){var a;var t;return(a=(t=this._events)[e])!=null||(t[e]=[]),this._events[e].push(r),()=>this.removeListener(e,r)}removeListener(e,r){let t=this._getListeners(e);if(!t)return;let a=t.indexOf(r);~a&&t.splice(a,1)}emit(e,...r){let t=this._getListeners(e);t&&t.map(a=>a.apply(this,r))}_getListeners(e){let r=this._events[e];return Array.isArray(r)?r:!1}},De=Object.defineProperty,Te=(o,e,r)=>e in o?De(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,m=(o,e,r)=>(Te(o,typeof e!="symbol"?e+"":e,r),r),T=class extends D{constructor(e){var r;super(),m(this,"_locale",""),m(this,"_locales"),m(this,"_localeData",{}),m(this,"_messages",{}),m(this,"_missing"),m(this,"_messageCompiler"),m(this,"t",this._.bind(this)),e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(typeof e.locale=="string"||e.locales)&&this.activate((r=e.locale)!=null?r:V,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,r){let t=this._localeData[e];t?Object.assign(t,r):this._localeData[e]=r}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,r){typeof e=="string"?this._loadLocaleData(e,r):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,r){let t=this._messages[e];t?Object.assign(t,r):this._messages[e]=r}load(e,r){typeof e=="string"&&typeof r=="object"?this._load(e,r):Object.entries(e).forEach(([t,a])=>this._load(t,a)),this.emit("change")}loadAndActivate({locale:e,locales:r,messages:t}){this._locale=e,this._locales=r||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,r){this._locale=e,this._locales=r,this.emit("change")}_(e,r,t){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let a=t==null?void 0:t.message;e||(e=""),g(e)||(r=e.values||r,a=e.message,e=e.id);let s=this.messages[e],i=s===void 0,n=this._missing;if(n&&i)return Me(n)?n(this._locale,e):n;i&&this.emit("missing",{id:e,locale:this._locale});let c=s||a||e;return g(c)&&(this._messageCompiler?c=this._messageCompiler(c):console.warn(`Uncompiled message detected! Message:
3
3
 
4
4
  > ${c}
5
5
 
@@ -7,7 +7,7 @@ That means you use raw catalog or your catalog doesn't have a translation for th
7
7
  ICU features such as interpolation and plurals will not work properly for that message.
8
8
 
9
9
  Please compile your catalog first.
10
- `)),g(c)&&K.test(c)?JSON.parse(`"${c}"`):g(c)?c:Oe(c,this._locale,this._locales)(r,t==null?void 0:t.formats)}date(e,r){return P(this._locales||this._locale,e,r)}number(e,r){return j(this._locales||this._locale,e,r)}};function Ye(o={}){return new D(o)}var x=Ye();import{property as A}from"lit/decorators.js";import{ifDefined as Xe}from"lit/directives/if-defined.js";var Pe=["en","nb","fi","da","sv"],W="en",Q=o=>Pe.find(e=>o===e||o.toLowerCase().includes(e))||W;function Ae(){if(typeof window=="undefined"){let o=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Q(o)}try{let o=document.documentElement.lang;return Q(o)}catch(o){return console.warn("could not detect locale, falling back to source locale",o),W}}var Fe=(o,e,r,t,a,s)=>o==="nb"?r:o==="fi"?t:o==="da"?a:o==="sv"?s:e,ee=(o,e,r,t,a)=>{let s=Ae(),i=Fe(s,o,e,r,t,a);x.load(s,i),x.activate(s)};import{css as re}from"lit";var oe=re`
10
+ `)),g(c)&&K.test(c)?JSON.parse(`"${c}"`):g(c)?c:Oe(c,this._locale,this._locales)(r,t==null?void 0:t.formats)}date(e,r){return P(this._locales||this._locale,e,r)}number(e,r){return j(this._locales||this._locale,e,r)}};function Ye(o={}){return new T(o)}var x=Ye();import{css as Ue,html as S,LitElement as $e}from"lit";import{property as A}from"lit/decorators.js";import{ifDefined as Xe}from"lit/directives/if-defined.js";var Pe=["en","nb","fi","da","sv"],W="en",Q=o=>Pe.find(e=>o===e||o.toLowerCase().includes(e))||W;function Ae(){if(typeof window=="undefined"){let o=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return Q(o)}try{let o=document.documentElement.lang;return Q(o)}catch(o){return console.warn("could not detect locale, falling back to source locale",o),W}}var Fe=(o,e,r,t,a,s)=>o==="nb"?r:o==="fi"?t:o==="da"?a:o==="sv"?s:e,ee=(o,e,r,t,a)=>{let s=Ae(),i=Fe(s,o,e,r,t,a);x.load(s,i),x.activate(s)};import{css as re}from"lit";var oe=re`
11
11
  *,
12
12
  :before,
13
13
  :after {
@@ -2463,5 +2463,5 @@ Please compile your catalog first.
2463
2463
  :host {
2464
2464
  display: block;
2465
2465
  }
2466
- `],_([A({type:Boolean,reflect:!0})],w.prototype,"selected",2),_([A({type:Boolean})],w.prototype,"flat",2),_([A({type:Boolean})],w.prototype,"clickable",2);customElements.get("w-card")||customElements.define("w-card",w);export{w as WarpCard,b as ccCard};
2466
+ `],_([A({type:Boolean,reflect:!0})],w.prototype,"selected",2),_([A({type:Boolean})],w.prototype,"flat",2),_([A({type:Boolean})],w.prototype,"clickable",2);customElements.get("w-card")||customElements.define("w-card",w);export{w as WarpCard};
2467
2467
  //# sourceMappingURL=index.js.map