@warp-ds/elements 2.4.0 → 2.5.0-next.2

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 (426) hide show
  1. package/dist/api.js.map +2 -2
  2. package/dist/custom-elements.json +878 -412
  3. package/dist/index.d.ts +2204 -777
  4. package/dist/packages/affix/{index.js → affix.js} +1 -1
  5. package/dist/packages/affix/{index.js.map → affix.js.map} +1 -1
  6. package/dist/packages/affix/affix.react.stories.d.ts +1 -1
  7. package/dist/packages/affix/affix.stories.d.ts +2 -2
  8. package/dist/packages/affix/affix.stories.js +1 -1
  9. package/dist/packages/affix/affix.test.d.ts +1 -1
  10. package/dist/packages/affix/affix.test.js +1 -1
  11. package/dist/packages/affix/react.d.ts +1 -1
  12. package/dist/packages/alert/{index.js → alert.js} +1 -1
  13. package/dist/packages/alert/{index.js.map → alert.js.map} +1 -1
  14. package/dist/packages/alert/alert.react.stories.d.ts +1 -1
  15. package/dist/packages/alert/alert.stories.d.ts +2 -2
  16. package/dist/packages/alert/alert.stories.js +1 -1
  17. package/dist/packages/alert/alert.test.d.ts +1 -1
  18. package/dist/packages/alert/alert.test.js +1 -1
  19. package/dist/packages/alert/react.d.ts +1 -1
  20. package/dist/packages/alert/react.js +1 -1
  21. package/dist/packages/attention/{index.d.ts → attention.d.ts} +1 -1
  22. package/dist/packages/attention/{index.js → attention.js} +18 -18
  23. package/dist/packages/attention/attention.js.map +7 -0
  24. package/dist/packages/attention/attention.react.stories.d.ts +1 -1
  25. package/dist/packages/attention/attention.stories.d.ts +3 -3
  26. package/dist/packages/attention/attention.stories.js +2 -2
  27. package/dist/packages/attention/attention.test.d.ts +1 -1
  28. package/dist/packages/attention/attention.test.js +1 -1
  29. package/dist/packages/attention/react.d.ts +1 -1
  30. package/dist/packages/attention/react.js +1 -1
  31. package/dist/packages/badge/{index.js → badge.js} +1 -1
  32. package/dist/packages/badge/{index.js.map → badge.js.map} +1 -1
  33. package/dist/packages/badge/badge.react.stories.d.ts +3 -3
  34. package/dist/packages/badge/badge.stories.d.ts +2 -2
  35. package/dist/packages/badge/badge.stories.js +1 -1
  36. package/dist/packages/badge/badge.test.d.ts +1 -1
  37. package/dist/packages/badge/badge.test.js +1 -1
  38. package/dist/packages/badge/react.d.ts +1 -1
  39. package/dist/packages/badge/react.js +1 -1
  40. package/dist/packages/box/{index.js → box.js} +1 -1
  41. package/dist/packages/box/{index.js.map → box.js.map} +1 -1
  42. package/dist/packages/box/box.react.stories.d.ts +3 -3
  43. package/dist/packages/box/box.stories.d.ts +2 -2
  44. package/dist/packages/box/box.stories.js +1 -1
  45. package/dist/packages/box/box.test.d.ts +1 -1
  46. package/dist/packages/box/box.test.js +1 -1
  47. package/dist/packages/box/react.d.ts +1 -1
  48. package/dist/packages/box/react.js +1 -1
  49. package/dist/packages/box/slot.test.d.ts +1 -1
  50. package/dist/packages/box/slot.test.js +1 -1
  51. package/dist/packages/breadcrumbs/{index.js → breadcrumbs.js} +10 -10
  52. package/dist/packages/breadcrumbs/breadcrumbs.js.map +7 -0
  53. package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +3 -3
  54. package/dist/packages/breadcrumbs/breadcrumbs.stories.d.ts +2 -2
  55. package/dist/packages/breadcrumbs/breadcrumbs.stories.js +1 -1
  56. package/dist/packages/breadcrumbs/breadcrumbs.test.d.ts +1 -1
  57. package/dist/packages/breadcrumbs/breadcrumbs.test.js +1 -1
  58. package/dist/packages/breadcrumbs/react.d.ts +1 -1
  59. package/dist/packages/breadcrumbs/react.js +1 -1
  60. package/dist/packages/button/{index.d.ts → button.d.ts} +1 -1
  61. package/dist/packages/button/{index.js → button.js} +12 -12
  62. package/dist/packages/button/button.js.map +7 -0
  63. package/dist/packages/button/button.react.stories.d.ts +3 -3
  64. package/dist/packages/button/button.stories.d.ts +2 -2
  65. package/dist/packages/button/button.stories.js +1 -1
  66. package/dist/packages/button/button.test.d.ts +1 -1
  67. package/dist/packages/button/button.test.js +1 -1
  68. package/dist/packages/button/react.d.ts +1 -1
  69. package/dist/packages/button/react.js +1 -1
  70. package/dist/packages/card/{index.js → card.js} +9 -9
  71. package/dist/packages/card/card.js.map +7 -0
  72. package/dist/packages/card/card.react.stories.d.ts +3 -3
  73. package/dist/packages/card/card.stories.d.ts +2 -2
  74. package/dist/packages/card/card.stories.js +1 -1
  75. package/dist/packages/card/card.test.d.ts +1 -1
  76. package/dist/packages/card/card.test.js +1 -1
  77. package/dist/packages/card/react.d.ts +1 -1
  78. package/dist/packages/card/react.js +1 -1
  79. package/dist/packages/combobox/{index.js → combobox.js} +14 -14
  80. package/dist/packages/combobox/{index.js.map → combobox.js.map} +4 -4
  81. package/dist/packages/combobox/combobox.react.stories.d.ts +4 -4
  82. package/dist/packages/combobox/combobox.stories.d.ts +3 -3
  83. package/dist/packages/combobox/combobox.stories.js +2 -2
  84. package/dist/packages/combobox/combobox.test.d.ts +2 -2
  85. package/dist/packages/combobox/combobox.test.js +2 -2
  86. package/dist/packages/combobox/react.d.ts +1 -1
  87. package/dist/packages/combobox/react.js +1 -1
  88. package/dist/packages/datepicker/DatePicker.test.d.ts +2 -2
  89. package/dist/packages/datepicker/DatePicker.test.js +2 -2
  90. package/dist/packages/datepicker/datepicker.js +15 -15
  91. package/dist/packages/datepicker/datepicker.js.map +3 -3
  92. package/dist/packages/datepicker/datepicker.react.stories.d.ts +2 -2
  93. package/dist/packages/datepicker/datepicker.stories.d.ts +3 -3
  94. package/dist/packages/datepicker/datepicker.stories.js +2 -2
  95. package/dist/packages/datepicker/datepicker.test.d.ts +2 -2
  96. package/dist/packages/datepicker/datepicker.test.js +2 -2
  97. package/dist/packages/datepicker/react.js +1 -1
  98. package/dist/packages/expandable/{index.js → expandable.js} +1 -1
  99. package/dist/packages/expandable/{index.js.map → expandable.js.map} +1 -1
  100. package/dist/packages/expandable/expandable.react.stories.d.ts +3 -3
  101. package/dist/packages/expandable/expandable.stories.d.ts +2 -2
  102. package/dist/packages/expandable/expandable.stories.js +1 -1
  103. package/dist/packages/expandable/expandable.test.d.ts +1 -1
  104. package/dist/packages/expandable/expandable.test.js +1 -1
  105. package/dist/packages/expandable/react.d.ts +1 -1
  106. package/dist/packages/expandable/react.js +1 -1
  107. package/dist/packages/i18n.js +6 -2
  108. package/dist/packages/icon/icon.d.ts +22 -0
  109. package/dist/packages/icon/icon.js +27 -0
  110. package/dist/packages/icon/icon.js.map +7 -0
  111. package/dist/packages/icon/icon.react.stories.d.ts +28 -0
  112. package/dist/packages/icon/icon.react.stories.js +37 -0
  113. package/dist/packages/icon/icon.stories.d.ts +39 -0
  114. package/dist/packages/icon/icon.stories.js +43 -0
  115. package/dist/packages/icon/react.d.ts +2 -0
  116. package/dist/packages/{deadtoggle → icon}/react.js +3 -3
  117. package/dist/packages/icon/style.js +27 -0
  118. package/dist/packages/link/{index.js → link.js} +3 -3
  119. package/dist/packages/link/link.js.map +7 -0
  120. package/dist/packages/link/link.react.stories.d.ts +3 -3
  121. package/dist/packages/link/link.stories.d.ts +2 -2
  122. package/dist/packages/link/link.stories.js +1 -1
  123. package/dist/packages/link/link.test.d.ts +1 -1
  124. package/dist/packages/link/link.test.js +1 -1
  125. package/dist/packages/link/react.d.ts +1 -1
  126. package/dist/packages/link/react.js +1 -1
  127. package/dist/packages/link/styles.js +2 -2
  128. package/dist/packages/modal/index.d.ts +6 -3
  129. package/dist/packages/modal/index.js +10 -2717
  130. package/dist/packages/modal/{modal-main.js → modal.js} +1 -1
  131. package/dist/packages/modal/{modal-main.js.map → modal.js.map} +1 -1
  132. package/dist/packages/modal/modal.react.stories.d.ts +1 -1
  133. package/dist/packages/modal/modal.stories.d.ts +6 -3
  134. package/dist/packages/modal/modal.stories.js +3 -1
  135. package/dist/packages/modal/react.d.ts +3 -6
  136. package/dist/packages/modal/react.js +4 -15
  137. package/dist/packages/{modal → modal-footer}/modal-footer.d.ts +2 -2
  138. package/dist/packages/{modal → modal-footer}/modal-footer.js +4 -4
  139. package/dist/packages/modal-footer/modal-footer.js.map +7 -0
  140. package/dist/packages/modal-footer/react.d.ts +2 -0
  141. package/dist/packages/{stepindicator → modal-footer}/react.js +3 -8
  142. package/dist/packages/{modal → modal-header}/modal-header.d.ts +1 -1
  143. package/dist/packages/{modal → modal-header}/modal-header.js +7 -7
  144. package/dist/packages/modal-header/modal-header.js.map +7 -0
  145. package/dist/packages/modal-header/react.d.ts +5 -0
  146. package/dist/packages/{pagination → modal-header}/react.js +5 -5
  147. package/dist/packages/page-indicator/locales/da/messages.mjs +1 -0
  148. package/dist/packages/page-indicator/locales/en/messages.mjs +1 -0
  149. package/dist/packages/page-indicator/locales/fi/messages.mjs +1 -0
  150. package/dist/packages/page-indicator/locales/nb/messages.mjs +1 -0
  151. package/dist/packages/page-indicator/locales/sv/messages.mjs +1 -0
  152. package/dist/packages/page-indicator/page-indicator.d.ts +26 -0
  153. package/dist/packages/page-indicator/page-indicator.js +41 -0
  154. package/dist/packages/page-indicator/page-indicator.js.map +7 -0
  155. package/dist/packages/{pageindicator/pageindicator.react.stories.d.ts → page-indicator/page-indicator.react.stories.d.ts} +3 -3
  156. package/dist/packages/{pageindicator/pageindicator.stories.d.ts → page-indicator/page-indicator.stories.d.ts} +1 -1
  157. package/dist/packages/page-indicator/page-indicator.stories.js +87 -0
  158. package/dist/packages/page-indicator/page-indicator.test.d.ts +1 -0
  159. package/dist/packages/page-indicator/page-indicator.test.js +118 -0
  160. package/dist/packages/{pageindicator → page-indicator}/react.d.ts +1 -1
  161. package/dist/packages/{pageindicator → page-indicator}/react.js +2 -2
  162. package/dist/packages/{pageindicator → page-indicator}/style.js +4 -4
  163. package/dist/packages/pill/{index.js → pill.js} +9 -9
  164. package/dist/packages/pill/pill.js.map +7 -0
  165. package/dist/packages/pill/pill.react.stories.d.ts +4 -4
  166. package/dist/packages/pill/pill.stories.d.ts +2 -2
  167. package/dist/packages/pill/pill.stories.js +1 -1
  168. package/dist/packages/pill/pill.test.d.ts +1 -1
  169. package/dist/packages/pill/pill.test.js +1 -1
  170. package/dist/packages/pill/react.d.ts +1 -1
  171. package/dist/packages/pill/react.js +1 -1
  172. package/dist/packages/select/react.d.ts +1 -1
  173. package/dist/packages/select/react.js +1 -1
  174. package/dist/packages/select/{index.js → select.js} +16 -16
  175. package/dist/packages/select/select.js.map +7 -0
  176. package/dist/packages/select/select.react.stories.d.ts +4 -4
  177. package/dist/packages/select/select.react.stories.js +1 -1
  178. package/dist/packages/select/select.stories.d.ts +2 -2
  179. package/dist/packages/select/select.stories.js +1 -1
  180. package/dist/packages/select/select.test.d.ts +1 -1
  181. package/dist/packages/select/select.test.js +1 -1
  182. package/dist/packages/switch/react.d.ts +1 -1
  183. package/dist/packages/switch/react.js +1 -1
  184. package/dist/packages/switch/{index.js → switch.js} +1 -1
  185. package/dist/packages/switch/{index.js.map → switch.js.map} +1 -1
  186. package/dist/packages/switch/switch.react.stories.d.ts +1 -1
  187. package/dist/packages/switch/switch.stories.d.ts +1 -1
  188. package/dist/packages/switch/switch.stories.js +1 -1
  189. package/dist/packages/switch/switch.test.d.ts +1 -1
  190. package/dist/packages/switch/switch.test.js +2 -2
  191. package/dist/packages/tab/react.d.ts +7 -0
  192. package/dist/packages/tab/react.js +17 -0
  193. package/dist/packages/{tabs → tab}/tab.d.ts +2 -5
  194. package/dist/packages/tab/tab.js +2464 -0
  195. package/dist/packages/tab/tab.js.map +7 -0
  196. package/dist/packages/tab-panel/react.d.ts +2 -0
  197. package/dist/packages/tab-panel/react.js +11 -0
  198. package/dist/packages/{tabs → tab-panel}/tab-panel.d.ts +3 -3
  199. package/dist/packages/tab-panel/tab-panel.js +2441 -0
  200. package/dist/packages/tab-panel/tab-panel.js.map +7 -0
  201. package/dist/packages/tabs/index.d.ts +2 -3
  202. package/dist/packages/tabs/index.js +3 -2
  203. package/dist/packages/tabs/react.d.ts +3 -8
  204. package/dist/packages/tabs/react.js +4 -17
  205. package/dist/packages/tabs/tabs.d.ts +2 -5
  206. package/dist/packages/tabs/tabs.js +2447 -252
  207. package/dist/packages/tabs/tabs.js.map +7 -0
  208. package/dist/packages/tabs/tabs.react.stories.d.ts +14 -1
  209. package/dist/packages/tabs/tabs.react.stories.js +55 -35
  210. package/dist/packages/tabs/tabs.stories.d.ts +5 -4
  211. package/dist/packages/tabs/tabs.stories.js +89 -65
  212. package/dist/packages/textfield/react.d.ts +1 -1
  213. package/dist/packages/textfield/react.js +1 -1
  214. package/dist/packages/textfield/{index.js → textfield.js} +1 -1
  215. package/dist/packages/textfield/{index.js.map → textfield.js.map} +1 -1
  216. package/dist/packages/textfield/textfield.react.stories.d.ts +4 -4
  217. package/dist/packages/textfield/textfield.stories.d.ts +2 -2
  218. package/dist/packages/textfield/textfield.stories.js +1 -1
  219. package/dist/packages/textfield/textfield.test.d.ts +2 -2
  220. package/dist/packages/textfield/textfield.test.js +2 -2
  221. package/dist/packages/toast/index.d.ts +5 -3
  222. package/dist/packages/toast/index.js +7 -2483
  223. package/dist/packages/toast/toast.js +8 -8
  224. package/dist/packages/toast/toast.js.map +3 -3
  225. package/dist/packages/toast/toast.stories.d.ts +4 -3
  226. package/dist/packages/toast/toast.stories.js +3 -2
  227. package/dist/packages/{toast → toast-container}/toast-container.d.ts +1 -1
  228. package/dist/packages/toast-container/toast-container.js.map +7 -0
  229. package/dist/web-types.json +175 -38
  230. package/package.json +91 -38
  231. package/dist/packages/attention/index.js.map +0 -7
  232. package/dist/packages/breadcrumbs/index.js.map +0 -7
  233. package/dist/packages/button/index.js.map +0 -7
  234. package/dist/packages/card/index.js.map +0 -7
  235. package/dist/packages/checkbox/checkbox-group.d.ts +0 -10
  236. package/dist/packages/checkbox/checkbox-group.js +0 -15
  237. package/dist/packages/checkbox/checkbox.d.ts +0 -66
  238. package/dist/packages/checkbox/checkbox.js +0 -220
  239. package/dist/packages/checkbox/checkbox.react.stories.d.ts +0 -12
  240. package/dist/packages/checkbox/checkbox.react.stories.js +0 -10
  241. package/dist/packages/checkbox/checkbox.stories.d.ts +0 -11
  242. package/dist/packages/checkbox/checkbox.stories.js +0 -25
  243. package/dist/packages/checkbox/index.d.ts +0 -2
  244. package/dist/packages/checkbox/index.js +0 -2
  245. package/dist/packages/checkbox/react.d.ts +0 -7
  246. package/dist/packages/checkbox/react.js +0 -20
  247. package/dist/packages/checkbox/styles.d.ts +0 -0
  248. package/dist/packages/checkbox/styles.js +0 -0
  249. package/dist/packages/datepicker/index.d.ts +0 -1
  250. package/dist/packages/datepicker/index.js +0 -2785
  251. package/dist/packages/datepicker/index.js.map +0 -7
  252. package/dist/packages/deadtoggle/dead-toggle.react.stories.d.ts +0 -15
  253. package/dist/packages/deadtoggle/dead-toggle.react.stories.js +0 -34
  254. package/dist/packages/deadtoggle/dead-toggle.stories.d.ts +0 -14
  255. package/dist/packages/deadtoggle/dead-toggle.stories.js +0 -45
  256. package/dist/packages/deadtoggle/dead-toggle.test.d.ts +0 -1
  257. package/dist/packages/deadtoggle/dead-toggle.test.js +0 -9
  258. package/dist/packages/deadtoggle/index.d.ts +0 -17
  259. package/dist/packages/deadtoggle/index.js +0 -51
  260. package/dist/packages/deadtoggle/react.d.ts +0 -2
  261. package/dist/packages/link/index.js.map +0 -7
  262. package/dist/packages/modal/index.js.map +0 -7
  263. package/dist/packages/modal/modal-footer.js.map +0 -7
  264. package/dist/packages/modal/modal-header.js.map +0 -7
  265. package/dist/packages/pageindicator/index.d.ts +0 -10
  266. package/dist/packages/pageindicator/index.js +0 -48
  267. package/dist/packages/pageindicator/pageindicator.stories.js +0 -71
  268. package/dist/packages/pagination/index.d.ts +0 -32
  269. package/dist/packages/pagination/index.js +0 -199
  270. package/dist/packages/pagination/locales/da/messages.mjs +0 -1
  271. package/dist/packages/pagination/locales/en/messages.mjs +0 -1
  272. package/dist/packages/pagination/locales/fi/messages.mjs +0 -1
  273. package/dist/packages/pagination/locales/nb/messages.mjs +0 -1
  274. package/dist/packages/pagination/locales/sv/messages.mjs +0 -1
  275. package/dist/packages/pagination/pagination.react.stories.d.ts +0 -21
  276. package/dist/packages/pagination/pagination.react.stories.js +0 -45
  277. package/dist/packages/pagination/pagination.stories.d.ts +0 -14
  278. package/dist/packages/pagination/pagination.stories.js +0 -56
  279. package/dist/packages/pagination/pagination.test.d.ts +0 -1
  280. package/dist/packages/pagination/pagination.test.js +0 -76
  281. package/dist/packages/pagination/react.d.ts +0 -5
  282. package/dist/packages/pagination/styles.js +0 -2
  283. package/dist/packages/pill/index.js.map +0 -7
  284. package/dist/packages/radio/base-element.d.ts +0 -46
  285. package/dist/packages/radio/base-element.js +0 -100
  286. package/dist/packages/radio/custom-error-validator.d.ts +0 -6
  287. package/dist/packages/radio/custom-error-validator.js +0 -22
  288. package/dist/packages/radio/form-associated-element.d.ts +0 -103
  289. package/dist/packages/radio/form-associated-element.js +0 -282
  290. package/dist/packages/radio/host-styles.d.ts +0 -1
  291. package/dist/packages/radio/host-styles.js +0 -12
  292. package/dist/packages/radio/index.d.ts +0 -2
  293. package/dist/packages/radio/index.js +0 -2
  294. package/dist/packages/radio/invalid.d.ts +0 -8
  295. package/dist/packages/radio/invalid.js +0 -5
  296. package/dist/packages/radio/math.d.ts +0 -1
  297. package/dist/packages/radio/math.js +0 -4
  298. package/dist/packages/radio/radio-group-styles.d.ts +0 -1
  299. package/dist/packages/radio/radio-group-styles.js +0 -59
  300. package/dist/packages/radio/radio-group.d.ts +0 -72
  301. package/dist/packages/radio/radio-group.js +0 -342
  302. package/dist/packages/radio/radio-styles.d.ts +0 -0
  303. package/dist/packages/radio/radio-styles.js +0 -0
  304. package/dist/packages/radio/radio.d.ts +0 -38
  305. package/dist/packages/radio/radio.js +0 -115
  306. package/dist/packages/radio/radio.react.stories.d.ts +0 -9
  307. package/dist/packages/radio/radio.react.stories.js +0 -10
  308. package/dist/packages/radio/radio.stories.d.ts +0 -15
  309. package/dist/packages/radio/radio.stories.js +0 -61
  310. package/dist/packages/radio/react.d.ts +0 -9
  311. package/dist/packages/radio/react.js +0 -22
  312. package/dist/packages/radio/required-validator.d.ts +0 -11
  313. package/dist/packages/radio/required-validator.js +0 -34
  314. package/dist/packages/radio/slot.d.ts +0 -20
  315. package/dist/packages/radio/slot.js +0 -71
  316. package/dist/packages/radio/watch.d.ts +0 -26
  317. package/dist/packages/radio/watch.js +0 -39
  318. package/dist/packages/select/index.js.map +0 -7
  319. package/dist/packages/slider/Slider.d.ts +0 -2
  320. package/dist/packages/slider/Slider.js +0 -8
  321. package/dist/packages/slider/SliderThumb.d.ts +0 -2
  322. package/dist/packages/slider/SliderThumb.js +0 -8
  323. package/dist/packages/slider/index.d.ts +0 -2
  324. package/dist/packages/slider/index.js +0 -2
  325. package/dist/packages/slider/locales/da/messages.d.mts +0 -1
  326. package/dist/packages/slider/locales/da/messages.mjs +0 -1
  327. package/dist/packages/slider/locales/en/messages.d.mts +0 -1
  328. package/dist/packages/slider/locales/en/messages.mjs +0 -1
  329. package/dist/packages/slider/locales/fi/messages.d.mts +0 -1
  330. package/dist/packages/slider/locales/fi/messages.mjs +0 -1
  331. package/dist/packages/slider/locales/nb/messages.d.mts +0 -1
  332. package/dist/packages/slider/locales/nb/messages.mjs +0 -1
  333. package/dist/packages/slider/locales/sv/messages.d.mts +0 -1
  334. package/dist/packages/slider/locales/sv/messages.mjs +0 -1
  335. package/dist/packages/slider/oddbird-css-anchor-positioning.d.ts +0 -2
  336. package/dist/packages/slider/oddbird-css-anchor-positioning.js +0 -3
  337. package/dist/packages/slider/react.d.ts +0 -8
  338. package/dist/packages/slider/react.js +0 -20
  339. package/dist/packages/slider/slider-thumb.d.ts +0 -63
  340. package/dist/packages/slider/slider-thumb.js +0 -501
  341. package/dist/packages/slider/slider.d.ts +0 -55
  342. package/dist/packages/slider/slider.js +0 -301
  343. package/dist/packages/slider/slider.react.stories.d.ts +0 -19
  344. package/dist/packages/slider/slider.react.stories.js +0 -140
  345. package/dist/packages/slider/slider.stories.d.ts +0 -21
  346. package/dist/packages/slider/slider.stories.js +0 -404
  347. package/dist/packages/slider/slider.test.d.ts +0 -4
  348. package/dist/packages/slider/slider.test.js +0 -111
  349. package/dist/packages/slider/styles/w-slider-thumb.styles.d.ts +0 -1
  350. package/dist/packages/slider/styles/w-slider-thumb.styles.js +0 -175
  351. package/dist/packages/slider/styles/w-slider.styles.d.ts +0 -1
  352. package/dist/packages/slider/styles/w-slider.styles.js +0 -148
  353. package/dist/packages/slider/styles.d.ts +0 -1
  354. package/dist/packages/slider/styles.js +0 -2
  355. package/dist/packages/stepindicator/index.d.ts +0 -37
  356. package/dist/packages/stepindicator/index.js +0 -195
  357. package/dist/packages/stepindicator/locales/da/messages.d.mts +0 -1
  358. package/dist/packages/stepindicator/locales/da/messages.mjs +0 -1
  359. package/dist/packages/stepindicator/locales/en/messages.d.mts +0 -1
  360. package/dist/packages/stepindicator/locales/en/messages.mjs +0 -1
  361. package/dist/packages/stepindicator/locales/fi/messages.d.mts +0 -1
  362. package/dist/packages/stepindicator/locales/fi/messages.mjs +0 -1
  363. package/dist/packages/stepindicator/locales/nb/messages.d.mts +0 -1
  364. package/dist/packages/stepindicator/locales/nb/messages.mjs +0 -1
  365. package/dist/packages/stepindicator/locales/sv/messages.d.mts +0 -1
  366. package/dist/packages/stepindicator/locales/sv/messages.mjs +0 -1
  367. package/dist/packages/stepindicator/react.d.ts +0 -3
  368. package/dist/packages/stepindicator/stepindicator.react.stories.d.ts +0 -15
  369. package/dist/packages/stepindicator/stepindicator.react.stories.js +0 -112
  370. package/dist/packages/stepindicator/stepindicator.stories.d.ts +0 -12
  371. package/dist/packages/stepindicator/stepindicator.stories.js +0 -172
  372. package/dist/packages/stepindicator/styles.d.ts +0 -1
  373. package/dist/packages/stepindicator/styles.js +0 -2
  374. package/dist/packages/tabs/tab-panel.js +0 -51
  375. package/dist/packages/tabs/tab.js +0 -104
  376. package/dist/packages/textarea/index.d.ts +0 -1
  377. package/dist/packages/textarea/index.js +0 -1
  378. package/dist/packages/textarea/locales/da/messages.d.mts +0 -1
  379. package/dist/packages/textarea/locales/da/messages.mjs +0 -1
  380. package/dist/packages/textarea/locales/en/messages.d.mts +0 -1
  381. package/dist/packages/textarea/locales/en/messages.mjs +0 -1
  382. package/dist/packages/textarea/locales/fi/messages.d.mts +0 -1
  383. package/dist/packages/textarea/locales/fi/messages.mjs +0 -1
  384. package/dist/packages/textarea/locales/nb/messages.d.mts +0 -1
  385. package/dist/packages/textarea/locales/nb/messages.mjs +0 -1
  386. package/dist/packages/textarea/locales/sv/messages.d.mts +0 -1
  387. package/dist/packages/textarea/locales/sv/messages.mjs +0 -1
  388. package/dist/packages/textarea/react.d.ts +0 -11
  389. package/dist/packages/textarea/react.js +0 -21
  390. package/dist/packages/textarea/styles.d.ts +0 -1
  391. package/dist/packages/textarea/styles.js +0 -2
  392. package/dist/packages/textarea/textarea.d.ts +0 -49
  393. package/dist/packages/textarea/textarea.js +0 -220
  394. package/dist/packages/textarea/textarea.react.stories.d.ts +0 -33
  395. package/dist/packages/textarea/textarea.react.stories.js +0 -41
  396. package/dist/packages/textarea/textarea.stories.d.ts +0 -19
  397. package/dist/packages/textarea/textarea.stories.js +0 -85
  398. package/dist/packages/textarea/textarea.test.d.ts +0 -1
  399. package/dist/packages/textarea/textarea.test.js +0 -68
  400. package/dist/packages/toast/index.js.map +0 -7
  401. package/dist/packages/toast/toast-container.js.map +0 -7
  402. package/dist/packages/toggle-styles.d.ts +0 -1
  403. package/dist/packages/toggle-styles.js +0 -108
  404. /package/dist/packages/affix/{index.d.ts → affix.d.ts} +0 -0
  405. /package/dist/packages/alert/{index.d.ts → alert.d.ts} +0 -0
  406. /package/dist/packages/badge/{index.d.ts → badge.d.ts} +0 -0
  407. /package/dist/packages/box/{index.d.ts → box.d.ts} +0 -0
  408. /package/dist/packages/breadcrumbs/{index.d.ts → breadcrumbs.d.ts} +0 -0
  409. /package/dist/packages/card/{index.d.ts → card.d.ts} +0 -0
  410. /package/dist/packages/combobox/{index.d.ts → combobox.d.ts} +0 -0
  411. /package/dist/packages/expandable/{index.d.ts → expandable.d.ts} +0 -0
  412. /package/dist/packages/{pageindicator → icon}/style.d.ts +0 -0
  413. /package/dist/packages/link/{index.d.ts → link.d.ts} +0 -0
  414. /package/dist/packages/modal/{modal-main.d.ts → modal.d.ts} +0 -0
  415. /package/dist/packages/{pagination → page-indicator}/locales/da/messages.d.mts +0 -0
  416. /package/dist/packages/{pagination → page-indicator}/locales/en/messages.d.mts +0 -0
  417. /package/dist/packages/{pagination → page-indicator}/locales/fi/messages.d.mts +0 -0
  418. /package/dist/packages/{pagination → page-indicator}/locales/nb/messages.d.mts +0 -0
  419. /package/dist/packages/{pagination → page-indicator}/locales/sv/messages.d.mts +0 -0
  420. /package/dist/packages/{pageindicator/pageindicator.react.stories.js → page-indicator/page-indicator.react.stories.js} +0 -0
  421. /package/dist/packages/{pagination/styles.d.ts → page-indicator/style.d.ts} +0 -0
  422. /package/dist/packages/pill/{index.d.ts → pill.d.ts} +0 -0
  423. /package/dist/packages/select/{index.d.ts → select.d.ts} +0 -0
  424. /package/dist/packages/switch/{index.d.ts → switch.d.ts} +0 -0
  425. /package/dist/packages/textfield/{index.d.ts → textfield.d.ts} +0 -0
  426. /package/dist/packages/{toast → toast-container}/toast-container.js +0 -0
@@ -1,282 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { isServer } from 'lit';
8
- import { property } from 'lit/decorators.js';
9
- import BaseElement from './base-element.js';
10
- import { CustomErrorValidator } from './custom-error-validator.js';
11
- import { WInvalidEvent } from './invalid';
12
- // setFormValue omitted so that we can use `setValue`
13
- export class BaseFormAssociatedElement extends BaseElement {
14
- static { this.formAssociated = true; }
15
- /**
16
- * Validators are static because they have `observedAttributes`, essentially attributes to "watch"
17
- * for changes. Whenever these attributes change, we want to be notified and update the validator.
18
- */
19
- static get validators() {
20
- return [CustomErrorValidator()];
21
- }
22
- // Append all Validator "observedAttributes" into the "observedAttributes" so they can run.
23
- static get observedAttributes() {
24
- const parentAttrs = new Set(super.observedAttributes || []);
25
- for (const validator of this.validators) {
26
- if (!validator.observedAttributes) {
27
- continue;
28
- }
29
- for (const attr of validator.observedAttributes) {
30
- parentAttrs.add(attr);
31
- }
32
- }
33
- return [...parentAttrs];
34
- }
35
- constructor() {
36
- super();
37
- // Form attributes
38
- /** The name of the input, submitted as a name/value pair with form data. */
39
- this.name = null;
40
- /** Disables the form control. */
41
- this.disabled = false;
42
- this.required = false;
43
- this.assumeInteractionOn = ['input'];
44
- this.validators = [];
45
- // Should these be private?
46
- this.valueHasChanged = false;
47
- this.hasInteracted = false;
48
- // This works around a limitation in Safari. It is a hacky way for us to preserve custom errors generated by the user.
49
- this.customError = null;
50
- this.emittedEvents = [];
51
- this.emitInvalid = (e) => {
52
- if (e.target !== this)
53
- return;
54
- // An "invalid" event counts as interacted, this is usually triggered by a button "submitting"
55
- this.hasInteracted = true;
56
- this.dispatchEvent(new WInvalidEvent());
57
- };
58
- this.handleInteraction = (event) => {
59
- const emittedEvents = this.emittedEvents;
60
- if (!emittedEvents.includes(event.type)) {
61
- emittedEvents.push(event.type);
62
- }
63
- // Mark it as user-interacted as soon as all associated events have been emitted
64
- if (emittedEvents.length === this.assumeInteractionOn?.length) {
65
- this.hasInteracted = true;
66
- }
67
- };
68
- if (!isServer) {
69
- this.addEventListener('invalid', this.emitInvalid);
70
- }
71
- }
72
- connectedCallback() {
73
- super.connectedCallback();
74
- this.updateValidity();
75
- // Lazily evaluate after the constructor to allow people to override the `assumeInteractionOn`
76
- this.assumeInteractionOn.forEach((event) => {
77
- this.addEventListener(event, this.handleInteraction);
78
- });
79
- }
80
- firstUpdated(...args) {
81
- super.firstUpdated(...args);
82
- this.updateValidity();
83
- }
84
- willUpdate(changedProperties) {
85
- if (!isServer && changedProperties.has('customError')) {
86
- // We use null because it we really don't want it to show up in the attributes because `custom-error` does reflect
87
- if (!this.customError) {
88
- this.customError = null;
89
- }
90
- this.setCustomValidity(this.customError || '');
91
- }
92
- if (changedProperties.has('value') || changedProperties.has('disabled')) {
93
- // @ts-expect-error Some components will use an accessors, other use a property, so we don't want to limit them.
94
- const value = this.value;
95
- // Accounts for the snowflake case on `<wa-select>`
96
- if (Array.isArray(value)) {
97
- if (this.name) {
98
- const formData = new FormData();
99
- for (const val of value) {
100
- formData.append(this.name, val);
101
- }
102
- this.setValue(formData, formData);
103
- }
104
- }
105
- else {
106
- this.setValue(value, value);
107
- }
108
- }
109
- if (changedProperties.has('disabled')) {
110
- this.customStates.set('disabled', this.disabled);
111
- if (this.hasAttribute('disabled') || (!isServer && !this.matches(':disabled'))) {
112
- this.toggleAttribute('disabled', this.disabled);
113
- }
114
- }
115
- this.updateValidity();
116
- super.willUpdate(changedProperties);
117
- }
118
- get labels() {
119
- return this.internals.labels;
120
- }
121
- getForm() {
122
- return this.internals.form;
123
- }
124
- get validity() {
125
- return this.internals.validity;
126
- }
127
- // Not sure if this supports `novalidate`. Will need to test.
128
- get willValidate() {
129
- return this.internals.willValidate;
130
- }
131
- get validationMessage() {
132
- return this.internals.validationMessage;
133
- }
134
- checkValidity() {
135
- this.updateValidity();
136
- return this.internals.checkValidity();
137
- }
138
- reportValidity() {
139
- this.updateValidity();
140
- // This seems reasonable. `reportValidity()` is kind of like "we expect you to have interacted"
141
- this.hasInteracted = true;
142
- return this.internals.reportValidity();
143
- }
144
- /**
145
- * Override this to change where constraint validation popups are anchored.
146
- */
147
- get validationTarget() {
148
- return (this.input || undefined);
149
- }
150
- setValidity(...args) {
151
- const flags = args[0];
152
- const message = args[1];
153
- let anchor = args[2];
154
- if (!anchor) {
155
- anchor = this.validationTarget;
156
- }
157
- this.internals.setValidity(flags, message, anchor || undefined);
158
- this.requestUpdate('validity');
159
- this.setCustomStates();
160
- }
161
- setCustomStates() {
162
- const required = Boolean(this.required);
163
- const isValid = this.internals.validity.valid;
164
- const hasInteracted = this.hasInteracted;
165
- this.customStates.set('required', required);
166
- this.customStates.set('optional', !required);
167
- this.customStates.set('invalid', !isValid);
168
- this.customStates.set('valid', isValid);
169
- this.customStates.set('user-invalid', !isValid && hasInteracted);
170
- this.customStates.set('user-valid', isValid && hasInteracted);
171
- }
172
- /**
173
- * Do not use this when creating a "Validator". This is intended for end users of components.
174
- * We track manually defined custom errors so we don't clear them on accident in our validators.
175
- *
176
- */
177
- setCustomValidity(message) {
178
- if (!message) {
179
- // We use null because it we really don't want it to show up in the attributes because `custom-error` does reflect
180
- this.customError = null;
181
- this.setValidity({});
182
- return;
183
- }
184
- this.customError = message;
185
- this.setValidity({ customError: true }, message, this.validationTarget);
186
- }
187
- formResetCallback() {
188
- this.resetValidity();
189
- this.hasInteracted = false;
190
- this.valueHasChanged = false;
191
- this.emittedEvents = [];
192
- this.updateValidity();
193
- }
194
- formDisabledCallback(isDisabled) {
195
- this.disabled = isDisabled;
196
- this.updateValidity();
197
- }
198
- /**
199
- * Called when the browser is trying to restore element’s state to state in which case reason is "restore", or when
200
- * the browser is trying to fulfill autofill on behalf of user in which case reason is "autocomplete". In the case of
201
- * "restore", state is a string, File, or FormData object previously set as the second argument to setFormValue.
202
- */
203
- formStateRestoreCallback(state, reason) {
204
- // @ts-expect-error We purposely do not have a value property. It makes things hard to extend.
205
- this.value = state;
206
- if (reason === 'restore') {
207
- this.resetValidity();
208
- }
209
- this.updateValidity();
210
- }
211
- setValue(...args) {
212
- const [value, state] = args;
213
- this.internals.setFormValue(value, state);
214
- }
215
- get allValidators() {
216
- const staticValidators = this.constructor.validators || [];
217
- const validators = this.validators || [];
218
- return [...staticValidators, ...validators];
219
- }
220
- /**
221
- * Reset validity is a way of removing manual custom errors and native validation.
222
- */
223
- resetValidity() {
224
- this.setCustomValidity('');
225
- this.setValidity({});
226
- }
227
- updateValidity() {
228
- if (this.disabled ||
229
- this.hasAttribute('disabled') ||
230
- !this.willValidate //
231
- ) {
232
- this.resetValidity();
233
- return;
234
- }
235
- const validators = this.allValidators;
236
- if (!validators?.length) {
237
- // If there's no validators, we do nothing. We also don't want to mess with custom errors, so we just stop here.
238
- return;
239
- }
240
- const flags = {
241
- // Don't trust custom errors from the Browser. Safari breaks the spec.
242
- customError: Boolean(this.customError),
243
- };
244
- const formControl = this.validationTarget || this.input || undefined;
245
- let finalMessage = '';
246
- for (const validator of validators) {
247
- const { isValid, message, invalidKeys } = validator.checkValidity(this);
248
- if (isValid) {
249
- continue;
250
- }
251
- if (!finalMessage) {
252
- finalMessage = message;
253
- }
254
- if (invalidKeys?.length >= 0) {
255
- invalidKeys.forEach((str) => (flags[str] = true));
256
- }
257
- }
258
- // This is a workaround for preserving custom errors
259
- if (!finalMessage) {
260
- finalMessage = this.validationMessage;
261
- }
262
- this.setValidity(flags, finalMessage, formControl);
263
- }
264
- }
265
- __decorate([
266
- property({ reflect: true })
267
- ], BaseFormAssociatedElement.prototype, "name", void 0);
268
- __decorate([
269
- property({ type: Boolean })
270
- ], BaseFormAssociatedElement.prototype, "disabled", void 0);
271
- __decorate([
272
- property({ state: true, attribute: false })
273
- ], BaseFormAssociatedElement.prototype, "valueHasChanged", void 0);
274
- __decorate([
275
- property({ state: true, attribute: false })
276
- ], BaseFormAssociatedElement.prototype, "hasInteracted", void 0);
277
- __decorate([
278
- property({ attribute: 'custom-error', reflect: true })
279
- ], BaseFormAssociatedElement.prototype, "customError", void 0);
280
- __decorate([
281
- property({ attribute: false, state: true, type: Object })
282
- ], BaseFormAssociatedElement.prototype, "validity", null);
@@ -1 +0,0 @@
1
- export declare const styles: import("lit").CSSResult;
@@ -1,12 +0,0 @@
1
- import { css } from 'lit';
2
- export const styles = css `
3
- :host {
4
- box-sizing: border-box !important;
5
- }
6
-
7
- :host *,
8
- :host *::before,
9
- :host *::after {
10
- box-sizing: inherit !important;
11
- }
12
- `;
@@ -1,2 +0,0 @@
1
- export { WRadio } from './radio';
2
- export { WRadioGroup } from './radio-group';
@@ -1,2 +0,0 @@
1
- export { WRadio } from './radio';
2
- export { WRadioGroup } from './radio-group';
@@ -1,8 +0,0 @@
1
- export declare class WInvalidEvent extends Event {
2
- constructor();
3
- }
4
- declare global {
5
- interface GlobalEventHandlersEventMap {
6
- 'wa-invalid': WInvalidEvent;
7
- }
8
- }
@@ -1,5 +0,0 @@
1
- export class WInvalidEvent extends Event {
2
- constructor() {
3
- super('w-invalid', { bubbles: true, cancelable: false, composed: true });
4
- }
5
- }
@@ -1 +0,0 @@
1
- export declare function uniqueId(prefix?: string): string;
@@ -1,4 +0,0 @@
1
- import { nanoid } from 'nanoid';
2
- export function uniqueId(prefix = '') {
3
- return `${prefix}${nanoid()}`;
4
- }
@@ -1 +0,0 @@
1
- export declare const styles: import("lit").CSSResult;
@@ -1,59 +0,0 @@
1
- import { css } from 'lit';
2
- export const styles = css `
3
- :host {
4
- display: block;
5
- }
6
-
7
- .form-control {
8
- position: relative;
9
- border: none;
10
- padding: 0;
11
- margin: 0;
12
- }
13
-
14
- .label {
15
- font-size: var(--w-font-size-s);
16
- line-height: var(--w-line-height-s);
17
- font-weight: 700;
18
- -webkit-font-smoothing: antialiased;
19
- -moz-osx-font-smoothing: grayscale;
20
- font-smoothing: grayscale;
21
- cursor: pointer;
22
- padding-bottom: 0.4rem;
23
- color: var(--w-s-color-text);
24
- display: block;
25
- }
26
-
27
- .radio-group-required .label::after {
28
- content: var(--wa-form-control-required-content);
29
- margin-inline-start: var(--wa-form-control-required-content-offset);
30
- }
31
-
32
- .button-group {
33
- display: flex;
34
- }
35
-
36
- [part~='form-control-input'] {
37
- display: flex;
38
- flex-direction: column;
39
- flex-wrap: wrap;
40
- }
41
-
42
- /* Horizontal */
43
- :host([orientation='horizontal']) [part~='form-control-input'] {
44
- flex-direction: row;
45
- gap: 1em;
46
- }
47
-
48
- /* Help text */
49
- [part~='hint'] {
50
- margin-block-start: 0.5em;
51
- }
52
-
53
- /* Radios have the "button" appearance */
54
- :host fieldset.has-radio-buttons {
55
- [part~='form-control-input'] {
56
- gap: 0;
57
- }
58
- }
59
- `;
@@ -1,72 +0,0 @@
1
- import type { PropertyValues } from 'lit';
2
- import { BaseFormAssociatedElement } from './form-associated-element';
3
- import './radio';
4
- import type { WRadio } from './radio';
5
- /**
6
- * @slot label - Alternative to the `label` attribute should you need custom HTML.
7
- */
8
- export declare class WRadioGroup extends BaseFormAssociatedElement {
9
- static css: import("lit").CSSResult[];
10
- static get validators(): import("./form-associated-element").Validator<BaseFormAssociatedElement>[];
11
- private readonly hasSlotController;
12
- hasRadioButtons: boolean;
13
- defaultSlot: HTMLSlotElement;
14
- /**
15
- * The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
16
- * instead.
17
- */
18
- label: string;
19
- /** The radio groups's hint. If you need to display HTML, use the `hint` slot instead. */
20
- hint: string;
21
- /** The name of the radio group, submitted as a name/value pair with form data. */
22
- name: string | null;
23
- /** Disables the radio group and all child radios. */
24
- disabled: boolean;
25
- /** The orientation in which to show radio items. */
26
- orientation: 'horizontal' | 'vertical';
27
- private _value;
28
- get value(): string | number | null;
29
- /** The current value of the radio group, submitted as a name/value pair with form data. */
30
- set value(val: string | number | null);
31
- /** The default value of the form control. Primarily used for resetting the form control. */
32
- defaultValue: string | null;
33
- /** The radio group's size. This size will be applied to all child radios and radio buttons, except when explicitly overridden. */
34
- size: 'small' | 'medium' | 'large';
35
- /** Ensures a child radio is checked before allowing the containing form to submit. */
36
- required: boolean;
37
- /**
38
- * Used for SSR. if true, will show slotted label on initial render.
39
- */
40
- withLabel: boolean;
41
- /**
42
- * Used for SSR. if true, will show slotted hint on initial render.
43
- */
44
- withHint: boolean;
45
- static shadowRootOptions: {
46
- delegatesFocus: boolean;
47
- mode: ShadowRootMode;
48
- serializable?: boolean;
49
- slotAssignment?: SlotAssignmentMode;
50
- };
51
- constructor();
52
- /**
53
- * We use the first available radio as the validationTarget similar to native HTML that shows the validation popup on
54
- * the first radio element.
55
- */
56
- get validationTarget(): WRadio;
57
- updated(changedProperties: PropertyValues<this>): void;
58
- formResetCallback(...args: Parameters<BaseFormAssociatedElement['formResetCallback']>): void;
59
- private handleRadioClick;
60
- private getAllRadios;
61
- private handleLabelClick;
62
- private syncRadioElements;
63
- private handleKeyDown;
64
- /** Sets focus on the radio group. */
65
- focus(options?: FocusOptions): void;
66
- render(): import("lit").TemplateResult<1>;
67
- }
68
- declare global {
69
- interface HTMLElementTagNameMap {
70
- 'w-radio-group': WRadioGroup;
71
- }
72
- }