@blimu/react 0.6.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 (516) hide show
  1. package/README.md +552 -0
  2. package/dist/_virtual/index.cjs +2 -0
  3. package/dist/_virtual/index.cjs.map +1 -0
  4. package/dist/_virtual/index.js +6 -0
  5. package/dist/_virtual/index.js.map +1 -0
  6. package/dist/_virtual/index2.cjs +2 -0
  7. package/dist/_virtual/index2.cjs.map +1 -0
  8. package/dist/_virtual/index2.js +5 -0
  9. package/dist/_virtual/index2.js.map +1 -0
  10. package/dist/_virtual/use-sync-external-store-shim.development.cjs +2 -0
  11. package/dist/_virtual/use-sync-external-store-shim.development.cjs.map +1 -0
  12. package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
  13. package/dist/_virtual/use-sync-external-store-shim.development.js.map +1 -0
  14. package/dist/_virtual/use-sync-external-store-shim.production.cjs +2 -0
  15. package/dist/_virtual/use-sync-external-store-shim.production.cjs.map +1 -0
  16. package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
  17. package/dist/_virtual/use-sync-external-store-shim.production.js.map +1 -0
  18. package/dist/client/auth.service.cjs +2 -0
  19. package/dist/client/auth.service.cjs.map +1 -0
  20. package/dist/client/auth.service.d.ts +50 -0
  21. package/dist/client/auth.service.d.ts.map +1 -0
  22. package/dist/client/auth.service.js +153 -0
  23. package/dist/client/auth.service.js.map +1 -0
  24. package/dist/client/auth.service.test-service.d.ts +39 -0
  25. package/dist/client/auth.service.test-service.d.ts.map +1 -0
  26. package/dist/client/external-store.cjs +2 -0
  27. package/dist/client/external-store.cjs.map +1 -0
  28. package/dist/client/external-store.d.ts +20 -0
  29. package/dist/client/external-store.d.ts.map +1 -0
  30. package/dist/client/external-store.js +13 -0
  31. package/dist/client/external-store.js.map +1 -0
  32. package/dist/client/runtime-client.cjs +2 -0
  33. package/dist/client/runtime-client.cjs.map +1 -0
  34. package/dist/client/runtime-client.d.ts +49 -0
  35. package/dist/client/runtime-client.d.ts.map +1 -0
  36. package/dist/client/runtime-client.js +103 -0
  37. package/dist/client/runtime-client.js.map +1 -0
  38. package/dist/components/index.d.ts +11 -0
  39. package/dist/components/index.d.ts.map +1 -0
  40. package/dist/components/members-list.cjs +2 -0
  41. package/dist/components/members-list.cjs.map +1 -0
  42. package/dist/components/members-list.d.ts +70 -0
  43. package/dist/components/members-list.d.ts.map +1 -0
  44. package/dist/components/members-list.js +111 -0
  45. package/dist/components/members-list.js.map +1 -0
  46. package/dist/components/redirect-to-sign-in.cjs +2 -0
  47. package/dist/components/redirect-to-sign-in.cjs.map +1 -0
  48. package/dist/components/redirect-to-sign-in.d.ts +39 -0
  49. package/dist/components/redirect-to-sign-in.d.ts.map +1 -0
  50. package/dist/components/redirect-to-sign-in.js +27 -0
  51. package/dist/components/redirect-to-sign-in.js.map +1 -0
  52. package/dist/components/sign-in-button/styles.d.ts +7 -0
  53. package/dist/components/sign-in-button/styles.d.ts.map +1 -0
  54. package/dist/components/sign-in-button.cjs +2 -0
  55. package/dist/components/sign-in-button.cjs.map +1 -0
  56. package/dist/components/sign-in-button.d.ts +47 -0
  57. package/dist/components/sign-in-button.d.ts.map +1 -0
  58. package/dist/components/sign-in-button.js +33 -0
  59. package/dist/components/sign-in-button.js.map +1 -0
  60. package/dist/components/ui/avatar.cjs +2 -0
  61. package/dist/components/ui/avatar.cjs.map +1 -0
  62. package/dist/components/ui/avatar.d.ts +7 -0
  63. package/dist/components/ui/avatar.d.ts.map +1 -0
  64. package/dist/components/ui/avatar.js +43 -0
  65. package/dist/components/ui/avatar.js.map +1 -0
  66. package/dist/components/ui/badge.d.ts +10 -0
  67. package/dist/components/ui/badge.d.ts.map +1 -0
  68. package/dist/components/ui/dropdown-menu.cjs +2 -0
  69. package/dist/components/ui/dropdown-menu.cjs.map +1 -0
  70. package/dist/components/ui/dropdown-menu.d.ts +28 -0
  71. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  72. package/dist/components/ui/dropdown-menu.js +130 -0
  73. package/dist/components/ui/dropdown-menu.js.map +1 -0
  74. package/dist/components/ui/popover.d.ts +8 -0
  75. package/dist/components/ui/popover.d.ts.map +1 -0
  76. package/dist/components/ui/separator.d.ts +5 -0
  77. package/dist/components/ui/separator.d.ts.map +1 -0
  78. package/dist/components/user-avatar/styles.d.ts +7 -0
  79. package/dist/components/user-avatar/styles.d.ts.map +1 -0
  80. package/dist/components/user-avatar.cjs +2 -0
  81. package/dist/components/user-avatar.cjs.map +1 -0
  82. package/dist/components/user-avatar.d.ts +41 -0
  83. package/dist/components/user-avatar.d.ts.map +1 -0
  84. package/dist/components/user-avatar.js +23 -0
  85. package/dist/components/user-avatar.js.map +1 -0
  86. package/dist/components/user-button/styles.cjs +2 -0
  87. package/dist/components/user-button/styles.cjs.map +1 -0
  88. package/dist/components/user-button/styles.d.ts +17 -0
  89. package/dist/components/user-button/styles.d.ts.map +1 -0
  90. package/dist/components/user-button/styles.js +39 -0
  91. package/dist/components/user-button/styles.js.map +1 -0
  92. package/dist/components/user-button/user-button.cjs +2 -0
  93. package/dist/components/user-button/user-button.cjs.map +1 -0
  94. package/dist/components/user-button/user-button.d.ts +15 -0
  95. package/dist/components/user-button/user-button.d.ts.map +1 -0
  96. package/dist/components/user-button/user-button.js +93 -0
  97. package/dist/components/user-button/user-button.js.map +1 -0
  98. package/dist/components.cjs +2 -0
  99. package/dist/components.cjs.map +1 -0
  100. package/dist/components.js +13 -0
  101. package/dist/components.js.map +1 -0
  102. package/dist/hooks/index.d.ts +7 -0
  103. package/dist/hooks/index.d.ts.map +1 -0
  104. package/dist/hooks/use-auth.cjs +2 -0
  105. package/dist/hooks/use-auth.cjs.map +1 -0
  106. package/dist/hooks/use-auth.d.ts +92 -0
  107. package/dist/hooks/use-auth.d.ts.map +1 -0
  108. package/dist/hooks/use-auth.js +41 -0
  109. package/dist/hooks/use-auth.js.map +1 -0
  110. package/dist/hooks/use-client.cjs +2 -0
  111. package/dist/hooks/use-client.cjs.map +1 -0
  112. package/dist/hooks/use-client.d.ts +27 -0
  113. package/dist/hooks/use-client.d.ts.map +1 -0
  114. package/dist/hooks/use-client.js +9 -0
  115. package/dist/hooks/use-client.js.map +1 -0
  116. package/dist/hooks/use-members.cjs +2 -0
  117. package/dist/hooks/use-members.cjs.map +1 -0
  118. package/dist/hooks/use-members.d.ts +50 -0
  119. package/dist/hooks/use-members.d.ts.map +1 -0
  120. package/dist/hooks/use-members.js +49 -0
  121. package/dist/hooks/use-members.js.map +1 -0
  122. package/dist/hooks/use-store.cjs +2 -0
  123. package/dist/hooks/use-store.cjs.map +1 -0
  124. package/dist/hooks/use-store.d.ts +24 -0
  125. package/dist/hooks/use-store.d.ts.map +1 -0
  126. package/dist/hooks/use-store.js +18 -0
  127. package/dist/hooks/use-store.js.map +1 -0
  128. package/dist/hooks.cjs +2 -0
  129. package/dist/hooks.cjs.map +1 -0
  130. package/dist/hooks.js +14 -0
  131. package/dist/hooks.js.map +1 -0
  132. package/dist/index.cjs +2 -0
  133. package/dist/index.cjs.map +1 -0
  134. package/dist/index.d.ts +13 -0
  135. package/dist/index.d.ts.map +1 -0
  136. package/dist/index.js +38 -0
  137. package/dist/index.js.map +1 -0
  138. package/dist/lib/utils.cjs +2 -0
  139. package/dist/lib/utils.cjs.map +1 -0
  140. package/dist/lib/utils.d.ts +7 -0
  141. package/dist/lib/utils.d.ts.map +1 -0
  142. package/dist/lib/utils.js +9 -0
  143. package/dist/lib/utils.js.map +1 -0
  144. package/dist/lib/variants.cjs +2 -0
  145. package/dist/lib/variants.cjs.map +1 -0
  146. package/dist/lib/variants.d.ts +37 -0
  147. package/dist/lib/variants.d.ts.map +1 -0
  148. package/dist/lib/variants.js +46 -0
  149. package/dist/lib/variants.js.map +1 -0
  150. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +2 -0
  151. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.map +1 -0
  152. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +528 -0
  153. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
  154. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +2 -0
  155. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.map +1 -0
  156. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +403 -0
  157. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
  158. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +2 -0
  159. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs.map +1 -0
  160. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +209 -0
  161. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
  162. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +2 -0
  163. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.map +1 -0
  164. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +2 -0
  165. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.map +1 -0
  166. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +137 -0
  167. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
  168. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +131 -0
  169. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
  170. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +2 -0
  171. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -0
  172. package/dist/node_modules/@radix-ui/primitive/dist/index.js +10 -0
  173. package/dist/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
  174. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +2 -0
  175. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -0
  176. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
  177. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
  178. package/dist/node_modules/@radix-ui/react-avatar/dist/index.cjs +2 -0
  179. package/dist/node_modules/@radix-ui/react-avatar/dist/index.cjs.map +1 -0
  180. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +76 -0
  181. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js.map +1 -0
  182. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.cjs +2 -0
  183. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -0
  184. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.js +56 -0
  185. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
  186. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  187. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  188. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js +33 -0
  189. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
  190. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  191. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
  192. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.js +59 -0
  193. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
  194. package/dist/node_modules/@radix-ui/react-collection/dist/index.cjs +2 -0
  195. package/dist/node_modules/@radix-ui/react-collection/dist/index.cjs.map +1 -0
  196. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +51 -0
  197. package/dist/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
  198. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +2 -0
  199. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -0
  200. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +30 -0
  201. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
  202. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +2 -0
  203. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -0
  204. package/dist/node_modules/@radix-ui/react-context/dist/index.js +54 -0
  205. package/dist/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
  206. package/dist/node_modules/@radix-ui/react-direction/dist/index.cjs +2 -0
  207. package/dist/node_modules/@radix-ui/react-direction/dist/index.cjs.map +1 -0
  208. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
  209. package/dist/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
  210. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +2 -0
  211. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -0
  212. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +128 -0
  213. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
  214. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +2 -0
  215. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs.map +1 -0
  216. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +215 -0
  217. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
  218. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +2 -0
  219. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.map +1 -0
  220. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +18 -0
  221. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
  222. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +2 -0
  223. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -0
  224. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +137 -0
  225. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
  226. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +2 -0
  227. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -0
  228. package/dist/node_modules/@radix-ui/react-id/dist/index.js +14 -0
  229. package/dist/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
  230. package/dist/node_modules/@radix-ui/react-menu/dist/index.cjs +2 -0
  231. package/dist/node_modules/@radix-ui/react-menu/dist/index.cjs.map +1 -0
  232. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +609 -0
  233. package/dist/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
  234. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +2 -0
  235. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -0
  236. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +220 -0
  237. package/dist/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
  238. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +2 -0
  239. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -0
  240. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +16 -0
  241. package/dist/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
  242. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +2 -0
  243. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -0
  244. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +71 -0
  245. package/dist/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
  246. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  247. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  248. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +37 -0
  249. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
  250. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +2 -0
  251. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.cjs.map +1 -0
  252. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +184 -0
  253. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
  254. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  255. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
  256. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
  257. package/dist/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
  258. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +2 -0
  259. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -0
  260. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +11 -0
  261. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
  262. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +2 -0
  263. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -0
  264. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +53 -0
  265. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
  266. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +2 -0
  267. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.map +1 -0
  268. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +15 -0
  269. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
  270. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs +2 -0
  271. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs.map +1 -0
  272. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +16 -0
  273. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js.map +1 -0
  274. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +2 -0
  275. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -0
  276. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
  277. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
  278. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +2 -0
  279. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs.map +1 -0
  280. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +28 -0
  281. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
  282. package/dist/node_modules/aria-hidden/dist/es2015/index.cjs +2 -0
  283. package/dist/node_modules/aria-hidden/dist/es2015/index.cjs.map +1 -0
  284. package/dist/node_modules/aria-hidden/dist/es2015/index.js +53 -0
  285. package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
  286. package/dist/node_modules/class-variance-authority/dist/index.cjs +2 -0
  287. package/dist/node_modules/class-variance-authority/dist/index.cjs.map +1 -0
  288. package/dist/node_modules/class-variance-authority/dist/index.js +36 -0
  289. package/dist/node_modules/class-variance-authority/dist/index.js.map +1 -0
  290. package/dist/node_modules/clsx/dist/clsx.cjs +2 -0
  291. package/dist/node_modules/clsx/dist/clsx.cjs.map +1 -0
  292. package/dist/node_modules/clsx/dist/clsx.js +18 -0
  293. package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
  294. package/dist/node_modules/get-nonce/dist/es2015/index.cjs +2 -0
  295. package/dist/node_modules/get-nonce/dist/es2015/index.cjs.map +1 -0
  296. package/dist/node_modules/get-nonce/dist/es2015/index.js +8 -0
  297. package/dist/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
  298. package/dist/node_modules/js-cookie/dist/js.cookie.cjs +2 -0
  299. package/dist/node_modules/js-cookie/dist/js.cookie.cjs.map +1 -0
  300. package/dist/node_modules/js-cookie/dist/js.cookie.js +74 -0
  301. package/dist/node_modules/js-cookie/dist/js.cookie.js.map +1 -0
  302. package/dist/node_modules/jwt-decode/build/esm/index.cjs +2 -0
  303. package/dist/node_modules/jwt-decode/build/esm/index.cjs.map +1 -0
  304. package/dist/node_modules/jwt-decode/build/esm/index.js +53 -0
  305. package/dist/node_modules/jwt-decode/build/esm/index.js.map +1 -0
  306. package/dist/node_modules/lucide-react/dist/esm/Icon.cjs +2 -0
  307. package/dist/node_modules/lucide-react/dist/esm/Icon.cjs.map +1 -0
  308. package/dist/node_modules/lucide-react/dist/esm/Icon.js +36 -0
  309. package/dist/node_modules/lucide-react/dist/esm/Icon.js.map +1 -0
  310. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs +2 -0
  311. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs.map +1 -0
  312. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +22 -0
  313. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js.map +1 -0
  314. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs +2 -0
  315. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs.map +1 -0
  316. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +15 -0
  317. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js.map +1 -0
  318. package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs +2 -0
  319. package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs.map +1 -0
  320. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +7 -0
  321. package/dist/node_modules/lucide-react/dist/esm/icons/check.js.map +1 -0
  322. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.cjs +2 -0
  323. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.cjs.map +1 -0
  324. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +7 -0
  325. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js.map +1 -0
  326. package/dist/node_modules/lucide-react/dist/esm/icons/circle.cjs +2 -0
  327. package/dist/node_modules/lucide-react/dist/esm/icons/circle.cjs.map +1 -0
  328. package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +7 -0
  329. package/dist/node_modules/lucide-react/dist/esm/icons/circle.js.map +1 -0
  330. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.cjs +2 -0
  331. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.cjs.map +1 -0
  332. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.js +11 -0
  333. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.js.map +1 -0
  334. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs +2 -0
  335. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs.map +1 -0
  336. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +19 -0
  337. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js.map +1 -0
  338. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +2 -0
  339. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.map +1 -0
  340. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +12 -0
  341. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
  342. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +5 -0
  343. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.map +1 -0
  344. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +116 -0
  345. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
  346. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs +2 -0
  347. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs.map +1 -0
  348. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +32 -0
  349. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
  350. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +2 -0
  351. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.map +1 -0
  352. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +17 -0
  353. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
  354. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +2 -0
  355. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.map +1 -0
  356. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +69 -0
  357. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
  358. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs +2 -0
  359. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs.map +1 -0
  360. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
  361. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
  362. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +2 -0
  363. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.map +1 -0
  364. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
  365. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
  366. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +39 -0
  367. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.map +1 -0
  368. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +72 -0
  369. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
  370. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +2 -0
  371. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.map +1 -0
  372. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +8 -0
  373. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
  374. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +2 -0
  375. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.map +1 -0
  376. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +26 -0
  377. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
  378. package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs +2 -0
  379. package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs.map +1 -0
  380. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +12 -0
  381. package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
  382. package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs +2 -0
  383. package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs.map +1 -0
  384. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +16 -0
  385. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
  386. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs +2 -0
  387. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs.map +1 -0
  388. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +31 -0
  389. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
  390. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +2 -0
  391. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.map +1 -0
  392. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2766 -0
  393. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
  394. package/dist/node_modules/tailwindcss/dist/plugin.cjs +2 -0
  395. package/dist/node_modules/tailwindcss/dist/plugin.cjs.map +1 -0
  396. package/dist/node_modules/tailwindcss/dist/plugin.js +14 -0
  397. package/dist/node_modules/tailwindcss/dist/plugin.js.map +1 -0
  398. package/dist/node_modules/tslib/tslib.es6.cjs +2 -0
  399. package/dist/node_modules/tslib/tslib.es6.cjs.map +1 -0
  400. package/dist/node_modules/tslib/tslib.es6.js +28 -0
  401. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  402. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +2 -0
  403. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.map +1 -0
  404. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +7 -0
  405. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
  406. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +2 -0
  407. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.map +1 -0
  408. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +27 -0
  409. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
  410. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs +2 -0
  411. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs.map +1 -0
  412. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +26 -0
  413. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
  414. package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs +2 -0
  415. package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs.map +1 -0
  416. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +19 -0
  417. package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
  418. package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs +2 -0
  419. package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs.map +1 -0
  420. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +68 -0
  421. package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
  422. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +2 -0
  423. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.map +1 -0
  424. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +59 -0
  425. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -0
  426. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +2 -0
  427. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.map +1 -0
  428. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +47 -0
  429. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -0
  430. package/dist/node_modules/use-sync-external-store/shim/index.cjs +2 -0
  431. package/dist/node_modules/use-sync-external-store/shim/index.cjs.map +1 -0
  432. package/dist/node_modules/use-sync-external-store/shim/index.js +11 -0
  433. package/dist/node_modules/use-sync-external-store/shim/index.js.map +1 -0
  434. package/dist/providers/auth/auth.context.cjs +2 -0
  435. package/dist/providers/auth/auth.context.cjs.map +1 -0
  436. package/dist/providers/auth/auth.context.d.ts +3 -0
  437. package/dist/providers/auth/auth.context.d.ts.map +1 -0
  438. package/dist/providers/auth/auth.context.js +6 -0
  439. package/dist/providers/auth/auth.context.js.map +1 -0
  440. package/dist/providers/auth/auth.hook.cjs +2 -0
  441. package/dist/providers/auth/auth.hook.cjs.map +1 -0
  442. package/dist/providers/auth/auth.hook.d.ts +7 -0
  443. package/dist/providers/auth/auth.hook.d.ts.map +1 -0
  444. package/dist/providers/auth/auth.hook.js +12 -0
  445. package/dist/providers/auth/auth.hook.js.map +1 -0
  446. package/dist/providers/auth/auth.provider.cjs +2 -0
  447. package/dist/providers/auth/auth.provider.cjs.map +1 -0
  448. package/dist/providers/auth/auth.provider.d.ts +7 -0
  449. package/dist/providers/auth/auth.provider.d.ts.map +1 -0
  450. package/dist/providers/auth/auth.provider.js +29 -0
  451. package/dist/providers/auth/auth.provider.js.map +1 -0
  452. package/dist/providers/blimu/blimu.context.cjs +2 -0
  453. package/dist/providers/blimu/blimu.context.cjs.map +1 -0
  454. package/dist/providers/blimu/blimu.context.d.ts +27 -0
  455. package/dist/providers/blimu/blimu.context.d.ts.map +1 -0
  456. package/dist/providers/blimu/blimu.context.js +6 -0
  457. package/dist/providers/blimu/blimu.context.js.map +1 -0
  458. package/dist/providers/blimu/blimu.hook.cjs +2 -0
  459. package/dist/providers/blimu/blimu.hook.cjs.map +1 -0
  460. package/dist/providers/blimu/blimu.hook.d.ts +19 -0
  461. package/dist/providers/blimu/blimu.hook.d.ts.map +1 -0
  462. package/dist/providers/blimu/blimu.hook.js +12 -0
  463. package/dist/providers/blimu/blimu.hook.js.map +1 -0
  464. package/dist/providers/blimu/blimu.provider.cjs +2 -0
  465. package/dist/providers/blimu/blimu.provider.cjs.map +1 -0
  466. package/dist/providers/blimu/blimu.provider.d.ts +47 -0
  467. package/dist/providers/blimu/blimu.provider.d.ts.map +1 -0
  468. package/dist/providers/blimu/blimu.provider.js +67 -0
  469. package/dist/providers/blimu/blimu.provider.js.map +1 -0
  470. package/dist/providers/index.d.ts +7 -0
  471. package/dist/providers/index.d.ts.map +1 -0
  472. package/dist/providers/theme/index.d.ts +4 -0
  473. package/dist/providers/theme/index.d.ts.map +1 -0
  474. package/dist/providers/theme/theme.context.cjs +2 -0
  475. package/dist/providers/theme/theme.context.cjs.map +1 -0
  476. package/dist/providers/theme/theme.context.d.ts +8 -0
  477. package/dist/providers/theme/theme.context.d.ts.map +1 -0
  478. package/dist/providers/theme/theme.context.js +6 -0
  479. package/dist/providers/theme/theme.context.js.map +1 -0
  480. package/dist/providers/theme/theme.hook.cjs +2 -0
  481. package/dist/providers/theme/theme.hook.cjs.map +1 -0
  482. package/dist/providers/theme/theme.hook.d.ts +18 -0
  483. package/dist/providers/theme/theme.hook.d.ts.map +1 -0
  484. package/dist/providers/theme/theme.hook.js +12 -0
  485. package/dist/providers/theme/theme.hook.js.map +1 -0
  486. package/dist/providers/theme/theme.provider.cjs +2 -0
  487. package/dist/providers/theme/theme.provider.cjs.map +1 -0
  488. package/dist/providers/theme/theme.provider.d.ts +28 -0
  489. package/dist/providers/theme/theme.provider.d.ts.map +1 -0
  490. package/dist/providers/theme/theme.provider.js +68 -0
  491. package/dist/providers/theme/theme.provider.js.map +1 -0
  492. package/dist/providers.cjs +2 -0
  493. package/dist/providers.cjs.map +1 -0
  494. package/dist/providers.js +13 -0
  495. package/dist/providers.js.map +1 -0
  496. package/dist/styles/styles.css +1351 -0
  497. package/dist/styles/tw-styles.css +120 -0
  498. package/dist/tailwind.plugin.cjs +2 -0
  499. package/dist/tailwind.plugin.cjs.map +1 -0
  500. package/dist/tailwind.plugin.d.ts +19 -0
  501. package/dist/tailwind.plugin.d.ts.map +1 -0
  502. package/dist/tailwind.plugin.js +200 -0
  503. package/dist/tailwind.plugin.js.map +1 -0
  504. package/dist/types/index.cjs +2 -0
  505. package/dist/types/index.cjs.map +1 -0
  506. package/dist/types/index.d.ts +128 -0
  507. package/dist/types/index.d.ts.map +1 -0
  508. package/dist/types/index.js +12 -0
  509. package/dist/types/index.js.map +1 -0
  510. package/dist/utils/publishable-key.cjs +2 -0
  511. package/dist/utils/publishable-key.cjs.map +1 -0
  512. package/dist/utils/publishable-key.d.ts +38 -0
  513. package/dist/utils/publishable-key.d.ts.map +1 -0
  514. package/dist/utils/publishable-key.js +38 -0
  515. package/dist/utils/publishable-key.js.map +1 -0
  516. package/package.json +128 -0
@@ -0,0 +1,70 @@
1
+ import * as React from 'react';
2
+ import { type ResourceMember } from '../hooks/use-members';
3
+ export interface MembersListProps {
4
+ /**
5
+ * Resource type (e.g., 'organization', 'workspace')
6
+ */
7
+ resourceType: string;
8
+ /**
9
+ * Resource ID
10
+ */
11
+ resourceId: string;
12
+ /**
13
+ * Initial page number
14
+ * @default 1
15
+ */
16
+ initialPage?: number;
17
+ /**
18
+ * Items per page
19
+ * @default 20
20
+ */
21
+ pageSize?: number;
22
+ /**
23
+ * Search query
24
+ */
25
+ search?: string;
26
+ /**
27
+ * Custom render function for each member
28
+ */
29
+ renderMember?: (member: ResourceMember) => React.ReactNode;
30
+ /**
31
+ * Custom className
32
+ */
33
+ className?: string;
34
+ /**
35
+ * Show pagination controls
36
+ * @default true
37
+ */
38
+ showPagination?: boolean;
39
+ }
40
+ /**
41
+ * Paginated list of organization/resource members
42
+ *
43
+ * @example
44
+ * ```tsx
45
+ * <MembersList
46
+ * resourceType="organization"
47
+ * resourceId="org_123"
48
+ * />
49
+ * ```
50
+ *
51
+ * @example With custom rendering
52
+ * ```tsx
53
+ * <MembersList
54
+ * resourceType="workspace"
55
+ * resourceId="ws_456"
56
+ * renderMember={(member) => (
57
+ * <div className="flex items-center gap-2">
58
+ * <UserAvatar src={member.user.avatarUrl} alt={member.user.email} />
59
+ * <div>
60
+ * <p>{member.user.firstName} {member.user.lastName}</p>
61
+ * <p className="text-sm text-muted-foreground">{member.user.email}</p>
62
+ * </div>
63
+ * <Badge>{member.role}</Badge>
64
+ * </div>
65
+ * )}
66
+ * />
67
+ * ```
68
+ */
69
+ export declare function MembersList({ resourceType, resourceId, initialPage, pageSize, search, renderMember, className, showPagination, }: MembersListProps): React.JSX.Element;
70
+ //# sourceMappingURL=members-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"members-list.d.ts","sourceRoot":"","sources":["../../src/components/members-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEvE,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,KAAK,CAAC,SAAS,CAAC;IAE3D;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,WAAW,CAAC,EAC1B,YAAY,EACZ,UAAU,EACV,WAAe,EACf,QAAa,EACb,MAAM,EACN,YAAY,EACZ,SAAS,EACT,cAAqB,GACtB,EAAE,gBAAgB,qBAiHlB"}
@@ -0,0 +1,111 @@
1
+ import { jsxs as r, jsx as t } from "react/jsx-runtime";
2
+ import * as M from "react";
3
+ import { UserAvatar as w } from "./user-avatar.js";
4
+ import { cn as a } from "../lib/utils.js";
5
+ import { useMembers as j } from "../hooks/use-members.js";
6
+ function $({
7
+ resourceType: f,
8
+ resourceId: h,
9
+ initialPage: p = 1,
10
+ pageSize: i = 20,
11
+ search: g,
12
+ renderMember: c,
13
+ className: s,
14
+ showPagination: N = !0
15
+ }) {
16
+ const [l, u] = M.useState(p), { members: d, total: n, isLoading: o, error: x, hasNextPage: v, hasPreviousPage: y, refetch: P } = j({
17
+ resourceType: f,
18
+ resourceId: h,
19
+ page: l,
20
+ limit: i,
21
+ search: g
22
+ }), k = (e) => {
23
+ const b = e.user.firstName && e.user.lastName ? `${e.user.firstName} ${e.user.lastName}` : e.user.firstName || e.user.email?.split("@")[0] || "User";
24
+ return /* @__PURE__ */ r("div", { className: "flex items-center justify-between p-3 rounded-blimu hover:bg-blimu-accent transition-colors", children: [
25
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-3", children: [
26
+ /* @__PURE__ */ t(
27
+ w,
28
+ {
29
+ src: e.user.avatarUrl || void 0,
30
+ alt: e.user.email,
31
+ fallback: b,
32
+ size: "default"
33
+ }
34
+ ),
35
+ /* @__PURE__ */ r("div", { className: "flex flex-col", children: [
36
+ /* @__PURE__ */ t("p", { className: "text-sm font-medium text-blimu-foreground", children: b }),
37
+ /* @__PURE__ */ t("p", { className: "text-xs text-blimu-muted-foreground", children: e.user.email })
38
+ ] })
39
+ ] }),
40
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
41
+ e.inherited && /* @__PURE__ */ t("span", { className: "text-xs text-blimu-muted-foreground", children: "(inherited)" }),
42
+ /* @__PURE__ */ t("span", { className: "text-xs font-medium text-blimu-foreground bg-blimu-muted px-2 py-1 rounded-blimu-sm", children: e.role })
43
+ ] })
44
+ ] });
45
+ };
46
+ if (x)
47
+ return /* @__PURE__ */ r("div", { className: a("p-4 text-center", s), children: [
48
+ /* @__PURE__ */ r("p", { className: "text-sm text-blimu-destructive", children: [
49
+ "Error loading members: ",
50
+ x.message
51
+ ] }),
52
+ /* @__PURE__ */ t(
53
+ "button",
54
+ {
55
+ onClick: () => P(),
56
+ className: "mt-2 text-sm text-blimu-primary hover:underline",
57
+ children: "Retry"
58
+ }
59
+ )
60
+ ] });
61
+ if (o && d.length === 0)
62
+ return /* @__PURE__ */ t("div", { className: a("p-4 text-center", s), children: /* @__PURE__ */ t("p", { className: "text-sm text-blimu-muted-foreground", children: "Loading members..." }) });
63
+ if (d.length === 0)
64
+ return /* @__PURE__ */ t("div", { className: a("p-4 text-center", s), children: /* @__PURE__ */ t("p", { className: "text-sm text-blimu-muted-foreground", children: "No members found" }) });
65
+ const m = Math.ceil(n / i);
66
+ return /* @__PURE__ */ r("div", { className: a("flex flex-col", s), children: [
67
+ /* @__PURE__ */ t("div", { className: "flex flex-col divide-y divide-blimu-border", children: d.map((e) => /* @__PURE__ */ t("div", { children: c ? c(e) : k(e) }, e.userId)) }),
68
+ N && m > 1 && /* @__PURE__ */ r("div", { className: "flex items-center justify-between mt-4 pt-4 border-t border-blimu-border", children: [
69
+ /* @__PURE__ */ r("div", { className: "text-sm text-blimu-muted-foreground", children: [
70
+ "Showing ",
71
+ (l - 1) * i + 1,
72
+ " to ",
73
+ Math.min(l * i, n),
74
+ " of ",
75
+ n,
76
+ " ",
77
+ "members"
78
+ ] }),
79
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
80
+ /* @__PURE__ */ t(
81
+ "button",
82
+ {
83
+ onClick: () => u((e) => Math.max(1, e - 1)),
84
+ disabled: !y || o,
85
+ className: "px-3 py-1 text-sm rounded-blimu border border-blimu-input bg-blimu-background hover:bg-blimu-accent disabled:opacity-50 disabled:cursor-not-allowed",
86
+ children: "Previous"
87
+ }
88
+ ),
89
+ /* @__PURE__ */ r("span", { className: "text-sm text-blimu-foreground", children: [
90
+ "Page ",
91
+ l,
92
+ " of ",
93
+ m
94
+ ] }),
95
+ /* @__PURE__ */ t(
96
+ "button",
97
+ {
98
+ onClick: () => u((e) => Math.min(m, e + 1)),
99
+ disabled: !v || o,
100
+ className: "px-3 py-1 text-sm rounded-blimu border border-blimu-input bg-blimu-background hover:bg-blimu-accent disabled:opacity-50 disabled:cursor-not-allowed",
101
+ children: "Next"
102
+ }
103
+ )
104
+ ] })
105
+ ] })
106
+ ] });
107
+ }
108
+ export {
109
+ $ as MembersList
110
+ };
111
+ //# sourceMappingURL=members-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"members-list.js","sources":["../../src/components/members-list.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { UserAvatar } from './user-avatar';\nimport { cn } from '../lib/utils';\n\nimport { useMembers, type ResourceMember } from '../hooks/use-members';\n\nexport interface MembersListProps {\n /**\n * Resource type (e.g., 'organization', 'workspace')\n */\n resourceType: string;\n\n /**\n * Resource ID\n */\n resourceId: string;\n\n /**\n * Initial page number\n * @default 1\n */\n initialPage?: number;\n\n /**\n * Items per page\n * @default 20\n */\n pageSize?: number;\n\n /**\n * Search query\n */\n search?: string;\n\n /**\n * Custom render function for each member\n */\n renderMember?: (member: ResourceMember) => React.ReactNode;\n\n /**\n * Custom className\n */\n className?: string;\n\n /**\n * Show pagination controls\n * @default true\n */\n showPagination?: boolean;\n}\n\n/**\n * Paginated list of organization/resource members\n *\n * @example\n * ```tsx\n * <MembersList\n * resourceType=\"organization\"\n * resourceId=\"org_123\"\n * />\n * ```\n *\n * @example With custom rendering\n * ```tsx\n * <MembersList\n * resourceType=\"workspace\"\n * resourceId=\"ws_456\"\n * renderMember={(member) => (\n * <div className=\"flex items-center gap-2\">\n * <UserAvatar src={member.user.avatarUrl} alt={member.user.email} />\n * <div>\n * <p>{member.user.firstName} {member.user.lastName}</p>\n * <p className=\"text-sm text-muted-foreground\">{member.user.email}</p>\n * </div>\n * <Badge>{member.role}</Badge>\n * </div>\n * )}\n * />\n * ```\n */\nexport function MembersList({\n resourceType,\n resourceId,\n initialPage = 1,\n pageSize = 20,\n search,\n renderMember,\n className,\n showPagination = true,\n}: MembersListProps) {\n const [page, setPage] = React.useState(initialPage);\n const { members, total, isLoading, error, hasNextPage, hasPreviousPage, refetch } = useMembers({\n resourceType,\n resourceId,\n page,\n limit: pageSize,\n search,\n });\n\n const defaultRenderMember = (member: ResourceMember) => {\n const displayName =\n member.user.firstName && member.user.lastName\n ? `${member.user.firstName} ${member.user.lastName}`\n : member.user.firstName || member.user.email?.split('@')[0] || 'User';\n\n return (\n <div className=\"flex items-center justify-between p-3 rounded-blimu hover:bg-blimu-accent transition-colors\">\n <div className=\"flex items-center gap-3\">\n <UserAvatar\n src={member.user.avatarUrl || undefined}\n alt={member.user.email}\n fallback={displayName}\n size=\"default\"\n />\n <div className=\"flex flex-col\">\n <p className=\"text-sm font-medium text-blimu-foreground\">{displayName}</p>\n <p className=\"text-xs text-blimu-muted-foreground\">{member.user.email}</p>\n </div>\n </div>\n <div className=\"flex items-center gap-2\">\n {member.inherited && (\n <span className=\"text-xs text-blimu-muted-foreground\">(inherited)</span>\n )}\n <span className=\"text-xs font-medium text-blimu-foreground bg-blimu-muted px-2 py-1 rounded-blimu-sm\">\n {member.role}\n </span>\n </div>\n </div>\n );\n };\n\n if (error) {\n return (\n <div className={cn('p-4 text-center', className)}>\n <p className=\"text-sm text-blimu-destructive\">Error loading members: {error.message}</p>\n <button\n onClick={() => refetch()}\n className=\"mt-2 text-sm text-blimu-primary hover:underline\"\n >\n Retry\n </button>\n </div>\n );\n }\n\n if (isLoading && members.length === 0) {\n return (\n <div className={cn('p-4 text-center', className)}>\n <p className=\"text-sm text-blimu-muted-foreground\">Loading members...</p>\n </div>\n );\n }\n\n if (members.length === 0) {\n return (\n <div className={cn('p-4 text-center', className)}>\n <p className=\"text-sm text-blimu-muted-foreground\">No members found</p>\n </div>\n );\n }\n\n const totalPages = Math.ceil(total / pageSize);\n\n return (\n <div className={cn('flex flex-col', className)}>\n <div className=\"flex flex-col divide-y divide-blimu-border\">\n {members.map((member) => (\n <div key={member.userId}>\n {renderMember ? renderMember(member) : defaultRenderMember(member)}\n </div>\n ))}\n </div>\n\n {showPagination && totalPages > 1 && (\n <div className=\"flex items-center justify-between mt-4 pt-4 border-t border-blimu-border\">\n <div className=\"text-sm text-blimu-muted-foreground\">\n Showing {(page - 1) * pageSize + 1} to {Math.min(page * pageSize, total)} of {total}{' '}\n members\n </div>\n <div className=\"flex items-center gap-2\">\n <button\n onClick={() => setPage((p) => Math.max(1, p - 1))}\n disabled={!hasPreviousPage || isLoading}\n className=\"px-3 py-1 text-sm rounded-blimu border border-blimu-input bg-blimu-background hover:bg-blimu-accent disabled:opacity-50 disabled:cursor-not-allowed\"\n >\n Previous\n </button>\n <span className=\"text-sm text-blimu-foreground\">\n Page {page} of {totalPages}\n </span>\n <button\n onClick={() => setPage((p) => Math.min(totalPages, p + 1))}\n disabled={!hasNextPage || isLoading}\n className=\"px-3 py-1 text-sm rounded-blimu border border-blimu-input bg-blimu-background hover:bg-blimu-accent disabled:opacity-50 disabled:cursor-not-allowed\"\n >\n Next\n </button>\n </div>\n </div>\n )}\n </div>\n );\n}\n"],"names":["MembersList","resourceType","resourceId","initialPage","pageSize","search","renderMember","className","showPagination","page","setPage","React","members","total","isLoading","error","hasNextPage","hasPreviousPage","refetch","useMembers","defaultRenderMember","member","displayName","jsxs","jsx","UserAvatar","cn","totalPages","p"],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),d=require("../hooks/use-auth.cjs");function f({signUpFallbackRedirectUrl:e,signInFallbackRedirectUrl:i,forceRedirect:n=!1}){const{login:o,isAuthenticated:u,isLoading:s,isIdle:r}=d.useAuth();return c.useEffect(()=>{if(!(r||s)&&(!u||n)){let t=i||e||window.location.href;t.startsWith("http")||(t=`${window.location.origin}${t}`),o(t)}},[r,s,u,n,i,e,o]),null}exports.RedirectToSignIn=f;
2
+ //# sourceMappingURL=redirect-to-sign-in.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redirect-to-sign-in.cjs","sources":["../../src/components/redirect-to-sign-in.tsx"],"sourcesContent":["import { useEffect } from 'react';\n\nimport { useAuth } from '../hooks/use-auth';\n\nexport interface RedirectToSignInProps {\n /**\n * URL to redirect to after sign up\n * Note: In Blimu, this is used as the return URL after authentication\n */\n signUpFallbackRedirectUrl?: string;\n /**\n * URL to redirect to after sign in\n * Note: In Blimu, this is used as the return URL after authentication\n */\n signInFallbackRedirectUrl?: string;\n /**\n * Force redirect even if already authenticated\n * @default false\n */\n forceRedirect?: boolean;\n}\n\n/**\n * Component that redirects unauthenticated users to the sign-in page\n *\n * This component automatically redirects users to the authentication page\n * when they are not authenticated. It matches Clerk's RedirectToSignIn API\n * for easier migration.\n *\n * @example\n * ```tsx\n * function ProtectedRoute() {\n * const { isAuthenticated } = useAuth();\n *\n * if (!isAuthenticated) {\n * return <RedirectToSignIn signInFallbackRedirectUrl=\"/dashboard\" />;\n * }\n *\n * return <ProtectedContent />;\n * }\n * ```\n */\nexport function RedirectToSignIn({\n signUpFallbackRedirectUrl,\n signInFallbackRedirectUrl,\n forceRedirect = false,\n}: RedirectToSignInProps) {\n const { login, isAuthenticated, isLoading, isIdle } = useAuth();\n\n useEffect(() => {\n // Wait for auth to be ready (not idle) and not loading\n const isReady = !isIdle;\n if (!isReady || isLoading) {\n return;\n }\n\n // Redirect if not authenticated or if force redirect is enabled\n if (!isAuthenticated || forceRedirect) {\n // Use signInFallbackRedirectUrl if provided, otherwise signUpFallbackRedirectUrl, otherwise current URL\n let returnUrl =\n signInFallbackRedirectUrl || signUpFallbackRedirectUrl || window.location.href;\n\n // if it's not a full URL, add the current origin\n if (!returnUrl.startsWith('http')) {\n returnUrl = `${window.location.origin}${returnUrl}`;\n }\n\n login(returnUrl);\n }\n }, [\n isIdle,\n isLoading,\n isAuthenticated,\n forceRedirect,\n signInFallbackRedirectUrl,\n signUpFallbackRedirectUrl,\n login,\n ]);\n\n // Return null while redirecting (component will unmount after redirect)\n return null;\n}\n"],"names":["RedirectToSignIn","signUpFallbackRedirectUrl","signInFallbackRedirectUrl","forceRedirect","login","isAuthenticated","isLoading","isIdle","useAuth","useEffect","returnUrl"],"mappings":"4IA0CO,SAASA,EAAiB,CAC/B,0BAAAC,EACA,0BAAAC,EACA,cAAAC,EAAgB,EAClB,EAA0B,CACxB,KAAM,CAAE,MAAAC,EAAO,gBAAAC,EAAiB,UAAAC,EAAW,OAAAC,CAAA,EAAWC,EAAAA,QAAA,EAEtDC,OAAAA,EAAAA,UAAU,IAAM,CAGd,GAAI,EADaF,GACDD,KAKZ,CAACD,GAAmBF,GAAe,CAErC,IAAIO,EACFR,GAA6BD,GAA6B,OAAO,SAAS,KAGvES,EAAU,WAAW,MAAM,IAC9BA,EAAY,GAAG,OAAO,SAAS,MAAM,GAAGA,CAAS,IAGnDN,EAAMM,CAAS,CACjB,CACF,EAAG,CACDH,EACAD,EACAD,EACAF,EACAD,EACAD,EACAG,CAAA,CACD,EAGM,IACT"}
@@ -0,0 +1,39 @@
1
+ export interface RedirectToSignInProps {
2
+ /**
3
+ * URL to redirect to after sign up
4
+ * Note: In Blimu, this is used as the return URL after authentication
5
+ */
6
+ signUpFallbackRedirectUrl?: string;
7
+ /**
8
+ * URL to redirect to after sign in
9
+ * Note: In Blimu, this is used as the return URL after authentication
10
+ */
11
+ signInFallbackRedirectUrl?: string;
12
+ /**
13
+ * Force redirect even if already authenticated
14
+ * @default false
15
+ */
16
+ forceRedirect?: boolean;
17
+ }
18
+ /**
19
+ * Component that redirects unauthenticated users to the sign-in page
20
+ *
21
+ * This component automatically redirects users to the authentication page
22
+ * when they are not authenticated. It matches Clerk's RedirectToSignIn API
23
+ * for easier migration.
24
+ *
25
+ * @example
26
+ * ```tsx
27
+ * function ProtectedRoute() {
28
+ * const { isAuthenticated } = useAuth();
29
+ *
30
+ * if (!isAuthenticated) {
31
+ * return <RedirectToSignIn signInFallbackRedirectUrl="/dashboard" />;
32
+ * }
33
+ *
34
+ * return <ProtectedContent />;
35
+ * }
36
+ * ```
37
+ */
38
+ export declare function RedirectToSignIn({ signUpFallbackRedirectUrl, signInFallbackRedirectUrl, forceRedirect, }: RedirectToSignInProps): null;
39
+ //# sourceMappingURL=redirect-to-sign-in.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redirect-to-sign-in.d.ts","sourceRoot":"","sources":["../../src/components/redirect-to-sign-in.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC;;;OAGG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,aAAqB,GACtB,EAAE,qBAAqB,QAmCvB"}
@@ -0,0 +1,27 @@
1
+ import { useEffect as u } from "react";
2
+ import { useAuth as d } from "../hooks/use-auth.js";
3
+ function w({
4
+ signUpFallbackRedirectUrl: i,
5
+ signInFallbackRedirectUrl: o,
6
+ forceRedirect: n = !1
7
+ }) {
8
+ const { login: e, isAuthenticated: r, isLoading: s, isIdle: f } = d();
9
+ return u(() => {
10
+ if (!(f || s) && (!r || n)) {
11
+ let t = o || i || window.location.href;
12
+ t.startsWith("http") || (t = `${window.location.origin}${t}`), e(t);
13
+ }
14
+ }, [
15
+ f,
16
+ s,
17
+ r,
18
+ n,
19
+ o,
20
+ i,
21
+ e
22
+ ]), null;
23
+ }
24
+ export {
25
+ w as RedirectToSignIn
26
+ };
27
+ //# sourceMappingURL=redirect-to-sign-in.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redirect-to-sign-in.js","sources":["../../src/components/redirect-to-sign-in.tsx"],"sourcesContent":["import { useEffect } from 'react';\n\nimport { useAuth } from '../hooks/use-auth';\n\nexport interface RedirectToSignInProps {\n /**\n * URL to redirect to after sign up\n * Note: In Blimu, this is used as the return URL after authentication\n */\n signUpFallbackRedirectUrl?: string;\n /**\n * URL to redirect to after sign in\n * Note: In Blimu, this is used as the return URL after authentication\n */\n signInFallbackRedirectUrl?: string;\n /**\n * Force redirect even if already authenticated\n * @default false\n */\n forceRedirect?: boolean;\n}\n\n/**\n * Component that redirects unauthenticated users to the sign-in page\n *\n * This component automatically redirects users to the authentication page\n * when they are not authenticated. It matches Clerk's RedirectToSignIn API\n * for easier migration.\n *\n * @example\n * ```tsx\n * function ProtectedRoute() {\n * const { isAuthenticated } = useAuth();\n *\n * if (!isAuthenticated) {\n * return <RedirectToSignIn signInFallbackRedirectUrl=\"/dashboard\" />;\n * }\n *\n * return <ProtectedContent />;\n * }\n * ```\n */\nexport function RedirectToSignIn({\n signUpFallbackRedirectUrl,\n signInFallbackRedirectUrl,\n forceRedirect = false,\n}: RedirectToSignInProps) {\n const { login, isAuthenticated, isLoading, isIdle } = useAuth();\n\n useEffect(() => {\n // Wait for auth to be ready (not idle) and not loading\n const isReady = !isIdle;\n if (!isReady || isLoading) {\n return;\n }\n\n // Redirect if not authenticated or if force redirect is enabled\n if (!isAuthenticated || forceRedirect) {\n // Use signInFallbackRedirectUrl if provided, otherwise signUpFallbackRedirectUrl, otherwise current URL\n let returnUrl =\n signInFallbackRedirectUrl || signUpFallbackRedirectUrl || window.location.href;\n\n // if it's not a full URL, add the current origin\n if (!returnUrl.startsWith('http')) {\n returnUrl = `${window.location.origin}${returnUrl}`;\n }\n\n login(returnUrl);\n }\n }, [\n isIdle,\n isLoading,\n isAuthenticated,\n forceRedirect,\n signInFallbackRedirectUrl,\n signUpFallbackRedirectUrl,\n login,\n ]);\n\n // Return null while redirecting (component will unmount after redirect)\n return null;\n}\n"],"names":["RedirectToSignIn","signUpFallbackRedirectUrl","signInFallbackRedirectUrl","forceRedirect","login","isAuthenticated","isLoading","isIdle","useAuth","useEffect","returnUrl"],"mappings":";;AA0CO,SAASA,EAAiB;AAAA,EAC/B,2BAAAC;AAAA,EACA,2BAAAC;AAAA,EACA,eAAAC,IAAgB;AAClB,GAA0B;AACxB,QAAM,EAAE,OAAAC,GAAO,iBAAAC,GAAiB,WAAAC,GAAW,QAAAC,EAAA,IAAWC,EAAA;AAEtD,SAAAC,EAAU,MAAM;AAGd,QAAI,EADaF,KACDD,OAKZ,CAACD,KAAmBF,IAAe;AAErC,UAAIO,IACFR,KAA6BD,KAA6B,OAAO,SAAS;AAG5E,MAAKS,EAAU,WAAW,MAAM,MAC9BA,IAAY,GAAG,OAAO,SAAS,MAAM,GAAGA,CAAS,KAGnDN,EAAMM,CAAS;AAAA,IACjB;AAAA,EACF,GAAG;AAAA,IACDH;AAAA,IACAD;AAAA,IACAD;AAAA,IACAF;AAAA,IACAD;AAAA,IACAD;AAAA,IACAG;AAAA,EAAA,CACD,GAGM;AACT;"}
@@ -0,0 +1,7 @@
1
+ import { buttonVariants } from '../../lib/variants';
2
+ /**
3
+ * SignInButton uses the base buttonVariants from lib/variants
4
+ */
5
+ export { buttonVariants };
6
+ export type { ButtonVariants } from '../../lib/variants';
7
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/sign-in-button/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime");require("react");const f=require("../lib/utils.cjs"),g=require("../lib/variants.cjs"),h=require("../hooks/use-auth.cjs");function q({variant:n="default",size:e="default",redirectUrl:i,className:u,children:o="Sign In",...t}){const{login:r,isAuthenticated:c}=h.useAuth(),s=l=>{if(t.onClick&&t.onClick(l),!c){const a=i||window.location.href;r(a)}};return d.jsx("button",{className:f.cn(g.buttonVariants({variant:n,size:e}),u),onClick:s,...t,children:o})}exports.SignInButton=q;
2
+ //# sourceMappingURL=sign-in-button.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-in-button.cjs","sources":["../../src/components/sign-in-button.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { cn } from '../lib/utils';\nimport { buttonVariants, type ButtonVariants } from '../lib/variants';\n\nimport { useAuth } from '../hooks/use-auth';\n\nexport interface SignInButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n /**\n * Variant style\n * @default \"default\"\n */\n variant?: ButtonVariants['variant'];\n\n /**\n * Size variant\n * @default \"default\"\n */\n size?: ButtonVariants['size'];\n\n /**\n * URL to redirect to after sign-in\n */\n redirectUrl?: string;\n\n /**\n * Custom className\n */\n className?: string;\n\n /**\n * Button content\n */\n children?: React.ReactNode;\n}\n\n/**\n * Button component that triggers the authentication flow\n *\n * @example\n * ```tsx\n * <SignInButton>Sign In</SignInButton>\n * ```\n *\n * @example With custom variant and redirect\n * ```tsx\n * <SignInButton\n * variant=\"outline\"\n * size=\"lg\"\n * redirectUrl=\"/dashboard\"\n * >\n * Sign In to Dashboard\n * </SignInButton>\n * ```\n */\nexport function SignInButton({\n variant = 'default',\n size = 'default',\n redirectUrl,\n className,\n children = 'Sign In',\n ...props\n}: SignInButtonProps) {\n const { login, isAuthenticated } = useAuth();\n\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n if (props.onClick) {\n props.onClick(e);\n }\n\n if (!isAuthenticated) {\n const returnUrl = redirectUrl || window.location.href;\n login(returnUrl);\n }\n };\n\n return (\n <button\n className={cn(buttonVariants({ variant, size }), className)}\n onClick={handleClick}\n {...props}\n >\n {children}\n </button>\n );\n}\n"],"names":["SignInButton","variant","size","redirectUrl","className","children","props","login","isAuthenticated","useAuth","handleClick","e","returnUrl","jsx","cn","buttonVariants"],"mappings":"8OAuDO,SAASA,EAAa,CAC3B,QAAAC,EAAU,UACV,KAAAC,EAAO,UACP,YAAAC,EACA,UAAAC,EACA,SAAAC,EAAW,UACX,GAAGC,CACL,EAAsB,CACpB,KAAM,CAAE,MAAAC,EAAO,gBAAAC,CAAA,EAAoBC,UAAA,EAE7BC,EAAeC,GAA2C,CAK9D,GAJIL,EAAM,SACRA,EAAM,QAAQK,CAAC,EAGb,CAACH,EAAiB,CACpB,MAAMI,EAAYT,GAAe,OAAO,SAAS,KACjDI,EAAMK,CAAS,CACjB,CACF,EAEA,OACEC,EAAAA,IAAC,SAAA,CACC,UAAWC,EAAAA,GAAGC,iBAAe,CAAE,QAAAd,EAAS,KAAAC,CAAA,CAAM,EAAGE,CAAS,EAC1D,QAASM,EACR,GAAGJ,EAEH,SAAAD,CAAA,CAAA,CAGP"}
@@ -0,0 +1,47 @@
1
+ import * as React from 'react';
2
+ import { type ButtonVariants } from '../lib/variants';
3
+ export interface SignInButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ /**
5
+ * Variant style
6
+ * @default "default"
7
+ */
8
+ variant?: ButtonVariants['variant'];
9
+ /**
10
+ * Size variant
11
+ * @default "default"
12
+ */
13
+ size?: ButtonVariants['size'];
14
+ /**
15
+ * URL to redirect to after sign-in
16
+ */
17
+ redirectUrl?: string;
18
+ /**
19
+ * Custom className
20
+ */
21
+ className?: string;
22
+ /**
23
+ * Button content
24
+ */
25
+ children?: React.ReactNode;
26
+ }
27
+ /**
28
+ * Button component that triggers the authentication flow
29
+ *
30
+ * @example
31
+ * ```tsx
32
+ * <SignInButton>Sign In</SignInButton>
33
+ * ```
34
+ *
35
+ * @example With custom variant and redirect
36
+ * ```tsx
37
+ * <SignInButton
38
+ * variant="outline"
39
+ * size="lg"
40
+ * redirectUrl="/dashboard"
41
+ * >
42
+ * Sign In to Dashboard
43
+ * </SignInButton>
44
+ * ```
45
+ */
46
+ export declare function SignInButton({ variant, size, redirectUrl, className, children, ...props }: SignInButtonProps): React.JSX.Element;
47
+ //# sourceMappingURL=sign-in-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-in-button.d.ts","sourceRoot":"","sources":["../../src/components/sign-in-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAItE,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACtF;;;OAGG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IAEpC;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAAC,EAC3B,OAAmB,EACnB,IAAgB,EAChB,WAAW,EACX,SAAS,EACT,QAAoB,EACpB,GAAG,KAAK,EACT,EAAE,iBAAiB,qBAuBnB"}
@@ -0,0 +1,33 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import "react";
3
+ import { cn as s } from "../lib/utils.js";
4
+ import { buttonVariants as d } from "../lib/variants.js";
5
+ import { useAuth as h } from "../hooks/use-auth.js";
6
+ function w({
7
+ variant: n = "default",
8
+ size: o = "default",
9
+ redirectUrl: i,
10
+ className: r,
11
+ children: c = "Sign In",
12
+ ...t
13
+ }) {
14
+ const { login: e, isAuthenticated: l } = h(), u = (f) => {
15
+ if (t.onClick && t.onClick(f), !l) {
16
+ const m = i || window.location.href;
17
+ e(m);
18
+ }
19
+ };
20
+ return /* @__PURE__ */ a(
21
+ "button",
22
+ {
23
+ className: s(d({ variant: n, size: o }), r),
24
+ onClick: u,
25
+ ...t,
26
+ children: c
27
+ }
28
+ );
29
+ }
30
+ export {
31
+ w as SignInButton
32
+ };
33
+ //# sourceMappingURL=sign-in-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sign-in-button.js","sources":["../../src/components/sign-in-button.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { cn } from '../lib/utils';\nimport { buttonVariants, type ButtonVariants } from '../lib/variants';\n\nimport { useAuth } from '../hooks/use-auth';\n\nexport interface SignInButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n /**\n * Variant style\n * @default \"default\"\n */\n variant?: ButtonVariants['variant'];\n\n /**\n * Size variant\n * @default \"default\"\n */\n size?: ButtonVariants['size'];\n\n /**\n * URL to redirect to after sign-in\n */\n redirectUrl?: string;\n\n /**\n * Custom className\n */\n className?: string;\n\n /**\n * Button content\n */\n children?: React.ReactNode;\n}\n\n/**\n * Button component that triggers the authentication flow\n *\n * @example\n * ```tsx\n * <SignInButton>Sign In</SignInButton>\n * ```\n *\n * @example With custom variant and redirect\n * ```tsx\n * <SignInButton\n * variant=\"outline\"\n * size=\"lg\"\n * redirectUrl=\"/dashboard\"\n * >\n * Sign In to Dashboard\n * </SignInButton>\n * ```\n */\nexport function SignInButton({\n variant = 'default',\n size = 'default',\n redirectUrl,\n className,\n children = 'Sign In',\n ...props\n}: SignInButtonProps) {\n const { login, isAuthenticated } = useAuth();\n\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n if (props.onClick) {\n props.onClick(e);\n }\n\n if (!isAuthenticated) {\n const returnUrl = redirectUrl || window.location.href;\n login(returnUrl);\n }\n };\n\n return (\n <button\n className={cn(buttonVariants({ variant, size }), className)}\n onClick={handleClick}\n {...props}\n >\n {children}\n </button>\n );\n}\n"],"names":["SignInButton","variant","size","redirectUrl","className","children","props","login","isAuthenticated","useAuth","handleClick","e","returnUrl","jsx","cn","buttonVariants"],"mappings":";;;;;AAuDO,SAASA,EAAa;AAAA,EAC3B,SAAAC,IAAU;AAAA,EACV,MAAAC,IAAO;AAAA,EACP,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,GAAGC;AACL,GAAsB;AACpB,QAAM,EAAE,OAAAC,GAAO,iBAAAC,EAAA,IAAoBC,EAAA,GAE7BC,IAAc,CAACC,MAA2C;AAK9D,QAJIL,EAAM,WACRA,EAAM,QAAQK,CAAC,GAGb,CAACH,GAAiB;AACpB,YAAMI,IAAYT,KAAe,OAAO,SAAS;AACjD,MAAAI,EAAMK,CAAS;AAAA,IACjB;AAAA,EACF;AAEA,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAGC,EAAe,EAAE,SAAAd,GAAS,MAAAC,EAAA,CAAM,GAAGE,CAAS;AAAA,MAC1D,SAASM;AAAA,MACR,GAAGJ;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime");require("react");const r=require("../../node_modules/@radix-ui/react-avatar/dist/index.cjs"),l=require("../../lib/utils.cjs");function s({className:a,...e}){return t.jsx(r.Root,{"data-slot":"avatar",className:l.cn(a,"relative flex shrink-0 overflow-hidden rounded-full","size-8"),...e})}function n({className:a,...e}){return t.jsx(r.Image,{"data-slot":"avatar-image",className:l.cn("aspect-square size-full",a),...e})}function u({className:a,...e}){return t.jsx(r.Fallback,{"data-slot":"avatar-fallback",className:l.cn("bg-muted flex size-full items-center justify-center rounded-full",a),...e})}exports.Avatar=s;exports.AvatarFallback=u;exports.AvatarImage=n;
2
+ //# sourceMappingURL=avatar.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.cjs","sources":["../../../src/components/ui/avatar.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\n\nimport { cn } from '../../lib/utils';\n\nfunction Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>) {\n return (\n <AvatarPrimitive.Root\n data-slot=\"avatar\"\n className={cn(className, 'relative flex shrink-0 overflow-hidden rounded-full', 'size-8')}\n {...props}\n />\n );\n}\n\nfunction AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>) {\n return (\n <AvatarPrimitive.Image\n data-slot=\"avatar-image\"\n className={cn('aspect-square size-full', className)}\n {...props}\n />\n );\n}\n\nfunction AvatarFallback({\n className,\n ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {\n return (\n <AvatarPrimitive.Fallback\n data-slot=\"avatar-fallback\"\n className={cn('bg-muted flex size-full items-center justify-center rounded-full', className)}\n {...props}\n />\n );\n}\n\nexport { Avatar, AvatarImage, AvatarFallback };\n"],"names":["Avatar","className","props","jsx","AvatarPrimitive.Root","cn","AvatarImage","AvatarPrimitive.Image","AvatarFallback","AvatarPrimitive.Fallback"],"mappings":"mPAKA,SAASA,EAAO,CAAE,UAAAC,EAAW,GAAGC,GAA4D,CAC1F,OACEC,EAAAA,IAACC,EAAAA,KAAA,CACC,YAAU,SACV,UAAWC,EAAAA,GAAGJ,EAAW,sDAAuD,QAAQ,EACvF,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASI,EAAY,CAAE,UAAAL,EAAW,GAAGC,GAA6D,CAChG,OACEC,EAAAA,IAACI,EAAAA,MAAA,CACC,YAAU,eACV,UAAWF,EAAAA,GAAG,0BAA2BJ,CAAS,EACjD,GAAGC,CAAA,CAAA,CAGV,CAEA,SAASM,EAAe,CACtB,UAAAP,EACA,GAAGC,CACL,EAA0D,CACxD,OACEC,EAAAA,IAACM,EAAAA,SAAA,CACC,YAAU,kBACV,UAAWJ,EAAAA,GAAG,mEAAoEJ,CAAS,EAC1F,GAAGC,CAAA,CAAA,CAGV"}
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
3
+ declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): React.JSX.Element;
4
+ declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): React.JSX.Element;
5
+ declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): React.JSX.Element;
6
+ export { Avatar, AvatarImage, AvatarFallback };
7
+ //# sourceMappingURL=avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,iBAAS,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,qBAQzF;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,qBAQ/F;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC,qBAQvD;AAED,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import "react";
3
+ import { Root as l, Fallback as o, Image as s } from "../../node_modules/@radix-ui/react-avatar/dist/index.js";
4
+ import { cn as r } from "../../lib/utils.js";
5
+ function u({ className: a, ...t }) {
6
+ return /* @__PURE__ */ e(
7
+ l,
8
+ {
9
+ "data-slot": "avatar",
10
+ className: r(a, "relative flex shrink-0 overflow-hidden rounded-full", "size-8"),
11
+ ...t
12
+ }
13
+ );
14
+ }
15
+ function c({ className: a, ...t }) {
16
+ return /* @__PURE__ */ e(
17
+ s,
18
+ {
19
+ "data-slot": "avatar-image",
20
+ className: r("aspect-square size-full", a),
21
+ ...t
22
+ }
23
+ );
24
+ }
25
+ function d({
26
+ className: a,
27
+ ...t
28
+ }) {
29
+ return /* @__PURE__ */ e(
30
+ o,
31
+ {
32
+ "data-slot": "avatar-fallback",
33
+ className: r("bg-muted flex size-full items-center justify-center rounded-full", a),
34
+ ...t
35
+ }
36
+ );
37
+ }
38
+ export {
39
+ u as Avatar,
40
+ d as AvatarFallback,
41
+ c as AvatarImage
42
+ };
43
+ //# sourceMappingURL=avatar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.js","sources":["../../../src/components/ui/avatar.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as AvatarPrimitive from '@radix-ui/react-avatar';\n\nimport { cn } from '../../lib/utils';\n\nfunction Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>) {\n return (\n <AvatarPrimitive.Root\n data-slot=\"avatar\"\n className={cn(className, 'relative flex shrink-0 overflow-hidden rounded-full', 'size-8')}\n {...props}\n />\n );\n}\n\nfunction AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>) {\n return (\n <AvatarPrimitive.Image\n data-slot=\"avatar-image\"\n className={cn('aspect-square size-full', className)}\n {...props}\n />\n );\n}\n\nfunction AvatarFallback({\n className,\n ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {\n return (\n <AvatarPrimitive.Fallback\n data-slot=\"avatar-fallback\"\n className={cn('bg-muted flex size-full items-center justify-center rounded-full', className)}\n {...props}\n />\n );\n}\n\nexport { Avatar, AvatarImage, AvatarFallback };\n"],"names":["Avatar","className","props","jsx","AvatarPrimitive.Root","cn","AvatarImage","AvatarPrimitive.Image","AvatarFallback","AvatarPrimitive.Fallback"],"mappings":";;;;AAKA,SAASA,EAAO,EAAE,WAAAC,GAAW,GAAGC,KAA4D;AAC1F,SACE,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC,EAAGJ,GAAW,uDAAuD,QAAQ;AAAA,MACvF,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASI,EAAY,EAAE,WAAAL,GAAW,GAAGC,KAA6D;AAChG,SACE,gBAAAC;AAAA,IAACI;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWF,EAAG,2BAA2BJ,CAAS;AAAA,MACjD,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASM,EAAe;AAAA,EACtB,WAAAP;AAAA,EACA,GAAGC;AACL,GAA0D;AACxD,SACE,gBAAAC;AAAA,IAACM;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWJ,EAAG,oEAAoEJ,CAAS;AAAA,MAC1F,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;"}
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "default" | "outline" | "destructive" | "secondary" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
+ }
8
+ declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.Element;
9
+ export { Badge, badgeVariants };
10
+ //# sourceMappingURL=badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;8EAkBlB,CAAC;AAEF,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzC,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,qBAE1D;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),g=require("react"),t=require("../../node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs"),d=require("../../lib/utils.cjs"),w=require("../../node_modules/lucide-react/dist/esm/icons/chevron-right.cjs"),y=require("../../node_modules/lucide-react/dist/esm/icons/check.cjs"),N=require("../../node_modules/lucide-react/dist/esm/icons/circle.cjs");function h(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(a,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return a.default=e,Object.freeze(a)}const s=h(g),j=t.Root,D=t.Trigger,l=s.forwardRef(({className:e,inset:a,children:o,...r},i)=>n.jsxs(t.SubTrigger,{ref:i,className:d.cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm text-blimu-muted-foreground outline-none focus:bg-blimu-accent focus:text-blimu-accent-foreground data-[state=open]:bg-blimu-accent data-[state=open]:text-blimu-accent-foreground",a&&"pl-8",e),...r,children:[o,n.jsx(w.default,{className:"ml-auto h-3.5 w-3.5"})]}));l.displayName=t.SubTrigger.displayName;const c=s.forwardRef(({className:e,...a},o)=>n.jsx(t.SubContent,{ref:o,style:{backgroundColor:"var(--blimu-popover)"},className:d.cn("z-50 min-w-[8rem] overflow-hidden rounded-blimu border border-blimu-border text-blimu-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a}));c.displayName=t.SubContent.displayName;const u=s.forwardRef(({className:e,sideOffset:a=4,...o},r)=>n.jsx(t.Portal,{children:n.jsx(t.Content,{ref:r,sideOffset:a,className:d.cn("z-50 min-w-[8rem] overflow-hidden rounded-blimu border border-blimu-border text-blimu-popover-foreground shadow-md p-1","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));u.displayName=t.Content.displayName;const m=s.forwardRef(({className:e,inset:a,...o},r)=>n.jsx(t.Item,{ref:r,className:d.cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 mx-1 text-sm text-blimu-muted-foreground outline-none transition-colors focus:bg-blimu-accent focus:text-blimu-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a&&"pl-8",e),...o}));m.displayName=t.Item.displayName;const p=s.forwardRef(({className:e,children:a,checked:o,...r},i)=>n.jsxs(t.CheckboxItem,{ref:i,className:d.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm text-blimu-muted-foreground outline-none transition-colors focus:bg-blimu-accent focus:text-blimu-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[n.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:n.jsx(t.ItemIndicator,{children:n.jsx(y.default,{className:"h-3.5 w-3.5"})})}),a]}));p.displayName=t.CheckboxItem.displayName;const f=s.forwardRef(({className:e,children:a,...o},r)=>n.jsxs(t.RadioItem,{ref:r,className:d.cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm text-blimu-muted-foreground outline-none transition-colors focus:bg-blimu-accent focus:text-blimu-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[n.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:n.jsx(t.ItemIndicator,{children:n.jsx(N.default,{className:"h-2.5 w-2.5 fill-current"})})}),a]}));f.displayName=t.RadioItem.displayName;const b=s.forwardRef(({className:e,inset:a,...o},r)=>n.jsx(t.Label,{ref:r,className:d.cn("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",e),...o}));b.displayName=t.Label.displayName;const x=s.forwardRef(({className:e,...a},o)=>n.jsx(t.Separator,{ref:o,className:d.cn("-mx-1 my-1 h-px bg-blimu-border",e),...a}));x.displayName=t.Separator.displayName;exports.DropdownMenu=j;exports.DropdownMenuCheckboxItem=p;exports.DropdownMenuContent=u;exports.DropdownMenuItem=m;exports.DropdownMenuLabel=b;exports.DropdownMenuRadioItem=f;exports.DropdownMenuSeparator=x;exports.DropdownMenuSubContent=c;exports.DropdownMenuSubTrigger=l;exports.DropdownMenuTrigger=D;
2
+ //# sourceMappingURL=dropdown-menu.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown-menu.cjs","sources":["../../../src/components/ui/dropdown-menu.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\n\nimport { cn } from '../../lib/utils';\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm text-blimu-muted-foreground outline-none focus:bg-blimu-accent focus:text-blimu-accent-foreground data-[state=open]:bg-blimu-accent data-[state=open]:text-blimu-accent-foreground',\n inset && 'pl-8',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto h-3.5 w-3.5\" />\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n style={{\n backgroundColor: 'var(--blimu-popover)',\n }}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-blimu border border-blimu-border text-blimu-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n 'z-50 min-w-[8rem] overflow-hidden rounded-blimu border border-blimu-border text-blimu-popover-foreground shadow-md p-1',\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',\n className,\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 mx-1 text-sm text-blimu-muted-foreground outline-none transition-colors focus:bg-blimu-accent focus:text-blimu-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n inset && 'pl-8',\n className,\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm text-blimu-muted-foreground outline-none transition-colors focus:bg-blimu-accent focus:text-blimu-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check className=\"h-3.5 w-3.5\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm text-blimu-muted-foreground outline-none transition-colors focus:bg-blimu-accent focus:text-blimu-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Circle className=\"h-2.5 w-2.5 fill-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn('-mx-1 my-1 h-px bg-blimu-border', className)}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nconst DropdownMenuShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />\n );\n};\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n};\n"],"names":["DropdownMenu","DropdownMenuPrimitive.Root","DropdownMenuTrigger","DropdownMenuPrimitive.Trigger","DropdownMenuSubTrigger","React","className","inset","children","props","ref","jsxs","DropdownMenuPrimitive.SubTrigger","cn","jsx","ChevronRight","DropdownMenuSubContent","DropdownMenuPrimitive.SubContent","DropdownMenuContent","sideOffset","DropdownMenuPrimitive.Portal","DropdownMenuPrimitive.Content","DropdownMenuItem","DropdownMenuPrimitive.Item","DropdownMenuCheckboxItem","checked","DropdownMenuPrimitive.CheckboxItem","DropdownMenuPrimitive.ItemIndicator","Check","DropdownMenuRadioItem","DropdownMenuPrimitive.RadioItem","Circle","DropdownMenuLabel","DropdownMenuPrimitive.Label","DropdownMenuSeparator","DropdownMenuPrimitive.Separator"],"mappings":"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"}
@@ -0,0 +1,28 @@
1
+ import * as React from 'react';
2
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
+ declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
4
+ declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
6
+ declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
7
+ declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
8
+ declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
9
+ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
10
+ inset?: boolean;
11
+ } & React.RefAttributes<HTMLDivElement>>;
12
+ declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
15
+ inset?: boolean;
16
+ } & React.RefAttributes<HTMLDivElement>>;
17
+ declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
+ declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
+ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
20
+ inset?: boolean;
21
+ } & React.RefAttributes<HTMLDivElement>>;
22
+ declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
+ declare const DropdownMenuShortcut: {
24
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
25
+ displayName: string;
26
+ };
27
+ export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
28
+ //# sourceMappingURL=dropdown-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dropdown-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAKvE,QAAA,MAAM,YAAY,mDAA6B,CAAC;AAEhD,QAAA,MAAM,mBAAmB,0HAAgC,CAAC;AAE1D,QAAA,MAAM,iBAAiB,qHAA8B,CAAC;AAEtD,QAAA,MAAM,kBAAkB,yDAA+B,CAAC;AAExD,QAAA,MAAM,eAAe,sDAA4B,CAAC;AAElD,QAAA,MAAM,sBAAsB,0HAAmC,CAAC;AAEhE,QAAA,MAAM,sBAAsB;YAGhB,OAAO;wCAejB,CAAC;AAGH,QAAA,MAAM,sBAAsB,6KAe1B,CAAC;AAGH,QAAA,MAAM,mBAAmB,0KAgBvB,CAAC;AAGH,QAAA,MAAM,gBAAgB;YAGV,OAAO;wCAYjB,CAAC;AAGH,QAAA,MAAM,wBAAwB,+KAoB5B,CAAC;AAGH,QAAA,MAAM,qBAAqB,4KAmBzB,CAAC;AAGH,QAAA,MAAM,iBAAiB;YAGX,OAAO;wCAQjB,CAAC;AAGH,QAAA,MAAM,qBAAqB,4KASzB,CAAC;AAGH,QAAA,MAAM,oBAAoB;8BAA6B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAI3F,CAAC;AAGF,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,GACvB,CAAC"}