@warp-ds/elements 2.4.0 → 2.5.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 (389) hide show
  1. package/dist/api.js.map +2 -2
  2. package/dist/custom-elements.json +3333 -412
  3. package/dist/index.d.ts +3504 -849
  4. package/dist/packages/affix/{index.js → affix.js} +1 -1
  5. package/dist/packages/affix/{index.js.map → affix.js.map} +1 -1
  6. package/dist/packages/affix/affix.react.stories.d.ts +1 -1
  7. package/dist/packages/affix/affix.stories.d.ts +2 -2
  8. package/dist/packages/affix/affix.stories.js +1 -1
  9. package/dist/packages/affix/affix.test.d.ts +1 -1
  10. package/dist/packages/affix/affix.test.js +1 -1
  11. package/dist/packages/affix/react.d.ts +1 -1
  12. package/dist/packages/alert/{index.js → alert.js} +1 -1
  13. package/dist/packages/alert/{index.js.map → alert.js.map} +1 -1
  14. package/dist/packages/alert/alert.react.stories.d.ts +1 -1
  15. package/dist/packages/alert/alert.stories.d.ts +2 -2
  16. package/dist/packages/alert/alert.stories.js +1 -1
  17. package/dist/packages/alert/alert.test.d.ts +1 -1
  18. package/dist/packages/alert/alert.test.js +1 -1
  19. package/dist/packages/alert/react.d.ts +1 -1
  20. package/dist/packages/alert/react.js +1 -1
  21. package/dist/packages/attention/{index.d.ts → attention.d.ts} +1 -1
  22. package/dist/packages/attention/{index.js → attention.js} +18 -18
  23. package/dist/packages/attention/attention.js.map +7 -0
  24. package/dist/packages/attention/attention.react.stories.d.ts +1 -1
  25. package/dist/packages/attention/attention.stories.d.ts +3 -3
  26. package/dist/packages/attention/attention.stories.js +2 -2
  27. package/dist/packages/attention/attention.test.d.ts +1 -1
  28. package/dist/packages/attention/attention.test.js +1 -1
  29. package/dist/packages/attention/react.d.ts +1 -1
  30. package/dist/packages/attention/react.js +1 -1
  31. package/dist/packages/badge/{index.js → badge.js} +1 -1
  32. package/dist/packages/badge/{index.js.map → badge.js.map} +1 -1
  33. package/dist/packages/badge/badge.react.stories.d.ts +3 -3
  34. package/dist/packages/badge/badge.stories.d.ts +2 -2
  35. package/dist/packages/badge/badge.stories.js +1 -1
  36. package/dist/packages/badge/badge.test.d.ts +1 -1
  37. package/dist/packages/badge/badge.test.js +1 -1
  38. package/dist/packages/badge/react.d.ts +1 -1
  39. package/dist/packages/badge/react.js +1 -1
  40. package/dist/packages/box/{index.js → box.js} +1 -1
  41. package/dist/packages/box/{index.js.map → box.js.map} +1 -1
  42. package/dist/packages/box/box.react.stories.d.ts +3 -3
  43. package/dist/packages/box/box.stories.d.ts +2 -2
  44. package/dist/packages/box/box.stories.js +1 -1
  45. package/dist/packages/box/box.test.d.ts +1 -1
  46. package/dist/packages/box/box.test.js +1 -1
  47. package/dist/packages/box/react.d.ts +1 -1
  48. package/dist/packages/box/react.js +1 -1
  49. package/dist/packages/box/slot.test.d.ts +1 -1
  50. package/dist/packages/box/slot.test.js +1 -1
  51. package/dist/packages/breadcrumbs/{index.js → breadcrumbs.js} +10 -10
  52. package/dist/packages/breadcrumbs/breadcrumbs.js.map +7 -0
  53. package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +3 -3
  54. package/dist/packages/breadcrumbs/breadcrumbs.stories.d.ts +2 -2
  55. package/dist/packages/breadcrumbs/breadcrumbs.stories.js +1 -1
  56. package/dist/packages/breadcrumbs/breadcrumbs.test.d.ts +1 -1
  57. package/dist/packages/breadcrumbs/breadcrumbs.test.js +1 -1
  58. package/dist/packages/breadcrumbs/react.d.ts +1 -1
  59. package/dist/packages/breadcrumbs/react.js +1 -1
  60. package/dist/packages/button/{index.d.ts → button.d.ts} +1 -1
  61. package/dist/packages/button/{index.js → button.js} +12 -12
  62. package/dist/packages/button/button.js.map +7 -0
  63. package/dist/packages/button/button.react.stories.d.ts +3 -3
  64. package/dist/packages/button/button.stories.d.ts +2 -2
  65. package/dist/packages/button/button.stories.js +1 -1
  66. package/dist/packages/button/button.test.d.ts +1 -1
  67. package/dist/packages/button/button.test.js +1 -1
  68. package/dist/packages/button/react.d.ts +1 -1
  69. package/dist/packages/button/react.js +1 -1
  70. package/dist/packages/card/{index.js → card.js} +9 -9
  71. package/dist/packages/card/card.js.map +7 -0
  72. package/dist/packages/card/card.react.stories.d.ts +3 -3
  73. package/dist/packages/card/card.stories.d.ts +2 -2
  74. package/dist/packages/card/card.stories.js +1 -1
  75. package/dist/packages/card/card.test.d.ts +1 -1
  76. package/dist/packages/card/card.test.js +1 -1
  77. package/dist/packages/card/react.d.ts +1 -1
  78. package/dist/packages/card/react.js +1 -1
  79. package/dist/packages/checkbox/checkbox.js +2572 -201
  80. package/dist/packages/checkbox/checkbox.js.map +7 -0
  81. package/dist/packages/checkbox/checkbox.stories.d.ts +2 -1
  82. package/dist/packages/checkbox/checkbox.stories.js +2 -1
  83. package/dist/packages/checkbox/react.d.ts +0 -2
  84. package/dist/packages/checkbox/react.js +0 -5
  85. package/dist/packages/checkbox-group/checkbox-group.js +7 -0
  86. package/dist/packages/checkbox-group/checkbox-group.js.map +7 -0
  87. package/dist/packages/checkbox-group/react.d.ts +2 -0
  88. package/dist/packages/checkbox-group/react.js +11 -0
  89. package/dist/packages/combobox/{index.js → combobox.js} +14 -14
  90. package/dist/packages/combobox/combobox.js.map +7 -0
  91. package/dist/packages/combobox/combobox.react.stories.d.ts +4 -4
  92. package/dist/packages/combobox/combobox.stories.d.ts +3 -3
  93. package/dist/packages/combobox/combobox.stories.js +2 -2
  94. package/dist/packages/combobox/combobox.test.d.ts +2 -2
  95. package/dist/packages/combobox/combobox.test.js +2 -2
  96. package/dist/packages/combobox/react.d.ts +1 -1
  97. package/dist/packages/combobox/react.js +1 -1
  98. package/dist/packages/datepicker/DatePicker.test.d.ts +2 -2
  99. package/dist/packages/datepicker/DatePicker.test.js +2 -2
  100. package/dist/packages/datepicker/datepicker.js +15 -15
  101. package/dist/packages/datepicker/datepicker.js.map +3 -3
  102. package/dist/packages/datepicker/datepicker.react.stories.d.ts +2 -2
  103. package/dist/packages/datepicker/datepicker.stories.d.ts +3 -3
  104. package/dist/packages/datepicker/datepicker.stories.js +2 -2
  105. package/dist/packages/datepicker/datepicker.test.d.ts +2 -2
  106. package/dist/packages/datepicker/datepicker.test.js +2 -2
  107. package/dist/packages/datepicker/react.js +1 -1
  108. package/dist/packages/dead-toggle/dead-toggle.js +2547 -0
  109. package/dist/packages/dead-toggle/dead-toggle.js.map +7 -0
  110. package/dist/packages/dead-toggle/dead-toggle.react.stories.d.ts +15 -0
  111. package/dist/packages/{deadtoggle → dead-toggle}/dead-toggle.stories.d.ts +2 -2
  112. package/dist/packages/{deadtoggle → dead-toggle}/dead-toggle.stories.js +1 -1
  113. package/dist/packages/dead-toggle/dead-toggle.test.d.ts +1 -0
  114. package/dist/packages/{deadtoggle → dead-toggle}/dead-toggle.test.js +1 -1
  115. package/dist/packages/{deadtoggle → dead-toggle}/react.d.ts +1 -1
  116. package/dist/packages/expandable/{index.js → expandable.js} +1 -1
  117. package/dist/packages/expandable/{index.js.map → expandable.js.map} +1 -1
  118. package/dist/packages/expandable/expandable.react.stories.d.ts +3 -3
  119. package/dist/packages/expandable/expandable.stories.d.ts +2 -2
  120. package/dist/packages/expandable/expandable.stories.js +1 -1
  121. package/dist/packages/expandable/expandable.test.d.ts +1 -1
  122. package/dist/packages/expandable/expandable.test.js +1 -1
  123. package/dist/packages/expandable/react.d.ts +1 -1
  124. package/dist/packages/expandable/react.js +1 -1
  125. package/dist/packages/i18n.js +6 -2
  126. package/dist/packages/icon/icon.d.ts +27 -0
  127. package/dist/packages/icon/icon.js +101 -0
  128. package/dist/packages/icon/icon.react.stories.d.ts +28 -0
  129. package/dist/packages/icon/icon.react.stories.js +37 -0
  130. package/dist/packages/icon/icon.stories.d.ts +39 -0
  131. package/dist/packages/icon/icon.stories.js +43 -0
  132. package/dist/packages/icon/react.d.ts +2 -0
  133. package/dist/packages/icon/react.js +11 -0
  134. package/dist/packages/icon/style.js +27 -0
  135. package/dist/packages/link/{index.js → link.js} +3 -3
  136. package/dist/packages/link/link.js.map +7 -0
  137. package/dist/packages/link/link.react.stories.d.ts +3 -3
  138. package/dist/packages/link/link.stories.d.ts +2 -2
  139. package/dist/packages/link/link.stories.js +1 -1
  140. package/dist/packages/link/link.test.d.ts +1 -1
  141. package/dist/packages/link/link.test.js +1 -1
  142. package/dist/packages/link/react.d.ts +1 -1
  143. package/dist/packages/link/react.js +1 -1
  144. package/dist/packages/link/styles.js +2 -2
  145. package/dist/packages/modal/index.d.ts +6 -3
  146. package/dist/packages/modal/index.js +10 -2717
  147. package/dist/packages/modal/{modal-main.js → modal.js} +1 -1
  148. package/dist/packages/modal/{modal-main.js.map → modal.js.map} +1 -1
  149. package/dist/packages/modal/modal.react.stories.d.ts +1 -1
  150. package/dist/packages/modal/modal.stories.d.ts +6 -3
  151. package/dist/packages/modal/modal.stories.js +3 -1
  152. package/dist/packages/modal/react.d.ts +3 -6
  153. package/dist/packages/modal/react.js +4 -15
  154. package/dist/packages/{modal → modal-footer}/modal-footer.d.ts +2 -2
  155. package/dist/packages/{modal → modal-footer}/modal-footer.js +4 -4
  156. package/dist/packages/modal-footer/modal-footer.js.map +7 -0
  157. package/dist/packages/modal-footer/react.d.ts +2 -0
  158. package/dist/packages/modal-footer/react.js +11 -0
  159. package/dist/packages/{modal → modal-header}/modal-header.d.ts +1 -1
  160. package/dist/packages/{modal → modal-header}/modal-header.js +7 -7
  161. package/dist/packages/modal-header/modal-header.js.map +7 -0
  162. package/dist/packages/modal-header/react.d.ts +5 -0
  163. package/dist/packages/modal-header/react.js +15 -0
  164. package/dist/packages/page-indicator/locales/da/messages.mjs +1 -0
  165. package/dist/packages/page-indicator/locales/en/messages.mjs +1 -0
  166. package/dist/packages/page-indicator/locales/fi/messages.mjs +1 -0
  167. package/dist/packages/page-indicator/locales/nb/messages.mjs +1 -0
  168. package/dist/packages/page-indicator/locales/sv/messages.mjs +1 -0
  169. package/dist/packages/page-indicator/page-indicator.d.ts +26 -0
  170. package/dist/packages/page-indicator/page-indicator.js +41 -0
  171. package/dist/packages/page-indicator/page-indicator.js.map +7 -0
  172. package/dist/packages/{pageindicator/pageindicator.react.stories.d.ts → page-indicator/page-indicator.react.stories.d.ts} +3 -3
  173. package/dist/packages/{pageindicator/pageindicator.stories.d.ts → page-indicator/page-indicator.stories.d.ts} +1 -1
  174. package/dist/packages/page-indicator/page-indicator.stories.js +87 -0
  175. package/dist/packages/page-indicator/page-indicator.test.d.ts +1 -0
  176. package/dist/packages/page-indicator/page-indicator.test.js +118 -0
  177. package/dist/packages/{pageindicator → page-indicator}/react.d.ts +1 -1
  178. package/dist/packages/{pageindicator → page-indicator}/react.js +2 -2
  179. package/dist/packages/{pageindicator → page-indicator}/style.js +4 -4
  180. package/dist/packages/pagination/pagination.js +2500 -0
  181. package/dist/packages/pagination/pagination.js.map +7 -0
  182. package/dist/packages/pagination/pagination.react.stories.d.ts +4 -4
  183. package/dist/packages/pagination/pagination.stories.d.ts +2 -2
  184. package/dist/packages/pagination/pagination.stories.js +1 -1
  185. package/dist/packages/pagination/pagination.test.d.ts +1 -1
  186. package/dist/packages/pagination/pagination.test.js +1 -1
  187. package/dist/packages/pagination/react.d.ts +1 -1
  188. package/dist/packages/pagination/react.js +1 -1
  189. package/dist/packages/pill/{index.js → pill.js} +9 -9
  190. package/dist/packages/pill/pill.js.map +7 -0
  191. package/dist/packages/pill/pill.react.stories.d.ts +4 -4
  192. package/dist/packages/pill/pill.stories.d.ts +2 -2
  193. package/dist/packages/pill/pill.stories.js +1 -1
  194. package/dist/packages/pill/pill.test.d.ts +1 -1
  195. package/dist/packages/pill/pill.test.js +1 -1
  196. package/dist/packages/pill/react.d.ts +1 -1
  197. package/dist/packages/pill/react.js +1 -1
  198. package/dist/packages/radio/radio.js +2556 -109
  199. package/dist/packages/radio/radio.js.map +7 -0
  200. package/dist/packages/radio/radio.stories.d.ts +3 -3
  201. package/dist/packages/radio/radio.stories.js +2 -2
  202. package/dist/packages/radio/react.d.ts +0 -7
  203. package/dist/packages/radio/react.js +1 -12
  204. package/dist/packages/{radio → radio-group}/radio-group.d.ts +4 -4
  205. package/dist/packages/radio-group/radio-group.js +2648 -0
  206. package/dist/packages/radio-group/radio-group.js.map +7 -0
  207. package/dist/packages/radio-group/react.d.ts +7 -0
  208. package/dist/packages/radio-group/react.js +17 -0
  209. package/dist/packages/select/react.d.ts +1 -1
  210. package/dist/packages/select/react.js +1 -1
  211. package/dist/packages/select/{index.js → select.js} +16 -16
  212. package/dist/packages/select/select.js.map +7 -0
  213. package/dist/packages/select/select.react.stories.d.ts +4 -4
  214. package/dist/packages/select/select.react.stories.js +1 -1
  215. package/dist/packages/select/select.stories.d.ts +2 -2
  216. package/dist/packages/select/select.stories.js +1 -1
  217. package/dist/packages/select/select.test.d.ts +1 -1
  218. package/dist/packages/select/select.test.js +1 -1
  219. package/dist/packages/slider/index.d.ts +1 -1
  220. package/dist/packages/slider/index.js +1 -1
  221. package/dist/packages/slider/react.d.ts +1 -6
  222. package/dist/packages/slider/react.js +3 -10
  223. package/dist/packages/slider/slider.js +2603 -272
  224. package/dist/packages/{toast/toast-container.js.map → slider/slider.js.map} +4 -4
  225. package/dist/packages/slider/slider.stories.d.ts +5 -4
  226. package/dist/packages/slider/slider.stories.js +5 -4
  227. package/dist/packages/slider/slider.test.d.ts +5 -4
  228. package/dist/packages/slider/slider.test.js +5 -4
  229. package/dist/packages/slider-thumb/react.d.ts +6 -0
  230. package/dist/packages/slider-thumb/react.js +15 -0
  231. package/dist/packages/{slider → slider-thumb}/slider-thumb.d.ts +1 -1
  232. package/dist/packages/slider-thumb/slider-thumb.js +2748 -0
  233. package/dist/packages/slider-thumb/slider-thumb.js.map +7 -0
  234. package/dist/packages/step/locales/da/messages.d.mts +1 -0
  235. package/dist/packages/step/locales/en/messages.d.mts +1 -0
  236. package/dist/packages/step/locales/fi/messages.d.mts +1 -0
  237. package/dist/packages/step/locales/nb/messages.d.mts +1 -0
  238. package/dist/packages/step/locales/sv/messages.d.mts +1 -0
  239. package/dist/packages/step/react.d.ts +2 -0
  240. package/dist/packages/step/react.js +11 -0
  241. package/dist/packages/step/step.d.ts +22 -0
  242. package/dist/packages/step/step.js +2461 -0
  243. package/dist/packages/{modal/index.js.map → step/step.js.map} +4 -4
  244. package/dist/packages/step-indicator/index.d.ts +2 -0
  245. package/dist/packages/step-indicator/index.js +2 -0
  246. package/dist/packages/step-indicator/react.d.ts +3 -0
  247. package/dist/packages/{stepindicator → step-indicator}/react.js +3 -6
  248. package/dist/packages/step-indicator/step-indicator.d.ts +14 -0
  249. package/dist/packages/step-indicator/step-indicator.js +2445 -0
  250. package/dist/packages/step-indicator/step-indicator.js.map +7 -0
  251. package/dist/packages/{stepindicator → step-indicator}/stepindicator.react.stories.d.ts +1 -1
  252. package/dist/packages/{stepindicator → step-indicator}/stepindicator.stories.d.ts +2 -1
  253. package/dist/packages/{stepindicator → step-indicator}/stepindicator.stories.js +2 -1
  254. package/dist/packages/step-indicator/styles.d.ts +1 -0
  255. package/dist/packages/switch/react.d.ts +1 -1
  256. package/dist/packages/switch/react.js +1 -1
  257. package/dist/packages/switch/{index.js → switch.js} +1 -1
  258. package/dist/packages/switch/{index.js.map → switch.js.map} +1 -1
  259. package/dist/packages/switch/switch.react.stories.d.ts +1 -1
  260. package/dist/packages/switch/switch.stories.d.ts +1 -1
  261. package/dist/packages/switch/switch.stories.js +1 -1
  262. package/dist/packages/switch/switch.test.d.ts +1 -1
  263. package/dist/packages/switch/switch.test.js +2 -2
  264. package/dist/packages/tab/react.d.ts +7 -0
  265. package/dist/packages/tab/react.js +17 -0
  266. package/dist/packages/{tabs → tab}/tab.d.ts +2 -5
  267. package/dist/packages/tab/tab.js +2464 -0
  268. package/dist/packages/tab/tab.js.map +7 -0
  269. package/dist/packages/tab-panel/react.d.ts +2 -0
  270. package/dist/packages/tab-panel/react.js +11 -0
  271. package/dist/packages/{tabs → tab-panel}/tab-panel.d.ts +3 -3
  272. package/dist/packages/tab-panel/tab-panel.js +2441 -0
  273. package/dist/packages/tab-panel/tab-panel.js.map +7 -0
  274. package/dist/packages/tabs/index.d.ts +2 -3
  275. package/dist/packages/tabs/index.js +3 -2
  276. package/dist/packages/tabs/react.d.ts +3 -8
  277. package/dist/packages/tabs/react.js +4 -17
  278. package/dist/packages/tabs/tabs.d.ts +2 -5
  279. package/dist/packages/tabs/tabs.js +2447 -252
  280. package/dist/packages/tabs/tabs.js.map +7 -0
  281. package/dist/packages/tabs/tabs.react.stories.d.ts +14 -1
  282. package/dist/packages/tabs/tabs.react.stories.js +55 -35
  283. package/dist/packages/tabs/tabs.stories.d.ts +5 -4
  284. package/dist/packages/tabs/tabs.stories.js +89 -65
  285. package/dist/packages/textarea/react.d.ts +1 -1
  286. package/dist/packages/textarea/react.js +1 -1
  287. package/dist/packages/textarea/textarea.js +2465 -210
  288. package/dist/packages/{combobox/index.js.map → textarea/textarea.js.map} +4 -4
  289. package/dist/packages/textarea/textarea.react.stories.d.ts +2 -2
  290. package/dist/packages/textarea/textarea.stories.d.ts +2 -2
  291. package/dist/packages/textarea/textarea.stories.js +1 -1
  292. package/dist/packages/textarea/textarea.test.d.ts +1 -1
  293. package/dist/packages/textarea/textarea.test.js +1 -1
  294. package/dist/packages/textfield/react.d.ts +1 -1
  295. package/dist/packages/textfield/react.js +1 -1
  296. package/dist/packages/textfield/{index.js → textfield.js} +1 -1
  297. package/dist/packages/textfield/{index.js.map → textfield.js.map} +1 -1
  298. package/dist/packages/textfield/textfield.react.stories.d.ts +4 -4
  299. package/dist/packages/textfield/textfield.stories.d.ts +2 -2
  300. package/dist/packages/textfield/textfield.stories.js +1 -1
  301. package/dist/packages/textfield/textfield.test.d.ts +2 -2
  302. package/dist/packages/textfield/textfield.test.js +2 -2
  303. package/dist/packages/toast/index.d.ts +5 -3
  304. package/dist/packages/toast/index.js +7 -2483
  305. package/dist/packages/toast/toast.js +8 -8
  306. package/dist/packages/toast/toast.js.map +3 -3
  307. package/dist/packages/toast/toast.stories.d.ts +4 -3
  308. package/dist/packages/toast/toast.stories.js +3 -2
  309. package/dist/packages/{toast → toast-container}/toast-container.d.ts +1 -1
  310. package/dist/packages/toast-container/toast-container.js.map +7 -0
  311. package/dist/web-types.json +822 -38
  312. package/package.json +139 -38
  313. package/dist/packages/attention/index.js.map +0 -7
  314. package/dist/packages/breadcrumbs/index.js.map +0 -7
  315. package/dist/packages/button/index.js.map +0 -7
  316. package/dist/packages/card/index.js.map +0 -7
  317. package/dist/packages/checkbox/checkbox-group.js +0 -15
  318. package/dist/packages/checkbox/index.d.ts +0 -2
  319. package/dist/packages/checkbox/index.js +0 -2
  320. package/dist/packages/datepicker/index.d.ts +0 -1
  321. package/dist/packages/datepicker/index.js +0 -2785
  322. package/dist/packages/datepicker/index.js.map +0 -7
  323. package/dist/packages/deadtoggle/dead-toggle.react.stories.d.ts +0 -15
  324. package/dist/packages/deadtoggle/dead-toggle.test.d.ts +0 -1
  325. package/dist/packages/deadtoggle/index.js +0 -51
  326. package/dist/packages/link/index.js.map +0 -7
  327. package/dist/packages/modal/modal-footer.js.map +0 -7
  328. package/dist/packages/modal/modal-header.js.map +0 -7
  329. package/dist/packages/pageindicator/index.d.ts +0 -10
  330. package/dist/packages/pageindicator/index.js +0 -48
  331. package/dist/packages/pageindicator/pageindicator.stories.js +0 -71
  332. package/dist/packages/pagination/index.js +0 -199
  333. package/dist/packages/pill/index.js.map +0 -7
  334. package/dist/packages/radio/index.d.ts +0 -2
  335. package/dist/packages/radio/index.js +0 -2
  336. package/dist/packages/radio/radio-group.js +0 -342
  337. package/dist/packages/select/index.js.map +0 -7
  338. package/dist/packages/slider/slider-thumb.js +0 -501
  339. package/dist/packages/stepindicator/index.d.ts +0 -37
  340. package/dist/packages/stepindicator/index.js +0 -195
  341. package/dist/packages/stepindicator/react.d.ts +0 -3
  342. package/dist/packages/tabs/tab-panel.js +0 -51
  343. package/dist/packages/tabs/tab.js +0 -104
  344. package/dist/packages/textarea/index.d.ts +0 -1
  345. package/dist/packages/textarea/index.js +0 -1
  346. package/dist/packages/toast/index.js.map +0 -7
  347. package/dist/packages/affix/{index.d.ts → affix.d.ts} +0 -0
  348. package/dist/packages/alert/{index.d.ts → alert.d.ts} +0 -0
  349. package/dist/packages/badge/{index.d.ts → badge.d.ts} +0 -0
  350. package/dist/packages/box/{index.d.ts → box.d.ts} +0 -0
  351. package/dist/packages/breadcrumbs/{index.d.ts → breadcrumbs.d.ts} +0 -0
  352. package/dist/packages/card/{index.d.ts → card.d.ts} +0 -0
  353. package/dist/packages/{checkbox → checkbox-group}/checkbox-group.d.ts +0 -0
  354. package/dist/packages/combobox/{index.d.ts → combobox.d.ts} +0 -0
  355. package/dist/packages/{deadtoggle/index.d.ts → dead-toggle/dead-toggle.d.ts} +0 -0
  356. package/dist/packages/{deadtoggle → dead-toggle}/dead-toggle.react.stories.js +0 -0
  357. package/dist/packages/{deadtoggle → dead-toggle}/react.js +1 -1
  358. /package/dist/packages/expandable/{index.d.ts → expandable.d.ts} +0 -0
  359. /package/dist/packages/{pageindicator → icon}/style.d.ts +0 -0
  360. /package/dist/packages/link/{index.d.ts → link.d.ts} +0 -0
  361. /package/dist/packages/modal/{modal-main.d.ts → modal.d.ts} +0 -0
  362. /package/dist/packages/{stepindicator → page-indicator}/locales/da/messages.d.mts +0 -0
  363. /package/dist/packages/{stepindicator → page-indicator}/locales/en/messages.d.mts +0 -0
  364. /package/dist/packages/{stepindicator → page-indicator}/locales/fi/messages.d.mts +0 -0
  365. /package/dist/packages/{stepindicator → page-indicator}/locales/nb/messages.d.mts +0 -0
  366. /package/dist/packages/{stepindicator → page-indicator}/locales/sv/messages.d.mts +0 -0
  367. /package/dist/packages/{pageindicator/pageindicator.react.stories.js → page-indicator/page-indicator.react.stories.js} +0 -0
  368. /package/dist/packages/{radio/radio-group-styles.d.ts → page-indicator/style.d.ts} +0 -0
  369. /package/dist/packages/pagination/{index.d.ts → pagination.d.ts} +0 -0
  370. /package/dist/packages/pill/{index.d.ts → pill.d.ts} +0 -0
  371. /package/dist/packages/{stepindicator/styles.d.ts → radio-group/radio-group-styles.d.ts} +0 -0
  372. /package/dist/packages/{radio → radio-group}/radio-group-styles.js +0 -0
  373. /package/dist/packages/select/{index.d.ts → select.d.ts} +0 -0
  374. /package/dist/packages/{slider → slider-thumb}/SliderThumb.d.ts +0 -0
  375. /package/dist/packages/{slider → slider-thumb}/SliderThumb.js +0 -0
  376. /package/dist/packages/{slider → slider-thumb}/oddbird-css-anchor-positioning.d.ts +0 -0
  377. /package/dist/packages/{slider → slider-thumb}/oddbird-css-anchor-positioning.js +0 -0
  378. /package/dist/packages/{slider → slider-thumb}/styles/w-slider-thumb.styles.d.ts +0 -0
  379. /package/dist/packages/{slider → slider-thumb}/styles/w-slider-thumb.styles.js +0 -0
  380. /package/dist/packages/{stepindicator → step}/locales/da/messages.mjs +0 -0
  381. /package/dist/packages/{stepindicator → step}/locales/en/messages.mjs +0 -0
  382. /package/dist/packages/{stepindicator → step}/locales/fi/messages.mjs +0 -0
  383. /package/dist/packages/{stepindicator → step}/locales/nb/messages.mjs +0 -0
  384. /package/dist/packages/{stepindicator → step}/locales/sv/messages.mjs +0 -0
  385. /package/dist/packages/{stepindicator → step-indicator}/stepindicator.react.stories.js +0 -0
  386. /package/dist/packages/{stepindicator → step-indicator}/styles.js +0 -0
  387. /package/dist/packages/switch/{index.d.ts → switch.d.ts} +0 -0
  388. /package/dist/packages/textfield/{index.d.ts → textfield.d.ts} +0 -0
  389. /package/dist/packages/{toast → toast-container}/toast-container.js +0 -0
@@ -1,195 +0,0 @@
1
- // @warp-css;
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- import { classNames } from '@chbphone55/classnames';
9
- import { i18n } from '@lingui/core';
10
- import { html, LitElement } from 'lit';
11
- import { property, state } from 'lit/decorators.js';
12
- import '@warp-ds/icons/elements/check-16';
13
- import { activateI18n } from '../i18n.js';
14
- import { reset } from '../styles.js';
15
- import { messages as daMessages } from './locales/da/messages.mjs';
16
- import { messages as enMessages } from './locales/en/messages.mjs';
17
- import { messages as fiMessages } from './locales/fi/messages.mjs';
18
- import { messages as nbMessages } from './locales/nb/messages.mjs';
19
- import { messages as svMessages } from './locales/sv/messages.mjs';
20
- import { styles } from './styles.js';
21
- const ccSteps = {
22
- wrapper: 'w-full',
23
- horizontal: 'flex',
24
- };
25
- const ccStep = {
26
- base: 'group/step',
27
- vertical: 'group/stepv grid-rows-[20px_auto] grid grid-flow-col gap-x-16',
28
- horizontal: 'group/steph grid-rows-[auto_20px] grid-cols-[1fr_20px_1fr] flex-1 grid items-center',
29
- alignLeft: 'grid-cols-[20px_1fr]',
30
- alignRight: 'grid-cols-[1fr_20px] text-right',
31
- dot: 'rounded-full border-2 h-20 w-20 transition-colors duration-300 s-icon-inverted',
32
- dotAlignRight: 'col-start-2',
33
- dotHorizontal: 'row-start-2 justify-self-end',
34
- dotActive: 's-border-primary s-bg-primary',
35
- dotIncomplete: 's-border s-bg',
36
- line: 'transition-colors duration-300',
37
- lineVertical: 'w-2 h-full justify-self-center',
38
- lineAlignRight: 'col-start-2',
39
- lineHorizontal: 'h-2 w-full row-start-2',
40
- lineIncomplete: 's-bg-disabled',
41
- lineComplete: 's-bg-primary',
42
- content: 'last:mb-0',
43
- contentVertical: 'row-span-2 pb-32',
44
- contentHorizontal: 'col-span-3 px-16 row-start-1 text-center',
45
- };
46
- /**
47
- * Steps are used to show progress through a process or to guide users through a multi-step task.
48
- *
49
- * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/components-steps--docs)
50
- */
51
- class WarpStepIndicator extends LitElement {
52
- static { this.styles = [reset, styles]; }
53
- constructor() {
54
- super();
55
- this.horizontal = false;
56
- this.right = false;
57
- activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);
58
- }
59
- updated() {
60
- this.updateStepsContext();
61
- }
62
- updateStepsContext() {
63
- // Provide context to child step elements
64
- const steps = this.querySelectorAll('w-step');
65
- steps.forEach((step, index) => {
66
- step.setContext({
67
- horizontal: this.horizontal,
68
- right: this.right,
69
- isLast: index === steps.length - 1,
70
- isFirst: index === 0,
71
- });
72
- });
73
- }
74
- render() {
75
- const classes = classNames([ccSteps.wrapper, this.horizontal && ccSteps.horizontal]);
76
- return html `
77
- <div role="list" class=${classes} ${this.horizontal && `style='display: grid; grid-auto-rows: 1fr;grid-template-columns: 1fr;'`}>
78
- <slot></slot>
79
- </div>
80
- `;
81
- }
82
- }
83
- __decorate([
84
- property({ type: Boolean, reflect: true })
85
- ], WarpStepIndicator.prototype, "horizontal", void 0);
86
- __decorate([
87
- property({ type: Boolean, reflect: true })
88
- ], WarpStepIndicator.prototype, "right", void 0);
89
- const availableAriaLabels = {
90
- completed: i18n._({
91
- id: 'steps.aria.completed',
92
- message: 'Step indicator completed circle',
93
- comment: 'Completed circle',
94
- }),
95
- active: i18n._({
96
- id: 'steps.aria.active',
97
- message: 'Step indicator active circle',
98
- comment: 'Active circle',
99
- }),
100
- default: i18n._({
101
- id: 'steps.aria.emptyCircle',
102
- message: 'Empty circle',
103
- comment: 'Empty circle',
104
- }),
105
- };
106
- /**
107
- * Individual step component that shows a single step in a process
108
- */
109
- class WarpStep extends LitElement {
110
- static { this.styles = [reset, styles]; }
111
- constructor() {
112
- super();
113
- this.active = false;
114
- this.completed = false;
115
- this._context = { horizontal: false, right: false, isLast: false, isFirst: false };
116
- activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);
117
- }
118
- connectedCallback() {
119
- super.connectedCallback();
120
- this.setAttribute('role', 'listitem');
121
- }
122
- setContext(context) {
123
- this._context = context;
124
- this.requestUpdate();
125
- }
126
- getAriaLabel() {
127
- if (this.completed)
128
- return availableAriaLabels.completed;
129
- if (this.active)
130
- return availableAriaLabels.active;
131
- return availableAriaLabels.default;
132
- }
133
- render() {
134
- const vertical = !this._context.horizontal;
135
- const left = !this._context.right;
136
- const isFirst = this._context.isFirst;
137
- const isLast = this._context.isLast;
138
- const stepClasses = classNames([
139
- ccStep.base,
140
- vertical ? ccStep.vertical : ccStep.horizontal,
141
- vertical ? (left ? ccStep.alignLeft : ccStep.alignRight) : '',
142
- ]);
143
- const lineHorizontalClasses = classNames([
144
- ccStep.line,
145
- ccStep.lineHorizontal,
146
- this.active || this.completed ? ccStep.lineComplete : ccStep.lineIncomplete,
147
- isFirst ? 'invisible' : '',
148
- ]);
149
- const dotClasses = classNames([
150
- ccStep.dot,
151
- vertical ? (!left ? ccStep.dotAlignRight : '') : ccStep.dotHorizontal,
152
- this.active || this.completed ? ccStep.dotActive : ccStep.dotIncomplete,
153
- ]);
154
- const lineClasses = classNames([
155
- ccStep.line,
156
- vertical ? ccStep.lineVertical : ccStep.lineHorizontal,
157
- vertical && !left ? ccStep.lineAlignRight : '',
158
- this.completed ? ccStep.lineComplete : ccStep.lineIncomplete,
159
- isLast ? 'invisible' : '',
160
- ]);
161
- const contentClasses = classNames([
162
- ccStep.content,
163
- vertical ? ccStep.contentVertical : ccStep.contentHorizontal,
164
- isLast ? 'pb-0' : '',
165
- ]);
166
- return html `
167
- <div class="${stepClasses}" style=${this._context.horizontal && 'height: 100%;'}>
168
- ${!vertical ? html `<div class=${lineHorizontalClasses}></div>` : ''}
169
- <div class=${dotClasses} role="img" aria-label=${this.getAriaLabel()} ${this.active ? 'aria-current="step"' : ''}>
170
- ${this.completed ? html `<w-icon-check-16 data-testid="completed-icon"></w-icon-check-16>` : ''}
171
- </div>
172
- <div class=${lineClasses}></div>
173
- <div class=${contentClasses} ${this._context.horizontal && `style='height:100%;'`}>
174
- <slot></slot>
175
- </div>
176
- </div>
177
- `;
178
- }
179
- }
180
- __decorate([
181
- property({ type: Boolean, reflect: true })
182
- ], WarpStep.prototype, "active", void 0);
183
- __decorate([
184
- property({ type: Boolean, reflect: true })
185
- ], WarpStep.prototype, "completed", void 0);
186
- __decorate([
187
- state()
188
- ], WarpStep.prototype, "_context", void 0);
189
- if (!customElements.get('w-step-indicator')) {
190
- customElements.define('w-step-indicator', WarpStepIndicator);
191
- }
192
- if (!customElements.get('w-step')) {
193
- customElements.define('w-step', WarpStep);
194
- }
195
- export { WarpStepIndicator, WarpStep };
@@ -1,3 +0,0 @@
1
- import { WarpStep, WarpStepIndicator } from './index.js';
2
- export declare const StepIndicator: import("@lit/react").ReactWebComponent<WarpStepIndicator, {}>;
3
- export declare const Step: import("@lit/react").ReactWebComponent<WarpStep, {}>;
@@ -1,51 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { html, LitElement } from 'lit';
8
- import { property } from 'lit/decorators.js';
9
- import { reset } from '../styles.js';
10
- import { styles } from './styles.js';
11
- /**
12
- * Tab panel component that holds content for individual tabs.
13
- * Each tab panel should have a name that matches a corresponding tab.
14
- *
15
- * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
16
- */
17
- export class WarpTabPanel extends LitElement {
18
- constructor() {
19
- super(...arguments);
20
- this.hidden = true;
21
- }
22
- static { this.styles = [reset, styles]; }
23
- connectedCallback() {
24
- super.connectedCallback();
25
- this.setAttribute('tabindex', '-1');
26
- this.setAttribute('role', 'tabpanel');
27
- // Set aria-labelledby to reference the corresponding tab
28
- if (this.name) {
29
- this.setAttribute('aria-labelledby', `warp-tab-${this.name}`);
30
- this.setAttribute('id', `warp-tabpanel-${this.name}`);
31
- }
32
- }
33
- updated(changedProperties) {
34
- if (changedProperties.has('name') && this.name) {
35
- this.setAttribute('aria-labelledby', `warp-tab-${this.name}`);
36
- this.setAttribute('id', `warp-tabpanel-${this.name}`);
37
- }
38
- }
39
- render() {
40
- return html `<slot></slot>`;
41
- }
42
- }
43
- __decorate([
44
- property({ reflect: true })
45
- ], WarpTabPanel.prototype, "name", void 0);
46
- __decorate([
47
- property({ type: Boolean, reflect: true })
48
- ], WarpTabPanel.prototype, "hidden", void 0);
49
- if (!customElements.get('w-tab-panel')) {
50
- customElements.define('w-tab-panel', WarpTabPanel);
51
- }
@@ -1,104 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { classNames } from '@chbphone55/classnames';
8
- import { html, LitElement } from 'lit';
9
- import { property } from 'lit/decorators.js';
10
- import { reset } from '../styles.js';
11
- import { styles } from './styles.js';
12
- const ccTab = {
13
- base: 'grid w-full items-center font-bold gap-8 antialias p-16 pb-8 border-b-4 bg-transparent border-transparent hover:s-text-link hover:s-border-primary',
14
- inactive: 's-text-subtle',
15
- active: 's-text-link s-border-selected',
16
- icon: 'mx-auto',
17
- content: 'flex items-center justify-center gap-8',
18
- contentUnderlined: 'content-underlined', // content-underlined is a no-op that prevents a quirk in how Vue handles class bindings
19
- };
20
- const ccButtonReset = 'focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block';
21
- /**
22
- * Individual tab component used within w-tabs container.
23
- *
24
- * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
25
- */
26
- export class WarpTab extends LitElement {
27
- constructor() {
28
- super(...arguments);
29
- this.label = '';
30
- this.active = false;
31
- this.over = false;
32
- this.tabClass = '';
33
- this._handleClick = (event) => {
34
- // Dispatch a custom event that the parent tabs component can listen to
35
- this.dispatchEvent(new CustomEvent('tab-click', {
36
- detail: { name: this.name },
37
- bubbles: true,
38
- composed: true,
39
- }));
40
- // Also dispatch a generic click event for any click handlers
41
- this.dispatchEvent(new CustomEvent('click', {
42
- detail: { name: this.name, originalEvent: event },
43
- bubbles: true,
44
- composed: true,
45
- }));
46
- };
47
- }
48
- static { this.styles = [reset, styles]; }
49
- get _classes() {
50
- return classNames(this.tabClass, [ccButtonReset, ccTab.base, this.active ? ccTab.active : ccTab.inactive]);
51
- }
52
- get _hasChildren() {
53
- return this.querySelector('[slot="icon"]') !== null || this.innerHTML.trim() !== this.label;
54
- }
55
- render() {
56
- const hasChildren = this._hasChildren;
57
- return html `
58
- <button
59
- type="button"
60
- role="tab"
61
- aria-selected="${this.active ? 'true' : 'false'}"
62
- aria-controls="${this.active ? `warp-tabpanel-${this.name}` : ''}"
63
- id="warp-tab-${this.name}"
64
- class="${this._classes}"
65
- @click="${this._handleClick}"
66
- tabindex="${ /* This needs to be -1 to prevent the auto-focus on buttons, messing up tab order */-1}"
67
- style="height: 100%">
68
- ${!hasChildren
69
- ? html `<span class="${ccTab.contentUnderlined}">${this.label}</span>`
70
- : this.over
71
- ? html `
72
- <span class="${ccTab.icon}">
73
- <slot name="icon"></slot>
74
- </span>
75
- <span class="${ccTab.contentUnderlined}">${this.label}</span>
76
- `
77
- : html `
78
- <div class="${ccTab.content}">
79
- <slot name="icon"></slot>
80
- ${this.label}
81
- </div>
82
- `}
83
- </button>
84
- `;
85
- }
86
- }
87
- __decorate([
88
- property({ reflect: true })
89
- ], WarpTab.prototype, "name", void 0);
90
- __decorate([
91
- property({ reflect: true })
92
- ], WarpTab.prototype, "label", void 0);
93
- __decorate([
94
- property({ type: Boolean, reflect: true })
95
- ], WarpTab.prototype, "active", void 0);
96
- __decorate([
97
- property({ type: Boolean, reflect: true })
98
- ], WarpTab.prototype, "over", void 0);
99
- __decorate([
100
- property({ attribute: 'tab-class', reflect: true })
101
- ], WarpTab.prototype, "tabClass", void 0);
102
- if (!customElements.get('w-tab')) {
103
- customElements.define('w-tab', WarpTab);
104
- }
@@ -1 +0,0 @@
1
- export * from './textarea.js';
@@ -1 +0,0 @@
1
- export * from './textarea.js';