@betterinternship/components 2.9.6 → 3.0.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 (746) hide show
  1. package/README.md +4 -9
  2. package/dist/components/{ui/accordion.d.ts → accordion.d.ts} +7 -1
  3. package/dist/components/accordion.js +23 -0
  4. package/dist/components/accordion.js.map +1 -0
  5. package/dist/components/{ui/animated-count.d.ts → animated-count.d.ts} +1 -4
  6. package/dist/components/animated-count.js +19 -0
  7. package/dist/components/animated-count.js.map +1 -0
  8. package/dist/components/animated-shiny-text.d.ts +5 -0
  9. package/dist/components/{ui/app-header.d.ts → app-header.d.ts} +3 -1
  10. package/dist/components/app-header.js +72 -0
  11. package/dist/components/app-header.js.map +1 -0
  12. package/dist/components/autocomplete.d.ts +34 -0
  13. package/dist/components/{ui/avatar.js → avatar.js} +1 -1
  14. package/dist/components/avatar.js.map +1 -0
  15. package/dist/components/badge.d.ts +13 -0
  16. package/dist/components/{ui/badge.js → badge.js} +54 -31
  17. package/dist/components/badge.js.map +1 -0
  18. package/dist/components/banner.d.ts +17 -0
  19. package/dist/components/banner.js +41 -0
  20. package/dist/components/banner.js.map +1 -0
  21. package/dist/components/button.d.ts +56 -0
  22. package/dist/components/button.js +53 -0
  23. package/dist/components/button.js.map +1 -0
  24. package/dist/components/calendar.d.ts +10 -0
  25. package/dist/components/calendar.js +56 -0
  26. package/dist/components/calendar.js.map +1 -0
  27. package/dist/components/{ui/card.d.ts → card.d.ts} +7 -1
  28. package/dist/components/{ui/card.js → card.js} +10 -4
  29. package/dist/components/{ui/card.js.map → card.js.map} +1 -1
  30. package/dist/components/carousel.d.ts +40 -0
  31. package/dist/components/checkbox.d.ts +8 -0
  32. package/dist/components/checkbox.js +20 -0
  33. package/dist/components/checkbox.js.map +1 -0
  34. package/dist/components/chip-select.d.ts +18 -0
  35. package/dist/components/collapsible.d.ts +18 -0
  36. package/dist/components/context-menu.d.ts +27 -0
  37. package/dist/components/{ui/dialog.d.ts → dialog.d.ts} +5 -2
  38. package/dist/components/dialog.js +44 -0
  39. package/dist/components/dialog.js.map +1 -0
  40. package/dist/components/divider.d.ts +3 -0
  41. package/dist/components/divider.js +10 -0
  42. package/dist/components/divider.js.map +1 -0
  43. package/dist/components/dot-matrix.d.ts +21 -0
  44. package/dist/components/dropdown-menu.js +61 -0
  45. package/dist/components/dropdown-menu.js.map +1 -0
  46. package/dist/components/dropdown.d.ts +65 -0
  47. package/dist/components/error.d.ts +8 -0
  48. package/dist/components/file-upload.d.ts +16 -0
  49. package/dist/components/file-upload.js +29 -0
  50. package/dist/components/file-upload.js.map +1 -0
  51. package/dist/components/filter-chip.d.ts +21 -0
  52. package/dist/components/filter-chip.js +28 -0
  53. package/dist/components/filter-chip.js.map +1 -0
  54. package/dist/components/form-checkbox-group.d.ts +31 -0
  55. package/dist/components/form-checkbox-group.js +29 -0
  56. package/dist/components/form-checkbox-group.js.map +1 -0
  57. package/dist/components/form-checkbox.d.ts +15 -0
  58. package/dist/components/form-checkbox.js +14 -0
  59. package/dist/components/form-checkbox.js.map +1 -0
  60. package/dist/components/form-date-picker.d.ts +47 -0
  61. package/dist/components/form-date-picker.js +55 -0
  62. package/dist/components/form-date-picker.js.map +1 -0
  63. package/dist/components/form-field.d.ts +14 -0
  64. package/dist/components/form-field.js +10 -0
  65. package/dist/components/form-field.js.map +1 -0
  66. package/dist/components/form-input.d.ts +11 -0
  67. package/dist/components/form-input.js +12 -0
  68. package/dist/components/form-input.js.map +1 -0
  69. package/dist/components/form-month-picker.d.ts +26 -0
  70. package/dist/components/form-month-picker.js +55 -0
  71. package/dist/components/form-month-picker.js.map +1 -0
  72. package/dist/components/form-radio.d.ts +15 -0
  73. package/dist/components/form-radio.js +20 -0
  74. package/dist/components/form-radio.js.map +1 -0
  75. package/dist/components/form-textarea.d.ts +11 -0
  76. package/dist/components/form-textarea.js +11 -0
  77. package/dist/components/form-textarea.js.map +1 -0
  78. package/dist/components/form.d.ts +24 -0
  79. package/dist/components/hover-card.d.ts +6 -0
  80. package/dist/components/input-otp.d.ts +39 -0
  81. package/dist/components/input.js +30 -0
  82. package/dist/components/input.js.map +1 -0
  83. package/dist/components/label.d.ts +15 -0
  84. package/dist/components/label.js +19 -0
  85. package/dist/components/label.js.map +1 -0
  86. package/dist/components/loader.d.ts +20 -0
  87. package/dist/components/loader.js +14 -0
  88. package/dist/components/loader.js.map +1 -0
  89. package/dist/components/magnetic-button.d.ts +5 -0
  90. package/dist/components/messages.d.ts +6 -0
  91. package/dist/components/mobile-sheet-portal.d.ts +9 -0
  92. package/dist/components/page-header.d.ts +6 -0
  93. package/dist/components/page-header.js +9 -0
  94. package/dist/components/page-header.js.map +1 -0
  95. package/dist/components/paginator.d.ts +9 -0
  96. package/dist/components/{ui/popover.js → popover.js} +2 -2
  97. package/dist/components/popover.js.map +1 -0
  98. package/dist/components/progress.d.ts +4 -0
  99. package/dist/components/radio-group.d.ts +5 -0
  100. package/dist/components/radio-group.js +17 -0
  101. package/dist/components/radio-group.js.map +1 -0
  102. package/dist/components/select.d.ts +15 -0
  103. package/dist/components/select.js +50 -0
  104. package/dist/components/select.js.map +1 -0
  105. package/dist/components/sheet.d.ts +27 -0
  106. package/dist/components/{ui/skeleton.js → skeleton.js} +2 -2
  107. package/dist/components/skeleton.js.map +1 -0
  108. package/dist/components/slider.d.ts +4 -0
  109. package/dist/components/sonner-toast.d.ts +106 -0
  110. package/dist/components/stepper.d.ts +9 -0
  111. package/dist/components/stepper.js +14 -0
  112. package/dist/components/stepper.js.map +1 -0
  113. package/dist/components/switch.js +10 -0
  114. package/dist/components/switch.js.map +1 -0
  115. package/dist/components/table.d.ts +33 -0
  116. package/dist/components/table.js +88 -0
  117. package/dist/components/table.js.map +1 -0
  118. package/dist/components/tabs.d.ts +22 -0
  119. package/dist/components/textarea.d.ts +3 -0
  120. package/dist/components/textarea.js +11 -0
  121. package/dist/components/textarea.js.map +1 -0
  122. package/dist/components/time-input-native.d.ts +14 -0
  123. package/dist/components/time-input-native.js +61 -0
  124. package/dist/components/time-input-native.js.map +1 -0
  125. package/dist/components/timeline.d.ts +17 -0
  126. package/dist/components/toggle.d.ts +5 -0
  127. package/dist/components/{ui/tooltip.js → tooltip.js} +2 -2
  128. package/dist/components/tooltip.js.map +1 -0
  129. package/dist/design-tokens.d.ts +69 -0
  130. package/dist/hooks/use-detect-click-outside.d.ts +4 -0
  131. package/dist/hooks/use-field-focus.d.ts +37 -0
  132. package/dist/hooks/use-field-focus.js +57 -0
  133. package/dist/hooks/use-field-focus.js.map +1 -0
  134. package/dist/hooks/use-mobile-sheet-viewport.d.ts +6 -0
  135. package/dist/hooks/use-mobile-sheet-viewport.js +60 -0
  136. package/dist/hooks/use-mobile-sheet-viewport.js.map +1 -0
  137. package/dist/hooks/use-mobile.d.ts +1 -0
  138. package/dist/hooks/use-mobile.js +16 -0
  139. package/dist/hooks/use-mobile.js.map +1 -0
  140. package/dist/hooks/use-resource-table.d.ts +141 -0
  141. package/dist/index.d.ts +36 -22
  142. package/dist/index.js +34 -22
  143. package/dist/index.js.map +1 -1
  144. package/dist/lib/interaction-styles.d.ts +10 -0
  145. package/dist/lib/interaction-styles.js +15 -0
  146. package/dist/lib/interaction-styles.js.map +1 -0
  147. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +118 -0
  148. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js.map +1 -0
  149. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +77 -0
  150. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js.map +1 -0
  151. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +190 -0
  152. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js.map +1 -0
  153. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +46 -0
  154. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js.map +1 -0
  155. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +15 -0
  156. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js.map +1 -0
  157. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +7 -0
  158. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js.map +1 -0
  159. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +7 -0
  160. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js.map +1 -0
  161. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +14 -0
  162. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js.map +1 -0
  163. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +15 -0
  164. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js.map +1 -0
  165. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +7 -0
  166. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js.map +1 -0
  167. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +18 -0
  168. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js.map +1 -0
  169. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +11 -0
  170. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js.map +1 -0
  171. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +10 -0
  172. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js.map +1 -0
  173. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +9 -0
  174. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js.map +1 -0
  175. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +14 -0
  176. package/dist/node_modules/framer-motion/dist/es/events/event-info.js.map +1 -0
  177. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +586 -0
  178. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js.map +1 -0
  179. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +51 -0
  180. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js.map +1 -0
  181. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +130 -0
  182. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js.map +1 -0
  183. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +42 -0
  184. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js.map +1 -0
  185. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +31 -0
  186. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js.map +1 -0
  187. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +285 -0
  188. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js.map +1 -0
  189. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +51 -0
  190. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js.map +1 -0
  191. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +38 -0
  192. package/dist/node_modules/framer-motion/dist/es/gestures/press.js.map +1 -0
  193. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +71 -0
  194. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js.map +1 -0
  195. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +41 -0
  196. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js.map +1 -0
  197. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +14 -0
  198. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js.map +1 -0
  199. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +49 -0
  200. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js.map +1 -0
  201. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +18 -0
  202. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js.map +1 -0
  203. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +22 -0
  204. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js.map +1 -0
  205. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +138 -0
  206. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js.map +1 -0
  207. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +12 -0
  208. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js.map +1 -0
  209. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +16 -0
  210. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js.map +1 -0
  211. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +77 -0
  212. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js.map +1 -0
  213. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +50 -0
  214. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js.map +1 -0
  215. package/dist/node_modules/framer-motion/dist/es/motion/index.js +113 -0
  216. package/dist/node_modules/framer-motion/dist/es/motion/index.js.map +1 -0
  217. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
  218. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js.map +1 -0
  219. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +52 -0
  220. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js.map +1 -0
  221. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +166 -0
  222. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js.map +1 -0
  223. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +81 -0
  224. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js.map +1 -0
  225. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +59 -0
  226. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js.map +1 -0
  227. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +46 -0
  228. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js.map +1 -0
  229. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +14 -0
  230. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js.map +1 -0
  231. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +8 -0
  232. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js.map +1 -0
  233. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +19 -0
  234. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js.map +1 -0
  235. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +28 -0
  236. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js.map +1 -0
  237. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +37 -0
  238. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js.map +1 -0
  239. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +31 -0
  240. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js.map +1 -0
  241. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +12 -0
  242. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js.map +1 -0
  243. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +59 -0
  244. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js.map +1 -0
  245. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
  246. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js.map +1 -0
  247. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +34 -0
  248. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js.map +1 -0
  249. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +26 -0
  250. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js.map +1 -0
  251. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +12 -0
  252. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js.map +1 -0
  253. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +9 -0
  254. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js.map +1 -0
  255. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +10 -0
  256. package/dist/node_modules/framer-motion/dist/es/utils/distance.js.map +1 -0
  257. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +7 -0
  258. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js.map +1 -0
  259. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
  260. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js.map +1 -0
  261. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +8 -0
  262. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js.map +1 -0
  263. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +49 -0
  264. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js.map +1 -0
  265. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +61 -0
  266. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js.map +1 -0
  267. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +20 -0
  268. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js.map +1 -0
  269. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +8 -0
  270. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js.map +1 -0
  271. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +200 -0
  272. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js.map +1 -0
  273. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +386 -0
  274. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js.map +1 -0
  275. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +181 -0
  276. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js.map +1 -0
  277. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +88 -0
  278. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js.map +1 -0
  279. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +12 -0
  280. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js.map +1 -0
  281. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +18 -0
  282. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js.map +1 -0
  283. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +88 -0
  284. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js.map +1 -0
  285. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +52 -0
  286. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js.map +1 -0
  287. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +331 -0
  288. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js.map +1 -0
  289. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +18 -0
  290. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js.map +1 -0
  291. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +20 -0
  292. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js.map +1 -0
  293. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
  294. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js.map +1 -0
  295. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +10 -0
  296. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js.map +1 -0
  297. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +106 -0
  298. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js.map +1 -0
  299. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +109 -0
  300. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js.map +1 -0
  301. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +60 -0
  302. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js.map +1 -0
  303. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +27 -0
  304. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js.map +1 -0
  305. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +142 -0
  306. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js.map +1 -0
  307. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +148 -0
  308. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js.map +1 -0
  309. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +12 -0
  310. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js.map +1 -0
  311. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +10 -0
  312. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js.map +1 -0
  313. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +13 -0
  314. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js.map +1 -0
  315. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +6 -0
  316. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js.map +1 -0
  317. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +8 -0
  318. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js.map +1 -0
  319. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +16 -0
  320. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js.map +1 -0
  321. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +31 -0
  322. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js.map +1 -0
  323. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +47 -0
  324. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js.map +1 -0
  325. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +7 -0
  326. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js.map +1 -0
  327. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +8 -0
  328. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js.map +1 -0
  329. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +27 -0
  330. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js.map +1 -0
  331. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +16 -0
  332. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js.map +1 -0
  333. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +44 -0
  334. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js.map +1 -0
  335. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +43 -0
  336. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js.map +1 -0
  337. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +41 -0
  338. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js.map +1 -0
  339. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +14 -0
  340. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js.map +1 -0
  341. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +31 -0
  342. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js.map +1 -0
  343. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +27 -0
  344. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js.map +1 -0
  345. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +27 -0
  346. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js.map +1 -0
  347. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +7 -0
  348. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js.map +1 -0
  349. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +19 -0
  350. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js.map +1 -0
  351. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +15 -0
  352. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js.map +1 -0
  353. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +4 -0
  354. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js.map +1 -0
  355. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +29 -0
  356. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js.map +1 -0
  357. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +16 -0
  358. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js.map +1 -0
  359. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +29 -0
  360. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js.map +1 -0
  361. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +55 -0
  362. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js.map +1 -0
  363. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +13 -0
  364. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js.map +1 -0
  365. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +16 -0
  366. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js.map +1 -0
  367. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +13 -0
  368. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js.map +1 -0
  369. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +13 -0
  370. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js.map +1 -0
  371. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +21 -0
  372. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js.map +1 -0
  373. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +7 -0
  374. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js.map +1 -0
  375. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +73 -0
  376. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js.map +1 -0
  377. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +7 -0
  378. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js.map +1 -0
  379. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +7 -0
  380. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js.map +1 -0
  381. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +13 -0
  382. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js.map +1 -0
  383. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +84 -0
  384. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js.map +1 -0
  385. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +32 -0
  386. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js.map +1 -0
  387. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +10 -0
  388. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js.map +1 -0
  389. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +29 -0
  390. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js.map +1 -0
  391. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +70 -0
  392. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js.map +1 -0
  393. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +97 -0
  394. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js.map +1 -0
  395. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +34 -0
  396. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js.map +1 -0
  397. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +39 -0
  398. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js.map +1 -0
  399. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
  400. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js.map +1 -0
  401. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +21 -0
  402. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js.map +1 -0
  403. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +19 -0
  404. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js.map +1 -0
  405. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +16 -0
  406. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js.map +1 -0
  407. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +69 -0
  408. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js.map +1 -0
  409. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +34 -0
  410. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js.map +1 -0
  411. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +32 -0
  412. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js.map +1 -0
  413. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +125 -0
  414. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js.map +1 -0
  415. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +59 -0
  416. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js.map +1 -0
  417. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +55 -0
  418. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js.map +1 -0
  419. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +18 -0
  420. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js.map +1 -0
  421. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +32 -0
  422. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js.map +1 -0
  423. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +14 -0
  424. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js.map +1 -0
  425. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +28 -0
  426. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js.map +1 -0
  427. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +1660 -0
  428. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js.map +1 -0
  429. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +20 -0
  430. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js.map +1 -0
  431. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +85 -0
  432. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js.map +1 -0
  433. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +42 -0
  434. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js.map +1 -0
  435. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +36 -0
  436. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js.map +1 -0
  437. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +18 -0
  438. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js.map +1 -0
  439. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +53 -0
  440. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js.map +1 -0
  441. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +4 -0
  442. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js.map +1 -0
  443. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +6 -0
  444. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js.map +1 -0
  445. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +25 -0
  446. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js.map +1 -0
  447. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +27 -0
  448. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js.map +1 -0
  449. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +18 -0
  450. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js.map +1 -0
  451. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +15 -0
  452. package/dist/node_modules/motion-dom/dist/es/render/Feature.js.map +1 -0
  453. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +564 -0
  454. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js.map +1 -0
  455. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +43 -0
  456. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js.map +1 -0
  457. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +4 -0
  458. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js.map +1 -0
  459. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +84 -0
  460. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js.map +1 -0
  461. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +10 -0
  462. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js.map +1 -0
  463. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +6 -0
  464. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js.map +1 -0
  465. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +55 -0
  466. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js.map +1 -0
  467. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +66 -0
  468. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js.map +1 -0
  469. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +72 -0
  470. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js.map +1 -0
  471. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +18 -0
  472. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js.map +1 -0
  473. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +22 -0
  474. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js.map +1 -0
  475. package/dist/node_modules/motion-dom/dist/es/render/store.js +4 -0
  476. package/dist/node_modules/motion-dom/dist/es/render/store.js.map +1 -0
  477. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +52 -0
  478. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js.map +1 -0
  479. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +64 -0
  480. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js.map +1 -0
  481. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +31 -0
  482. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js.map +1 -0
  483. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +4 -0
  484. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js.map +1 -0
  485. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +32 -0
  486. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js.map +1 -0
  487. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +13 -0
  488. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js.map +1 -0
  489. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +20 -0
  490. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js.map +1 -0
  491. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +387 -0
  492. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js.map +1 -0
  493. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +33 -0
  494. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js.map +1 -0
  495. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +8 -0
  496. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js.map +1 -0
  497. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +14 -0
  498. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js.map +1 -0
  499. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +12 -0
  500. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js.map +1 -0
  501. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +6 -0
  502. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js.map +1 -0
  503. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +9 -0
  504. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js.map +1 -0
  505. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +14 -0
  506. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js.map +1 -0
  507. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +36 -0
  508. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js.map +1 -0
  509. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +56 -0
  510. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js.map +1 -0
  511. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +20 -0
  512. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js.map +1 -0
  513. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +6 -0
  514. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js.map +1 -0
  515. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +9 -0
  516. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js.map +1 -0
  517. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +37 -0
  518. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js.map +1 -0
  519. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +32 -0
  520. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js.map +1 -0
  521. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +15 -0
  522. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js.map +1 -0
  523. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +13 -0
  524. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js.map +1 -0
  525. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +64 -0
  526. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js.map +1 -0
  527. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +32 -0
  528. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js.map +1 -0
  529. package/dist/node_modules/motion-dom/dist/es/resize/index.js +9 -0
  530. package/dist/node_modules/motion-dom/dist/es/resize/index.js.map +1 -0
  531. package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +15 -0
  532. package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js.map +1 -0
  533. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +21 -0
  534. package/dist/node_modules/motion-dom/dist/es/utils/delay.js.map +1 -0
  535. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +80 -0
  536. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js.map +1 -0
  537. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +14 -0
  538. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js.map +1 -0
  539. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +12 -0
  540. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js.map +1 -0
  541. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +12 -0
  542. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js.map +1 -0
  543. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +48 -0
  544. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js.map +1 -0
  545. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +94 -0
  546. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js.map +1 -0
  547. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +6 -0
  548. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js.map +1 -0
  549. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +15 -0
  550. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js.map +1 -0
  551. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +27 -0
  552. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js.map +1 -0
  553. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +17 -0
  554. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js.map +1 -0
  555. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +18 -0
  556. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js.map +1 -0
  557. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +8 -0
  558. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js.map +1 -0
  559. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +16 -0
  560. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js.map +1 -0
  561. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +10 -0
  562. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js.map +1 -0
  563. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +6 -0
  564. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js.map +1 -0
  565. package/dist/node_modules/motion-dom/dist/es/value/index.js +320 -0
  566. package/dist/node_modules/motion-dom/dist/es/value/index.js.map +1 -0
  567. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +10 -0
  568. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js.map +1 -0
  569. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +41 -0
  570. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js.map +1 -0
  571. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +43 -0
  572. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js.map +1 -0
  573. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +23 -0
  574. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js.map +1 -0
  575. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +33 -0
  576. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js.map +1 -0
  577. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +26 -0
  578. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js.map +1 -0
  579. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +30 -0
  580. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js.map +1 -0
  581. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +31 -0
  582. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js.map +1 -0
  583. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +114 -0
  584. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js.map +1 -0
  585. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +13 -0
  586. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js.map +1 -0
  587. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +16 -0
  588. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js.map +1 -0
  589. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +9 -0
  590. package/dist/node_modules/motion-dom/dist/es/value/types/int.js.map +1 -0
  591. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +34 -0
  592. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js.map +1 -0
  593. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +71 -0
  594. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js.map +1 -0
  595. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +38 -0
  596. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js.map +1 -0
  597. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +18 -0
  598. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js.map +1 -0
  599. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +19 -0
  600. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js.map +1 -0
  601. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +7 -0
  602. package/dist/node_modules/motion-dom/dist/es/value/types/test.js.map +1 -0
  603. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +18 -0
  604. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js.map +1 -0
  605. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +4 -0
  606. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js.map +1 -0
  607. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +16 -0
  608. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js.map +1 -0
  609. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +4 -0
  610. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js.map +1 -0
  611. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +11 -0
  612. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js.map +1 -0
  613. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +6 -0
  614. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js.map +1 -0
  615. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +6 -0
  616. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js.map +1 -0
  617. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +4 -0
  618. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js.map +1 -0
  619. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +4 -0
  620. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js.map +1 -0
  621. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +11 -0
  622. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js.map +1 -0
  623. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +21 -0
  624. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js.map +1 -0
  625. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +8 -0
  626. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js.map +1 -0
  627. package/dist/node_modules/motion-utils/dist/es/array.js +12 -0
  628. package/dist/node_modules/motion-utils/dist/es/array.js.map +1 -0
  629. package/dist/node_modules/motion-utils/dist/es/clamp.js +10 -0
  630. package/dist/node_modules/motion-utils/dist/es/clamp.js.map +1 -0
  631. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +10 -0
  632. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js.map +1 -0
  633. package/dist/node_modules/motion-utils/dist/es/easing/back.js +10 -0
  634. package/dist/node_modules/motion-utils/dist/es/easing/back.js.map +1 -0
  635. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +9 -0
  636. package/dist/node_modules/motion-utils/dist/es/easing/circ.js.map +1 -0
  637. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +53 -0
  638. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js.map +1 -0
  639. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +8 -0
  640. package/dist/node_modules/motion-utils/dist/es/easing/ease.js.map +1 -0
  641. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +7 -0
  642. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js.map +1 -0
  643. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +7 -0
  644. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js.map +1 -0
  645. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +5 -0
  646. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js.map +1 -0
  647. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +7 -0
  648. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js.map +1 -0
  649. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +42 -0
  650. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js.map +1 -0
  651. package/dist/node_modules/motion-utils/dist/es/errors.js +20 -0
  652. package/dist/node_modules/motion-utils/dist/es/errors.js.map +1 -0
  653. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +8 -0
  654. package/dist/node_modules/motion-utils/dist/es/format-error-message.js.map +1 -0
  655. package/dist/node_modules/motion-utils/dist/es/global-config.js +4 -0
  656. package/dist/node_modules/motion-utils/dist/es/global-config.js.map +1 -0
  657. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +7 -0
  658. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js.map +1 -0
  659. package/dist/node_modules/motion-utils/dist/es/is-object.js +4 -0
  660. package/dist/node_modules/motion-utils/dist/es/is-object.js.map +1 -0
  661. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +7 -0
  662. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js.map +1 -0
  663. package/dist/node_modules/motion-utils/dist/es/memo.js +12 -0
  664. package/dist/node_modules/motion-utils/dist/es/memo.js.map +1 -0
  665. package/dist/node_modules/motion-utils/dist/es/noop.js +5 -0
  666. package/dist/node_modules/motion-utils/dist/es/noop.js.map +1 -0
  667. package/dist/node_modules/motion-utils/dist/es/pipe.js +11 -0
  668. package/dist/node_modules/motion-utils/dist/es/pipe.js.map +1 -0
  669. package/dist/node_modules/motion-utils/dist/es/progress.js +15 -0
  670. package/dist/node_modules/motion-utils/dist/es/progress.js.map +1 -0
  671. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +41 -0
  672. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js.map +1 -0
  673. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +13 -0
  674. package/dist/node_modules/motion-utils/dist/es/time-conversion.js.map +1 -0
  675. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +8 -0
  676. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js.map +1 -0
  677. package/dist/node_modules/motion-utils/dist/es/warn-once.js +12 -0
  678. package/dist/node_modules/motion-utils/dist/es/warn-once.js.map +1 -0
  679. package/package.json +107 -71
  680. package/theme.css +147 -20
  681. package/theme.legacy.css +84 -0
  682. package/dist/components/ui/accordion.js +0 -20
  683. package/dist/components/ui/accordion.js.map +0 -1
  684. package/dist/components/ui/animated-count.js +0 -22
  685. package/dist/components/ui/animated-count.js.map +0 -1
  686. package/dist/components/ui/app-header.js +0 -72
  687. package/dist/components/ui/app-header.js.map +0 -1
  688. package/dist/components/ui/avatar.js.map +0 -1
  689. package/dist/components/ui/badge.d.ts +0 -22
  690. package/dist/components/ui/badge.js.map +0 -1
  691. package/dist/components/ui/button.d.ts +0 -13
  692. package/dist/components/ui/button.js +0 -88
  693. package/dist/components/ui/button.js.map +0 -1
  694. package/dist/components/ui/button.test.d.ts +0 -1
  695. package/dist/components/ui/calendar.d.ts +0 -7
  696. package/dist/components/ui/checkbox.d.ts +0 -4
  697. package/dist/components/ui/checkbox.js +0 -11
  698. package/dist/components/ui/checkbox.js.map +0 -1
  699. package/dist/components/ui/dialog.js +0 -41
  700. package/dist/components/ui/dialog.js.map +0 -1
  701. package/dist/components/ui/dropdown-menu.js +0 -61
  702. package/dist/components/ui/dropdown-menu.js.map +0 -1
  703. package/dist/components/ui/fab.js +0 -9
  704. package/dist/components/ui/fab.js.map +0 -1
  705. package/dist/components/ui/icons.d.ts +0 -10
  706. package/dist/components/ui/icons.js +0 -39
  707. package/dist/components/ui/icons.js.map +0 -1
  708. package/dist/components/ui/input.js +0 -17
  709. package/dist/components/ui/input.js.map +0 -1
  710. package/dist/components/ui/label.d.ts +0 -4
  711. package/dist/components/ui/label.js +0 -10
  712. package/dist/components/ui/label.js.map +0 -1
  713. package/dist/components/ui/page-header.d.ts +0 -18
  714. package/dist/components/ui/page-header.js +0 -17
  715. package/dist/components/ui/page-header.js.map +0 -1
  716. package/dist/components/ui/popover.js.map +0 -1
  717. package/dist/components/ui/separator.d.ts +0 -4
  718. package/dist/components/ui/separator.js +0 -10
  719. package/dist/components/ui/separator.js.map +0 -1
  720. package/dist/components/ui/skeleton.js.map +0 -1
  721. package/dist/components/ui/status-notice.d.ts +0 -14
  722. package/dist/components/ui/status-notice.js +0 -27
  723. package/dist/components/ui/status-notice.js.map +0 -1
  724. package/dist/components/ui/switch.js +0 -10
  725. package/dist/components/ui/switch.js.map +0 -1
  726. package/dist/components/ui/table.d.ts +0 -10
  727. package/dist/components/ui/table.js +0 -30
  728. package/dist/components/ui/table.js.map +0 -1
  729. package/dist/components/ui/textarea.d.ts +0 -3
  730. package/dist/components/ui/textarea.js +0 -9
  731. package/dist/components/ui/textarea.js.map +0 -1
  732. package/dist/components/ui/tooltip.js.map +0 -1
  733. package/dist/config.d.ts +0 -6
  734. package/dist/config.js +0 -9
  735. package/dist/config.js.map +0 -1
  736. package/dist/hooks/useClientProcess.d.ts +0 -69
  737. package/dist/hooks/useClientProcess.js +0 -255
  738. package/dist/hooks/useClientProcess.js.map +0 -1
  739. /package/dist/components/{ui/avatar.d.ts → avatar.d.ts} +0 -0
  740. /package/dist/components/{ui/dropdown-menu.d.ts → dropdown-menu.d.ts} +0 -0
  741. /package/dist/components/{ui/fab.d.ts → fab.d.ts} +0 -0
  742. /package/dist/components/{ui/input.d.ts → input.d.ts} +0 -0
  743. /package/dist/components/{ui/popover.d.ts → popover.d.ts} +0 -0
  744. /package/dist/components/{ui/skeleton.d.ts → skeleton.d.ts} +0 -0
  745. /package/dist/components/{ui/switch.d.ts → switch.d.ts} +0 -0
  746. /package/dist/components/{ui/tooltip.d.ts → tooltip.d.ts} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,24 +1,38 @@
1
1
  export * from './utils';
2
+ export { Spinner, Loader } from './components/loader';
3
+ export type { SpinnerProps, LoaderProps } from './components/loader';
2
4
  export * from './hooks/useMQJob';
3
- export * from './components/ui/button';
4
- export * from './components/ui/accordion';
5
- export * from './components/ui/animated-count';
6
- export * from './components/ui/app-header';
7
- export * from './components/ui/input';
8
- export * from './components/ui/icons';
9
- export * from './components/ui/avatar';
10
- export * from './components/ui/badge';
11
- export * from './components/ui/card';
12
- export * from './components/ui/checkbox';
13
- export * from './components/ui/dialog';
14
- export * from './components/ui/dropdown-menu';
15
- export * from './components/ui/label';
16
- export * from './components/ui/page-header';
17
- export * from './components/ui/popover';
18
- export * from './components/ui/separator';
19
- export * from './components/ui/skeleton';
20
- export * from './components/ui/status-notice';
21
- export * from './components/ui/switch';
22
- export * from './components/ui/table';
23
- export * from './components/ui/textarea';
24
- export * from './components/ui/tooltip';
5
+ export { Button, ExpandingButton, FilterChip as ButtonFilterChip, buttonClassName } from './components/button';
6
+ export type { ButtonProps, UnifiedButtonProps, ExpandingButtonProps, FilterChipProps as ButtonFilterChipProps, ButtonVariant, ButtonScheme, ButtonSize, ButtonShape } from './components/button';
7
+ export * from './components/accordion';
8
+ export * from './components/animated-count';
9
+ export * from './components/app-header';
10
+ export * from './components/input';
11
+ export * from './components/avatar';
12
+ export * from './components/badge';
13
+ export * from './components/card';
14
+ export * from './components/checkbox';
15
+ export * from './components/dialog';
16
+ export * from './components/dropdown-menu';
17
+ export * from './components/file-upload';
18
+ export * from './components/filter-chip';
19
+ export * from './components/select';
20
+ export * from './components/label';
21
+ export * from './components/form-field';
22
+ export * from './components/form-input';
23
+ export * from './components/form-textarea';
24
+ export * from './components/form-checkbox';
25
+ export * from './components/form-checkbox-group';
26
+ export * from './components/form-radio';
27
+ export * from './components/form-date-picker';
28
+ export * from './components/form-month-picker';
29
+ export * from './components/time-input-native';
30
+ export * from './components/page-header';
31
+ export * from './components/popover';
32
+ export * from './components/skeleton';
33
+ export * from './components/banner';
34
+ export * from './components/switch';
35
+ export * from './components/table';
36
+ export * from './components/textarea';
37
+ export * from './components/tooltip';
38
+ export * from './components/stepper';
package/dist/index.js CHANGED
@@ -1,25 +1,37 @@
1
1
  export { cn } from './utils.js';
2
+ export { Loader, Spinner } from './components/loader.js';
2
3
  export { MQJobsProvider, useMQJob, useMQJobs } from './hooks/useMQJob.js';
3
- export { Button, buttonVariants } from './components/ui/button.js';
4
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './components/ui/accordion.js';
5
- export { AnimatedCount } from './components/ui/animated-count.js';
6
- export { AppHeader } from './components/ui/app-header.js';
7
- export { Input } from './components/ui/input.js';
8
- export { BooleanCheckIcon, JobModeIcon, JobTypeIcon, SalaryIcon } from './components/ui/icons.js';
9
- export { Avatar, AvatarFallback, AvatarImage } from './components/ui/avatar.js';
10
- export { Badge, BoolBadge } from './components/ui/badge.js';
11
- export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './components/ui/card.js';
12
- export { Checkbox } from './components/ui/checkbox.js';
13
- export { Dialog, DialogBottomSheet, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './components/ui/dialog.js';
14
- export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './components/ui/dropdown-menu.js';
15
- export { Label } from './components/ui/label.js';
16
- export { EmptyState, PageContainer, PageHeader } from './components/ui/page-header.js';
17
- export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './components/ui/popover.js';
18
- export { Separator } from './components/ui/separator.js';
19
- export { Skeleton } from './components/ui/skeleton.js';
20
- export { StatusNotice } from './components/ui/status-notice.js';
21
- export { Switch } from './components/ui/switch.js';
22
- export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from './components/ui/table.js';
23
- export { Textarea } from './components/ui/textarea.js';
24
- export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './components/ui/tooltip.js';
4
+ export { Button, FilterChip as ButtonFilterChip, ExpandingButton, buttonClassName } from './components/button.js';
5
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './components/accordion.js';
6
+ export { AnimatedCount } from './components/animated-count.js';
7
+ export { AppHeader } from './components/app-header.js';
8
+ export { Input } from './components/input.js';
9
+ export { Avatar, AvatarFallback, AvatarImage } from './components/avatar.js';
10
+ export { Badge } from './components/badge.js';
11
+ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './components/card.js';
12
+ export { Checkbox, CheckboxVisual } from './components/checkbox.js';
13
+ export { Dialog, DialogBottomSheet, DialogClose, DialogContent, DialogDescription, DialogDivider, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './components/dialog.js';
14
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './components/dropdown-menu.js';
15
+ export { FileUpload } from './components/file-upload.js';
16
+ export { FilterChip, FilterChipGroup } from './components/filter-chip.js';
17
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from './components/select.js';
18
+ export { FieldLabel, Label } from './components/label.js';
19
+ export { FormField } from './components/form-field.js';
20
+ export { FormInput } from './components/form-input.js';
21
+ export { FormTextarea } from './components/form-textarea.js';
22
+ export { FormCheckbox } from './components/form-checkbox.js';
23
+ export { FormCheckBoxGroup } from './components/form-checkbox-group.js';
24
+ export { FormRadio } from './components/form-radio.js';
25
+ export { FormDatePicker } from './components/form-date-picker.js';
26
+ export { FormMonthPicker } from './components/form-month-picker.js';
27
+ export { TimeInputNative } from './components/time-input-native.js';
28
+ export { PageHeader } from './components/page-header.js';
29
+ export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './components/popover.js';
30
+ export { Skeleton } from './components/skeleton.js';
31
+ export { Banner } from './components/banner.js';
32
+ export { Switch } from './components/switch.js';
33
+ export { ResourceTable, Table } from './components/table.js';
34
+ export { Textarea } from './components/textarea.js';
35
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './components/tooltip.js';
36
+ export { Stepper } from './components/stepper.js';
25
37
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The shared landing interaction: a restrained lift, interactive shadow, and
3
+ * border emphasis. Hover motion is limited to fine pointers and is removed
4
+ * when the user prefers reduced motion.
5
+ */
6
+ export declare const interactiveSurfaceClassName = "transition-[border-color,box-shadow,translate] duration-200 ease-landing-out motion-safe:pointer-fine:hover:-translate-y-0.5 pointer-fine:hover:border-landing-border-hover pointer-fine:hover:shadow-landing-interactive focus-within:border-landing-border-hover focus-within:shadow-landing-interactive motion-reduce:transition-none";
7
+ /** Shared control feedback, including the properties used by the lift and press. */
8
+ export declare const interactiveControlTransitionClassName = "transition-[background-color,border-color,color,box-shadow,transform,translate,scale] duration-200 ease-landing-out motion-reduce:transition-none";
9
+ /** The motion and elevation portion for controls with their own color rules. */
10
+ export declare const interactiveControlClassName: string;
@@ -0,0 +1,15 @@
1
+ import { cn } from '../utils.js';
2
+
3
+ /**
4
+ * The shared landing interaction: a restrained lift, interactive shadow, and
5
+ * border emphasis. Hover motion is limited to fine pointers and is removed
6
+ * when the user prefers reduced motion.
7
+ */
8
+ const interactiveSurfaceClassName = 'transition-[border-color,box-shadow,translate] duration-200 ease-landing-out motion-safe:pointer-fine:hover:-translate-y-0.5 pointer-fine:hover:border-landing-border-hover pointer-fine:hover:shadow-landing-interactive focus-within:border-landing-border-hover focus-within:shadow-landing-interactive motion-reduce:transition-none';
9
+ /** Shared control feedback, including the properties used by the lift and press. */
10
+ const interactiveControlTransitionClassName = 'transition-[background-color,border-color,color,box-shadow,transform,translate,scale] duration-200 ease-landing-out motion-reduce:transition-none';
11
+ /** The motion and elevation portion for controls with their own color rules. */
12
+ const interactiveControlClassName = cn(interactiveControlTransitionClassName, 'pointer-fine:hover:shadow-landing-interactive motion-safe:pointer-fine:hover:-translate-y-0.5 motion-safe:active:scale-[.98] motion-safe:active:translate-y-0 motion-safe:active:duration-100 motion-safe:aria-disabled:active:scale-100 motion-safe:aria-busy:active:scale-100');
13
+
14
+ export { interactiveControlClassName, interactiveControlTransitionClassName, interactiveSurfaceClassName };
15
+ //# sourceMappingURL=interaction-styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interaction-styles.js","sources":["../../src/lib/interaction-styles.ts"],"sourcesContent":["import { cn } from '@/utils';\n\n/**\n * The shared landing interaction: a restrained lift, interactive shadow, and\n * border emphasis. Hover motion is limited to fine pointers and is removed\n * when the user prefers reduced motion.\n */\nexport const interactiveSurfaceClassName =\n 'transition-[border-color,box-shadow,translate] duration-200 ease-landing-out motion-safe:pointer-fine:hover:-translate-y-0.5 pointer-fine:hover:border-landing-border-hover pointer-fine:hover:shadow-landing-interactive focus-within:border-landing-border-hover focus-within:shadow-landing-interactive motion-reduce:transition-none';\n\n/** Shared control feedback, including the properties used by the lift and press. */\nexport const interactiveControlTransitionClassName =\n 'transition-[background-color,border-color,color,box-shadow,transform,translate,scale] duration-200 ease-landing-out motion-reduce:transition-none';\n\n/** The motion and elevation portion for controls with their own color rules. */\nexport const interactiveControlClassName =\n cn(interactiveControlTransitionClassName, 'pointer-fine:hover:shadow-landing-interactive motion-safe:pointer-fine:hover:-translate-y-0.5 motion-safe:active:scale-[.98] motion-safe:active:translate-y-0 motion-safe:active:duration-100 motion-safe:aria-disabled:active:scale-100 motion-safe:aria-busy:active:scale-100');\n"],"names":[],"mappings":";;AAEA;;;;AAIG;AACI,MAAM,2BAA2B,GACtC;AAEF;AACO,MAAM,qCAAqC,GAChD;AAEF;AACO,MAAM,2BAA2B,GACtC,EAAE,CAAC,qCAAqC,EAAE,iRAAiR;;;;"}
@@ -0,0 +1,118 @@
1
+ "use client";
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import * as React from 'react';
4
+ import { useId, useRef, useContext, useInsertionEffect } from 'react';
5
+ import { MotionConfigContext } from '../../context/MotionConfigContext.js';
6
+ import { useComposedRefs } from '../../utils/use-composed-ref.js';
7
+ import { isHTMLElement } from '../../../../../motion-dom/dist/es/utils/is-html-element.js';
8
+
9
+ /**
10
+ * Measurement functionality has to be within a separate component
11
+ * to leverage snapshot lifecycle.
12
+ */
13
+ class PopChildMeasure extends React.Component {
14
+ getSnapshotBeforeUpdate(prevProps) {
15
+ const element = this.props.childRef.current;
16
+ if (isHTMLElement(element) && prevProps.isPresent && !this.props.isPresent && this.props.pop !== false) {
17
+ const parent = element.offsetParent;
18
+ const parentWidth = isHTMLElement(parent)
19
+ ? parent.offsetWidth || 0
20
+ : 0;
21
+ const parentHeight = isHTMLElement(parent)
22
+ ? parent.offsetHeight || 0
23
+ : 0;
24
+ const computedStyle = getComputedStyle(element);
25
+ const size = this.props.sizeRef.current;
26
+ size.height = parseFloat(computedStyle.height);
27
+ size.width = parseFloat(computedStyle.width);
28
+ size.top = element.offsetTop;
29
+ size.left = element.offsetLeft;
30
+ size.right = parentWidth - size.width - size.left;
31
+ size.bottom = parentHeight - size.height - size.top;
32
+ size.direction = computedStyle.direction;
33
+ }
34
+ return null;
35
+ }
36
+ /**
37
+ * Required with getSnapshotBeforeUpdate to stop React complaining.
38
+ */
39
+ componentDidUpdate() { }
40
+ render() {
41
+ return this.props.children;
42
+ }
43
+ }
44
+ function PopChild({ children, isPresent, anchorX, anchorY, root, pop }) {
45
+ const id = useId();
46
+ const ref = useRef(null);
47
+ const size = useRef({
48
+ width: 0,
49
+ height: 0,
50
+ top: 0,
51
+ left: 0,
52
+ right: 0,
53
+ bottom: 0,
54
+ direction: "ltr",
55
+ });
56
+ const { nonce } = useContext(MotionConfigContext);
57
+ /**
58
+ * In React 19, refs are passed via props.ref instead of element.ref.
59
+ * We check props.ref first (React 19) and fall back to element.ref (React 18).
60
+ *
61
+ * The composed ref is only used when popping the child out (pop !== false),
62
+ * so we avoid reading children.props.ref otherwise. In React 18.3 that read
63
+ * triggers a spurious "`ref` is not a prop" warning getter (#3745).
64
+ */
65
+ const childRef = pop !== false
66
+ ? (children.props?.ref ??
67
+ children?.ref)
68
+ : undefined;
69
+ const composedRef = useComposedRefs(ref, childRef);
70
+ /**
71
+ * We create and inject a style block so we can apply this explicit
72
+ * sizing in a non-destructive manner by just deleting the style block.
73
+ *
74
+ * We can't apply size via render as the measurement happens
75
+ * in getSnapshotBeforeUpdate (post-render), likewise if we apply the
76
+ * styles directly on the DOM node, we might be overwriting
77
+ * styles set via the style prop.
78
+ */
79
+ useInsertionEffect(() => {
80
+ const { width, height, top, left, right, bottom, direction } = size.current;
81
+ if (isPresent || pop === false || !ref.current || !width || !height)
82
+ return;
83
+ const isRTL = direction === "rtl";
84
+ const x = anchorX === "left"
85
+ ? (isRTL ? `right: ${right}` : `left: ${left}`)
86
+ : (isRTL ? `left: ${left}` : `right: ${right}`);
87
+ const y = anchorY === "bottom" ? `bottom: ${bottom}` : `top: ${top}`;
88
+ ref.current.dataset.motionPopId = id;
89
+ const style = document.createElement("style");
90
+ if (nonce)
91
+ style.nonce = nonce;
92
+ const parent = root ?? document.head;
93
+ parent.appendChild(style);
94
+ if (style.sheet) {
95
+ style.sheet.insertRule(`
96
+ [data-motion-pop-id="${id}"] {
97
+ position: absolute !important;
98
+ width: ${width}px !important;
99
+ height: ${height}px !important;
100
+ ${x}px !important;
101
+ ${y}px !important;
102
+ }
103
+ `);
104
+ }
105
+ return () => {
106
+ ref.current?.removeAttribute("data-motion-pop-id");
107
+ if (parent.contains(style)) {
108
+ parent.removeChild(style);
109
+ }
110
+ };
111
+ }, [isPresent]);
112
+ return (jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, pop: pop, children: pop === false
113
+ ? children
114
+ : React.cloneElement(children, { ref: composedRef }) }));
115
+ }
116
+
117
+ export { PopChild };
118
+ //# sourceMappingURL=PopChild.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopChild.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs"],"sourcesContent":["\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { isHTMLElement } from 'motion-dom';\nimport * as React from 'react';\nimport { useId, useRef, useContext, useInsertionEffect } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { useComposedRefs } from '../../utils/use-composed-ref.mjs';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (isHTMLElement(element) && prevProps.isPresent && !this.props.isPresent && this.props.pop !== false) {\n const parent = element.offsetParent;\n const parentWidth = isHTMLElement(parent)\n ? parent.offsetWidth || 0\n : 0;\n const parentHeight = isHTMLElement(parent)\n ? parent.offsetHeight || 0\n : 0;\n const computedStyle = getComputedStyle(element);\n const size = this.props.sizeRef.current;\n size.height = parseFloat(computedStyle.height);\n size.width = parseFloat(computedStyle.width);\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n size.right = parentWidth - size.width - size.left;\n size.bottom = parentHeight - size.height - size.top;\n size.direction = computedStyle.direction;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent, anchorX, anchorY, root, pop }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n direction: \"ltr\",\n });\n const { nonce } = useContext(MotionConfigContext);\n /**\n * In React 19, refs are passed via props.ref instead of element.ref.\n * We check props.ref first (React 19) and fall back to element.ref (React 18).\n *\n * The composed ref is only used when popping the child out (pop !== false),\n * so we avoid reading children.props.ref otherwise. In React 18.3 that read\n * triggers a spurious \"`ref` is not a prop\" warning getter (#3745).\n */\n const childRef = pop !== false\n ? (children.props?.ref ??\n children?.ref)\n : undefined;\n const composedRef = useComposedRefs(ref, childRef);\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left, right, bottom, direction } = size.current;\n if (isPresent || pop === false || !ref.current || !width || !height)\n return;\n const isRTL = direction === \"rtl\";\n const x = anchorX === \"left\"\n ? (isRTL ? `right: ${right}` : `left: ${left}`)\n : (isRTL ? `left: ${left}` : `right: ${right}`);\n const y = anchorY === \"bottom\" ? `bottom: ${bottom}` : `top: ${top}`;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n if (nonce)\n style.nonce = nonce;\n const parent = root ?? document.head;\n parent.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n ${x}px !important;\n ${y}px !important;\n }\n `);\n }\n return () => {\n ref.current?.removeAttribute(\"data-motion-pop-id\");\n if (parent.contains(style)) {\n parent.removeChild(style);\n }\n };\n }, [isPresent]);\n return (jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, pop: pop, children: pop === false\n ? children\n : React.cloneElement(children, { ref: composedRef }) }));\n}\n\nexport { PopChild };\n//# sourceMappingURL=PopChild.mjs.map\n"],"names":[],"mappings":";;;;;;;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;","x_google_ignoreList":[0]}
@@ -0,0 +1,77 @@
1
+ "use client";
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import * as React from 'react';
4
+ import { useId, useRef, useMemo } from 'react';
5
+ import { PresenceContext } from '../../context/PresenceContext.js';
6
+ import { useConstant } from '../../utils/use-constant.js';
7
+ import { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.js';
8
+ import { PopChild } from './PopChild.js';
9
+
10
+ const PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, anchorY, root }) => {
11
+ const presenceChildren = useConstant(newChildrenMap);
12
+ const id = useId();
13
+ // Written in a layout effect (not render) so discarded concurrent
14
+ // renders can't leave the refs pointing at uncommitted state.
15
+ const isPresentRef = useRef(isPresent);
16
+ const onExitCompleteRef = useRef(onExitComplete);
17
+ useIsomorphicLayoutEffect(() => {
18
+ isPresentRef.current = isPresent;
19
+ onExitCompleteRef.current = onExitComplete;
20
+ });
21
+ let isReusedContext = true;
22
+ let context = useMemo(() => {
23
+ isReusedContext = false;
24
+ return {
25
+ id,
26
+ initial,
27
+ isPresent,
28
+ custom,
29
+ onExitComplete: (childId) => {
30
+ presenceChildren.set(childId, true);
31
+ for (const isComplete of presenceChildren.values()) {
32
+ if (!isComplete)
33
+ return; // can stop searching when any is incomplete
34
+ }
35
+ onExitComplete && onExitComplete();
36
+ },
37
+ register: (childId) => {
38
+ presenceChildren.set(childId, false);
39
+ return () => {
40
+ presenceChildren.delete(childId);
41
+ !isPresentRef.current &&
42
+ !presenceChildren.size &&
43
+ onExitCompleteRef.current?.();
44
+ };
45
+ },
46
+ };
47
+ }, [isPresent, presenceChildren, onExitComplete]);
48
+ /**
49
+ * If the presence of a child affects the layout of the components around it,
50
+ * we want to make a new context value to ensure they get re-rendered
51
+ * so they can detect that layout change.
52
+ */
53
+ if (presenceAffectsLayout && isReusedContext) {
54
+ context = { ...context };
55
+ }
56
+ useMemo(() => {
57
+ presenceChildren.forEach((_, key) => presenceChildren.set(key, false));
58
+ }, [isPresent]);
59
+ /**
60
+ * If there's no `motion` components to fire exit animations, we want to remove this
61
+ * component immediately.
62
+ */
63
+ React.useEffect(() => {
64
+ !isPresent &&
65
+ !presenceChildren.size &&
66
+ onExitComplete &&
67
+ onExitComplete();
68
+ }, [isPresent]);
69
+ children = (jsx(PopChild, { pop: mode === "popLayout", isPresent: isPresent, anchorX: anchorX, anchorY: anchorY, root: root, children: children }));
70
+ return (jsx(PresenceContext.Provider, { value: context, children: children }));
71
+ };
72
+ function newChildrenMap() {
73
+ return new Map();
74
+ }
75
+
76
+ export { PresenceChild };
77
+ //# sourceMappingURL=PresenceChild.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PresenceChild.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs"],"sourcesContent":["\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useRef, useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { PopChild } from './PopChild.mjs';\n\nconst PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, anchorY, root }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n // Written in a layout effect (not render) so discarded concurrent\n // renders can't leave the refs pointing at uncommitted state.\n const isPresentRef = useRef(isPresent);\n const onExitCompleteRef = useRef(onExitComplete);\n useIsomorphicLayoutEffect(() => {\n isPresentRef.current = isPresent;\n onExitCompleteRef.current = onExitComplete;\n });\n let isReusedContext = true;\n let context = useMemo(() => {\n isReusedContext = false;\n return {\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: (childId) => {\n presenceChildren.set(childId, true);\n for (const isComplete of presenceChildren.values()) {\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n onExitComplete && onExitComplete();\n },\n register: (childId) => {\n presenceChildren.set(childId, false);\n return () => {\n presenceChildren.delete(childId);\n !isPresentRef.current &&\n !presenceChildren.size &&\n onExitCompleteRef.current?.();\n };\n },\n };\n }, [isPresent, presenceChildren, onExitComplete]);\n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n if (presenceAffectsLayout && isReusedContext) {\n context = { ...context };\n }\n useMemo(() => {\n presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n }, [isPresent]);\n /**\n * If there's no `motion` components to fire exit animations, we want to remove this\n * component immediately.\n */\n React.useEffect(() => {\n !isPresent &&\n !presenceChildren.size &&\n onExitComplete &&\n onExitComplete();\n }, [isPresent]);\n children = (jsx(PopChild, { pop: mode === \"popLayout\", isPresent: isPresent, anchorX: anchorX, anchorY: anchorY, root: root, children: children }));\n return (jsx(PresenceContext.Provider, { value: context, children: children }));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n//# sourceMappingURL=PresenceChild.mjs.map\n"],"names":[],"mappings":";;;;;;;;;AASK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;","x_google_ignoreList":[0]}
@@ -0,0 +1,190 @@
1
+ "use client";
2
+ import { jsx, Fragment } from 'react/jsx-runtime';
3
+ import { useMemo, useRef, useState, useContext } from 'react';
4
+ import { LayoutGroupContext } from '../../context/LayoutGroupContext.js';
5
+ import { useConstant } from '../../utils/use-constant.js';
6
+ import { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.js';
7
+ import { PresenceChild } from './PresenceChild.js';
8
+ import { usePresence } from './use-presence.js';
9
+ import { onlyElements, getChildKey } from './utils.js';
10
+
11
+ /**
12
+ * `AnimatePresence` enables the animation of components that have been removed from the tree.
13
+ *
14
+ * When adding/removing more than a single child, every child **must** be given a unique `key` prop.
15
+ *
16
+ * Any `motion` components that have an `exit` property defined will animate out when removed from
17
+ * the tree.
18
+ *
19
+ * ```jsx
20
+ * import { motion, AnimatePresence } from 'framer-motion'
21
+ *
22
+ * export const Items = ({ items }) => (
23
+ * <AnimatePresence>
24
+ * {items.map(item => (
25
+ * <motion.div
26
+ * key={item.id}
27
+ * initial={{ opacity: 0 }}
28
+ * animate={{ opacity: 1 }}
29
+ * exit={{ opacity: 0 }}
30
+ * />
31
+ * ))}
32
+ * </AnimatePresence>
33
+ * )
34
+ * ```
35
+ *
36
+ * You can sequence exit animations throughout a tree using variants.
37
+ *
38
+ * If a child contains multiple `motion` components with `exit` props, it will only unmount the child
39
+ * once all `motion` components have finished animating out. Likewise, any components using
40
+ * `usePresence` all need to call `safeToRemove`.
41
+ *
42
+ * @public
43
+ */
44
+ const AnimatePresence = ({ children, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = "sync", propagate = false, anchorX = "left", anchorY = "top", root }) => {
45
+ const [isParentPresent, safeToRemove] = usePresence(propagate);
46
+ /**
47
+ * Filter any children that aren't ReactElements. We can only track components
48
+ * between renders with a props.key.
49
+ */
50
+ const presentChildren = useMemo(() => onlyElements(children), [children]);
51
+ /**
52
+ * Track the keys of the currently rendered children. This is used to
53
+ * determine which children are exiting.
54
+ */
55
+ const presentKeys = propagate && !isParentPresent ? [] : presentChildren.map(getChildKey);
56
+ /**
57
+ * If `initial={false}` we only want to pass this to components in the first render.
58
+ */
59
+ const isInitialRender = useRef(true);
60
+ /**
61
+ * A ref containing the currently present children. When all exit animations
62
+ * are complete, we use this to re-render the component with the latest children
63
+ * *committed* rather than the latest children *rendered*.
64
+ */
65
+ const pendingPresentChildren = useRef(presentChildren);
66
+ /**
67
+ * Track which exiting children have finished animating out.
68
+ */
69
+ const exitComplete = useConstant(() => new Map());
70
+ /**
71
+ * Track which components are currently processing exit to prevent duplicate processing.
72
+ */
73
+ const exitingComponents = useRef(new Set());
74
+ /**
75
+ * Save children to render as React state. To ensure this component is concurrent-safe,
76
+ * we check for exiting children via an effect.
77
+ */
78
+ const [diffedChildren, setDiffedChildren] = useState(presentChildren);
79
+ const [renderedChildren, setRenderedChildren] = useState(presentChildren);
80
+ useIsomorphicLayoutEffect(() => {
81
+ if (propagate && !isParentPresent && !renderedChildren.length) {
82
+ safeToRemove?.();
83
+ }
84
+ }, [isParentPresent, propagate, renderedChildren.length, safeToRemove]);
85
+ useIsomorphicLayoutEffect(() => {
86
+ isInitialRender.current = false;
87
+ pendingPresentChildren.current = presentChildren;
88
+ /**
89
+ * Update complete status of exiting children.
90
+ */
91
+ for (let i = 0; i < renderedChildren.length; i++) {
92
+ const key = getChildKey(renderedChildren[i]);
93
+ if (!presentKeys.includes(key)) {
94
+ if (exitComplete.get(key) !== true) {
95
+ exitComplete.set(key, false);
96
+ }
97
+ }
98
+ else {
99
+ exitComplete.delete(key);
100
+ exitingComponents.current.delete(key);
101
+ }
102
+ }
103
+ }, [renderedChildren, presentKeys.length, presentKeys.join("-")]);
104
+ const exitingChildren = [];
105
+ if (presentChildren !== diffedChildren) {
106
+ let nextChildren = [...presentChildren];
107
+ /**
108
+ * Loop through all the currently rendered components and decide which
109
+ * are exiting.
110
+ *
111
+ * Exiting children are reinserted directly after the child they
112
+ * previously followed. Splicing at their index within the previously
113
+ * rendered children, as we used to, indexes into the wrong list: it
114
+ * can interleave them with entering children and push present children
115
+ * to new positions, remounting them (#3746).
116
+ */
117
+ let insertionIndex = 0;
118
+ for (const child of renderedChildren) {
119
+ const presentIndex = presentKeys.indexOf(getChildKey(child));
120
+ if (presentIndex === -1) {
121
+ nextChildren.splice(insertionIndex++, 0, child);
122
+ exitingChildren.push(child);
123
+ }
124
+ else {
125
+ insertionIndex = presentIndex + exitingChildren.length + 1;
126
+ }
127
+ }
128
+ /**
129
+ * If we're in "wait" mode, and we have exiting children, we want to
130
+ * only render these until they've all exited.
131
+ */
132
+ if (mode === "wait" && exitingChildren.length) {
133
+ nextChildren = exitingChildren;
134
+ }
135
+ setRenderedChildren(onlyElements(nextChildren));
136
+ setDiffedChildren(presentChildren);
137
+ /**
138
+ * Early return to ensure once we've set state with the latest diffed
139
+ * children, we can immediately re-render.
140
+ */
141
+ return null;
142
+ }
143
+ if (process.env.NODE_ENV !== "production" &&
144
+ mode === "wait" &&
145
+ renderedChildren.length > 1) {
146
+ console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
147
+ }
148
+ /**
149
+ * If we've been provided a forceRender function by the LayoutGroupContext,
150
+ * we can use it to force a re-render amongst all surrounding components once
151
+ * all components have finished animating out.
152
+ */
153
+ const { forceRender } = useContext(LayoutGroupContext);
154
+ return (jsx(Fragment, { children: renderedChildren.map((child) => {
155
+ const key = getChildKey(child);
156
+ const isPresent = propagate && !isParentPresent
157
+ ? false
158
+ : presentChildren === renderedChildren ||
159
+ presentKeys.includes(key);
160
+ const onExit = () => {
161
+ if (exitingComponents.current.has(key)) {
162
+ return;
163
+ }
164
+ if (exitComplete.has(key)) {
165
+ exitingComponents.current.add(key);
166
+ exitComplete.set(key, true);
167
+ }
168
+ else {
169
+ return;
170
+ }
171
+ let isEveryExitComplete = true;
172
+ exitComplete.forEach((isExitComplete) => {
173
+ if (!isExitComplete)
174
+ isEveryExitComplete = false;
175
+ });
176
+ if (isEveryExitComplete) {
177
+ forceRender?.();
178
+ setRenderedChildren(pendingPresentChildren.current);
179
+ propagate && safeToRemove?.();
180
+ onExitComplete && onExitComplete();
181
+ }
182
+ };
183
+ return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial
184
+ ? undefined
185
+ : false, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, root: root, onExitComplete: isPresent ? undefined : onExit, anchorX: anchorX, anchorY: anchorY, children: child }, key));
186
+ }) }));
187
+ };
188
+
189
+ export { AnimatePresence };
190
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs"],"sourcesContent":["\"use client\";\nimport { jsx, Fragment } from 'react/jsx-runtime';\nimport { useMemo, useRef, useState, useContext } from 'react';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { usePresence } from './use-presence.mjs';\nimport { onlyElements, getChildKey } from './utils.mjs';\n\n/**\n * `AnimatePresence` enables the animation of components that have been removed from the tree.\n *\n * When adding/removing more than a single child, every child **must** be given a unique `key` prop.\n *\n * Any `motion` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { motion, AnimatePresence } from 'framer-motion'\n *\n * export const Items = ({ items }) => (\n * <AnimatePresence>\n * {items.map(item => (\n * <motion.div\n * key={item.id}\n * initial={{ opacity: 0 }}\n * animate={{ opacity: 1 }}\n * exit={{ opacity: 0 }}\n * />\n * ))}\n * </AnimatePresence>\n * )\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * If a child contains multiple `motion` components with `exit` props, it will only unmount the child\n * once all `motion` components have finished animating out. Likewise, any components using\n * `usePresence` all need to call `safeToRemove`.\n *\n * @public\n */\nconst AnimatePresence = ({ children, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", propagate = false, anchorX = \"left\", anchorY = \"top\", root }) => {\n const [isParentPresent, safeToRemove] = usePresence(propagate);\n /**\n * Filter any children that aren't ReactElements. We can only track components\n * between renders with a props.key.\n */\n const presentChildren = useMemo(() => onlyElements(children), [children]);\n /**\n * Track the keys of the currently rendered children. This is used to\n * determine which children are exiting.\n */\n const presentKeys = propagate && !isParentPresent ? [] : presentChildren.map(getChildKey);\n /**\n * If `initial={false}` we only want to pass this to components in the first render.\n */\n const isInitialRender = useRef(true);\n /**\n * A ref containing the currently present children. When all exit animations\n * are complete, we use this to re-render the component with the latest children\n * *committed* rather than the latest children *rendered*.\n */\n const pendingPresentChildren = useRef(presentChildren);\n /**\n * Track which exiting children have finished animating out.\n */\n const exitComplete = useConstant(() => new Map());\n /**\n * Track which components are currently processing exit to prevent duplicate processing.\n */\n const exitingComponents = useRef(new Set());\n /**\n * Save children to render as React state. To ensure this component is concurrent-safe,\n * we check for exiting children via an effect.\n */\n const [diffedChildren, setDiffedChildren] = useState(presentChildren);\n const [renderedChildren, setRenderedChildren] = useState(presentChildren);\n useIsomorphicLayoutEffect(() => {\n if (propagate && !isParentPresent && !renderedChildren.length) {\n safeToRemove?.();\n }\n }, [isParentPresent, propagate, renderedChildren.length, safeToRemove]);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n pendingPresentChildren.current = presentChildren;\n /**\n * Update complete status of exiting children.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const key = getChildKey(renderedChildren[i]);\n if (!presentKeys.includes(key)) {\n if (exitComplete.get(key) !== true) {\n exitComplete.set(key, false);\n }\n }\n else {\n exitComplete.delete(key);\n exitingComponents.current.delete(key);\n }\n }\n }, [renderedChildren, presentKeys.length, presentKeys.join(\"-\")]);\n const exitingChildren = [];\n if (presentChildren !== diffedChildren) {\n let nextChildren = [...presentChildren];\n /**\n * Loop through all the currently rendered components and decide which\n * are exiting.\n *\n * Exiting children are reinserted directly after the child they\n * previously followed. Splicing at their index within the previously\n * rendered children, as we used to, indexes into the wrong list: it\n * can interleave them with entering children and push present children\n * to new positions, remounting them (#3746).\n */\n let insertionIndex = 0;\n for (const child of renderedChildren) {\n const presentIndex = presentKeys.indexOf(getChildKey(child));\n if (presentIndex === -1) {\n nextChildren.splice(insertionIndex++, 0, child);\n exitingChildren.push(child);\n }\n else {\n insertionIndex = presentIndex + exitingChildren.length + 1;\n }\n }\n /**\n * If we're in \"wait\" mode, and we have exiting children, we want to\n * only render these until they've all exited.\n */\n if (mode === \"wait\" && exitingChildren.length) {\n nextChildren = exitingChildren;\n }\n setRenderedChildren(onlyElements(nextChildren));\n setDiffedChildren(presentChildren);\n /**\n * Early return to ensure once we've set state with the latest diffed\n * children, we can immediately re-render.\n */\n return null;\n }\n if (process.env.NODE_ENV !== \"production\" &&\n mode === \"wait\" &&\n renderedChildren.length > 1) {\n console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n }\n /**\n * If we've been provided a forceRender function by the LayoutGroupContext,\n * we can use it to force a re-render amongst all surrounding components once\n * all components have finished animating out.\n */\n const { forceRender } = useContext(LayoutGroupContext);\n return (jsx(Fragment, { children: renderedChildren.map((child) => {\n const key = getChildKey(child);\n const isPresent = propagate && !isParentPresent\n ? false\n : presentChildren === renderedChildren ||\n presentKeys.includes(key);\n const onExit = () => {\n if (exitingComponents.current.has(key)) {\n return;\n }\n if (exitComplete.has(key)) {\n exitingComponents.current.add(key);\n exitComplete.set(key, true);\n }\n else {\n return;\n }\n let isEveryExitComplete = true;\n exitComplete.forEach((isExitComplete) => {\n if (!isExitComplete)\n isEveryExitComplete = false;\n });\n if (isEveryExitComplete) {\n forceRender?.();\n setRenderedChildren(pendingPresentChildren.current);\n propagate && safeToRemove?.();\n onExitComplete && onExitComplete();\n }\n };\n return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial\n ? undefined\n : false, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, root: root, onExitComplete: isPresent ? undefined : onExit, anchorX: anchorX, anchorY: anchorY, children: child }, key));\n }) }));\n};\n\nexport { AnimatePresence };\n//# sourceMappingURL=index.mjs.map\n"],"names":[],"mappings":";;;;;;;;;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;","x_google_ignoreList":[0]}