@blimu/react 0.7.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (452) hide show
  1. package/dist/_virtual/index.cjs +5 -1
  2. package/dist/_virtual/index.cjs.map +1 -1
  3. package/dist/_virtual/index.js +3 -3
  4. package/dist/_virtual/index2.cjs +4 -1
  5. package/dist/_virtual/index2.cjs.map +1 -1
  6. package/dist/_virtual/index2.js +2 -2
  7. package/dist/_virtual/use-sync-external-store-shim.development.cjs +4 -1
  8. package/dist/_virtual/use-sync-external-store-shim.development.cjs.map +1 -1
  9. package/dist/_virtual/use-sync-external-store-shim.development.js +2 -2
  10. package/dist/_virtual/use-sync-external-store-shim.production.cjs +4 -1
  11. package/dist/_virtual/use-sync-external-store-shim.production.cjs.map +1 -1
  12. package/dist/_virtual/use-sync-external-store-shim.production.js +2 -2
  13. package/dist/client/auth.service.cjs +249 -1
  14. package/dist/client/auth.service.cjs.map +1 -1
  15. package/dist/client/auth.service.d.ts.map +1 -1
  16. package/dist/client/auth.service.js +195 -95
  17. package/dist/client/auth.service.js.map +1 -1
  18. package/dist/client/external-store.cjs +26 -1
  19. package/dist/client/external-store.cjs.map +1 -1
  20. package/dist/client/external-store.js +22 -8
  21. package/dist/client/external-store.js.map +1 -1
  22. package/dist/client/runtime-client.cjs +136 -1
  23. package/dist/client/runtime-client.cjs.map +1 -1
  24. package/dist/client/runtime-client.js +86 -52
  25. package/dist/client/runtime-client.js.map +1 -1
  26. package/dist/components/index.cjs +13 -0
  27. package/dist/components/index.cjs.map +1 -0
  28. package/dist/components/index.js +13 -0
  29. package/dist/components/index.js.map +1 -0
  30. package/dist/components/members-list.cjs +132 -1
  31. package/dist/components/members-list.cjs.map +1 -1
  32. package/dist/components/members-list.js +69 -64
  33. package/dist/components/members-list.js.map +1 -1
  34. package/dist/components/redirect-to-sign-in.cjs +34 -1
  35. package/dist/components/redirect-to-sign-in.cjs.map +1 -1
  36. package/dist/components/redirect-to-sign-in.js +28 -20
  37. package/dist/components/redirect-to-sign-in.js.map +1 -1
  38. package/dist/components/sign-in-button.cjs +36 -1
  39. package/dist/components/sign-in-button.cjs.map +1 -1
  40. package/dist/components/sign-in-button.js +25 -21
  41. package/dist/components/sign-in-button.js.map +1 -1
  42. package/dist/components/ui/avatar.cjs +42 -1
  43. package/dist/components/ui/avatar.cjs.map +1 -1
  44. package/dist/components/ui/avatar.js +23 -23
  45. package/dist/components/ui/avatar.js.map +1 -1
  46. package/dist/components/ui/dropdown-menu.cjs +148 -1
  47. package/dist/components/ui/dropdown-menu.cjs.map +1 -1
  48. package/dist/components/ui/dropdown-menu.js +83 -81
  49. package/dist/components/ui/dropdown-menu.js.map +1 -1
  50. package/dist/components/user-avatar.cjs +22 -1
  51. package/dist/components/user-avatar.cjs.map +1 -1
  52. package/dist/components/user-avatar.js +16 -16
  53. package/dist/components/user-avatar.js.map +1 -1
  54. package/dist/components/user-button/styles.cjs +39 -1
  55. package/dist/components/user-button/styles.cjs.map +1 -1
  56. package/dist/components/user-button/styles.js +6 -5
  57. package/dist/components/user-button/styles.js.map +1 -1
  58. package/dist/components/user-button/user-button.cjs +98 -1
  59. package/dist/components/user-button/user-button.cjs.map +1 -1
  60. package/dist/components/user-button/user-button.js +64 -58
  61. package/dist/components/user-button/user-button.js.map +1 -1
  62. package/dist/hooks/index.cjs +14 -0
  63. package/dist/hooks/index.cjs.map +1 -0
  64. package/dist/hooks/index.d.ts +1 -0
  65. package/dist/hooks/index.d.ts.map +1 -1
  66. package/dist/hooks/index.js +14 -0
  67. package/dist/hooks/index.js.map +1 -0
  68. package/dist/hooks/use-auth.cjs +44 -1
  69. package/dist/hooks/use-auth.cjs.map +1 -1
  70. package/dist/hooks/use-auth.d.ts +13 -15
  71. package/dist/hooks/use-auth.d.ts.map +1 -1
  72. package/dist/hooks/use-auth.js +30 -26
  73. package/dist/hooks/use-auth.js.map +1 -1
  74. package/dist/hooks/use-client.cjs +9 -1
  75. package/dist/hooks/use-client.cjs.map +1 -1
  76. package/dist/hooks/use-client.d.ts +1 -1
  77. package/dist/hooks/use-client.d.ts.map +1 -1
  78. package/dist/hooks/use-client.js +6 -5
  79. package/dist/hooks/use-client.js.map +1 -1
  80. package/dist/hooks/use-members.cjs +60 -1
  81. package/dist/hooks/use-members.cjs.map +1 -1
  82. package/dist/hooks/use-members.js +53 -41
  83. package/dist/hooks/use-members.js.map +1 -1
  84. package/dist/hooks/use-store.cjs +17 -1
  85. package/dist/hooks/use-store.cjs.map +1 -1
  86. package/dist/hooks/use-store.js +7 -7
  87. package/dist/hooks/use-store.js.map +1 -1
  88. package/dist/index.cjs +37 -1
  89. package/dist/index.cjs.map +1 -1
  90. package/dist/index.d.ts +1 -1
  91. package/dist/index.d.ts.map +1 -1
  92. package/dist/index.js +35 -35
  93. package/dist/lib/utils.cjs +8 -1
  94. package/dist/lib/utils.cjs.map +1 -1
  95. package/dist/lib/utils.js +5 -5
  96. package/dist/lib/utils.js.map +1 -1
  97. package/dist/lib/variants.cjs +46 -1
  98. package/dist/lib/variants.cjs.map +1 -1
  99. package/dist/lib/variants.js +6 -5
  100. package/dist/lib/variants.js.map +1 -1
  101. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +721 -1
  102. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.map +1 -1
  103. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +571 -377
  104. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -1
  105. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +625 -1
  106. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.map +1 -1
  107. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +539 -316
  108. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -1
  109. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs +313 -1
  110. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs.map +1 -1
  111. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +261 -172
  112. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -1
  113. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +154 -1
  114. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.map +1 -1
  115. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +173 -1
  116. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.map +1 -1
  117. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +144 -107
  118. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -1
  119. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +111 -87
  120. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -1
  121. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +11 -1
  122. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -1
  123. package/dist/node_modules/@radix-ui/primitive/dist/index.js +7 -5
  124. package/dist/node_modules/@radix-ui/primitive/dist/index.js.map +1 -1
  125. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +42 -1
  126. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -1
  127. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +17 -16
  128. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -1
  129. package/dist/node_modules/@radix-ui/react-avatar/dist/index.cjs +140 -1
  130. package/dist/node_modules/@radix-ui/react-avatar/dist/index.cjs.map +1 -1
  131. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +105 -57
  132. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js.map +1 -1
  133. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.cjs +80 -1
  134. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  135. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.js +49 -41
  136. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.js.map +1 -1
  137. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.cjs +56 -1
  138. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  139. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js +17 -10
  140. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
  141. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.cjs +119 -1
  142. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  143. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.js +86 -42
  144. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
  145. package/dist/node_modules/@radix-ui/react-collection/dist/index.cjs +70 -1
  146. package/dist/node_modules/@radix-ui/react-collection/dist/index.cjs.map +1 -1
  147. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +57 -37
  148. package/dist/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -1
  149. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +56 -1
  150. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -1
  151. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -19
  152. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -1
  153. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +79 -1
  154. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  155. package/dist/node_modules/@radix-ui/react-context/dist/index.js +48 -39
  156. package/dist/node_modules/@radix-ui/react-context/dist/index.js.map +1 -1
  157. package/dist/node_modules/@radix-ui/react-direction/dist/index.cjs +27 -1
  158. package/dist/node_modules/@radix-ui/react-direction/dist/index.cjs.map +1 -1
  159. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +6 -6
  160. package/dist/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -1
  161. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +229 -1
  162. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
  163. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +182 -97
  164. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -1
  165. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +296 -1
  166. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs.map +1 -1
  167. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +232 -167
  168. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -1
  169. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs +46 -1
  170. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.cjs.map +1 -1
  171. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +23 -11
  172. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -1
  173. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +224 -1
  174. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  175. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +169 -98
  176. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -1
  177. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +31 -1
  178. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -1
  179. package/dist/node_modules/@radix-ui/react-id/dist/index.js +11 -10
  180. package/dist/node_modules/@radix-ui/react-id/dist/index.js.map +1 -1
  181. package/dist/node_modules/@radix-ui/react-menu/dist/index.cjs +845 -1
  182. package/dist/node_modules/@radix-ui/react-menu/dist/index.cjs.map +1 -1
  183. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +662 -442
  184. package/dist/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -1
  185. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +308 -1
  186. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -1
  187. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +209 -137
  188. package/dist/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -1
  189. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +34 -1
  190. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
  191. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +14 -12
  192. package/dist/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -1
  193. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +145 -1
  194. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -1
  195. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +103 -45
  196. package/dist/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -1
  197. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +61 -1
  198. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  199. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +21 -14
  200. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -1
  201. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.cjs +244 -1
  202. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.cjs.map +1 -1
  203. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +179 -135
  204. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -1
  205. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +105 -1
  206. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  207. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +74 -35
  208. package/dist/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
  209. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +28 -1
  210. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -1
  211. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +8 -7
  212. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -1
  213. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +86 -1
  214. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -1
  215. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +57 -40
  216. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -1
  217. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +34 -1
  218. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.map +1 -1
  219. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +13 -10
  220. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -1
  221. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs +15 -1
  222. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.cjs.map +1 -1
  223. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +8 -8
  224. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js.map +1 -1
  225. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +23 -1
  226. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -1
  227. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +3 -3
  228. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -1
  229. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +56 -1
  230. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs.map +1 -1
  231. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +34 -22
  232. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -1
  233. package/dist/node_modules/aria-hidden/dist/es2015/index.cjs +122 -1
  234. package/dist/node_modules/aria-hidden/dist/es2015/index.cjs.map +1 -1
  235. package/dist/node_modules/aria-hidden/dist/es2015/index.js +111 -41
  236. package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -1
  237. package/dist/node_modules/class-variance-authority/dist/index.cjs +45 -1
  238. package/dist/node_modules/class-variance-authority/dist/index.cjs.map +1 -1
  239. package/dist/node_modules/class-variance-authority/dist/index.js +40 -30
  240. package/dist/node_modules/class-variance-authority/dist/index.js.map +1 -1
  241. package/dist/node_modules/clsx/dist/clsx.cjs +17 -1
  242. package/dist/node_modules/clsx/dist/clsx.cjs.map +1 -1
  243. package/dist/node_modules/clsx/dist/clsx.js +13 -13
  244. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  245. package/dist/node_modules/get-nonce/dist/es2015/index.cjs +9 -1
  246. package/dist/node_modules/get-nonce/dist/es2015/index.cjs.map +1 -1
  247. package/dist/node_modules/get-nonce/dist/es2015/index.js +5 -3
  248. package/dist/node_modules/get-nonce/dist/es2015/index.js.map +1 -1
  249. package/dist/node_modules/js-cookie/dist/js.cookie.cjs +98 -1
  250. package/dist/node_modules/js-cookie/dist/js.cookie.cjs.map +1 -1
  251. package/dist/node_modules/js-cookie/dist/js.cookie.js +69 -43
  252. package/dist/node_modules/js-cookie/dist/js.cookie.js.map +1 -1
  253. package/dist/node_modules/jwt-decode/build/esm/index.cjs +58 -1
  254. package/dist/node_modules/jwt-decode/build/esm/index.cjs.map +1 -1
  255. package/dist/node_modules/jwt-decode/build/esm/index.js +36 -30
  256. package/dist/node_modules/jwt-decode/build/esm/index.js.map +1 -1
  257. package/dist/node_modules/lucide-react/dist/esm/Icon.cjs +34 -1
  258. package/dist/node_modules/lucide-react/dist/esm/Icon.cjs.map +1 -1
  259. package/dist/node_modules/lucide-react/dist/esm/Icon.js +25 -25
  260. package/dist/node_modules/lucide-react/dist/esm/Icon.js.map +1 -1
  261. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs +21 -1
  262. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.cjs.map +1 -1
  263. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +16 -15
  264. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js.map +1 -1
  265. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs +13 -1
  266. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.cjs.map +1 -1
  267. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +2 -2
  268. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js.map +1 -1
  269. package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs +7 -1
  270. package/dist/node_modules/lucide-react/dist/esm/icons/check.cjs.map +1 -1
  271. package/dist/node_modules/lucide-react/dist/esm/icons/check.js +5 -4
  272. package/dist/node_modules/lucide-react/dist/esm/icons/check.js.map +1 -1
  273. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.cjs +7 -1
  274. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.cjs.map +1 -1
  275. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +5 -4
  276. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js.map +1 -1
  277. package/dist/node_modules/lucide-react/dist/esm/icons/circle.cjs +7 -1
  278. package/dist/node_modules/lucide-react/dist/esm/icons/circle.cjs.map +1 -1
  279. package/dist/node_modules/lucide-react/dist/esm/icons/circle.js +5 -4
  280. package/dist/node_modules/lucide-react/dist/esm/icons/circle.js.map +1 -1
  281. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.cjs +11 -1
  282. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.cjs.map +1 -1
  283. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.js +6 -5
  284. package/dist/node_modules/lucide-react/dist/esm/icons/log-out.js.map +1 -1
  285. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs +26 -1
  286. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.cjs.map +1 -1
  287. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +22 -14
  288. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js.map +1 -1
  289. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs +27 -1
  290. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.cjs.map +1 -1
  291. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +8 -8
  292. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -1
  293. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs +197 -4
  294. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.cjs.map +1 -1
  295. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +163 -98
  296. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -1
  297. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs +55 -1
  298. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.cjs.map +1 -1
  299. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -24
  300. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -1
  301. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs +19 -1
  302. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.cjs.map +1 -1
  303. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +12 -9
  304. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -1
  305. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs +102 -1
  306. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.cjs.map +1 -1
  307. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +85 -51
  308. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -1
  309. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs +5 -1
  310. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.cjs.map +1 -1
  311. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +3 -3
  312. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -1
  313. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs +6 -1
  314. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.cjs.map +1 -1
  315. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +5 -5
  316. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -1
  317. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs +62 -36
  318. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.cjs.map +1 -1
  319. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +41 -65
  320. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -1
  321. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs +10 -1
  322. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.cjs.map +1 -1
  323. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +8 -5
  324. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -1
  325. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs +37 -1
  326. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.cjs.map +1 -1
  327. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +28 -16
  328. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -1
  329. package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs +13 -1
  330. package/dist/node_modules/react-style-singleton/dist/es2015/component.cjs.map +1 -1
  331. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +9 -7
  332. package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -1
  333. package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs +33 -1
  334. package/dist/node_modules/react-style-singleton/dist/es2015/hook.cjs.map +1 -1
  335. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +11 -10
  336. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -1
  337. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs +48 -1
  338. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.cjs.map +1 -1
  339. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +35 -17
  340. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -1
  341. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +3014 -1
  342. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.map +1 -1
  343. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +804 -555
  344. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  345. package/dist/node_modules/tailwindcss/dist/plugin.cjs +12 -1
  346. package/dist/node_modules/tailwindcss/dist/plugin.cjs.map +1 -1
  347. package/dist/node_modules/tailwindcss/dist/plugin.js +8 -8
  348. package/dist/node_modules/tailwindcss/dist/plugin.js.map +1 -1
  349. package/dist/node_modules/tslib/tslib.es6.cjs +38 -1
  350. package/dist/node_modules/tslib/tslib.es6.cjs.map +1 -1
  351. package/dist/node_modules/tslib/tslib.es6.js +33 -21
  352. package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
  353. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs +11 -1
  354. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.cjs.map +1 -1
  355. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +8 -3
  356. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -1
  357. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs +52 -1
  358. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.cjs.map +1 -1
  359. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +28 -19
  360. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -1
  361. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs +29 -1
  362. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.cjs.map +1 -1
  363. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +15 -11
  364. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -1
  365. package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs +38 -1
  366. package/dist/node_modules/use-sidecar/dist/es2015/exports.cjs.map +1 -1
  367. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +15 -12
  368. package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -1
  369. package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs +88 -1
  370. package/dist/node_modules/use-sidecar/dist/es2015/medium.cjs.map +1 -1
  371. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +64 -43
  372. package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -1
  373. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +68 -1
  374. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs.map +1 -1
  375. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +49 -39
  376. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -1
  377. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +53 -1
  378. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs.map +1 -1
  379. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +39 -32
  380. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -1
  381. package/dist/node_modules/use-sync-external-store/shim/index.cjs +17 -1
  382. package/dist/node_modules/use-sync-external-store/shim/index.cjs.map +1 -1
  383. package/dist/node_modules/use-sync-external-store/shim/index.js +14 -7
  384. package/dist/node_modules/use-sync-external-store/shim/index.js.map +1 -1
  385. package/dist/providers/auth/auth.context.cjs +5 -1
  386. package/dist/providers/auth/auth.context.cjs.map +1 -1
  387. package/dist/providers/auth/auth.context.js +3 -3
  388. package/dist/providers/auth/auth.context.js.map +1 -1
  389. package/dist/providers/auth/auth.hook.cjs +12 -1
  390. package/dist/providers/auth/auth.hook.cjs.map +1 -1
  391. package/dist/providers/auth/auth.hook.js +8 -7
  392. package/dist/providers/auth/auth.hook.js.map +1 -1
  393. package/dist/providers/auth/auth.provider.cjs +37 -1
  394. package/dist/providers/auth/auth.provider.cjs.map +1 -1
  395. package/dist/providers/auth/auth.provider.js +31 -22
  396. package/dist/providers/auth/auth.provider.js.map +1 -1
  397. package/dist/providers/blimu/blimu.context.cjs +5 -1
  398. package/dist/providers/blimu/blimu.context.cjs.map +1 -1
  399. package/dist/providers/blimu/blimu.context.js +3 -3
  400. package/dist/providers/blimu/blimu.context.js.map +1 -1
  401. package/dist/providers/blimu/blimu.hook.cjs +12 -1
  402. package/dist/providers/blimu/blimu.hook.cjs.map +1 -1
  403. package/dist/providers/blimu/blimu.hook.js +8 -7
  404. package/dist/providers/blimu/blimu.hook.js.map +1 -1
  405. package/dist/providers/blimu/blimu.provider.cjs +71 -1
  406. package/dist/providers/blimu/blimu.provider.cjs.map +1 -1
  407. package/dist/providers/blimu/blimu.provider.js +32 -27
  408. package/dist/providers/blimu/blimu.provider.js.map +1 -1
  409. package/dist/providers/index.cjs +13 -0
  410. package/dist/providers/index.cjs.map +1 -0
  411. package/dist/providers/index.js +13 -0
  412. package/dist/providers/index.js.map +1 -0
  413. package/dist/providers/theme/theme.context.cjs +5 -1
  414. package/dist/providers/theme/theme.context.cjs.map +1 -1
  415. package/dist/providers/theme/theme.context.js +3 -3
  416. package/dist/providers/theme/theme.context.js.map +1 -1
  417. package/dist/providers/theme/theme.hook.cjs +12 -1
  418. package/dist/providers/theme/theme.hook.cjs.map +1 -1
  419. package/dist/providers/theme/theme.hook.js +8 -7
  420. package/dist/providers/theme/theme.hook.js.map +1 -1
  421. package/dist/providers/theme/theme.provider.cjs +104 -1
  422. package/dist/providers/theme/theme.provider.cjs.map +1 -1
  423. package/dist/providers/theme/theme.provider.js +85 -48
  424. package/dist/providers/theme/theme.provider.js.map +1 -1
  425. package/dist/tailwind.cjs +200 -0
  426. package/dist/tailwind.cjs.map +1 -0
  427. package/dist/{tailwind.plugin.js → tailwind.js} +6 -6
  428. package/dist/tailwind.js.map +1 -0
  429. package/dist/types/index.cjs +11 -1
  430. package/dist/types/index.cjs.map +1 -1
  431. package/dist/types/index.js +8 -8
  432. package/dist/types/index.js.map +1 -1
  433. package/dist/utils/publishable-key.cjs +62 -1
  434. package/dist/utils/publishable-key.cjs.map +1 -1
  435. package/dist/utils/publishable-key.js +52 -27
  436. package/dist/utils/publishable-key.js.map +1 -1
  437. package/package.json +41 -42
  438. package/dist/components.cjs +0 -2
  439. package/dist/components.cjs.map +0 -1
  440. package/dist/components.js +0 -13
  441. package/dist/components.js.map +0 -1
  442. package/dist/hooks.cjs +0 -2
  443. package/dist/hooks.cjs.map +0 -1
  444. package/dist/hooks.js +0 -14
  445. package/dist/hooks.js.map +0 -1
  446. package/dist/providers.cjs +0 -2
  447. package/dist/providers.cjs.map +0 -1
  448. package/dist/providers.js +0 -13
  449. package/dist/providers.js.map +0 -1
  450. package/dist/tailwind.plugin.cjs +0 -2
  451. package/dist/tailwind.plugin.cjs.map +0 -1
  452. package/dist/tailwind.plugin.js.map +0 -1
@@ -1,53 +1,123 @@
1
- var S = function(r) {
2
- if (typeof document > "u")
1
+ var getDefaultParent = function(originalTarget) {
2
+ if (typeof document === "undefined") {
3
3
  return null;
4
- var u = Array.isArray(r) ? r[0] : r;
5
- return u.ownerDocument.body;
6
- }, f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {}, h = 0, W = function(r) {
7
- return r && (r.host || W(r.parentNode));
8
- }, D = function(r, u) {
9
- return u.map(function(e) {
10
- if (r.contains(e))
11
- return e;
12
- var n = W(e);
13
- return n && r.contains(n) ? n : (console.error("aria-hidden", e, "in not contained inside", r, ". Doing nothing"), null);
14
- }).filter(function(e) {
15
- return !!e;
4
+ }
5
+ var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;
6
+ return sampleTarget.ownerDocument.body;
7
+ };
8
+ var counterMap = /* @__PURE__ */ new WeakMap();
9
+ var uncontrolledNodes = /* @__PURE__ */ new WeakMap();
10
+ var markerMap = {};
11
+ var lockCount = 0;
12
+ var unwrapHost = function(node) {
13
+ return node && (node.host || unwrapHost(node.parentNode));
14
+ };
15
+ var correctTargets = function(parent, targets) {
16
+ return targets.map(function(target) {
17
+ if (parent.contains(target)) {
18
+ return target;
19
+ }
20
+ var correctedTarget = unwrapHost(target);
21
+ if (correctedTarget && parent.contains(correctedTarget)) {
22
+ return correctedTarget;
23
+ }
24
+ console.error("aria-hidden", target, "in not contained inside", parent, ". Doing nothing");
25
+ return null;
26
+ }).filter(function(x) {
27
+ return Boolean(x);
16
28
  });
17
- }, E = function(r, u, e, n) {
18
- var i = D(u, Array.isArray(r) ? r : [r]);
19
- p[e] || (p[e] = /* @__PURE__ */ new WeakMap());
20
- var s = p[e], l = [], o = /* @__PURE__ */ new Set(), b = new Set(i), y = function(t) {
21
- !t || o.has(t) || (o.add(t), y(t.parentNode));
29
+ };
30
+ var applyAttributeToOthers = function(originalTarget, parentNode, markerName, controlAttribute) {
31
+ var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
32
+ if (!markerMap[markerName]) {
33
+ markerMap[markerName] = /* @__PURE__ */ new WeakMap();
34
+ }
35
+ var markerCounter = markerMap[markerName];
36
+ var hiddenNodes = [];
37
+ var elementsToKeep = /* @__PURE__ */ new Set();
38
+ var elementsToStop = new Set(targets);
39
+ var keep = function(el) {
40
+ if (!el || elementsToKeep.has(el)) {
41
+ return;
42
+ }
43
+ elementsToKeep.add(el);
44
+ keep(el.parentNode);
22
45
  };
23
- i.forEach(y);
24
- var A = function(t) {
25
- !t || b.has(t) || Array.prototype.forEach.call(t.children, function(a) {
26
- if (o.has(a))
27
- A(a);
28
- else
46
+ targets.forEach(keep);
47
+ var deep = function(parent) {
48
+ if (!parent || elementsToStop.has(parent)) {
49
+ return;
50
+ }
51
+ Array.prototype.forEach.call(parent.children, function(node) {
52
+ if (elementsToKeep.has(node)) {
53
+ deep(node);
54
+ } else {
29
55
  try {
30
- var c = a.getAttribute(n), w = c !== null && c !== "false", d = (f.get(a) || 0) + 1, M = (s.get(a) || 0) + 1;
31
- f.set(a, d), s.set(a, M), l.push(a), d === 1 && w && v.set(a, !0), M === 1 && a.setAttribute(e, "true"), w || a.setAttribute(n, "true");
32
- } catch (k) {
33
- console.error("aria-hidden: cannot operate on ", a, k);
56
+ var attr = node.getAttribute(controlAttribute);
57
+ var alreadyHidden = attr !== null && attr !== "false";
58
+ var counterValue = (counterMap.get(node) || 0) + 1;
59
+ var markerValue = (markerCounter.get(node) || 0) + 1;
60
+ counterMap.set(node, counterValue);
61
+ markerCounter.set(node, markerValue);
62
+ hiddenNodes.push(node);
63
+ if (counterValue === 1 && alreadyHidden) {
64
+ uncontrolledNodes.set(node, true);
65
+ }
66
+ if (markerValue === 1) {
67
+ node.setAttribute(markerName, "true");
68
+ }
69
+ if (!alreadyHidden) {
70
+ node.setAttribute(controlAttribute, "true");
71
+ }
72
+ } catch (e) {
73
+ console.error("aria-hidden: cannot operate on ", node, e);
34
74
  }
75
+ }
35
76
  });
36
77
  };
37
- return A(u), o.clear(), h++, function() {
38
- l.forEach(function(t) {
39
- var a = f.get(t) - 1, c = s.get(t) - 1;
40
- f.set(t, a), s.set(t, c), a || (v.has(t) || t.removeAttribute(n), v.delete(t)), c || t.removeAttribute(e);
41
- }), h--, h || (f = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {});
42
- };
43
- }, C = function(r, u, e) {
44
- e === void 0 && (e = "data-aria-hidden");
45
- var n = Array.from(Array.isArray(r) ? r : [r]), i = S(r);
46
- return i ? (n.push.apply(n, Array.from(i.querySelectorAll("[aria-live], script"))), E(n, i, e, "aria-hidden")) : function() {
47
- return null;
78
+ deep(parentNode);
79
+ elementsToKeep.clear();
80
+ lockCount++;
81
+ return function() {
82
+ hiddenNodes.forEach(function(node) {
83
+ var counterValue = counterMap.get(node) - 1;
84
+ var markerValue = markerCounter.get(node) - 1;
85
+ counterMap.set(node, counterValue);
86
+ markerCounter.set(node, markerValue);
87
+ if (!counterValue) {
88
+ if (!uncontrolledNodes.has(node)) {
89
+ node.removeAttribute(controlAttribute);
90
+ }
91
+ uncontrolledNodes.delete(node);
92
+ }
93
+ if (!markerValue) {
94
+ node.removeAttribute(markerName);
95
+ }
96
+ });
97
+ lockCount--;
98
+ if (!lockCount) {
99
+ counterMap = /* @__PURE__ */ new WeakMap();
100
+ counterMap = /* @__PURE__ */ new WeakMap();
101
+ uncontrolledNodes = /* @__PURE__ */ new WeakMap();
102
+ markerMap = {};
103
+ }
48
104
  };
49
105
  };
106
+ var hideOthers = function(originalTarget, parentNode, markerName) {
107
+ if (markerName === void 0) {
108
+ markerName = "data-aria-hidden";
109
+ }
110
+ var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);
111
+ var activeParentNode = getDefaultParent(originalTarget);
112
+ if (!activeParentNode) {
113
+ return function() {
114
+ return null;
115
+ };
116
+ }
117
+ targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll("[aria-live], script")));
118
+ return applyAttributeToOthers(targets, activeParentNode, markerName, "aria-hidden");
119
+ };
50
120
  export {
51
- C as hideOthers
121
+ hideOthers
52
122
  };
53
123
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide aria-live elements - https://github.com/theKashey/aria-hidden/issues/10\n // and script elements, as they have no impact on accessibility.\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live], script')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":["getDefaultParent","originalTarget","sampleTarget","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","applyAttributeToOthers","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","attr","alreadyHidden","counterValue","markerValue","e","hideOthers","activeParentNode"],"mappings":"AAAA,IAAIA,IAAmB,SAAUC,GAAgB;AAC7C,MAAI,OAAO,WAAa;AACpB,WAAO;AAEX,MAAIC,IAAe,MAAM,QAAQD,CAAc,IAAIA,EAAe,CAAC,IAAIA;AACvE,SAAOC,EAAa,cAAc;AACtC,GACIC,IAAa,oBAAI,QAAO,GACxBC,IAAoB,oBAAI,QAAO,GAC/BC,IAAY,CAAA,GACZC,IAAY,GACZC,IAAa,SAAUC,GAAM;AAC7B,SAAOA,MAASA,EAAK,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AC,CAAC,GACzFjB,EAAuBJ,GAASqB,GAAkBf,GAAY,aAAa,KALvE,WAAY;AAAE,WAAO;AAAA,EAAM;AAM1C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide aria-live elements - https://github.com/theKashey/aria-hidden/issues/10\n // and script elements, as they have no impact on accessibility.\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live], script')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":[],"mappings":"AAAA,IAAI,mBAAmB,SAAU,gBAAgB;AAC7C,MAAI,OAAO,aAAa,aAAa;AACjC,WAAO;AAAA,EACX;AACA,MAAI,eAAe,MAAM,QAAQ,cAAc,IAAI,eAAe,CAAC,IAAI;AACvE,SAAO,aAAa,cAAc;AACtC;AACA,IAAI,aAAa,oBAAI,QAAO;AAC5B,IAAI,oBAAoB,oBAAI,QAAO;AACnC,IAAI,YAAY,CAAA;AAChB,IAAI,YAAY;AAChB,IAAI,aAAa,SAAU,MAAM;AAC7B,SAAO,SAAS,KAAK,QAAQ,WAAW,KAAK,UAAU;AAC3D;AACA,IAAI,iBAAiB,SAAU,QAAQ,SAAS;AAC5C,SAAO,QACF,IAAI,SAAU,QA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BAAiB,CAAC,cAAc,CAAC;AAC1F,MAAI,mBAAiC,iBAAiB,cAAc;AACpE,MAAI,CAAC,kBAAkB;AACnB,WAAO,WAAY;AAAE,aAAO;AAAA,IAAM;AAAA,EACtC;AAGA,UAAQ,KAAK,MAAM,SAAS,MAAM,KAAK,iBAAiB,iBAAiB,qBAAqB,CAAC,CAAC;AAChG,SAAO,uBAAuB,SAAS,kBAAkB,YAAY,aAAa;AACtF;","x_google_ignoreList":[0]}
@@ -1,2 +1,46 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../../clsx/dist/clsx.cjs"),y=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,r=C.clsx,O=(t,l)=>e=>{var s;if(l?.variants==null)return r(t,e?.class,e?.className);const{variants:v,defaultVariants:u}=l,V=Object.keys(v).map(n=>{const a=e?.[n],d=u?.[n];if(a===null)return null;const i=y(a)||y(d);return v[n][i]}),c=e&&Object.entries(e).reduce((n,a)=>{let[d,i]=a;return i===void 0||(n[d]=i),n},{}),N=l==null||(s=l.compoundVariants)===null||s===void 0?void 0:s.reduce((n,a)=>{let{class:d,className:i,...b}=a;return Object.entries(b).every(f=>{let[m,o]=f;return Array.isArray(o)?o.includes({...u,...c}[m]):{...u,...c}[m]===o})?[...n,d,i]:n},[]);return r(t,V,N,e?.class,e?.className)};exports.cva=O;exports.cx=r;
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const clsx = require("../../clsx/dist/clsx.cjs");
4
+ const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
5
+ const cx = clsx.clsx;
6
+ const cva = (base, config) => (props) => {
7
+ var _config_compoundVariants;
8
+ if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
9
+ const { variants, defaultVariants } = config;
10
+ const getVariantClassNames = Object.keys(variants).map((variant) => {
11
+ const variantProp = props === null || props === void 0 ? void 0 : props[variant];
12
+ const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
13
+ if (variantProp === null) return null;
14
+ const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
15
+ return variants[variant][variantKey];
16
+ });
17
+ const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
18
+ let [key, value] = param;
19
+ if (value === void 0) {
20
+ return acc;
21
+ }
22
+ acc[key] = value;
23
+ return acc;
24
+ }, {});
25
+ const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
26
+ let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
27
+ return Object.entries(compoundVariantOptions).every((param2) => {
28
+ let [key, value] = param2;
29
+ return Array.isArray(value) ? value.includes({
30
+ ...defaultVariants,
31
+ ...propsWithoutUndefined
32
+ }[key]) : {
33
+ ...defaultVariants,
34
+ ...propsWithoutUndefined
35
+ }[key] === value;
36
+ }) ? [
37
+ ...acc,
38
+ cvClass,
39
+ cvClassName
40
+ ] : acc;
41
+ }, []);
42
+ return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
43
+ };
44
+ exports.cva = cva;
45
+ exports.cx = cx;
2
46
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/class-variance-authority/dist/index.mjs"],"sourcesContent":["/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n"],"names":["falsyToString","value","cx","clsx","cva","base","config","props","_config_compoundVariants","variants","defaultVariants","getVariantClassNames","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","acc","param","key","getCompoundVariantClassNames","cvClass","cvClassName","comp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AAGgB,EACHI,EACAC,CAChB,EAAgBL,CACR,EAAG,CAAA,CAAE,EACL,OAAOf,EAAGG,EAAMM,EAAsBS,EAA4Eb,GAAM,MAAqDA,GAAM,SAAS,CAChM","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/class-variance-authority/dist/index.mjs"],"sourcesContent":["/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n"],"names":["clsx","param"],"mappings":";;;AAeA,MAAM,gBAAgB,CAAC,UAAQ,OAAO,UAAU,YAAY,GAAG,KAAK,KAAK,UAAU,IAAI,MAAM;AACjF,MAAC,KAAKA,KAAAA;AACN,MAAC,MAAM,CAAC,MAAM,WAAS,CAAC,UAAQ;AACpC,MAAI;AACJ,OAAK,WAAW,QAAQ,WAAW,SAAS,SAAS,OAAO,aAAa,KAAM,QAAO,GAAG,MAAM,UAAU,QAAQ,UAAU,SAAS,SAAS,MAAM,OAAO,UAAU,QAAQ,UAAU,SAAS,SAAS,MAAM,SAAS;AACvN,QAAM,EAAE,UAAU,gBAAe,IAAK;AACtC,QAAM,uBAAuB,OAAO,KAAK,QAAQ,EAAE,IAAI,CAAC,YAAU;AAC9D,UAAM,cAAc,UAAU,QAAQ,UAAU,SAAS,SAAS,MAAM,OAAO;AAC/E,UAAM,qBAAqB,oBAAoB,QAAQ,oBAAoB,SAAS,SAAS,gBAAgB,OAAO;AACpH,QAAI,gBAAgB,KAAM,QAAO;AACjC,UAAM,aAAa,cAAc,WAAW,KAAK,cAAc,kBAAkB;AACjF,WAAO,SAAS,OAAO,EAAE,UAAU;AAAA,EACvC,CAAC;AACD,QAAM,wBAAwB,SAAS,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,KAAK,UAAQ;AAC9E,QAAI,CAAC,KAAK,KAAK,IAAI;AACnB,QAAI,UAAU,QAAW;AACrB,aAAO;AAAA,IACX;AACA,QAAI,GAAG,IAAI;AACX,WAAO;AAAA,EACX,GAAG,CAAA,CAAE;AACL,QAAM,+BAA+B,WAAW,QAAQ,WAAW,SAAS,UAAU,2BAA2B,OAAO,sBAAsB,QAAQ,6BAA6B,SAAS,SAAS,yBAAyB,OAAO,CAAC,KAAK,UAAQ;AAC/O,QAAI,EAAE,OAAO,SAAS,WAAW,aAAa,GAAG,uBAAsB,IAAK;AAC5E,WAAO,OAAO,QAAQ,sBAAsB,EAAE,MAAM,CAACC,WAAQ;AACzD,UAAI,CAAC,KAAK,KAAK,IAAIA;AACnB,aAAO,MAAM,QAAQ,KAAK,IAAI,MAAM,SAAS;AAAA,QACzC,GAAG;AAAA,QACH,GAAG;AAAA,MACvB,EAAkB,GAAG,CAAC,IAAK;AAAA,QACP,GAAG;AAAA,QACH,GAAG;AAAA,MACvB,EAAmB,GAAG,MAAM;AAAA,IAChB,CAAC,IAAI;AAAA,MACD,GAAG;AAAA,MACH;AAAA,MACA;AAAA,IAChB,IAAgB;AAAA,EACR,GAAG,CAAA,CAAE;AACL,SAAO,GAAG,MAAM,sBAAsB,8BAA8B,UAAU,QAAQ,UAAU,SAAS,SAAS,MAAM,OAAO,UAAU,QAAQ,UAAU,SAAS,SAAS,MAAM,SAAS;AAChM;;;","x_google_ignoreList":[0]}
@@ -1,36 +1,46 @@
1
- import { clsx as O } from "../../clsx/dist/clsx.js";
2
- const m = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
3
- var s;
4
- if (l?.variants == null) return y(e, n?.class, n?.className);
5
- const { variants: r, defaultVariants: d } = l, V = Object.keys(r).map((t) => {
6
- const a = n?.[t], u = d?.[t];
7
- if (a === null) return null;
8
- const i = m(a) || m(u);
9
- return r[t][i];
10
- }), v = n && Object.entries(n).reduce((t, a) => {
11
- let [u, i] = a;
12
- return i === void 0 || (t[u] = i), t;
13
- }, {}), N = l == null || (s = l.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((t, a) => {
14
- let { class: u, className: i, ...f } = a;
15
- return Object.entries(f).every((C) => {
16
- let [c, o] = C;
17
- return Array.isArray(o) ? o.includes({
18
- ...d,
19
- ...v
20
- }[c]) : {
21
- ...d,
22
- ...v
23
- }[c] === o;
1
+ import { clsx } from "../../clsx/dist/clsx.js";
2
+ const falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
3
+ const cx = clsx;
4
+ const cva = (base, config) => (props) => {
5
+ var _config_compoundVariants;
6
+ if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
7
+ const { variants, defaultVariants } = config;
8
+ const getVariantClassNames = Object.keys(variants).map((variant) => {
9
+ const variantProp = props === null || props === void 0 ? void 0 : props[variant];
10
+ const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
11
+ if (variantProp === null) return null;
12
+ const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
13
+ return variants[variant][variantKey];
14
+ });
15
+ const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param) => {
16
+ let [key, value] = param;
17
+ if (value === void 0) {
18
+ return acc;
19
+ }
20
+ acc[key] = value;
21
+ return acc;
22
+ }, {});
23
+ const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
24
+ let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
25
+ return Object.entries(compoundVariantOptions).every((param2) => {
26
+ let [key, value] = param2;
27
+ return Array.isArray(value) ? value.includes({
28
+ ...defaultVariants,
29
+ ...propsWithoutUndefined
30
+ }[key]) : {
31
+ ...defaultVariants,
32
+ ...propsWithoutUndefined
33
+ }[key] === value;
24
34
  }) ? [
25
- ...t,
26
- u,
27
- i
28
- ] : t;
35
+ ...acc,
36
+ cvClass,
37
+ cvClassName
38
+ ] : acc;
29
39
  }, []);
30
- return y(e, V, N, n?.class, n?.className);
40
+ return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
31
41
  };
32
42
  export {
33
- j as cva,
34
- y as cx
43
+ cva,
44
+ cx
35
45
  };
36
46
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/class-variance-authority/dist/index.mjs"],"sourcesContent":["/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n"],"names":["falsyToString","value","cx","clsx","cva","base","config","props","_config_compoundVariants","variants","defaultVariants","getVariantClassNames","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","acc","param","key","getCompoundVariantClassNames","cvClass","cvClassName","compoundVariantOptions"],"mappings":";AAeA,MAAMA,IAAgB,CAACC,MAAQ,OAAOA,KAAU,YAAY,GAAGA,CAAK,KAAKA,MAAU,IAAI,MAAMA,GAChFC,IAAKC,GACLC,IAAM,CAACC,GAAMC,MAAS,CAACC,MAAQ;AACpC,MAAIC;AACJ,MAAqDF,GAAO,YAAa,KAAM,QAAOJ,EAAGG,GAAoDE,GAAM,OAAqDA,GAAM,SAAS;AACvN,QAAM,EAAE,UAAAE,GAAU,iBAAAC,EAAe,IAAKJ,GAChCK,IAAuB,OAAO,KAAKF,CAAQ,EAAE,IAAI,CAACG,MAAU;AAC9D,UAAMC,IAA4DN,IAAMK,CAAO,GACzEE,IAAuFJ,IAAgBE,CAAO;AACpH,QAAIC,MAAgB,KAAM,QAAO;AACjC,UAAME,IAAaf,EAAca,CAAW,KAAKb,EAAcc,CAAkB;AACjF,WAAOL,EAASG,CAAO,EAAEG,CAAU;AAAA,EACvC,CAAC,GACKC,IAAwBT,KAAS,OAAO,QAAQA,CAAK,EAAE,OAAO,CAACU,GAAKC,MAAQ;AAC9E,QAAI,CAACC,GAAKlB,CAAK,IAAIiB;AACnB,WAAIjB,MAAU,WAGdgB,EAAIE,CAAG,IAAIlB,IACJgB;AAAA,EACX,GAAG,CAAA,CAAE,GACCG,IAA+Bd,KAAW,SAAsCE,IAA2BF,EAAO,sBAAsB,QAAQE,MAA6B,SAAvG,SAAyHA,EAAyB,OAAO,CAACS,GAAKC,MAAQ;AAC/O,QAAI,EAAE,OAAOG,GAAS,WAAWC,GAAa,GAAGC,EAAsB,IAAKL;AAC5E,WAAO,OAAO,QAAQK,CAAsB,EAAE,MAAM,CAACL,MAAQ;AACzD,UAAI,CAACC,GAAKlB,CAAK,IAAIiB;AACnB,aAAO,MAAM,QAAQjB,CAAK,IAAIA,EAAM,SAAS;AAAA,QACzC,GAAGS;AAAA,QACH,GAAGM;AAAA,MACvB,EAAkBG,CAAG,CAAC,IAAK;AAAA,QACP,GAAGT;AAAA,QACH,GAAGM;AAAA,MACvB,EAAmBG,CAAG,MAAMlB;AAAA,IAChB,CAAC,IAAI;AAAA,MACD,GAAGgB;AAAA,MACHI;AAAA,MACAC;AAAA,IAChB,IAAgBL;AAAA,EACR,GAAG,CAAA,CAAE;AACL,SAAOf,EAAGG,GAAMM,GAAsBS,GAA4Eb,GAAM,OAAqDA,GAAM,SAAS;AAChM;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../node_modules/class-variance-authority/dist/index.mjs"],"sourcesContent":["/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n"],"names":["param"],"mappings":";AAeA,MAAM,gBAAgB,CAAC,UAAQ,OAAO,UAAU,YAAY,GAAG,KAAK,KAAK,UAAU,IAAI,MAAM;AACjF,MAAC,KAAK;AACN,MAAC,MAAM,CAAC,MAAM,WAAS,CAAC,UAAQ;AACpC,MAAI;AACJ,OAAK,WAAW,QAAQ,WAAW,SAAS,SAAS,OAAO,aAAa,KAAM,QAAO,GAAG,MAAM,UAAU,QAAQ,UAAU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A,EACR,GAAG,CAAA,CAAE;AACL,SAAO,GAAG,MAAM,sBAAsB,8BAA8B,UAAU,QAAQ,UAAU,SAAS,SAAS,MAAM,OAAO,UAAU,QAAQ,UAAU,SAAS,SAAS,MAAM,SAAS;AAChM;","x_google_ignoreList":[0]}
@@ -1,2 +1,18 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function n(r){var o,e,t="";if(typeof r=="string"||typeof r=="number")t+=r;else if(typeof r=="object")if(Array.isArray(r)){var u=r.length;for(o=0;o<u;o++)r[o]&&(e=n(r[o]))&&(t&&(t+=" "),t+=e)}else for(e in r)r[e]&&(t&&(t+=" "),t+=e);return t}function f(){for(var r,o,e=0,t="",u=arguments.length;e<u;e++)(r=arguments[e])&&(o=n(r))&&(t&&(t+=" "),t+=o);return t}exports.clsx=f;exports.default=f;
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ function r(e) {
4
+ var t, f, n = "";
5
+ if ("string" == typeof e || "number" == typeof e) n += e;
6
+ else if ("object" == typeof e) if (Array.isArray(e)) {
7
+ var o = e.length;
8
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
9
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
10
+ return n;
11
+ }
12
+ function clsx() {
13
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
14
+ return n;
15
+ }
16
+ exports.clsx = clsx;
17
+ exports.default = clsx;
2
18
  //# sourceMappingURL=clsx.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"clsx.cjs","sources":["../../../../../../node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"names":["r","e","t","f","n","o","clsx"],"mappings":"4GAAA,SAASA,EAAEC,EAAE,CAAC,IAAIC,EAAEC,EAAEC,EAAE,GAAG,GAAa,OAAOH,GAAjB,UAA8B,OAAOA,GAAjB,SAAmBG,GAAGH,UAAoB,OAAOA,GAAjB,SAAmB,GAAG,MAAM,QAAQA,CAAC,EAAE,CAAC,IAAII,EAAEJ,EAAE,OAAO,IAAIC,EAAE,EAAEA,EAAEG,EAAEH,IAAID,EAAEC,CAAC,IAAIC,EAAEH,EAAEC,EAAEC,CAAC,CAAC,KAAKE,IAAIA,GAAG,KAAKA,GAAGD,EAAE,KAAM,KAAIA,KAAKF,EAAEA,EAAEE,CAAC,IAAIC,IAAIA,GAAG,KAAKA,GAAGD,GAAG,OAAOC,CAAC,CAAQ,SAASE,GAAM,CAAC,QAAQL,EAAEC,EAAEC,EAAE,EAAEC,EAAE,GAAGC,EAAE,UAAU,OAAOF,EAAEE,EAAEF,KAAKF,EAAE,UAAUE,CAAC,KAAKD,EAAEF,EAAEC,CAAC,KAAKG,IAAIA,GAAG,KAAKA,GAAGF,GAAG,OAAOE,CAAC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"clsx.cjs","sources":["../../../../../../node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"names":[],"mappings":";;AAAA,SAAS,EAAE,GAAE;AAAC,MAAI,GAAE,GAAE,IAAE;AAAG,MAAG,YAAU,OAAO,KAAG,YAAU,OAAO,EAAE,MAAG;AAAA,WAAU,YAAU,OAAO,EAAE,KAAG,MAAM,QAAQ,CAAC,GAAE;AAAC,QAAI,IAAE,EAAE;AAAO,SAAI,IAAE,GAAE,IAAE,GAAE,IAAI,GAAE,CAAC,MAAI,IAAE,EAAE,EAAE,CAAC,CAAC,OAAK,MAAI,KAAG,MAAK,KAAG;AAAA,EAAE,MAAM,MAAI,KAAK,EAAE,GAAE,CAAC,MAAI,MAAI,KAAG,MAAK,KAAG;AAAG,SAAO;AAAC;AAAQ,SAAS,OAAM;AAAC,WAAQ,GAAE,GAAE,IAAE,GAAE,IAAE,IAAG,IAAE,UAAU,QAAO,IAAE,GAAE,IAAI,EAAC,IAAE,UAAU,CAAC,OAAK,IAAE,EAAE,CAAC,OAAK,MAAI,KAAG,MAAK,KAAG;AAAG,SAAO;AAAC;;;","x_google_ignoreList":[0]}
@@ -1,18 +1,18 @@
1
- function a(r) {
2
- var n, f, t = "";
3
- if (typeof r == "string" || typeof r == "number") t += r;
4
- else if (typeof r == "object") if (Array.isArray(r)) {
5
- var o = r.length;
6
- for (n = 0; n < o; n++) r[n] && (f = a(r[n])) && (t && (t += " "), t += f);
7
- } else for (f in r) r[f] && (t && (t += " "), t += f);
8
- return t;
1
+ function r(e) {
2
+ var t, f, n = "";
3
+ if ("string" == typeof e || "number" == typeof e) n += e;
4
+ else if ("object" == typeof e) if (Array.isArray(e)) {
5
+ var o = e.length;
6
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
7
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
8
+ return n;
9
9
  }
10
- function i() {
11
- for (var r, n, f = 0, t = "", o = arguments.length; f < o; f++) (r = arguments[f]) && (n = a(r)) && (t && (t += " "), t += n);
12
- return t;
10
+ function clsx() {
11
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
12
+ return n;
13
13
  }
14
14
  export {
15
- i as clsx,
16
- i as default
15
+ clsx,
16
+ clsx as default
17
17
  };
18
18
  //# sourceMappingURL=clsx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"clsx.js","sources":["../../../../../../node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"names":["r","e","t","n","clsx"],"mappings":"AAAA,SAASA,EAAEC,GAAE;AAAC,MAAIC,GAAE,GAAEC,IAAE;AAAG,MAAa,OAAOF,KAAjB,YAA8B,OAAOA,KAAjB,SAAmB,CAAAE,KAAGF;AAAA,WAAoB,OAAOA,KAAjB,SAAmB,KAAG,MAAM,QAAQA,CAAC,GAAE;AAAC,QAAI,IAAEA,EAAE;AAAO,SAAIC,IAAE,GAAEA,IAAE,GAAEA,IAAI,CAAAD,EAAEC,CAAC,MAAI,IAAEF,EAAEC,EAAEC,CAAC,CAAC,OAAKC,MAAIA,KAAG,MAAKA,KAAG;AAAA,EAAE,MAAM,MAAI,KAAKF,EAAE,CAAAA,EAAE,CAAC,MAAIE,MAAIA,KAAG,MAAKA,KAAG;AAAG,SAAOA;AAAC;AAAQ,SAASC,IAAM;AAAC,WAAQH,GAAEC,GAAE,IAAE,GAAEC,IAAE,IAAG,IAAE,UAAU,QAAO,IAAE,GAAE,IAAI,EAACF,IAAE,UAAU,CAAC,OAAKC,IAAEF,EAAEC,CAAC,OAAKE,MAAIA,KAAG,MAAKA,KAAGD;AAAG,SAAOC;AAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"clsx.js","sources":["../../../../../../node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"names":[],"mappings":"AAAA,SAAS,EAAE,GAAE;AAAC,MAAI,GAAE,GAAE,IAAE;AAAG,MAAG,YAAU,OAAO,KAAG,YAAU,OAAO,EAAE,MAAG;AAAA,WAAU,YAAU,OAAO,EAAE,KAAG,MAAM,QAAQ,CAAC,GAAE;AAAC,QAAI,IAAE,EAAE;AAAO,SAAI,IAAE,GAAE,IAAE,GAAE,IAAI,GAAE,CAAC,MAAI,IAAE,EAAE,EAAE,CAAC,CAAC,OAAK,MAAI,KAAG,MAAK,KAAG;AAAA,EAAE,MAAM,MAAI,KAAK,EAAE,GAAE,CAAC,MAAI,MAAI,KAAG,MAAK,KAAG;AAAG,SAAO;AAAC;AAAQ,SAAS,OAAM;AAAC,WAAQ,GAAE,GAAE,IAAE,GAAE,IAAE,IAAG,IAAE,UAAU,QAAO,IAAE,GAAE,IAAI,EAAC,IAAE,UAAU,CAAC,OAAK,IAAE,EAAE,CAAC,OAAK,MAAI,KAAG,MAAK,KAAG;AAAG,SAAO;AAAC;","x_google_ignoreList":[0]}
@@ -1,2 +1,10 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};exports.getNonce=e;
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ var getNonce = function() {
4
+ if (typeof __webpack_nonce__ !== "undefined") {
5
+ return __webpack_nonce__;
6
+ }
7
+ return void 0;
8
+ };
9
+ exports.getNonce = getNonce;
2
10
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/get-nonce/dist/es2015/index.js"],"sourcesContent":["var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n"],"names":["getNonce"],"mappings":"gFAIU,IAACA,EAAW,UAAY,CAI9B,GAAI,OAAO,kBAAsB,IAC7B,OAAO,iBAGf","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/get-nonce/dist/es2015/index.js"],"sourcesContent":["var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n"],"names":[],"mappings":";;AAIU,IAAC,WAAW,WAAY;AAI9B,MAAI,OAAO,sBAAsB,aAAa;AAC1C,WAAO;AAAA,EACX;AACA,SAAO;AACX;;","x_google_ignoreList":[0]}
@@ -1,8 +1,10 @@
1
- var e = function() {
2
- if (typeof __webpack_nonce__ < "u")
1
+ var getNonce = function() {
2
+ if (typeof __webpack_nonce__ !== "undefined") {
3
3
  return __webpack_nonce__;
4
+ }
5
+ return void 0;
4
6
  };
5
7
  export {
6
- e as getNonce
8
+ getNonce
7
9
  };
8
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/get-nonce/dist/es2015/index.js"],"sourcesContent":["var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n"],"names":["getNonce"],"mappings":"AAIU,IAACA,IAAW,WAAY;AAI9B,MAAI,OAAO,oBAAsB;AAC7B,WAAO;AAGf;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../node_modules/get-nonce/dist/es2015/index.js"],"sourcesContent":["var currentNonce;\nexport var setNonce = function (nonce) {\n currentNonce = nonce;\n};\nexport var getNonce = function () {\n if (currentNonce) {\n return currentNonce;\n }\n if (typeof __webpack_nonce__ !== 'undefined') {\n return __webpack_nonce__;\n }\n return undefined;\n};\n"],"names":[],"mappings":"AAIU,IAAC,WAAW,WAAY;AAI9B,MAAI,OAAO,sBAAsB,aAAa;AAC1C,WAAO;AAAA,EACX;AACA,SAAO;AACX;","x_google_ignoreList":[0]}