@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@warp-ds/elements",
4
- "version": "2.2.0-next.8",
4
+ "version": "2.2.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -77,6 +77,61 @@
77
77
  "events": []
78
78
  }
79
79
  },
80
+ {
81
+ "name": "w-button",
82
+ "description": "Buttons are used to perform actions, widh different visuals for different needs.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)\n---\n",
83
+ "doc-url": "",
84
+ "attributes": [
85
+ {
86
+ "name": "type",
87
+ "value": {
88
+ "type": "'button' | 'submit' | 'reset'",
89
+ "default": "'button'"
90
+ }
91
+ },
92
+ { "name": "autofocus", "value": { "type": "boolean" } },
93
+ {
94
+ "name": "variant",
95
+ "value": {
96
+ "type": "'negative' | 'primary' | 'secondary' | 'utility' | 'pill' | 'link'",
97
+ "default": "'secondary'"
98
+ }
99
+ },
100
+ { "name": "quiet", "value": { "type": "boolean" } },
101
+ { "name": "small", "value": { "type": "boolean" } },
102
+ { "name": "loading", "value": { "type": "boolean" } },
103
+ { "name": "href", "value": { "type": "string" } },
104
+ { "name": "target", "value": { "type": "string" } },
105
+ { "name": "rel", "value": { "type": "string" } },
106
+ { "name": "full-width", "value": { "type": "boolean" } },
107
+ { "name": "button-class", "value": { "type": "string" } },
108
+ { "name": "name", "value": { "type": "string" } },
109
+ { "name": "value", "value": { "type": "string" } }
110
+ ],
111
+ "events": [],
112
+ "js": {
113
+ "properties": [
114
+ { "name": "type", "type": "'button' | 'submit' | 'reset'" },
115
+ { "name": "autofocus", "type": "boolean" },
116
+ {
117
+ "name": "variant",
118
+ "type": "'negative' | 'primary' | 'secondary' | 'utility' | 'pill' | 'link'"
119
+ },
120
+ { "name": "quiet", "type": "boolean" },
121
+ { "name": "small", "type": "boolean" },
122
+ { "name": "loading", "type": "boolean" },
123
+ { "name": "href", "type": "string" },
124
+ { "name": "target", "type": "string" },
125
+ { "name": "rel", "type": "string" },
126
+ { "name": "fullWidth", "type": "boolean" },
127
+ { "name": "buttonClass", "type": "string" },
128
+ { "name": "name", "type": "string" },
129
+ { "name": "value", "type": "string" },
130
+ { "name": "ariaValueTextLoading" }
131
+ ],
132
+ "events": []
133
+ }
134
+ },
80
135
  {
81
136
  "name": "w-attention",
82
137
  "description": "\n---\n",
@@ -227,106 +282,6 @@
227
282
  "events": []
228
283
  }
229
284
  },
230
- {
231
- "name": "w-link",
232
- "description": "Buttons are used to perform actions, with different visuals for different needs.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-link--docs)\n---\n",
233
- "doc-url": "",
234
- "attributes": [
235
- { "name": "autofocus", "value": { "type": "boolean" } },
236
- {
237
- "name": "variant",
238
- "value": {
239
- "type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet'",
240
- "default": "'secondary'"
241
- }
242
- },
243
- { "name": "quiet", "value": { "type": "boolean" } },
244
- { "name": "small", "value": { "type": "boolean" } },
245
- { "name": "href", "value": { "type": "string" } },
246
- { "name": "disabled", "value": { "type": "boolean" } },
247
- { "name": "target", "value": { "type": "string" } },
248
- { "name": "rel", "value": { "type": "string" } },
249
- { "name": "full-width", "value": { "type": "boolean" } },
250
- { "name": "button-class", "value": { "type": "string" } },
251
- { "name": "name", "value": { "type": "string" } }
252
- ],
253
- "events": [],
254
- "js": {
255
- "properties": [
256
- { "name": "autofocus", "type": "boolean" },
257
- {
258
- "name": "variant",
259
- "type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet'"
260
- },
261
- { "name": "quiet", "type": "boolean" },
262
- { "name": "small", "type": "boolean" },
263
- { "name": "href", "type": "string" },
264
- { "name": "disabled", "type": "boolean" },
265
- { "name": "target", "type": "string" },
266
- { "name": "rel", "type": "string" },
267
- { "name": "fullWidth", "type": "boolean" },
268
- { "name": "buttonClass", "type": "string" },
269
- { "name": "name", "type": "string" },
270
- { "name": "classes", "type": "string" }
271
- ],
272
- "events": []
273
- }
274
- },
275
- {
276
- "name": "w-button",
277
- "description": "Buttons are used to perform actions, widh different visuals for different needs.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)\n---\n",
278
- "doc-url": "",
279
- "attributes": [
280
- {
281
- "name": "type",
282
- "value": {
283
- "type": "'button' | 'submit' | 'reset'",
284
- "default": "'button'"
285
- }
286
- },
287
- { "name": "autofocus", "value": { "type": "boolean" } },
288
- {
289
- "name": "variant",
290
- "value": {
291
- "type": "'negative' | 'primary' | 'secondary' | 'utility' | 'pill' | 'link'",
292
- "default": "'secondary'"
293
- }
294
- },
295
- { "name": "quiet", "value": { "type": "boolean" } },
296
- { "name": "small", "value": { "type": "boolean" } },
297
- { "name": "loading", "value": { "type": "boolean" } },
298
- { "name": "href", "value": { "type": "string" } },
299
- { "name": "target", "value": { "type": "string" } },
300
- { "name": "rel", "value": { "type": "string" } },
301
- { "name": "full-width", "value": { "type": "boolean" } },
302
- { "name": "button-class", "value": { "type": "string" } },
303
- { "name": "name", "value": { "type": "string" } },
304
- { "name": "value", "value": { "type": "string" } }
305
- ],
306
- "events": [],
307
- "js": {
308
- "properties": [
309
- { "name": "type", "type": "'button' | 'submit' | 'reset'" },
310
- { "name": "autofocus", "type": "boolean" },
311
- {
312
- "name": "variant",
313
- "type": "'negative' | 'primary' | 'secondary' | 'utility' | 'pill' | 'link'"
314
- },
315
- { "name": "quiet", "type": "boolean" },
316
- { "name": "small", "type": "boolean" },
317
- { "name": "loading", "type": "boolean" },
318
- { "name": "href", "type": "string" },
319
- { "name": "target", "type": "string" },
320
- { "name": "rel", "type": "string" },
321
- { "name": "fullWidth", "type": "boolean" },
322
- { "name": "buttonClass", "type": "string" },
323
- { "name": "name", "type": "string" },
324
- { "name": "value", "type": "string" },
325
- { "name": "ariaValueTextLoading" }
326
- ],
327
- "events": []
328
- }
329
- },
330
285
  {
331
286
  "name": "w-card",
332
287
  "description": "Card is a layout component used for separating content areas on a page.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-card--docs)\n---\n",
@@ -356,119 +311,6 @@
356
311
  "events": []
357
312
  }
358
313
  },
359
- {
360
- "name": "w-datepicker",
361
- "description": "An input for dates.\n\nUses the `lang` attribute on either the element or on `<html>` to determine the locale options.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-datepicker--docs)\n---\n",
362
- "doc-url": "",
363
- "attributes": [
364
- { "name": "label", "value": { "type": "string" } },
365
- {
366
- "name": "lang",
367
- "description": "Takes precedence over the `<html>` lang attribute.",
368
- "value": { "type": "string" }
369
- },
370
- { "name": "name", "value": { "type": "string" } },
371
- { "name": "value", "value": { "type": "string" } },
372
- {
373
- "name": "header-format",
374
- "description": "Decides the format of the date as shown in the calendar header.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
375
- "value": { "type": "string", "default": "'MMMM yyyy'" }
376
- },
377
- {
378
- "name": "weekday-format",
379
- "description": "Decides the format of the weekday as shown above the grid of dates in the calendar.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
380
- "value": { "type": "string", "default": "'EEEEEE'" }
381
- },
382
- {
383
- "name": "day-format",
384
- "description": "Decides the format of the day in the calendar as read to screen readers.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
385
- "value": { "type": "string", "default": "'PPPP'" }
386
- }
387
- ],
388
- "events": [],
389
- "js": {
390
- "properties": [
391
- { "name": "label", "type": "string" },
392
- {
393
- "name": "lang",
394
- "description": "Takes precedence over the `<html>` lang attribute.",
395
- "type": "string"
396
- },
397
- { "name": "name", "type": "string" },
398
- { "name": "value", "type": "string" },
399
- {
400
- "name": "headerFormat",
401
- "description": "Decides the format of the date as shown in the calendar header.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
402
- "type": "string"
403
- },
404
- {
405
- "name": "weekdayFormat",
406
- "description": "Decides the format of the weekday as shown above the grid of dates in the calendar.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
407
- "type": "string"
408
- },
409
- {
410
- "name": "isDayDisabled",
411
- "description": "Lets you control if a date in the calendar should be disabled.\n\nThis needs to be set on the element instance in JavaScript, not as an HTML attribute.",
412
- "type": "(day: Date) => boolean"
413
- },
414
- {
415
- "name": "dayFormat",
416
- "description": "Decides the format of the day in the calendar as read to screen readers.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
417
- "type": "string"
418
- },
419
- { "name": "isCalendarOpen", "type": "boolean" },
420
- { "name": "navigationDate", "type": "Date" },
421
- { "name": "selectedDate", "type": "Date | null" },
422
- { "name": "month" },
423
- { "name": "weeks" },
424
- { "name": "calendar", "type": "HTMLDivElement" },
425
- { "name": "input", "type": "HTMLInputElement" },
426
- { "name": "toggleButton", "type": "HTMLButtonElement" },
427
- { "name": "wrapper", "type": "HTMLDivElement" },
428
- {
429
- "name": "previousMonthButton",
430
- "description": "This is the first focusable element, needed for the modal focus trap.\n\nDon't cache this and other `@query` fields from inside the calendar modal.\nThey work the first time, but once the calendar is closed and reopened\nthe query will point to an element that doesn't exist anymore.",
431
- "type": "HTMLButtonElement"
432
- },
433
- { "name": "todayCell", "type": "HTMLTableCellElement" },
434
- { "name": "selectedCell", "type": "HTMLTableCellElement" }
435
- ],
436
- "events": []
437
- }
438
- },
439
- {
440
- "name": "w-dead-toggle",
441
- "description": "Dead toggle can be used where the appearance of a checkbox or radio is needed - but for accessibility purposes an actual input element should not be present.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-dead-toggle--docs)\n---\n",
442
- "doc-url": "",
443
- "attributes": [
444
- {
445
- "name": "type",
446
- "value": { "type": "'radio' | 'checkbox'", "default": "'radio'" }
447
- },
448
- {
449
- "name": "checked",
450
- "value": { "type": "boolean", "default": "false" }
451
- },
452
- {
453
- "name": "indeterminate",
454
- "value": { "type": "boolean", "default": "false" }
455
- },
456
- {
457
- "name": "invalid",
458
- "value": { "type": "boolean", "default": "false" }
459
- }
460
- ],
461
- "events": [],
462
- "js": {
463
- "properties": [
464
- { "name": "type", "type": "'radio' | 'checkbox'" },
465
- { "name": "checked", "type": "boolean" },
466
- { "name": "indeterminate", "type": "boolean" },
467
- { "name": "invalid", "type": "boolean" }
468
- ],
469
- "events": []
470
- }
471
- },
472
314
  {
473
315
  "name": "w-expandable",
474
316
  "description": "Expandable is a layout component used for creating expandable content areas on a page.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-expandable--docs)\n---\n\n\n### **Slots:**\n - **title** - Alternative to the `title` attribute should you need to provide some additional markup.",
@@ -532,177 +374,26 @@
532
374
  }
533
375
  },
534
376
  {
535
- "name": "w-modal-footer",
536
- "description": "The footer section of a modal, typically where you place actions.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n---\n",
537
- "doc-url": "",
538
- "attributes": [],
539
- "events": [],
540
- "js": { "properties": [], "events": [] }
541
- },
542
- {
543
- "name": "w-modal-header",
544
- "description": "The header section of a modal, typically where you place the title and a close button.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n---\n\n\n### **Events:**\n - **backClicked**\n\n### **Slots:**\n - **top** - Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example.",
377
+ "name": "w-pill",
378
+ "description": "Pill is a type of button that is often used as a filter, but can also be used as a rounded button for overlays, etc.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-pill--docs)\n---\n\n\n### **Events:**\n - **w-pill-click**\n- **w-pill-close**",
545
379
  "doc-url": "",
546
380
  "attributes": [
547
- { "name": "title", "value": { "type": "string" } },
548
- { "name": "back", "value": { "type": "boolean" } },
549
- { "name": "no-close", "value": { "type": "boolean" } }
550
- ],
551
- "slots": [
552
381
  {
553
- "name": "top",
554
- "description": "Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example."
555
- }
556
- ],
557
- "events": [{ "name": "backClicked", "type": "CustomEvent" }],
558
- "js": {
559
- "properties": [
560
- { "name": "title", "type": "string" },
561
- { "name": "back", "type": "boolean" },
562
- { "name": "noClose", "type": "boolean" },
563
- { "name": "titleEl", "type": "HTMLElement" },
564
- { "name": "titleClasses" },
565
- { "name": "backButton" },
566
- { "name": "closeButton" }
567
- ],
568
- "events": [{ "name": "backClicked", "type": "CustomEvent" }]
569
- }
570
- },
571
- {
572
- "name": "w-modal",
573
- "description": "Modals (or dialogs) display important information that users need to acknowledge.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n---\n\n\n### **Events:**\n - **shown**\n- **hidden**\n\n### **Slots:**\n - **header** - Typically where you would use the `w-modal-header` component.\n- **content** - The main content of the modal.\n- **footer** - Typically where you would use the `w-modal-footer` component, for things like actions.",
574
- "doc-url": "",
575
- "attributes": [
576
- { "name": "show", "value": { "type": "boolean" } },
577
- { "name": "content-id", "value": { "type": "string" } },
578
- { "name": "ignore-backdrop-clicks", "value": { "type": "boolean" } }
579
- ],
580
- "slots": [
581
- {
582
- "name": "header",
583
- "description": "Typically where you would use the `w-modal-header` component."
584
- },
585
- {
586
- "name": "content",
587
- "description": "The main content of the modal."
588
- },
589
- {
590
- "name": "footer",
591
- "description": "Typically where you would use the `w-modal-footer` component, for things like actions."
592
- }
593
- ],
594
- "events": [
595
- { "name": "shown", "type": "CustomEvent" },
596
- { "name": "hidden", "type": "CustomEvent" }
597
- ],
598
- "js": {
599
- "properties": [
600
- { "name": "show", "type": "boolean" },
601
- { "name": "contentId", "type": "string" },
602
- { "name": "ignoreBackdropClicks", "type": "boolean" },
603
- { "name": "dialogEl", "type": "HTMLDialogElement" },
604
- { "name": "dialogInnerEl", "type": "HTMLElement" },
605
- { "name": "contentEl", "type": "HTMLElement" }
606
- ],
607
- "events": [
608
- { "name": "shown", "type": "CustomEvent" },
609
- { "name": "hidden", "type": "CustomEvent" }
610
- ]
611
- }
612
- },
613
- {
614
- "name": "w-pageindicator",
615
- "description": "\n---\n",
616
- "doc-url": "",
617
- "attributes": [
618
- {
619
- "name": "selected-page",
620
- "description": "Currently selected page (1-based index)",
621
- "value": { "type": "number", "default": "1" }
622
- },
623
- {
624
- "name": "page-count",
625
- "description": "Total number of pages",
626
- "value": { "type": "number", "default": "1" }
627
- }
628
- ],
629
- "events": [],
630
- "js": {
631
- "properties": [
632
- {
633
- "name": "selectedPage",
634
- "description": "Currently selected page (1-based index)",
635
- "type": "number"
636
- },
637
- {
638
- "name": "pageCount",
639
- "description": "Total number of pages",
640
- "type": "number"
641
- }
642
- ],
643
- "events": []
644
- }
645
- },
646
- {
647
- "name": "w-pagination",
648
- "description": "Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-pagination--docs)\n---\n\n\n### **Events:**\n - **page-click** - Triggered when a link button in the pagination is clicked. Contains the page number in `string` form.",
649
- "doc-url": "",
650
- "attributes": [
651
- { "name": "base-url", "value": { "type": "string" } },
652
- { "name": "pages", "value": { "type": "number" } },
653
- {
654
- "name": "current-page",
655
- "value": { "type": "number", "default": "1" }
656
- },
657
- {
658
- "name": "visible-pages",
659
- "value": { "type": "number", "default": "7" }
660
- }
661
- ],
662
- "events": [
663
- {
664
- "name": "page-click",
665
- "type": "CustomEvent",
666
- "description": "Triggered when a link button in the pagination is clicked. Contains the page number in `string` form."
667
- }
668
- ],
669
- "js": {
670
- "properties": [
671
- { "name": "baseUrl", "type": "string" },
672
- { "name": "pages", "type": "number" },
673
- { "name": "currentPageNumber", "type": "number" },
674
- { "name": "visiblePages", "type": "number" }
675
- ],
676
- "events": [
677
- {
678
- "name": "page-click",
679
- "type": "CustomEvent",
680
- "description": "Triggered when a link button in the pagination is clicked. Contains the page number in `string` form."
681
- }
682
- ]
683
- }
684
- },
685
- {
686
- "name": "w-pill",
687
- "description": "Pill is a type of button that is often used as a filter, but can also be used as a rounded button for overlays, etc.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-pill--docs)\n---\n\n\n### **Events:**\n - **w-pill-click**\n- **w-pill-close**",
688
- "doc-url": "",
689
- "attributes": [
690
- {
691
- "name": "can-close",
692
- "value": { "type": "boolean", "default": "false" }
693
- },
694
- {
695
- "name": "suggestion",
696
- "value": { "type": "boolean", "default": "false" }
697
- },
698
- { "name": "open-sr-label", "value": { "type": "string" } },
699
- { "name": "open-aria-label", "value": { "type": "string" } },
700
- { "name": "close-sr-label", "value": { "type": "string" } },
701
- { "name": "close-aria-label", "value": { "type": "string" } }
702
- ],
703
- "events": [
704
- { "name": "w-pill-click", "type": "CustomEvent" },
705
- { "name": "w-pill-close", "type": "CustomEvent" }
382
+ "name": "can-close",
383
+ "value": { "type": "boolean", "default": "false" }
384
+ },
385
+ {
386
+ "name": "suggestion",
387
+ "value": { "type": "boolean", "default": "false" }
388
+ },
389
+ { "name": "open-sr-label", "value": { "type": "string" } },
390
+ { "name": "open-aria-label", "value": { "type": "string" } },
391
+ { "name": "close-sr-label", "value": { "type": "string" } },
392
+ { "name": "close-aria-label", "value": { "type": "string" } }
393
+ ],
394
+ "events": [
395
+ { "name": "w-pill-click", "type": "CustomEvent" },
396
+ { "name": "w-pill-close", "type": "CustomEvent" }
706
397
  ],
707
398
  "js": {
708
399
  "properties": [
@@ -766,7 +457,6 @@
766
457
  "description": "Renders the field in a readonly state.",
767
458
  "value": { "type": "boolean" }
768
459
  },
769
- { "name": "_options", "value": { "type": "string" } },
770
460
  { "name": "name", "value": { "type": "string" } },
771
461
  { "name": "value", "value": { "type": "string" } }
772
462
  ],
@@ -814,127 +504,346 @@
814
504
  "type": "boolean"
815
505
  },
816
506
  { "name": "name", "type": "string" },
817
- { "name": "value", "type": "string" },
818
- { "name": "_options" }
507
+ { "name": "value", "type": "string" }
819
508
  ],
820
509
  "events": []
821
510
  }
822
511
  },
823
512
  {
824
- "name": "w-steps",
825
- "description": "Steps are used to show progress through a process or to guide users through a multi-step task.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/components-steps--docs)\n---\n",
513
+ "name": "w-textfield",
514
+ "description": "A single line text input element.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)\n---\n",
826
515
  "doc-url": "",
827
516
  "attributes": [
517
+ { "name": "disabled", "value": { "type": "boolean" } },
518
+ { "name": "invalid", "value": { "type": "boolean" } },
519
+ { "name": "id", "value": { "type": "string" } },
520
+ { "name": "label", "value": { "type": "string" } },
521
+ { "name": "help-text", "value": { "type": "string" } },
522
+ { "name": "size", "value": { "type": "string" } },
523
+ { "name": "max", "value": { "type": "number" } },
524
+ { "name": "min", "value": { "type": "number" } },
525
+ { "name": "min-length", "value": { "type": "number" } },
526
+ { "name": "max-length", "value": { "type": "number" } },
527
+ { "name": "pattern", "value": { "type": "string" } },
528
+ { "name": "placeholder", "value": { "type": "string" } },
529
+ { "name": "read-only", "value": { "type": "boolean" } },
530
+ { "name": "required", "value": { "type": "boolean" } },
828
531
  {
829
- "name": "horizontal",
830
- "value": { "type": "boolean", "default": "false" }
532
+ "name": "type",
533
+ "value": { "type": "string", "default": "'text'" }
831
534
  },
832
- {
833
- "name": "right",
834
- "value": { "type": "boolean", "default": "false" }
835
- }
535
+ { "name": "value", "value": { "type": "string" } },
536
+ { "name": "name", "value": { "type": "string" } }
836
537
  ],
837
538
  "events": [],
838
539
  "js": {
839
540
  "properties": [
840
- { "name": "horizontal", "type": "boolean" },
841
- { "name": "right", "type": "boolean" }
541
+ { "name": "disabled", "type": "boolean" },
542
+ { "name": "invalid", "type": "boolean" },
543
+ { "name": "id", "type": "string" },
544
+ { "name": "label", "type": "string" },
545
+ { "name": "helpText", "type": "string" },
546
+ { "name": "size", "type": "string" },
547
+ { "name": "max", "type": "number" },
548
+ { "name": "min", "type": "number" },
549
+ { "name": "minLength", "type": "number" },
550
+ { "name": "maxLength", "type": "number" },
551
+ { "name": "pattern", "type": "string" },
552
+ { "name": "placeholder", "type": "string" },
553
+ { "name": "readOnly", "type": "boolean" },
554
+ { "name": "required", "type": "boolean" },
555
+ { "name": "type", "type": "string" },
556
+ { "name": "value", "type": "string" },
557
+ { "name": "name", "type": "string" },
558
+ {
559
+ "name": "formatter",
560
+ "description": "Function to format value when the input field.\n\nOnly active when the input field does not have focus,\nsimilar to the accessible input masking example from Filament Group\n\nhttps://css-tricks.com/input-masking/\nhttps://filamentgroup.github.io/politespace/demo/demo.html",
561
+ "type": "(value: string) => string"
562
+ }
842
563
  ],
843
564
  "events": []
844
565
  }
845
566
  },
846
567
  {
847
- "name": "w-step",
848
- "description": "Individual step component that shows a single step in a process\n---\n",
568
+ "name": "w-modal-footer",
569
+ "description": "The footer section of a modal, typically where you place actions.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n---\n",
570
+ "doc-url": "",
571
+ "attributes": [],
572
+ "events": [],
573
+ "js": { "properties": [], "events": [] }
574
+ },
575
+ {
576
+ "name": "w-modal-header",
577
+ "description": "The header section of a modal, typically where you place the title and a close button.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n---\n\n\n### **Events:**\n - **backClicked**\n\n### **Slots:**\n - **top** - Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example.",
849
578
  "doc-url": "",
850
579
  "attributes": [
580
+ { "name": "title", "value": { "type": "string" } },
581
+ { "name": "back", "value": { "type": "boolean" } },
582
+ { "name": "no-close", "value": { "type": "boolean" } }
583
+ ],
584
+ "slots": [
851
585
  {
852
- "name": "active",
853
- "value": { "type": "boolean", "default": "false" }
586
+ "name": "top",
587
+ "description": "Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example."
588
+ }
589
+ ],
590
+ "events": [{ "name": "backClicked", "type": "CustomEvent" }],
591
+ "js": {
592
+ "properties": [
593
+ { "name": "title", "type": "string" },
594
+ { "name": "back", "type": "boolean" },
595
+ { "name": "noClose", "type": "boolean" },
596
+ { "name": "titleEl", "type": "HTMLElement" },
597
+ { "name": "titleClasses" },
598
+ { "name": "backButton" },
599
+ { "name": "closeButton" }
600
+ ],
601
+ "events": [{ "name": "backClicked", "type": "CustomEvent" }]
602
+ }
603
+ },
604
+ {
605
+ "name": "w-modal",
606
+ "description": "Modals (or dialogs) display important information that users need to acknowledge.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n---\n\n\n### **Events:**\n - **shown**\n- **hidden**\n\n### **Slots:**\n - **header** - Typically where you would use the `w-modal-header` component.\n- **content** - The main content of the modal.\n- **footer** - Typically where you would use the `w-modal-footer` component, for things like actions.",
607
+ "doc-url": "",
608
+ "attributes": [
609
+ { "name": "show", "value": { "type": "boolean" } },
610
+ { "name": "content-id", "value": { "type": "string" } },
611
+ { "name": "ignore-backdrop-clicks", "value": { "type": "boolean" } }
612
+ ],
613
+ "slots": [
614
+ {
615
+ "name": "header",
616
+ "description": "Typically where you would use the `w-modal-header` component."
854
617
  },
855
618
  {
856
- "name": "completed",
857
- "value": { "type": "boolean", "default": "false" }
619
+ "name": "content",
620
+ "description": "The main content of the modal."
621
+ },
622
+ {
623
+ "name": "footer",
624
+ "description": "Typically where you would use the `w-modal-footer` component, for things like actions."
858
625
  }
859
626
  ],
860
- "events": [],
627
+ "events": [
628
+ { "name": "shown", "type": "CustomEvent" },
629
+ { "name": "hidden", "type": "CustomEvent" }
630
+ ],
861
631
  "js": {
862
632
  "properties": [
863
- { "name": "active", "type": "boolean" },
864
- { "name": "completed", "type": "boolean" }
633
+ { "name": "show", "type": "boolean" },
634
+ { "name": "contentId", "type": "string" },
635
+ { "name": "ignoreBackdropClicks", "type": "boolean" },
636
+ { "name": "dialogEl", "type": "HTMLDialogElement" },
637
+ { "name": "dialogInnerEl", "type": "HTMLElement" },
638
+ { "name": "contentEl", "type": "HTMLElement" }
865
639
  ],
866
- "events": []
640
+ "events": [
641
+ { "name": "shown", "type": "CustomEvent" },
642
+ { "name": "hidden", "type": "CustomEvent" }
643
+ ]
867
644
  }
868
645
  },
869
646
  {
870
- "name": "w-switch",
871
- "description": "\n---\n\n\n### **Events:**\n - **change**",
647
+ "name": "w-toast-container",
648
+ "description": "\n---\n",
649
+ "doc-url": "",
650
+ "attributes": [],
651
+ "events": [],
652
+ "js": { "properties": [], "events": [] }
653
+ },
654
+ {
655
+ "name": "w-pagination",
656
+ "description": "Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-pagination--docs)\n---\n\n\n### **Events:**\n - **page-click** - Triggered when a link button in the pagination is clicked. Contains the page number in `string` form.",
872
657
  "doc-url": "",
873
658
  "attributes": [
659
+ { "name": "base-url", "value": { "type": "string" } },
660
+ { "name": "pages", "value": { "type": "number" } },
874
661
  {
875
- "name": "value",
876
- "value": { "type": "boolean", "default": "false" }
662
+ "name": "current-page",
663
+ "value": { "type": "number", "default": "1" }
877
664
  },
878
665
  {
879
- "name": "disabled",
880
- "value": { "type": "boolean", "default": "false" }
666
+ "name": "visible-pages",
667
+ "value": { "type": "number", "default": "7" }
668
+ }
669
+ ],
670
+ "events": [
671
+ {
672
+ "name": "page-click",
673
+ "type": "CustomEvent",
674
+ "description": "Triggered when a link button in the pagination is clicked. Contains the page number in `string` form."
881
675
  }
882
676
  ],
883
- "events": [{ "name": "change", "type": "CustomEvent" }],
884
677
  "js": {
885
678
  "properties": [
886
- { "name": "value", "type": "boolean" },
887
- { "name": "disabled", "type": "boolean" }
679
+ { "name": "baseUrl", "type": "string" },
680
+ { "name": "pages", "type": "number" },
681
+ { "name": "currentPageNumber", "type": "number" },
682
+ { "name": "visiblePages", "type": "number" }
888
683
  ],
889
- "events": [{ "name": "change", "type": "CustomEvent" }]
684
+ "events": [
685
+ {
686
+ "name": "page-click",
687
+ "type": "CustomEvent",
688
+ "description": "Triggered when a link button in the pagination is clicked. Contains the page number in `string` form."
689
+ }
690
+ ]
890
691
  }
891
692
  },
892
693
  {
893
- "name": "w-textfield",
894
- "description": "A single line text input element.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)\n---\n",
694
+ "name": "w-slider-thumb",
695
+ "description": "Component to place inside a `<w-slider>`.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)\n---\n\n\n### **Events:**\n - **slidervalidity**",
895
696
  "doc-url": "",
896
697
  "attributes": [
897
- { "name": "disabled", "value": { "type": "boolean" } },
898
- { "name": "invalid", "value": { "type": "boolean" } },
899
- { "name": "id", "value": { "type": "string" } },
698
+ { "name": "aria-label", "value": { "type": "string" } },
699
+ { "name": "aria-description", "value": { "type": "string" } },
900
700
  { "name": "label", "value": { "type": "string" } },
901
- { "name": "help-text", "value": { "type": "string" } },
902
- { "name": "size", "value": { "type": "string" } },
903
- { "name": "max", "value": { "type": "number" } },
904
- { "name": "min", "value": { "type": "number" } },
905
- { "name": "min-length", "value": { "type": "number" } },
906
- { "name": "max-length", "value": { "type": "number" } },
907
- { "name": "pattern", "value": { "type": "string" } },
908
- { "name": "placeholder", "value": { "type": "string" } },
909
- { "name": "read-only", "value": { "type": "boolean" } },
910
- { "name": "required", "value": { "type": "boolean" } },
701
+ { "name": "name", "value": { "type": "string" } },
702
+ { "name": "value", "value": { "type": "string" } },
703
+ { "name": "disabled", "value": { "type": "boolean" } }
704
+ ],
705
+ "events": [{ "name": "slidervalidity", "type": "CustomEvent" }],
706
+ "js": {
707
+ "properties": [
708
+ { "name": "ariaLabel", "type": "string" },
709
+ { "name": "ariaDescription", "type": "string" },
710
+ { "name": "label", "type": "string" },
711
+ { "name": "name", "type": "string" },
712
+ { "name": "value", "type": "string" },
713
+ { "name": "disabled", "type": "boolean" },
714
+ {
715
+ "name": "markers",
716
+ "description": "Set by `<w-slider>`",
717
+ "type": "string"
718
+ },
719
+ {
720
+ "name": "required",
721
+ "description": "Set by `<w-slider>`",
722
+ "type": "boolean"
723
+ },
724
+ {
725
+ "name": "step",
726
+ "description": "Set by `<w-slider>`",
727
+ "type": "number"
728
+ },
729
+ {
730
+ "name": "min",
731
+ "description": "Set by `<w-slider>`",
732
+ "type": "string"
733
+ },
734
+ {
735
+ "name": "max",
736
+ "description": "Set by `<w-slider>`",
737
+ "type": "string"
738
+ },
739
+ {
740
+ "name": "suffix",
741
+ "description": "Set by `<w-slider>`",
742
+ "type": "string"
743
+ },
744
+ {
745
+ "name": "formatter",
746
+ "description": "JS hook to help you format the numeric value how you want.",
747
+ "type": "(value: string) => string"
748
+ },
749
+ { "name": "range", "type": "HTMLInputElement" },
750
+ { "name": "textfield", "type": "WarpTextField" }
751
+ ],
752
+ "events": [{ "name": "slidervalidity", "type": "CustomEvent" }]
753
+ }
754
+ },
755
+ {
756
+ "name": "w-slider",
757
+ "description": "Parent component for sliders (both single and range sliders). Used in combination with a `<w-slider-thumb>`.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)\n---\n\n\n### **Slots:**\n - _default_ - For single sliders place a `<w-slider-thumb>` in the default slot.\n- **label** - Label for the slider or range slider as a whole.\n- **description** - Optional description between the label and slider.\n- **from** - Range sliders need to place a `<w-slider-thumb>` in the from and to slots.\n- **to** - Range sliders need to place a `<w-slider-thumb>` in the from and to slots.",
758
+ "doc-url": "",
759
+ "attributes": [
911
760
  {
912
- "name": "type",
913
- "value": { "type": "string", "default": "'text'" }
761
+ "name": "label",
762
+ "description": "The slider fieldset label. Required for proper accessibility.\n\nIf you need to display HTML, use the `label` slot instead.",
763
+ "value": { "type": "string" }
914
764
  },
915
- { "name": "value", "value": { "type": "string" } },
916
- { "name": "name", "value": { "type": "string" } }
765
+ {
766
+ "name": "disabled",
767
+ "value": { "type": "boolean", "default": "false" }
768
+ },
769
+ {
770
+ "name": "invalid",
771
+ "value": { "type": "boolean", "default": "false" }
772
+ },
773
+ {
774
+ "name": "required",
775
+ "description": "Ensures a child slider thumb has a value before allowing the containing form to submit.",
776
+ "value": { "type": "boolean", "default": "false" }
777
+ },
778
+ { "name": "min", "value": { "type": "string" } },
779
+ { "name": "max", "value": { "type": "string" } },
780
+ {
781
+ "name": "markers",
782
+ "description": "Pass a value similar to step to create visual markers at that interval",
783
+ "value": { "type": "number" }
784
+ },
785
+ { "name": "step", "value": { "type": "number" } },
786
+ {
787
+ "name": "suffix",
788
+ "description": "Suffix used in text input fields and for the min and max values of the slider.",
789
+ "value": { "type": "string" }
790
+ }
791
+ ],
792
+ "slots": [
793
+ {
794
+ "name": "",
795
+ "description": "For single sliders place a `<w-slider-thumb>` in the default slot."
796
+ },
797
+ {
798
+ "name": "label",
799
+ "description": "Label for the slider or range slider as a whole."
800
+ },
801
+ {
802
+ "name": "description",
803
+ "description": "Optional description between the label and slider."
804
+ },
805
+ {
806
+ "name": "from",
807
+ "description": "Range sliders need to place a `<w-slider-thumb>` in the from and to slots."
808
+ },
809
+ {
810
+ "name": "to",
811
+ "description": "Range sliders need to place a `<w-slider-thumb>` in the from and to slots."
812
+ }
917
813
  ],
918
814
  "events": [],
919
815
  "js": {
920
816
  "properties": [
817
+ {
818
+ "name": "label",
819
+ "description": "The slider fieldset label. Required for proper accessibility.\n\nIf you need to display HTML, use the `label` slot instead.",
820
+ "type": "string"
821
+ },
921
822
  { "name": "disabled", "type": "boolean" },
922
823
  { "name": "invalid", "type": "boolean" },
923
- { "name": "id", "type": "string" },
924
- { "name": "label", "type": "string" },
925
- { "name": "helpText", "type": "string" },
926
- { "name": "size", "type": "string" },
927
- { "name": "max", "type": "number" },
928
- { "name": "min", "type": "number" },
929
- { "name": "minLength", "type": "number" },
930
- { "name": "maxLength", "type": "number" },
931
- { "name": "pattern", "type": "string" },
932
- { "name": "placeholder", "type": "string" },
933
- { "name": "readOnly", "type": "boolean" },
934
- { "name": "required", "type": "boolean" },
935
- { "name": "type", "type": "string" },
936
- { "name": "value", "type": "string" },
937
- { "name": "name", "type": "string" }
824
+ {
825
+ "name": "required",
826
+ "description": "Ensures a child slider thumb has a value before allowing the containing form to submit.",
827
+ "type": "boolean"
828
+ },
829
+ { "name": "min", "type": "string" },
830
+ { "name": "max", "type": "string" },
831
+ {
832
+ "name": "markers",
833
+ "description": "Pass a value similar to step to create visual markers at that interval",
834
+ "type": "number"
835
+ },
836
+ { "name": "step", "type": "number" },
837
+ {
838
+ "name": "suffix",
839
+ "description": "Suffix used in text input fields and for the min and max values of the slider.",
840
+ "type": "string"
841
+ },
842
+ {
843
+ "name": "formatter",
844
+ "description": "Function to format the to- and from labels and value in the slider thumb tooltip.",
845
+ "type": "(value: string) => string"
846
+ }
938
847
  ],
939
848
  "events": []
940
849
  }