@blimu/react 0.7.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (452) hide show
  1. package/dist/_virtual/index.cjs +5 -1
  2. package/dist/_virtual/index.cjs.map +1 -1
  3. package/dist/_virtual/index.js +3 -3
  4. package/dist/_virtual/index2.cjs +4 -1
  5. package/dist/_virtual/index2.cjs.map +1 -1
  6. package/dist/_virtual/index2.js +2 -2
  7. package/dist/_virtual/use-sync-external-store-shim.development.cjs +4 -1
  8. package/dist/_virtual/use-sync-external-store-shim.development.cjs.map +1 -1
  9. package/dist/_virtual/use-sync-external-store-shim.development.js +2 -2
  10. package/dist/_virtual/use-sync-external-store-shim.production.cjs +4 -1
  11. package/dist/_virtual/use-sync-external-store-shim.production.cjs.map +1 -1
  12. package/dist/_virtual/use-sync-external-store-shim.production.js +2 -2
  13. package/dist/client/auth.service.cjs +249 -1
  14. package/dist/client/auth.service.cjs.map +1 -1
  15. package/dist/client/auth.service.d.ts.map +1 -1
  16. package/dist/client/auth.service.js +195 -95
  17. package/dist/client/auth.service.js.map +1 -1
  18. package/dist/client/external-store.cjs +26 -1
  19. package/dist/client/external-store.cjs.map +1 -1
  20. package/dist/client/external-store.js +22 -8
  21. package/dist/client/external-store.js.map +1 -1
  22. package/dist/client/runtime-client.cjs +136 -1
  23. package/dist/client/runtime-client.cjs.map +1 -1
  24. package/dist/client/runtime-client.js +86 -52
  25. package/dist/client/runtime-client.js.map +1 -1
  26. package/dist/components/index.cjs +13 -0
  27. package/dist/components/index.cjs.map +1 -0
  28. package/dist/components/index.js +13 -0
  29. package/dist/components/index.js.map +1 -0
  30. package/dist/components/members-list.cjs +132 -1
  31. package/dist/components/members-list.cjs.map +1 -1
  32. package/dist/components/members-list.js +69 -64
  33. package/dist/components/members-list.js.map +1 -1
  34. package/dist/components/redirect-to-sign-in.cjs +34 -1
  35. package/dist/components/redirect-to-sign-in.cjs.map +1 -1
  36. package/dist/components/redirect-to-sign-in.js +28 -20
  37. package/dist/components/redirect-to-sign-in.js.map +1 -1
  38. package/dist/components/sign-in-button.cjs +36 -1
  39. package/dist/components/sign-in-button.cjs.map +1 -1
  40. package/dist/components/sign-in-button.js +25 -21
  41. package/dist/components/sign-in-button.js.map +1 -1
  42. package/dist/components/ui/avatar.cjs +42 -1
  43. package/dist/components/ui/avatar.cjs.map +1 -1
  44. package/dist/components/ui/avatar.js +23 -23
  45. package/dist/components/ui/avatar.js.map +1 -1
  46. package/dist/components/ui/dropdown-menu.cjs +148 -1
  47. package/dist/components/ui/dropdown-menu.cjs.map +1 -1
  48. package/dist/components/ui/dropdown-menu.js +83 -81
  49. package/dist/components/ui/dropdown-menu.js.map +1 -1
  50. package/dist/components/user-avatar.cjs +22 -1
  51. package/dist/components/user-avatar.cjs.map +1 -1
  52. package/dist/components/user-avatar.js +16 -16
  53. package/dist/components/user-avatar.js.map +1 -1
  54. package/dist/components/user-button/styles.cjs +39 -1
  55. package/dist/components/user-button/styles.cjs.map +1 -1
  56. package/dist/components/user-button/styles.js +6 -5
  57. package/dist/components/user-button/styles.js.map +1 -1
  58. package/dist/components/user-button/user-button.cjs +98 -1
  59. package/dist/components/user-button/user-button.cjs.map +1 -1
  60. package/dist/components/user-button/user-button.js +64 -58
  61. package/dist/components/user-button/user-button.js.map +1 -1
  62. package/dist/hooks/index.cjs +14 -0
  63. package/dist/hooks/index.cjs.map +1 -0
  64. package/dist/hooks/index.d.ts +1 -0
  65. package/dist/hooks/index.d.ts.map +1 -1
  66. package/dist/hooks/index.js +14 -0
  67. package/dist/hooks/index.js.map +1 -0
  68. package/dist/hooks/use-auth.cjs +44 -1
  69. package/dist/hooks/use-auth.cjs.map +1 -1
  70. package/dist/hooks/use-auth.d.ts +13 -15
  71. package/dist/hooks/use-auth.d.ts.map +1 -1
  72. package/dist/hooks/use-auth.js +30 -26
  73. package/dist/hooks/use-auth.js.map +1 -1
  74. package/dist/hooks/use-client.cjs +9 -1
  75. package/dist/hooks/use-client.cjs.map +1 -1
  76. package/dist/hooks/use-client.d.ts +1 -1
  77. package/dist/hooks/use-client.d.ts.map +1 -1
  78. package/dist/hooks/use-client.js +6 -5
  79. package/dist/hooks/use-client.js.map +1 -1
  80. package/dist/hooks/use-members.cjs +60 -1
  81. package/dist/hooks/use-members.cjs.map +1 -1
  82. package/dist/hooks/use-members.js +53 -41
  83. package/dist/hooks/use-members.js.map +1 -1
  84. package/dist/hooks/use-store.cjs +17 -1
  85. package/dist/hooks/use-store.cjs.map +1 -1
  86. package/dist/hooks/use-store.js +7 -7
  87. package/dist/hooks/use-store.js.map +1 -1
  88. package/dist/index.cjs +37 -1
  89. package/dist/index.cjs.map +1 -1
  90. package/dist/index.d.ts +1 -1
  91. package/dist/index.d.ts.map +1 -1
  92. package/dist/index.js +35 -35
  93. package/dist/lib/utils.cjs +8 -1
  94. package/dist/lib/utils.cjs.map +1 -1
  95. package/dist/lib/utils.js +5 -5
  96. package/dist/lib/utils.js.map +1 -1
  97. package/dist/lib/variants.cjs +46 -1
  98. package/dist/lib/variants.cjs.map +1 -1
  99. package/dist/lib/variants.js +6 -5
  100. package/dist/lib/variants.js.map +1 -1
  101. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +721 -1
  102. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.map +1 -1
  103. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +571 -377
  104. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -1
  105. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +625 -1
  106. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.map +1 -1
  107. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +539 -316
  108. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -1
  109. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +313 -1
  110. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs.map +1 -1
  111. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +261 -172
  112. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -1
  113. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +154 -1
  114. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.map +1 -1
  115. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +173 -1
  116. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.map +1 -1
  117. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +144 -107
  118. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -1
  119. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +111 -87
  120. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -1
  121. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +11 -1
  122. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -1
  123. package/dist/node_modules/@radix-ui/primitive/dist/index.js +7 -5
  124. package/dist/node_modules/@radix-ui/primitive/dist/index.js.map +1 -1
  125. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +42 -1
  126. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -1
  127. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +17 -16
  128. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -1
  129. package/dist/node_modules/@radix-ui/react-avatar/dist/index.cjs +140 -1
  130. package/dist/node_modules/@radix-ui/react-avatar/dist/index.cjs.map +1 -1
  131. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +105 -57
  132. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js.map +1 -1
  133. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.cjs +80 -1
  134. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  135. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.js +49 -41
  136. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.js.map +1 -1
  137. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.cjs +56 -1
  138. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  139. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js +17 -10
  140. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
  141. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.cjs +119 -1
  142. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  143. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.js +86 -42
  144. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
  145. package/dist/node_modules/@radix-ui/react-collection/dist/index.cjs +70 -1
  146. package/dist/node_modules/@radix-ui/react-collection/dist/index.cjs.map +1 -1
  147. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +57 -37
  148. package/dist/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -1
  149. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +56 -1
  150. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -1
  151. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -19
  152. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -1
  153. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +79 -1
  154. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  155. package/dist/node_modules/@radix-ui/react-context/dist/index.js +48 -39
  156. package/dist/node_modules/@radix-ui/react-context/dist/index.js.map +1 -1
  157. package/dist/node_modules/@radix-ui/react-direction/dist/index.cjs +27 -1
  158. package/dist/node_modules/@radix-ui/react-direction/dist/index.cjs.map +1 -1
  159. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +6 -6
  160. package/dist/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -1
  161. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +229 -1
  162. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
  163. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +182 -97
  164. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -1
  165. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +296 -1
  166. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs.map +1 -1
  167. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +232 -167
  168. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -1
  169. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +46 -1
  170. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.map +1 -1
  171. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +23 -11
  172. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -1
  173. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +224 -1
  174. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  175. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +169 -98
  176. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -1
  177. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +31 -1
  178. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -1
  179. package/dist/node_modules/@radix-ui/react-id/dist/index.js +11 -10
  180. package/dist/node_modules/@radix-ui/react-id/dist/index.js.map +1 -1
  181. package/dist/node_modules/@radix-ui/react-menu/dist/index.cjs +845 -1
  182. package/dist/node_modules/@radix-ui/react-menu/dist/index.cjs.map +1 -1
  183. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +662 -442
  184. package/dist/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -1
  185. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +308 -1
  186. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -1
  187. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +209 -137
  188. package/dist/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -1
  189. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +34 -1
  190. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
  191. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +14 -12
  192. package/dist/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -1
  193. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +145 -1
  194. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -1
  195. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +103 -45
  196. package/dist/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -1
  197. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +61 -1
  198. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  199. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +21 -14
  200. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
  201. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +244 -1
  202. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.cjs.map +1 -1
  203. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +179 -135
  204. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -1
  205. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +105 -1
  206. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  207. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +74 -35
  208. package/dist/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
  209. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +28 -1
  210. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -1
  211. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +8 -7
  212. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -1
  213. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +86 -1
  214. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -1
  215. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +57 -40
  216. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -1
  217. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +34 -1
  218. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.map +1 -1
  219. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +13 -10
  220. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -1
  221. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs +15 -1
  222. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs.map +1 -1
  223. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +8 -8
  224. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js.map +1 -1
  225. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +23 -1
  226. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -1
  227. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +3 -3
  228. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -1
  229. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +56 -1
  230. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs.map +1 -1
  231. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +34 -22
  232. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -1
  233. package/dist/node_modules/aria-hidden/dist/es2015/index.cjs +122 -1
  234. package/dist/node_modules/aria-hidden/dist/es2015/index.cjs.map +1 -1
  235. package/dist/node_modules/aria-hidden/dist/es2015/index.js +111 -41
  236. package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -1
  237. package/dist/node_modules/class-variance-authority/dist/index.cjs +45 -1
  238. package/dist/node_modules/class-variance-authority/dist/index.cjs.map +1 -1
  239. package/dist/node_modules/class-variance-authority/dist/index.js +40 -30
  240. package/dist/node_modules/class-variance-authority/dist/index.js.map +1 -1
  241. package/dist/node_modules/clsx/dist/clsx.cjs +17 -1
  242. package/dist/node_modules/clsx/dist/clsx.cjs.map +1 -1
  243. package/dist/node_modules/clsx/dist/clsx.js +13 -13
  244. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  245. package/dist/node_modules/get-nonce/dist/es2015/index.cjs +9 -1
  246. package/dist/node_modules/get-nonce/dist/es2015/index.cjs.map +1 -1
  247. package/dist/node_modules/get-nonce/dist/es2015/index.js +5 -3
  248. package/dist/node_modules/get-nonce/dist/es2015/index.js.map +1 -1
  249. package/dist/node_modules/js-cookie/dist/js.cookie.cjs +98 -1
  250. package/dist/node_modules/js-cookie/dist/js.cookie.cjs.map +1 -1
  251. package/dist/node_modules/js-cookie/dist/js.cookie.js +69 -43
  252. package/dist/node_modules/js-cookie/dist/js.cookie.js.map +1 -1
  253. package/dist/node_modules/jwt-decode/build/esm/index.cjs +58 -1
  254. package/dist/node_modules/jwt-decode/build/esm/index.cjs.map +1 -1
  255. package/dist/node_modules/jwt-decode/build/esm/index.js +36 -30
  256. package/dist/node_modules/jwt-decode/build/esm/index.js.map +1 -1
  257. package/dist/node_modules/lucide-react/dist/esm/Icon.cjs +34 -1
  258. package/dist/node_modules/lucide-react/dist/esm/Icon.cjs.map +1 -1
  259. package/dist/node_modules/lucide-react/dist/esm/Icon.js +25 -25
  260. package/dist/node_modules/lucide-react/dist/esm/Icon.js.map +1 -1
  261. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs +21 -1
  262. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs.map +1 -1
  263. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +16 -15
  264. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js.map +1 -1
  265. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs +13 -1
  266. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs.map +1 -1
  267. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +2 -2
  268. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js.map +1 -1
  269. package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs +7 -1
  270. package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs.map +1 -1
  271. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +5 -4
  272. package/dist/node_modules/lucide-react/dist/esm/icons/check.js.map +1 -1
  273. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.cjs +7 -1
  274. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.cjs.map +1 -1
  275. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +5 -4
  276. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js.map +1 -1
  277. package/dist/node_modules/lucide-react/dist/esm/icons/circle.cjs +7 -1
  278. package/dist/node_modules/lucide-react/dist/esm/icons/circle.cjs.map +1 -1
  279. package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +5 -4
  280. package/dist/node_modules/lucide-react/dist/esm/icons/circle.js.map +1 -1
  281. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.cjs +11 -1
  282. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.cjs.map +1 -1
  283. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.js +6 -5
  284. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.js.map +1 -1
  285. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs +26 -1
  286. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs.map +1 -1
  287. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +22 -14
  288. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js.map +1 -1
  289. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +27 -1
  290. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.map +1 -1
  291. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +8 -8
  292. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -1
  293. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +197 -4
  294. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.map +1 -1
  295. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +163 -98
  296. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -1
  297. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs +55 -1
  298. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs.map +1 -1
  299. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -24
  300. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -1
  301. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +19 -1
  302. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.map +1 -1
  303. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +12 -9
  304. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -1
  305. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +102 -1
  306. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.map +1 -1
  307. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +85 -51
  308. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -1
  309. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs +5 -1
  310. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs.map +1 -1
  311. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +3 -3
  312. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -1
  313. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +6 -1
  314. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.map +1 -1
  315. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +5 -5
  316. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -1
  317. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +62 -36
  318. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.map +1 -1
  319. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +41 -65
  320. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -1
  321. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +10 -1
  322. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.map +1 -1
  323. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +8 -5
  324. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -1
  325. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +37 -1
  326. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.map +1 -1
  327. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +28 -16
  328. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -1
  329. package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs +13 -1
  330. package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs.map +1 -1
  331. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +9 -7
  332. package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -1
  333. package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs +33 -1
  334. package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs.map +1 -1
  335. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +11 -10
  336. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -1
  337. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs +48 -1
  338. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs.map +1 -1
  339. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +35 -17
  340. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -1
  341. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +3014 -1
  342. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.map +1 -1
  343. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +804 -555
  344. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  345. package/dist/node_modules/tailwindcss/dist/plugin.cjs +12 -1
  346. package/dist/node_modules/tailwindcss/dist/plugin.cjs.map +1 -1
  347. package/dist/node_modules/tailwindcss/dist/plugin.js +8 -8
  348. package/dist/node_modules/tailwindcss/dist/plugin.js.map +1 -1
  349. package/dist/node_modules/tslib/tslib.es6.cjs +38 -1
  350. package/dist/node_modules/tslib/tslib.es6.cjs.map +1 -1
  351. package/dist/node_modules/tslib/tslib.es6.js +33 -21
  352. package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
  353. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +11 -1
  354. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.map +1 -1
  355. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +8 -3
  356. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -1
  357. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +52 -1
  358. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.map +1 -1
  359. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +28 -19
  360. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -1
  361. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs +29 -1
  362. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs.map +1 -1
  363. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +15 -11
  364. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -1
  365. package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs +38 -1
  366. package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs.map +1 -1
  367. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +15 -12
  368. package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -1
  369. package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs +88 -1
  370. package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs.map +1 -1
  371. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +64 -43
  372. package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -1
  373. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +68 -1
  374. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.map +1 -1
  375. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +49 -39
  376. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -1
  377. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +53 -1
  378. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.map +1 -1
  379. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +39 -32
  380. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -1
  381. package/dist/node_modules/use-sync-external-store/shim/index.cjs +17 -1
  382. package/dist/node_modules/use-sync-external-store/shim/index.cjs.map +1 -1
  383. package/dist/node_modules/use-sync-external-store/shim/index.js +14 -7
  384. package/dist/node_modules/use-sync-external-store/shim/index.js.map +1 -1
  385. package/dist/providers/auth/auth.context.cjs +5 -1
  386. package/dist/providers/auth/auth.context.cjs.map +1 -1
  387. package/dist/providers/auth/auth.context.js +3 -3
  388. package/dist/providers/auth/auth.context.js.map +1 -1
  389. package/dist/providers/auth/auth.hook.cjs +12 -1
  390. package/dist/providers/auth/auth.hook.cjs.map +1 -1
  391. package/dist/providers/auth/auth.hook.js +8 -7
  392. package/dist/providers/auth/auth.hook.js.map +1 -1
  393. package/dist/providers/auth/auth.provider.cjs +37 -1
  394. package/dist/providers/auth/auth.provider.cjs.map +1 -1
  395. package/dist/providers/auth/auth.provider.js +31 -22
  396. package/dist/providers/auth/auth.provider.js.map +1 -1
  397. package/dist/providers/blimu/blimu.context.cjs +5 -1
  398. package/dist/providers/blimu/blimu.context.cjs.map +1 -1
  399. package/dist/providers/blimu/blimu.context.js +3 -3
  400. package/dist/providers/blimu/blimu.context.js.map +1 -1
  401. package/dist/providers/blimu/blimu.hook.cjs +12 -1
  402. package/dist/providers/blimu/blimu.hook.cjs.map +1 -1
  403. package/dist/providers/blimu/blimu.hook.js +8 -7
  404. package/dist/providers/blimu/blimu.hook.js.map +1 -1
  405. package/dist/providers/blimu/blimu.provider.cjs +71 -1
  406. package/dist/providers/blimu/blimu.provider.cjs.map +1 -1
  407. package/dist/providers/blimu/blimu.provider.js +32 -27
  408. package/dist/providers/blimu/blimu.provider.js.map +1 -1
  409. package/dist/providers/index.cjs +13 -0
  410. package/dist/providers/index.cjs.map +1 -0
  411. package/dist/providers/index.js +13 -0
  412. package/dist/providers/index.js.map +1 -0
  413. package/dist/providers/theme/theme.context.cjs +5 -1
  414. package/dist/providers/theme/theme.context.cjs.map +1 -1
  415. package/dist/providers/theme/theme.context.js +3 -3
  416. package/dist/providers/theme/theme.context.js.map +1 -1
  417. package/dist/providers/theme/theme.hook.cjs +12 -1
  418. package/dist/providers/theme/theme.hook.cjs.map +1 -1
  419. package/dist/providers/theme/theme.hook.js +8 -7
  420. package/dist/providers/theme/theme.hook.js.map +1 -1
  421. package/dist/providers/theme/theme.provider.cjs +104 -1
  422. package/dist/providers/theme/theme.provider.cjs.map +1 -1
  423. package/dist/providers/theme/theme.provider.js +85 -48
  424. package/dist/providers/theme/theme.provider.js.map +1 -1
  425. package/dist/tailwind.cjs +200 -0
  426. package/dist/tailwind.cjs.map +1 -0
  427. package/dist/{tailwind.plugin.js → tailwind.js} +6 -6
  428. package/dist/tailwind.js.map +1 -0
  429. package/dist/types/index.cjs +11 -1
  430. package/dist/types/index.cjs.map +1 -1
  431. package/dist/types/index.js +8 -8
  432. package/dist/types/index.js.map +1 -1
  433. package/dist/utils/publishable-key.cjs +62 -1
  434. package/dist/utils/publishable-key.cjs.map +1 -1
  435. package/dist/utils/publishable-key.js +52 -27
  436. package/dist/utils/publishable-key.js.map +1 -1
  437. package/package.json +41 -42
  438. package/dist/components.cjs +0 -2
  439. package/dist/components.cjs.map +0 -1
  440. package/dist/components.js +0 -13
  441. package/dist/components.js.map +0 -1
  442. package/dist/hooks.cjs +0 -2
  443. package/dist/hooks.cjs.map +0 -1
  444. package/dist/hooks.js +0 -14
  445. package/dist/hooks.js.map +0 -1
  446. package/dist/providers.cjs +0 -2
  447. package/dist/providers.cjs.map +0 -1
  448. package/dist/providers.js +0 -13
  449. package/dist/providers.js.map +0 -1
  450. package/dist/tailwind.plugin.cjs +0 -2
  451. package/dist/tailwind.plugin.cjs.map +0 -1
  452. package/dist/tailwind.plugin.js.map +0 -1
@@ -1,209 +1,298 @@
1
- import { computePosition as I, offset as J, shift as K, flip as N, size as Q, hide as T, limitShift as X, arrow as z } from "../../dom/dist/floating-ui.dom.js";
2
- import { autoUpdate as pe, platform as ge } from "../../dom/dist/floating-ui.dom.js";
3
- import * as o from "react";
4
- import { useLayoutEffect as Y } from "react";
5
- import * as Z from "react-dom";
6
- var b = typeof document < "u", ee = function() {
7
- }, w = b ? Y : ee;
8
- function R(e, t) {
9
- if (e === t)
10
- return !0;
11
- if (typeof e != typeof t)
12
- return !1;
13
- if (typeof e == "function" && e.toString() === t.toString())
14
- return !0;
15
- let n, r, i;
16
- if (e && t && typeof e == "object") {
17
- if (Array.isArray(e)) {
18
- if (n = e.length, n !== t.length) return !1;
19
- for (r = n; r-- !== 0; )
20
- if (!R(e[r], t[r]))
21
- return !1;
22
- return !0;
1
+ import { computePosition, offset as offset$1, shift as shift$1, flip as flip$1, size as size$1, hide as hide$1, limitShift as limitShift$1, arrow as arrow$2 } from "../../dom/dist/floating-ui.dom.js";
2
+ import { autoUpdate, platform } from "../../dom/dist/floating-ui.dom.js";
3
+ import * as React from "react";
4
+ import { useLayoutEffect } from "react";
5
+ import * as ReactDOM from "react-dom";
6
+ var isClient = typeof document !== "undefined";
7
+ var noop = function noop2() {
8
+ };
9
+ var index = isClient ? useLayoutEffect : noop;
10
+ function deepEqual(a, b) {
11
+ if (a === b) {
12
+ return true;
13
+ }
14
+ if (typeof a !== typeof b) {
15
+ return false;
16
+ }
17
+ if (typeof a === "function" && a.toString() === b.toString()) {
18
+ return true;
19
+ }
20
+ let length;
21
+ let i;
22
+ let keys;
23
+ if (a && b && typeof a === "object") {
24
+ if (Array.isArray(a)) {
25
+ length = a.length;
26
+ if (length !== b.length) return false;
27
+ for (i = length; i-- !== 0; ) {
28
+ if (!deepEqual(a[i], b[i])) {
29
+ return false;
30
+ }
31
+ }
32
+ return true;
23
33
  }
24
- if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length)
25
- return !1;
26
- for (r = n; r-- !== 0; )
27
- if (!{}.hasOwnProperty.call(t, i[r]))
28
- return !1;
29
- for (r = n; r-- !== 0; ) {
30
- const p = i[r];
31
- if (!(p === "_owner" && e.$$typeof) && !R(e[p], t[p]))
32
- return !1;
34
+ keys = Object.keys(a);
35
+ length = keys.length;
36
+ if (length !== Object.keys(b).length) {
37
+ return false;
38
+ }
39
+ for (i = length; i-- !== 0; ) {
40
+ if (!{}.hasOwnProperty.call(b, keys[i])) {
41
+ return false;
42
+ }
43
+ }
44
+ for (i = length; i-- !== 0; ) {
45
+ const key = keys[i];
46
+ if (key === "_owner" && a.$$typeof) {
47
+ continue;
48
+ }
49
+ if (!deepEqual(a[key], b[key])) {
50
+ return false;
51
+ }
33
52
  }
34
- return !0;
53
+ return true;
35
54
  }
36
- return e !== e && t !== t;
55
+ return a !== a && b !== b;
37
56
  }
38
- function A(e) {
39
- return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
57
+ function getDPR(element) {
58
+ if (typeof window === "undefined") {
59
+ return 1;
60
+ }
61
+ const win = element.ownerDocument.defaultView || window;
62
+ return win.devicePixelRatio || 1;
40
63
  }
41
- function L(e, t) {
42
- const n = A(e);
43
- return Math.round(t * n) / n;
64
+ function roundByDPR(element, value) {
65
+ const dpr = getDPR(element);
66
+ return Math.round(value * dpr) / dpr;
44
67
  }
45
- function k(e) {
46
- const t = o.useRef(e);
47
- return w(() => {
48
- t.current = e;
49
- }), t;
68
+ function useLatestRef(value) {
69
+ const ref = React.useRef(value);
70
+ index(() => {
71
+ ref.current = value;
72
+ });
73
+ return ref;
50
74
  }
51
- function oe(e) {
52
- e === void 0 && (e = {});
75
+ function useFloating(options) {
76
+ if (options === void 0) {
77
+ options = {};
78
+ }
53
79
  const {
54
- placement: t = "bottom",
55
- strategy: n = "absolute",
56
- middleware: r = [],
57
- platform: i,
80
+ placement = "bottom",
81
+ strategy = "absolute",
82
+ middleware = [],
83
+ platform: platform2,
58
84
  elements: {
59
- reference: p,
60
- floating: q
85
+ reference: externalReference,
86
+ floating: externalFloating
61
87
  } = {},
62
- transform: D = !0,
63
- whileElementsMounted: E,
64
- open: x
65
- } = e, [s, C] = o.useState({
88
+ transform = true,
89
+ whileElementsMounted,
90
+ open
91
+ } = options;
92
+ const [data, setData] = React.useState({
66
93
  x: 0,
67
94
  y: 0,
68
- strategy: n,
69
- placement: t,
95
+ strategy,
96
+ placement,
70
97
  middlewareData: {},
71
- isPositioned: !1
72
- }), [M, B] = o.useState(r);
73
- R(M, r) || B(r);
74
- const [U, V] = o.useState(null), [W, G] = o.useState(null), O = o.useCallback((f) => {
75
- f !== a.current && (a.current = f, V(f));
76
- }, []), _ = o.useCallback((f) => {
77
- f !== d.current && (d.current = f, G(f));
78
- }, []), u = p || U, l = q || W, a = o.useRef(null), d = o.useRef(null), y = o.useRef(s), H = E != null, S = k(E), P = k(i), v = k(x), g = o.useCallback(() => {
79
- if (!a.current || !d.current)
98
+ isPositioned: false
99
+ });
100
+ const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);
101
+ if (!deepEqual(latestMiddleware, middleware)) {
102
+ setLatestMiddleware(middleware);
103
+ }
104
+ const [_reference, _setReference] = React.useState(null);
105
+ const [_floating, _setFloating] = React.useState(null);
106
+ const setReference = React.useCallback((node) => {
107
+ if (node !== referenceRef.current) {
108
+ referenceRef.current = node;
109
+ _setReference(node);
110
+ }
111
+ }, []);
112
+ const setFloating = React.useCallback((node) => {
113
+ if (node !== floatingRef.current) {
114
+ floatingRef.current = node;
115
+ _setFloating(node);
116
+ }
117
+ }, []);
118
+ const referenceEl = externalReference || _reference;
119
+ const floatingEl = externalFloating || _floating;
120
+ const referenceRef = React.useRef(null);
121
+ const floatingRef = React.useRef(null);
122
+ const dataRef = React.useRef(data);
123
+ const hasWhileElementsMounted = whileElementsMounted != null;
124
+ const whileElementsMountedRef = useLatestRef(whileElementsMounted);
125
+ const platformRef = useLatestRef(platform2);
126
+ const openRef = useLatestRef(open);
127
+ const update = React.useCallback(() => {
128
+ if (!referenceRef.current || !floatingRef.current) {
80
129
  return;
81
- const f = {
82
- placement: t,
83
- strategy: n,
84
- middleware: M
130
+ }
131
+ const config = {
132
+ placement,
133
+ strategy,
134
+ middleware: latestMiddleware
85
135
  };
86
- P.current && (f.platform = P.current), I(a.current, d.current, f).then((h) => {
87
- const m = {
88
- ...h,
136
+ if (platformRef.current) {
137
+ config.platform = platformRef.current;
138
+ }
139
+ computePosition(referenceRef.current, floatingRef.current, config).then((data2) => {
140
+ const fullData = {
141
+ ...data2,
89
142
  // The floating element's position may be recomputed while it's closed
90
143
  // but still mounted (such as when transitioning out). To ensure
91
144
  // `isPositioned` will be `false` initially on the next open, avoid
92
145
  // setting it to `true` when `open === false` (must be specified).
93
- isPositioned: v.current !== !1
146
+ isPositioned: openRef.current !== false
94
147
  };
95
- $.current && !R(y.current, m) && (y.current = m, Z.flushSync(() => {
96
- C(m);
97
- }));
148
+ if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
149
+ dataRef.current = fullData;
150
+ ReactDOM.flushSync(() => {
151
+ setData(fullData);
152
+ });
153
+ }
98
154
  });
99
- }, [M, t, n, P, v]);
100
- w(() => {
101
- x === !1 && y.current.isPositioned && (y.current.isPositioned = !1, C((f) => ({
102
- ...f,
103
- isPositioned: !1
104
- })));
105
- }, [x]);
106
- const $ = o.useRef(!1);
107
- w(() => ($.current = !0, () => {
108
- $.current = !1;
109
- }), []), w(() => {
110
- if (u && (a.current = u), l && (d.current = l), u && l) {
111
- if (S.current)
112
- return S.current(u, l, g);
113
- g();
155
+ }, [latestMiddleware, placement, strategy, platformRef, openRef]);
156
+ index(() => {
157
+ if (open === false && dataRef.current.isPositioned) {
158
+ dataRef.current.isPositioned = false;
159
+ setData((data2) => ({
160
+ ...data2,
161
+ isPositioned: false
162
+ }));
163
+ }
164
+ }, [open]);
165
+ const isMountedRef = React.useRef(false);
166
+ index(() => {
167
+ isMountedRef.current = true;
168
+ return () => {
169
+ isMountedRef.current = false;
170
+ };
171
+ }, []);
172
+ index(() => {
173
+ if (referenceEl) referenceRef.current = referenceEl;
174
+ if (floatingEl) floatingRef.current = floatingEl;
175
+ if (referenceEl && floatingEl) {
176
+ if (whileElementsMountedRef.current) {
177
+ return whileElementsMountedRef.current(referenceEl, floatingEl, update);
178
+ }
179
+ update();
114
180
  }
115
- }, [u, l, g, S, H]);
116
- const F = o.useMemo(() => ({
117
- reference: a,
118
- floating: d,
119
- setReference: O,
120
- setFloating: _
121
- }), [O, _]), c = o.useMemo(() => ({
122
- reference: u,
123
- floating: l
124
- }), [u, l]), j = o.useMemo(() => {
125
- const f = {
126
- position: n,
181
+ }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
182
+ const refs = React.useMemo(() => ({
183
+ reference: referenceRef,
184
+ floating: floatingRef,
185
+ setReference,
186
+ setFloating
187
+ }), [setReference, setFloating]);
188
+ const elements = React.useMemo(() => ({
189
+ reference: referenceEl,
190
+ floating: floatingEl
191
+ }), [referenceEl, floatingEl]);
192
+ const floatingStyles = React.useMemo(() => {
193
+ const initialStyles = {
194
+ position: strategy,
127
195
  left: 0,
128
196
  top: 0
129
197
  };
130
- if (!c.floating)
131
- return f;
132
- const h = L(c.floating, s.x), m = L(c.floating, s.y);
133
- return D ? {
134
- ...f,
135
- transform: "translate(" + h + "px, " + m + "px)",
136
- ...A(c.floating) >= 1.5 && {
137
- willChange: "transform"
138
- }
139
- } : {
140
- position: n,
141
- left: h,
142
- top: m
198
+ if (!elements.floating) {
199
+ return initialStyles;
200
+ }
201
+ const x = roundByDPR(elements.floating, data.x);
202
+ const y = roundByDPR(elements.floating, data.y);
203
+ if (transform) {
204
+ return {
205
+ ...initialStyles,
206
+ transform: "translate(" + x + "px, " + y + "px)",
207
+ ...getDPR(elements.floating) >= 1.5 && {
208
+ willChange: "transform"
209
+ }
210
+ };
211
+ }
212
+ return {
213
+ position: strategy,
214
+ left: x,
215
+ top: y
143
216
  };
144
- }, [n, D, c.floating, s.x, s.y]);
145
- return o.useMemo(() => ({
146
- ...s,
147
- update: g,
148
- refs: F,
149
- elements: c,
150
- floatingStyles: j
151
- }), [s, g, F, c, j]);
217
+ }, [strategy, transform, elements.floating, data.x, data.y]);
218
+ return React.useMemo(() => ({
219
+ ...data,
220
+ update,
221
+ refs,
222
+ elements,
223
+ floatingStyles
224
+ }), [data, update, refs, elements, floatingStyles]);
152
225
  }
153
- const te = (e) => {
154
- function t(n) {
155
- return {}.hasOwnProperty.call(n, "current");
226
+ const arrow$1 = (options) => {
227
+ function isRef(value) {
228
+ return {}.hasOwnProperty.call(value, "current");
156
229
  }
157
230
  return {
158
231
  name: "arrow",
159
- options: e,
160
- fn(n) {
232
+ options,
233
+ fn(state) {
161
234
  const {
162
- element: r,
163
- padding: i
164
- } = typeof e == "function" ? e(n) : e;
165
- return r && t(r) ? r.current != null ? z({
166
- element: r.current,
167
- padding: i
168
- }).fn(n) : {} : r ? z({
169
- element: r,
170
- padding: i
171
- }).fn(n) : {};
235
+ element,
236
+ padding
237
+ } = typeof options === "function" ? options(state) : options;
238
+ if (element && isRef(element)) {
239
+ if (element.current != null) {
240
+ return arrow$2({
241
+ element: element.current,
242
+ padding
243
+ }).fn(state);
244
+ }
245
+ return {};
246
+ }
247
+ if (element) {
248
+ return arrow$2({
249
+ element,
250
+ padding
251
+ }).fn(state);
252
+ }
253
+ return {};
172
254
  }
173
255
  };
174
- }, fe = (e, t) => ({
175
- ...J(e),
176
- options: [e, t]
177
- }), ie = (e, t) => ({
178
- ...K(e),
179
- options: [e, t]
180
- }), se = (e, t) => ({
181
- ...X(e),
182
- options: [e, t]
183
- }), ue = (e, t) => ({
184
- ...N(e),
185
- options: [e, t]
186
- }), le = (e, t) => ({
187
- ...Q(e),
188
- options: [e, t]
189
- }), ce = (e, t) => ({
190
- ...T(e),
191
- options: [e, t]
192
- }), ae = (e, t) => ({
193
- ...te(e),
194
- options: [e, t]
256
+ };
257
+ const offset = (options, deps) => ({
258
+ ...offset$1(options),
259
+ options: [options, deps]
260
+ });
261
+ const shift = (options, deps) => ({
262
+ ...shift$1(options),
263
+ options: [options, deps]
264
+ });
265
+ const limitShift = (options, deps) => ({
266
+ ...limitShift$1(options),
267
+ options: [options, deps]
268
+ });
269
+ const flip = (options, deps) => ({
270
+ ...flip$1(options),
271
+ options: [options, deps]
272
+ });
273
+ const size = (options, deps) => ({
274
+ ...size$1(options),
275
+ options: [options, deps]
276
+ });
277
+ const hide = (options, deps) => ({
278
+ ...hide$1(options),
279
+ options: [options, deps]
280
+ });
281
+ const arrow = (options, deps) => ({
282
+ ...arrow$1(options),
283
+ options: [options, deps]
195
284
  });
196
285
  export {
197
- ae as arrow,
198
- pe as autoUpdate,
199
- I as computePosition,
200
- ue as flip,
201
- ce as hide,
202
- se as limitShift,
203
- fe as offset,
204
- ge as platform,
205
- ie as shift,
206
- le as size,
207
- oe as useFloating
286
+ arrow,
287
+ autoUpdate,
288
+ computePosition,
289
+ flip,
290
+ hide,
291
+ limitShift,
292
+ offset,
293
+ platform,
294
+ shift,
295
+ size,
296
+ useFloating
208
297
  };
209
298
  //# sourceMappingURL=floating-ui.react-dom.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"floating-ui.react-dom.js","sources":["../../../../../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"],"sourcesContent":["import { computePosition, arrow as arrow$2, autoPlacement as autoPlacement$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar isClient = typeof document !== 'undefined';\n\nvar noop = function noop() {};\nvar index = isClient ? useLayoutEffect : noop;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const openRef = useLatestRef(open);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n // The floating element's position may be recomputed while it's closed\n // but still mounted (such as when transitioning out). To ensure\n // `isPositioned` will be `false` initially on the next open, avoid\n // setting it to `true` when `open === false` (must be specified).\n isPositioned: openRef.current !== false\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$2({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$2({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => ({\n ...offset$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => ({\n ...shift$1(options),\n options: [options, deps]\n});\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => ({\n ...limitShift$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => ({\n ...flip$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => ({\n ...size$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => ({\n ...autoPlacement$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => ({\n ...hide$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => ({\n ...inline$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => ({\n ...arrow$1(options),\n options: [options, deps]\n});\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n"],"names":["isClient","noop","index","useLayoutEffect","deepEqual","a","b","length","i","keys","key","getDPR","element","roundByDPR","value","dpr","useLatestRef","ref","React","useFloating","options","placement","strategy","middleware","platform","externalReference","externalFloating","transform","whileElementsMounted","open","data","setData","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","node","referenceRef","setFloating","floatingRef","referenceEl","floatingEl","dataRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","openRef","update","config","computePosition","fullData","isMountedRef","ReactDOM","refs","elements","floatingStyles","initialStyles","x","y","arrow$1","isRef","state","padding","arrow$2","offset","deps","offset$1","shift","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GAASgD,CAAI;AACzB,IAQMQ,KAAO,CAACxD,GAASgD,OAAU;AAAA,EAC/B,GAAGS,EAAOzD,CAAO;AAAA,EACjB,SAAS,CAACA,GAASgD,CAAI;AACzB,IAkBMU,KAAO,CAAC1D,GAASgD,OAAU;AAAA,EAC/B,GAAGW,EAAO3D,CAAO;AAAA,EACjB,SAAS,CAACA,GAASgD,CAAI;AACzB,IAkBMY,KAAQ,CAAC5D,GAASgD,OAAU;AAAA,EAChC,GAAGN,GAAQ1C,CAAO;AAAA,EAClB,SAAS,CAACA,GAASgD,CAAI;AACzB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"floating-ui.react-dom.js","sources":["../../../../../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"],"sourcesContent":["import { computePosition, arrow as arrow$2, autoPlacement as autoPlacement$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar isClient = typeof document !== 'undefined';\n\nvar noop = function noop() {};\nvar index = isClient ? useLayoutEffect : noop;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const openRef = useLatestRef(open);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n // The floating element's position may be recomputed while it's closed\n // but still mounted (such as when transitioning out). To ensure\n // `isPositioned` will be `false` initially on the next open, avoid\n // setting it to `true` when `open === false` (must be specified).\n isPositioned: openRef.current !== false\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$2({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$2({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => ({\n ...offset$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => ({\n ...shift$1(options),\n options: [options, deps]\n});\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => ({\n ...limitShift$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => ({\n ...flip$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => ({\n ...size$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => ({\n ...autoPlacement$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => ({\n ...hide$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => ({\n ...inline$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => ({\n ...arrow$1(options),\n options: [options, deps]\n});\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n"],"names":["noop","platform","data"],"mappings":";;;;;AAMA,IAAI,WAAW,OAAO,aAAa;AAEnC,IAAI,OAAO,SAASA,QAAO;AAAC;AAC5B,IAAI,QAAQ,WAAW,kBAAkB;AAIzC,SAAS,UAAU,GAAG,GAAG;AACvB,MAAI,MAAM,GAAG;AACX,WAAO;AAAA,EACT;AACA,MAAI,OAAO,MAAM,OAAO,GAAG;AACzB,WAAO;AAAA,EACT;AACA,MAAI,OAAO,MAAM,cAAc,EAAE,eAAe,EAAE,YAAY;AAC5D,WAAO;AAAA,EACT;AACA,MAAI;AACJ,MAAI;AACJ,MAAI;AACJ,MAAI,KAAK,KAAK,OAAO,MAAM,UAAU;AACnC,QAAI,MAAM,QAAQ,CAAC,GAAG;AACpB,eAAS,EAAE;AACX,UAAI,WAAW,EAAE,OAAQ,QAAO;AAChC,WAAK,IAAI,QAAQ,QAAQ,KAAI;AAC3B,YAAI,CAAC,UAAU,EAAE,CAAC,GAAG,EAAE,CAA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