@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
package/dist/index.d.ts CHANGED
@@ -1,25 +1,1127 @@
1
- export * from "./packages/affix";
2
- export * from "./packages/alert";
3
- export * from "./packages/attention";
4
- export * from "./packages/badge";
5
- export * from "./packages/box";
6
- export * from "./packages/breadcrumbs";
7
- export * from "./packages/button";
8
- export * from "./packages/card";
9
- export * from "./packages/dead-toggle/";
10
- export * from "./packages/expandable";
11
- export * from "./packages/modal";
12
- export * from "./packages/pageindicator";
13
- export * from "./packages/pagination";
14
- export * from "./packages/pill";
15
- export * from "./packages/rip-and-tear-radio/";
16
- export * from "./packages/rip-and-tear-checkbox/";
17
- export * from "./packages/select";
18
- export * from "./packages/steps";
19
- export * from "./packages/switch";
20
- export * from "./packages/textfield";
21
- export * from "./packages/toast/api";
22
- export * from "./packages/toast/toast-container";
23
- export * from "./packages/toast/toast";
24
- export * from "./packages/utils/expand-transition";
25
- export * from "./packages/utils/unstyled-heading";
1
+
2
+ import type { WarpAffix } from "./packages/affix/index.ts";
3
+ import type { WarpAlert } from "./packages/alert/index.ts";
4
+ import type { WarpButton } from "./packages/button/index.ts";
5
+ import type { WarpAttention } from "./packages/attention/index.ts";
6
+ import type { WarpBadge } from "./packages/badge/index.ts";
7
+ import type { WarpBox } from "./packages/box/index.ts";
8
+ import type { WarpBreadcrumbs } from "./packages/breadcrumbs/index.ts";
9
+ import type { WarpCard } from "./packages/card/index.ts";
10
+ import type { WarpExpandable } from "./packages/expandable/index.ts";
11
+ import type { WarpPill } from "./packages/pill/index.ts";
12
+ import type { WarpSelect } from "./packages/select/index.ts";
13
+ import type { WarpTextField } from "./packages/textfield/index.ts";
14
+ import type { ModalFooter } from "./packages/modal/modal-footer.ts";
15
+ import type { ModalHeader } from "./packages/modal/modal-header.ts";
16
+ import type { ModalMain } from "./packages/modal/modal-main.ts";
17
+ import type { WarpToastContainer } from "./packages/toast/toast-container.ts";
18
+ import type { WarpPagination } from "./packages/pagination/index.ts";
19
+ import type { WarpSliderThumb } from "./packages/slider/slider-thumb.ts";
20
+ import type { WarpSlider } from "./packages/slider/slider.ts";
21
+
22
+ /**
23
+ * This type can be used to create scoped tags for your components.
24
+ *
25
+ * Usage:
26
+ *
27
+ * ```ts
28
+ * import type { ScopedElements } from "path/to/library/jsx-integration";
29
+ *
30
+ * declare module "my-library" {
31
+ * namespace JSX {
32
+ * interface IntrinsicElements
33
+ * extends ScopedElements<'test-', ''> {}
34
+ * }
35
+ * }
36
+ * ```
37
+ *
38
+ * @deprecated Runtime scoped elements result in duplicate types and can confusing for developers. It is recommended to use the `prefix` and `suffix` options to generate new types instead.
39
+ */
40
+ export type ScopedElements<
41
+ Prefix extends string = "",
42
+ Suffix extends string = ""
43
+ > = {
44
+ [Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
45
+ };
46
+
47
+ type BaseProps<T extends HTMLElement> = {
48
+
49
+ /** Content added between the opening and closing tags of the element */
50
+ children?: any;
51
+ /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
52
+ class?: string;
53
+ /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
54
+ className?: string;
55
+ /** Takes an object where the key is the class name(s) and the value is a boolean expression. When true, the class is applied, and when false, it is removed. */
56
+ classList?: Record<string, boolean | undefined>;
57
+ /** Specifies the text direction of the element. */
58
+ dir?: "ltr" | "rtl";
59
+ /** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
60
+ exportparts?: string;
61
+ /** For <label> and <output>, lets you associate the label with some control. */
62
+ htmlFor?: string;
63
+ /** Specifies whether the element should be hidden. */
64
+ hidden?: boolean | string;
65
+ /** A unique identifier for the element. */
66
+ id?: string;
67
+ /** Keys tell React which array item each component corresponds to */
68
+ key?: string | number;
69
+ /** Specifies the language of the element. */
70
+ lang?: string;
71
+ /** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
72
+ part?: string;
73
+ /** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
74
+ ref?: T | ((e: T) => void);
75
+ /** Adds a reference for a custom element slot */
76
+ slot?: string;
77
+ /** Prop for setting inline styles */
78
+ style?: Record<string, string | number>;
79
+ /** Overrides the default Tab button behavior. Avoid using values other than -1 and 0. */
80
+ tabIndex?: number;
81
+ /** Specifies the tooltip text for the element. */
82
+ title?: string;
83
+ /** Passing 'no' excludes the element content from being translated. */
84
+ translate?: "yes" | "no";
85
+ /** The popover global attribute is used to designate an element as a popover element. */
86
+ popover?: "auto" | "hint" | "manual";
87
+ /** Turns an element element into a popover control button; takes the ID of the popover element to control as its value. */
88
+ popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
89
+ /** Specifies the action to be performed on a popover element being controlled by a control element. */
90
+ popovertargetaction?: "show" | "hide" | "toggle";
91
+
92
+ } ;
93
+
94
+ type BaseEvents = {
95
+
96
+
97
+ };
98
+
99
+
100
+
101
+ export type WarpAffixProps = {
102
+ /** */
103
+ "aria-label"?: WarpAffix['ariaLabel'];
104
+ /** */
105
+ "ariaLabel"?: WarpAffix['ariaLabel'];
106
+ /** Add this property to render a clickable Warp close icon.
107
+
108
+ Set an `aria-label` that explains the action when using this. */
109
+ "clear"?: WarpAffix['clear'];
110
+ /** Add this property to render a clickable Warp search icon.
111
+
112
+ Set an `aria-label` that explains the action when using this. */
113
+ "search"?: WarpAffix['search'];
114
+ /** */
115
+ "label"?: WarpAffix['label'];
116
+
117
+
118
+ }
119
+
120
+
121
+ export type WarpAlertProps = {
122
+ /** */
123
+ "variant"?: WarpAlert['variant'];
124
+ /** */
125
+ "show"?: WarpAlert['show'];
126
+ /** */
127
+ "role"?: WarpAlert['role'];
128
+
129
+
130
+ }
131
+
132
+
133
+ export type WarpButtonProps = {
134
+ /** */
135
+ "type"?: WarpButton['type'];
136
+ /** */
137
+ "autofocus"?: WarpButton['autofocus'];
138
+ /** */
139
+ "variant"?: WarpButton['variant'];
140
+ /** */
141
+ "quiet"?: WarpButton['quiet'];
142
+ /** */
143
+ "small"?: WarpButton['small'];
144
+ /** */
145
+ "loading"?: WarpButton['loading'];
146
+ /** */
147
+ "href"?: WarpButton['href'];
148
+ /** */
149
+ "target"?: WarpButton['target'];
150
+ /** */
151
+ "rel"?: WarpButton['rel'];
152
+ /** */
153
+ "full-width"?: WarpButton['fullWidth'];
154
+ /** */
155
+ "fullWidth"?: WarpButton['fullWidth'];
156
+ /** */
157
+ "button-class"?: WarpButton['buttonClass'];
158
+ /** */
159
+ "buttonClass"?: WarpButton['buttonClass'];
160
+ /** */
161
+ "name"?: WarpButton['name'];
162
+ /** */
163
+ "value"?: WarpButton['value'];
164
+ /** */
165
+ "ariaValueTextLoading"?: WarpButton['ariaValueTextLoading'];
166
+
167
+
168
+ }
169
+
170
+
171
+ export type WarpAttentionProps = {
172
+ /** */
173
+ "show"?: WarpAttention['show'];
174
+ /** */
175
+ "placement"?: WarpAttention['placement'];
176
+ /** */
177
+ "tooltip"?: WarpAttention['tooltip'];
178
+ /** */
179
+ "callout"?: WarpAttention['callout'];
180
+ /** */
181
+ "popover"?: WarpAttention['popover'];
182
+ /** */
183
+ "highlight"?: WarpAttention['highlight'];
184
+ /** */
185
+ "can-close"?: WarpAttention['canClose'];
186
+ /** */
187
+ "canClose"?: WarpAttention['canClose'];
188
+ /** */
189
+ "no-arrow"?: WarpAttention['noArrow'];
190
+ /** */
191
+ "noArrow"?: WarpAttention['noArrow'];
192
+ /** */
193
+ "distance"?: WarpAttention['distance'];
194
+ /** */
195
+ "skidding"?: WarpAttention['skidding'];
196
+ /** */
197
+ "flip"?: WarpAttention['flip'];
198
+ /** */
199
+ "cross-axis"?: WarpAttention['crossAxis'];
200
+ /** */
201
+ "crossAxis"?: WarpAttention['crossAxis'];
202
+ /** */
203
+ "fallback-placements"?: WarpAttention['fallbackPlacements'];
204
+ /** */
205
+ "fallbackPlacements"?: WarpAttention['fallbackPlacements'];
206
+ /** */
207
+ "_initialPlacement"?: WarpAttention['_initialPlacement'];
208
+ /** */
209
+ "_actualDirection"?: WarpAttention['_actualDirection'];
210
+
211
+
212
+ }
213
+
214
+
215
+ export type WarpBadgeProps = {
216
+ /** */
217
+ "variant"?: WarpBadge['variant'];
218
+ /** */
219
+ "position"?: WarpBadge['position'];
220
+
221
+
222
+ }
223
+
224
+
225
+ export type WarpBoxProps = {
226
+ /** */
227
+ "bleed"?: WarpBox['bleed'];
228
+ /** */
229
+ "bordered"?: WarpBox['bordered'];
230
+ /** */
231
+ "info"?: WarpBox['info'];
232
+ /** */
233
+ "neutral"?: WarpBox['neutral'];
234
+ /** */
235
+ "role"?: WarpBox['role'];
236
+
237
+
238
+ }
239
+
240
+
241
+ export type WarpBreadcrumbsProps = {
242
+ /** */
243
+ "aria-label"?: WarpBreadcrumbs['ariaLabel'];
244
+ /** */
245
+ "ariaLabel"?: WarpBreadcrumbs['ariaLabel'];
246
+
247
+
248
+ }
249
+
250
+
251
+ export type WarpCardProps = {
252
+ /** */
253
+ "selected"?: WarpCard['selected'];
254
+ /** */
255
+ "flat"?: WarpCard['flat'];
256
+ /** */
257
+ "clickable"?: WarpCard['clickable'];
258
+ /** */
259
+ "buttonText"?: WarpCard['buttonText'];
260
+
261
+
262
+ }
263
+
264
+
265
+ export type WarpExpandableProps = {
266
+ /** */
267
+ "expanded"?: WarpExpandable['expanded'];
268
+ /** */
269
+ "title"?: WarpExpandable['title'];
270
+ /** */
271
+ "box"?: WarpExpandable['box'];
272
+ /** */
273
+ "bleed"?: WarpExpandable['bleed'];
274
+ /** */
275
+ "button-class"?: WarpExpandable['buttonClass'];
276
+ /** */
277
+ "buttonClass"?: WarpExpandable['buttonClass'];
278
+ /** */
279
+ "content-class"?: WarpExpandable['contentClass'];
280
+ /** */
281
+ "contentClass"?: WarpExpandable['contentClass'];
282
+ /** */
283
+ "no-chevron"?: WarpExpandable['noChevron'];
284
+ /** */
285
+ "noChevron"?: WarpExpandable['noChevron'];
286
+ /** */
287
+ "animated"?: WarpExpandable['animated'];
288
+ /** */
289
+ "heading-level"?: WarpExpandable['headingLevel'];
290
+ /** */
291
+ "headingLevel"?: WarpExpandable['headingLevel'];
292
+ /** */
293
+ "_hasTitle"?: WarpExpandable['_hasTitle'];
294
+ /** */
295
+ "_showChevronUp"?: WarpExpandable['_showChevronUp'];
296
+
297
+
298
+ }
299
+
300
+
301
+ export type WarpPillProps = {
302
+ /** */
303
+ "can-close"?: WarpPill['canClose'];
304
+ /** */
305
+ "canClose"?: WarpPill['canClose'];
306
+ /** */
307
+ "suggestion"?: WarpPill['suggestion'];
308
+ /** @deprecated Used "open-arial-label" instead. */
309
+ "open-sr-label"?: WarpPill['openSrLabel'];
310
+ /** @deprecated Used "open-arial-label" instead. */
311
+ "openSrLabel"?: WarpPill['openSrLabel'];
312
+ /** */
313
+ "open-aria-label"?: WarpPill['openAriaLabel'];
314
+ /** */
315
+ "openAriaLabel"?: WarpPill['openAriaLabel'];
316
+ /** @deprecated Used "close-arial-label" instead. */
317
+ "close-sr-label"?: WarpPill['closeSrLabel'];
318
+ /** @deprecated Used "close-arial-label" instead. */
319
+ "closeSrLabel"?: WarpPill['closeSrLabel'];
320
+ /** */
321
+ "close-aria-label"?: WarpPill['closeAriaLabel'];
322
+ /** */
323
+ "closeAriaLabel"?: WarpPill['closeAriaLabel'];
324
+ /** */
325
+ "openFilterSrText"?: WarpPill['openFilterSrText'];
326
+ /** */
327
+ "removeFilterSrText"?: WarpPill['removeFilterSrText'];
328
+
329
+ /** */
330
+ "onw-pill-click"?: (e: CustomEvent<CustomEvent>) => void;
331
+ /** */
332
+ "onw-pill-close"?: (e: CustomEvent<CustomEvent>) => void;
333
+ }
334
+
335
+
336
+ export type WarpSelectProps = {
337
+ /** Whether the element should receive focus on render */
338
+ "auto-focus"?: WarpSelect['autoFocus'];
339
+ /** Whether the element should receive focus on render */
340
+ "autoFocus"?: WarpSelect['autoFocus'];
341
+ /** Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error */
342
+ "invalid"?: WarpSelect['invalid'];
343
+ /** Whether to always show a hint */
344
+ "always"?: WarpSelect['always'];
345
+ /** The content displayed as the help text */
346
+ "hint"?: WarpSelect['hint'];
347
+ /** The content to disply as the label */
348
+ "label"?: WarpSelect['label'];
349
+ /** Whether to show optional text */
350
+ "optional"?: WarpSelect['optional'];
351
+ /** Renders the field in a disabled state. */
352
+ "disabled"?: WarpSelect['disabled'];
353
+ /** Renders the field in a readonly state. */
354
+ "read-only"?: WarpSelect['readOnly'];
355
+ /** Renders the field in a readonly state. */
356
+ "readOnly"?: WarpSelect['readOnly'];
357
+ /** */
358
+ "name"?: WarpSelect['name'];
359
+ /** */
360
+ "value"?: WarpSelect['value'];
361
+
362
+
363
+ }
364
+
365
+
366
+ export type WarpTextFieldProps = {
367
+ /** */
368
+ "disabled"?: WarpTextField['disabled'];
369
+ /** */
370
+ "invalid"?: WarpTextField['invalid'];
371
+ /** */
372
+ "id"?: WarpTextField['id'];
373
+ /** */
374
+ "label"?: WarpTextField['label'];
375
+ /** */
376
+ "help-text"?: WarpTextField['helpText'];
377
+ /** */
378
+ "helpText"?: WarpTextField['helpText'];
379
+ /** */
380
+ "size"?: WarpTextField['size'];
381
+ /** */
382
+ "max"?: WarpTextField['max'];
383
+ /** */
384
+ "min"?: WarpTextField['min'];
385
+ /** */
386
+ "min-length"?: WarpTextField['minLength'];
387
+ /** */
388
+ "minLength"?: WarpTextField['minLength'];
389
+ /** */
390
+ "max-length"?: WarpTextField['maxLength'];
391
+ /** */
392
+ "maxLength"?: WarpTextField['maxLength'];
393
+ /** */
394
+ "pattern"?: WarpTextField['pattern'];
395
+ /** */
396
+ "placeholder"?: WarpTextField['placeholder'];
397
+ /** */
398
+ "read-only"?: WarpTextField['readOnly'];
399
+ /** */
400
+ "readOnly"?: WarpTextField['readOnly'];
401
+ /** */
402
+ "required"?: WarpTextField['required'];
403
+ /** */
404
+ "type"?: WarpTextField['type'];
405
+ /** */
406
+ "value"?: WarpTextField['value'];
407
+ /** */
408
+ "name"?: WarpTextField['name'];
409
+ /** Function to format value when the input field.
410
+
411
+ Only active when the input field does not have focus,
412
+ similar to the accessible input masking example from Filament Group
413
+
414
+ https://css-tricks.com/input-masking/
415
+ https://filamentgroup.github.io/politespace/demo/demo.html */
416
+ "formatter"?: WarpTextField['formatter'];
417
+
418
+
419
+ }
420
+
421
+
422
+ export type ModalFooterProps = {
423
+
424
+
425
+ }
426
+
427
+
428
+ export type ModalHeaderProps = {
429
+ /** */
430
+ "title"?: ModalHeader['title'];
431
+ /** */
432
+ "back"?: ModalHeader['back'];
433
+ /** */
434
+ "no-close"?: ModalHeader['noClose'];
435
+ /** */
436
+ "noClose"?: ModalHeader['noClose'];
437
+ /** */
438
+ "titleEl"?: ModalHeader['titleEl'];
439
+
440
+ /** */
441
+ "onbackClicked"?: (e: CustomEvent<CustomEvent>) => void;
442
+ }
443
+
444
+
445
+ export type ModalMainProps = {
446
+ /** */
447
+ "show"?: ModalMain['show'];
448
+ /** */
449
+ "content-id"?: ModalMain['contentId'];
450
+ /** */
451
+ "contentId"?: ModalMain['contentId'];
452
+ /** */
453
+ "ignore-backdrop-clicks"?: ModalMain['ignoreBackdropClicks'];
454
+ /** */
455
+ "ignoreBackdropClicks"?: ModalMain['ignoreBackdropClicks'];
456
+ /** */
457
+ "dialogEl"?: ModalMain['dialogEl'];
458
+ /** */
459
+ "dialogInnerEl"?: ModalMain['dialogInnerEl'];
460
+ /** */
461
+ "contentEl"?: ModalMain['contentEl'];
462
+
463
+ /** */
464
+ "onshown"?: (e: CustomEvent<CustomEvent>) => void;
465
+ /** */
466
+ "onhidden"?: (e: CustomEvent<CustomEvent>) => void;
467
+ }
468
+
469
+
470
+ export type WarpToastContainerProps = {
471
+
472
+
473
+ }
474
+
475
+
476
+ export type WarpPaginationProps = {
477
+ /** */
478
+ "base-url"?: WarpPagination['baseUrl'];
479
+ /** */
480
+ "baseUrl"?: WarpPagination['baseUrl'];
481
+ /** */
482
+ "pages"?: WarpPagination['pages'];
483
+ /** */
484
+ "current-page"?: WarpPagination['currentPageNumber'];
485
+ /** */
486
+ "currentPageNumber"?: WarpPagination['currentPageNumber'];
487
+ /** */
488
+ "visible-pages"?: WarpPagination['visiblePages'];
489
+ /** */
490
+ "visiblePages"?: WarpPagination['visiblePages'];
491
+
492
+ /** Triggered when a link button in the pagination is clicked. Contains the page number in `string` form. */
493
+ "onpage-click"?: (e: CustomEvent<CustomEvent>) => void;
494
+ }
495
+
496
+
497
+ export type WarpSliderThumbProps = {
498
+ /** */
499
+ "aria-label"?: WarpSliderThumb['ariaLabel'];
500
+ /** */
501
+ "ariaLabel"?: WarpSliderThumb['ariaLabel'];
502
+ /** */
503
+ "aria-description"?: WarpSliderThumb['ariaDescription'];
504
+ /** */
505
+ "ariaDescription"?: WarpSliderThumb['ariaDescription'];
506
+ /** */
507
+ "label"?: WarpSliderThumb['label'];
508
+ /** */
509
+ "name"?: WarpSliderThumb['name'];
510
+ /** */
511
+ "value"?: WarpSliderThumb['value'];
512
+ /** */
513
+ "disabled"?: WarpSliderThumb['disabled'];
514
+ /** Set by `<w-slider>` */
515
+ "markers"?: WarpSliderThumb['markers'];
516
+ /** Set by `<w-slider>` */
517
+ "required"?: WarpSliderThumb['required'];
518
+ /** Set by `<w-slider>` */
519
+ "step"?: WarpSliderThumb['step'];
520
+ /** Set by `<w-slider>` */
521
+ "min"?: WarpSliderThumb['min'];
522
+ /** Set by `<w-slider>` */
523
+ "max"?: WarpSliderThumb['max'];
524
+ /** Set by `<w-slider>` */
525
+ "suffix"?: WarpSliderThumb['suffix'];
526
+ /** JS hook to help you format the numeric value how you want. */
527
+ "formatter"?: WarpSliderThumb['formatter'];
528
+ /** */
529
+ "range"?: WarpSliderThumb['range'];
530
+ /** */
531
+ "textfield"?: WarpSliderThumb['textfield'];
532
+
533
+ /** */
534
+ "onslidervalidity"?: (e: CustomEvent<CustomEvent>) => void;
535
+ }
536
+
537
+
538
+ export type WarpSliderProps = {
539
+ /** The slider fieldset label. Required for proper accessibility.
540
+
541
+ If you need to display HTML, use the `label` slot instead. */
542
+ "label"?: WarpSlider['label'];
543
+ /** */
544
+ "disabled"?: WarpSlider['disabled'];
545
+ /** */
546
+ "invalid"?: WarpSlider['invalid'];
547
+ /** Ensures a child slider thumb has a value before allowing the containing form to submit. */
548
+ "required"?: WarpSlider['required'];
549
+ /** */
550
+ "min"?: WarpSlider['min'];
551
+ /** */
552
+ "max"?: WarpSlider['max'];
553
+ /** Pass a value similar to step to create visual markers at that interval */
554
+ "markers"?: WarpSlider['markers'];
555
+ /** */
556
+ "step"?: WarpSlider['step'];
557
+ /** Suffix used in text input fields and for the min and max values of the slider. */
558
+ "suffix"?: WarpSlider['suffix'];
559
+ /** Function to format the to- and from labels and value in the slider thumb tooltip. */
560
+ "formatter"?: WarpSlider['formatter'];
561
+
562
+
563
+ }
564
+
565
+ export type CustomElements = {
566
+
567
+
568
+ /**
569
+ * This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.
570
+ *
571
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-affix--docs)
572
+ *
573
+ * ## Attributes & Properties
574
+ *
575
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
576
+ *
577
+ * - `aria-label`/`ariaLabel`: undefined
578
+ * - `clear`: Add this property to render a clickable Warp close icon.
579
+ *
580
+ * Set an `aria-label` that explains the action when using this.
581
+ * - `search`: Add this property to render a clickable Warp search icon.
582
+ *
583
+ * Set an `aria-label` that explains the action when using this.
584
+ * - `label`: undefined
585
+ */
586
+ "w-affix": Partial<WarpAffixProps & BaseProps<WarpAffix> & BaseEvents>;
587
+
588
+
589
+ /**
590
+ * Alert is an inline component used for displaying different types of messages.
591
+ *
592
+ * For accessibility reasons, alert should appear close to the element that triggered it.
593
+ *
594
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)
595
+ *
596
+ * ## Attributes & Properties
597
+ *
598
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
599
+ *
600
+ * - `variant`: undefined
601
+ * - `show`: undefined
602
+ * - `role`: undefined
603
+ */
604
+ "w-alert": Partial<WarpAlertProps & BaseProps<WarpAlert> & BaseEvents>;
605
+
606
+
607
+ /**
608
+ * Buttons are used to perform actions, widh different visuals for different needs.
609
+ *
610
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)
611
+ *
612
+ * ## Attributes & Properties
613
+ *
614
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
615
+ *
616
+ * - `type`: undefined
617
+ * - `autofocus`: undefined
618
+ * - `variant`: undefined
619
+ * - `quiet`: undefined
620
+ * - `small`: undefined
621
+ * - `loading`: undefined
622
+ * - `href`: undefined
623
+ * - `target`: undefined
624
+ * - `rel`: undefined
625
+ * - `full-width`/`fullWidth`: undefined
626
+ * - `button-class`/`buttonClass`: undefined
627
+ * - `name`: undefined
628
+ * - `value`: undefined
629
+ * - `ariaValueTextLoading`: undefined (property only)
630
+ */
631
+ "w-button": Partial<WarpButtonProps & BaseProps<WarpButton> & BaseEvents>;
632
+
633
+
634
+ /**
635
+ *
636
+ *
637
+ * ## Attributes & Properties
638
+ *
639
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
640
+ *
641
+ * - `show`: undefined
642
+ * - `placement`: undefined
643
+ * - `tooltip`: undefined
644
+ * - `callout`: undefined
645
+ * - `popover`: undefined
646
+ * - `highlight`: undefined
647
+ * - `can-close`/`canClose`: undefined
648
+ * - `no-arrow`/`noArrow`: undefined
649
+ * - `distance`: undefined
650
+ * - `skidding`: undefined
651
+ * - `flip`: undefined
652
+ * - `cross-axis`/`crossAxis`: undefined
653
+ * - `fallback-placements`/`fallbackPlacements`: undefined
654
+ * - `_initialPlacement`: undefined (property only)
655
+ * - `_actualDirection`: undefined (property only)
656
+ *
657
+ * ## Methods
658
+ *
659
+ * Methods that can be called to access component functionality.
660
+ *
661
+ * - `handleDone() => void`: undefined
662
+ * - `pointingAtDirection() => void`: undefined
663
+ * - `activeAttentionType() => void`: undefined
664
+ * - `defaultAriaLabel() => void`: undefined
665
+ * - `setAriaLabels() => void`: undefined
666
+ * - `close() => void`: undefined
667
+ * - `keypressed(e: KeyboardEvent) => void`: undefined
668
+ */
669
+ "w-attention": Partial<WarpAttentionProps & BaseProps<WarpAttention> & BaseEvents>;
670
+
671
+
672
+ /**
673
+ * `w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.
674
+ *
675
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-badge--docs)
676
+ *
677
+ * ## Attributes & Properties
678
+ *
679
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
680
+ *
681
+ * - `variant`: undefined
682
+ * - `position`: undefined
683
+ */
684
+ "w-badge": Partial<WarpBadgeProps & BaseProps<WarpBadge> & BaseEvents>;
685
+
686
+
687
+ /**
688
+ * Box is a layout component used for separating content areas on a page.
689
+ *
690
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-box--docs)
691
+ *
692
+ * ## Attributes & Properties
693
+ *
694
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
695
+ *
696
+ * - `bleed`: undefined
697
+ * - `bordered`: undefined
698
+ * - `info`: undefined
699
+ * - `neutral`: undefined
700
+ * - `role`: undefined
701
+ */
702
+ "w-box": Partial<WarpBoxProps & BaseProps<WarpBox> & BaseEvents>;
703
+
704
+
705
+ /**
706
+ * Breadcrumbs show the navigation structure for the current location.
707
+ *
708
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-breadcrumbs--docs)
709
+ *
710
+ * ## Attributes & Properties
711
+ *
712
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
713
+ *
714
+ * - `aria-label`/`ariaLabel`: undefined
715
+ */
716
+ "w-breadcrumbs": Partial<WarpBreadcrumbsProps & BaseProps<WarpBreadcrumbs> & BaseEvents>;
717
+
718
+
719
+ /**
720
+ * Card is a layout component used for separating content areas on a page.
721
+ *
722
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-card--docs)
723
+ *
724
+ * ## Attributes & Properties
725
+ *
726
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
727
+ *
728
+ * - `selected`: undefined
729
+ * - `flat`: undefined
730
+ * - `clickable`: undefined
731
+ * - `buttonText`: undefined (property only)
732
+ *
733
+ * ## Methods
734
+ *
735
+ * Methods that can be called to access component functionality.
736
+ *
737
+ * - `keypressed(e: KeyboardEvent) => void`: undefined
738
+ */
739
+ "w-card": Partial<WarpCardProps & BaseProps<WarpCard> & BaseEvents>;
740
+
741
+
742
+ /**
743
+ * Expandable is a layout component used for creating expandable content areas on a page.
744
+ *
745
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-expandable--docs)
746
+ *
747
+ * ## Attributes & Properties
748
+ *
749
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
750
+ *
751
+ * - `expanded`: undefined
752
+ * - `title`: undefined
753
+ * - `box`: undefined
754
+ * - `bleed`: undefined
755
+ * - `button-class`/`buttonClass`: undefined
756
+ * - `content-class`/`contentClass`: undefined
757
+ * - `no-chevron`/`noChevron`: undefined
758
+ * - `animated`: undefined
759
+ * - `heading-level`/`headingLevel`: undefined
760
+ * - `_hasTitle`: undefined
761
+ * - `_showChevronUp`: undefined
762
+ *
763
+ * ## Slots
764
+ *
765
+ * Areas where markup can be added to the component.
766
+ *
767
+ * - `title`: Alternative to the `title` attribute should you need to provide some additional markup.
768
+ */
769
+ "w-expandable": Partial<WarpExpandableProps & BaseProps<WarpExpandable> & BaseEvents>;
770
+
771
+
772
+ /**
773
+ * 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.
774
+ *
775
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-pill--docs)
776
+ *
777
+ * ## Attributes & Properties
778
+ *
779
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
780
+ *
781
+ * - `can-close`/`canClose`: undefined
782
+ * - `suggestion`: undefined
783
+ * - `open-sr-label`/`openSrLabel`: undefined
784
+ * - `open-aria-label`/`openAriaLabel`: undefined
785
+ * - `close-sr-label`/`closeSrLabel`: undefined
786
+ * - `close-aria-label`/`closeAriaLabel`: undefined
787
+ * - `openFilterSrText`: undefined (property only)
788
+ * - `removeFilterSrText`: undefined (property only)
789
+ *
790
+ * ## Events
791
+ *
792
+ * Events that will be emitted by the component.
793
+ *
794
+ * - `w-pill-click`: undefined
795
+ * - `w-pill-close`: undefined
796
+ */
797
+ "w-pill": Partial<WarpPillProps & BaseProps<WarpPill> & BaseEvents>;
798
+
799
+
800
+ /**
801
+ * A dropdown component for selecting a single value.
802
+ *
803
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-select--docs)
804
+ *
805
+ * ## Attributes & Properties
806
+ *
807
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
808
+ *
809
+ * - `auto-focus`/`autoFocus`: Whether the element should receive focus on render
810
+ * - `invalid`: Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error
811
+ * - `always`: Whether to always show a hint
812
+ * - `hint`: The content displayed as the help text
813
+ * - `label`: The content to disply as the label
814
+ * - `optional`: Whether to show optional text
815
+ * - `disabled`: Renders the field in a disabled state.
816
+ * - `read-only`/`readOnly`: Renders the field in a readonly state.
817
+ * - `name`: undefined
818
+ * - `value`: undefined
819
+ *
820
+ * ## Methods
821
+ *
822
+ * Methods that can be called to access component functionality.
823
+ *
824
+ * - `handleKeyDown(event: KeyboardEvent) => void`: undefined
825
+ * - `onChange({ target }) => void`: undefined
826
+ */
827
+ "w-select": Partial<WarpSelectProps & BaseProps<WarpSelect> & BaseEvents>;
828
+
829
+
830
+ /**
831
+ * A single line text input element.
832
+ *
833
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
834
+ *
835
+ * ## Attributes & Properties
836
+ *
837
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
838
+ *
839
+ * - `disabled`: undefined
840
+ * - `invalid`: undefined
841
+ * - `id`: undefined
842
+ * - `label`: undefined
843
+ * - `help-text`/`helpText`: undefined
844
+ * - `size`: undefined
845
+ * - `max`: undefined
846
+ * - `min`: undefined
847
+ * - `min-length`/`minLength`: undefined
848
+ * - `max-length`/`maxLength`: undefined
849
+ * - `pattern`: undefined
850
+ * - `placeholder`: undefined
851
+ * - `read-only`/`readOnly`: undefined
852
+ * - `required`: undefined
853
+ * - `type`: undefined
854
+ * - `value`: undefined
855
+ * - `name`: undefined
856
+ * - `formatter`: Function to format value when the input field.
857
+ *
858
+ * Only active when the input field does not have focus,
859
+ * similar to the accessible input masking example from Filament Group
860
+ *
861
+ * https://css-tricks.com/input-masking/
862
+ * https://filamentgroup.github.io/politespace/demo/demo.html (property only)
863
+ *
864
+ * ## Methods
865
+ *
866
+ * Methods that can be called to access component functionality.
867
+ *
868
+ * - `handler(e: Event) => void`: undefined
869
+ * - `prefixSlotChange() => void`: undefined
870
+ * - `suffixSlotChange() => void`: undefined
871
+ */
872
+ "w-textfield": Partial<WarpTextFieldProps & BaseProps<WarpTextField> & BaseEvents>;
873
+
874
+
875
+ /**
876
+ * The footer section of a modal, typically where you place actions.
877
+ *
878
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
879
+ */
880
+ "w-modal-footer": Partial<ModalFooterProps & BaseProps<ModalFooter> & BaseEvents>;
881
+
882
+
883
+ /**
884
+ * The header section of a modal, typically where you place the title and a close button.
885
+ *
886
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
887
+ *
888
+ * ## Attributes & Properties
889
+ *
890
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
891
+ *
892
+ * - `title`: undefined
893
+ * - `back`: undefined
894
+ * - `no-close`/`noClose`: undefined
895
+ * - `titleEl`: undefined (property only)
896
+ * - `titleClasses`: undefined (property only) (readonly)
897
+ * - `backButton`: undefined (property only) (readonly)
898
+ * - `closeButton`: undefined (property only) (readonly)
899
+ *
900
+ * ## Events
901
+ *
902
+ * Events that will be emitted by the component.
903
+ *
904
+ * - `backClicked`: undefined
905
+ *
906
+ * ## Slots
907
+ *
908
+ * Areas where markup can be added to the component.
909
+ *
910
+ * - `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.
911
+ *
912
+ * ## Methods
913
+ *
914
+ * Methods that can be called to access component functionality.
915
+ *
916
+ * - `emitBack() => void`: undefined
917
+ * - `handleTopSlotChange(slotEvent) => void`: undefined
918
+ */
919
+ "w-modal-header": Partial<ModalHeaderProps & BaseProps<ModalHeader> & BaseEvents>;
920
+
921
+
922
+ /**
923
+ * Modals (or dialogs) display important information that users need to acknowledge.
924
+ *
925
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
926
+ *
927
+ * ## Attributes & Properties
928
+ *
929
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
930
+ *
931
+ * - `show`: undefined
932
+ * - `content-id`/`contentId`: undefined
933
+ * - `ignore-backdrop-clicks`/`ignoreBackdropClicks`: undefined
934
+ * - `dialogEl`: undefined (property only)
935
+ * - `dialogInnerEl`: undefined (property only)
936
+ * - `contentEl`: undefined (property only)
937
+ *
938
+ * ## Events
939
+ *
940
+ * Events that will be emitted by the component.
941
+ *
942
+ * - `shown`: undefined
943
+ * - `hidden`: undefined
944
+ *
945
+ * ## Slots
946
+ *
947
+ * Areas where markup can be added to the component.
948
+ *
949
+ * - `header`: Typically where you would use the `w-modal-header` component.
950
+ * - `content`: The main content of the modal.
951
+ * - `footer`: Typically where you would use the `w-modal-footer` component, for things like actions.
952
+ *
953
+ * ## Methods
954
+ *
955
+ * Methods that can be called to access component functionality.
956
+ *
957
+ * - `open() => void`: undefined
958
+ * - `close() => void`: undefined
959
+ * - `handleListeners(verb = 'addEventListener') => void`: undefined
960
+ * - `eventPreventer(evt: Event) => void`: undefined
961
+ * - `closeOnBackdropClick(evt: MouseEvent) => void`: undefined
962
+ * - `interceptEscape(evt: KeyboardEvent) => void`: undefined
963
+ * - `modifyBorderRadius() => void`: undefined
964
+ */
965
+ "w-modal": Partial<ModalMainProps & BaseProps<ModalMain> & BaseEvents>;
966
+
967
+
968
+ /**
969
+ *
970
+ *
971
+ * ## Methods
972
+ *
973
+ * Methods that can be called to access component functionality.
974
+ *
975
+ * - `init() => void`: undefined
976
+ * - `get(id: string | number) => ToastInternal | undefined`: undefined
977
+ * - `set(toast: ToastOptions) => Map<string | number, ToastInternal>`: undefined
978
+ * - `del(id: string | number) => Promise<boolean>`: undefined
979
+ */
980
+ "w-toast-container": Partial<WarpToastContainerProps & BaseProps<WarpToastContainer> & BaseEvents>;
981
+
982
+
983
+ /**
984
+ * Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows.
985
+ *
986
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-pagination--docs)
987
+ *
988
+ * ## Attributes & Properties
989
+ *
990
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
991
+ *
992
+ * - `base-url`/`baseUrl`: undefined
993
+ * - `pages`: undefined
994
+ * - `current-page`/`currentPageNumber`: undefined
995
+ * - `visible-pages`/`visiblePages`: undefined
996
+ *
997
+ * ## Events
998
+ *
999
+ * Events that will be emitted by the component.
1000
+ *
1001
+ * - `page-click`: Triggered when a link button in the pagination is clicked. Contains the page number in `string` form.
1002
+ */
1003
+ "w-pagination": Partial<WarpPaginationProps & BaseProps<WarpPagination> & BaseEvents>;
1004
+
1005
+
1006
+ /**
1007
+ * Component to place inside a `<w-slider>`.
1008
+ *
1009
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
1010
+ *
1011
+ * ## Attributes & Properties
1012
+ *
1013
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1014
+ *
1015
+ * - `aria-label`/`ariaLabel`: undefined
1016
+ * - `aria-description`/`ariaDescription`: undefined
1017
+ * - `label`: undefined
1018
+ * - `name`: undefined
1019
+ * - `value`: undefined
1020
+ * - `disabled`: undefined
1021
+ * - `markers`: Set by `<w-slider>` (property only)
1022
+ * - `required`: Set by `<w-slider>` (property only)
1023
+ * - `step`: Set by `<w-slider>` (property only)
1024
+ * - `min`: Set by `<w-slider>` (property only)
1025
+ * - `max`: Set by `<w-slider>` (property only)
1026
+ * - `suffix`: Set by `<w-slider>` (property only)
1027
+ * - `formatter`: JS hook to help you format the numeric value how you want. (property only)
1028
+ * - `range`: undefined (property only)
1029
+ * - `textfield`: undefined (property only)
1030
+ *
1031
+ * ## Events
1032
+ *
1033
+ * Events that will be emitted by the component.
1034
+ *
1035
+ * - `slidervalidity`: undefined
1036
+ */
1037
+ "w-slider-thumb": Partial<WarpSliderThumbProps & BaseProps<WarpSliderThumb> & BaseEvents>;
1038
+
1039
+
1040
+ /**
1041
+ * Parent component for sliders (both single and range sliders). Used in combination with a `<w-slider-thumb>`.
1042
+ *
1043
+ * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
1044
+ *
1045
+ * ## Attributes & Properties
1046
+ *
1047
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1048
+ *
1049
+ * - `label`: The slider fieldset label. Required for proper accessibility.
1050
+ *
1051
+ * If you need to display HTML, use the `label` slot instead.
1052
+ * - `disabled`: undefined
1053
+ * - `invalid`: undefined
1054
+ * - `required`: Ensures a child slider thumb has a value before allowing the containing form to submit.
1055
+ * - `min`: undefined
1056
+ * - `max`: undefined
1057
+ * - `markers`: Pass a value similar to step to create visual markers at that interval
1058
+ * - `step`: undefined
1059
+ * - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
1060
+ * - `formatter`: Function to format the to- and from labels and value in the slider thumb tooltip. (property only)
1061
+ *
1062
+ * ## Slots
1063
+ *
1064
+ * Areas where markup can be added to the component.
1065
+ *
1066
+ * - `(default)`: For single sliders place a `<w-slider-thumb>` in the default slot.
1067
+ * - `label`: Label for the slider or range slider as a whole.
1068
+ * - `description`: Optional description between the label and slider.
1069
+ * - `from`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
1070
+ * - `to`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
1071
+ */
1072
+ "w-slider": Partial<WarpSliderProps & BaseProps<WarpSlider> & BaseEvents>;
1073
+ }
1074
+
1075
+ export type CustomCssProperties = {
1076
+
1077
+ }
1078
+
1079
+
1080
+ declare module 'react' {
1081
+ namespace JSX {
1082
+ interface IntrinsicElements extends CustomElements {}
1083
+ }
1084
+ export interface CSSProperties extends CustomCssProperties {}
1085
+ }
1086
+
1087
+ declare module 'preact' {
1088
+ namespace JSX {
1089
+ interface IntrinsicElements extends CustomElements {}
1090
+ }
1091
+ export interface CSSProperties extends CustomCssProperties {}
1092
+ }
1093
+
1094
+ declare module '@builder.io/qwik' {
1095
+ namespace JSX {
1096
+ interface IntrinsicElements extends CustomElements {}
1097
+ }
1098
+ export interface CSSProperties extends CustomCssProperties {}
1099
+ }
1100
+
1101
+ declare module '@stencil/core' {
1102
+ namespace JSX {
1103
+ interface IntrinsicElements extends CustomElements {}
1104
+ }
1105
+ export interface CSSProperties extends CustomCssProperties {}
1106
+ }
1107
+
1108
+ declare module 'hono' {
1109
+ namespace JSX {
1110
+ interface IntrinsicElements extends CustomElements {}
1111
+ }
1112
+ export interface CSSProperties extends CustomCssProperties {}
1113
+ }
1114
+
1115
+ declare module 'react-native' {
1116
+ namespace JSX {
1117
+ interface IntrinsicElements extends CustomElements {}
1118
+ }
1119
+ export interface CSSProperties extends CustomCssProperties {}
1120
+ }
1121
+
1122
+ declare global {
1123
+ namespace JSX {
1124
+ interface IntrinsicElements extends CustomElements {}
1125
+ }
1126
+ export interface CSSProperties extends CustomCssProperties {}
1127
+ }