@ahrowe/ui 0.35.0 → 0.36.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 (727) hide show
  1. package/README.md +100 -71
  2. package/dist/cjs-types/common/accordion/accordion.d.ts +4 -0
  3. package/dist/cjs-types/common/accordion/accordion.types.d.ts +21 -0
  4. package/dist/cjs-types/common/accordion/index.d.ts +2 -0
  5. package/dist/cjs-types/common/actionButtons/actionButtons.d.ts +2 -0
  6. package/dist/cjs-types/common/actionButtons/actionButtons.types.d.ts +34 -0
  7. package/dist/cjs-types/common/actionButtons/index.d.ts +2 -0
  8. package/dist/cjs-types/common/actionIcon/actionIcon.d.ts +4 -0
  9. package/dist/cjs-types/common/actionIcon/actionIcon.types.d.ts +15 -0
  10. package/dist/cjs-types/common/actionIcon/index.d.ts +2 -0
  11. package/dist/cjs-types/common/alert/alert.d.ts +4 -0
  12. package/dist/cjs-types/common/alert/alert.types.d.ts +30 -0
  13. package/dist/cjs-types/common/alert/index.d.ts +2 -0
  14. package/dist/cjs-types/common/animatedIcon/animatedIcon.d.ts +3 -0
  15. package/dist/cjs-types/common/animatedIcon/animatedIcon.types.d.ts +25 -0
  16. package/dist/cjs-types/common/animatedIcon/index.d.ts +2 -0
  17. package/dist/cjs-types/common/animatedLogo/animatedLogo.d.ts +4 -0
  18. package/dist/cjs-types/common/animatedLogo/animatedLogo.types.d.ts +35 -0
  19. package/dist/cjs-types/common/animatedLogo/index.d.ts +2 -0
  20. package/dist/cjs-types/common/animatedText/animatedText.d.ts +4 -0
  21. package/dist/cjs-types/common/animatedText/animatedText.types.d.ts +65 -0
  22. package/dist/cjs-types/common/animatedText/index.d.ts +2 -0
  23. package/dist/cjs-types/common/avatar/avatar.d.ts +4 -0
  24. package/dist/cjs-types/common/avatar/avatar.types.d.ts +26 -0
  25. package/dist/cjs-types/common/avatar/avatarGroup.d.ts +4 -0
  26. package/dist/cjs-types/common/avatar/index.d.ts +3 -0
  27. package/dist/cjs-types/common/badge/badge.d.ts +4 -0
  28. package/dist/cjs-types/common/badge/badge.types.d.ts +31 -0
  29. package/dist/cjs-types/common/badge/index.d.ts +2 -0
  30. package/dist/cjs-types/common/bodyEnd/bodyEnd.d.ts +4 -0
  31. package/dist/cjs-types/common/bodyEnd/bodyEnd.types.d.ts +4 -0
  32. package/dist/cjs-types/common/bodyEnd/index.d.ts +2 -0
  33. package/dist/cjs-types/common/breadcrumb/breadcrumb.d.ts +4 -0
  34. package/dist/cjs-types/common/breadcrumb/breadcrumb.types.d.ts +33 -0
  35. package/dist/cjs-types/common/breadcrumb/index.d.ts +2 -0
  36. package/dist/cjs-types/common/button/button.d.ts +9 -0
  37. package/dist/cjs-types/common/button/button.types.d.ts +42 -0
  38. package/dist/cjs-types/common/button/index.d.ts +2 -0
  39. package/dist/cjs-types/common/buttonGroup/buttonGroup.d.ts +4 -0
  40. package/dist/cjs-types/common/buttonGroup/buttonGroup.types.d.ts +12 -0
  41. package/dist/cjs-types/common/buttonGroup/index.d.ts +2 -0
  42. package/dist/cjs-types/common/card/Card.d.ts +4 -0
  43. package/dist/cjs-types/common/card/CardActions.d.ts +4 -0
  44. package/dist/cjs-types/common/card/CardContent.d.ts +4 -0
  45. package/dist/cjs-types/common/card/CardHeader.d.ts +4 -0
  46. package/dist/cjs-types/common/card/CardMedia.d.ts +4 -0
  47. package/dist/cjs-types/common/card/card.types.d.ts +55 -0
  48. package/dist/cjs-types/common/card/index.d.ts +6 -0
  49. package/dist/cjs-types/common/carousel/carousel.d.ts +4 -0
  50. package/dist/cjs-types/common/carousel/carousel.types.d.ts +35 -0
  51. package/dist/cjs-types/common/carousel/index.d.ts +2 -0
  52. package/dist/cjs-types/common/checkbox/checkbox.d.ts +4 -0
  53. package/dist/cjs-types/common/checkbox/checkbox.types.d.ts +27 -0
  54. package/dist/cjs-types/common/checkbox/index.d.ts +2 -0
  55. package/dist/cjs-types/common/chip/chip.d.ts +4 -0
  56. package/dist/cjs-types/common/chip/chip.types.d.ts +35 -0
  57. package/dist/cjs-types/common/chip/chipContainer.d.ts +4 -0
  58. package/dist/cjs-types/common/chip/index.d.ts +3 -0
  59. package/dist/cjs-types/common/colorPicker/colorPicker.d.ts +4 -0
  60. package/dist/cjs-types/common/colorPicker/colorPicker.types.d.ts +25 -0
  61. package/dist/cjs-types/common/colorPicker/index.d.ts +2 -0
  62. package/dist/cjs-types/common/colorPicker/toHex.d.ts +11 -0
  63. package/dist/cjs-types/common/configProvider/configProvider.d.ts +13 -0
  64. package/dist/cjs-types/common/configProvider/configProvider.types.d.ts +133 -0
  65. package/dist/cjs-types/common/configProvider/index.d.ts +6 -0
  66. package/dist/cjs-types/common/configProvider/presentation.types.d.ts +14 -0
  67. package/dist/cjs-types/common/configProvider/useComponentDefaults.d.ts +17 -0
  68. package/dist/cjs-types/common/configProvider/useLabels.d.ts +22 -0
  69. package/dist/cjs-types/common/configProvider/usePresentationDefault.d.ts +8 -0
  70. package/dist/cjs-types/common/confirmModal/confirmModal.d.ts +4 -0
  71. package/dist/cjs-types/common/confirmModal/confirmModal.types.d.ts +24 -0
  72. package/dist/cjs-types/common/confirmModal/index.d.ts +2 -0
  73. package/dist/cjs-types/common/datePicker/components/datePickerMonth/datePickerMonth.d.ts +2 -0
  74. package/dist/cjs-types/common/datePicker/components/datePickerMonth/datePickerMonth.types.d.ts +23 -0
  75. package/dist/cjs-types/common/datePicker/components/datePickerMonth/index.d.ts +1 -0
  76. package/dist/cjs-types/common/datePicker/dateFunctions.d.ts +44 -0
  77. package/dist/cjs-types/common/datePicker/datePicker.d.ts +3 -0
  78. package/dist/cjs-types/common/datePicker/datePicker.types.d.ts +60 -0
  79. package/dist/cjs-types/common/datePicker/index.d.ts +2 -0
  80. package/dist/cjs-types/common/divider/divider.d.ts +4 -0
  81. package/dist/cjs-types/common/divider/divider.types.d.ts +21 -0
  82. package/dist/cjs-types/common/divider/index.d.ts +2 -0
  83. package/dist/cjs-types/common/drawer/drawer.d.ts +4 -0
  84. package/dist/cjs-types/common/drawer/drawer.types.d.ts +15 -0
  85. package/dist/cjs-types/common/drawer/index.d.ts +2 -0
  86. package/dist/cjs-types/common/dropZone/dropZone.d.ts +4 -0
  87. package/dist/cjs-types/common/dropZone/dropZone.types.d.ts +90 -0
  88. package/dist/cjs-types/common/dropZone/index.d.ts +2 -0
  89. package/dist/cjs-types/common/dropdown/dropdown.d.ts +4 -0
  90. package/dist/cjs-types/common/dropdown/dropdown.types.d.ts +47 -0
  91. package/dist/cjs-types/common/dropdown/index.d.ts +2 -0
  92. package/dist/cjs-types/common/emptyState/emptyState.d.ts +3 -0
  93. package/dist/cjs-types/common/emptyState/emptyState.types.d.ts +20 -0
  94. package/dist/cjs-types/common/emptyState/index.d.ts +2 -0
  95. package/dist/cjs-types/common/errorBoundary/errorBoundary.d.ts +14 -0
  96. package/dist/cjs-types/common/errorBoundary/errorBoundary.types.d.ts +57 -0
  97. package/dist/cjs-types/common/errorBoundary/index.d.ts +2 -0
  98. package/dist/cjs-types/common/fab/components/fabBase/fabBase.d.ts +3 -0
  99. package/dist/cjs-types/common/fab/components/fabBase/fabBase.types.d.ts +12 -0
  100. package/dist/cjs-types/common/fab/components/fabBase/index.d.ts +1 -0
  101. package/dist/cjs-types/common/fab/fab.d.ts +3 -0
  102. package/dist/cjs-types/common/fab/fab.types.d.ts +22 -0
  103. package/dist/cjs-types/common/fab/index.d.ts +2 -0
  104. package/dist/cjs-types/common/flip/flip.d.ts +3 -0
  105. package/dist/cjs-types/common/flip/flip.types.d.ts +44 -0
  106. package/dist/cjs-types/common/flip/index.d.ts +2 -0
  107. package/dist/cjs-types/common/floorPlan/floorPlan.faces.d.ts +33 -0
  108. package/dist/cjs-types/common/floorPlan/floorPlan.fixtures.d.ts +35 -0
  109. package/dist/cjs-types/common/floorPlan/floorPlan.geometry.d.ts +111 -0
  110. package/dist/cjs-types/common/floorPlan/floorPlan.graph.d.ts +184 -0
  111. package/dist/cjs-types/common/floorPlan/floorPlan.hit.d.ts +26 -0
  112. package/dist/cjs-types/common/floorPlan/floorPlan.json.d.ts +23 -0
  113. package/dist/cjs-types/common/floorPlan/floorPlan.mesh.d.ts +36 -0
  114. package/dist/cjs-types/common/floorPlan/floorPlan.path.d.ts +59 -0
  115. package/dist/cjs-types/common/floorPlan/floorPlan.plan.d.ts +98 -0
  116. package/dist/cjs-types/common/floorPlan/floorPlan.rooms.d.ts +47 -0
  117. package/dist/cjs-types/common/floorPlan/floorPlan.snap.d.ts +101 -0
  118. package/dist/cjs-types/common/floorPlan/floorPlan.triangulate.d.ts +11 -0
  119. package/dist/cjs-types/common/floorPlan/floorPlan.types.d.ts +276 -0
  120. package/dist/cjs-types/common/floorPlan/index.d.ts +30 -0
  121. package/dist/cjs-types/common/floorPlan/legacySvg.d.ts +27 -0
  122. package/dist/cjs-types/common/hooks/useAnchorTracking.d.ts +40 -0
  123. package/dist/cjs-types/common/hooks/useCoarsePointer.d.ts +3 -0
  124. package/dist/cjs-types/common/hooks/useFocusBoundary.d.ts +20 -0
  125. package/dist/cjs-types/common/hooks/useMediaQuery.d.ts +9 -0
  126. package/dist/cjs-types/common/hooks/useOverlay.d.ts +26 -0
  127. package/dist/cjs-types/common/hooks/useScrollEdges.d.ts +18 -0
  128. package/dist/cjs-types/common/hooks/useSheet.d.ts +19 -0
  129. package/dist/cjs-types/common/hooks/useSwipeDismiss.d.ts +33 -0
  130. package/dist/cjs-types/common/hooks/useVisualViewportSize.d.ts +13 -0
  131. package/dist/cjs-types/common/iconPicker/iconPicker.d.ts +3 -0
  132. package/dist/cjs-types/common/iconPicker/iconPicker.types.d.ts +23 -0
  133. package/dist/cjs-types/common/iconPicker/index.d.ts +2 -0
  134. package/dist/cjs-types/common/idleManager/idleManager.d.ts +3 -0
  135. package/dist/cjs-types/common/idleManager/idleManager.types.d.ts +8 -0
  136. package/dist/cjs-types/common/idleManager/index.d.ts +2 -0
  137. package/dist/cjs-types/common/infiniteBlock/useInfiniteScroll.d.ts +5 -0
  138. package/dist/cjs-types/common/input/index.d.ts +2 -0
  139. package/dist/cjs-types/common/input/input.d.ts +4 -0
  140. package/dist/cjs-types/common/input/input.types.d.ts +84 -0
  141. package/dist/cjs-types/common/inputDropdown/index.d.ts +2 -0
  142. package/dist/cjs-types/common/inputDropdown/inputDropdown.d.ts +3 -0
  143. package/dist/cjs-types/common/inputDropdown/inputDropdown.types.d.ts +36 -0
  144. package/dist/cjs-types/common/interactableDiv/index.d.ts +2 -0
  145. package/dist/cjs-types/common/interactableDiv/interactableDiv.d.ts +8 -0
  146. package/dist/cjs-types/common/kanbanBoard/KanbanBoard.d.ts +3 -0
  147. package/dist/cjs-types/common/kanbanBoard/KanbanColumn.d.ts +45 -0
  148. package/dist/cjs-types/common/kanbanBoard/KanbanItem.d.ts +3 -0
  149. package/dist/cjs-types/common/kanbanBoard/index.d.ts +3 -0
  150. package/dist/cjs-types/common/kanbanBoard/kanbanBoard.types.d.ts +129 -0
  151. package/dist/cjs-types/common/kanbanBoard/kanbanBoard.utils.d.ts +60 -0
  152. package/dist/cjs-types/common/klipyPicker/components/gifPreview/gifPreview.d.ts +3 -0
  153. package/dist/cjs-types/common/klipyPicker/components/gifPreview/gifPreview.types.d.ts +7 -0
  154. package/dist/cjs-types/common/klipyPicker/components/gifPreview/index.d.ts +1 -0
  155. package/dist/cjs-types/common/klipyPicker/components/gifView/gifView.d.ts +3 -0
  156. package/dist/cjs-types/common/klipyPicker/components/gifView/gifView.types.d.ts +4 -0
  157. package/dist/cjs-types/common/klipyPicker/components/gifView/index.d.ts +1 -0
  158. package/dist/cjs-types/common/klipyPicker/index.d.ts +2 -0
  159. package/dist/cjs-types/common/klipyPicker/klipyPicker.d.ts +3 -0
  160. package/dist/cjs-types/common/klipyPicker/klipyPicker.types.d.ts +15 -0
  161. package/dist/cjs-types/common/loading/iconLoading/iconLoading.d.ts +5 -0
  162. package/dist/cjs-types/common/loading/iconLoading/index.d.ts +2 -0
  163. package/dist/cjs-types/common/loading/index.d.ts +2 -0
  164. package/dist/cjs-types/common/loading/spinnerLoading/index.d.ts +2 -0
  165. package/dist/cjs-types/common/loading/spinnerLoading/spinnerLoading.d.ts +6 -0
  166. package/dist/cjs-types/common/maskedInput/index.d.ts +2 -0
  167. package/dist/cjs-types/common/maskedInput/mask.d.ts +48 -0
  168. package/dist/cjs-types/common/maskedInput/maskedInput.d.ts +13 -0
  169. package/dist/cjs-types/common/maskedInput/maskedInput.types.d.ts +38 -0
  170. package/dist/cjs-types/common/menu/index.d.ts +2 -0
  171. package/dist/cjs-types/common/menu/menu.d.ts +14 -0
  172. package/dist/cjs-types/common/menu/menu.types.d.ts +55 -0
  173. package/dist/cjs-types/common/modal/index.d.ts +2 -0
  174. package/dist/cjs-types/common/modal/modal.d.ts +3 -0
  175. package/dist/cjs-types/common/modal/modal.types.d.ts +31 -0
  176. package/dist/cjs-types/common/multiSelect/index.d.ts +2 -0
  177. package/dist/cjs-types/common/multiSelect/multiSelect.d.ts +4 -0
  178. package/dist/cjs-types/common/multiSelect/multiSelect.types.d.ts +69 -0
  179. package/dist/cjs-types/common/numberInput/index.d.ts +3 -0
  180. package/dist/cjs-types/common/numberInput/numberInput.d.ts +5 -0
  181. package/dist/cjs-types/common/numberInput/numberInput.types.d.ts +76 -0
  182. package/dist/cjs-types/common/numberInput/useStepRepeat.d.ts +17 -0
  183. package/dist/cjs-types/common/optionPicker/index.d.ts +2 -0
  184. package/dist/cjs-types/common/optionPicker/optionPicker.d.ts +4 -0
  185. package/dist/cjs-types/common/optionPicker/optionPicker.types.d.ts +16 -0
  186. package/dist/cjs-types/common/otpInput/index.d.ts +2 -0
  187. package/dist/cjs-types/common/otpInput/otpInput.d.ts +4 -0
  188. package/dist/cjs-types/common/otpInput/otpInput.types.d.ts +60 -0
  189. package/dist/cjs-types/common/overscroll/index.d.ts +2 -0
  190. package/dist/cjs-types/common/overscroll/overscroll.d.ts +2 -0
  191. package/dist/cjs-types/common/overscroll/overscroll.types.d.ts +14 -0
  192. package/dist/cjs-types/common/pagination/index.d.ts +2 -0
  193. package/dist/cjs-types/common/pagination/pagination.d.ts +4 -0
  194. package/dist/cjs-types/common/pagination/pagination.types.d.ts +45 -0
  195. package/dist/cjs-types/common/planCanvas/index.d.ts +2 -0
  196. package/dist/cjs-types/common/planCanvas/planCanvas.d.ts +7 -0
  197. package/dist/cjs-types/common/planCanvas/planCanvas.types.d.ts +64 -0
  198. package/dist/cjs-types/common/popover/index.d.ts +2 -0
  199. package/dist/cjs-types/common/popover/popover.d.ts +3 -0
  200. package/dist/cjs-types/common/popover/popover.types.d.ts +94 -0
  201. package/dist/cjs-types/common/popover/usePopoverPosition.d.ts +44 -0
  202. package/dist/cjs-types/common/progressBar/index.d.ts +2 -0
  203. package/dist/cjs-types/common/progressBar/progressBar.d.ts +5 -0
  204. package/dist/cjs-types/common/progressBar/progressBar.types.d.ts +18 -0
  205. package/dist/cjs-types/common/radioGroup/index.d.ts +2 -0
  206. package/dist/cjs-types/common/radioGroup/radioGroup.d.ts +4 -0
  207. package/dist/cjs-types/common/radioGroup/radioGroup.types.d.ts +45 -0
  208. package/dist/cjs-types/common/rating/index.d.ts +2 -0
  209. package/dist/cjs-types/common/rating/rating.d.ts +4 -0
  210. package/dist/cjs-types/common/rating/rating.types.d.ts +19 -0
  211. package/dist/cjs-types/common/revealLens/index.d.ts +2 -0
  212. package/dist/cjs-types/common/revealLens/revealLens.d.ts +4 -0
  213. package/dist/cjs-types/common/revealLens/revealLens.types.d.ts +24 -0
  214. package/dist/cjs-types/common/ripple/index.d.ts +2 -0
  215. package/dist/cjs-types/common/ripple/ripple.d.ts +5 -0
  216. package/dist/cjs-types/common/ripple/ripple.types.d.ts +16 -0
  217. package/dist/cjs-types/common/roomDrawer/index.d.ts +2 -0
  218. package/dist/cjs-types/common/roomDrawer/roomDrawer.d.ts +3 -0
  219. package/dist/cjs-types/common/roomDrawer/roomDrawer.types.d.ts +308 -0
  220. package/dist/cjs-types/common/roomDrawer/usePlanHistory.d.ts +24 -0
  221. package/dist/cjs-types/common/roomViewer/index.d.ts +2 -0
  222. package/dist/cjs-types/common/roomViewer/roomViewer.d.ts +10 -0
  223. package/dist/cjs-types/common/roomViewer/roomViewer.types.d.ts +91 -0
  224. package/dist/cjs-types/common/scrollFade/index.d.ts +2 -0
  225. package/dist/cjs-types/common/scrollFade/scrollFade.d.ts +4 -0
  226. package/dist/cjs-types/common/scrollFade/scrollFade.types.d.ts +20 -0
  227. package/dist/cjs-types/common/scrollbarProvider/index.d.ts +2 -0
  228. package/dist/cjs-types/common/scrollbarProvider/scrollbarProvider.d.ts +7 -0
  229. package/dist/cjs-types/common/searchInput/index.d.ts +2 -0
  230. package/dist/cjs-types/common/searchInput/searchInput.d.ts +3 -0
  231. package/dist/cjs-types/common/searchInput/searchInput.types.d.ts +28 -0
  232. package/dist/cjs-types/common/sectionHeader/index.d.ts +2 -0
  233. package/dist/cjs-types/common/sectionHeader/sectionHeader.d.ts +4 -0
  234. package/dist/cjs-types/common/sectionHeader/sectionHeader.types.d.ts +27 -0
  235. package/dist/cjs-types/common/sheetBackdrop/index.d.ts +2 -0
  236. package/dist/cjs-types/common/sheetBackdrop/sheetBackdrop.d.ts +16 -0
  237. package/dist/cjs-types/common/sheetBackdrop/sheetBackdrop.types.d.ts +7 -0
  238. package/dist/cjs-types/common/skeleton/index.d.ts +2 -0
  239. package/dist/cjs-types/common/skeleton/skeleton.d.ts +4 -0
  240. package/dist/cjs-types/common/skeleton/skeleton.types.d.ts +22 -0
  241. package/dist/cjs-types/common/slider/index.d.ts +2 -0
  242. package/dist/cjs-types/common/slider/slider.d.ts +3 -0
  243. package/dist/cjs-types/common/slider/slider.types.d.ts +68 -0
  244. package/dist/cjs-types/common/splitButton/index.d.ts +2 -0
  245. package/dist/cjs-types/common/splitButton/splitButton.d.ts +3 -0
  246. package/dist/cjs-types/common/splitButton/splitButton.types.d.ts +35 -0
  247. package/dist/cjs-types/common/stepper/index.d.ts +2 -0
  248. package/dist/cjs-types/common/stepper/stepper.d.ts +3 -0
  249. package/dist/cjs-types/common/stepper/stepper.types.d.ts +77 -0
  250. package/dist/cjs-types/common/sticky/index.d.ts +1 -0
  251. package/dist/cjs-types/common/sticky/sticky.d.ts +3 -0
  252. package/dist/cjs-types/common/sticky/sticky.types.d.ts +22 -0
  253. package/dist/cjs-types/common/sticky/stickyStack.d.ts +46 -0
  254. package/dist/cjs-types/common/switch/index.d.ts +2 -0
  255. package/dist/cjs-types/common/switch/switch.d.ts +4 -0
  256. package/dist/cjs-types/common/switch/switch.types.d.ts +21 -0
  257. package/dist/cjs-types/common/tabHeader/index.d.ts +2 -0
  258. package/dist/cjs-types/common/tabHeader/tabHeader.d.ts +4 -0
  259. package/dist/cjs-types/common/tabHeader/tabHeader.types.d.ts +20 -0
  260. package/dist/cjs-types/common/textarea/index.d.ts +2 -0
  261. package/dist/cjs-types/common/textarea/textarea.d.ts +3 -0
  262. package/dist/cjs-types/common/textarea/textarea.types.d.ts +2 -0
  263. package/dist/cjs-types/common/themeProvider/defaultTheme.d.ts +7 -0
  264. package/dist/cjs-types/common/themeProvider/index.d.ts +4 -0
  265. package/dist/cjs-types/common/themeProvider/lightTheme.d.ts +13 -0
  266. package/dist/cjs-types/common/themeProvider/theme.types.d.ts +272 -0
  267. package/dist/cjs-types/common/themeProvider/themeProvider.d.ts +38 -0
  268. package/dist/cjs-types/common/themeProvider/themeVariablesContext.d.ts +11 -0
  269. package/dist/cjs-types/common/themeProvider/useTheme.d.ts +4 -0
  270. package/dist/cjs-types/common/tilt/index.d.ts +4 -0
  271. package/dist/cjs-types/common/tilt/tilt.d.ts +3 -0
  272. package/dist/cjs-types/common/tilt/tilt.types.d.ts +40 -0
  273. package/dist/cjs-types/common/tilt/tiltMath.d.ts +24 -0
  274. package/dist/cjs-types/common/tiltGroup/index.d.ts +3 -0
  275. package/dist/cjs-types/common/tiltGroup/tiltGroup.d.ts +6 -0
  276. package/dist/cjs-types/common/tiltGroup/tiltGroup.types.d.ts +16 -0
  277. package/dist/cjs-types/common/timeInput/components/clockDial/clockDial.d.ts +3 -0
  278. package/dist/cjs-types/common/timeInput/components/clockDial/clockDial.types.d.ts +24 -0
  279. package/dist/cjs-types/common/timeInput/components/clockDial/index.d.ts +1 -0
  280. package/dist/cjs-types/common/timeInput/index.d.ts +1 -0
  281. package/dist/cjs-types/common/timeInput/timeFunctions.d.ts +36 -0
  282. package/dist/cjs-types/common/timeInput/timeInput.d.ts +3 -0
  283. package/dist/cjs-types/common/timeInput/timeInput.types.d.ts +44 -0
  284. package/dist/cjs-types/common/timeline/index.d.ts +2 -0
  285. package/dist/cjs-types/common/timeline/timeline.d.ts +3 -0
  286. package/dist/cjs-types/common/timeline/timeline.types.d.ts +51 -0
  287. package/dist/cjs-types/common/timer/index.d.ts +2 -0
  288. package/dist/cjs-types/common/timer/timer.chime.d.ts +1 -0
  289. package/dist/cjs-types/common/timer/timer.d.ts +3 -0
  290. package/dist/cjs-types/common/timer/timer.types.d.ts +110 -0
  291. package/dist/cjs-types/common/toast/index.d.ts +3 -0
  292. package/dist/cjs-types/common/toast/toast.d.ts +11 -0
  293. package/dist/cjs-types/common/toast/toast.types.d.ts +50 -0
  294. package/dist/cjs-types/common/toast/toastProvider.d.ts +8 -0
  295. package/dist/cjs-types/common/toast/toastService.d.ts +7 -0
  296. package/dist/cjs-types/common/tooltip/index.d.ts +2 -0
  297. package/dist/cjs-types/common/tooltip/tooltip.d.ts +3 -0
  298. package/dist/cjs-types/common/tooltip/tooltip.types.d.ts +17 -0
  299. package/dist/cjs-types/common/tree/flattenTree.d.ts +3 -0
  300. package/dist/cjs-types/common/tree/index.d.ts +3 -0
  301. package/dist/cjs-types/common/tree/tree.d.ts +4 -0
  302. package/dist/cjs-types/common/tree/tree.types.d.ts +67 -0
  303. package/dist/cjs-types/common/types/actions.types.d.ts +7 -0
  304. package/dist/cjs-types/common/types/baseProps.types.d.ts +29 -0
  305. package/dist/cjs-types/common/types/icon.types.d.ts +17 -0
  306. package/dist/cjs-types/common/types/slots.types.d.ts +4 -0
  307. package/dist/cjs-types/common/utils/activationKey.d.ts +9 -0
  308. package/dist/cjs-types/common/utils/interactiveTarget.d.ts +7 -0
  309. package/dist/cjs-types/common/utils/listNavigation.d.ts +49 -0
  310. package/dist/cjs-types/common/utils/mergeRefs.d.ts +12 -0
  311. package/dist/cjs-types/common/utils/renderIcon.d.ts +29 -0
  312. package/dist/cjs-types/common/utils/scrollAncestors.d.ts +2 -0
  313. package/dist/cjs-types/common/utils/visualViewport.d.ts +7 -0
  314. package/dist/cjs-types/common/virtualList/index.d.ts +2 -0
  315. package/dist/cjs-types/common/virtualList/useColumnResize.d.ts +59 -0
  316. package/dist/cjs-types/common/virtualList/useColumns.d.ts +52 -0
  317. package/dist/cjs-types/common/virtualList/useHeaderNavigation.d.ts +22 -0
  318. package/dist/cjs-types/common/virtualList/useRowDrag.d.ts +58 -0
  319. package/dist/cjs-types/common/virtualList/useRowNavigation.d.ts +50 -0
  320. package/dist/cjs-types/common/virtualList/useSelection.d.ts +24 -0
  321. package/dist/cjs-types/common/virtualList/useSorting.d.ts +26 -0
  322. package/dist/cjs-types/common/virtualList/useVirtualWindow.d.ts +36 -0
  323. package/dist/cjs-types/common/virtualList/virtualList.d.ts +5 -0
  324. package/dist/cjs-types/common/virtualList/virtualList.types.d.ts +317 -0
  325. package/dist/cjs-types/common/virtualList/virtualList.utils.d.ts +126 -0
  326. package/dist/cjs-types/common/virtualList/virtualListHeader.d.ts +35 -0
  327. package/dist/cjs-types/common/virtualList/virtualRow.d.ts +62 -0
  328. package/dist/cjs-types/common/wizard/index.d.ts +1 -0
  329. package/dist/cjs-types/common/wizard/wizard.d.ts +3 -0
  330. package/dist/cjs-types/common/wizard/wizard.types.d.ts +12 -0
  331. package/dist/cjs-types/hooks/useWindowSize.d.ts +6 -0
  332. package/dist/cjs-types/index.d.ts +154 -0
  333. package/dist/cjs-types/package.json +3 -0
  334. package/dist/cjs-types/services/formValidation/FormValidatorGroupWithForm.d.ts +18 -0
  335. package/dist/cjs-types/services/formValidation/index.d.ts +5 -0
  336. package/dist/cjs-types/services/formValidation/useFormValidatorGroup.d.ts +10 -0
  337. package/dist/cjs-types/services/formValidation/validatableComponent.d.ts +36 -0
  338. package/dist/cjs-types/services/klipy.d.ts +36 -0
  339. package/dist/cjs-types/services/localization.d.ts +3 -0
  340. package/dist/esm/common/carousel/carousel.mjs +1 -1
  341. package/dist/esm/common/carousel/carousel.mjs.map +1 -1
  342. package/dist/esm/common/carousel/carousel.module.mjs.map +1 -1
  343. package/dist/esm/common/confirmModal/confirmModal.mjs +1 -1
  344. package/dist/esm/common/confirmModal/confirmModal.mjs.map +1 -1
  345. package/dist/esm/common/datePicker/datePicker.mjs +1 -1
  346. package/dist/esm/common/datePicker/datePicker.mjs.map +1 -1
  347. package/dist/esm/common/drawer/drawer.module.mjs.map +1 -1
  348. package/dist/esm/common/dropdown/dropdown.mjs +1 -1
  349. package/dist/esm/common/dropdown/dropdown.mjs.map +1 -1
  350. package/dist/esm/common/dropdown/dropdown.module.mjs +1 -1
  351. package/dist/esm/common/dropdown/dropdown.module.mjs.map +1 -1
  352. package/dist/esm/common/hooks/useScrollEdges.mjs +2 -0
  353. package/dist/esm/common/hooks/useScrollEdges.mjs.map +1 -0
  354. package/dist/esm/common/infiniteBlock/useInfiniteScroll.mjs +2 -0
  355. package/dist/esm/common/infiniteBlock/useInfiniteScroll.mjs.map +1 -0
  356. package/dist/esm/common/inputDropdown/inputDropdown.mjs +1 -1
  357. package/dist/esm/common/inputDropdown/inputDropdown.mjs.map +1 -1
  358. package/dist/esm/common/interactableDiv/interactableDiv.mjs +1 -1
  359. package/dist/esm/common/interactableDiv/interactableDiv.mjs.map +1 -1
  360. package/dist/esm/common/klipyPicker/components/gifPreview/gifPreview.module.mjs.map +1 -1
  361. package/dist/esm/common/klipyPicker/components/gifView/gifView.module.mjs.map +1 -1
  362. package/dist/esm/common/maskedInput/mask.mjs +2 -0
  363. package/dist/esm/common/maskedInput/mask.mjs.map +1 -0
  364. package/dist/esm/common/maskedInput/maskedInput.mjs +2 -0
  365. package/dist/esm/common/maskedInput/maskedInput.mjs.map +1 -0
  366. package/dist/esm/common/modal/modal.mjs +1 -1
  367. package/dist/esm/common/modal/modal.mjs.map +1 -1
  368. package/dist/esm/common/modal/modal.module.mjs +1 -1
  369. package/dist/esm/common/modal/modal.module.mjs.map +1 -1
  370. package/dist/esm/common/multiSelect/multiSelect.mjs +1 -1
  371. package/dist/esm/common/multiSelect/multiSelect.mjs.map +1 -1
  372. package/dist/esm/common/radioGroup/radioGroup.types.mjs.map +1 -1
  373. package/dist/esm/common/rating/rating.module.mjs.map +1 -1
  374. package/dist/esm/common/ripple/ripple.mjs +1 -1
  375. package/dist/esm/common/ripple/ripple.mjs.map +1 -1
  376. package/dist/esm/common/scrollFade/scrollFade.mjs +2 -0
  377. package/dist/esm/common/scrollFade/scrollFade.mjs.map +1 -0
  378. package/dist/esm/common/scrollFade/scrollFade.module.mjs +2 -0
  379. package/dist/esm/common/scrollFade/scrollFade.module.mjs.map +1 -0
  380. package/dist/esm/common/scrollFade/scrollFade.types.mjs +2 -0
  381. package/dist/esm/common/scrollFade/scrollFade.types.mjs.map +1 -0
  382. package/dist/esm/common/styles/scrollFade.module.mjs +2 -0
  383. package/dist/esm/common/styles/scrollFade.module.mjs.map +1 -0
  384. package/dist/esm/common/styles/sheet.module.mjs.map +1 -1
  385. package/dist/esm/common/timeInput/timeInput.mjs +1 -1
  386. package/dist/esm/common/timeInput/timeInput.mjs.map +1 -1
  387. package/dist/esm/common/utils/interactiveTarget.mjs +2 -0
  388. package/dist/esm/common/utils/interactiveTarget.mjs.map +1 -0
  389. package/dist/esm/common/utils/listNavigation.mjs +2 -0
  390. package/dist/esm/common/utils/listNavigation.mjs.map +1 -0
  391. package/dist/esm/common/wizard/wizard.module.mjs.map +1 -1
  392. package/dist/esm/index.mjs +1 -1
  393. package/dist/esm/og.png +0 -0
  394. package/dist/index.cjs +3 -3
  395. package/dist/index.cjs.map +1 -1
  396. package/dist/mcp.js +341 -56
  397. package/dist/og.png +0 -0
  398. package/dist/style.css +1 -1
  399. package/dist/types/common/accordion/accordion.d.ts +1 -1
  400. package/dist/types/common/accordion/accordion.types.d.ts +1 -1
  401. package/dist/types/common/accordion/index.d.ts +2 -2
  402. package/dist/types/common/actionButtons/actionButtons.d.ts +1 -1
  403. package/dist/types/common/actionButtons/actionButtons.types.d.ts +3 -3
  404. package/dist/types/common/actionButtons/index.d.ts +2 -2
  405. package/dist/types/common/actionIcon/actionIcon.d.ts +1 -1
  406. package/dist/types/common/actionIcon/actionIcon.types.d.ts +2 -2
  407. package/dist/types/common/actionIcon/index.d.ts +2 -2
  408. package/dist/types/common/alert/alert.d.ts +1 -1
  409. package/dist/types/common/alert/alert.types.d.ts +2 -2
  410. package/dist/types/common/alert/index.d.ts +2 -2
  411. package/dist/types/common/animatedIcon/animatedIcon.d.ts +1 -1
  412. package/dist/types/common/animatedIcon/animatedIcon.types.d.ts +1 -1
  413. package/dist/types/common/animatedIcon/index.d.ts +2 -2
  414. package/dist/types/common/animatedLogo/animatedLogo.d.ts +1 -1
  415. package/dist/types/common/animatedLogo/animatedLogo.types.d.ts +1 -1
  416. package/dist/types/common/animatedLogo/index.d.ts +2 -2
  417. package/dist/types/common/animatedText/animatedText.d.ts +1 -1
  418. package/dist/types/common/animatedText/animatedText.types.d.ts +1 -1
  419. package/dist/types/common/animatedText/index.d.ts +2 -2
  420. package/dist/types/common/avatar/avatar.d.ts +1 -1
  421. package/dist/types/common/avatar/avatar.types.d.ts +2 -2
  422. package/dist/types/common/avatar/avatarGroup.d.ts +1 -1
  423. package/dist/types/common/avatar/index.d.ts +3 -3
  424. package/dist/types/common/badge/badge.d.ts +1 -1
  425. package/dist/types/common/badge/badge.types.d.ts +1 -1
  426. package/dist/types/common/badge/index.d.ts +2 -2
  427. package/dist/types/common/bodyEnd/bodyEnd.d.ts +1 -1
  428. package/dist/types/common/bodyEnd/index.d.ts +2 -2
  429. package/dist/types/common/breadcrumb/breadcrumb.d.ts +1 -1
  430. package/dist/types/common/breadcrumb/breadcrumb.types.d.ts +2 -2
  431. package/dist/types/common/breadcrumb/index.d.ts +2 -2
  432. package/dist/types/common/button/button.d.ts +1 -1
  433. package/dist/types/common/button/button.types.d.ts +2 -2
  434. package/dist/types/common/button/index.d.ts +2 -2
  435. package/dist/types/common/buttonGroup/buttonGroup.d.ts +1 -1
  436. package/dist/types/common/buttonGroup/buttonGroup.types.d.ts +1 -1
  437. package/dist/types/common/buttonGroup/index.d.ts +2 -2
  438. package/dist/types/common/card/Card.d.ts +1 -1
  439. package/dist/types/common/card/CardActions.d.ts +1 -1
  440. package/dist/types/common/card/CardContent.d.ts +1 -1
  441. package/dist/types/common/card/CardHeader.d.ts +1 -1
  442. package/dist/types/common/card/CardMedia.d.ts +1 -1
  443. package/dist/types/common/card/card.types.d.ts +3 -3
  444. package/dist/types/common/card/index.d.ts +6 -6
  445. package/dist/types/common/carousel/carousel.d.ts +1 -1
  446. package/dist/types/common/carousel/carousel.types.d.ts +1 -1
  447. package/dist/types/common/carousel/index.d.ts +2 -2
  448. package/dist/types/common/checkbox/checkbox.d.ts +1 -1
  449. package/dist/types/common/checkbox/checkbox.types.d.ts +2 -2
  450. package/dist/types/common/checkbox/index.d.ts +2 -2
  451. package/dist/types/common/chip/chip.d.ts +1 -1
  452. package/dist/types/common/chip/chip.types.d.ts +1 -1
  453. package/dist/types/common/chip/chipContainer.d.ts +1 -1
  454. package/dist/types/common/chip/index.d.ts +3 -3
  455. package/dist/types/common/colorPicker/colorPicker.d.ts +1 -1
  456. package/dist/types/common/colorPicker/colorPicker.types.d.ts +1 -1
  457. package/dist/types/common/colorPicker/index.d.ts +2 -2
  458. package/dist/types/common/configProvider/configProvider.d.ts +2 -2
  459. package/dist/types/common/configProvider/configProvider.types.d.ts +44 -44
  460. package/dist/types/common/configProvider/index.d.ts +6 -6
  461. package/dist/types/common/configProvider/useComponentDefaults.d.ts +1 -1
  462. package/dist/types/common/configProvider/useLabels.d.ts +1 -1
  463. package/dist/types/common/configProvider/usePresentationDefault.d.ts +1 -1
  464. package/dist/types/common/confirmModal/confirmModal.d.ts +1 -1
  465. package/dist/types/common/confirmModal/confirmModal.types.d.ts +2 -2
  466. package/dist/types/common/confirmModal/index.d.ts +2 -2
  467. package/dist/types/common/datePicker/components/datePickerMonth/datePickerMonth.d.ts +1 -1
  468. package/dist/types/common/datePicker/components/datePickerMonth/index.d.ts +1 -1
  469. package/dist/types/common/datePicker/datePicker.d.ts +1 -1
  470. package/dist/types/common/datePicker/datePicker.types.d.ts +2 -2
  471. package/dist/types/common/datePicker/index.d.ts +2 -2
  472. package/dist/types/common/divider/divider.d.ts +1 -1
  473. package/dist/types/common/divider/divider.types.d.ts +1 -1
  474. package/dist/types/common/divider/index.d.ts +2 -2
  475. package/dist/types/common/drawer/drawer.d.ts +1 -1
  476. package/dist/types/common/drawer/drawer.types.d.ts +1 -1
  477. package/dist/types/common/drawer/index.d.ts +2 -2
  478. package/dist/types/common/dropZone/dropZone.d.ts +1 -1
  479. package/dist/types/common/dropZone/dropZone.types.d.ts +1 -1
  480. package/dist/types/common/dropZone/index.d.ts +2 -2
  481. package/dist/types/common/dropdown/dropdown.d.ts +1 -1
  482. package/dist/types/common/dropdown/dropdown.types.d.ts +3 -3
  483. package/dist/types/common/dropdown/index.d.ts +2 -2
  484. package/dist/types/common/emptyState/emptyState.d.ts +1 -1
  485. package/dist/types/common/emptyState/emptyState.types.d.ts +2 -2
  486. package/dist/types/common/emptyState/index.d.ts +2 -2
  487. package/dist/types/common/errorBoundary/errorBoundary.d.ts +1 -1
  488. package/dist/types/common/errorBoundary/errorBoundary.types.d.ts +1 -1
  489. package/dist/types/common/errorBoundary/index.d.ts +2 -2
  490. package/dist/types/common/fab/components/fabBase/fabBase.d.ts +1 -1
  491. package/dist/types/common/fab/components/fabBase/fabBase.types.d.ts +1 -1
  492. package/dist/types/common/fab/components/fabBase/index.d.ts +1 -1
  493. package/dist/types/common/fab/fab.d.ts +1 -1
  494. package/dist/types/common/fab/fab.types.d.ts +2 -2
  495. package/dist/types/common/fab/index.d.ts +2 -2
  496. package/dist/types/common/flip/flip.d.ts +1 -1
  497. package/dist/types/common/flip/flip.types.d.ts +1 -1
  498. package/dist/types/common/flip/index.d.ts +2 -2
  499. package/dist/types/common/floorPlan/floorPlan.faces.d.ts +2 -2
  500. package/dist/types/common/floorPlan/floorPlan.fixtures.d.ts +1 -1
  501. package/dist/types/common/floorPlan/floorPlan.geometry.d.ts +1 -1
  502. package/dist/types/common/floorPlan/floorPlan.graph.d.ts +1 -1
  503. package/dist/types/common/floorPlan/floorPlan.hit.d.ts +1 -1
  504. package/dist/types/common/floorPlan/floorPlan.json.d.ts +1 -1
  505. package/dist/types/common/floorPlan/floorPlan.mesh.d.ts +1 -1
  506. package/dist/types/common/floorPlan/floorPlan.path.d.ts +1 -1
  507. package/dist/types/common/floorPlan/floorPlan.plan.d.ts +1 -1
  508. package/dist/types/common/floorPlan/floorPlan.rooms.d.ts +1 -1
  509. package/dist/types/common/floorPlan/floorPlan.snap.d.ts +1 -1
  510. package/dist/types/common/floorPlan/floorPlan.triangulate.d.ts +1 -1
  511. package/dist/types/common/floorPlan/index.d.ts +22 -22
  512. package/dist/types/common/floorPlan/legacySvg.d.ts +2 -2
  513. package/dist/types/common/hooks/useScrollEdges.d.ts +18 -0
  514. package/dist/types/common/hooks/useSheet.d.ts +1 -1
  515. package/dist/types/common/iconPicker/iconPicker.d.ts +1 -1
  516. package/dist/types/common/iconPicker/iconPicker.types.d.ts +2 -2
  517. package/dist/types/common/iconPicker/index.d.ts +2 -1
  518. package/dist/types/common/idleManager/idleManager.d.ts +1 -1
  519. package/dist/types/common/idleManager/index.d.ts +2 -1
  520. package/dist/types/common/infiniteBlock/useInfiniteScroll.d.ts +5 -0
  521. package/dist/types/common/input/index.d.ts +2 -2
  522. package/dist/types/common/input/input.d.ts +1 -1
  523. package/dist/types/common/input/input.types.d.ts +2 -2
  524. package/dist/types/common/inputDropdown/index.d.ts +2 -1
  525. package/dist/types/common/inputDropdown/inputDropdown.d.ts +1 -1
  526. package/dist/types/common/inputDropdown/inputDropdown.types.d.ts +2 -2
  527. package/dist/types/common/interactableDiv/index.d.ts +1 -1
  528. package/dist/types/common/interactableDiv/interactableDiv.d.ts +1 -1
  529. package/dist/types/common/kanbanBoard/KanbanBoard.d.ts +1 -1
  530. package/dist/types/common/kanbanBoard/KanbanColumn.d.ts +1 -1
  531. package/dist/types/common/kanbanBoard/KanbanItem.d.ts +1 -1
  532. package/dist/types/common/kanbanBoard/index.d.ts +3 -3
  533. package/dist/types/common/kanbanBoard/kanbanBoard.types.d.ts +1 -1
  534. package/dist/types/common/kanbanBoard/kanbanBoard.utils.d.ts +1 -1
  535. package/dist/types/common/klipyPicker/components/gifPreview/gifPreview.d.ts +1 -1
  536. package/dist/types/common/klipyPicker/components/gifPreview/gifPreview.types.d.ts +1 -1
  537. package/dist/types/common/klipyPicker/components/gifPreview/index.d.ts +1 -1
  538. package/dist/types/common/klipyPicker/components/gifView/gifView.d.ts +1 -1
  539. package/dist/types/common/klipyPicker/components/gifView/index.d.ts +1 -1
  540. package/dist/types/common/klipyPicker/index.d.ts +2 -2
  541. package/dist/types/common/klipyPicker/klipyPicker.d.ts +1 -1
  542. package/dist/types/common/klipyPicker/klipyPicker.types.d.ts +1 -1
  543. package/dist/types/common/loading/index.d.ts +2 -2
  544. package/dist/types/common/loading/spinnerLoading/index.d.ts +1 -1
  545. package/dist/types/common/maskedInput/index.d.ts +2 -0
  546. package/dist/types/common/maskedInput/mask.d.ts +48 -0
  547. package/dist/types/common/maskedInput/maskedInput.d.ts +13 -0
  548. package/dist/types/common/maskedInput/maskedInput.types.d.ts +38 -0
  549. package/dist/types/common/menu/index.d.ts +2 -2
  550. package/dist/types/common/menu/menu.d.ts +1 -1
  551. package/dist/types/common/menu/menu.types.d.ts +4 -4
  552. package/dist/types/common/modal/index.d.ts +2 -2
  553. package/dist/types/common/modal/modal.d.ts +1 -1
  554. package/dist/types/common/modal/modal.types.d.ts +6 -3
  555. package/dist/types/common/multiSelect/index.d.ts +2 -2
  556. package/dist/types/common/multiSelect/multiSelect.d.ts +1 -1
  557. package/dist/types/common/multiSelect/multiSelect.types.d.ts +3 -3
  558. package/dist/types/common/numberInput/index.d.ts +2 -2
  559. package/dist/types/common/numberInput/numberInput.d.ts +2 -2
  560. package/dist/types/common/numberInput/numberInput.types.d.ts +2 -2
  561. package/dist/types/common/optionPicker/index.d.ts +2 -2
  562. package/dist/types/common/optionPicker/optionPicker.d.ts +1 -1
  563. package/dist/types/common/optionPicker/optionPicker.types.d.ts +1 -1
  564. package/dist/types/common/otpInput/index.d.ts +2 -2
  565. package/dist/types/common/otpInput/otpInput.d.ts +1 -1
  566. package/dist/types/common/otpInput/otpInput.types.d.ts +2 -2
  567. package/dist/types/common/overscroll/index.d.ts +2 -2
  568. package/dist/types/common/overscroll/overscroll.d.ts +1 -1
  569. package/dist/types/common/pagination/index.d.ts +2 -2
  570. package/dist/types/common/pagination/pagination.d.ts +1 -1
  571. package/dist/types/common/pagination/pagination.types.d.ts +2 -2
  572. package/dist/types/common/planCanvas/index.d.ts +2 -2
  573. package/dist/types/common/planCanvas/planCanvas.d.ts +1 -1
  574. package/dist/types/common/planCanvas/planCanvas.types.d.ts +2 -2
  575. package/dist/types/common/popover/index.d.ts +2 -2
  576. package/dist/types/common/popover/popover.d.ts +1 -1
  577. package/dist/types/common/popover/popover.types.d.ts +2 -2
  578. package/dist/types/common/popover/usePopoverPosition.d.ts +1 -1
  579. package/dist/types/common/progressBar/index.d.ts +2 -2
  580. package/dist/types/common/progressBar/progressBar.d.ts +1 -1
  581. package/dist/types/common/progressBar/progressBar.types.d.ts +1 -1
  582. package/dist/types/common/radioGroup/index.d.ts +2 -2
  583. package/dist/types/common/radioGroup/radioGroup.d.ts +1 -1
  584. package/dist/types/common/radioGroup/radioGroup.types.d.ts +3 -3
  585. package/dist/types/common/rating/index.d.ts +2 -2
  586. package/dist/types/common/rating/rating.d.ts +1 -1
  587. package/dist/types/common/rating/rating.types.d.ts +2 -2
  588. package/dist/types/common/revealLens/index.d.ts +2 -2
  589. package/dist/types/common/revealLens/revealLens.d.ts +1 -1
  590. package/dist/types/common/revealLens/revealLens.types.d.ts +1 -1
  591. package/dist/types/common/ripple/index.d.ts +2 -2
  592. package/dist/types/common/ripple/ripple.d.ts +1 -1
  593. package/dist/types/common/ripple/ripple.types.d.ts +1 -1
  594. package/dist/types/common/roomDrawer/index.d.ts +2 -2
  595. package/dist/types/common/roomDrawer/roomDrawer.d.ts +1 -1
  596. package/dist/types/common/roomDrawer/roomDrawer.types.d.ts +3 -3
  597. package/dist/types/common/roomDrawer/usePlanHistory.d.ts +2 -2
  598. package/dist/types/common/roomViewer/index.d.ts +2 -2
  599. package/dist/types/common/roomViewer/roomViewer.d.ts +1 -1
  600. package/dist/types/common/roomViewer/roomViewer.types.d.ts +3 -3
  601. package/dist/types/common/scrollFade/index.d.ts +2 -0
  602. package/dist/types/common/scrollFade/scrollFade.d.ts +4 -0
  603. package/dist/types/common/scrollFade/scrollFade.types.d.ts +20 -0
  604. package/dist/types/common/scrollbarProvider/index.d.ts +1 -1
  605. package/dist/types/common/searchInput/index.d.ts +2 -2
  606. package/dist/types/common/searchInput/searchInput.d.ts +1 -1
  607. package/dist/types/common/searchInput/searchInput.types.d.ts +1 -1
  608. package/dist/types/common/sectionHeader/index.d.ts +2 -2
  609. package/dist/types/common/sectionHeader/sectionHeader.d.ts +1 -1
  610. package/dist/types/common/sectionHeader/sectionHeader.types.d.ts +3 -3
  611. package/dist/types/common/sheetBackdrop/index.d.ts +2 -2
  612. package/dist/types/common/sheetBackdrop/sheetBackdrop.d.ts +1 -1
  613. package/dist/types/common/skeleton/index.d.ts +2 -2
  614. package/dist/types/common/skeleton/skeleton.d.ts +1 -1
  615. package/dist/types/common/skeleton/skeleton.types.d.ts +1 -1
  616. package/dist/types/common/slider/index.d.ts +2 -2
  617. package/dist/types/common/slider/slider.d.ts +1 -1
  618. package/dist/types/common/slider/slider.types.d.ts +2 -2
  619. package/dist/types/common/splitButton/index.d.ts +2 -2
  620. package/dist/types/common/splitButton/splitButton.d.ts +1 -1
  621. package/dist/types/common/splitButton/splitButton.types.d.ts +4 -4
  622. package/dist/types/common/stepper/index.d.ts +2 -2
  623. package/dist/types/common/stepper/stepper.d.ts +1 -1
  624. package/dist/types/common/stepper/stepper.types.d.ts +2 -2
  625. package/dist/types/common/sticky/index.d.ts +1 -1
  626. package/dist/types/common/sticky/sticky.d.ts +1 -1
  627. package/dist/types/common/sticky/sticky.types.d.ts +1 -1
  628. package/dist/types/common/switch/index.d.ts +2 -2
  629. package/dist/types/common/switch/switch.d.ts +1 -1
  630. package/dist/types/common/switch/switch.types.d.ts +2 -2
  631. package/dist/types/common/tabHeader/index.d.ts +2 -2
  632. package/dist/types/common/tabHeader/tabHeader.d.ts +1 -1
  633. package/dist/types/common/tabHeader/tabHeader.types.d.ts +2 -2
  634. package/dist/types/common/textarea/index.d.ts +2 -2
  635. package/dist/types/common/textarea/textarea.d.ts +1 -1
  636. package/dist/types/common/textarea/textarea.types.d.ts +1 -1
  637. package/dist/types/common/themeProvider/defaultTheme.d.ts +1 -1
  638. package/dist/types/common/themeProvider/index.d.ts +4 -4
  639. package/dist/types/common/themeProvider/lightTheme.d.ts +1 -1
  640. package/dist/types/common/themeProvider/theme.types.d.ts +28 -0
  641. package/dist/types/common/themeProvider/themeProvider.d.ts +1 -1
  642. package/dist/types/common/tilt/index.d.ts +4 -4
  643. package/dist/types/common/tilt/tilt.d.ts +1 -1
  644. package/dist/types/common/tilt/tilt.types.d.ts +2 -2
  645. package/dist/types/common/tiltGroup/index.d.ts +3 -3
  646. package/dist/types/common/tiltGroup/tiltGroup.d.ts +1 -1
  647. package/dist/types/common/tiltGroup/tiltGroup.types.d.ts +1 -1
  648. package/dist/types/common/timeInput/components/clockDial/clockDial.d.ts +1 -1
  649. package/dist/types/common/timeInput/components/clockDial/clockDial.types.d.ts +3 -3
  650. package/dist/types/common/timeInput/components/clockDial/index.d.ts +1 -1
  651. package/dist/types/common/timeInput/index.d.ts +1 -1
  652. package/dist/types/common/timeInput/timeInput.d.ts +1 -1
  653. package/dist/types/common/timeInput/timeInput.types.d.ts +2 -2
  654. package/dist/types/common/timeline/index.d.ts +2 -2
  655. package/dist/types/common/timeline/timeline.d.ts +1 -1
  656. package/dist/types/common/timeline/timeline.types.d.ts +2 -2
  657. package/dist/types/common/timer/index.d.ts +2 -2
  658. package/dist/types/common/timer/timer.d.ts +1 -1
  659. package/dist/types/common/timer/timer.types.d.ts +2 -2
  660. package/dist/types/common/toast/index.d.ts +3 -3
  661. package/dist/types/common/toast/toast.d.ts +1 -1
  662. package/dist/types/common/toast/toast.types.d.ts +1 -1
  663. package/dist/types/common/toast/toastProvider.d.ts +1 -1
  664. package/dist/types/common/toast/toastService.d.ts +1 -1
  665. package/dist/types/common/tooltip/index.d.ts +2 -2
  666. package/dist/types/common/tooltip/tooltip.d.ts +1 -1
  667. package/dist/types/common/tree/flattenTree.d.ts +1 -1
  668. package/dist/types/common/tree/index.d.ts +3 -3
  669. package/dist/types/common/tree/tree.d.ts +1 -1
  670. package/dist/types/common/tree/tree.types.d.ts +2 -2
  671. package/dist/types/common/types/actions.types.d.ts +1 -1
  672. package/dist/types/common/types/slots.types.d.ts +1 -1
  673. package/dist/types/common/utils/interactiveTarget.d.ts +7 -0
  674. package/dist/types/common/utils/listNavigation.d.ts +49 -0
  675. package/dist/types/common/utils/renderIcon.d.ts +1 -1
  676. package/dist/types/common/virtualList/index.d.ts +2 -2
  677. package/dist/types/common/virtualList/useColumnResize.d.ts +1 -1
  678. package/dist/types/common/virtualList/useColumns.d.ts +1 -1
  679. package/dist/types/common/virtualList/useRowDrag.d.ts +1 -1
  680. package/dist/types/common/virtualList/useRowNavigation.d.ts +1 -1
  681. package/dist/types/common/virtualList/useSorting.d.ts +1 -1
  682. package/dist/types/common/virtualList/useVirtualWindow.d.ts +1 -1
  683. package/dist/types/common/virtualList/virtualList.d.ts +2 -2
  684. package/dist/types/common/virtualList/virtualList.types.d.ts +1 -1
  685. package/dist/types/common/virtualList/virtualList.utils.d.ts +1 -1
  686. package/dist/types/common/virtualList/virtualListHeader.d.ts +4 -4
  687. package/dist/types/common/virtualList/virtualRow.d.ts +1 -1
  688. package/dist/types/common/wizard/index.d.ts +1 -1
  689. package/dist/types/common/wizard/wizard.d.ts +1 -1
  690. package/dist/types/common/wizard/wizard.types.d.ts +1 -1
  691. package/dist/types/index.d.ts +153 -153
  692. package/dist/types/services/formValidation/index.d.ts +3 -3
  693. package/dist/types/services/formValidation/useFormValidatorGroup.d.ts +1 -1
  694. package/docs/ActionIcon.md +2 -0
  695. package/docs/CLAUDE.md +123 -230
  696. package/docs/Card.md +1 -1
  697. package/docs/Divider.md +2 -0
  698. package/docs/Dropdown.md +20 -0
  699. package/docs/IdleManager.md +38 -8
  700. package/docs/InputDropdown.md +11 -0
  701. package/docs/InteractableDiv.md +7 -1
  702. package/docs/KlipyPicker.md +1 -1
  703. package/docs/Loading.md +3 -1
  704. package/docs/Menu.md +2 -0
  705. package/docs/Modal.md +34 -10
  706. package/docs/MultiSelect.md +2 -2
  707. package/docs/Pagination.md +1 -1
  708. package/docs/Popover.md +2 -0
  709. package/docs/RadioGroup.md +1 -1
  710. package/docs/Rating.md +2 -0
  711. package/docs/Ripple.md +3 -0
  712. package/docs/RoomViewer.md +3 -5
  713. package/docs/ScrollFade.md +77 -0
  714. package/docs/ScrollbarProvider.md +2 -0
  715. package/docs/Slider.md +1 -1
  716. package/docs/Timer.md +1 -1
  717. package/docs/Wizard.md +1 -1
  718. package/package.json +33 -11
  719. package/dist/esm/common/infiniteBlock/infiniteBlock.mjs +0 -2
  720. package/dist/esm/common/infiniteBlock/infiniteBlock.mjs.map +0 -1
  721. package/dist/esm/common/infiniteBlock/infiniteBlock.module.mjs +0 -2
  722. package/dist/esm/common/infiniteBlock/infiniteBlock.module.mjs.map +0 -1
  723. package/dist/types/common/infiniteBlock/index.d.ts +0 -1
  724. package/dist/types/common/infiniteBlock/infiniteBlock.d.ts +0 -4
  725. package/dist/types/common/infiniteBlock/infiniteBlock.types.d.ts +0 -13
  726. package/docs/Icon.md +0 -27
  727. package/docs/InfiniteBlock.md +0 -23
@@ -0,0 +1,47 @@
1
+ import { DerivedRoom, PlanDerivation, PlanFloor, PlanRoom } from './floorPlan.types.js';
2
+ /** Relative weights of the three identity signals. */
3
+ export declare const MATCH_WEIGHTS: {
4
+ /** Wall ids survive every geometry-only edit, so they carry the most weight. */
5
+ readonly boundary: 2;
6
+ /** Decides a split, where both children share half the old boundary. */
7
+ readonly anchor: 1;
8
+ /** Breaks a merge towards the larger of the two rooms. */
9
+ readonly area: 0.25;
10
+ };
11
+ /** Below this, a pair is not the same room at all. */
12
+ export declare const MATCH_THRESHOLD = 0.15;
13
+ /**
14
+ * Extracts faces and attaches stored room metadata to them.
15
+ *
16
+ * Pure: returns a new floor whose room match caches and anchors have been refreshed.
17
+ * It never creates or deletes a `PlanRoom`, so it is safe to call on every render.
18
+ * Minting rooms for newly enclosed faces is `commitDerivation`'s job, called once per
19
+ * committed edit.
20
+ */
21
+ export declare function derivePlan(floor: PlanFloor): PlanDerivation;
22
+ /** Test-only: makes the room sequence counter reproducible. */
23
+ export declare function __resetRoomSeq(): void;
24
+ export interface CommitDerivationOptions {
25
+ /** Names new rooms. Receives the 1-based index among rooms created in this call. */
26
+ nameFor?: (index: number, face: DerivedRoom) => string;
27
+ }
28
+ /**
29
+ * Mints a `PlanRoom` for every face that matched nothing.
30
+ *
31
+ * Separate from `derivePlan` so that derivation stays free of id minting and can run on
32
+ * every render without inflating the document. Call it once per committed edit.
33
+ */
34
+ export declare function commitDerivation(floor: PlanFloor, options?: CommitDerivationOptions): {
35
+ floor: PlanFloor;
36
+ created: PlanRoom[];
37
+ };
38
+ /** Removes room metadata that matched no face. Never called automatically. */
39
+ export declare function pruneUnmatchedRooms(floor: PlanFloor): {
40
+ floor: PlanFloor;
41
+ removed: string[];
42
+ };
43
+ /** Convenience: the derived room whose polygon contains `point`, if any. */
44
+ export declare function roomAtPoint(derived: DerivedRoom[], point: {
45
+ x: number;
46
+ y: number;
47
+ }): DerivedRoom | null;
@@ -0,0 +1,101 @@
1
+ import { PlanFloor, PlanPoint } from './floorPlan.types.js';
2
+ export declare enum SnapKind {
3
+ None = "none",
4
+ Node = "node",
5
+ /** A point projected onto a wall's centreline. */
6
+ Wall = "wall",
7
+ /** The crossing of two walls, or of a wall with the active angle ray. */
8
+ Intersection = "intersection",
9
+ /** On the infinite line continuing an existing wall. */
10
+ Extension = "extension",
11
+ /** Shares an x or y coordinate with an existing node. */
12
+ Alignment = "alignment",
13
+ /** On a ray at a multiple of `angleStepDeg` from `origin`. */
14
+ Angle = "angle",
15
+ Grid = "grid"
16
+ }
17
+ export interface SnapGuide {
18
+ kind: SnapKind;
19
+ a: PlanPoint;
20
+ b: PlanPoint;
21
+ /** Render as an unbounded construction line rather than a segment. */
22
+ infinite?: boolean;
23
+ }
24
+ export interface SnapOptions {
25
+ /** Which snaps are active. Pass `[]` (Alt held) to disable snapping entirely. */
26
+ enabled: SnapKind[];
27
+ /** Millimetres. 0 disables grid snap. */
28
+ gridSize: number;
29
+ /** Degrees. 45 gives 0/45/90. 0 disables angle lock. */
30
+ angleStepDeg: number;
31
+ toleranceScreenPx: number;
32
+ /** Nodes are the most valuable snap, so they get a little more room. */
33
+ nodeToleranceScreenPx?: number;
34
+ }
35
+ export declare const DEFAULT_SNAP_OPTIONS: SnapOptions;
36
+ export interface SnapContext {
37
+ floor: PlanFloor;
38
+ /** World units per screen pixel at the current zoom. See `screenScale`. */
39
+ pxToWorld: number;
40
+ /** The anchored point. Required for angle lock; also enables the length readout. */
41
+ origin?: PlanPoint;
42
+ /**
43
+ * A direction in radians that angle lock measures from, in ADDITION to the world axes.
44
+ *
45
+ * Pass the direction of the wall being continued and the lock offers perpendicular and
46
+ * parallel to that wall, not just to the world. Without it, angle lock is only useful
47
+ * on a building that happens to be aligned to the page.
48
+ */
49
+ referenceAngle?: number;
50
+ excludeWallIds?: ReadonlySet<string>;
51
+ excludeNodeIds?: ReadonlySet<string>;
52
+ options?: Partial<SnapOptions>;
53
+ }
54
+ export interface SnapResult {
55
+ point: PlanPoint;
56
+ kind: SnapKind;
57
+ nodeId?: string;
58
+ wallId?: string;
59
+ /** Parameter along `wallId`, for `SnapKind.Wall`. */
60
+ t?: number;
61
+ /** Everything an overlay needs to draw to explain the snap. */
62
+ guides: SnapGuide[];
63
+ /** Radians from `origin` to `point`, when an origin was given. */
64
+ angle?: number;
65
+ /** Distance from `origin` to `point`, when an origin was given. */
66
+ distance?: number;
67
+ /**
68
+ * Set when angle lock produced the result, saying what it locked against: the world
69
+ * axes, or the reference direction that was passed in.
70
+ */
71
+ angleRelativeTo?: 'world' | 'reference';
72
+ }
73
+ /** World units per screen pixel, from the element's current transform. */
74
+ export declare function screenScale(svg: SVGSVGElement): number;
75
+ /**
76
+ * Client (screen) coordinates to world coordinates. Pure conversion, no snapping.
77
+ *
78
+ * Uses `getBoundingClientRect` arithmetic against an explicit viewport rather than
79
+ * `getScreenCTM`, which returns `null` in jsdom and so makes anything built on it
80
+ * untestable.
81
+ */
82
+ export declare function clientToWorld(clientX: number, clientY: number, rect: {
83
+ left: number;
84
+ top: number;
85
+ }, view: {
86
+ x: number;
87
+ y: number;
88
+ zoom: number;
89
+ }): PlanPoint;
90
+ /**
91
+ * Resolves a raw pointer position to the point the user meant.
92
+ *
93
+ * Two stages, because half of these snaps are constraints rather than points. A hard
94
+ * snap (node, intersection, wall) fixes both degrees of freedom, so the first match
95
+ * wins. A constraint (angle lock, extension, alignment) removes only one, so a flat
96
+ * "first match wins" list would kick the point off the angle ray the moment an
97
+ * alignment also matched. Two constraints intersect; one constraint is projected onto
98
+ * and then slid ALONG to the nearest grid position, which is what lets angle lock and
99
+ * grid coexist instead of fighting.
100
+ */
101
+ export declare function resolveSnap(raw: PlanPoint, ctx: SnapContext): SnapResult;
@@ -0,0 +1,11 @@
1
+ import { PlanPoint } from './floorPlan.types.js';
2
+ /**
3
+ * Triangulates a ring and its holes into index triples over the returned vertex list.
4
+ *
5
+ * The vertices come back as well as the indices because bridging a hole duplicates the
6
+ * two vertices it joins, so the caller cannot simply index into what it passed in.
7
+ */
8
+ export declare function triangulate(outer: readonly PlanPoint[], holes?: readonly (readonly PlanPoint[])[]): {
9
+ vertices: PlanPoint[];
10
+ indices: number[];
11
+ };
@@ -0,0 +1,276 @@
1
+ /**
2
+ * Floor plan model: a planar wall graph whose rooms are derived, not stored.
3
+ *
4
+ * Nodes and walls are first-class and shared, so the wall between two rooms is one
5
+ * wall. An opening therefore cuts it exactly once, which is what the previous
6
+ * room-polygon model could not express.
7
+ *
8
+ * GEOMETRY INVARIANT: every coordinate, length, thickness, offset and height in this
9
+ * module is in MILLIMETRES. There is deliberately no per-plan scale factor: one would
10
+ * have to be threaded through every geometry function, and a single missed call site
11
+ * is a silent 1000x error that no type can catch. `unitSystem` below drives display
12
+ * formatting only and is never read by geometry.
13
+ */
14
+ /** A point in plan space, in millimetres. y increases downwards, as in SVG. */
15
+ export interface PlanPoint {
16
+ x: number;
17
+ y: number;
18
+ }
19
+ export declare enum PlanUnitSystem {
20
+ /** Display as m / cm / mm. */
21
+ Metric = "metric",
22
+ /** Display as feet and inches. Storage stays millimetres. */
23
+ Imperial = "imperial"
24
+ }
25
+ export declare enum WallType {
26
+ /** Load-bearing envelope wall. */
27
+ Exterior = "exterior",
28
+ /** Load-bearing interior wall. */
29
+ Interior = "interior",
30
+ /** Non-load-bearing partition. */
31
+ Partition = "partition",
32
+ /**
33
+ * A room boundary with no physical wall, for dividing open-plan space. It still
34
+ * closes a face, so it produces two rooms, but renders as a thin dashed line and
35
+ * extrudes to nothing in 3D.
36
+ */
37
+ Virtual = "virtual"
38
+ }
39
+ export declare enum OpeningKind {
40
+ /** A real door leaf, with a swing and a threshold. */
41
+ Door = "door",
42
+ /** Glazed opening with a sill above floor level. */
43
+ Window = "window",
44
+ /** Structural opening with a head but no leaf. */
45
+ Archway = "archway",
46
+ /**
47
+ * A plain hole in the wall with no jamb detailing. Distinct from "no wall at all":
48
+ * a Gap is a marked span of a wall that exists, which is what lets a gap-style
49
+ * rendering stay unambiguous.
50
+ */
51
+ Gap = "gap"
52
+ }
53
+ export declare enum DoorSwing {
54
+ None = "none",
55
+ /** Hinged at the opening's start, opening towards the wall's left normal. */
56
+ StartLeft = "startLeft",
57
+ StartRight = "startRight",
58
+ EndLeft = "endLeft",
59
+ EndRight = "endRight",
60
+ /** Two leaves, hinged at both ends. */
61
+ Double = "double",
62
+ Sliding = "sliding"
63
+ }
64
+ /** A graph vertex. Structurally assignable to `PlanPoint`. */
65
+ export interface PlanNode {
66
+ id: string;
67
+ x: number;
68
+ y: number;
69
+ }
70
+ /**
71
+ * An undirected edge between two nodes. `a` and `b` define the wall's own direction,
72
+ * which is what opening offsets and door swings are measured against.
73
+ *
74
+ * The wall is centred on the segment a..b, extending `thickness / 2` to each side.
75
+ * There is no eccentric offset in this version.
76
+ */
77
+ export interface PlanWall {
78
+ id: string;
79
+ a: string;
80
+ b: string;
81
+ /** Millimetres. Must be greater than 0. */
82
+ thickness: number;
83
+ /** Millimetres above this wall's base. Omit to inherit `PlanFloor.height`. */
84
+ height?: number;
85
+ /** Millimetres above the floor's finished level. Defaults to 0. */
86
+ baseHeight?: number;
87
+ type: WallType;
88
+ }
89
+ /**
90
+ * An opening cut into exactly one wall. Because a shared wall is one wall, an opening
91
+ * between two rooms exists exactly once and needs no de-duplication anywhere.
92
+ */
93
+ export interface PlanOpening {
94
+ id: string;
95
+ wallId: string;
96
+ kind: OpeningKind;
97
+ /**
98
+ * Distance in millimetres from the wall's node `a` to the opening's CENTRE, measured
99
+ * along the centreline.
100
+ *
101
+ * Deliberately absolute rather than a 0..1 parameter: with a parameter, stretching a
102
+ * wall by dragging one of its nodes would rescale every door on it. Absolute offsets
103
+ * are clamped instead when a wall shortens.
104
+ */
105
+ offset: number;
106
+ /** Millimetres, along the wall. */
107
+ width: number;
108
+ /**
109
+ * Height of the opening's BOTTOM above the floor, in millimetres: 0 for a door, around
110
+ * 900 for a window. Nothing in the 2D plan reads it, since a plan is a horizontal cut
111
+ * and every opening looks the same from above. It is here so the same plan can drive a
112
+ * 3D view later without the heights having to be invented or asked for again.
113
+ */
114
+ sill: number;
115
+ /** Height of the opening's TOP above the floor, in millimetres. Typically 2100. */
116
+ head: number;
117
+ /** Only meaningful for `OpeningKind.Door`. */
118
+ swing?: DoorSwing;
119
+ }
120
+ /**
121
+ * Room METADATA. This is not a geometric object: the polygon comes from face
122
+ * extraction. The trailing `wallIds` / `area` fields are a match cache maintained by
123
+ * `derivePlan`, and are the reason a room's name survives edits.
124
+ */
125
+ export interface PlanRoom {
126
+ id: string;
127
+ name: string;
128
+ /** Any CSS colour. Omit to use the theme default. */
129
+ colour?: string;
130
+ /** Free-form usage tag ("kitchen", "bath"), for later fixture and 3D defaults. */
131
+ usage?: string;
132
+ /**
133
+ * A point that lay inside the room's polygon when it was last written. Used as the
134
+ * label position and as the secondary identity signal during matching.
135
+ */
136
+ anchor: PlanPoint;
137
+ /** Set once the user drags the label; `derivePlan` then stops moving it. */
138
+ anchorPinned: boolean;
139
+ /** Monotonic creation counter, used as a deterministic tie-break when matching. */
140
+ seq: number;
141
+ /** Match cache: the wall ids on this room's boundary at the last successful match. */
142
+ wallIds: string[];
143
+ /** Match cache: area in mm² at the last successful match. */
144
+ area: number;
145
+ }
146
+ export interface PlanFloor {
147
+ id: string;
148
+ label: string;
149
+ /** Finished floor level of this storey, millimetres above datum. */
150
+ elevation: number;
151
+ /** Default storey height in millimetres, used when a wall omits its own `height`. */
152
+ height: number;
153
+ /**
154
+ * Keyed by id for O(1) lookup. Ids must not be numeric strings ('n_12', never '12'),
155
+ * so that JavaScript preserves insertion order and iteration stays reproducible.
156
+ */
157
+ nodes: Record<string, PlanNode>;
158
+ walls: Record<string, PlanWall>;
159
+ openings: Record<string, PlanOpening>;
160
+ rooms: Record<string, PlanRoom>;
161
+ }
162
+ export interface FloorPlan {
163
+ id: string;
164
+ name?: string;
165
+ /** Schema version, for future migrations. */
166
+ version: 1;
167
+ /** Display formatting only. Never read by geometry. */
168
+ unitSystem: PlanUnitSystem;
169
+ floors: PlanFloor[];
170
+ /**
171
+ * Bumped by every mutating operation. Use it as the memo key for `derivePlan`, so a
172
+ * gesture that does not actually change the graph does not trigger a re-derive.
173
+ */
174
+ revision: number;
175
+ }
176
+ /**
177
+ * A raw face from the planar walk, before room metadata is attached.
178
+ *
179
+ * WINDING: `outer` is positively wound under the shoelace formula, which in SVG's
180
+ * y-down space means it reads as visually CLOCKWISE. Anything downstream that assumes
181
+ * counter-clockwise (extruded slab normals, most triangulators) must flip it.
182
+ */
183
+ export interface PlanFace {
184
+ /**
185
+ * Derived from the boundary itself, so it is stable across derives for as long as
186
+ * the geometry is unchanged. Safe to use as a React key.
187
+ */
188
+ id: string;
189
+ /** Outer ring, closed implicitly: the first vertex is not repeated at the end. */
190
+ outer: PlanPoint[];
191
+ /** Inner rings from nested components, wound opposite to `outer`. */
192
+ holes: PlanPoint[][];
193
+ /** mm², always positive, with holes already subtracted. */
194
+ area: number;
195
+ /** mm, outer ring only. */
196
+ perimeter: number;
197
+ /**
198
+ * Wall ids on the boundary, in traversal order. A dangling wall inside this face
199
+ * appears TWICE, once per direction, so consumers needing unique ids must dedupe.
200
+ */
201
+ wallIds: string[];
202
+ nodeIds: string[];
203
+ }
204
+ /** A face with its matched metadata. This is what the components render. */
205
+ export interface DerivedRoom extends PlanFace {
206
+ /** `null` when no `PlanRoom` matched this face during this derive. */
207
+ roomId: string | null;
208
+ meta: PlanRoom | null;
209
+ /** Guaranteed inside `outer` and outside every hole. The label position. */
210
+ anchor: PlanPoint;
211
+ }
212
+ export declare enum PlanIssueKind {
213
+ ZeroLengthWall = "zeroLengthWall",
214
+ SelfLoopWall = "selfLoopWall",
215
+ DuplicateWall = "duplicateWall",
216
+ CoincidentNodes = "coincidentNodes",
217
+ /** Two walls cross with no node at the intersection. Corrupts face extraction. */
218
+ UnsplitCrossing = "unsplitCrossing",
219
+ /** A node sits on a wall's interior but that wall was never split there. */
220
+ UnsplitNodeOnWall = "unsplitNodeOnWall",
221
+ /** Two walls leave a node in the same direction, tying the angular sort. */
222
+ OverlappingWalls = "overlappingWalls",
223
+ OrphanNode = "orphanNode",
224
+ DanglingOpening = "danglingOpening",
225
+ /** A `PlanRoom` matched no face this derive. It is kept, never deleted. */
226
+ UnmatchedRoom = "unmatchedRoom",
227
+ /** An opening was moved or dropped because its wall no longer has room for it. */
228
+ OpeningDropped = "openingDropped"
229
+ }
230
+ export interface PlanIssue {
231
+ kind: PlanIssueKind;
232
+ message: string;
233
+ nodeIds?: string[];
234
+ wallIds?: string[];
235
+ roomIds?: string[];
236
+ openingIds?: string[];
237
+ }
238
+ export interface PlanDerivation {
239
+ /** The floor with room match caches and anchors refreshed. Pure: a new object. */
240
+ floor: PlanFloor;
241
+ rooms: DerivedRoom[];
242
+ issues: PlanIssue[];
243
+ }
244
+ /** The uniform result of every graph mutation. All of them are pure. */
245
+ export interface PlanEdit<T = void> {
246
+ floor: PlanFloor;
247
+ result: T;
248
+ issues: PlanIssue[];
249
+ }
250
+ /**
251
+ * The viewport: which world point sits at the canvas's top-left corner, and how many
252
+ * screen pixels one world millimetre occupies.
253
+ *
254
+ * A 6m plan filling a 600px canvas is `zoom: 0.1`. Note this is a transform on a group,
255
+ * not an SVG `viewBox`: handles, labels and hit tolerances are then sized in screen
256
+ * pixels and stay constant as you zoom, instead of scaling with the drawing.
257
+ */
258
+ export interface PlanView {
259
+ x: number;
260
+ y: number;
261
+ zoom: number;
262
+ }
263
+ /** What is currently selected or hovered. */
264
+ export type PlanSelection = {
265
+ type: 'room';
266
+ id: string;
267
+ } | {
268
+ type: 'wall';
269
+ id: string;
270
+ } | {
271
+ type: 'opening';
272
+ id: string;
273
+ } | {
274
+ type: 'node';
275
+ id: string;
276
+ };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Public surface of the floor plan model.
3
+ *
4
+ * Explicit named exports, NOT `export *`: `scripts/gen-barrel.ts` forwards this folder
5
+ * straight into `package/index.ts`, so anything listed here becomes part of the
6
+ * published `@ahrowe/ui` API. Internal primitives (`cross`, `lerp`, the dart graph)
7
+ * stay unexported and are imported by path within this module.
8
+ */
9
+ export type { DerivedRoom, FloorPlan, PlanDerivation, PlanEdit, PlanFace, PlanFloor, PlanIssue, PlanNode, PlanOpening, PlanPoint, PlanRoom, PlanSelection, PlanView, PlanWall, } from './floorPlan.types.js';
10
+ export { DoorSwing, OpeningKind, PlanIssueKind, PlanUnitSystem, WallType } from './floorPlan.types.js';
11
+ export { addFloor, duplicateFloor, emptyFloor, emptyFloorPlan, floorBelow, floorBounds, floorIndex, getFloor, MIN_FLOOR_HEIGHT, moveFloor, removeFloor, renameFloor, setFloor, setFloorHeight, updateFloor, } from './floorPlan.plan.js';
12
+ export type { AddFloorOptions, EmptyFloorPlanOptions, PlanBounds } from './floorPlan.plan.js';
13
+ export { MIN_OPENING_WIDTH, MIN_WALL_LENGTH } from './floorPlan.geometry.js';
14
+ export { deriveFaces, nodeDegrees } from './floorPlan.faces.js';
15
+ export { commitDerivation, derivePlan, pruneUnmatchedRooms, roomAtPoint } from './floorPlan.rooms.js';
16
+ export type { CommitDerivationOptions } from './floorPlan.rooms.js';
17
+ export { HIT_PX, HIT_PX_COARSE, hitTest, selectionsEqual, worldTolerances } from './floorPlan.hit.js';
18
+ export type { HitTestOptions, HitTolerances } from './floorPlan.hit.js';
19
+ export { DEFAULT_WALL_ATTRS, addOpening, addRect, addWall, cleanupPlan, detachWall, dissolveNode, mergeNodes, moveNode, removeOpening, removeWall, scalePlan, splitWall, transformPlan, updateOpening, validatePlan, wallLength, weldShortWalls, } from './floorPlan.graph.js';
20
+ export type { DetachWallResult, DissolveNodeOptions, ResolveNodeResult, SplitWallResult, WallAttrs, } from './floorPlan.graph.js';
21
+ export { DEFAULT_SNAP_OPTIONS, SnapKind, clientToWorld, resolveSnap, screenScale } from './floorPlan.snap.js';
22
+ export type { SnapContext, SnapGuide, SnapOptions, SnapResult } from './floorPlan.snap.js';
23
+ export { buildWallPaths, openingGeometry, wallCentrelineSpans } from './floorPlan.path.js';
24
+ export type { BuildWallPathsOptions, WallCapLine, WallCapReason, WallPathGroup, WallPathResult, } from './floorPlan.path.js';
25
+ export { PLAN_FORMAT_VERSION, planFromJson, planToJson } from './floorPlan.json.js';
26
+ export type { PlanParseResult } from './floorPlan.json.js';
27
+ export { buildPlanMesh } from './floorPlan.mesh.js';
28
+ export type { BuildPlanMeshOptions, PlanMesh, PlanMeshGroup, PlanMeshPart } from './floorPlan.mesh.js';
29
+ export { planFromLegacySvg } from './legacySvg.js';
30
+ export type { LegacyImportOptions } from './legacySvg.js';
@@ -0,0 +1,27 @@
1
+ import { scalePlan } from './floorPlan.graph.js';
2
+ import { FloorPlan } from './floorPlan.types.js';
3
+ export interface LegacyImportOptions {
4
+ /**
5
+ * Multiplies every imported coordinate, converting the old unitless canvas into the
6
+ * module's millimetre invariant.
7
+ *
8
+ * There is no correct automatic value: the old format records no scale at all. The
9
+ * default of 1 keeps the numbers as they were, which makes a typical 400x300 export
10
+ * a 40cm plan. A 400-unit-wide export meant to be a 12m house wants `scale: 30`.
11
+ */
12
+ scale?: number;
13
+ /** Wall thickness for imported walls, in millimetres after scaling. */
14
+ thickness?: number;
15
+ /** Tolerance for welding coincident endpoints, in millimetres after scaling. */
16
+ weldTolerance?: number;
17
+ label?: string;
18
+ }
19
+ /**
20
+ * Parses a legacy exported SVG into a single-floor `FloorPlan`.
21
+ *
22
+ * Rooms keep their names. Doors are recovered where the old swing-arc path is
23
+ * recognisable, as `OpeningKind.Door`. Windows and archways did not exist in that
24
+ * format, so nothing is lost by not looking for them.
25
+ */
26
+ export declare function planFromLegacySvg(svg: string, options?: LegacyImportOptions): FloorPlan;
27
+ export { scalePlan };
@@ -0,0 +1,40 @@
1
+ import { RefObject } from 'react';
2
+ export interface UseAnchorTrackingArgs {
3
+ isOpen: boolean;
4
+ /** The element the popup is anchored to. Its scrollable ancestors are what get tracked. */
5
+ triggerRef: RefObject<HTMLElement | null>;
6
+ /**
7
+ * Every element the positioning maths needs. Tracking starts only once all of them, plus the
8
+ * trigger, are mounted. Read fresh on each setup, so an inline array literal is fine.
9
+ */
10
+ elementRefs: RefObject<HTMLElement | null>[];
11
+ /**
12
+ * Positions the popup. Called once on setup and then on every scroll, resize and tracked size
13
+ * change. Reads the caller's own refs for everything beyond the two arguments.
14
+ */
15
+ update: (trigger: HTMLElement, ancestors: HTMLElement[]) => void;
16
+ /**
17
+ * Elements whose own size changes must re-run `update`: a popup whose content changes size
18
+ * while open (a filtered list shrinking, an async list loading in) otherwise keeps coordinates
19
+ * computed for its old height and ends up detached from the trigger. Re-read on every update,
20
+ * since a panel can mount a commit later than the element it hangs off.
21
+ */
22
+ resizeRefs?: RefObject<HTMLElement | null>[];
23
+ /** Hands the popup's elements back as they were found. Runs when tracking stops. */
24
+ teardown?: () => void;
25
+ /** Values that must restart tracking, and so re-run `update`, when they change. */
26
+ deps?: readonly unknown[];
27
+ }
28
+ /**
29
+ * The lifecycle half of anchoring a portaled, `position: fixed` popup to a trigger: waits for the
30
+ * elements to mount, resolves the trigger's scrolling ancestors once, and re-runs the caller's
31
+ * positioning on every scroll, viewport resize and tracked size change until it closes.
32
+ *
33
+ * Callers supply only the geometry (`update`) and the inline styles to clear again (`teardown`);
34
+ * `usePopoverPosition` is built on this.
35
+ *
36
+ * Position is deliberately written straight to the DOM by the caller rather than through React
37
+ * state: going through setState -> re-render -> commit adds a round-trip that lags behind the
38
+ * browser's own scroll painting by at least a frame.
39
+ */
40
+ export declare function useAnchorTracking({ isOpen, triggerRef, elementRefs, update, resizeRefs, teardown, deps, }: UseAnchorTrackingArgs): void;
@@ -0,0 +1,3 @@
1
+ /** `true` when the primary pointing device is coarse (touch). */
2
+ export declare function useCoarsePointer(): boolean;
3
+ export default useCoarsePointer;
@@ -0,0 +1,20 @@
1
+ import { RefObject } from 'react';
2
+ /** Tabbable descendants of `root`, in DOM order. */
3
+ export declare function tabbablesIn(root: ParentNode | null): HTMLElement[];
4
+ export interface UseFocusBoundaryArgs {
5
+ /** The trigger element focus returns to on Escape / Shift+Tab out of the content's top. */
6
+ triggerRef: RefObject<HTMLElement | null>;
7
+ /** The portaled content root — tabbables inside it define the Tab boundary. */
8
+ contentRef: RefObject<HTMLElement | null>;
9
+ }
10
+ /**
11
+ * Focus helpers for content portaled to the end of the DOM (e.g. via BodyEnd), where Tab can't
12
+ * reach it in visual document order on its own. Used by Popover and by Menu, which both need to
13
+ * hand focus back to the trigger on Escape / Shift+Tab out of the top, and continue focus
14
+ * naturally past the trigger when Tab exits the bottom.
15
+ */
16
+ export declare function useFocusBoundary({ triggerRef, contentRef }: UseFocusBoundaryArgs): {
17
+ firstTriggerFocusable: () => HTMLElement | null;
18
+ restoreFocusToTrigger: () => void;
19
+ focusAfterTrigger: () => void;
20
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * `true` while `query` matches, kept current so a resize or an input-mode change re-renders.
3
+ *
4
+ * `useSyncExternalStore` rather than `useState` + `useEffect`: callers pick *markup* with this,
5
+ * so hydration has to start from the server's answer. Reading `matchMedia` in a `useState`
6
+ * initialiser makes the client's first render disagree with the server's HTML.
7
+ */
8
+ export declare function useMediaQuery(query: string): boolean;
9
+ export default useMediaQuery;
@@ -0,0 +1,26 @@
1
+ import { RefObject } from 'react';
2
+ export interface UseOverlayArgs {
3
+ /** Whether the overlay is currently visible. Everything below is set up while this is true. */
4
+ isActive: boolean;
5
+ /** The overlay panel. Focus is trapped inside it and Escape is scoped to it. */
6
+ containerRef: RefObject<HTMLElement | null>;
7
+ /** Called when Escape is pressed while this is the topmost overlay. Omit to not handle Escape. */
8
+ onEscape?: () => void;
9
+ /** Keep Tab inside the panel and restore focus to the previously focused element on close. */
10
+ trapFocus?: boolean;
11
+ /** Prevent the page behind the overlay from scrolling. */
12
+ lockScroll?: boolean;
13
+ }
14
+ /**
15
+ * The three behaviours every blocking overlay needs: Escape to dismiss, a focus trap, and a
16
+ * scroll lock on the page behind it.
17
+ *
18
+ * They share one module-level stack because they share one question: overlays nest (a
19
+ * ConfirmModal opened from inside a Modal), every instance listens on `document`, and only the
20
+ * innermost one may react. Without the stack, Escape would close every open layer at once and
21
+ * the outer trap would yank focus out of the inner panel on the next Tab.
22
+ *
23
+ * The scroll lock is reference-counted for the same reason: the page stays locked until the last
24
+ * overlay closes, and the body's original inline styles are restored rather than cleared.
25
+ */
26
+ export declare function useOverlay({ isActive, containerRef, onEscape, trapFocus, lockScroll }: UseOverlayArgs): void;
@@ -0,0 +1,18 @@
1
+ import { RefObject } from 'react';
2
+ export interface ScrollEdges {
3
+ /** Content is scrolled out of view past the element's top (or left) edge. */
4
+ hasStart: boolean;
5
+ /** Content continues past the element's bottom (or right) edge. */
6
+ hasEnd: boolean;
7
+ }
8
+ export interface ScrollEdgesOptions {
9
+ /** Which axis to measure. Default `'vertical'`. */
10
+ axis?: 'vertical' | 'horizontal';
11
+ /** Measure at all. Default `true`; pass `false` while the element is hidden. */
12
+ isEnabled?: boolean;
13
+ }
14
+ /**
15
+ * Reports which edges of a scroll container currently hide content, so a caller can mark the
16
+ * boundary, most often by fading it: see `styles/scrollFade.module.pcss`.
17
+ */
18
+ export declare function useScrollEdges(ref: RefObject<HTMLElement | null>, options?: ScrollEdgesOptions): ScrollEdges;
@@ -0,0 +1,19 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Presentation } from '../configProvider/presentation.types.js';
3
+ export interface Sheet {
4
+ /** Whether the popup should render as a bottom sheet instead of anchored to its trigger. */
5
+ isSheet: boolean;
6
+ /**
7
+ * Inline style for the sheet root: keeps it above an open on-screen keyboard, and hands the CSS
8
+ * the height actually left on screen as `--sheet-available-height`.
9
+ */
10
+ sheetStyle: CSSProperties | undefined;
11
+ }
12
+ /**
13
+ * Resolves whether a popup presents as a bottom sheet.
14
+ *
15
+ * `Auto` asks for a coarse pointer *and* a small screen: pointer alone turns a touchscreen laptop
16
+ * into a phone, and width alone turns a narrow desktop window into one.
17
+ */
18
+ export declare function useSheet(presentation?: Presentation): Sheet;
19
+ export default useSheet;