@smwb/ui-solid 0.3.0 → 0.4.0

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 (814) hide show
  1. package/dist/headless/source/components/base/animateHeight/animateHeight.jsx +177 -0
  2. package/dist/headless/source/components/base/animateHeight/animateHeight.jsx.map +1 -0
  3. package/dist/headless/source/components/base/animateHeight/index.js +6 -0
  4. package/dist/headless/source/components/base/animateHeight/index.js.map +7 -0
  5. package/dist/headless/source/components/base/icon/icon.jsx +60 -0
  6. package/dist/headless/source/components/base/icon/icon.jsx.map +1 -0
  7. package/dist/headless/source/components/base/icon/index.js +6 -0
  8. package/dist/headless/source/components/base/icon/index.js.map +7 -0
  9. package/dist/headless/source/components/base/ripple/index.js +6 -0
  10. package/dist/headless/source/components/base/ripple/index.js.map +7 -0
  11. package/dist/headless/source/components/base/ripple/ripple.jsx +63 -0
  12. package/dist/headless/source/components/base/ripple/ripple.jsx.map +1 -0
  13. package/dist/headless/source/components/clickAwayListener/clickAwayListener.jsx +73 -0
  14. package/dist/headless/source/components/clickAwayListener/clickAwayListener.jsx.map +1 -0
  15. package/dist/headless/source/components/clickAwayListener/index.js +6 -0
  16. package/dist/headless/source/components/clickAwayListener/index.js.map +7 -0
  17. package/dist/headless/source/components/dataDisplay/accordion/accordion.jsx +82 -0
  18. package/dist/headless/source/components/dataDisplay/accordion/accordion.jsx.map +1 -0
  19. package/dist/headless/source/components/dataDisplay/accordion/index.js +6 -0
  20. package/dist/headless/source/components/dataDisplay/accordion/index.js.map +7 -0
  21. package/dist/headless/source/components/dataDisplay/avatar/avatar.jsx +95 -0
  22. package/dist/headless/source/components/dataDisplay/avatar/avatar.jsx.map +1 -0
  23. package/dist/headless/source/components/dataDisplay/avatar/index.js +7 -0
  24. package/dist/headless/source/components/dataDisplay/avatar/index.js.map +7 -0
  25. package/dist/headless/source/components/dataDisplay/badge/badge.jsx +56 -0
  26. package/dist/headless/source/components/dataDisplay/badge/badge.jsx.map +1 -0
  27. package/dist/headless/source/components/dataDisplay/badge/index.js +6 -0
  28. package/dist/headless/source/components/dataDisplay/badge/index.js.map +7 -0
  29. package/dist/headless/source/components/dataDisplay/card/card.jsx +54 -0
  30. package/dist/headless/source/components/dataDisplay/card/card.jsx.map +1 -0
  31. package/dist/headless/source/components/dataDisplay/card/index.js +6 -0
  32. package/dist/headless/source/components/dataDisplay/card/index.js.map +7 -0
  33. package/dist/headless/source/components/dataDisplay/carousel/carousel.jsx +407 -0
  34. package/dist/headless/source/components/dataDisplay/carousel/carousel.jsx.map +1 -0
  35. package/dist/headless/source/components/dataDisplay/carousel/index.js +6 -0
  36. package/dist/headless/source/components/dataDisplay/carousel/index.js.map +7 -0
  37. package/dist/headless/source/components/dataDisplay/carousel/utils.js +76 -0
  38. package/dist/headless/source/components/dataDisplay/carousel/utils.js.map +7 -0
  39. package/dist/headless/source/components/dataDisplay/chat/chat.jsx +155 -0
  40. package/dist/headless/source/components/dataDisplay/chat/chat.jsx.map +1 -0
  41. package/dist/headless/source/components/dataDisplay/chat/chatAttachmentImage.jsx +53 -0
  42. package/dist/headless/source/components/dataDisplay/chat/chatAttachmentImage.jsx.map +1 -0
  43. package/dist/headless/source/components/dataDisplay/chat/chatAttachments.jsx +35 -0
  44. package/dist/headless/source/components/dataDisplay/chat/chatAttachments.jsx.map +1 -0
  45. package/dist/headless/source/components/dataDisplay/chat/chatComposer.jsx +170 -0
  46. package/dist/headless/source/components/dataDisplay/chat/chatComposer.jsx.map +1 -0
  47. package/dist/headless/source/components/dataDisplay/chat/chatHeader.jsx +55 -0
  48. package/dist/headless/source/components/dataDisplay/chat/chatHeader.jsx.map +1 -0
  49. package/dist/headless/source/components/dataDisplay/chat/chatIconButton.jsx +38 -0
  50. package/dist/headless/source/components/dataDisplay/chat/chatIconButton.jsx.map +1 -0
  51. package/dist/headless/source/components/dataDisplay/chat/chatLayout.jsx +121 -0
  52. package/dist/headless/source/components/dataDisplay/chat/chatLayout.jsx.map +1 -0
  53. package/dist/headless/source/components/dataDisplay/chat/chatMessageAvatar.jsx +19 -0
  54. package/dist/headless/source/components/dataDisplay/chat/chatMessageAvatar.jsx.map +1 -0
  55. package/dist/headless/source/components/dataDisplay/chat/chatMessageBubble.jsx +56 -0
  56. package/dist/headless/source/components/dataDisplay/chat/chatMessageBubble.jsx.map +1 -0
  57. package/dist/headless/source/components/dataDisplay/chat/chatMessageIncoming.jsx +21 -0
  58. package/dist/headless/source/components/dataDisplay/chat/chatMessageIncoming.jsx.map +1 -0
  59. package/dist/headless/source/components/dataDisplay/chat/chatMessageItem.jsx +56 -0
  60. package/dist/headless/source/components/dataDisplay/chat/chatMessageItem.jsx.map +1 -0
  61. package/dist/headless/source/components/dataDisplay/chat/chatMessageOutgoing.jsx +25 -0
  62. package/dist/headless/source/components/dataDisplay/chat/chatMessageOutgoing.jsx.map +1 -0
  63. package/dist/headless/source/components/dataDisplay/chat/chatMessageSkeleton.jsx +33 -0
  64. package/dist/headless/source/components/dataDisplay/chat/chatMessageSkeleton.jsx.map +1 -0
  65. package/dist/headless/source/components/dataDisplay/chat/chatMessageStatus.jsx +35 -0
  66. package/dist/headless/source/components/dataDisplay/chat/chatMessageStatus.jsx.map +1 -0
  67. package/dist/headless/source/components/dataDisplay/chat/chatMessageSystem.jsx +17 -0
  68. package/dist/headless/source/components/dataDisplay/chat/chatMessageSystem.jsx.map +1 -0
  69. package/dist/headless/source/components/dataDisplay/chat/chatMessages.jsx +63 -0
  70. package/dist/headless/source/components/dataDisplay/chat/chatMessages.jsx.map +1 -0
  71. package/dist/headless/source/components/dataDisplay/chat/chatOverlayLayout.jsx +60 -0
  72. package/dist/headless/source/components/dataDisplay/chat/chatOverlayLayout.jsx.map +1 -0
  73. package/dist/headless/source/components/dataDisplay/chat/chatShell.jsx +66 -0
  74. package/dist/headless/source/components/dataDisplay/chat/chatShell.jsx.map +1 -0
  75. package/dist/headless/source/components/dataDisplay/chat/index.js +82 -0
  76. package/dist/headless/source/components/dataDisplay/chat/index.js.map +7 -0
  77. package/dist/headless/source/components/dataDisplay/chat/types.js +25 -0
  78. package/dist/headless/source/components/dataDisplay/chat/types.js.map +7 -0
  79. package/dist/headless/source/components/dataDisplay/chat/useChatFileUpload.js +49 -0
  80. package/dist/headless/source/components/dataDisplay/chat/useChatFileUpload.js.map +7 -0
  81. package/dist/headless/source/components/dataDisplay/chat/useChatInfiniteScroll.js +27 -0
  82. package/dist/headless/source/components/dataDisplay/chat/useChatInfiniteScroll.js.map +7 -0
  83. package/dist/headless/source/components/dataDisplay/chat/useChatStickToBottom.js +54 -0
  84. package/dist/headless/source/components/dataDisplay/chat/useChatStickToBottom.js.map +7 -0
  85. package/dist/headless/source/components/dataDisplay/chat/utils.js +103 -0
  86. package/dist/headless/source/components/dataDisplay/chat/utils.js.map +7 -0
  87. package/dist/headless/source/components/dataDisplay/chip/chip.jsx +119 -0
  88. package/dist/headless/source/components/dataDisplay/chip/chip.jsx.map +1 -0
  89. package/dist/headless/source/components/dataDisplay/chip/index.js +6 -0
  90. package/dist/headless/source/components/dataDisplay/chip/index.js.map +7 -0
  91. package/dist/headless/source/components/dataDisplay/expansionPanel/expansionPanel.jsx +164 -0
  92. package/dist/headless/source/components/dataDisplay/expansionPanel/expansionPanel.jsx.map +1 -0
  93. package/dist/headless/source/components/dataDisplay/expansionPanel/index.js +6 -0
  94. package/dist/headless/source/components/dataDisplay/expansionPanel/index.js.map +7 -0
  95. package/dist/headless/source/components/dataDisplay/imagesList/imagesList.jsx +25 -0
  96. package/dist/headless/source/components/dataDisplay/imagesList/imagesList.jsx.map +1 -0
  97. package/dist/headless/source/components/dataDisplay/imagesList/imagesList.types.js +1 -0
  98. package/dist/headless/source/components/dataDisplay/imagesList/imagesList.types.js.map +7 -0
  99. package/dist/headless/source/components/dataDisplay/imagesList/imagesListContext.js +8 -0
  100. package/dist/headless/source/components/dataDisplay/imagesList/imagesListContext.js.map +7 -0
  101. package/dist/headless/source/components/dataDisplay/imagesList/imagesListItem/imagesListItem.jsx +55 -0
  102. package/dist/headless/source/components/dataDisplay/imagesList/imagesListItem/imagesListItem.jsx.map +1 -0
  103. package/dist/headless/source/components/dataDisplay/imagesList/imagesListItem/imagesListItemModal.jsx +30 -0
  104. package/dist/headless/source/components/dataDisplay/imagesList/imagesListItem/imagesListItemModal.jsx.map +1 -0
  105. package/dist/headless/source/components/dataDisplay/imagesList/index.js +12 -0
  106. package/dist/headless/source/components/dataDisplay/imagesList/index.js.map +7 -0
  107. package/dist/headless/source/components/dataDisplay/list/index.js +8 -0
  108. package/dist/headless/source/components/dataDisplay/list/index.js.map +7 -0
  109. package/dist/headless/source/components/dataDisplay/list/list.jsx +24 -0
  110. package/dist/headless/source/components/dataDisplay/list/list.jsx.map +1 -0
  111. package/dist/headless/source/components/dataDisplay/list/listItem.jsx +53 -0
  112. package/dist/headless/source/components/dataDisplay/list/listItem.jsx.map +1 -0
  113. package/dist/headless/source/components/dataDisplay/table/index.js +17 -0
  114. package/dist/headless/source/components/dataDisplay/table/index.js.map +7 -0
  115. package/dist/headless/source/components/dataDisplay/table/table.jsx +46 -0
  116. package/dist/headless/source/components/dataDisplay/table/table.jsx.map +1 -0
  117. package/dist/headless/source/components/dataDisplay/table/tableBody.jsx +15 -0
  118. package/dist/headless/source/components/dataDisplay/table/tableBody.jsx.map +1 -0
  119. package/dist/headless/source/components/dataDisplay/table/tableCell.jsx +16 -0
  120. package/dist/headless/source/components/dataDisplay/table/tableCell.jsx.map +1 -0
  121. package/dist/headless/source/components/dataDisplay/table/tableHead.jsx +15 -0
  122. package/dist/headless/source/components/dataDisplay/table/tableHead.jsx.map +1 -0
  123. package/dist/headless/source/components/dataDisplay/table/tableHeadCell.jsx +53 -0
  124. package/dist/headless/source/components/dataDisplay/table/tableHeadCell.jsx.map +1 -0
  125. package/dist/headless/source/components/dataDisplay/table/tablePagination/tablePagination.jsx +47 -0
  126. package/dist/headless/source/components/dataDisplay/table/tablePagination/tablePagination.jsx.map +1 -0
  127. package/dist/headless/source/components/dataDisplay/table/tableRow.jsx +25 -0
  128. package/dist/headless/source/components/dataDisplay/table/tableRow.jsx.map +1 -0
  129. package/dist/headless/source/components/dataDisplay/treeView/index.js +6 -0
  130. package/dist/headless/source/components/dataDisplay/treeView/index.js.map +7 -0
  131. package/dist/headless/source/components/dataDisplay/treeView/treeView.jsx +172 -0
  132. package/dist/headless/source/components/dataDisplay/treeView/treeView.jsx.map +1 -0
  133. package/dist/headless/source/components/dataDisplay/typography/index.js +6 -0
  134. package/dist/headless/source/components/dataDisplay/typography/index.js.map +7 -0
  135. package/dist/headless/source/components/dataDisplay/typography/typography.jsx +57 -0
  136. package/dist/headless/source/components/dataDisplay/typography/typography.jsx.map +1 -0
  137. package/dist/headless/source/components/feedBack/message/index.js +7 -0
  138. package/dist/headless/source/components/feedBack/message/index.js.map +7 -0
  139. package/dist/headless/source/components/feedBack/message/message.jsx +51 -0
  140. package/dist/headless/source/components/feedBack/message/message.jsx.map +1 -0
  141. package/dist/headless/source/components/feedBack/modal/index.js +6 -0
  142. package/dist/headless/source/components/feedBack/modal/index.js.map +7 -0
  143. package/dist/headless/source/components/feedBack/modal/modal.jsx +101 -0
  144. package/dist/headless/source/components/feedBack/modal/modal.jsx.map +1 -0
  145. package/dist/headless/source/components/feedBack/progressIndicator/index.js +7 -0
  146. package/dist/headless/source/components/feedBack/progressIndicator/index.js.map +7 -0
  147. package/dist/headless/source/components/feedBack/progressIndicator/progressIndicator.jsx +68 -0
  148. package/dist/headless/source/components/feedBack/progressIndicator/progressIndicator.jsx.map +1 -0
  149. package/dist/headless/source/components/feedBack/skeleton/index.js +6 -0
  150. package/dist/headless/source/components/feedBack/skeleton/index.js.map +7 -0
  151. package/dist/headless/source/components/feedBack/skeleton/skeleton.jsx +65 -0
  152. package/dist/headless/source/components/feedBack/skeleton/skeleton.jsx.map +1 -0
  153. package/dist/headless/source/components/feedBack/snackbar/index.js +10 -0
  154. package/dist/headless/source/components/feedBack/snackbar/index.js.map +7 -0
  155. package/dist/headless/source/components/feedBack/snackbar/snackbar.jsx +196 -0
  156. package/dist/headless/source/components/feedBack/snackbar/snackbar.jsx.map +1 -0
  157. package/dist/headless/source/components/feedBack/snackbar/useSnackbarsPortal.js +21 -0
  158. package/dist/headless/source/components/feedBack/snackbar/useSnackbarsPortal.js.map +7 -0
  159. package/dist/headless/source/components/feedBack/tooltip/index.js +6 -0
  160. package/dist/headless/source/components/feedBack/tooltip/index.js.map +7 -0
  161. package/dist/headless/source/components/feedBack/tooltip/tooltip.jsx +92 -0
  162. package/dist/headless/source/components/feedBack/tooltip/tooltip.jsx.map +1 -0
  163. package/dist/headless/source/components/inputs/button/button.jsx +101 -0
  164. package/dist/headless/source/components/inputs/button/button.jsx.map +1 -0
  165. package/dist/headless/source/components/inputs/button/index.js +6 -0
  166. package/dist/headless/source/components/inputs/button/index.js.map +7 -0
  167. package/dist/headless/source/components/inputs/buttonGroups/buttonGroup.jsx +72 -0
  168. package/dist/headless/source/components/inputs/buttonGroups/buttonGroup.jsx.map +1 -0
  169. package/dist/headless/source/components/inputs/buttonGroups/buttonGroupContext.js +8 -0
  170. package/dist/headless/source/components/inputs/buttonGroups/buttonGroupContext.js.map +7 -0
  171. package/dist/headless/source/components/inputs/buttonGroups/index.js +9 -0
  172. package/dist/headless/source/components/inputs/buttonGroups/index.js.map +7 -0
  173. package/dist/headless/source/components/inputs/checkbox/checkbox.jsx +86 -0
  174. package/dist/headless/source/components/inputs/checkbox/checkbox.jsx.map +1 -0
  175. package/dist/headless/source/components/inputs/checkbox/index.js +6 -0
  176. package/dist/headless/source/components/inputs/checkbox/index.js.map +7 -0
  177. package/dist/headless/source/components/inputs/datePicker/dataPickerDays.jsx +87 -0
  178. package/dist/headless/source/components/inputs/datePicker/dataPickerDays.jsx.map +1 -0
  179. package/dist/headless/source/components/inputs/datePicker/dataPickerHeader.jsx +40 -0
  180. package/dist/headless/source/components/inputs/datePicker/dataPickerHeader.jsx.map +1 -0
  181. package/dist/headless/source/components/inputs/datePicker/dataPickerInput.jsx +57 -0
  182. package/dist/headless/source/components/inputs/datePicker/dataPickerInput.jsx.map +1 -0
  183. package/dist/headless/source/components/inputs/datePicker/dateFormat.js +89 -0
  184. package/dist/headless/source/components/inputs/datePicker/dateFormat.js.map +7 -0
  185. package/dist/headless/source/components/inputs/datePicker/datePicker.jsx +241 -0
  186. package/dist/headless/source/components/inputs/datePicker/datePicker.jsx.map +1 -0
  187. package/dist/headless/source/components/inputs/datePicker/datePickerActionLabel.jsx +48 -0
  188. package/dist/headless/source/components/inputs/datePicker/datePickerActionLabel.jsx.map +1 -0
  189. package/dist/headless/source/components/inputs/datePicker/datePickerDay.jsx +52 -0
  190. package/dist/headless/source/components/inputs/datePicker/datePickerDay.jsx.map +1 -0
  191. package/dist/headless/source/components/inputs/datePicker/datePickerIconButton.jsx +36 -0
  192. package/dist/headless/source/components/inputs/datePicker/datePickerIconButton.jsx.map +1 -0
  193. package/dist/headless/source/components/inputs/datePicker/datePickerList.jsx +44 -0
  194. package/dist/headless/source/components/inputs/datePicker/datePickerList.jsx.map +1 -0
  195. package/dist/headless/source/components/inputs/datePicker/dateUtils.js +232 -0
  196. package/dist/headless/source/components/inputs/datePicker/dateUtils.js.map +7 -0
  197. package/dist/headless/source/components/inputs/datePicker/index.js +24 -0
  198. package/dist/headless/source/components/inputs/datePicker/index.js.map +7 -0
  199. package/dist/headless/source/components/inputs/datePicker/openView.js +10 -0
  200. package/dist/headless/source/components/inputs/datePicker/openView.js.map +7 -0
  201. package/dist/headless/source/components/inputs/datePicker/useDateInput.js +56 -0
  202. package/dist/headless/source/components/inputs/datePicker/useDateInput.js.map +7 -0
  203. package/dist/headless/source/components/inputs/dateTimePicker/dateTimeFormat.js +119 -0
  204. package/dist/headless/source/components/inputs/dateTimePicker/dateTimeFormat.js.map +7 -0
  205. package/dist/headless/source/components/inputs/dateTimePicker/dateTimePicker.jsx +200 -0
  206. package/dist/headless/source/components/inputs/dateTimePicker/dateTimePicker.jsx.map +1 -0
  207. package/dist/headless/source/components/inputs/dateTimePicker/dateTimePickerInput.jsx +57 -0
  208. package/dist/headless/source/components/inputs/dateTimePicker/dateTimePickerInput.jsx.map +1 -0
  209. package/dist/headless/source/components/inputs/dateTimePicker/index.js +20 -0
  210. package/dist/headless/source/components/inputs/dateTimePicker/index.js.map +7 -0
  211. package/dist/headless/source/components/inputs/dateTimePicker/useDateTimeInput.js +85 -0
  212. package/dist/headless/source/components/inputs/dateTimePicker/useDateTimeInput.js.map +7 -0
  213. package/dist/headless/source/components/inputs/fileDrop/countPreview.jsx +17 -0
  214. package/dist/headless/source/components/inputs/fileDrop/countPreview.jsx.map +1 -0
  215. package/dist/headless/source/components/inputs/fileDrop/fileDrop.jsx +72 -0
  216. package/dist/headless/source/components/inputs/fileDrop/fileDrop.jsx.map +1 -0
  217. package/dist/headless/source/components/inputs/fileDrop/index.js +14 -0
  218. package/dist/headless/source/components/inputs/fileDrop/index.js.map +7 -0
  219. package/dist/headless/source/components/inputs/fileDrop/preview.jsx +41 -0
  220. package/dist/headless/source/components/inputs/fileDrop/preview.jsx.map +1 -0
  221. package/dist/headless/source/components/inputs/fileDrop/previewWrapper.jsx +27 -0
  222. package/dist/headless/source/components/inputs/fileDrop/previewWrapper.jsx.map +1 -0
  223. package/dist/headless/source/components/inputs/fileDrop/utils.js +7 -0
  224. package/dist/headless/source/components/inputs/fileDrop/utils.js.map +7 -0
  225. package/dist/headless/source/components/inputs/fileInput/fileInput.jsx +46 -0
  226. package/dist/headless/source/components/inputs/fileInput/fileInput.jsx.map +1 -0
  227. package/dist/headless/source/components/inputs/fileInput/index.js +6 -0
  228. package/dist/headless/source/components/inputs/fileInput/index.js.map +7 -0
  229. package/dist/headless/source/components/inputs/floatingButton/floatingButton.jsx +30 -0
  230. package/dist/headless/source/components/inputs/floatingButton/floatingButton.jsx.map +1 -0
  231. package/dist/headless/source/components/inputs/floatingButton/index.js +6 -0
  232. package/dist/headless/source/components/inputs/floatingButton/index.js.map +7 -0
  233. package/dist/headless/source/components/inputs/radioButton/index.js +6 -0
  234. package/dist/headless/source/components/inputs/radioButton/index.js.map +7 -0
  235. package/dist/headless/source/components/inputs/radioButton/radioButton.jsx +75 -0
  236. package/dist/headless/source/components/inputs/radioButton/radioButton.jsx.map +1 -0
  237. package/dist/headless/source/components/inputs/rating/index.js +6 -0
  238. package/dist/headless/source/components/inputs/rating/index.js.map +7 -0
  239. package/dist/headless/source/components/inputs/rating/rating.jsx +124 -0
  240. package/dist/headless/source/components/inputs/rating/rating.jsx.map +1 -0
  241. package/dist/headless/source/components/inputs/selectField/dropdownMenu.jsx +141 -0
  242. package/dist/headless/source/components/inputs/selectField/dropdownMenu.jsx.map +1 -0
  243. package/dist/headless/source/components/inputs/selectField/index.js +8 -0
  244. package/dist/headless/source/components/inputs/selectField/index.js.map +7 -0
  245. package/dist/headless/source/components/inputs/selectField/selectField.jsx +272 -0
  246. package/dist/headless/source/components/inputs/selectField/selectField.jsx.map +1 -0
  247. package/dist/headless/source/components/inputs/slider/index.js +6 -0
  248. package/dist/headless/source/components/inputs/slider/index.js.map +7 -0
  249. package/dist/headless/source/components/inputs/slider/slider.jsx +404 -0
  250. package/dist/headless/source/components/inputs/slider/slider.jsx.map +1 -0
  251. package/dist/headless/source/components/inputs/slider/utils.js +49 -0
  252. package/dist/headless/source/components/inputs/slider/utils.js.map +7 -0
  253. package/dist/headless/source/components/inputs/textField/index.js +9 -0
  254. package/dist/headless/source/components/inputs/textField/index.js.map +7 -0
  255. package/dist/headless/source/components/inputs/textField/textField.jsx +137 -0
  256. package/dist/headless/source/components/inputs/textField/textField.jsx.map +1 -0
  257. package/dist/headless/source/components/inputs/textField/textFieldAdornment.jsx +31 -0
  258. package/dist/headless/source/components/inputs/textField/textFieldAdornment.jsx.map +1 -0
  259. package/dist/headless/source/components/inputs/textField/textFieldWrapper.jsx +83 -0
  260. package/dist/headless/source/components/inputs/textField/textFieldWrapper.jsx.map +1 -0
  261. package/dist/headless/source/components/inputs/textField/types.js +1 -0
  262. package/dist/headless/source/components/inputs/textField/types.js.map +7 -0
  263. package/dist/headless/source/components/inputs/textField/utils.js +13 -0
  264. package/dist/headless/source/components/inputs/textField/utils.js.map +7 -0
  265. package/dist/headless/source/components/inputs/timePicker/index.js +14 -0
  266. package/dist/headless/source/components/inputs/timePicker/index.js.map +7 -0
  267. package/dist/headless/source/components/inputs/timePicker/timeFormat.js +78 -0
  268. package/dist/headless/source/components/inputs/timePicker/timeFormat.js.map +7 -0
  269. package/dist/headless/source/components/inputs/timePicker/timePicker.jsx +114 -0
  270. package/dist/headless/source/components/inputs/timePicker/timePicker.jsx.map +1 -0
  271. package/dist/headless/source/components/inputs/timePicker/timePickerColumns.jsx +42 -0
  272. package/dist/headless/source/components/inputs/timePicker/timePickerColumns.jsx.map +1 -0
  273. package/dist/headless/source/components/inputs/timePicker/timePickerInput.jsx +57 -0
  274. package/dist/headless/source/components/inputs/timePicker/timePickerInput.jsx.map +1 -0
  275. package/dist/headless/source/components/inputs/timePicker/timePickerList.jsx +36 -0
  276. package/dist/headless/source/components/inputs/timePicker/timePickerList.jsx.map +1 -0
  277. package/dist/headless/source/components/inputs/timePicker/timeUtils.js +96 -0
  278. package/dist/headless/source/components/inputs/timePicker/timeUtils.js.map +7 -0
  279. package/dist/headless/source/components/inputs/timePicker/useTimeInput.js +57 -0
  280. package/dist/headless/source/components/inputs/timePicker/useTimeInput.js.map +7 -0
  281. package/dist/headless/source/components/inputs/toggle/index.js +6 -0
  282. package/dist/headless/source/components/inputs/toggle/index.js.map +7 -0
  283. package/dist/headless/source/components/inputs/toggle/toggle.jsx +77 -0
  284. package/dist/headless/source/components/inputs/toggle/toggle.jsx.map +1 -0
  285. package/dist/headless/source/components/layout/appLayout/appLayout.jsx +101 -0
  286. package/dist/headless/source/components/layout/appLayout/appLayout.jsx.map +1 -0
  287. package/dist/headless/source/components/layout/appLayout/index.js +6 -0
  288. package/dist/headless/source/components/layout/appLayout/index.js.map +7 -0
  289. package/dist/headless/source/components/layout/divider/divider.jsx +68 -0
  290. package/dist/headless/source/components/layout/divider/divider.jsx.map +1 -0
  291. package/dist/headless/source/components/layout/divider/index.js +6 -0
  292. package/dist/headless/source/components/layout/divider/index.js.map +7 -0
  293. package/dist/headless/source/components/layout/grid/grid.jsx +112 -0
  294. package/dist/headless/source/components/layout/grid/grid.jsx.map +1 -0
  295. package/dist/headless/source/components/layout/grid/index.js +8 -0
  296. package/dist/headless/source/components/layout/grid/index.js.map +7 -0
  297. package/dist/headless/source/components/layout/page/index.js +6 -0
  298. package/dist/headless/source/components/layout/page/index.js.map +7 -0
  299. package/dist/headless/source/components/layout/page/page.jsx +28 -0
  300. package/dist/headless/source/components/layout/page/page.jsx.map +1 -0
  301. package/dist/headless/source/components/layout/pageHeader/index.js +6 -0
  302. package/dist/headless/source/components/layout/pageHeader/index.js.map +7 -0
  303. package/dist/headless/source/components/layout/pageHeader/pageHeader.jsx +52 -0
  304. package/dist/headless/source/components/layout/pageHeader/pageHeader.jsx.map +1 -0
  305. package/dist/headless/source/components/layout/screenDivider/index.js +6 -0
  306. package/dist/headless/source/components/layout/screenDivider/index.js.map +7 -0
  307. package/dist/headless/source/components/layout/screenDivider/screenDivider.jsx +129 -0
  308. package/dist/headless/source/components/layout/screenDivider/screenDivider.jsx.map +1 -0
  309. package/dist/headless/source/components/layout/sheet/index.js +6 -0
  310. package/dist/headless/source/components/layout/sheet/index.js.map +7 -0
  311. package/dist/headless/source/components/layout/sheet/sheet.jsx +261 -0
  312. package/dist/headless/source/components/layout/sheet/sheet.jsx.map +1 -0
  313. package/dist/headless/source/components/layout/stack/index.js +6 -0
  314. package/dist/headless/source/components/layout/stack/index.js.map +7 -0
  315. package/dist/headless/source/components/layout/stack/stack.jsx +53 -0
  316. package/dist/headless/source/components/layout/stack/stack.jsx.map +1 -0
  317. package/dist/headless/source/components/navigation/appBar/appBar.jsx +65 -0
  318. package/dist/headless/source/components/navigation/appBar/appBar.jsx.map +1 -0
  319. package/dist/headless/source/components/navigation/appBar/index.js +6 -0
  320. package/dist/headless/source/components/navigation/appBar/index.js.map +7 -0
  321. package/dist/headless/source/components/navigation/bottomBar/bottomBar.jsx +134 -0
  322. package/dist/headless/source/components/navigation/bottomBar/bottomBar.jsx.map +1 -0
  323. package/dist/headless/source/components/navigation/bottomBar/index.js +6 -0
  324. package/dist/headless/source/components/navigation/bottomBar/index.js.map +7 -0
  325. package/dist/headless/source/components/navigation/breadcrumbs/breadcrumbs.jsx +62 -0
  326. package/dist/headless/source/components/navigation/breadcrumbs/breadcrumbs.jsx.map +1 -0
  327. package/dist/headless/source/components/navigation/breadcrumbs/index.js +6 -0
  328. package/dist/headless/source/components/navigation/breadcrumbs/index.js.map +7 -0
  329. package/dist/headless/source/components/navigation/menu/index.js +23 -0
  330. package/dist/headless/source/components/navigation/menu/index.js.map +7 -0
  331. package/dist/headless/source/components/navigation/menu/menu.jsx +27 -0
  332. package/dist/headless/source/components/navigation/menu/menu.jsx.map +1 -0
  333. package/dist/headless/source/components/navigation/menu/menuComponent.jsx +18 -0
  334. package/dist/headless/source/components/navigation/menu/menuComponent.jsx.map +1 -0
  335. package/dist/headless/source/components/navigation/menu/menuContext.js +14 -0
  336. package/dist/headless/source/components/navigation/menu/menuContext.js.map +7 -0
  337. package/dist/headless/source/components/navigation/menu/menuDivider.jsx +19 -0
  338. package/dist/headless/source/components/navigation/menu/menuDivider.jsx.map +1 -0
  339. package/dist/headless/source/components/navigation/menu/menuFloating.jsx +84 -0
  340. package/dist/headless/source/components/navigation/menu/menuFloating.jsx.map +1 -0
  341. package/dist/headless/source/components/navigation/menu/menuItem.jsx +68 -0
  342. package/dist/headless/source/components/navigation/menu/menuItem.jsx.map +1 -0
  343. package/dist/headless/source/components/navigation/menu/menuItemIcon.jsx +25 -0
  344. package/dist/headless/source/components/navigation/menu/menuItemIcon.jsx.map +1 -0
  345. package/dist/headless/source/components/navigation/menu/menuItemText.jsx +25 -0
  346. package/dist/headless/source/components/navigation/menu/menuItemText.jsx.map +1 -0
  347. package/dist/headless/source/components/navigation/menu/menuList.jsx +46 -0
  348. package/dist/headless/source/components/navigation/menu/menuList.jsx.map +1 -0
  349. package/dist/headless/source/components/navigation/menu/menuSubmenu.jsx +86 -0
  350. package/dist/headless/source/components/navigation/menu/menuSubmenu.jsx.map +1 -0
  351. package/dist/headless/source/components/navigation/pagination/index.js +6 -0
  352. package/dist/headless/source/components/navigation/pagination/index.js.map +7 -0
  353. package/dist/headless/source/components/navigation/pagination/pagination.jsx +142 -0
  354. package/dist/headless/source/components/navigation/pagination/pagination.jsx.map +1 -0
  355. package/dist/headless/source/components/navigation/sidebar/index.js +6 -0
  356. package/dist/headless/source/components/navigation/sidebar/index.js.map +7 -0
  357. package/dist/headless/source/components/navigation/sidebar/sidebar.jsx +114 -0
  358. package/dist/headless/source/components/navigation/sidebar/sidebar.jsx.map +1 -0
  359. package/dist/headless/source/components/navigation/stepper/index.js +6 -0
  360. package/dist/headless/source/components/navigation/stepper/index.js.map +7 -0
  361. package/dist/headless/source/components/navigation/stepper/stepper.jsx +82 -0
  362. package/dist/headless/source/components/navigation/stepper/stepper.jsx.map +1 -0
  363. package/dist/headless/source/components/navigation/tabs/index.js +10 -0
  364. package/dist/headless/source/components/navigation/tabs/index.js.map +7 -0
  365. package/dist/headless/source/components/navigation/tabs/tab/tab.jsx +75 -0
  366. package/dist/headless/source/components/navigation/tabs/tab/tab.jsx.map +1 -0
  367. package/dist/headless/source/components/navigation/tabs/tabs.jsx +141 -0
  368. package/dist/headless/source/components/navigation/tabs/tabs.jsx.map +1 -0
  369. package/dist/headless/source/components/navigation/tabs/tabsContext.js +8 -0
  370. package/dist/headless/source/components/navigation/tabs/tabsContext.js.map +7 -0
  371. package/dist/headless/source/index.js +309 -0
  372. package/dist/headless/source/index.js.map +7 -0
  373. package/dist/headless/source/primitives/callHandler.js +12 -0
  374. package/dist/headless/source/primitives/callHandler.js.map +7 -0
  375. package/dist/headless/source/primitives/createControllableState.js +19 -0
  376. package/dist/headless/source/primitives/createControllableState.js.map +7 -0
  377. package/dist/headless/source/primitives/createCssTransition.js +59 -0
  378. package/dist/headless/source/primitives/createCssTransition.js.map +7 -0
  379. package/dist/headless/source/primitives/createDropzone.js +46 -0
  380. package/dist/headless/source/primitives/createDropzone.js.map +7 -0
  381. package/dist/headless/source/primitives/createFloating.js +48 -0
  382. package/dist/headless/source/primitives/createFloating.js.map +7 -0
  383. package/dist/headless/source/primitives/createFocusTrap.js +50 -0
  384. package/dist/headless/source/primitives/createFocusTrap.js.map +7 -0
  385. package/dist/headless/source/primitives/createId.js +9 -0
  386. package/dist/headless/source/primitives/createId.js.map +7 -0
  387. package/dist/headless/source/primitives/createMaskedInput.js +35 -0
  388. package/dist/headless/source/primitives/createMaskedInput.js.map +7 -0
  389. package/dist/headless/source/primitives/createTheme.js +51 -0
  390. package/dist/headless/source/primitives/createTheme.js.map +7 -0
  391. package/dist/headless/source/primitives/createVirtualList.js +19 -0
  392. package/dist/headless/source/primitives/createVirtualList.js.map +7 -0
  393. package/dist/headless/source/primitives/mergeRefs.js +13 -0
  394. package/dist/headless/source/primitives/mergeRefs.js.map +7 -0
  395. package/dist/headless/source/ssr-published.ssr-spec.jsx +35 -0
  396. package/dist/headless/source/ssr-published.ssr-spec.jsx.map +1 -0
  397. package/dist/headless/source/ssr.ssr-spec.jsx +113 -0
  398. package/dist/headless/source/ssr.ssr-spec.jsx.map +1 -0
  399. package/dist/headless/source/utils/animate.js +35 -0
  400. package/dist/headless/source/utils/animate.js.map +7 -0
  401. package/dist/headless/source/utils/debounce.js +23 -0
  402. package/dist/headless/source/utils/debounce.js.map +7 -0
  403. package/dist/headless/source/utils/floating.js +42 -0
  404. package/dist/headless/source/utils/floating.js.map +7 -0
  405. package/dist/headless/source/utils/throttle.js +41 -0
  406. package/dist/headless/source/utils/throttle.js.map +7 -0
  407. package/dist/source/components/base/animateHeight/animateHeight.jsx +177 -0
  408. package/dist/source/components/base/animateHeight/animateHeight.jsx.map +1 -0
  409. package/dist/source/components/base/animateHeight/index.js +6 -0
  410. package/dist/source/components/base/animateHeight/index.js.map +7 -0
  411. package/dist/source/components/base/icon/icon.jsx +61 -0
  412. package/dist/source/components/base/icon/icon.jsx.map +1 -0
  413. package/dist/source/components/base/icon/index.js +6 -0
  414. package/dist/source/components/base/icon/index.js.map +7 -0
  415. package/dist/source/components/base/ripple/index.js +6 -0
  416. package/dist/source/components/base/ripple/index.js.map +7 -0
  417. package/dist/source/components/base/ripple/ripple.jsx +64 -0
  418. package/dist/source/components/base/ripple/ripple.jsx.map +1 -0
  419. package/dist/source/components/clickAwayListener/clickAwayListener.jsx +73 -0
  420. package/dist/source/components/clickAwayListener/clickAwayListener.jsx.map +1 -0
  421. package/dist/source/components/clickAwayListener/index.js +6 -0
  422. package/dist/source/components/clickAwayListener/index.js.map +7 -0
  423. package/dist/source/components/dataDisplay/accordion/accordion.jsx +83 -0
  424. package/dist/source/components/dataDisplay/accordion/accordion.jsx.map +1 -0
  425. package/dist/source/components/dataDisplay/accordion/index.js +6 -0
  426. package/dist/source/components/dataDisplay/accordion/index.js.map +7 -0
  427. package/dist/source/components/dataDisplay/avatar/avatar.jsx +96 -0
  428. package/dist/source/components/dataDisplay/avatar/avatar.jsx.map +1 -0
  429. package/dist/source/components/dataDisplay/avatar/index.js +7 -0
  430. package/dist/source/components/dataDisplay/avatar/index.js.map +7 -0
  431. package/dist/source/components/dataDisplay/badge/badge.jsx +57 -0
  432. package/dist/source/components/dataDisplay/badge/badge.jsx.map +1 -0
  433. package/dist/source/components/dataDisplay/badge/index.js +6 -0
  434. package/dist/source/components/dataDisplay/badge/index.js.map +7 -0
  435. package/dist/source/components/dataDisplay/card/card.jsx +55 -0
  436. package/dist/source/components/dataDisplay/card/card.jsx.map +1 -0
  437. package/dist/source/components/dataDisplay/card/index.js +6 -0
  438. package/dist/source/components/dataDisplay/card/index.js.map +7 -0
  439. package/dist/source/components/dataDisplay/carousel/carousel.jsx +408 -0
  440. package/dist/source/components/dataDisplay/carousel/carousel.jsx.map +1 -0
  441. package/dist/source/components/dataDisplay/carousel/index.js +6 -0
  442. package/dist/source/components/dataDisplay/carousel/index.js.map +7 -0
  443. package/dist/source/components/dataDisplay/carousel/utils.js +76 -0
  444. package/dist/source/components/dataDisplay/carousel/utils.js.map +7 -0
  445. package/dist/source/components/dataDisplay/chat/chat.jsx +156 -0
  446. package/dist/source/components/dataDisplay/chat/chat.jsx.map +1 -0
  447. package/dist/source/components/dataDisplay/chat/chatAttachmentImage.jsx +53 -0
  448. package/dist/source/components/dataDisplay/chat/chatAttachmentImage.jsx.map +1 -0
  449. package/dist/source/components/dataDisplay/chat/chatAttachments.jsx +35 -0
  450. package/dist/source/components/dataDisplay/chat/chatAttachments.jsx.map +1 -0
  451. package/dist/source/components/dataDisplay/chat/chatComposer.jsx +170 -0
  452. package/dist/source/components/dataDisplay/chat/chatComposer.jsx.map +1 -0
  453. package/dist/source/components/dataDisplay/chat/chatHeader.jsx +55 -0
  454. package/dist/source/components/dataDisplay/chat/chatHeader.jsx.map +1 -0
  455. package/dist/source/components/dataDisplay/chat/chatIconButton.jsx +38 -0
  456. package/dist/source/components/dataDisplay/chat/chatIconButton.jsx.map +1 -0
  457. package/dist/source/components/dataDisplay/chat/chatLayout.jsx +121 -0
  458. package/dist/source/components/dataDisplay/chat/chatLayout.jsx.map +1 -0
  459. package/dist/source/components/dataDisplay/chat/chatMessageAvatar.jsx +19 -0
  460. package/dist/source/components/dataDisplay/chat/chatMessageAvatar.jsx.map +1 -0
  461. package/dist/source/components/dataDisplay/chat/chatMessageBubble.jsx +56 -0
  462. package/dist/source/components/dataDisplay/chat/chatMessageBubble.jsx.map +1 -0
  463. package/dist/source/components/dataDisplay/chat/chatMessageIncoming.jsx +21 -0
  464. package/dist/source/components/dataDisplay/chat/chatMessageIncoming.jsx.map +1 -0
  465. package/dist/source/components/dataDisplay/chat/chatMessageItem.jsx +56 -0
  466. package/dist/source/components/dataDisplay/chat/chatMessageItem.jsx.map +1 -0
  467. package/dist/source/components/dataDisplay/chat/chatMessageOutgoing.jsx +25 -0
  468. package/dist/source/components/dataDisplay/chat/chatMessageOutgoing.jsx.map +1 -0
  469. package/dist/source/components/dataDisplay/chat/chatMessageSkeleton.jsx +33 -0
  470. package/dist/source/components/dataDisplay/chat/chatMessageSkeleton.jsx.map +1 -0
  471. package/dist/source/components/dataDisplay/chat/chatMessageStatus.jsx +35 -0
  472. package/dist/source/components/dataDisplay/chat/chatMessageStatus.jsx.map +1 -0
  473. package/dist/source/components/dataDisplay/chat/chatMessageSystem.jsx +17 -0
  474. package/dist/source/components/dataDisplay/chat/chatMessageSystem.jsx.map +1 -0
  475. package/dist/source/components/dataDisplay/chat/chatMessages.jsx +63 -0
  476. package/dist/source/components/dataDisplay/chat/chatMessages.jsx.map +1 -0
  477. package/dist/source/components/dataDisplay/chat/chatOverlayLayout.jsx +60 -0
  478. package/dist/source/components/dataDisplay/chat/chatOverlayLayout.jsx.map +1 -0
  479. package/dist/source/components/dataDisplay/chat/chatShell.jsx +66 -0
  480. package/dist/source/components/dataDisplay/chat/chatShell.jsx.map +1 -0
  481. package/dist/source/components/dataDisplay/chat/index.js +82 -0
  482. package/dist/source/components/dataDisplay/chat/index.js.map +7 -0
  483. package/dist/source/components/dataDisplay/chat/types.js +25 -0
  484. package/dist/source/components/dataDisplay/chat/types.js.map +7 -0
  485. package/dist/source/components/dataDisplay/chat/useChatFileUpload.js +49 -0
  486. package/dist/source/components/dataDisplay/chat/useChatFileUpload.js.map +7 -0
  487. package/dist/source/components/dataDisplay/chat/useChatInfiniteScroll.js +27 -0
  488. package/dist/source/components/dataDisplay/chat/useChatInfiniteScroll.js.map +7 -0
  489. package/dist/source/components/dataDisplay/chat/useChatStickToBottom.js +54 -0
  490. package/dist/source/components/dataDisplay/chat/useChatStickToBottom.js.map +7 -0
  491. package/dist/source/components/dataDisplay/chat/utils.js +103 -0
  492. package/dist/source/components/dataDisplay/chat/utils.js.map +7 -0
  493. package/dist/source/components/dataDisplay/chip/chip.jsx +120 -0
  494. package/dist/source/components/dataDisplay/chip/chip.jsx.map +1 -0
  495. package/dist/source/components/dataDisplay/chip/index.js +6 -0
  496. package/dist/source/components/dataDisplay/chip/index.js.map +7 -0
  497. package/dist/source/components/dataDisplay/expansionPanel/expansionPanel.jsx +165 -0
  498. package/dist/source/components/dataDisplay/expansionPanel/expansionPanel.jsx.map +1 -0
  499. package/dist/source/components/dataDisplay/expansionPanel/index.js +6 -0
  500. package/dist/source/components/dataDisplay/expansionPanel/index.js.map +7 -0
  501. package/dist/source/components/dataDisplay/imagesList/imagesList.jsx +26 -0
  502. package/dist/source/components/dataDisplay/imagesList/imagesList.jsx.map +1 -0
  503. package/dist/source/components/dataDisplay/imagesList/imagesList.types.js +1 -0
  504. package/dist/source/components/dataDisplay/imagesList/imagesList.types.js.map +7 -0
  505. package/dist/source/components/dataDisplay/imagesList/imagesListContext.js +8 -0
  506. package/dist/source/components/dataDisplay/imagesList/imagesListContext.js.map +7 -0
  507. package/dist/source/components/dataDisplay/imagesList/imagesListItem/imagesListItem.jsx +56 -0
  508. package/dist/source/components/dataDisplay/imagesList/imagesListItem/imagesListItem.jsx.map +1 -0
  509. package/dist/source/components/dataDisplay/imagesList/imagesListItem/imagesListItemModal.jsx +30 -0
  510. package/dist/source/components/dataDisplay/imagesList/imagesListItem/imagesListItemModal.jsx.map +1 -0
  511. package/dist/source/components/dataDisplay/imagesList/index.js +12 -0
  512. package/dist/source/components/dataDisplay/imagesList/index.js.map +7 -0
  513. package/dist/source/components/dataDisplay/list/index.js +8 -0
  514. package/dist/source/components/dataDisplay/list/index.js.map +7 -0
  515. package/dist/source/components/dataDisplay/list/list.jsx +25 -0
  516. package/dist/source/components/dataDisplay/list/list.jsx.map +1 -0
  517. package/dist/source/components/dataDisplay/list/listItem.jsx +53 -0
  518. package/dist/source/components/dataDisplay/list/listItem.jsx.map +1 -0
  519. package/dist/source/components/dataDisplay/table/index.js +17 -0
  520. package/dist/source/components/dataDisplay/table/index.js.map +7 -0
  521. package/dist/source/components/dataDisplay/table/table.jsx +47 -0
  522. package/dist/source/components/dataDisplay/table/table.jsx.map +1 -0
  523. package/dist/source/components/dataDisplay/table/tableBody.jsx +15 -0
  524. package/dist/source/components/dataDisplay/table/tableBody.jsx.map +1 -0
  525. package/dist/source/components/dataDisplay/table/tableCell.jsx +16 -0
  526. package/dist/source/components/dataDisplay/table/tableCell.jsx.map +1 -0
  527. package/dist/source/components/dataDisplay/table/tableHead.jsx +15 -0
  528. package/dist/source/components/dataDisplay/table/tableHead.jsx.map +1 -0
  529. package/dist/source/components/dataDisplay/table/tableHeadCell.jsx +53 -0
  530. package/dist/source/components/dataDisplay/table/tableHeadCell.jsx.map +1 -0
  531. package/dist/source/components/dataDisplay/table/tablePagination/tablePagination.jsx +48 -0
  532. package/dist/source/components/dataDisplay/table/tablePagination/tablePagination.jsx.map +1 -0
  533. package/dist/source/components/dataDisplay/table/tableRow.jsx +25 -0
  534. package/dist/source/components/dataDisplay/table/tableRow.jsx.map +1 -0
  535. package/dist/source/components/dataDisplay/treeView/index.js +6 -0
  536. package/dist/source/components/dataDisplay/treeView/index.js.map +7 -0
  537. package/dist/source/components/dataDisplay/treeView/treeView.jsx +173 -0
  538. package/dist/source/components/dataDisplay/treeView/treeView.jsx.map +1 -0
  539. package/dist/source/components/dataDisplay/typography/index.js +6 -0
  540. package/dist/source/components/dataDisplay/typography/index.js.map +7 -0
  541. package/dist/source/components/dataDisplay/typography/typography.jsx +58 -0
  542. package/dist/source/components/dataDisplay/typography/typography.jsx.map +1 -0
  543. package/dist/source/components/feedBack/message/index.js +7 -0
  544. package/dist/source/components/feedBack/message/index.js.map +7 -0
  545. package/dist/source/components/feedBack/message/message.jsx +52 -0
  546. package/dist/source/components/feedBack/message/message.jsx.map +1 -0
  547. package/dist/source/components/feedBack/modal/index.js +6 -0
  548. package/dist/source/components/feedBack/modal/index.js.map +7 -0
  549. package/dist/source/components/feedBack/modal/modal.jsx +102 -0
  550. package/dist/source/components/feedBack/modal/modal.jsx.map +1 -0
  551. package/dist/source/components/feedBack/progressIndicator/index.js +7 -0
  552. package/dist/source/components/feedBack/progressIndicator/index.js.map +7 -0
  553. package/dist/source/components/feedBack/progressIndicator/progressIndicator.jsx +69 -0
  554. package/dist/source/components/feedBack/progressIndicator/progressIndicator.jsx.map +1 -0
  555. package/dist/source/components/feedBack/skeleton/index.js +6 -0
  556. package/dist/source/components/feedBack/skeleton/index.js.map +7 -0
  557. package/dist/source/components/feedBack/skeleton/skeleton.jsx +66 -0
  558. package/dist/source/components/feedBack/skeleton/skeleton.jsx.map +1 -0
  559. package/dist/source/components/feedBack/snackbar/index.js +10 -0
  560. package/dist/source/components/feedBack/snackbar/index.js.map +7 -0
  561. package/dist/source/components/feedBack/snackbar/snackbar.jsx +197 -0
  562. package/dist/source/components/feedBack/snackbar/snackbar.jsx.map +1 -0
  563. package/dist/source/components/feedBack/snackbar/useSnackbarsPortal.js +21 -0
  564. package/dist/source/components/feedBack/snackbar/useSnackbarsPortal.js.map +7 -0
  565. package/dist/source/components/feedBack/tooltip/index.js +6 -0
  566. package/dist/source/components/feedBack/tooltip/index.js.map +7 -0
  567. package/dist/source/components/feedBack/tooltip/tooltip.jsx +93 -0
  568. package/dist/source/components/feedBack/tooltip/tooltip.jsx.map +1 -0
  569. package/dist/source/components/inputs/button/button.jsx +102 -0
  570. package/dist/source/components/inputs/button/button.jsx.map +1 -0
  571. package/dist/source/components/inputs/button/index.js +6 -0
  572. package/dist/source/components/inputs/button/index.js.map +7 -0
  573. package/dist/source/components/inputs/buttonGroups/buttonGroup.jsx +73 -0
  574. package/dist/source/components/inputs/buttonGroups/buttonGroup.jsx.map +1 -0
  575. package/dist/source/components/inputs/buttonGroups/buttonGroupContext.js +8 -0
  576. package/dist/source/components/inputs/buttonGroups/buttonGroupContext.js.map +7 -0
  577. package/dist/source/components/inputs/buttonGroups/index.js +9 -0
  578. package/dist/source/components/inputs/buttonGroups/index.js.map +7 -0
  579. package/dist/source/components/inputs/checkbox/checkbox.jsx +87 -0
  580. package/dist/source/components/inputs/checkbox/checkbox.jsx.map +1 -0
  581. package/dist/source/components/inputs/checkbox/index.js +6 -0
  582. package/dist/source/components/inputs/checkbox/index.js.map +7 -0
  583. package/dist/source/components/inputs/datePicker/dataPickerDays.jsx +87 -0
  584. package/dist/source/components/inputs/datePicker/dataPickerDays.jsx.map +1 -0
  585. package/dist/source/components/inputs/datePicker/dataPickerHeader.jsx +40 -0
  586. package/dist/source/components/inputs/datePicker/dataPickerHeader.jsx.map +1 -0
  587. package/dist/source/components/inputs/datePicker/dataPickerInput.jsx +57 -0
  588. package/dist/source/components/inputs/datePicker/dataPickerInput.jsx.map +1 -0
  589. package/dist/source/components/inputs/datePicker/dateFormat.js +89 -0
  590. package/dist/source/components/inputs/datePicker/dateFormat.js.map +7 -0
  591. package/dist/source/components/inputs/datePicker/datePicker.jsx +242 -0
  592. package/dist/source/components/inputs/datePicker/datePicker.jsx.map +1 -0
  593. package/dist/source/components/inputs/datePicker/datePickerActionLabel.jsx +48 -0
  594. package/dist/source/components/inputs/datePicker/datePickerActionLabel.jsx.map +1 -0
  595. package/dist/source/components/inputs/datePicker/datePickerDay.jsx +52 -0
  596. package/dist/source/components/inputs/datePicker/datePickerDay.jsx.map +1 -0
  597. package/dist/source/components/inputs/datePicker/datePickerIconButton.jsx +36 -0
  598. package/dist/source/components/inputs/datePicker/datePickerIconButton.jsx.map +1 -0
  599. package/dist/source/components/inputs/datePicker/datePickerList.jsx +44 -0
  600. package/dist/source/components/inputs/datePicker/datePickerList.jsx.map +1 -0
  601. package/dist/source/components/inputs/datePicker/dateUtils.js +232 -0
  602. package/dist/source/components/inputs/datePicker/dateUtils.js.map +7 -0
  603. package/dist/source/components/inputs/datePicker/index.js +24 -0
  604. package/dist/source/components/inputs/datePicker/index.js.map +7 -0
  605. package/dist/source/components/inputs/datePicker/openView.js +10 -0
  606. package/dist/source/components/inputs/datePicker/openView.js.map +7 -0
  607. package/dist/source/components/inputs/datePicker/useDateInput.js +56 -0
  608. package/dist/source/components/inputs/datePicker/useDateInput.js.map +7 -0
  609. package/dist/source/components/inputs/dateTimePicker/dateTimeFormat.js +119 -0
  610. package/dist/source/components/inputs/dateTimePicker/dateTimeFormat.js.map +7 -0
  611. package/dist/source/components/inputs/dateTimePicker/dateTimePicker.jsx +200 -0
  612. package/dist/source/components/inputs/dateTimePicker/dateTimePicker.jsx.map +1 -0
  613. package/dist/source/components/inputs/dateTimePicker/dateTimePickerInput.jsx +57 -0
  614. package/dist/source/components/inputs/dateTimePicker/dateTimePickerInput.jsx.map +1 -0
  615. package/dist/source/components/inputs/dateTimePicker/index.js +20 -0
  616. package/dist/source/components/inputs/dateTimePicker/index.js.map +7 -0
  617. package/dist/source/components/inputs/dateTimePicker/useDateTimeInput.js +85 -0
  618. package/dist/source/components/inputs/dateTimePicker/useDateTimeInput.js.map +7 -0
  619. package/dist/source/components/inputs/fileDrop/countPreview.jsx +17 -0
  620. package/dist/source/components/inputs/fileDrop/countPreview.jsx.map +1 -0
  621. package/dist/source/components/inputs/fileDrop/fileDrop.jsx +73 -0
  622. package/dist/source/components/inputs/fileDrop/fileDrop.jsx.map +1 -0
  623. package/dist/source/components/inputs/fileDrop/index.js +14 -0
  624. package/dist/source/components/inputs/fileDrop/index.js.map +7 -0
  625. package/dist/source/components/inputs/fileDrop/preview.jsx +41 -0
  626. package/dist/source/components/inputs/fileDrop/preview.jsx.map +1 -0
  627. package/dist/source/components/inputs/fileDrop/previewWrapper.jsx +27 -0
  628. package/dist/source/components/inputs/fileDrop/previewWrapper.jsx.map +1 -0
  629. package/dist/source/components/inputs/fileDrop/utils.js +7 -0
  630. package/dist/source/components/inputs/fileDrop/utils.js.map +7 -0
  631. package/dist/source/components/inputs/fileInput/fileInput.jsx +47 -0
  632. package/dist/source/components/inputs/fileInput/fileInput.jsx.map +1 -0
  633. package/dist/source/components/inputs/fileInput/index.js +6 -0
  634. package/dist/source/components/inputs/fileInput/index.js.map +7 -0
  635. package/dist/source/components/inputs/floatingButton/floatingButton.jsx +31 -0
  636. package/dist/source/components/inputs/floatingButton/floatingButton.jsx.map +1 -0
  637. package/dist/source/components/inputs/floatingButton/index.js +6 -0
  638. package/dist/source/components/inputs/floatingButton/index.js.map +7 -0
  639. package/dist/source/components/inputs/radioButton/index.js +6 -0
  640. package/dist/source/components/inputs/radioButton/index.js.map +7 -0
  641. package/dist/source/components/inputs/radioButton/radioButton.jsx +76 -0
  642. package/dist/source/components/inputs/radioButton/radioButton.jsx.map +1 -0
  643. package/dist/source/components/inputs/rating/index.js +6 -0
  644. package/dist/source/components/inputs/rating/index.js.map +7 -0
  645. package/dist/source/components/inputs/rating/rating.jsx +125 -0
  646. package/dist/source/components/inputs/rating/rating.jsx.map +1 -0
  647. package/dist/source/components/inputs/selectField/dropdownMenu.jsx +141 -0
  648. package/dist/source/components/inputs/selectField/dropdownMenu.jsx.map +1 -0
  649. package/dist/source/components/inputs/selectField/index.js +8 -0
  650. package/dist/source/components/inputs/selectField/index.js.map +7 -0
  651. package/dist/source/components/inputs/selectField/selectField.jsx +273 -0
  652. package/dist/source/components/inputs/selectField/selectField.jsx.map +1 -0
  653. package/dist/source/components/inputs/slider/index.js +6 -0
  654. package/dist/source/components/inputs/slider/index.js.map +7 -0
  655. package/dist/source/components/inputs/slider/slider.jsx +405 -0
  656. package/dist/source/components/inputs/slider/slider.jsx.map +1 -0
  657. package/dist/source/components/inputs/slider/utils.js +49 -0
  658. package/dist/source/components/inputs/slider/utils.js.map +7 -0
  659. package/dist/source/components/inputs/textField/index.js +9 -0
  660. package/dist/source/components/inputs/textField/index.js.map +7 -0
  661. package/dist/source/components/inputs/textField/textField.jsx +138 -0
  662. package/dist/source/components/inputs/textField/textField.jsx.map +1 -0
  663. package/dist/source/components/inputs/textField/textFieldAdornment.jsx +31 -0
  664. package/dist/source/components/inputs/textField/textFieldAdornment.jsx.map +1 -0
  665. package/dist/source/components/inputs/textField/textFieldWrapper.jsx +83 -0
  666. package/dist/source/components/inputs/textField/textFieldWrapper.jsx.map +1 -0
  667. package/dist/source/components/inputs/textField/types.js +1 -0
  668. package/dist/source/components/inputs/textField/types.js.map +7 -0
  669. package/dist/source/components/inputs/textField/utils.js +13 -0
  670. package/dist/source/components/inputs/textField/utils.js.map +7 -0
  671. package/dist/source/components/inputs/timePicker/index.js +14 -0
  672. package/dist/source/components/inputs/timePicker/index.js.map +7 -0
  673. package/dist/source/components/inputs/timePicker/timeFormat.js +78 -0
  674. package/dist/source/components/inputs/timePicker/timeFormat.js.map +7 -0
  675. package/dist/source/components/inputs/timePicker/timePicker.jsx +115 -0
  676. package/dist/source/components/inputs/timePicker/timePicker.jsx.map +1 -0
  677. package/dist/source/components/inputs/timePicker/timePickerColumns.jsx +42 -0
  678. package/dist/source/components/inputs/timePicker/timePickerColumns.jsx.map +1 -0
  679. package/dist/source/components/inputs/timePicker/timePickerInput.jsx +57 -0
  680. package/dist/source/components/inputs/timePicker/timePickerInput.jsx.map +1 -0
  681. package/dist/source/components/inputs/timePicker/timePickerList.jsx +36 -0
  682. package/dist/source/components/inputs/timePicker/timePickerList.jsx.map +1 -0
  683. package/dist/source/components/inputs/timePicker/timeUtils.js +96 -0
  684. package/dist/source/components/inputs/timePicker/timeUtils.js.map +7 -0
  685. package/dist/source/components/inputs/timePicker/useTimeInput.js +57 -0
  686. package/dist/source/components/inputs/timePicker/useTimeInput.js.map +7 -0
  687. package/dist/source/components/inputs/toggle/index.js +6 -0
  688. package/dist/source/components/inputs/toggle/index.js.map +7 -0
  689. package/dist/source/components/inputs/toggle/toggle.jsx +78 -0
  690. package/dist/source/components/inputs/toggle/toggle.jsx.map +1 -0
  691. package/dist/source/components/layout/appLayout/appLayout.jsx +102 -0
  692. package/dist/source/components/layout/appLayout/appLayout.jsx.map +1 -0
  693. package/dist/source/components/layout/appLayout/index.js +6 -0
  694. package/dist/source/components/layout/appLayout/index.js.map +7 -0
  695. package/dist/source/components/layout/divider/divider.jsx +69 -0
  696. package/dist/source/components/layout/divider/divider.jsx.map +1 -0
  697. package/dist/source/components/layout/divider/index.js +6 -0
  698. package/dist/source/components/layout/divider/index.js.map +7 -0
  699. package/dist/source/components/layout/grid/grid.jsx +113 -0
  700. package/dist/source/components/layout/grid/grid.jsx.map +1 -0
  701. package/dist/source/components/layout/grid/index.js +8 -0
  702. package/dist/source/components/layout/grid/index.js.map +7 -0
  703. package/dist/source/components/layout/page/index.js +6 -0
  704. package/dist/source/components/layout/page/index.js.map +7 -0
  705. package/dist/source/components/layout/page/page.jsx +29 -0
  706. package/dist/source/components/layout/page/page.jsx.map +1 -0
  707. package/dist/source/components/layout/pageHeader/index.js +6 -0
  708. package/dist/source/components/layout/pageHeader/index.js.map +7 -0
  709. package/dist/source/components/layout/pageHeader/pageHeader.jsx +53 -0
  710. package/dist/source/components/layout/pageHeader/pageHeader.jsx.map +1 -0
  711. package/dist/source/components/layout/screenDivider/index.js +6 -0
  712. package/dist/source/components/layout/screenDivider/index.js.map +7 -0
  713. package/dist/source/components/layout/screenDivider/screenDivider.jsx +130 -0
  714. package/dist/source/components/layout/screenDivider/screenDivider.jsx.map +1 -0
  715. package/dist/source/components/layout/sheet/index.js +6 -0
  716. package/dist/source/components/layout/sheet/index.js.map +7 -0
  717. package/dist/source/components/layout/sheet/sheet.jsx +262 -0
  718. package/dist/source/components/layout/sheet/sheet.jsx.map +1 -0
  719. package/dist/source/components/layout/stack/index.js +6 -0
  720. package/dist/source/components/layout/stack/index.js.map +7 -0
  721. package/dist/source/components/layout/stack/stack.jsx +54 -0
  722. package/dist/source/components/layout/stack/stack.jsx.map +1 -0
  723. package/dist/source/components/navigation/appBar/appBar.jsx +66 -0
  724. package/dist/source/components/navigation/appBar/appBar.jsx.map +1 -0
  725. package/dist/source/components/navigation/appBar/index.js +6 -0
  726. package/dist/source/components/navigation/appBar/index.js.map +7 -0
  727. package/dist/source/components/navigation/bottomBar/bottomBar.jsx +135 -0
  728. package/dist/source/components/navigation/bottomBar/bottomBar.jsx.map +1 -0
  729. package/dist/source/components/navigation/bottomBar/index.js +6 -0
  730. package/dist/source/components/navigation/bottomBar/index.js.map +7 -0
  731. package/dist/source/components/navigation/breadcrumbs/breadcrumbs.jsx +63 -0
  732. package/dist/source/components/navigation/breadcrumbs/breadcrumbs.jsx.map +1 -0
  733. package/dist/source/components/navigation/breadcrumbs/index.js +6 -0
  734. package/dist/source/components/navigation/breadcrumbs/index.js.map +7 -0
  735. package/dist/source/components/navigation/menu/index.js +23 -0
  736. package/dist/source/components/navigation/menu/index.js.map +7 -0
  737. package/dist/source/components/navigation/menu/menu.jsx +28 -0
  738. package/dist/source/components/navigation/menu/menu.jsx.map +1 -0
  739. package/dist/source/components/navigation/menu/menuComponent.jsx +18 -0
  740. package/dist/source/components/navigation/menu/menuComponent.jsx.map +1 -0
  741. package/dist/source/components/navigation/menu/menuContext.js +14 -0
  742. package/dist/source/components/navigation/menu/menuContext.js.map +7 -0
  743. package/dist/source/components/navigation/menu/menuDivider.jsx +19 -0
  744. package/dist/source/components/navigation/menu/menuDivider.jsx.map +1 -0
  745. package/dist/source/components/navigation/menu/menuFloating.jsx +84 -0
  746. package/dist/source/components/navigation/menu/menuFloating.jsx.map +1 -0
  747. package/dist/source/components/navigation/menu/menuItem.jsx +68 -0
  748. package/dist/source/components/navigation/menu/menuItem.jsx.map +1 -0
  749. package/dist/source/components/navigation/menu/menuItemIcon.jsx +25 -0
  750. package/dist/source/components/navigation/menu/menuItemIcon.jsx.map +1 -0
  751. package/dist/source/components/navigation/menu/menuItemText.jsx +25 -0
  752. package/dist/source/components/navigation/menu/menuItemText.jsx.map +1 -0
  753. package/dist/source/components/navigation/menu/menuList.jsx +46 -0
  754. package/dist/source/components/navigation/menu/menuList.jsx.map +1 -0
  755. package/dist/source/components/navigation/menu/menuSubmenu.jsx +86 -0
  756. package/dist/source/components/navigation/menu/menuSubmenu.jsx.map +1 -0
  757. package/dist/source/components/navigation/pagination/index.js +6 -0
  758. package/dist/source/components/navigation/pagination/index.js.map +7 -0
  759. package/dist/source/components/navigation/pagination/pagination.jsx +143 -0
  760. package/dist/source/components/navigation/pagination/pagination.jsx.map +1 -0
  761. package/dist/source/components/navigation/sidebar/index.js +6 -0
  762. package/dist/source/components/navigation/sidebar/index.js.map +7 -0
  763. package/dist/source/components/navigation/sidebar/sidebar.jsx +115 -0
  764. package/dist/source/components/navigation/sidebar/sidebar.jsx.map +1 -0
  765. package/dist/source/components/navigation/stepper/index.js +6 -0
  766. package/dist/source/components/navigation/stepper/index.js.map +7 -0
  767. package/dist/source/components/navigation/stepper/stepper.jsx +83 -0
  768. package/dist/source/components/navigation/stepper/stepper.jsx.map +1 -0
  769. package/dist/source/components/navigation/tabs/index.js +10 -0
  770. package/dist/source/components/navigation/tabs/index.js.map +7 -0
  771. package/dist/source/components/navigation/tabs/tab/tab.jsx +76 -0
  772. package/dist/source/components/navigation/tabs/tab/tab.jsx.map +1 -0
  773. package/dist/source/components/navigation/tabs/tabs.jsx +142 -0
  774. package/dist/source/components/navigation/tabs/tabs.jsx.map +1 -0
  775. package/dist/source/components/navigation/tabs/tabsContext.js +8 -0
  776. package/dist/source/components/navigation/tabs/tabsContext.js.map +7 -0
  777. package/dist/source/index.js +309 -0
  778. package/dist/source/index.js.map +7 -0
  779. package/dist/source/primitives/callHandler.js +12 -0
  780. package/dist/source/primitives/callHandler.js.map +7 -0
  781. package/dist/source/primitives/createControllableState.js +19 -0
  782. package/dist/source/primitives/createControllableState.js.map +7 -0
  783. package/dist/source/primitives/createCssTransition.js +59 -0
  784. package/dist/source/primitives/createCssTransition.js.map +7 -0
  785. package/dist/source/primitives/createDropzone.js +46 -0
  786. package/dist/source/primitives/createDropzone.js.map +7 -0
  787. package/dist/source/primitives/createFloating.js +48 -0
  788. package/dist/source/primitives/createFloating.js.map +7 -0
  789. package/dist/source/primitives/createFocusTrap.js +50 -0
  790. package/dist/source/primitives/createFocusTrap.js.map +7 -0
  791. package/dist/source/primitives/createId.js +9 -0
  792. package/dist/source/primitives/createId.js.map +7 -0
  793. package/dist/source/primitives/createMaskedInput.js +35 -0
  794. package/dist/source/primitives/createMaskedInput.js.map +7 -0
  795. package/dist/source/primitives/createTheme.js +51 -0
  796. package/dist/source/primitives/createTheme.js.map +7 -0
  797. package/dist/source/primitives/createVirtualList.js +19 -0
  798. package/dist/source/primitives/createVirtualList.js.map +7 -0
  799. package/dist/source/primitives/mergeRefs.js +13 -0
  800. package/dist/source/primitives/mergeRefs.js.map +7 -0
  801. package/dist/source/ssr-published.ssr-spec.jsx +35 -0
  802. package/dist/source/ssr-published.ssr-spec.jsx.map +1 -0
  803. package/dist/source/ssr.ssr-spec.jsx +113 -0
  804. package/dist/source/ssr.ssr-spec.jsx.map +1 -0
  805. package/dist/source/utils/animate.js +35 -0
  806. package/dist/source/utils/animate.js.map +7 -0
  807. package/dist/source/utils/debounce.js +23 -0
  808. package/dist/source/utils/debounce.js.map +7 -0
  809. package/dist/source/utils/floating.js +42 -0
  810. package/dist/source/utils/floating.js.map +7 -0
  811. package/dist/source/utils/throttle.js +41 -0
  812. package/dist/source/utils/throttle.js.map +7 -0
  813. package/package.json +7 -3
  814. package/dist/ssr.ssr-spec.d.ts +0 -1
@@ -0,0 +1,177 @@
1
+ import { createEffect, createSignal, mergeProps, onCleanup, onMount, splitProps } from "solid-js";
2
+ import cn from "clsx";
3
+ import { mergeRefs } from "../../../primitives/mergeRefs";
4
+ const isNumberString = (n) => {
5
+ const number = parseFloat(n);
6
+ return !isNaN(number) && isFinite(number);
7
+ };
8
+ const isPercentage = (height) => typeof height === "string" && height[height.length - 1] === "%" && isNumberString(height.substring(0, height.length - 1));
9
+ const hideContent = (element, height) => {
10
+ if (height === 0 && element?.style) element.style.display = "none";
11
+ };
12
+ const showContent = (element, height) => {
13
+ if (height === 0 && element?.style) element.style.display = "";
14
+ };
15
+ const ANIMATION_STATE_CLASSES = {
16
+ animating: "rah-animating",
17
+ animatingUp: "rah-animating--up",
18
+ animatingDown: "rah-animating--down",
19
+ animatingToHeightZero: "rah-animating--to-height-zero",
20
+ animatingToHeightAuto: "rah-animating--to-height-auto",
21
+ animatingToHeightSpecific: "rah-animating--to-height-specific",
22
+ static: "rah-static",
23
+ staticHeightZero: "rah-static--height-zero",
24
+ staticHeightAuto: "rah-static--height-auto",
25
+ staticHeightSpecific: "rah-static--height-specific"
26
+ };
27
+ const getStaticStateClasses = (s, height) => cn({
28
+ [s.static]: true,
29
+ [s.staticHeightZero]: height === 0,
30
+ [s.staticHeightSpecific]: typeof height === "number" && height > 0,
31
+ [s.staticHeightAuto]: height === "auto"
32
+ });
33
+ const toCssHeight = (height) => typeof height === "number" ? `${height}px` : height;
34
+ function AnimateHeight(props) {
35
+ const merged = mergeProps(
36
+ { animateOpacity: false, applyInlineTransitions: true, delay: 0, duration: 300, easing: "ease" },
37
+ props
38
+ );
39
+ const [local, rest] = splitProps(merged, [
40
+ "animateOpacity",
41
+ "animationStateClasses",
42
+ "applyInlineTransitions",
43
+ "children",
44
+ "class",
45
+ "contentClassName",
46
+ "delay",
47
+ "duration",
48
+ "easing",
49
+ "height",
50
+ "onHeightAnimationEnd",
51
+ "onHeightAnimationStart",
52
+ "style",
53
+ "ref"
54
+ ]);
55
+ const stateClasses = { ...ANIMATION_STATE_CLASSES, ...local.animationStateClasses };
56
+ let contentEl;
57
+ let prevHeight = local.height;
58
+ let timeoutId;
59
+ let classesTimeoutId;
60
+ let initHeight = local.height;
61
+ let initOverflow = "visible";
62
+ if (typeof initHeight === "number") {
63
+ initHeight = initHeight < 0 ? 0 : initHeight;
64
+ initOverflow = "hidden";
65
+ } else if (isPercentage(initHeight)) {
66
+ initHeight = initHeight === "0%" ? 0 : initHeight;
67
+ initOverflow = "hidden";
68
+ }
69
+ const [currentHeight, setCurrentHeight] = createSignal(initHeight);
70
+ const [overflow, setOverflow] = createSignal(initOverflow);
71
+ const [useTransitions, setUseTransitions] = createSignal(false);
72
+ const [stateClassNames, setStateClassNames] = createSignal(getStaticStateClasses(stateClasses, local.height));
73
+ onMount(() => hideContent(contentEl, currentHeight()));
74
+ createEffect(() => {
75
+ const height = local.height;
76
+ if (height !== prevHeight && contentEl) {
77
+ showContent(contentEl, prevHeight);
78
+ contentEl.style.overflow = "hidden";
79
+ const contentHeight = contentEl.offsetHeight;
80
+ contentEl.style.overflow = "";
81
+ const totalDuration = local.duration + local.delay;
82
+ let newHeight;
83
+ let timeoutHeight;
84
+ let timeoutOverflow = "hidden";
85
+ const isCurrentHeightAuto = prevHeight === "auto";
86
+ if (typeof height === "number") {
87
+ newHeight = height < 0 ? 0 : height;
88
+ timeoutHeight = newHeight;
89
+ } else if (isPercentage(height)) {
90
+ newHeight = height === "0%" ? 0 : height;
91
+ timeoutHeight = newHeight;
92
+ } else {
93
+ newHeight = contentHeight;
94
+ timeoutHeight = "auto";
95
+ timeoutOverflow = void 0;
96
+ }
97
+ if (isCurrentHeightAuto) {
98
+ timeoutHeight = newHeight;
99
+ newHeight = contentHeight;
100
+ }
101
+ const animatingClassNames = cn({
102
+ [stateClasses.animating]: true,
103
+ [stateClasses.animatingUp]: prevHeight === "auto" || typeof prevHeight === "number" && typeof height === "number" && height < prevHeight,
104
+ [stateClasses.animatingDown]: height === "auto" || typeof prevHeight === "number" && typeof height === "number" && height > prevHeight,
105
+ [stateClasses.animatingToHeightZero]: timeoutHeight === 0,
106
+ [stateClasses.animatingToHeightAuto]: timeoutHeight === "auto",
107
+ [stateClasses.animatingToHeightSpecific]: typeof timeoutHeight === "number" && timeoutHeight > 0
108
+ });
109
+ const finalClassNames = getStaticStateClasses(stateClasses, timeoutHeight);
110
+ setCurrentHeight(newHeight);
111
+ setOverflow("hidden");
112
+ setUseTransitions(!isCurrentHeightAuto);
113
+ setStateClassNames(animatingClassNames);
114
+ clearTimeout(timeoutId);
115
+ clearTimeout(classesTimeoutId);
116
+ if (isCurrentHeightAuto) {
117
+ timeoutId = setTimeout(() => {
118
+ setCurrentHeight(timeoutHeight);
119
+ setOverflow(timeoutOverflow);
120
+ setUseTransitions(true);
121
+ local.onHeightAnimationStart?.(timeoutHeight);
122
+ }, 50);
123
+ classesTimeoutId = setTimeout(() => {
124
+ setUseTransitions(false);
125
+ setStateClassNames(finalClassNames);
126
+ hideContent(contentEl, timeoutHeight);
127
+ local.onHeightAnimationEnd?.(timeoutHeight);
128
+ }, totalDuration);
129
+ } else {
130
+ local.onHeightAnimationStart?.(newHeight);
131
+ timeoutId = setTimeout(() => {
132
+ setCurrentHeight(timeoutHeight);
133
+ setOverflow(timeoutOverflow);
134
+ setUseTransitions(false);
135
+ setStateClassNames(finalClassNames);
136
+ if (height !== "auto") hideContent(contentEl, newHeight);
137
+ local.onHeightAnimationEnd?.(newHeight);
138
+ }, totalDuration);
139
+ }
140
+ }
141
+ prevHeight = height;
142
+ });
143
+ onCleanup(() => {
144
+ clearTimeout(timeoutId);
145
+ clearTimeout(classesTimeoutId);
146
+ });
147
+ const componentStyle = () => {
148
+ const base = {
149
+ ...typeof local.style === "object" && local.style ? local.style : {},
150
+ height: toCssHeight(currentHeight()),
151
+ overflow: overflow() ?? "visible"
152
+ };
153
+ if (useTransitions() && local.applyInlineTransitions) {
154
+ base.transition = `height ${local.duration}ms ${local.easing} ${local.delay}ms`;
155
+ }
156
+ return base;
157
+ };
158
+ const contentStyle = () => {
159
+ if (!local.animateOpacity) return {};
160
+ return {
161
+ transition: `opacity ${local.duration}ms ${local.easing} ${local.delay}ms`,
162
+ ...currentHeight() === 0 ? { opacity: 0 } : {}
163
+ };
164
+ };
165
+ const ariaHidden = () => rest["aria-hidden"] !== void 0 ? rest["aria-hidden"] : local.height === 0;
166
+ return <div {...rest} ref={mergeRefs(local.ref)} aria-hidden={ariaHidden()} class={cn(stateClassNames(), local.class)} style={componentStyle()}>
167
+ <div class={local.contentClassName} style={contentStyle()} ref={contentEl}>
168
+ {local.children}
169
+ </div>
170
+ </div>;
171
+ }
172
+ var animateHeight_default = AnimateHeight;
173
+ export {
174
+ AnimateHeight,
175
+ animateHeight_default as default
176
+ };
177
+ //# sourceMappingURL=animateHeight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/components/base/animateHeight/animateHeight.tsx"],"sourcesContent":["// Solid port of react-animate-height (MIT, © Stanko Tadić)\n// https://github.com/Stanko/react-animate-height\nimport { type JSX, type ParentProps, createEffect, createSignal, mergeProps, onCleanup, onMount, splitProps } from \"solid-js\";\nimport cn from \"clsx\";\nimport { mergeRefs, type Ref } from \"../../../primitives/mergeRefs\";\n\nexport type Height = \"auto\" | number | `${number}%`;\ntype Overflow = \"auto\" | \"visible\" | \"hidden\" | undefined;\n\ninterface AnimationStateClasses {\n animating: string;\n animatingUp: string;\n animatingDown: string;\n animatingToHeightZero: string;\n animatingToHeightAuto: string;\n animatingToHeightSpecific: string;\n static: string;\n staticHeightZero: string;\n staticHeightAuto: string;\n staticHeightSpecific: string;\n}\n\nconst isNumberString = (n: string): boolean => {\n const number = parseFloat(n);\n return !isNaN(number) && isFinite(number);\n};\n\nconst isPercentage = (height: Height): height is `${number}%` =>\n typeof height === \"string\" && height[height.length - 1] === \"%\" && isNumberString(height.substring(0, height.length - 1));\n\nconst hideContent = (element: HTMLDivElement | undefined, height: Height): void => {\n if (height === 0 && element?.style) element.style.display = \"none\";\n};\nconst showContent = (element: HTMLDivElement | undefined, height: Height): void => {\n if (height === 0 && element?.style) element.style.display = \"\";\n};\n\nconst ANIMATION_STATE_CLASSES: AnimationStateClasses = {\n animating: \"rah-animating\",\n animatingUp: \"rah-animating--up\",\n animatingDown: \"rah-animating--down\",\n animatingToHeightZero: \"rah-animating--to-height-zero\",\n animatingToHeightAuto: \"rah-animating--to-height-auto\",\n animatingToHeightSpecific: \"rah-animating--to-height-specific\",\n static: \"rah-static\",\n staticHeightZero: \"rah-static--height-zero\",\n staticHeightAuto: \"rah-static--height-auto\",\n staticHeightSpecific: \"rah-static--height-specific\",\n};\n\nconst getStaticStateClasses = (s: AnimationStateClasses, height: Height): string =>\n cn({\n [s.static]: true,\n [s.staticHeightZero]: height === 0,\n [s.staticHeightSpecific]: typeof height === \"number\" && height > 0,\n [s.staticHeightAuto]: height === \"auto\",\n });\n\nconst toCssHeight = (height: Height): string => (typeof height === \"number\" ? `${height}px` : height);\n\nexport interface AnimateHeightProps extends JSX.HTMLAttributes<HTMLDivElement> {\n animateOpacity?: boolean;\n animationStateClasses?: Partial<AnimationStateClasses>;\n applyInlineTransitions?: boolean;\n contentClassName?: string;\n delay?: number;\n duration?: number;\n easing?: string;\n height: Height;\n onHeightAnimationEnd?: (newHeight: Height) => void;\n onHeightAnimationStart?: (newHeight: Height) => void;\n ref?: Ref<HTMLDivElement>;\n}\n\nexport function AnimateHeight(props: ParentProps<AnimateHeightProps>): JSX.Element {\n const merged = mergeProps(\n { animateOpacity: false, applyInlineTransitions: true, delay: 0, duration: 300, easing: \"ease\" },\n props\n );\n const [local, rest] = splitProps(merged, [\n \"animateOpacity\",\n \"animationStateClasses\",\n \"applyInlineTransitions\",\n \"children\",\n \"class\",\n \"contentClassName\",\n \"delay\",\n \"duration\",\n \"easing\",\n \"height\",\n \"onHeightAnimationEnd\",\n \"onHeightAnimationStart\",\n \"style\",\n \"ref\",\n ]);\n\n const stateClasses: AnimationStateClasses = { ...ANIMATION_STATE_CLASSES, ...local.animationStateClasses };\n\n let contentEl: HTMLDivElement | undefined;\n let prevHeight: Height = local.height;\n let timeoutId: ReturnType<typeof setTimeout> | undefined;\n let classesTimeoutId: ReturnType<typeof setTimeout> | undefined;\n\n let initHeight: Height = local.height;\n let initOverflow: Overflow = \"visible\";\n if (typeof initHeight === \"number\") {\n initHeight = initHeight < 0 ? 0 : initHeight;\n initOverflow = \"hidden\";\n } else if (isPercentage(initHeight)) {\n initHeight = initHeight === \"0%\" ? 0 : initHeight;\n initOverflow = \"hidden\";\n }\n\n const [currentHeight, setCurrentHeight] = createSignal<Height>(initHeight);\n const [overflow, setOverflow] = createSignal<Overflow>(initOverflow);\n const [useTransitions, setUseTransitions] = createSignal(false);\n const [stateClassNames, setStateClassNames] = createSignal(getStaticStateClasses(stateClasses, local.height));\n\n onMount(() => hideContent(contentEl, currentHeight()));\n\n createEffect(() => {\n const height = local.height;\n if (height !== prevHeight && contentEl) {\n showContent(contentEl, prevHeight);\n contentEl.style.overflow = \"hidden\";\n const contentHeight = contentEl.offsetHeight;\n contentEl.style.overflow = \"\";\n\n const totalDuration = local.duration + local.delay;\n let newHeight: Height;\n let timeoutHeight: Height;\n let timeoutOverflow: Overflow = \"hidden\";\n const isCurrentHeightAuto = prevHeight === \"auto\";\n\n if (typeof height === \"number\") {\n newHeight = height < 0 ? 0 : height;\n timeoutHeight = newHeight;\n } else if (isPercentage(height)) {\n newHeight = height === \"0%\" ? 0 : height;\n timeoutHeight = newHeight;\n } else {\n newHeight = contentHeight;\n timeoutHeight = \"auto\";\n timeoutOverflow = undefined;\n }\n\n if (isCurrentHeightAuto) {\n timeoutHeight = newHeight;\n newHeight = contentHeight;\n }\n\n const animatingClassNames = cn({\n [stateClasses.animating]: true,\n [stateClasses.animatingUp]:\n prevHeight === \"auto\" || (typeof prevHeight === \"number\" && typeof height === \"number\" && height < prevHeight),\n [stateClasses.animatingDown]:\n height === \"auto\" || (typeof prevHeight === \"number\" && typeof height === \"number\" && height > prevHeight),\n [stateClasses.animatingToHeightZero]: timeoutHeight === 0,\n [stateClasses.animatingToHeightAuto]: timeoutHeight === \"auto\",\n [stateClasses.animatingToHeightSpecific]: typeof timeoutHeight === \"number\" && timeoutHeight > 0,\n });\n const finalClassNames = getStaticStateClasses(stateClasses, timeoutHeight);\n\n setCurrentHeight(newHeight);\n setOverflow(\"hidden\");\n setUseTransitions(!isCurrentHeightAuto);\n setStateClassNames(animatingClassNames);\n\n clearTimeout(timeoutId);\n clearTimeout(classesTimeoutId);\n\n if (isCurrentHeightAuto) {\n timeoutId = setTimeout(() => {\n setCurrentHeight(timeoutHeight);\n setOverflow(timeoutOverflow);\n setUseTransitions(true);\n local.onHeightAnimationStart?.(timeoutHeight);\n }, 50);\n classesTimeoutId = setTimeout(() => {\n setUseTransitions(false);\n setStateClassNames(finalClassNames);\n hideContent(contentEl, timeoutHeight);\n local.onHeightAnimationEnd?.(timeoutHeight);\n }, totalDuration);\n } else {\n local.onHeightAnimationStart?.(newHeight);\n timeoutId = setTimeout(() => {\n setCurrentHeight(timeoutHeight);\n setOverflow(timeoutOverflow);\n setUseTransitions(false);\n setStateClassNames(finalClassNames);\n if (height !== \"auto\") hideContent(contentEl, newHeight);\n local.onHeightAnimationEnd?.(newHeight);\n }, totalDuration);\n }\n }\n prevHeight = height;\n });\n\n onCleanup(() => {\n clearTimeout(timeoutId);\n clearTimeout(classesTimeoutId);\n });\n\n const componentStyle = (): JSX.CSSProperties => {\n const base: JSX.CSSProperties = {\n ...(typeof local.style === \"object\" && local.style ? local.style : {}),\n height: toCssHeight(currentHeight()),\n overflow: overflow() ?? \"visible\",\n };\n if (useTransitions() && local.applyInlineTransitions) {\n base.transition = `height ${local.duration}ms ${local.easing} ${local.delay}ms`;\n }\n return base;\n };\n\n const contentStyle = (): JSX.CSSProperties => {\n if (!local.animateOpacity) return {};\n return {\n transition: `opacity ${local.duration}ms ${local.easing} ${local.delay}ms`,\n ...(currentHeight() === 0 ? { opacity: 0 } : {}),\n };\n };\n\n const ariaHidden = (): boolean | undefined =>\n rest[\"aria-hidden\"] !== undefined ? (rest[\"aria-hidden\"] as boolean) : local.height === 0;\n\n return (\n <div {...rest} ref={mergeRefs(local.ref)} aria-hidden={ariaHidden()} class={cn(stateClassNames(), local.class)} style={componentStyle()}>\n <div class={local.contentClassName} style={contentStyle()} ref={contentEl}>\n {local.children}\n </div>\n </div>\n );\n}\n\nexport default AnimateHeight;\n"],"mappings":"AAEA,SAAqC,cAAc,cAAc,YAAY,WAAW,SAAS,kBAAkB;AACnH,OAAO,QAAQ;AACf,SAAS,iBAA2B;AAkBpC,MAAM,iBAAiB,CAAC,MAAuB;AAC7C,QAAM,SAAS,WAAW,CAAC;AAC3B,SAAO,CAAC,MAAM,MAAM,KAAK,SAAS,MAAM;AAC1C;AAEA,MAAM,eAAe,CAAC,WACpB,OAAO,WAAW,YAAY,OAAO,OAAO,SAAS,CAAC,MAAM,OAAO,eAAe,OAAO,UAAU,GAAG,OAAO,SAAS,CAAC,CAAC;AAE1H,MAAM,cAAc,CAAC,SAAqC,WAAyB;AACjF,MAAI,WAAW,KAAK,SAAS,MAAO,SAAQ,MAAM,UAAU;AAC9D;AACA,MAAM,cAAc,CAAC,SAAqC,WAAyB;AACjF,MAAI,WAAW,KAAK,SAAS,MAAO,SAAQ,MAAM,UAAU;AAC9D;AAEA,MAAM,0BAAiD;AAAA,EACrD,WAAW;AAAA,EACX,aAAa;AAAA,EACb,eAAe;AAAA,EACf,uBAAuB;AAAA,EACvB,uBAAuB;AAAA,EACvB,2BAA2B;AAAA,EAC3B,QAAQ;AAAA,EACR,kBAAkB;AAAA,EAClB,kBAAkB;AAAA,EAClB,sBAAsB;AACxB;AAEA,MAAM,wBAAwB,CAAC,GAA0B,WACvD,GAAG;AAAA,EACD,CAAC,EAAE,MAAM,GAAG;AAAA,EACZ,CAAC,EAAE,gBAAgB,GAAG,WAAW;AAAA,EACjC,CAAC,EAAE,oBAAoB,GAAG,OAAO,WAAW,YAAY,SAAS;AAAA,EACjE,CAAC,EAAE,gBAAgB,GAAG,WAAW;AACnC,CAAC;AAEH,MAAM,cAAc,CAAC,WAA4B,OAAO,WAAW,WAAW,GAAG,MAAM,OAAO;AAgBvF,SAAS,cAAc,OAAqD;AACjF,QAAM,SAAS;AAAA,IACb,EAAE,gBAAgB,OAAO,wBAAwB,MAAM,OAAO,GAAG,UAAU,KAAK,QAAQ,OAAO;AAAA,IAC/F;AAAA,EACF;AACA,QAAM,CAAC,OAAO,IAAI,IAAI,WAAW,QAAQ;AAAA,IACvC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AAED,QAAM,eAAsC,EAAE,GAAG,yBAAyB,GAAG,MAAM,sBAAsB;AAEzG,MAAI;AACJ,MAAI,aAAqB,MAAM;AAC/B,MAAI;AACJ,MAAI;AAEJ,MAAI,aAAqB,MAAM;AAC/B,MAAI,eAAyB;AAC7B,MAAI,OAAO,eAAe,UAAU;AAClC,iBAAa,aAAa,IAAI,IAAI;AAClC,mBAAe;AAAA,EACjB,WAAW,aAAa,UAAU,GAAG;AACnC,iBAAa,eAAe,OAAO,IAAI;AACvC,mBAAe;AAAA,EACjB;AAEA,QAAM,CAAC,eAAe,gBAAgB,IAAI,aAAqB,UAAU;AACzE,QAAM,CAAC,UAAU,WAAW,IAAI,aAAuB,YAAY;AACnE,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,aAAa,KAAK;AAC9D,QAAM,CAAC,iBAAiB,kBAAkB,IAAI,aAAa,sBAAsB,cAAc,MAAM,MAAM,CAAC;AAE5G,UAAQ,MAAM,YAAY,WAAW,cAAc,CAAC,CAAC;AAErD,eAAa,MAAM;AACjB,UAAM,SAAS,MAAM;AACrB,QAAI,WAAW,cAAc,WAAW;AACtC,kBAAY,WAAW,UAAU;AACjC,gBAAU,MAAM,WAAW;AAC3B,YAAM,gBAAgB,UAAU;AAChC,gBAAU,MAAM,WAAW;AAE3B,YAAM,gBAAgB,MAAM,WAAW,MAAM;AAC7C,UAAI;AACJ,UAAI;AACJ,UAAI,kBAA4B;AAChC,YAAM,sBAAsB,eAAe;AAE3C,UAAI,OAAO,WAAW,UAAU;AAC9B,oBAAY,SAAS,IAAI,IAAI;AAC7B,wBAAgB;AAAA,MAClB,WAAW,aAAa,MAAM,GAAG;AAC/B,oBAAY,WAAW,OAAO,IAAI;AAClC,wBAAgB;AAAA,MAClB,OAAO;AACL,oBAAY;AACZ,wBAAgB;AAChB,0BAAkB;AAAA,MACpB;AAEA,UAAI,qBAAqB;AACvB,wBAAgB;AAChB,oBAAY;AAAA,MACd;AAEA,YAAM,sBAAsB,GAAG;AAAA,QAC7B,CAAC,aAAa,SAAS,GAAG;AAAA,QAC1B,CAAC,aAAa,WAAW,GACvB,eAAe,UAAW,OAAO,eAAe,YAAY,OAAO,WAAW,YAAY,SAAS;AAAA,QACrG,CAAC,aAAa,aAAa,GACzB,WAAW,UAAW,OAAO,eAAe,YAAY,OAAO,WAAW,YAAY,SAAS;AAAA,QACjG,CAAC,aAAa,qBAAqB,GAAG,kBAAkB;AAAA,QACxD,CAAC,aAAa,qBAAqB,GAAG,kBAAkB;AAAA,QACxD,CAAC,aAAa,yBAAyB,GAAG,OAAO,kBAAkB,YAAY,gBAAgB;AAAA,MACjG,CAAC;AACD,YAAM,kBAAkB,sBAAsB,cAAc,aAAa;AAEzE,uBAAiB,SAAS;AAC1B,kBAAY,QAAQ;AACpB,wBAAkB,CAAC,mBAAmB;AACtC,yBAAmB,mBAAmB;AAEtC,mBAAa,SAAS;AACtB,mBAAa,gBAAgB;AAE7B,UAAI,qBAAqB;AACvB,oBAAY,WAAW,MAAM;AAC3B,2BAAiB,aAAa;AAC9B,sBAAY,eAAe;AAC3B,4BAAkB,IAAI;AACtB,gBAAM,yBAAyB,aAAa;AAAA,QAC9C,GAAG,EAAE;AACL,2BAAmB,WAAW,MAAM;AAClC,4BAAkB,KAAK;AACvB,6BAAmB,eAAe;AAClC,sBAAY,WAAW,aAAa;AACpC,gBAAM,uBAAuB,aAAa;AAAA,QAC5C,GAAG,aAAa;AAAA,MAClB,OAAO;AACL,cAAM,yBAAyB,SAAS;AACxC,oBAAY,WAAW,MAAM;AAC3B,2BAAiB,aAAa;AAC9B,sBAAY,eAAe;AAC3B,4BAAkB,KAAK;AACvB,6BAAmB,eAAe;AAClC,cAAI,WAAW,OAAQ,aAAY,WAAW,SAAS;AACvD,gBAAM,uBAAuB,SAAS;AAAA,QACxC,GAAG,aAAa;AAAA,MAClB;AAAA,IACF;AACA,iBAAa;AAAA,EACf,CAAC;AAED,YAAU,MAAM;AACd,iBAAa,SAAS;AACtB,iBAAa,gBAAgB;AAAA,EAC/B,CAAC;AAED,QAAM,iBAAiB,MAAyB;AAC9C,UAAM,OAA0B;AAAA,MAC9B,GAAI,OAAO,MAAM,UAAU,YAAY,MAAM,QAAQ,MAAM,QAAQ,CAAC;AAAA,MACpE,QAAQ,YAAY,cAAc,CAAC;AAAA,MACnC,UAAU,SAAS,KAAK;AAAA,IAC1B;AACA,QAAI,eAAe,KAAK,MAAM,wBAAwB;AACpD,WAAK,aAAa,UAAU,MAAM,QAAQ,MAAM,MAAM,MAAM,IAAI,MAAM,KAAK;AAAA,IAC7E;AACA,WAAO;AAAA,EACT;AAEA,QAAM,eAAe,MAAyB;AAC5C,QAAI,CAAC,MAAM,eAAgB,QAAO,CAAC;AACnC,WAAO;AAAA,MACL,YAAY,WAAW,MAAM,QAAQ,MAAM,MAAM,MAAM,IAAI,MAAM,KAAK;AAAA,MACtE,GAAI,cAAc,MAAM,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC;AAAA,IAChD;AAAA,EACF;AAEA,QAAM,aAAa,MACjB,KAAK,aAAa,MAAM,SAAa,KAAK,aAAa,IAAgB,MAAM,WAAW;AAE1F,SACE,CAAC,QAAQ,MAAM,KAAK,UAAU,MAAM,GAAG,GAAG,aAAa,WAAW,GAAG,OAAO,GAAG,gBAAgB,GAAG,MAAM,KAAK,GAAG,OAAO,eAAe,GAAG;AAAA,MACvI,CAAC,IAAI,OAAO,MAAM,kBAAkB,OAAO,aAAa,GAAG,KAAK,WAAW;AAAA,SACxE,MAAM,SAAS;AAAA,MAClB,EAFC,IAEK;AAAA,IACR,EAJC;AAML;AAEA,IAAO,wBAAQ;","names":[],"file":"animateHeight.jsx"}
@@ -0,0 +1,6 @@
1
+ import { AnimateHeight, default as default2 } from "./animateHeight";
2
+ export {
3
+ AnimateHeight,
4
+ default2 as default
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../src/components/base/animateHeight/index.ts"],
4
+ "sourcesContent": ["export { AnimateHeight, default } from \"./animateHeight\";\nexport type { AnimateHeightProps, Height } from \"./animateHeight\";\n"],
5
+ "mappings": "AAAA,SAAS,eAAe,WAAAA,gBAAe;",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,60 @@
1
+ import { mergeProps, splitProps } from "solid-js";
2
+ import cn from "clsx";
3
+ import { mergeRefs } from "../../../primitives/mergeRefs";
4
+ const COLOR_TOKENS = [
5
+ "primary",
6
+ "secondary",
7
+ "error",
8
+ "success",
9
+ "warning",
10
+ "info",
11
+ "disabled"
12
+ ];
13
+ function Icon(props) {
14
+ const merged = mergeProps(
15
+ { weight: 400, fill: 0, size: 20, grade: 100, color: "inherit" },
16
+ props
17
+ );
18
+ const [local, rest] = splitProps(merged, [
19
+ "class",
20
+ "weight",
21
+ "fill",
22
+ "size",
23
+ "grade",
24
+ "name",
25
+ "color",
26
+ "title",
27
+ "style",
28
+ "ref"
29
+ ]);
30
+ const decorative = () => local.title === void 0;
31
+ const colorClass = () => typeof local.color === "string" && COLOR_TOKENS.includes(local.color) ? `smwb-icon_color-${local.color}` : void 0;
32
+ const styleObject = () => typeof local.style === "object" && local.style ? local.style : {};
33
+ return <span
34
+ {...rest}
35
+ ref={mergeRefs(local.ref)}
36
+ data-testid="icon"
37
+ role={decorative() ? void 0 : "img"}
38
+ aria-hidden={decorative() ? true : void 0}
39
+ aria-label={local.title}
40
+ title={local.title}
41
+ style={{
42
+ ...styleObject(),
43
+ "font-variation-settings": `'FILL' ${local.fill}, 'wght' ${local.weight}, 'GRAD' ${local.grade}, 'opsz' 48`
44
+ }}
45
+ class={cn("smwb-icon__wrapper", colorClass(), local.class)}
46
+ >
47
+ <span
48
+ class="material-symbols-outlined"
49
+ style={{ "font-size": typeof local.size === "number" ? `${local.size}px` : local.size }}
50
+ >
51
+ {local.name}
52
+ </span>
53
+ </span>;
54
+ }
55
+ var icon_default = Icon;
56
+ export {
57
+ Icon,
58
+ icon_default as default
59
+ };
60
+ //# sourceMappingURL=icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/components/base/icon/icon.tsx"],"sourcesContent":["import { type JSX, mergeProps, splitProps } from \"solid-js\";\nimport cn from \"clsx\";\nimport { mergeRefs, type Ref } from \"../../../primitives/mergeRefs\";\n\nexport type IconColor = \"inherit\" | \"primary\" | \"secondary\" | \"error\" | \"success\" | \"warning\" | \"info\" | \"disabled\";\n\nconst COLOR_TOKENS: ReadonlyArray<string> = [\n \"primary\",\n \"secondary\",\n \"error\",\n \"success\",\n \"warning\",\n \"info\",\n \"disabled\",\n];\n\nexport interface IconProps extends JSX.HTMLAttributes<HTMLSpanElement> {\n /**\n * Icon name from https://fonts.google.com/icons\n * Example: name={\"arrow_right_alt\"}\n */\n name: string;\n weight?: number;\n fill?: 0 | 1;\n /** Pixel number or any CSS length (e.g. \"1.5rem\"). */\n size?: number | string;\n grade?: number;\n /**\n * Semantic color token; `inherit` (default) keeps the text color. Any string\n * is accepted for backward compatibility, but only known {@link IconColor}\n * tokens emit a color class.\n */\n color?: IconColor | (string & {});\n /**\n * Accessible name. When provided the icon is exposed as `role=\"img\"`;\n * otherwise it is `aria-hidden` (decorative).\n */\n title?: string;\n ref?: Ref<HTMLSpanElement>;\n}\n\nexport function Icon(props: IconProps): JSX.Element {\n const merged = mergeProps(\n { weight: 400, fill: 0 as 0 | 1, size: 20 as number | string, grade: 100, color: \"inherit\" as IconProps[\"color\"] },\n props\n );\n const [local, rest] = splitProps(merged, [\n \"class\",\n \"weight\",\n \"fill\",\n \"size\",\n \"grade\",\n \"name\",\n \"color\",\n \"title\",\n \"style\",\n \"ref\",\n ]);\n\n const decorative = (): boolean => local.title === undefined;\n const colorClass = (): string | undefined =>\n typeof local.color === \"string\" && COLOR_TOKENS.includes(local.color) ? `smwb-icon_color-${local.color}` : undefined;\n const styleObject = (): JSX.CSSProperties => (typeof local.style === \"object\" && local.style ? local.style : {});\n\n return (\n <span\n {...rest}\n ref={mergeRefs(local.ref)}\n data-testid=\"icon\"\n role={decorative() ? undefined : \"img\"}\n aria-hidden={decorative() ? true : undefined}\n aria-label={local.title}\n title={local.title}\n style={{\n ...styleObject(),\n \"font-variation-settings\": `'FILL' ${local.fill}, 'wght' ${local.weight}, 'GRAD' ${local.grade}, 'opsz' 48`,\n }}\n class={cn(\"smwb-icon__wrapper\", colorClass(), local.class)}\n >\n <span\n class=\"material-symbols-outlined\"\n style={{ \"font-size\": typeof local.size === \"number\" ? `${local.size}px` : local.size }}\n >\n {local.name}\n </span>\n </span>\n );\n}\n\nexport default Icon;\n"],"mappings":"AAAA,SAAmB,YAAY,kBAAkB;AACjD,OAAO,QAAQ;AACf,SAAS,iBAA2B;AAIpC,MAAM,eAAsC;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AA2BO,SAAS,KAAK,OAA+B;AAClD,QAAM,SAAS;AAAA,IACb,EAAE,QAAQ,KAAK,MAAM,GAAY,MAAM,IAAuB,OAAO,KAAK,OAAO,UAAgC;AAAA,IACjH;AAAA,EACF;AACA,QAAM,CAAC,OAAO,IAAI,IAAI,WAAW,QAAQ;AAAA,IACvC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AAED,QAAM,aAAa,MAAe,MAAM,UAAU;AAClD,QAAM,aAAa,MACjB,OAAO,MAAM,UAAU,YAAY,aAAa,SAAS,MAAM,KAAK,IAAI,mBAAmB,MAAM,KAAK,KAAK;AAC7G,QAAM,cAAc,MAA0B,OAAO,MAAM,UAAU,YAAY,MAAM,QAAQ,MAAM,QAAQ,CAAC;AAE9G,SACE,CAAC;AAAA,QACK;AAAA,IACJ,KAAK,UAAU,MAAM,GAAG;AAAA,IACxB,YAAY;AAAA,IACZ,MAAM,WAAW,IAAI,SAAY;AAAA,IACjC,aAAa,WAAW,IAAI,OAAO;AAAA,IACnC,YAAY,MAAM;AAAA,IAClB,OAAO,MAAM;AAAA,IACb,OAAO;AAAA,MACL,GAAG,YAAY;AAAA,MACf,2BAA2B,UAAU,MAAM,IAAI,YAAY,MAAM,MAAM,YAAY,MAAM,KAAK;AAAA,IAChG;AAAA,IACA,OAAO,GAAG,sBAAsB,WAAW,GAAG,MAAM,KAAK;AAAA,GAC1D;AAAA,MACC,CAAC;AAAA,IACC,MAAM;AAAA,IACN,OAAO,EAAE,aAAa,OAAO,MAAM,SAAS,WAAW,GAAG,MAAM,IAAI,OAAO,MAAM,KAAK;AAAA,GACvF;AAAA,SACE,MAAM,KAAK;AAAA,MACd,EALC,KAKM;AAAA,IACT,EApBC;AAsBL;AAEA,IAAO,eAAQ;","names":[],"file":"icon.jsx"}
@@ -0,0 +1,6 @@
1
+ import { Icon, default as default2 } from "./icon";
2
+ export {
3
+ Icon,
4
+ default2 as default
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../src/components/base/icon/index.ts"],
4
+ "sourcesContent": ["export { Icon, default } from \"./icon\";\nexport type { IconProps, IconColor } from \"./icon\";\n"],
5
+ "mappings": "AAAA,SAAS,MAAM,WAAAA,gBAAe;",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,6 @@
1
+ import { Ripple, default as default2 } from "./ripple";
2
+ export {
3
+ Ripple,
4
+ default2 as default
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../src/components/base/ripple/index.ts"],
4
+ "sourcesContent": ["export { Ripple, default } from \"./ripple\";\nexport type { RippleProps, RippleActionsRef, RippleClasses } from \"./ripple\";\n"],
5
+ "mappings": "AAAA,SAAS,QAAQ,WAAAA,gBAAe;",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,63 @@
1
+ import { For, createSignal, mergeProps, splitProps } from "solid-js";
2
+ import cn from "clsx";
3
+ import { mergeRefs } from "../../../primitives/mergeRefs";
4
+ function Ripple(props) {
5
+ const merged = mergeProps({ duration: 600 }, props);
6
+ const [local, rest] = splitProps(merged, [
7
+ "actionRef",
8
+ "class",
9
+ "classes",
10
+ "center",
11
+ "duration",
12
+ "color",
13
+ "ref",
14
+ "style"
15
+ ]);
16
+ const [ripples, setRipples] = createSignal([]);
17
+ let nextKey = 0;
18
+ const onRipple = (event) => {
19
+ const target = event.currentTarget;
20
+ const rect = target.getBoundingClientRect();
21
+ const diameter = Math.max(rect.width, rect.height);
22
+ const radius = diameter / 2;
23
+ let coordX;
24
+ let coordY;
25
+ if (local.center) {
26
+ coordX = rect.width > rect.height ? 0 : rect.width / 2 - radius;
27
+ coordY = rect.height > rect.width ? 0 : rect.height / 2 - radius;
28
+ } else {
29
+ coordX = event.clientX - rect.left - radius;
30
+ coordY = event.clientY - rect.top - radius;
31
+ }
32
+ const key = nextKey++;
33
+ setRipples((prev) => [...prev, { key, x: coordX, y: coordY, size: diameter }]);
34
+ setTimeout(() => setRipples((prev) => prev.slice(1)), local.duration);
35
+ };
36
+ local.actionRef?.({ onRipple });
37
+ return <span
38
+ {...rest}
39
+ ref={mergeRefs(local.ref)}
40
+ class={cn("smwb-ripple", local.class, local.classes?.ripple)}
41
+ data-testid="ripple"
42
+ aria-hidden="true"
43
+ >
44
+ <For each={ripples()}>
45
+ {(ripple) => <span
46
+ class={cn("smwb-ripple__child", local.classes?.child)}
47
+ style={{
48
+ left: `${ripple.x}px`,
49
+ top: `${ripple.y}px`,
50
+ width: `${ripple.size}px`,
51
+ height: `${ripple.size}px`,
52
+ "background-color": local.color
53
+ }}
54
+ />}
55
+ </For>
56
+ </span>;
57
+ }
58
+ var ripple_default = Ripple;
59
+ export {
60
+ Ripple,
61
+ ripple_default as default
62
+ };
63
+ //# sourceMappingURL=ripple.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/components/base/ripple/ripple.tsx"],"sourcesContent":["import { type JSX, For, createSignal, mergeProps, splitProps } from \"solid-js\";\nimport cn from \"clsx\";\nimport { mergeRefs, type Ref } from \"../../../primitives/mergeRefs\";\n\nexport interface RippleActionsRef {\n onRipple: (event: MouseEvent) => void;\n}\n\nexport interface RippleClasses {\n ripple?: string;\n child?: string;\n}\n\nexport interface RippleProps extends JSX.HTMLAttributes<HTMLSpanElement> {\n /** Receives the imperative API once on mount. */\n actionRef?: (actions: RippleActionsRef) => void;\n classes?: RippleClasses;\n center?: boolean | undefined;\n /** Ripple lifetime in ms. */\n duration?: number;\n /** Ripple color (any CSS color). Defaults to inherited currentColor. */\n color?: string | undefined;\n ref?: Ref<HTMLSpanElement>;\n}\n\ninterface RippleEntry {\n key: number;\n x: number;\n y: number;\n size: number;\n}\n\n/**\n * ⚠️ For this effect to work, the parent element must have CSS\n * `position: relative;`.\n */\nexport function Ripple(props: RippleProps): JSX.Element {\n const merged = mergeProps({ duration: 600 }, props);\n const [local, rest] = splitProps(merged, [\n \"actionRef\",\n \"class\",\n \"classes\",\n \"center\",\n \"duration\",\n \"color\",\n \"ref\",\n \"style\",\n ]);\n\n const [ripples, setRipples] = createSignal<RippleEntry[]>([]);\n let nextKey = 0;\n\n const onRipple = (event: MouseEvent): void => {\n const target = event.currentTarget as HTMLElement;\n const rect = target.getBoundingClientRect();\n const diameter = Math.max(rect.width, rect.height);\n const radius = diameter / 2;\n\n let coordX: number;\n let coordY: number;\n if (local.center) {\n coordX = rect.width > rect.height ? 0 : rect.width / 2 - radius;\n coordY = rect.height > rect.width ? 0 : rect.height / 2 - radius;\n } else {\n coordX = event.clientX - rect.left - radius;\n coordY = event.clientY - rect.top - radius;\n }\n\n const key = nextKey++;\n setRipples((prev) => [...prev, { key, x: coordX, y: coordY, size: diameter }]);\n setTimeout(() => setRipples((prev) => prev.slice(1)), local.duration);\n };\n\n local.actionRef?.({ onRipple });\n\n return (\n <span\n {...rest}\n ref={mergeRefs(local.ref)}\n class={cn(\"smwb-ripple\", local.class, local.classes?.ripple)}\n data-testid=\"ripple\"\n aria-hidden=\"true\"\n >\n <For each={ripples()}>\n {(ripple) => (\n <span\n class={cn(\"smwb-ripple__child\", local.classes?.child)}\n style={{\n left: `${ripple.x}px`,\n top: `${ripple.y}px`,\n width: `${ripple.size}px`,\n height: `${ripple.size}px`,\n \"background-color\": local.color,\n }}\n />\n )}\n </For>\n </span>\n );\n}\n\nexport default Ripple;\n"],"mappings":"AAAA,SAAmB,KAAK,cAAc,YAAY,kBAAkB;AACpE,OAAO,QAAQ;AACf,SAAS,iBAA2B;AAkC7B,SAAS,OAAO,OAAiC;AACtD,QAAM,SAAS,WAAW,EAAE,UAAU,IAAI,GAAG,KAAK;AAClD,QAAM,CAAC,OAAO,IAAI,IAAI,WAAW,QAAQ;AAAA,IACvC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AAED,QAAM,CAAC,SAAS,UAAU,IAAI,aAA4B,CAAC,CAAC;AAC5D,MAAI,UAAU;AAEd,QAAM,WAAW,CAAC,UAA4B;AAC5C,UAAM,SAAS,MAAM;AACrB,UAAM,OAAO,OAAO,sBAAsB;AAC1C,UAAM,WAAW,KAAK,IAAI,KAAK,OAAO,KAAK,MAAM;AACjD,UAAM,SAAS,WAAW;AAE1B,QAAI;AACJ,QAAI;AACJ,QAAI,MAAM,QAAQ;AAChB,eAAS,KAAK,QAAQ,KAAK,SAAS,IAAI,KAAK,QAAQ,IAAI;AACzD,eAAS,KAAK,SAAS,KAAK,QAAQ,IAAI,KAAK,SAAS,IAAI;AAAA,IAC5D,OAAO;AACL,eAAS,MAAM,UAAU,KAAK,OAAO;AACrC,eAAS,MAAM,UAAU,KAAK,MAAM;AAAA,IACtC;AAEA,UAAM,MAAM;AACZ,eAAW,CAAC,SAAS,CAAC,GAAG,MAAM,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,MAAM,SAAS,CAAC,CAAC;AAC7E,eAAW,MAAM,WAAW,CAAC,SAAS,KAAK,MAAM,CAAC,CAAC,GAAG,MAAM,QAAQ;AAAA,EACtE;AAEA,QAAM,YAAY,EAAE,SAAS,CAAC;AAE9B,SACE,CAAC;AAAA,QACK;AAAA,IACJ,KAAK,UAAU,MAAM,GAAG;AAAA,IACxB,OAAO,GAAG,eAAe,MAAM,OAAO,MAAM,SAAS,MAAM;AAAA,IAC3D,YAAY;AAAA,IACZ,YAAY;AAAA,GACb;AAAA,MACC,CAAC,IAAI,MAAM,QAAQ,GAAG;AAAA,SACnB,CAAC,WACA,CAAC;AAAA,IACC,OAAO,GAAG,sBAAsB,MAAM,SAAS,KAAK;AAAA,IACpD,OAAO;AAAA,MACL,MAAM,GAAG,OAAO,CAAC;AAAA,MACjB,KAAK,GAAG,OAAO,CAAC;AAAA,MAChB,OAAO,GAAG,OAAO,IAAI;AAAA,MACrB,QAAQ,GAAG,OAAO,IAAI;AAAA,MACtB,oBAAoB,MAAM;AAAA,IAC5B;AAAA,EACF,GACA;AAAA,MACJ,EAbC,IAaK;AAAA,IACR,EArBC;AAuBL;AAEA,IAAO,iBAAQ;","names":[],"file":"ripple.jsx"}
@@ -0,0 +1,73 @@
1
+ import { children as resolveChildren, createEffect, mergeProps, onCleanup, onMount } from "solid-js";
2
+ function mapEventPropToEvent(eventProp) {
3
+ return eventProp.substring(2).toLowerCase();
4
+ }
5
+ function clickedRootScrollbar(event, doc) {
6
+ return doc.documentElement.clientWidth < event.clientX || doc.documentElement.clientHeight < event.clientY;
7
+ }
8
+ function ClickAwayListener(props) {
9
+ const merged = mergeProps(
10
+ { mouseEvent: "onMouseUp", touchEvent: "onTouchEnd", enabled: true },
11
+ props
12
+ );
13
+ const resolved = resolveChildren(() => merged.children);
14
+ const getNode = () => {
15
+ const c = resolved();
16
+ const el = Array.isArray(c) ? c.find((x) => x instanceof Element) : c;
17
+ return el instanceof Element ? el : void 0;
18
+ };
19
+ let activated = false;
20
+ let moved = false;
21
+ onMount(() => {
22
+ const timer = setTimeout(() => {
23
+ activated = true;
24
+ }, 0);
25
+ onCleanup(() => clearTimeout(timer));
26
+ });
27
+ const handleClickAway = (event) => {
28
+ const node = getNode();
29
+ if (!merged.enabled || !activated || !node || "clientX" in event && clickedRootScrollbar(event, document)) {
30
+ return;
31
+ }
32
+ if (moved) {
33
+ moved = false;
34
+ return;
35
+ }
36
+ let insideDOM;
37
+ if (event.composedPath) {
38
+ insideDOM = event.composedPath().indexOf(node) > -1;
39
+ } else {
40
+ const target = event.target;
41
+ insideDOM = !document.documentElement.contains(target) || node.contains(target);
42
+ }
43
+ if (!insideDOM) {
44
+ merged.onClickAway(event);
45
+ }
46
+ };
47
+ createEffect(() => {
48
+ const handleTouchMove = () => {
49
+ moved = true;
50
+ };
51
+ if (merged.touchEvent !== false) {
52
+ const mapped = mapEventPropToEvent(merged.touchEvent);
53
+ document.addEventListener(mapped, handleClickAway);
54
+ document.addEventListener("touchmove", handleTouchMove);
55
+ onCleanup(() => {
56
+ document.removeEventListener(mapped, handleClickAway);
57
+ document.removeEventListener("touchmove", handleTouchMove);
58
+ });
59
+ }
60
+ if (merged.mouseEvent !== false) {
61
+ const mapped = mapEventPropToEvent(merged.mouseEvent);
62
+ document.addEventListener(mapped, handleClickAway);
63
+ onCleanup(() => document.removeEventListener(mapped, handleClickAway));
64
+ }
65
+ });
66
+ return <>{resolved()}</>;
67
+ }
68
+ var clickAwayListener_default = ClickAwayListener;
69
+ export {
70
+ ClickAwayListener,
71
+ clickAwayListener_default as default
72
+ };
73
+ //# sourceMappingURL=clickAwayListener.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/clickAwayListener/clickAwayListener.tsx"],"sourcesContent":["import { type JSX, children as resolveChildren, createEffect, mergeProps, onCleanup, onMount } from \"solid-js\";\n\ntype ClickAwayMouseEventHandler = \"onClick\" | \"onMouseDown\" | \"onMouseUp\" | \"onPointerDown\" | \"onPointerUp\";\ntype ClickAwayTouchEventHandler = \"onTouchStart\" | \"onTouchEnd\";\n\ntype MappedEvent = \"click\" | \"mousedown\" | \"mouseup\" | \"touchstart\" | \"touchend\" | \"pointerdown\" | \"pointerup\";\n\nfunction mapEventPropToEvent(eventProp: ClickAwayMouseEventHandler | ClickAwayTouchEventHandler): MappedEvent {\n return eventProp.substring(2).toLowerCase() as MappedEvent;\n}\n\nfunction clickedRootScrollbar(event: MouseEvent, doc: Document): boolean {\n return doc.documentElement.clientWidth < event.clientX || doc.documentElement.clientHeight < event.clientY;\n}\n\nexport interface ClickAwayListenerProps {\n children: JSX.Element;\n mouseEvent?: ClickAwayMouseEventHandler | false;\n onClickAway: (event: MouseEvent | TouchEvent) => void;\n touchEvent?: ClickAwayTouchEventHandler | false;\n /** When false, the listener is inert without unmounting the child. */\n enabled?: boolean;\n}\n\n/**\n * Solid redesign of MUI's ClickAwayListener. React's version cloned the child\n * to inject a ref + synthetic handlers; Solid resolves the child to its DOM\n * node and uses `composedPath`/`contains` containment checks against document\n * listeners — no element cloning.\n */\nexport function ClickAwayListener(props: ClickAwayListenerProps): JSX.Element {\n const merged = mergeProps(\n { mouseEvent: \"onMouseUp\" as ClickAwayMouseEventHandler, touchEvent: \"onTouchEnd\" as ClickAwayTouchEventHandler, enabled: true },\n props\n );\n const resolved = resolveChildren(() => merged.children);\n\n const getNode = (): Element | undefined => {\n const c = resolved();\n const el = Array.isArray(c) ? c.find((x) => x instanceof Element) : c;\n return el instanceof Element ? el : undefined;\n };\n\n let activated = false;\n let moved = false;\n\n onMount(() => {\n // Defer activation a tick so the opening interaction doesn't immediately\n // trigger a click-away (see facebook/react#20074).\n const timer = setTimeout(() => {\n activated = true;\n }, 0);\n onCleanup(() => clearTimeout(timer));\n });\n\n const handleClickAway = (event: MouseEvent | TouchEvent): void => {\n const node = getNode();\n if (!merged.enabled || !activated || !node || (\"clientX\" in event && clickedRootScrollbar(event, document))) {\n return;\n }\n if (moved) {\n moved = false;\n return;\n }\n let insideDOM: boolean;\n if (event.composedPath) {\n insideDOM = event.composedPath().indexOf(node) > -1;\n } else {\n const target = event.target as HTMLElement;\n insideDOM = !document.documentElement.contains(target) || node.contains(target);\n }\n if (!insideDOM) {\n merged.onClickAway(event);\n }\n };\n\n createEffect(() => {\n const handleTouchMove = (): void => {\n moved = true;\n };\n if (merged.touchEvent !== false) {\n const mapped = mapEventPropToEvent(merged.touchEvent);\n document.addEventListener(mapped, handleClickAway as EventListener);\n document.addEventListener(\"touchmove\", handleTouchMove);\n onCleanup(() => {\n document.removeEventListener(mapped, handleClickAway as EventListener);\n document.removeEventListener(\"touchmove\", handleTouchMove);\n });\n }\n if (merged.mouseEvent !== false) {\n const mapped = mapEventPropToEvent(merged.mouseEvent);\n document.addEventListener(mapped, handleClickAway as EventListener);\n onCleanup(() => document.removeEventListener(mapped, handleClickAway as EventListener));\n }\n });\n\n return <>{resolved()}</>;\n}\n\nexport default ClickAwayListener;\n"],"mappings":"AAAA,SAAmB,YAAY,iBAAiB,cAAc,YAAY,WAAW,eAAe;AAOpG,SAAS,oBAAoB,WAAiF;AAC5G,SAAO,UAAU,UAAU,CAAC,EAAE,YAAY;AAC5C;AAEA,SAAS,qBAAqB,OAAmB,KAAwB;AACvE,SAAO,IAAI,gBAAgB,cAAc,MAAM,WAAW,IAAI,gBAAgB,eAAe,MAAM;AACrG;AAiBO,SAAS,kBAAkB,OAA4C;AAC5E,QAAM,SAAS;AAAA,IACb,EAAE,YAAY,aAA2C,YAAY,cAA4C,SAAS,KAAK;AAAA,IAC/H;AAAA,EACF;AACA,QAAM,WAAW,gBAAgB,MAAM,OAAO,QAAQ;AAEtD,QAAM,UAAU,MAA2B;AACzC,UAAM,IAAI,SAAS;AACnB,UAAM,KAAK,MAAM,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,aAAa,OAAO,IAAI;AACpE,WAAO,cAAc,UAAU,KAAK;AAAA,EACtC;AAEA,MAAI,YAAY;AAChB,MAAI,QAAQ;AAEZ,UAAQ,MAAM;AAGZ,UAAM,QAAQ,WAAW,MAAM;AAC7B,kBAAY;AAAA,IACd,GAAG,CAAC;AACJ,cAAU,MAAM,aAAa,KAAK,CAAC;AAAA,EACrC,CAAC;AAED,QAAM,kBAAkB,CAAC,UAAyC;AAChE,UAAM,OAAO,QAAQ;AACrB,QAAI,CAAC,OAAO,WAAW,CAAC,aAAa,CAAC,QAAS,aAAa,SAAS,qBAAqB,OAAO,QAAQ,GAAI;AAC3G;AAAA,IACF;AACA,QAAI,OAAO;AACT,cAAQ;AACR;AAAA,IACF;AACA,QAAI;AACJ,QAAI,MAAM,cAAc;AACtB,kBAAY,MAAM,aAAa,EAAE,QAAQ,IAAI,IAAI;AAAA,IACnD,OAAO;AACL,YAAM,SAAS,MAAM;AACrB,kBAAY,CAAC,SAAS,gBAAgB,SAAS,MAAM,KAAK,KAAK,SAAS,MAAM;AAAA,IAChF;AACA,QAAI,CAAC,WAAW;AACd,aAAO,YAAY,KAAK;AAAA,IAC1B;AAAA,EACF;AAEA,eAAa,MAAM;AACjB,UAAM,kBAAkB,MAAY;AAClC,cAAQ;AAAA,IACV;AACA,QAAI,OAAO,eAAe,OAAO;AAC/B,YAAM,SAAS,oBAAoB,OAAO,UAAU;AACpD,eAAS,iBAAiB,QAAQ,eAAgC;AAClE,eAAS,iBAAiB,aAAa,eAAe;AACtD,gBAAU,MAAM;AACd,iBAAS,oBAAoB,QAAQ,eAAgC;AACrE,iBAAS,oBAAoB,aAAa,eAAe;AAAA,MAC3D,CAAC;AAAA,IACH;AACA,QAAI,OAAO,eAAe,OAAO;AAC/B,YAAM,SAAS,oBAAoB,OAAO,UAAU;AACpD,eAAS,iBAAiB,QAAQ,eAAgC;AAClE,gBAAU,MAAM,SAAS,oBAAoB,QAAQ,eAAgC,CAAC;AAAA,IACxF;AAAA,EACF,CAAC;AAED,SAAO,GAAG,SAAS,EAAE;AACvB;AAEA,IAAO,4BAAQ;","names":[],"file":"clickAwayListener.jsx"}
@@ -0,0 +1,6 @@
1
+ import { ClickAwayListener, default as default2 } from "./clickAwayListener";
2
+ export {
3
+ ClickAwayListener,
4
+ default2 as default
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/components/clickAwayListener/index.ts"],
4
+ "sourcesContent": ["export { ClickAwayListener, default } from \"./clickAwayListener\";\nexport type { ClickAwayListenerProps } from \"./clickAwayListener\";\n"],
5
+ "mappings": "AAAA,SAAS,mBAAmB,WAAAA,gBAAe;",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,82 @@
1
+ import { Show, mergeProps, splitProps } from "solid-js";
2
+ import cn from "clsx";
3
+ import { AnimateHeight } from "../../base/animateHeight/animateHeight";
4
+ import { Icon } from "../../base/icon";
5
+ import { createControllableState } from "../../../primitives/createControllableState";
6
+ import { createId } from "../../../primitives/createId";
7
+ import { mergeRefs } from "../../../primitives/mergeRefs";
8
+ function Accordion(props) {
9
+ const merged = mergeProps({ isOpenByDefault: false }, props);
10
+ const [local] = splitProps(merged, [
11
+ "class",
12
+ "title",
13
+ "isOpenByDefault",
14
+ "open",
15
+ "disabled",
16
+ "icon",
17
+ "id",
18
+ "children",
19
+ "startAdornment",
20
+ "noIcon",
21
+ "onToggleClick",
22
+ "onChange",
23
+ "ref"
24
+ ]);
25
+ const [isOpen, setIsOpen] = createControllableState({
26
+ value: () => local.open,
27
+ defaultValue: local.isOpenByDefault,
28
+ onChange: (next) => local.onChange?.(next)
29
+ });
30
+ const baseId = createId(local.id);
31
+ const contentId = `${baseId}-content`;
32
+ const headerId = `${baseId}-header`;
33
+ const toggle = (event) => {
34
+ if (local.disabled) return;
35
+ setIsOpen(!isOpen());
36
+ local.onToggleClick?.(event);
37
+ };
38
+ return <div
39
+ ref={mergeRefs(local.ref)}
40
+ class={cn("smwb-accordion", { "smwb-disabled": local.disabled }, local.class)}
41
+ data-testid="accordion"
42
+ >
43
+ <button
44
+ id={headerId}
45
+ class="smwb-accordion__header"
46
+ onClick={toggle}
47
+ type="button"
48
+ disabled={local.disabled}
49
+ aria-expanded={isOpen()}
50
+ aria-controls={local.children ? contentId : void 0}
51
+ >
52
+ {local.startAdornment?.(isOpen())}
53
+ <span class="smwb-accordion__title">{local.title}</span>
54
+ <Show when={!local.noIcon}>
55
+ <Show
56
+ when={local.icon}
57
+ fallback={<Icon
58
+ class={cn("smwb-accordion__arrow-icon", { "smwb-accordion__arrow-icon_opened": isOpen() })}
59
+ name="expand_more"
60
+ size={24}
61
+ />}
62
+ >
63
+ {local.icon}
64
+ </Show>
65
+ </Show>
66
+ </button>
67
+
68
+ <Show when={local.children}>
69
+ <div id={contentId} role="region" aria-labelledby={headerId}>
70
+ <AnimateHeight height={isOpen() ? "auto" : 0} animateOpacity duration={300} class="smwb-accordion__content">
71
+ {local.children}
72
+ </AnimateHeight>
73
+ </div>
74
+ </Show>
75
+ </div>;
76
+ }
77
+ var accordion_default = Accordion;
78
+ export {
79
+ Accordion,
80
+ accordion_default as default
81
+ };
82
+ //# sourceMappingURL=accordion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/components/dataDisplay/accordion/accordion.tsx"],"sourcesContent":["import { type JSX, type ParentProps, Show, mergeProps, splitProps } from \"solid-js\";\nimport cn from \"clsx\";\nimport { AnimateHeight } from \"../../base/animateHeight/animateHeight\";\nimport { Icon } from \"../../base/icon\";\nimport { createControllableState } from \"../../../primitives/createControllableState\";\nimport { createId } from \"../../../primitives/createId\";\nimport { mergeRefs, type Ref } from \"../../../primitives/mergeRefs\";\n\nexport interface AccordionProps {\n class?: string;\n title?: string;\n isOpenByDefault?: boolean;\n /** Controlled open state. When set, the component is controlled. */\n open?: boolean;\n /** Disable toggling. */\n disabled?: boolean;\n /** Custom expand icon (replaces the default chevron). */\n icon?: JSX.Element;\n id?: string;\n startAdornment?: (isOpen: boolean) => JSX.Element;\n noIcon?: boolean;\n onToggleClick?: (e: MouseEvent & { currentTarget: HTMLButtonElement; target: Element }) => void;\n /** Fired with the next open state on toggle. */\n onChange?: (open: boolean) => void;\n ref?: Ref<HTMLDivElement>;\n}\n\nexport function Accordion(props: ParentProps<AccordionProps>): JSX.Element {\n const merged = mergeProps({ isOpenByDefault: false }, props);\n const [local] = splitProps(merged, [\n \"class\",\n \"title\",\n \"isOpenByDefault\",\n \"open\",\n \"disabled\",\n \"icon\",\n \"id\",\n \"children\",\n \"startAdornment\",\n \"noIcon\",\n \"onToggleClick\",\n \"onChange\",\n \"ref\",\n ]);\n\n const [isOpen, setIsOpen] = createControllableState<boolean>({\n value: () => local.open,\n defaultValue: local.isOpenByDefault,\n onChange: (next) => local.onChange?.(next),\n });\n\n const baseId = createId(local.id);\n const contentId = `${baseId}-content`;\n const headerId = `${baseId}-header`;\n\n const toggle: JSX.EventHandler<HTMLButtonElement, MouseEvent> = (event) => {\n if (local.disabled) return;\n setIsOpen(!isOpen());\n local.onToggleClick?.(event);\n };\n\n return (\n <div\n ref={mergeRefs(local.ref)}\n class={cn(\"smwb-accordion\", { \"smwb-disabled\": local.disabled }, local.class)}\n data-testid=\"accordion\"\n >\n <button\n id={headerId}\n class=\"smwb-accordion__header\"\n onClick={toggle}\n type=\"button\"\n disabled={local.disabled}\n aria-expanded={isOpen()}\n aria-controls={local.children ? contentId : undefined}\n >\n {local.startAdornment?.(isOpen())}\n <span class=\"smwb-accordion__title\">{local.title}</span>\n <Show when={!local.noIcon}>\n <Show\n when={local.icon}\n fallback={\n <Icon\n class={cn(\"smwb-accordion__arrow-icon\", { \"smwb-accordion__arrow-icon_opened\": isOpen() })}\n name=\"expand_more\"\n size={24}\n />\n }\n >\n {local.icon}\n </Show>\n </Show>\n </button>\n\n <Show when={local.children}>\n <div id={contentId} role=\"region\" aria-labelledby={headerId}>\n <AnimateHeight height={isOpen() ? \"auto\" : 0} animateOpacity duration={300} class=\"smwb-accordion__content\">\n {local.children}\n </AnimateHeight>\n </div>\n </Show>\n </div>\n );\n}\n\nexport default Accordion;\n"],"mappings":"AAAA,SAAqC,MAAM,YAAY,kBAAkB;AACzE,OAAO,QAAQ;AACf,SAAS,qBAAqB;AAC9B,SAAS,YAAY;AACrB,SAAS,+BAA+B;AACxC,SAAS,gBAAgB;AACzB,SAAS,iBAA2B;AAqB7B,SAAS,UAAU,OAAiD;AACzE,QAAM,SAAS,WAAW,EAAE,iBAAiB,MAAM,GAAG,KAAK;AAC3D,QAAM,CAAC,KAAK,IAAI,WAAW,QAAQ;AAAA,IACjC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AAED,QAAM,CAAC,QAAQ,SAAS,IAAI,wBAAiC;AAAA,IAC3D,OAAO,MAAM,MAAM;AAAA,IACnB,cAAc,MAAM;AAAA,IACpB,UAAU,CAAC,SAAS,MAAM,WAAW,IAAI;AAAA,EAC3C,CAAC;AAED,QAAM,SAAS,SAAS,MAAM,EAAE;AAChC,QAAM,YAAY,GAAG,MAAM;AAC3B,QAAM,WAAW,GAAG,MAAM;AAE1B,QAAM,SAA0D,CAAC,UAAU;AACzE,QAAI,MAAM,SAAU;AACpB,cAAU,CAAC,OAAO,CAAC;AACnB,UAAM,gBAAgB,KAAK;AAAA,EAC7B;AAEA,SACE,CAAC;AAAA,IACC,KAAK,UAAU,MAAM,GAAG;AAAA,IACxB,OAAO,GAAG,kBAAkB,EAAE,iBAAiB,MAAM,SAAS,GAAG,MAAM,KAAK;AAAA,IAC5E,YAAY;AAAA,GACb;AAAA,MACC,CAAC;AAAA,IACC,IAAI;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,IACT,KAAK;AAAA,IACL,UAAU,MAAM;AAAA,IAChB,eAAe,OAAO;AAAA,IACtB,eAAe,MAAM,WAAW,YAAY;AAAA,GAC7C;AAAA,SACE,MAAM,iBAAiB,OAAO,CAAC,EAAE;AAAA,QAClC,CAAC,KAAK,MAAM,yBAAyB,MAAM,MAAM,EAAhD,KAAuD;AAAA,QACxD,CAAC,KAAK,MAAM,CAAC,MAAM,QAAQ;AAAA,UACzB,CAAC;AAAA,IACC,MAAM,MAAM;AAAA,IACZ,UACE,CAAC;AAAA,MACC,OAAO,GAAG,8BAA8B,EAAE,qCAAqC,OAAO,EAAE,CAAC;AAAA,MACzF,KAAK;AAAA,MACL,MAAM;AAAA,IACR;AAAA,GAEH;AAAA,aACE,MAAM,KAAK;AAAA,UACd,EAXC,KAWM;AAAA,QACT,EAbC,KAaM;AAAA,MACT,EAzBC,OAyBQ;AAAA;AAAA,MAET,CAAC,KAAK,MAAM,MAAM,UAAU;AAAA,QAC1B,CAAC,IAAI,IAAI,WAAW,KAAK,SAAS,iBAAiB,UAAU;AAAA,UAC3D,CAAC,cAAc,QAAQ,OAAO,IAAI,SAAS,GAAG,eAAe,UAAU,KAAK,MAAM,0BAA0B;AAAA,aACzG,MAAM,SAAS;AAAA,UAClB,EAFC,cAEe;AAAA,QAClB,EAJC,IAIK;AAAA,MACR,EANC,KAMM;AAAA,IACT,EAvCC;AAyCL;AAEA,IAAO,oBAAQ;","names":[],"file":"accordion.jsx"}
@@ -0,0 +1,6 @@
1
+ import { Accordion, default as default2 } from "./accordion";
2
+ export {
3
+ Accordion,
4
+ default2 as default
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../src/components/dataDisplay/accordion/index.ts"],
4
+ "sourcesContent": ["export { Accordion, default } from \"./accordion\";\nexport type { AccordionProps } from \"./accordion\";\n"],
5
+ "mappings": "AAAA,SAAS,WAAW,WAAAA,gBAAe;",
6
+ "names": ["default"]
7
+ }