@beautinique/frontend-components 1.0.8 → 1.0.9

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 (380) hide show
  1. package/README.md +225 -16
  2. package/dist/auth/SocialAuth.d.cts +33 -0
  3. package/dist/auth/SocialAuth.d.cts.map +1 -0
  4. package/dist/auth/SocialAuth.d.ts +33 -0
  5. package/dist/auth/SocialAuth.d.ts.map +1 -0
  6. package/dist/auth/index.cjs +34 -26
  7. package/dist/auth/index.cjs.map +1 -1
  8. package/dist/auth/index.d.cts +1 -0
  9. package/dist/auth/index.d.cts.map +1 -1
  10. package/dist/auth/index.d.ts +1 -0
  11. package/dist/auth/index.d.ts.map +1 -1
  12. package/dist/auth/index.js +32 -25
  13. package/dist/auth/index.js.map +1 -1
  14. package/dist/breadcrumb/Breadcrumb.d.cts +34 -0
  15. package/dist/breadcrumb/Breadcrumb.d.cts.map +1 -0
  16. package/dist/breadcrumb/Breadcrumb.d.ts +34 -0
  17. package/dist/breadcrumb/Breadcrumb.d.ts.map +1 -0
  18. package/dist/breadcrumb/breadcrumb-icons.d.cts +6 -0
  19. package/dist/breadcrumb/breadcrumb-icons.d.cts.map +1 -0
  20. package/dist/breadcrumb/breadcrumb-icons.d.ts +6 -0
  21. package/dist/breadcrumb/breadcrumb-icons.d.ts.map +1 -0
  22. package/dist/breadcrumb/getBreadcrumbItems.d.cts +16 -0
  23. package/dist/breadcrumb/getBreadcrumbItems.d.cts.map +1 -0
  24. package/dist/breadcrumb/getBreadcrumbItems.d.ts +16 -0
  25. package/dist/breadcrumb/getBreadcrumbItems.d.ts.map +1 -0
  26. package/dist/breadcrumb/index.cjs +110 -0
  27. package/dist/breadcrumb/index.cjs.map +1 -0
  28. package/dist/breadcrumb/index.d.cts +3 -0
  29. package/dist/breadcrumb/index.d.cts.map +1 -0
  30. package/dist/breadcrumb/index.d.ts +3 -0
  31. package/dist/breadcrumb/index.d.ts.map +1 -0
  32. package/dist/breadcrumb/index.js +107 -0
  33. package/dist/breadcrumb/index.js.map +1 -0
  34. package/dist/color-input/ColorInput.d.cts +33 -0
  35. package/dist/color-input/ColorInput.d.cts.map +1 -0
  36. package/dist/color-input/ColorInput.d.ts +33 -0
  37. package/dist/color-input/ColorInput.d.ts.map +1 -0
  38. package/dist/color-input/color-input-icons.d.cts +6 -0
  39. package/dist/color-input/color-input-icons.d.cts.map +1 -0
  40. package/dist/color-input/color-input-icons.d.ts +6 -0
  41. package/dist/color-input/color-input-icons.d.ts.map +1 -0
  42. package/dist/color-input/color.d.cts +10 -0
  43. package/dist/color-input/color.d.cts.map +1 -0
  44. package/dist/color-input/color.d.ts +10 -0
  45. package/dist/color-input/color.d.ts.map +1 -0
  46. package/dist/color-input/index.cjs +375 -0
  47. package/dist/color-input/index.cjs.map +1 -0
  48. package/dist/color-input/index.d.cts +2 -0
  49. package/dist/color-input/index.d.cts.map +1 -0
  50. package/dist/color-input/index.d.ts +2 -0
  51. package/dist/color-input/index.d.ts.map +1 -0
  52. package/dist/color-input/index.js +373 -0
  53. package/dist/color-input/index.js.map +1 -0
  54. package/dist/file-input/FileInput.d.cts +53 -0
  55. package/dist/file-input/FileInput.d.cts.map +1 -0
  56. package/dist/file-input/FileInput.d.ts +53 -0
  57. package/dist/file-input/FileInput.d.ts.map +1 -0
  58. package/dist/file-input/file-input-icons.d.cts +6 -0
  59. package/dist/file-input/file-input-icons.d.cts.map +1 -0
  60. package/dist/file-input/file-input-icons.d.ts +6 -0
  61. package/dist/file-input/file-input-icons.d.ts.map +1 -0
  62. package/dist/file-input/index.cjs +259 -0
  63. package/dist/file-input/index.cjs.map +1 -0
  64. package/dist/file-input/index.d.cts +3 -0
  65. package/dist/file-input/index.d.cts.map +1 -0
  66. package/dist/file-input/index.d.ts +3 -0
  67. package/dist/file-input/index.d.ts.map +1 -0
  68. package/dist/file-input/index.js +256 -0
  69. package/dist/file-input/index.js.map +1 -0
  70. package/dist/file-input/media-type.d.cts +8 -0
  71. package/dist/file-input/media-type.d.cts.map +1 -0
  72. package/dist/file-input/media-type.d.ts +8 -0
  73. package/dist/file-input/media-type.d.ts.map +1 -0
  74. package/dist/file-input/useObjectUrls.d.cts +10 -0
  75. package/dist/file-input/useObjectUrls.d.cts.map +1 -0
  76. package/dist/file-input/useObjectUrls.d.ts +10 -0
  77. package/dist/file-input/useObjectUrls.d.ts.map +1 -0
  78. package/dist/hierarchy-select/HierarchySelect.d.cts +58 -0
  79. package/dist/hierarchy-select/HierarchySelect.d.cts.map +1 -0
  80. package/dist/hierarchy-select/HierarchySelect.d.ts +58 -0
  81. package/dist/hierarchy-select/HierarchySelect.d.ts.map +1 -0
  82. package/dist/hierarchy-select/hierarchy-select-icons.d.cts +6 -0
  83. package/dist/hierarchy-select/hierarchy-select-icons.d.cts.map +1 -0
  84. package/dist/hierarchy-select/hierarchy-select-icons.d.ts +6 -0
  85. package/dist/hierarchy-select/hierarchy-select-icons.d.ts.map +1 -0
  86. package/dist/hierarchy-select/index.cjs +596 -0
  87. package/dist/hierarchy-select/index.cjs.map +1 -0
  88. package/dist/hierarchy-select/index.d.cts +2 -0
  89. package/dist/hierarchy-select/index.d.cts.map +1 -0
  90. package/dist/hierarchy-select/index.d.ts +2 -0
  91. package/dist/hierarchy-select/index.d.ts.map +1 -0
  92. package/dist/hierarchy-select/index.js +594 -0
  93. package/dist/hierarchy-select/index.js.map +1 -0
  94. package/dist/hierarchy-select/tree.d.cts +38 -0
  95. package/dist/hierarchy-select/tree.d.cts.map +1 -0
  96. package/dist/hierarchy-select/tree.d.ts +38 -0
  97. package/dist/hierarchy-select/tree.d.ts.map +1 -0
  98. package/dist/index.cjs +7 -0
  99. package/dist/index.d.cts +1 -0
  100. package/dist/index.d.cts.map +1 -1
  101. package/dist/index.d.ts +1 -0
  102. package/dist/index.d.ts.map +1 -1
  103. package/dist/index.js +1 -0
  104. package/dist/inputs/Checkbox.d.cts +21 -0
  105. package/dist/inputs/Checkbox.d.cts.map +1 -0
  106. package/dist/inputs/Checkbox.d.ts +21 -0
  107. package/dist/inputs/Checkbox.d.ts.map +1 -0
  108. package/dist/inputs/Input.d.cts +26 -0
  109. package/dist/inputs/Input.d.cts.map +1 -0
  110. package/dist/inputs/Input.d.ts +26 -0
  111. package/dist/inputs/Input.d.ts.map +1 -0
  112. package/dist/inputs/InputError.d.cts +11 -0
  113. package/dist/inputs/InputError.d.cts.map +1 -0
  114. package/dist/inputs/InputError.d.ts +11 -0
  115. package/dist/inputs/InputError.d.ts.map +1 -0
  116. package/dist/inputs/InputIcon.d.cts +9 -0
  117. package/dist/inputs/InputIcon.d.cts.map +1 -0
  118. package/dist/inputs/InputIcon.d.ts +9 -0
  119. package/dist/inputs/InputIcon.d.ts.map +1 -0
  120. package/dist/inputs/InputLabel.d.cts +8 -0
  121. package/dist/inputs/InputLabel.d.cts.map +1 -0
  122. package/dist/inputs/InputLabel.d.ts +8 -0
  123. package/dist/inputs/InputLabel.d.ts.map +1 -0
  124. package/dist/inputs/Radio.d.cts +25 -0
  125. package/dist/inputs/Radio.d.cts.map +1 -0
  126. package/dist/inputs/Radio.d.ts +25 -0
  127. package/dist/inputs/Radio.d.ts.map +1 -0
  128. package/dist/inputs/Select.d.cts +53 -0
  129. package/dist/inputs/Select.d.cts.map +1 -0
  130. package/dist/inputs/Select.d.ts +53 -0
  131. package/dist/inputs/Select.d.ts.map +1 -0
  132. package/dist/inputs/Textarea.d.cts +19 -0
  133. package/dist/inputs/Textarea.d.cts.map +1 -0
  134. package/dist/inputs/Textarea.d.ts +19 -0
  135. package/dist/inputs/Textarea.d.ts.map +1 -0
  136. package/dist/inputs/index.cjs +746 -0
  137. package/dist/inputs/index.cjs.map +1 -0
  138. package/dist/inputs/index.d.cts +10 -0
  139. package/dist/inputs/index.d.cts.map +1 -0
  140. package/dist/inputs/index.d.ts +10 -0
  141. package/dist/inputs/index.d.ts.map +1 -0
  142. package/dist/inputs/index.js +737 -0
  143. package/dist/inputs/index.js.map +1 -0
  144. package/dist/inputs/inputs-icons.d.cts +6 -0
  145. package/dist/inputs/inputs-icons.d.cts.map +1 -0
  146. package/dist/inputs/inputs-icons.d.ts +6 -0
  147. package/dist/inputs/inputs-icons.d.ts.map +1 -0
  148. package/dist/inputs/types.d.cts +48 -0
  149. package/dist/inputs/types.d.cts.map +1 -0
  150. package/dist/inputs/types.d.ts +48 -0
  151. package/dist/inputs/types.d.ts.map +1 -0
  152. package/dist/inputs/useFieldIds.d.cts +24 -0
  153. package/dist/inputs/useFieldIds.d.cts.map +1 -0
  154. package/dist/inputs/useFieldIds.d.ts +24 -0
  155. package/dist/inputs/useFieldIds.d.ts.map +1 -0
  156. package/dist/layout/ApiStatus.d.cts +20 -0
  157. package/dist/layout/ApiStatus.d.cts.map +1 -0
  158. package/dist/layout/ApiStatus.d.ts +20 -0
  159. package/dist/layout/ApiStatus.d.ts.map +1 -0
  160. package/dist/layout/BorderGradient.d.cts +11 -0
  161. package/dist/layout/BorderGradient.d.cts.map +1 -0
  162. package/dist/layout/BorderGradient.d.ts +11 -0
  163. package/dist/layout/BorderGradient.d.ts.map +1 -0
  164. package/dist/layout/ConfirmModal.d.cts +44 -0
  165. package/dist/layout/ConfirmModal.d.cts.map +1 -0
  166. package/dist/layout/ConfirmModal.d.ts +44 -0
  167. package/dist/layout/ConfirmModal.d.ts.map +1 -0
  168. package/dist/layout/Dropdown.d.cts +33 -0
  169. package/dist/layout/Dropdown.d.cts.map +1 -0
  170. package/dist/layout/Dropdown.d.ts +33 -0
  171. package/dist/layout/Dropdown.d.ts.map +1 -0
  172. package/dist/layout/LoadingPage.d.cts +11 -0
  173. package/dist/layout/LoadingPage.d.cts.map +1 -0
  174. package/dist/layout/LoadingPage.d.ts +11 -0
  175. package/dist/layout/LoadingPage.d.ts.map +1 -0
  176. package/dist/layout/LoadingRings.d.cts +12 -0
  177. package/dist/layout/LoadingRings.d.cts.map +1 -0
  178. package/dist/layout/LoadingRings.d.ts +12 -0
  179. package/dist/layout/LoadingRings.d.ts.map +1 -0
  180. package/dist/layout/LoadingText.d.cts +13 -0
  181. package/dist/layout/LoadingText.d.cts.map +1 -0
  182. package/dist/layout/LoadingText.d.ts +13 -0
  183. package/dist/layout/LoadingText.d.ts.map +1 -0
  184. package/dist/layout/ModalWrapper.d.cts +48 -0
  185. package/dist/layout/ModalWrapper.d.cts.map +1 -0
  186. package/dist/layout/ModalWrapper.d.ts +48 -0
  187. package/dist/layout/ModalWrapper.d.ts.map +1 -0
  188. package/dist/layout/NetworkStatusToaster.d.cts +39 -0
  189. package/dist/layout/NetworkStatusToaster.d.cts.map +1 -0
  190. package/dist/layout/NetworkStatusToaster.d.ts +39 -0
  191. package/dist/layout/NetworkStatusToaster.d.ts.map +1 -0
  192. package/dist/layout/ScrollableGradientContainer.d.cts +28 -0
  193. package/dist/layout/ScrollableGradientContainer.d.cts.map +1 -0
  194. package/dist/layout/ScrollableGradientContainer.d.ts +28 -0
  195. package/dist/layout/ScrollableGradientContainer.d.ts.map +1 -0
  196. package/dist/layout/Skeleton.d.cts +9 -0
  197. package/dist/layout/Skeleton.d.cts.map +1 -0
  198. package/dist/layout/Skeleton.d.ts +9 -0
  199. package/dist/layout/Skeleton.d.ts.map +1 -0
  200. package/dist/layout/Table.d.cts +9 -0
  201. package/dist/layout/Table.d.cts.map +1 -0
  202. package/dist/layout/Table.d.ts +9 -0
  203. package/dist/layout/Table.d.ts.map +1 -0
  204. package/dist/layout/index.cjs +743 -3
  205. package/dist/layout/index.cjs.map +1 -1
  206. package/dist/layout/index.d.cts +12 -0
  207. package/dist/layout/index.d.cts.map +1 -1
  208. package/dist/layout/index.d.ts +12 -0
  209. package/dist/layout/index.d.ts.map +1 -1
  210. package/dist/layout/index.js +724 -2
  211. package/dist/layout/index.js.map +1 -1
  212. package/dist/layout/layout-icons.d.cts +6 -0
  213. package/dist/layout/layout-icons.d.cts.map +1 -0
  214. package/dist/layout/layout-icons.d.ts +6 -0
  215. package/dist/layout/layout-icons.d.ts.map +1 -0
  216. package/dist/lib/dropdown-position.d.cts +33 -0
  217. package/dist/lib/dropdown-position.d.cts.map +1 -0
  218. package/dist/lib/dropdown-position.d.ts +33 -0
  219. package/dist/lib/dropdown-position.d.ts.map +1 -0
  220. package/dist/lib/focus.d.cts +3 -0
  221. package/dist/lib/focus.d.cts.map +1 -0
  222. package/dist/lib/focus.d.ts +3 -0
  223. package/dist/lib/focus.d.ts.map +1 -0
  224. package/dist/lib/icon-registry.d.cts +14 -0
  225. package/dist/lib/icon-registry.d.cts.map +1 -0
  226. package/dist/lib/icon-registry.d.ts +14 -0
  227. package/dist/lib/icon-registry.d.ts.map +1 -0
  228. package/dist/lib/mergeRefs.d.cts +10 -0
  229. package/dist/lib/mergeRefs.d.cts.map +1 -0
  230. package/dist/lib/mergeRefs.d.ts +10 -0
  231. package/dist/lib/mergeRefs.d.ts.map +1 -0
  232. package/dist/lib/scrollRowIntoView.d.cts +7 -0
  233. package/dist/lib/scrollRowIntoView.d.cts.map +1 -0
  234. package/dist/lib/scrollRowIntoView.d.ts +7 -0
  235. package/dist/lib/scrollRowIntoView.d.ts.map +1 -0
  236. package/dist/lib/typeahead.d.cts +21 -0
  237. package/dist/lib/typeahead.d.cts.map +1 -0
  238. package/dist/lib/typeahead.d.ts +21 -0
  239. package/dist/lib/typeahead.d.ts.map +1 -0
  240. package/dist/lib/useAnchoredBox.d.cts +26 -0
  241. package/dist/lib/useAnchoredBox.d.cts.map +1 -0
  242. package/dist/lib/useAnchoredBox.d.ts +26 -0
  243. package/dist/lib/useAnchoredBox.d.ts.map +1 -0
  244. package/dist/lib/useDismiss.d.cts +34 -0
  245. package/dist/lib/useDismiss.d.cts.map +1 -0
  246. package/dist/lib/useDismiss.d.ts +34 -0
  247. package/dist/lib/useDismiss.d.ts.map +1 -0
  248. package/dist/lib/useFocusTrap.d.cts +24 -0
  249. package/dist/lib/useFocusTrap.d.cts.map +1 -0
  250. package/dist/lib/useFocusTrap.d.ts +24 -0
  251. package/dist/lib/useFocusTrap.d.ts.map +1 -0
  252. package/dist/lib/useIsClient.d.cts +7 -0
  253. package/dist/lib/useIsClient.d.cts.map +1 -0
  254. package/dist/lib/useIsClient.d.ts +7 -0
  255. package/dist/lib/useIsClient.d.ts.map +1 -0
  256. package/dist/lib/usePrefersReducedMotion.d.cts +7 -0
  257. package/dist/lib/usePrefersReducedMotion.d.cts.map +1 -0
  258. package/dist/lib/usePrefersReducedMotion.d.ts +7 -0
  259. package/dist/lib/usePrefersReducedMotion.d.ts.map +1 -0
  260. package/dist/lib/useScrollLock.d.cts +7 -0
  261. package/dist/lib/useScrollLock.d.cts.map +1 -0
  262. package/dist/lib/useScrollLock.d.ts +7 -0
  263. package/dist/lib/useScrollLock.d.ts.map +1 -0
  264. package/dist/lib/useScrollable.d.cts +17 -0
  265. package/dist/lib/useScrollable.d.cts.map +1 -0
  266. package/dist/lib/useScrollable.d.ts +17 -0
  267. package/dist/lib/useScrollable.d.ts.map +1 -0
  268. package/dist/loading-screen/LoadingScreen.d.cts +21 -0
  269. package/dist/loading-screen/LoadingScreen.d.cts.map +1 -0
  270. package/dist/loading-screen/LoadingScreen.d.ts +21 -0
  271. package/dist/loading-screen/LoadingScreen.d.ts.map +1 -0
  272. package/dist/loading-screen/Teddy.d.cts +10 -0
  273. package/dist/loading-screen/Teddy.d.cts.map +1 -0
  274. package/dist/loading-screen/Teddy.d.ts +10 -0
  275. package/dist/loading-screen/Teddy.d.ts.map +1 -0
  276. package/dist/loading-screen/WakeUpProgress.d.cts +16 -0
  277. package/dist/loading-screen/WakeUpProgress.d.cts.map +1 -0
  278. package/dist/loading-screen/WakeUpProgress.d.ts +16 -0
  279. package/dist/loading-screen/WakeUpProgress.d.ts.map +1 -0
  280. package/dist/loading-screen/beauty-facts.d.cts +4 -0
  281. package/dist/loading-screen/beauty-facts.d.cts.map +1 -0
  282. package/dist/loading-screen/beauty-facts.d.ts +4 -0
  283. package/dist/loading-screen/beauty-facts.d.ts.map +1 -0
  284. package/dist/loading-screen/index.cjs +405 -0
  285. package/dist/loading-screen/index.cjs.map +1 -0
  286. package/dist/loading-screen/index.d.cts +5 -0
  287. package/dist/loading-screen/index.d.cts.map +1 -0
  288. package/dist/loading-screen/index.d.ts +5 -0
  289. package/dist/loading-screen/index.d.ts.map +1 -0
  290. package/dist/loading-screen/index.js +400 -0
  291. package/dist/loading-screen/index.js.map +1 -0
  292. package/dist/loading-screen/loading-screen-icons.d.cts +6 -0
  293. package/dist/loading-screen/loading-screen-icons.d.cts.map +1 -0
  294. package/dist/loading-screen/loading-screen-icons.d.ts +6 -0
  295. package/dist/loading-screen/loading-screen-icons.d.ts.map +1 -0
  296. package/dist/media/MediaCarousel.d.cts +30 -0
  297. package/dist/media/MediaCarousel.d.cts.map +1 -0
  298. package/dist/media/MediaCarousel.d.ts +30 -0
  299. package/dist/media/MediaCarousel.d.ts.map +1 -0
  300. package/dist/media/MediaCarouselWithModal.d.cts +17 -0
  301. package/dist/media/MediaCarouselWithModal.d.cts.map +1 -0
  302. package/dist/media/MediaCarouselWithModal.d.ts +17 -0
  303. package/dist/media/MediaCarouselWithModal.d.ts.map +1 -0
  304. package/dist/media/MediaCarouselWithParentMedia.d.cts +30 -0
  305. package/dist/media/MediaCarouselWithParentMedia.d.cts.map +1 -0
  306. package/dist/media/MediaCarouselWithParentMedia.d.ts +30 -0
  307. package/dist/media/MediaCarouselWithParentMedia.d.ts.map +1 -0
  308. package/dist/media/MediaModal.d.cts +27 -0
  309. package/dist/media/MediaModal.d.cts.map +1 -0
  310. package/dist/media/MediaModal.d.ts +27 -0
  311. package/dist/media/MediaModal.d.ts.map +1 -0
  312. package/dist/media/VideoPlayer.d.cts +37 -0
  313. package/dist/media/VideoPlayer.d.cts.map +1 -0
  314. package/dist/media/VideoPlayer.d.ts +37 -0
  315. package/dist/media/VideoPlayer.d.ts.map +1 -0
  316. package/dist/media/captureVideoPoster.d.cts +20 -0
  317. package/dist/media/captureVideoPoster.d.cts.map +1 -0
  318. package/dist/media/captureVideoPoster.d.ts +20 -0
  319. package/dist/media/captureVideoPoster.d.ts.map +1 -0
  320. package/dist/media/index.cjs +613 -0
  321. package/dist/media/index.cjs.map +1 -0
  322. package/dist/media/index.d.cts +8 -0
  323. package/dist/media/index.d.cts.map +1 -0
  324. package/dist/media/index.d.ts +8 -0
  325. package/dist/media/index.d.ts.map +1 -0
  326. package/dist/media/index.js +605 -0
  327. package/dist/media/index.js.map +1 -0
  328. package/dist/media/labels.d.cts +33 -0
  329. package/dist/media/labels.d.cts.map +1 -0
  330. package/dist/media/labels.d.ts +33 -0
  331. package/dist/media/labels.d.ts.map +1 -0
  332. package/dist/media/media-icons.d.cts +6 -0
  333. package/dist/media/media-icons.d.cts.map +1 -0
  334. package/dist/media/media-icons.d.ts +6 -0
  335. package/dist/media/media-icons.d.ts.map +1 -0
  336. package/dist/media/streaming.d.cts +18 -0
  337. package/dist/media/streaming.d.cts.map +1 -0
  338. package/dist/media/streaming.d.ts +18 -0
  339. package/dist/media/streaming.d.ts.map +1 -0
  340. package/dist/resend/index.cjs +5 -28
  341. package/dist/resend/index.cjs.map +1 -1
  342. package/dist/resend/index.js +1 -24
  343. package/dist/resend/index.js.map +1 -1
  344. package/dist/static-page/StaticPage.d.cts +91 -0
  345. package/dist/static-page/StaticPage.d.cts.map +1 -0
  346. package/dist/static-page/StaticPage.d.ts +91 -0
  347. package/dist/static-page/StaticPage.d.ts.map +1 -0
  348. package/dist/static-page/index.cjs +247 -0
  349. package/dist/static-page/index.cjs.map +1 -0
  350. package/dist/static-page/index.d.cts +2 -0
  351. package/dist/static-page/index.d.cts.map +1 -0
  352. package/dist/static-page/index.d.ts +2 -0
  353. package/dist/static-page/index.d.ts.map +1 -0
  354. package/dist/static-page/index.js +235 -0
  355. package/dist/static-page/index.js.map +1 -0
  356. package/dist/static-page/static-page-icons.d.cts +6 -0
  357. package/dist/static-page/static-page-icons.d.cts.map +1 -0
  358. package/dist/static-page/static-page-icons.d.ts +6 -0
  359. package/dist/static-page/static-page-icons.d.ts.map +1 -0
  360. package/dist/testimonials/TestimonialCarousel.d.cts +40 -0
  361. package/dist/testimonials/TestimonialCarousel.d.cts.map +1 -0
  362. package/dist/testimonials/TestimonialCarousel.d.ts +40 -0
  363. package/dist/testimonials/TestimonialCarousel.d.ts.map +1 -0
  364. package/dist/testimonials/index.cjs +246 -0
  365. package/dist/testimonials/index.cjs.map +1 -0
  366. package/dist/testimonials/index.d.cts +2 -0
  367. package/dist/testimonials/index.d.cts.map +1 -0
  368. package/dist/testimonials/index.d.ts +2 -0
  369. package/dist/testimonials/index.d.ts.map +1 -0
  370. package/dist/testimonials/index.js +244 -0
  371. package/dist/testimonials/index.js.map +1 -0
  372. package/dist/testimonials/testimonials-icons.d.cts +6 -0
  373. package/dist/testimonials/testimonials-icons.d.cts.map +1 -0
  374. package/dist/testimonials/testimonials-icons.d.ts +6 -0
  375. package/dist/testimonials/testimonials-icons.d.ts.map +1 -0
  376. package/dist/toast/index.cjs +2 -38
  377. package/dist/toast/index.cjs.map +1 -1
  378. package/dist/toast/index.js +1 -37
  379. package/dist/toast/index.js.map +1 -1
  380. package/package.json +67 -1
@@ -0,0 +1,34 @@
1
+ import { type RefObject } from 'react';
2
+ export type TDismissReason = 'outside' | 'escape';
3
+ export interface IDismissOptions {
4
+ /** Turn the listeners off (e.g. while a popup is closed). @default true */
5
+ enabled?: boolean;
6
+ /**
7
+ * Elements that count as inside although they are not inside the element in the DOM: a popup that
8
+ * is rendered with `createPortal()` into `document.body`. A press on one of them (or on anything in
9
+ * it) is not "outside". Refs that are not attached are skipped. The list is read when the press
10
+ * happens, so a new array on every render is fine.
11
+ */
12
+ ignore?: readonly RefObject<Element | null>[];
13
+ /** Dismiss when the user presses outside the element. @default true */
14
+ outside?: boolean;
15
+ /** Dismiss when the user presses Escape. @default true */
16
+ escape?: boolean;
17
+ }
18
+ /**
19
+ * Closes a popup (a select, a dialog, a menu) the way people expect: a press (mouse, touch or pen)
20
+ * anywhere outside it, or Escape.
21
+ *
22
+ * - The press is listened for on `document` in the capture phase, so an inner `stopPropagation()`
23
+ * cannot hide it, and "inside" is decided from the path the event took (`composedPath()`), which
24
+ * stays right when the pressed node is removed by another listener first.
25
+ * - A popup portalled out of the element is not inside it in the DOM: list its ref in `ignore`.
26
+ * - Escape only reaches the popup that opened last, and not an Escape that something else already
27
+ * handled (`defaultPrevented`).
28
+ * - The listeners are added once and only when `enabled` changes: the latest `onDismiss` and `ignore`
29
+ * are used, so passing new ones on every render costs nothing.
30
+ *
31
+ * @returns the ref to put on the popup (or on its trigger, when the popup is portalled).
32
+ */
33
+ export declare const useDismiss: <T extends HTMLElement>(onDismiss: (reason: TDismissReason, event: Event) => void, { enabled, ignore, outside, escape }?: IDismissOptions) => RefObject<T | null>;
34
+ //# sourceMappingURL=useDismiss.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDismiss.d.ts","sourceRoot":"","sources":["../../src/lib/useDismiss.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAsC,MAAM,OAAO,CAAC;AAE3E,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,CAAC;AAElD,MAAM,WAAW,eAAe;IAC9B,2EAA2E;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,SAAS,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC;IAC9C,uEAAuE;IACvE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAMD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,WAAW,EAC9C,WAAW,CAAC,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,EACzD,uCAA2D,eAAoB,KAC9E,SAAS,CAAC,CAAC,GAAG,IAAI,CAqDpB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { type RefObject } from 'react';
2
+ export interface IFocusTrapOptions {
3
+ /** Turn the trap on (while the dialog is open). */
4
+ enabled: boolean;
5
+ /** The element that gets the focus first. Without it: the first element that Tab stops on, or the dialog. */
6
+ initialFocus?: RefObject<HTMLElement | null>;
7
+ /** Give the focus back to what had it before the dialog opened, when it closes. @default true */
8
+ returnFocus?: boolean;
9
+ }
10
+ /**
11
+ * Keeps the keyboard inside a dialog, the way a dialog has to behave:
12
+ *
13
+ * - when it opens the focus goes into it (to `initialFocus`, or the first thing Tab stops on, or the
14
+ * dialog itself);
15
+ * - Tab on the last element goes to the first, and Shift + Tab on the first goes to the last, so the
16
+ * focus cannot get to the page behind;
17
+ * - when it closes the focus goes back to what had it before, so a person who opened it with the
18
+ * keyboard is where they were.
19
+ *
20
+ * @returns the ref for the dialog (it should have `tabIndex={-1}`, so it can hold the focus when it has
21
+ * nothing to focus in it).
22
+ */
23
+ export declare const useFocusTrap: <T extends HTMLElement>({ enabled, initialFocus, returnFocus, }: IFocusTrapOptions) => RefObject<T | null>;
24
+ //# sourceMappingURL=useFocusTrap.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFocusTrap.d.cts","sourceRoot":"","sources":["../../src/lib/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAI1D,MAAM,WAAW,iBAAiB;IAChC,mDAAmD;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB,6GAA6G;IAC7G,YAAY,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC7C,iGAAiG;IACjG,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAMD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,WAAW,EAAE,yCAIjD,iBAAiB,KAAG,SAAS,CAAC,CAAC,GAAG,IAAI,CA6DxC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { type RefObject } from 'react';
2
+ export interface IFocusTrapOptions {
3
+ /** Turn the trap on (while the dialog is open). */
4
+ enabled: boolean;
5
+ /** The element that gets the focus first. Without it: the first element that Tab stops on, or the dialog. */
6
+ initialFocus?: RefObject<HTMLElement | null>;
7
+ /** Give the focus back to what had it before the dialog opened, when it closes. @default true */
8
+ returnFocus?: boolean;
9
+ }
10
+ /**
11
+ * Keeps the keyboard inside a dialog, the way a dialog has to behave:
12
+ *
13
+ * - when it opens the focus goes into it (to `initialFocus`, or the first thing Tab stops on, or the
14
+ * dialog itself);
15
+ * - Tab on the last element goes to the first, and Shift + Tab on the first goes to the last, so the
16
+ * focus cannot get to the page behind;
17
+ * - when it closes the focus goes back to what had it before, so a person who opened it with the
18
+ * keyboard is where they were.
19
+ *
20
+ * @returns the ref for the dialog (it should have `tabIndex={-1}`, so it can hold the focus when it has
21
+ * nothing to focus in it).
22
+ */
23
+ export declare const useFocusTrap: <T extends HTMLElement>({ enabled, initialFocus, returnFocus, }: IFocusTrapOptions) => RefObject<T | null>;
24
+ //# sourceMappingURL=useFocusTrap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../src/lib/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAI1D,MAAM,WAAW,iBAAiB;IAChC,mDAAmD;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB,6GAA6G;IAC7G,YAAY,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC7C,iGAAiG;IACjG,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAMD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,WAAW,EAAE,yCAIjD,iBAAiB,KAAG,SAAS,CAAC,CAAC,GAAG,IAAI,CA6DxC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * `false` on a server and while a page is hydrated, `true` in the browser after that. What needs the
3
+ * `document` (a portal into `document.body`) waits for it, so the server and the first render in
4
+ * the browser draw the same.
5
+ */
6
+ export declare const useIsClient: () => boolean;
7
+ //# sourceMappingURL=useIsClient.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsClient.d.cts","sourceRoot":"","sources":["../../src/lib/useIsClient.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,WAAW,eAKrB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * `false` on a server and while a page is hydrated, `true` in the browser after that. What needs the
3
+ * `document` (a portal into `document.body`) waits for it, so the server and the first render in
4
+ * the browser draw the same.
5
+ */
6
+ export declare const useIsClient: () => boolean;
7
+ //# sourceMappingURL=useIsClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsClient.d.ts","sourceRoot":"","sources":["../../src/lib/useIsClient.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,WAAW,eAKrB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Whether the person asked their system for less motion. It follows the setting while the page is
3
+ * open, and is `false` on a server (a page that moves by itself starts still there and stops once the
4
+ * browser says so).
5
+ */
6
+ export declare const usePrefersReducedMotion: () => boolean;
7
+ //# sourceMappingURL=usePrefersReducedMotion.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePrefersReducedMotion.d.cts","sourceRoot":"","sources":["../../src/lib/usePrefersReducedMotion.ts"],"names":[],"mappings":"AAqBA;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,eAC6B,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Whether the person asked their system for less motion. It follows the setting while the page is
3
+ * open, and is `false` on a server (a page that moves by itself starts still there and stops once the
4
+ * browser says so).
5
+ */
6
+ export declare const usePrefersReducedMotion: () => boolean;
7
+ //# sourceMappingURL=usePrefersReducedMotion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePrefersReducedMotion.d.ts","sourceRoot":"","sources":["../../src/lib/usePrefersReducedMotion.ts"],"names":[],"mappings":"AAqBA;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,eAC6B,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Keeps the page behind a dialog from scrolling while it is open. Several dialogs can be open
3
+ * together: the page is released when the last one closes, and gets back exactly what it had (not
4
+ * what the first dialog saw after another had already changed it).
5
+ */
6
+ export declare const useScrollLock: (enabled: boolean) => void;
7
+ //# sourceMappingURL=useScrollLock.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScrollLock.d.cts","sourceRoot":"","sources":["../../src/lib/useScrollLock.ts"],"names":[],"mappings":"AAkCA;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,SAAS,OAAO,SAQ7C,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Keeps the page behind a dialog from scrolling while it is open. Several dialogs can be open
3
+ * together: the page is released when the last one closes, and gets back exactly what it had (not
4
+ * what the first dialog saw after another had already changed it).
5
+ */
6
+ export declare const useScrollLock: (enabled: boolean) => void;
7
+ //# sourceMappingURL=useScrollLock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScrollLock.d.ts","sourceRoot":"","sources":["../../src/lib/useScrollLock.ts"],"names":[],"mappings":"AAkCA;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,SAAS,OAAO,SAQ7C,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type RefObject } from 'react';
2
+ export type TScrollDirection = 'horizontal' | 'vertical';
3
+ /** The edges of a scrollable area that have more content behind them (where a fade is shown). */
4
+ export type TScrollEdges = Partial<Record<'top' | 'bottom' | 'left' | 'right', true>>;
5
+ /**
6
+ * Which edges of the scrollable element have more to scroll to. It follows the scroll, and the size
7
+ * of the element and of its content (a ResizeObserver), so a list that grows or a window that is
8
+ * resized is noticed. Nothing is reported on the server and on the first render.
9
+ *
10
+ * @returns `ref` for the element that scrolls and `edges` (e.g. `{ left: true }` once it was scrolled
11
+ * a little, `{ left: true, right: true }` in the middle).
12
+ */
13
+ export declare const useScrollable: <T extends HTMLElement>(direction: TScrollDirection) => {
14
+ ref: RefObject<T | null>;
15
+ edges: TScrollEdges;
16
+ };
17
+ //# sourceMappingURL=useScrollable.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScrollable.d.cts","sourceRoot":"","sources":["../../src/lib/useScrollable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,UAAU,CAAC;AAEzD,iGAAiG;AACjG,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AAKtF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,WAAW,EACjD,WAAW,gBAAgB,KAC1B;IAAE,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAiDjD,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type RefObject } from 'react';
2
+ export type TScrollDirection = 'horizontal' | 'vertical';
3
+ /** The edges of a scrollable area that have more content behind them (where a fade is shown). */
4
+ export type TScrollEdges = Partial<Record<'top' | 'bottom' | 'left' | 'right', true>>;
5
+ /**
6
+ * Which edges of the scrollable element have more to scroll to. It follows the scroll, and the size
7
+ * of the element and of its content (a ResizeObserver), so a list that grows or a window that is
8
+ * resized is noticed. Nothing is reported on the server and on the first render.
9
+ *
10
+ * @returns `ref` for the element that scrolls and `edges` (e.g. `{ left: true }` once it was scrolled
11
+ * a little, `{ left: true, right: true }` in the middle).
12
+ */
13
+ export declare const useScrollable: <T extends HTMLElement>(direction: TScrollDirection) => {
14
+ ref: RefObject<T | null>;
15
+ edges: TScrollEdges;
16
+ };
17
+ //# sourceMappingURL=useScrollable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScrollable.d.ts","sourceRoot":"","sources":["../../src/lib/useScrollable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,UAAU,CAAC;AAEzD,iGAAiG;AACjG,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AAKtF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,WAAW,EACjD,WAAW,gBAAgB,KAC1B;IAAE,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAiDjD,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { IClassName } from '../types/component.js';
3
+ export interface ILoadingScreen extends IClassName {
4
+ /** What is in the middle, instead of the bear (e.g. the bear and a `WakeUpProgress`). */
5
+ children?: ReactNode;
6
+ /** The facts that come one after the other under the picture. @default BEAUTY_FACTS */
7
+ facts?: readonly ReactNode[];
8
+ /** How long a fact stays, in milliseconds. @default 5000 */
9
+ interval?: number;
10
+ /** What a screen reader says for the screen. @default 'Loading' */
11
+ label?: string;
12
+ }
13
+ /**
14
+ * The screen of the start of the app: a picture in the middle (the bear unless told another), and a
15
+ * fact under it that is changed every few seconds, for as long as the app is not ready. It covers the
16
+ * window. The facts are not announced when they change (a screen reader only says `label`).
17
+ *
18
+ * It is a screen for the browser: the first fact is chosen at random when it is shown.
19
+ */
20
+ export declare const LoadingScreen: ({ className, children, facts, interval, label, }: ILoadingScreen) => import("react").JSX.Element;
21
+ //# sourceMappingURL=LoadingScreen.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingScreen.d.cts","sourceRoot":"","sources":["../../src/loading-screen/LoadingScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIxD,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD,yFAAyF;IACzF,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,uFAAuF;IACvF,KAAK,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;IAC7B,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAWD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,kDAM3B,cAAc,gCAsChB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { IClassName } from '../types/component.js';
3
+ export interface ILoadingScreen extends IClassName {
4
+ /** What is in the middle, instead of the bear (e.g. the bear and a `WakeUpProgress`). */
5
+ children?: ReactNode;
6
+ /** The facts that come one after the other under the picture. @default BEAUTY_FACTS */
7
+ facts?: readonly ReactNode[];
8
+ /** How long a fact stays, in milliseconds. @default 5000 */
9
+ interval?: number;
10
+ /** What a screen reader says for the screen. @default 'Loading' */
11
+ label?: string;
12
+ }
13
+ /**
14
+ * The screen of the start of the app: a picture in the middle (the bear unless told another), and a
15
+ * fact under it that is changed every few seconds, for as long as the app is not ready. It covers the
16
+ * window. The facts are not announced when they change (a screen reader only says `label`).
17
+ *
18
+ * It is a screen for the browser: the first fact is chosen at random when it is shown.
19
+ */
20
+ export declare const LoadingScreen: ({ className, children, facts, interval, label, }: ILoadingScreen) => import("react").JSX.Element;
21
+ //# sourceMappingURL=LoadingScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingScreen.d.ts","sourceRoot":"","sources":["../../src/loading-screen/LoadingScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAE5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIxD,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD,yFAAyF;IACzF,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,uFAAuF;IACvF,KAAK,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;IAC7B,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAWD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,kDAM3B,cAAc,gCAsChB,CAAC"}
@@ -0,0 +1,10 @@
1
+
2
+ import type { ComponentProps } from 'react';
3
+ export type TTeddy = Omit<ComponentProps<'div'>, 'children' | 'className'>;
4
+ /**
5
+ * The bear of the loading screen, drawn with css (`teddy.css` of `@beautinique/frontend-styles`, which
6
+ * this imports). It is a picture with a name: a screen reader says "Loading Teddy" unless given another
7
+ * `aria-label`.
8
+ */
9
+ export declare const Teddy: (divProps: TTeddy) => import("react").JSX.Element;
10
+ //# sourceMappingURL=Teddy.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Teddy.d.cts","sourceRoot":"","sources":["../../src/loading-screen/Teddy.tsx"],"names":[],"mappings":"AAAA,OAAO,wCAAwC,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC,CAAC;AAE3E;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,UAAU,MAAM,gCAyBrC,CAAC"}
@@ -0,0 +1,10 @@
1
+
2
+ import type { ComponentProps } from 'react';
3
+ export type TTeddy = Omit<ComponentProps<'div'>, 'children' | 'className'>;
4
+ /**
5
+ * The bear of the loading screen, drawn with css (`teddy.css` of `@beautinique/frontend-styles`, which
6
+ * this imports). It is a picture with a name: a screen reader says "Loading Teddy" unless given another
7
+ * `aria-label`.
8
+ */
9
+ export declare const Teddy: (divProps: TTeddy) => import("react").JSX.Element;
10
+ //# sourceMappingURL=Teddy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Teddy.d.ts","sourceRoot":"","sources":["../../src/loading-screen/Teddy.tsx"],"names":[],"mappings":"AAAA,OAAO,wCAAwC,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC,CAAC;AAE3E;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,UAAU,MAAM,gCAyBrC,CAAC"}
@@ -0,0 +1,16 @@
1
+ /** Where the wake-up is: the gateway wakes first, then every service at once, then it is done. */
2
+ export type TWakeUpPhase = 'gateway' | 'services' | 'done';
3
+ export interface IWakeUpProgress {
4
+ phase: TWakeUpPhase;
5
+ /** Every service there is, in the order they are listed. */
6
+ services: readonly string[];
7
+ /** The ones that have answered. */
8
+ awakeServices: readonly string[];
9
+ }
10
+ /**
11
+ * The state of the start of the app while the backend wakes up (a free server sleeps after a while):
12
+ * the gateway first, then every service at once, and each service is ticked off as it answers. It is
13
+ * a polite status, so a screen reader follows it without being interrupted.
14
+ */
15
+ export declare const WakeUpProgress: ({ phase, services, awakeServices }: IWakeUpProgress) => import("react").JSX.Element;
16
+ //# sourceMappingURL=WakeUpProgress.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WakeUpProgress.d.cts","sourceRoot":"","sources":["../../src/loading-screen/WakeUpProgress.tsx"],"names":[],"mappings":"AAIA,kGAAkG;AAClG,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AAI3D,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,YAAY,CAAC;IACpB,4DAA4D;IAC5D,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,mCAAmC;IACnC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAuBD;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,oCAAoC,eAAe,gCAgDjF,CAAC"}
@@ -0,0 +1,16 @@
1
+ /** Where the wake-up is: the gateway wakes first, then every service at once, then it is done. */
2
+ export type TWakeUpPhase = 'gateway' | 'services' | 'done';
3
+ export interface IWakeUpProgress {
4
+ phase: TWakeUpPhase;
5
+ /** Every service there is, in the order they are listed. */
6
+ services: readonly string[];
7
+ /** The ones that have answered. */
8
+ awakeServices: readonly string[];
9
+ }
10
+ /**
11
+ * The state of the start of the app while the backend wakes up (a free server sleeps after a while):
12
+ * the gateway first, then every service at once, and each service is ticked off as it answers. It is
13
+ * a polite status, so a screen reader follows it without being interrupted.
14
+ */
15
+ export declare const WakeUpProgress: ({ phase, services, awakeServices }: IWakeUpProgress) => import("react").JSX.Element;
16
+ //# sourceMappingURL=WakeUpProgress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WakeUpProgress.d.ts","sourceRoot":"","sources":["../../src/loading-screen/WakeUpProgress.tsx"],"names":[],"mappings":"AAIA,kGAAkG;AAClG,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,CAAC;AAI3D,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,YAAY,CAAC;IACpB,4DAA4D;IAC5D,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,mCAAmC;IACnC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAuBD;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,oCAAoC,eAAe,gCAgDjF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ReactNode } from 'react';
2
+ /** The facts the loading screen shows while it waits, one at a time. */
3
+ export declare const BEAUTY_FACTS: readonly ReactNode[];
4
+ //# sourceMappingURL=beauty-facts.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beauty-facts.d.cts","sourceRoot":"","sources":["../../src/loading-screen/beauty-facts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,wEAAwE;AACxE,eAAO,MAAM,YAAY,EAAE,SAAS,SAAS,EAoP5C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ReactNode } from 'react';
2
+ /** The facts the loading screen shows while it waits, one at a time. */
3
+ export declare const BEAUTY_FACTS: readonly ReactNode[];
4
+ //# sourceMappingURL=beauty-facts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beauty-facts.d.ts","sourceRoot":"","sources":["../../src/loading-screen/beauty-facts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,wEAAwE;AACxE,eAAO,MAAM,YAAY,EAAE,SAAS,SAAS,EAoP5C,CAAC"}