@lokalise/harmony 1.28.1 → 1.29.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 (399) hide show
  1. package/dist/harmony.cjs +31 -26
  2. package/dist/harmony.cjs.map +1 -1
  3. package/dist/harmony.mjs +32 -27
  4. package/dist/harmony.mjs.map +1 -1
  5. package/dist/harmony100.cjs +13 -6
  6. package/dist/harmony100.cjs.map +1 -1
  7. package/dist/harmony100.mjs +12 -5
  8. package/dist/harmony100.mjs.map +1 -1
  9. package/dist/harmony101.cjs +5 -40
  10. package/dist/harmony101.cjs.map +1 -1
  11. package/dist/harmony101.mjs +5 -40
  12. package/dist/harmony101.mjs.map +1 -1
  13. package/dist/harmony102.cjs +33 -53
  14. package/dist/harmony102.cjs.map +1 -1
  15. package/dist/harmony102.mjs +34 -54
  16. package/dist/harmony102.mjs.map +1 -1
  17. package/dist/harmony103.cjs +59 -6
  18. package/dist/harmony103.cjs.map +1 -1
  19. package/dist/harmony103.mjs +59 -6
  20. package/dist/harmony103.mjs.map +1 -1
  21. package/dist/harmony104.cjs +7 -6
  22. package/dist/harmony104.cjs.map +1 -1
  23. package/dist/harmony104.mjs +6 -5
  24. package/dist/harmony104.mjs.map +1 -1
  25. package/dist/harmony105.cjs +6 -99
  26. package/dist/harmony105.cjs.map +1 -1
  27. package/dist/harmony105.mjs +5 -81
  28. package/dist/harmony105.mjs.map +1 -1
  29. package/dist/harmony106.cjs +6 -63
  30. package/dist/harmony106.cjs.map +1 -1
  31. package/dist/harmony106.mjs +5 -62
  32. package/dist/harmony106.mjs.map +1 -1
  33. package/dist/harmony107.cjs +6 -89
  34. package/dist/harmony107.cjs.map +1 -1
  35. package/dist/harmony107.mjs +5 -88
  36. package/dist/harmony107.mjs.map +1 -1
  37. package/dist/harmony108.cjs +63 -19
  38. package/dist/harmony108.cjs.map +1 -1
  39. package/dist/harmony108.mjs +62 -18
  40. package/dist/harmony108.mjs.map +1 -1
  41. package/dist/harmony109.cjs +89 -6
  42. package/dist/harmony109.cjs.map +1 -1
  43. package/dist/harmony109.mjs +88 -5
  44. package/dist/harmony109.mjs.map +1 -1
  45. package/dist/harmony110.cjs +18 -5
  46. package/dist/harmony110.cjs.map +1 -1
  47. package/dist/harmony110.mjs +18 -5
  48. package/dist/harmony110.mjs.map +1 -1
  49. package/dist/harmony113.cjs +1 -1
  50. package/dist/harmony113.mjs +1 -1
  51. package/dist/harmony114.cjs +2 -2
  52. package/dist/harmony114.mjs +2 -2
  53. package/dist/harmony116.cjs +13 -7
  54. package/dist/harmony116.cjs.map +1 -1
  55. package/dist/harmony116.mjs +13 -7
  56. package/dist/harmony116.mjs.map +1 -1
  57. package/dist/harmony117.cjs +15 -57
  58. package/dist/harmony117.cjs.map +1 -1
  59. package/dist/harmony117.mjs +15 -57
  60. package/dist/harmony117.mjs.map +1 -1
  61. package/dist/harmony118.cjs +15 -59
  62. package/dist/harmony118.cjs.map +1 -1
  63. package/dist/harmony118.mjs +15 -59
  64. package/dist/harmony118.mjs.map +1 -1
  65. package/dist/harmony119.cjs +7 -18
  66. package/dist/harmony119.cjs.map +1 -1
  67. package/dist/harmony119.mjs +6 -17
  68. package/dist/harmony119.mjs.map +1 -1
  69. package/dist/harmony120.cjs +57 -13
  70. package/dist/harmony120.cjs.map +1 -1
  71. package/dist/harmony120.mjs +57 -13
  72. package/dist/harmony120.mjs.map +1 -1
  73. package/dist/harmony121.cjs +59 -14
  74. package/dist/harmony121.cjs.map +1 -1
  75. package/dist/harmony121.mjs +59 -14
  76. package/dist/harmony121.mjs.map +1 -1
  77. package/dist/harmony122.cjs +19 -17
  78. package/dist/harmony122.cjs.map +1 -1
  79. package/dist/harmony122.mjs +18 -16
  80. package/dist/harmony122.mjs.map +1 -1
  81. package/dist/harmony123.cjs +1 -1
  82. package/dist/harmony123.mjs +1 -1
  83. package/dist/harmony125.cjs +3 -3
  84. package/dist/harmony125.mjs +3 -3
  85. package/dist/harmony127.cjs +6 -46
  86. package/dist/harmony127.cjs.map +1 -1
  87. package/dist/harmony127.mjs +6 -46
  88. package/dist/harmony127.mjs.map +1 -1
  89. package/dist/harmony128.cjs +13 -13
  90. package/dist/harmony128.cjs.map +1 -1
  91. package/dist/harmony128.mjs +12 -12
  92. package/dist/harmony128.mjs.map +1 -1
  93. package/dist/harmony129.cjs +31 -5
  94. package/dist/harmony129.cjs.map +1 -1
  95. package/dist/harmony129.mjs +31 -5
  96. package/dist/harmony129.mjs.map +1 -1
  97. package/dist/harmony130.cjs +13 -11
  98. package/dist/harmony130.cjs.map +1 -1
  99. package/dist/harmony130.mjs +13 -11
  100. package/dist/harmony130.mjs.map +1 -1
  101. package/dist/harmony131.cjs +45 -31
  102. package/dist/harmony131.cjs.map +1 -1
  103. package/dist/harmony131.mjs +45 -31
  104. package/dist/harmony131.mjs.map +1 -1
  105. package/dist/harmony132.cjs +13 -15
  106. package/dist/harmony132.cjs.map +1 -1
  107. package/dist/harmony132.mjs +12 -14
  108. package/dist/harmony132.mjs.map +1 -1
  109. package/dist/harmony15.cjs +1 -1
  110. package/dist/harmony15.mjs +1 -1
  111. package/dist/harmony22.cjs +2 -2
  112. package/dist/harmony22.mjs +2 -2
  113. package/dist/harmony23.cjs +1 -1
  114. package/dist/harmony23.mjs +1 -1
  115. package/dist/harmony24.cjs +1 -1
  116. package/dist/harmony24.mjs +1 -1
  117. package/dist/harmony25.cjs +1 -1
  118. package/dist/harmony25.mjs +1 -1
  119. package/dist/harmony26.cjs +2 -2
  120. package/dist/harmony26.mjs +2 -2
  121. package/dist/harmony27.cjs +2 -2
  122. package/dist/harmony27.mjs +2 -2
  123. package/dist/harmony28.cjs +2 -2
  124. package/dist/harmony28.mjs +2 -2
  125. package/dist/harmony29.cjs +1 -1
  126. package/dist/harmony29.mjs +1 -1
  127. package/dist/harmony3.cjs +3 -3
  128. package/dist/harmony3.mjs +3 -3
  129. package/dist/harmony30.cjs +12 -3
  130. package/dist/harmony30.cjs.map +1 -1
  131. package/dist/harmony30.mjs +12 -3
  132. package/dist/harmony30.mjs.map +1 -1
  133. package/dist/harmony31.cjs +1 -1
  134. package/dist/harmony31.mjs +1 -1
  135. package/dist/harmony32.cjs +1 -1
  136. package/dist/harmony32.mjs +1 -1
  137. package/dist/harmony33.cjs +1 -1
  138. package/dist/harmony33.mjs +1 -1
  139. package/dist/harmony37.cjs +15 -7
  140. package/dist/harmony37.cjs.map +1 -1
  141. package/dist/harmony37.mjs +15 -7
  142. package/dist/harmony37.mjs.map +1 -1
  143. package/dist/harmony38.cjs +7 -11
  144. package/dist/harmony38.cjs.map +1 -1
  145. package/dist/harmony38.mjs +9 -13
  146. package/dist/harmony38.mjs.map +1 -1
  147. package/dist/harmony39.cjs +8 -8
  148. package/dist/harmony39.cjs.map +1 -1
  149. package/dist/harmony39.mjs +8 -8
  150. package/dist/harmony39.mjs.map +1 -1
  151. package/dist/harmony4.cjs +10 -10
  152. package/dist/harmony4.mjs +10 -10
  153. package/dist/harmony40.cjs +14 -12
  154. package/dist/harmony40.cjs.map +1 -1
  155. package/dist/harmony40.mjs +14 -12
  156. package/dist/harmony40.mjs.map +1 -1
  157. package/dist/harmony41.cjs +8 -8
  158. package/dist/harmony41.cjs.map +1 -1
  159. package/dist/harmony41.mjs +9 -9
  160. package/dist/harmony41.mjs.map +1 -1
  161. package/dist/harmony42.cjs +9 -9
  162. package/dist/harmony42.cjs.map +1 -1
  163. package/dist/harmony42.mjs +10 -10
  164. package/dist/harmony42.mjs.map +1 -1
  165. package/dist/harmony43.cjs +12 -14
  166. package/dist/harmony43.cjs.map +1 -1
  167. package/dist/harmony43.mjs +12 -14
  168. package/dist/harmony43.mjs.map +1 -1
  169. package/dist/harmony44.cjs +10 -10
  170. package/dist/harmony44.cjs.map +1 -1
  171. package/dist/harmony44.mjs +10 -10
  172. package/dist/harmony44.mjs.map +1 -1
  173. package/dist/harmony45.cjs +8 -8
  174. package/dist/harmony45.cjs.map +1 -1
  175. package/dist/harmony45.mjs +8 -8
  176. package/dist/harmony45.mjs.map +1 -1
  177. package/dist/harmony46.cjs +7 -7
  178. package/dist/harmony46.cjs.map +1 -1
  179. package/dist/harmony46.mjs +7 -7
  180. package/dist/harmony46.mjs.map +1 -1
  181. package/dist/harmony47.cjs +14 -12
  182. package/dist/harmony47.cjs.map +1 -1
  183. package/dist/harmony47.mjs +14 -12
  184. package/dist/harmony47.mjs.map +1 -1
  185. package/dist/harmony48.cjs +12 -14
  186. package/dist/harmony48.cjs.map +1 -1
  187. package/dist/harmony48.mjs +12 -14
  188. package/dist/harmony48.mjs.map +1 -1
  189. package/dist/harmony49.cjs +8 -8
  190. package/dist/harmony49.cjs.map +1 -1
  191. package/dist/harmony49.mjs +8 -8
  192. package/dist/harmony49.mjs.map +1 -1
  193. package/dist/harmony5.cjs +1 -1
  194. package/dist/harmony5.mjs +1 -1
  195. package/dist/harmony50.cjs +10 -7
  196. package/dist/harmony50.cjs.map +1 -1
  197. package/dist/harmony50.mjs +12 -9
  198. package/dist/harmony50.mjs.map +1 -1
  199. package/dist/harmony51.cjs +14 -56
  200. package/dist/harmony51.cjs.map +1 -1
  201. package/dist/harmony51.mjs +14 -56
  202. package/dist/harmony51.mjs.map +1 -1
  203. package/dist/harmony52.cjs +48 -72
  204. package/dist/harmony52.cjs.map +1 -1
  205. package/dist/harmony52.mjs +47 -71
  206. package/dist/harmony52.mjs.map +1 -1
  207. package/dist/harmony53.cjs +78 -4
  208. package/dist/harmony53.cjs.map +1 -1
  209. package/dist/harmony53.mjs +78 -4
  210. package/dist/harmony53.mjs.map +1 -1
  211. package/dist/harmony54.cjs +4 -21
  212. package/dist/harmony54.cjs.map +1 -1
  213. package/dist/harmony54.mjs +4 -21
  214. package/dist/harmony54.mjs.map +1 -1
  215. package/dist/harmony55.cjs +20 -34
  216. package/dist/harmony55.cjs.map +1 -1
  217. package/dist/harmony55.mjs +20 -34
  218. package/dist/harmony55.mjs.map +1 -1
  219. package/dist/harmony56.cjs +35 -120
  220. package/dist/harmony56.cjs.map +1 -1
  221. package/dist/harmony56.mjs +34 -119
  222. package/dist/harmony56.mjs.map +1 -1
  223. package/dist/harmony57.cjs +121 -20
  224. package/dist/harmony57.cjs.map +1 -1
  225. package/dist/harmony57.mjs +120 -19
  226. package/dist/harmony57.mjs.map +1 -1
  227. package/dist/harmony58.cjs +28 -25
  228. package/dist/harmony58.cjs.map +1 -1
  229. package/dist/harmony58.mjs +28 -25
  230. package/dist/harmony58.mjs.map +1 -1
  231. package/dist/harmony59.cjs +24 -6
  232. package/dist/harmony59.cjs.map +1 -1
  233. package/dist/harmony59.mjs +24 -6
  234. package/dist/harmony59.mjs.map +1 -1
  235. package/dist/harmony6.cjs +4 -4
  236. package/dist/harmony6.mjs +4 -4
  237. package/dist/harmony60.cjs +6 -82
  238. package/dist/harmony60.cjs.map +1 -1
  239. package/dist/harmony60.mjs +6 -82
  240. package/dist/harmony60.mjs.map +1 -1
  241. package/dist/harmony61.cjs +80 -20
  242. package/dist/harmony61.cjs.map +1 -1
  243. package/dist/harmony61.mjs +80 -20
  244. package/dist/harmony61.mjs.map +1 -1
  245. package/dist/harmony62.cjs +22 -16
  246. package/dist/harmony62.cjs.map +1 -1
  247. package/dist/harmony62.mjs +22 -16
  248. package/dist/harmony62.mjs.map +1 -1
  249. package/dist/harmony63.cjs +19 -16
  250. package/dist/harmony63.cjs.map +1 -1
  251. package/dist/harmony63.mjs +18 -15
  252. package/dist/harmony63.mjs.map +1 -1
  253. package/dist/harmony64.cjs +15 -18
  254. package/dist/harmony64.cjs.map +1 -1
  255. package/dist/harmony64.mjs +15 -18
  256. package/dist/harmony64.mjs.map +1 -1
  257. package/dist/harmony65.cjs +18 -61
  258. package/dist/harmony65.cjs.map +1 -1
  259. package/dist/harmony65.mjs +18 -61
  260. package/dist/harmony65.mjs.map +1 -1
  261. package/dist/harmony66.cjs +61 -6
  262. package/dist/harmony66.cjs.map +1 -1
  263. package/dist/harmony66.mjs +61 -6
  264. package/dist/harmony66.mjs.map +1 -1
  265. package/dist/harmony67.cjs +7 -10
  266. package/dist/harmony67.cjs.map +1 -1
  267. package/dist/harmony67.mjs +6 -9
  268. package/dist/harmony67.mjs.map +1 -1
  269. package/dist/harmony68.cjs +8 -17
  270. package/dist/harmony68.cjs.map +1 -1
  271. package/dist/harmony68.mjs +7 -16
  272. package/dist/harmony68.mjs.map +1 -1
  273. package/dist/harmony69.cjs +13 -18
  274. package/dist/harmony69.cjs.map +1 -1
  275. package/dist/harmony69.mjs +13 -18
  276. package/dist/harmony69.mjs.map +1 -1
  277. package/dist/harmony70.cjs +22 -4
  278. package/dist/harmony70.cjs.map +1 -1
  279. package/dist/harmony70.mjs +22 -4
  280. package/dist/harmony70.mjs.map +1 -1
  281. package/dist/harmony71.cjs +4 -31
  282. package/dist/harmony71.cjs.map +1 -1
  283. package/dist/harmony71.mjs +5 -32
  284. package/dist/harmony71.mjs.map +1 -1
  285. package/dist/harmony72.cjs +26 -26
  286. package/dist/harmony72.cjs.map +1 -1
  287. package/dist/harmony72.mjs +27 -27
  288. package/dist/harmony72.mjs.map +1 -1
  289. package/dist/harmony73.cjs +25 -12
  290. package/dist/harmony73.cjs.map +1 -1
  291. package/dist/harmony73.mjs +25 -12
  292. package/dist/harmony73.mjs.map +1 -1
  293. package/dist/harmony74.cjs +12 -24
  294. package/dist/harmony74.cjs.map +1 -1
  295. package/dist/harmony74.mjs +13 -25
  296. package/dist/harmony74.mjs.map +1 -1
  297. package/dist/harmony75.cjs +27 -55
  298. package/dist/harmony75.cjs.map +1 -1
  299. package/dist/harmony75.mjs +29 -57
  300. package/dist/harmony75.mjs.map +1 -1
  301. package/dist/harmony76.cjs +60 -10
  302. package/dist/harmony76.cjs.map +1 -1
  303. package/dist/harmony76.mjs +59 -9
  304. package/dist/harmony76.mjs.map +1 -1
  305. package/dist/harmony77.cjs +10 -9
  306. package/dist/harmony77.cjs.map +1 -1
  307. package/dist/harmony77.mjs +9 -8
  308. package/dist/harmony77.mjs.map +1 -1
  309. package/dist/harmony78.cjs +5 -26
  310. package/dist/harmony78.cjs.map +1 -1
  311. package/dist/harmony78.mjs +8 -29
  312. package/dist/harmony78.mjs.map +1 -1
  313. package/dist/harmony79.cjs +29 -3
  314. package/dist/harmony79.cjs.map +1 -1
  315. package/dist/harmony79.mjs +29 -3
  316. package/dist/harmony79.mjs.map +1 -1
  317. package/dist/harmony80.cjs +4 -7
  318. package/dist/harmony80.cjs.map +1 -1
  319. package/dist/harmony80.mjs +3 -6
  320. package/dist/harmony80.mjs.map +1 -1
  321. package/dist/harmony81.cjs +3 -6
  322. package/dist/harmony81.cjs.map +1 -1
  323. package/dist/harmony81.mjs +3 -6
  324. package/dist/harmony81.mjs.map +1 -1
  325. package/dist/harmony82.cjs +6 -6
  326. package/dist/harmony82.mjs +6 -6
  327. package/dist/harmony83.cjs +9 -57
  328. package/dist/harmony83.cjs.map +1 -1
  329. package/dist/harmony83.mjs +8 -56
  330. package/dist/harmony83.mjs.map +1 -1
  331. package/dist/harmony84.cjs +51 -27
  332. package/dist/harmony84.cjs.map +1 -1
  333. package/dist/harmony84.mjs +52 -28
  334. package/dist/harmony84.mjs.map +1 -1
  335. package/dist/harmony85.cjs +33 -5
  336. package/dist/harmony85.cjs.map +1 -1
  337. package/dist/harmony85.mjs +33 -5
  338. package/dist/harmony85.mjs.map +1 -1
  339. package/dist/harmony86.cjs +6 -10
  340. package/dist/harmony86.cjs.map +1 -1
  341. package/dist/harmony86.mjs +5 -9
  342. package/dist/harmony86.mjs.map +1 -1
  343. package/dist/harmony87.cjs +6 -21
  344. package/dist/harmony87.cjs.map +1 -1
  345. package/dist/harmony87.mjs +6 -21
  346. package/dist/harmony87.mjs.map +1 -1
  347. package/dist/harmony88.cjs +21 -3
  348. package/dist/harmony88.cjs.map +1 -1
  349. package/dist/harmony88.mjs +21 -3
  350. package/dist/harmony88.mjs.map +1 -1
  351. package/dist/harmony89.cjs +6 -21
  352. package/dist/harmony89.cjs.map +1 -1
  353. package/dist/harmony89.mjs +5 -20
  354. package/dist/harmony89.mjs.map +1 -1
  355. package/dist/harmony90.cjs +21 -12
  356. package/dist/harmony90.cjs.map +1 -1
  357. package/dist/harmony90.mjs +20 -11
  358. package/dist/harmony90.mjs.map +1 -1
  359. package/dist/harmony91.cjs +13 -12
  360. package/dist/harmony91.cjs.map +1 -1
  361. package/dist/harmony91.mjs +12 -11
  362. package/dist/harmony91.mjs.map +1 -1
  363. package/dist/harmony92.cjs +12 -22
  364. package/dist/harmony92.cjs.map +1 -1
  365. package/dist/harmony92.mjs +11 -21
  366. package/dist/harmony92.mjs.map +1 -1
  367. package/dist/harmony93.cjs +22 -19
  368. package/dist/harmony93.cjs.map +1 -1
  369. package/dist/harmony93.mjs +21 -18
  370. package/dist/harmony93.mjs.map +1 -1
  371. package/dist/harmony94.cjs +18 -14
  372. package/dist/harmony94.cjs.map +1 -1
  373. package/dist/harmony94.mjs +18 -14
  374. package/dist/harmony94.mjs.map +1 -1
  375. package/dist/harmony95.cjs +14 -16
  376. package/dist/harmony95.cjs.map +1 -1
  377. package/dist/harmony95.mjs +14 -16
  378. package/dist/harmony95.mjs.map +1 -1
  379. package/dist/harmony96.cjs +99 -21
  380. package/dist/harmony96.cjs.map +1 -1
  381. package/dist/harmony96.mjs +81 -20
  382. package/dist/harmony96.mjs.map +1 -1
  383. package/dist/harmony97.cjs +21 -6
  384. package/dist/harmony97.cjs.map +1 -1
  385. package/dist/harmony97.mjs +20 -5
  386. package/dist/harmony97.mjs.map +1 -1
  387. package/dist/harmony98.cjs +5 -131
  388. package/dist/harmony98.cjs.map +1 -1
  389. package/dist/harmony98.mjs +5 -131
  390. package/dist/harmony98.mjs.map +1 -1
  391. package/dist/harmony99.cjs +132 -12
  392. package/dist/harmony99.cjs.map +1 -1
  393. package/dist/harmony99.mjs +131 -11
  394. package/dist/harmony99.mjs.map +1 -1
  395. package/dist/types/src/features/publicApi/hooks/useDeleteScoreMutation.d.ts +17 -0
  396. package/dist/types/src/features/publicApi/node.d.ts +1 -0
  397. package/dist/types/src/features/publicApi/score.d.ts +72 -1
  398. package/dist/types/src/features/publicApi/types/scoreTypes.d.ts +16 -0
  399. package/package.json +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"harmony65.mjs","sources":["../node_modules/react-resize-detector/build/useResizeDetector.js"],"sourcesContent":["import { useRef, useState, useCallback, useEffect } from 'react';\nimport { useCallbackRef, useRefProxy, getDimensions, patchResizeCallback } from './utils.js';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction useResizeDetector({ skipOnMount = false, refreshMode, refreshRate = 1000, refreshOptions, handleWidth = true, handleHeight = true, targetRef, observerOptions, onResize, } = {}) {\n // If `skipOnMount` is enabled, skip the first resize event\n const skipResize = useRef(skipOnMount);\n // Wrap the `onResize` callback with a ref to avoid re-renders\n const onResizeRef = useCallbackRef(onResize);\n const [size, setSize] = useState({\n width: undefined,\n height: undefined,\n });\n // Create a proxy ref to handle conditional rendering and dynamic ref changes of the target element\n const { refProxy, refElement } = useRefProxy(targetRef);\n const { box } = observerOptions || {};\n const resizeCallback = useCallback((entries) => {\n if (!handleWidth && !handleHeight)\n return;\n if (skipResize.current) {\n skipResize.current = false;\n return;\n }\n // Only update the size if one of the observed dimensions has changed\n const shouldSetSize = (prevSize, nextSize) => (handleWidth && prevSize.width !== nextSize.width) || (handleHeight && prevSize.height !== nextSize.height);\n entries.forEach((entry) => {\n const dimensions = getDimensions(entry, box);\n setSize((prevSize) => {\n if (!shouldSetSize(prevSize, dimensions))\n return prevSize;\n onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({\n width: dimensions.width,\n height: dimensions.height,\n entry,\n });\n return dimensions;\n });\n });\n }, [handleWidth, handleHeight, skipResize, box]);\n // Throttle/Debounce the resize event if refreshMode is configured\n const resizeHandler = useCallback(patchResizeCallback(resizeCallback, refreshMode, refreshRate, refreshOptions), [\n resizeCallback,\n refreshMode,\n refreshRate,\n refreshOptions,\n ]);\n // Attach ResizeObserver to the element\n useEffect(() => {\n let resizeObserver;\n if (refElement) {\n resizeObserver = new window.ResizeObserver(resizeHandler);\n resizeObserver.observe(refElement, observerOptions);\n }\n // If refElement is not available, reset the size\n else if (size.width || size.height) {\n onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({\n width: null,\n height: null,\n entry: null,\n });\n setSize({ width: undefined, height: undefined });\n }\n // Disconnect the ResizeObserver when the component is unmounted\n return () => {\n var _a, _b, _c;\n (_a = resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect) === null || _a === void 0 ? void 0 : _a.call(resizeObserver);\n (_c = (_b = resizeHandler).cancel) === null || _c === void 0 ? void 0 : _c.call(_b);\n };\n }, [resizeHandler, refElement]);\n return Object.assign({ ref: refProxy }, size);\n}\n\nexport { useResizeDetector as default };\n//# sourceMappingURL=useResizeDetector.js.map\n"],"names":[],"mappings":";;AAIA,SAAS,kBAAkB,EAAE,cAAc,OAAO,aAAa,cAAc,KAAM,gBAAgB,cAAc,MAAM,eAAe,MAAM,WAAW,iBAAiB,SAAW,IAAG,IAAI;AAEtL,QAAM,aAAa,OAAO,WAAW;AAErC,QAAM,cAAc,eAAe,QAAQ;AAC3C,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS;AAAA,IAC7B,OAAO;AAAA,IACP,QAAQ;AAAA,EAChB,CAAK;AAED,QAAM,EAAE,UAAU,eAAe,YAAY,SAAS;AACtD,QAAM,EAAE,QAAQ,mBAAmB,CAAE;AACrC,QAAM,iBAAiB,YAAY,CAAC,YAAY;AAC5C,QAAI,CAAC,eAAe,CAAC;AACjB;AACJ,QAAI,WAAW,SAAS;AACpB,iBAAW,UAAU;AACrB;AAAA,IACZ;AAEQ,UAAM,gBAAgB,CAAC,UAAU,aAAc,eAAe,SAAS,UAAU,SAAS,SAAW,gBAAgB,SAAS,WAAW,SAAS;AAClJ,YAAQ,QAAQ,CAAC,UAAU;AACvB,YAAM,aAAa,cAAc,OAAO,GAAG;AAC3C,cAAQ,CAAC,aAAa;AAClB,YAAI,CAAC,cAAc,UAAU,UAAU;AACnC,iBAAO;AACX,wBAAgB,QAAQ,gBAAgB,SAAS,SAAS,YAAY;AAAA,UAClE,OAAO,WAAW;AAAA,UAClB,QAAQ,WAAW;AAAA,UACnB;AAAA,QACpB,CAAiB;AACD,eAAO;AAAA,MACvB,CAAa;AAAA,IACb,CAAS;AAAA,EACJ,GAAE,CAAC,aAAa,cAAc,YAAY,GAAG,CAAC;AAE/C,QAAM,gBAAgB,YAAY,oBAAoB,gBAAgB,aAAa,aAAa,cAAc,GAAG;AAAA,IAC7G;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACR,CAAK;AAED,YAAU,MAAM;AACZ,QAAI;AACJ,QAAI,YAAY;AACZ,uBAAiB,IAAI,OAAO,eAAe,aAAa;AACxD,qBAAe,QAAQ,YAAY,eAAe;AAAA,IAC9D,WAEiB,KAAK,SAAS,KAAK,QAAQ;AAChC,sBAAgB,QAAQ,gBAAgB,SAAS,SAAS,YAAY;AAAA,QAClE,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,OAAO;AAAA,MACvB,CAAa;AACD,cAAQ,EAAE,OAAO,QAAW,QAAQ,OAAS,CAAE;AAAA,IAC3D;AAEQ,WAAO,MAAM;AACT,UAAI,IAAI,IAAI;AACZ,OAAC,KAAK,mBAAmB,QAAQ,mBAAmB,SAAS,SAAS,eAAe,gBAAgB,QAAQ,OAAO,SAAS,SAAS,GAAG,KAAK,cAAc;AAC5J,OAAC,MAAM,KAAK,eAAe,YAAY,QAAQ,OAAO,SAAS,SAAS,GAAG,KAAK,EAAE;AAAA,IACrF;AAAA,EACT,GAAO,CAAC,eAAe,UAAU,CAAC;AAC9B,SAAO,OAAO,OAAO,EAAE,KAAK,SAAQ,GAAI,IAAI;AAChD;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"harmony65.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -1,9 +1,64 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const sidebarContainer = "_sidebarContainer_bmdti_1";
4
- const styles = {
5
- sidebarContainer
6
- };
7
- exports.default = styles;
8
- exports.sidebarContainer = sidebarContainer;
3
+ const React = require("react");
4
+ const utils = require("./harmony96.cjs");
5
+ function useResizeDetector({ skipOnMount = false, refreshMode, refreshRate = 1e3, refreshOptions, handleWidth = true, handleHeight = true, targetRef, observerOptions, onResize } = {}) {
6
+ const skipResize = React.useRef(skipOnMount);
7
+ const onResizeRef = utils.useCallbackRef(onResize);
8
+ const [size, setSize] = React.useState({
9
+ width: void 0,
10
+ height: void 0
11
+ });
12
+ const { refProxy, refElement } = utils.useRefProxy(targetRef);
13
+ const { box } = observerOptions || {};
14
+ const resizeCallback = React.useCallback((entries) => {
15
+ if (!handleWidth && !handleHeight)
16
+ return;
17
+ if (skipResize.current) {
18
+ skipResize.current = false;
19
+ return;
20
+ }
21
+ const shouldSetSize = (prevSize, nextSize) => handleWidth && prevSize.width !== nextSize.width || handleHeight && prevSize.height !== nextSize.height;
22
+ entries.forEach((entry) => {
23
+ const dimensions = utils.getDimensions(entry, box);
24
+ setSize((prevSize) => {
25
+ if (!shouldSetSize(prevSize, dimensions))
26
+ return prevSize;
27
+ onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({
28
+ width: dimensions.width,
29
+ height: dimensions.height,
30
+ entry
31
+ });
32
+ return dimensions;
33
+ });
34
+ });
35
+ }, [handleWidth, handleHeight, skipResize, box]);
36
+ const resizeHandler = React.useCallback(utils.patchResizeCallback(resizeCallback, refreshMode, refreshRate, refreshOptions), [
37
+ resizeCallback,
38
+ refreshMode,
39
+ refreshRate,
40
+ refreshOptions
41
+ ]);
42
+ React.useEffect(() => {
43
+ let resizeObserver;
44
+ if (refElement) {
45
+ resizeObserver = new window.ResizeObserver(resizeHandler);
46
+ resizeObserver.observe(refElement, observerOptions);
47
+ } else if (size.width || size.height) {
48
+ onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({
49
+ width: null,
50
+ height: null,
51
+ entry: null
52
+ });
53
+ setSize({ width: void 0, height: void 0 });
54
+ }
55
+ return () => {
56
+ var _a, _b, _c;
57
+ (_a = resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect) === null || _a === void 0 ? void 0 : _a.call(resizeObserver);
58
+ (_c = (_b = resizeHandler).cancel) === null || _c === void 0 ? void 0 : _c.call(_b);
59
+ };
60
+ }, [resizeHandler, refElement]);
61
+ return Object.assign({ ref: refProxy }, size);
62
+ }
63
+ exports.default = useResizeDetector;
9
64
  //# sourceMappingURL=harmony66.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony66.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"harmony66.cjs","sources":["../node_modules/react-resize-detector/build/useResizeDetector.js"],"sourcesContent":["import { useRef, useState, useCallback, useEffect } from 'react';\nimport { useCallbackRef, useRefProxy, getDimensions, patchResizeCallback } from './utils.js';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction useResizeDetector({ skipOnMount = false, refreshMode, refreshRate = 1000, refreshOptions, handleWidth = true, handleHeight = true, targetRef, observerOptions, onResize, } = {}) {\n // If `skipOnMount` is enabled, skip the first resize event\n const skipResize = useRef(skipOnMount);\n // Wrap the `onResize` callback with a ref to avoid re-renders\n const onResizeRef = useCallbackRef(onResize);\n const [size, setSize] = useState({\n width: undefined,\n height: undefined,\n });\n // Create a proxy ref to handle conditional rendering and dynamic ref changes of the target element\n const { refProxy, refElement } = useRefProxy(targetRef);\n const { box } = observerOptions || {};\n const resizeCallback = useCallback((entries) => {\n if (!handleWidth && !handleHeight)\n return;\n if (skipResize.current) {\n skipResize.current = false;\n return;\n }\n // Only update the size if one of the observed dimensions has changed\n const shouldSetSize = (prevSize, nextSize) => (handleWidth && prevSize.width !== nextSize.width) || (handleHeight && prevSize.height !== nextSize.height);\n entries.forEach((entry) => {\n const dimensions = getDimensions(entry, box);\n setSize((prevSize) => {\n if (!shouldSetSize(prevSize, dimensions))\n return prevSize;\n onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({\n width: dimensions.width,\n height: dimensions.height,\n entry,\n });\n return dimensions;\n });\n });\n }, [handleWidth, handleHeight, skipResize, box]);\n // Throttle/Debounce the resize event if refreshMode is configured\n const resizeHandler = useCallback(patchResizeCallback(resizeCallback, refreshMode, refreshRate, refreshOptions), [\n resizeCallback,\n refreshMode,\n refreshRate,\n refreshOptions,\n ]);\n // Attach ResizeObserver to the element\n useEffect(() => {\n let resizeObserver;\n if (refElement) {\n resizeObserver = new window.ResizeObserver(resizeHandler);\n resizeObserver.observe(refElement, observerOptions);\n }\n // If refElement is not available, reset the size\n else if (size.width || size.height) {\n onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({\n width: null,\n height: null,\n entry: null,\n });\n setSize({ width: undefined, height: undefined });\n }\n // Disconnect the ResizeObserver when the component is unmounted\n return () => {\n var _a, _b, _c;\n (_a = resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect) === null || _a === void 0 ? void 0 : _a.call(resizeObserver);\n (_c = (_b = resizeHandler).cancel) === null || _c === void 0 ? void 0 : _c.call(_b);\n };\n }, [resizeHandler, refElement]);\n return Object.assign({ ref: refProxy }, size);\n}\n\nexport { useResizeDetector as default };\n//# sourceMappingURL=useResizeDetector.js.map\n"],"names":["useRef","useCallbackRef","useState","useRefProxy","useCallback","getDimensions","patchResizeCallback","useEffect"],"mappings":";;;;AAIA,SAAS,kBAAkB,EAAE,cAAc,OAAO,aAAa,cAAc,KAAM,gBAAgB,cAAc,MAAM,eAAe,MAAM,WAAW,iBAAiB,SAAW,IAAG,IAAI;AAEtL,QAAM,aAAaA,MAAM,OAAC,WAAW;AAErC,QAAM,cAAcC,MAAc,eAAC,QAAQ;AAC3C,QAAM,CAAC,MAAM,OAAO,IAAIC,eAAS;AAAA,IAC7B,OAAO;AAAA,IACP,QAAQ;AAAA,EAChB,CAAK;AAED,QAAM,EAAE,UAAU,eAAeC,MAAAA,YAAY,SAAS;AACtD,QAAM,EAAE,QAAQ,mBAAmB,CAAE;AACrC,QAAM,iBAAiBC,kBAAY,CAAC,YAAY;AAC5C,QAAI,CAAC,eAAe,CAAC;AACjB;AACJ,QAAI,WAAW,SAAS;AACpB,iBAAW,UAAU;AACrB;AAAA,IACZ;AAEQ,UAAM,gBAAgB,CAAC,UAAU,aAAc,eAAe,SAAS,UAAU,SAAS,SAAW,gBAAgB,SAAS,WAAW,SAAS;AAClJ,YAAQ,QAAQ,CAAC,UAAU;AACvB,YAAM,aAAaC,MAAAA,cAAc,OAAO,GAAG;AAC3C,cAAQ,CAAC,aAAa;AAClB,YAAI,CAAC,cAAc,UAAU,UAAU;AACnC,iBAAO;AACX,wBAAgB,QAAQ,gBAAgB,SAAS,SAAS,YAAY;AAAA,UAClE,OAAO,WAAW;AAAA,UAClB,QAAQ,WAAW;AAAA,UACnB;AAAA,QACpB,CAAiB;AACD,eAAO;AAAA,MACvB,CAAa;AAAA,IACb,CAAS;AAAA,EACJ,GAAE,CAAC,aAAa,cAAc,YAAY,GAAG,CAAC;AAE/C,QAAM,gBAAgBD,MAAAA,YAAYE,MAAmB,oBAAC,gBAAgB,aAAa,aAAa,cAAc,GAAG;AAAA,IAC7G;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACR,CAAK;AAEDC,QAAAA,UAAU,MAAM;AACZ,QAAI;AACJ,QAAI,YAAY;AACZ,uBAAiB,IAAI,OAAO,eAAe,aAAa;AACxD,qBAAe,QAAQ,YAAY,eAAe;AAAA,IAC9D,WAEiB,KAAK,SAAS,KAAK,QAAQ;AAChC,sBAAgB,QAAQ,gBAAgB,SAAS,SAAS,YAAY;AAAA,QAClE,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,OAAO;AAAA,MACvB,CAAa;AACD,cAAQ,EAAE,OAAO,QAAW,QAAQ,OAAS,CAAE;AAAA,IAC3D;AAEQ,WAAO,MAAM;AACT,UAAI,IAAI,IAAI;AACZ,OAAC,KAAK,mBAAmB,QAAQ,mBAAmB,SAAS,SAAS,eAAe,gBAAgB,QAAQ,OAAO,SAAS,SAAS,GAAG,KAAK,cAAc;AAC5J,OAAC,MAAM,KAAK,eAAe,YAAY,QAAQ,OAAO,SAAS,SAAS,GAAG,KAAK,EAAE;AAAA,IACrF;AAAA,EACT,GAAO,CAAC,eAAe,UAAU,CAAC;AAC9B,SAAO,OAAO,OAAO,EAAE,KAAK,SAAQ,GAAI,IAAI;AAChD;;","x_google_ignoreList":[0]}
@@ -1,9 +1,64 @@
1
- const sidebarContainer = "_sidebarContainer_bmdti_1";
2
- const styles = {
3
- sidebarContainer
4
- };
1
+ import { useRef, useState, useCallback, useEffect } from "react";
2
+ import { useCallbackRef, useRefProxy, getDimensions, patchResizeCallback } from "./harmony96.mjs";
3
+ function useResizeDetector({ skipOnMount = false, refreshMode, refreshRate = 1e3, refreshOptions, handleWidth = true, handleHeight = true, targetRef, observerOptions, onResize } = {}) {
4
+ const skipResize = useRef(skipOnMount);
5
+ const onResizeRef = useCallbackRef(onResize);
6
+ const [size, setSize] = useState({
7
+ width: void 0,
8
+ height: void 0
9
+ });
10
+ const { refProxy, refElement } = useRefProxy(targetRef);
11
+ const { box } = observerOptions || {};
12
+ const resizeCallback = useCallback((entries) => {
13
+ if (!handleWidth && !handleHeight)
14
+ return;
15
+ if (skipResize.current) {
16
+ skipResize.current = false;
17
+ return;
18
+ }
19
+ const shouldSetSize = (prevSize, nextSize) => handleWidth && prevSize.width !== nextSize.width || handleHeight && prevSize.height !== nextSize.height;
20
+ entries.forEach((entry) => {
21
+ const dimensions = getDimensions(entry, box);
22
+ setSize((prevSize) => {
23
+ if (!shouldSetSize(prevSize, dimensions))
24
+ return prevSize;
25
+ onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({
26
+ width: dimensions.width,
27
+ height: dimensions.height,
28
+ entry
29
+ });
30
+ return dimensions;
31
+ });
32
+ });
33
+ }, [handleWidth, handleHeight, skipResize, box]);
34
+ const resizeHandler = useCallback(patchResizeCallback(resizeCallback, refreshMode, refreshRate, refreshOptions), [
35
+ resizeCallback,
36
+ refreshMode,
37
+ refreshRate,
38
+ refreshOptions
39
+ ]);
40
+ useEffect(() => {
41
+ let resizeObserver;
42
+ if (refElement) {
43
+ resizeObserver = new window.ResizeObserver(resizeHandler);
44
+ resizeObserver.observe(refElement, observerOptions);
45
+ } else if (size.width || size.height) {
46
+ onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({
47
+ width: null,
48
+ height: null,
49
+ entry: null
50
+ });
51
+ setSize({ width: void 0, height: void 0 });
52
+ }
53
+ return () => {
54
+ var _a, _b, _c;
55
+ (_a = resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect) === null || _a === void 0 ? void 0 : _a.call(resizeObserver);
56
+ (_c = (_b = resizeHandler).cancel) === null || _c === void 0 ? void 0 : _c.call(_b);
57
+ };
58
+ }, [resizeHandler, refElement]);
59
+ return Object.assign({ ref: refProxy }, size);
60
+ }
5
61
  export {
6
- styles as default,
7
- sidebarContainer
62
+ useResizeDetector as default
8
63
  };
9
64
  //# sourceMappingURL=harmony66.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony66.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"harmony66.mjs","sources":["../node_modules/react-resize-detector/build/useResizeDetector.js"],"sourcesContent":["import { useRef, useState, useCallback, useEffect } from 'react';\nimport { useCallbackRef, useRefProxy, getDimensions, patchResizeCallback } from './utils.js';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction useResizeDetector({ skipOnMount = false, refreshMode, refreshRate = 1000, refreshOptions, handleWidth = true, handleHeight = true, targetRef, observerOptions, onResize, } = {}) {\n // If `skipOnMount` is enabled, skip the first resize event\n const skipResize = useRef(skipOnMount);\n // Wrap the `onResize` callback with a ref to avoid re-renders\n const onResizeRef = useCallbackRef(onResize);\n const [size, setSize] = useState({\n width: undefined,\n height: undefined,\n });\n // Create a proxy ref to handle conditional rendering and dynamic ref changes of the target element\n const { refProxy, refElement } = useRefProxy(targetRef);\n const { box } = observerOptions || {};\n const resizeCallback = useCallback((entries) => {\n if (!handleWidth && !handleHeight)\n return;\n if (skipResize.current) {\n skipResize.current = false;\n return;\n }\n // Only update the size if one of the observed dimensions has changed\n const shouldSetSize = (prevSize, nextSize) => (handleWidth && prevSize.width !== nextSize.width) || (handleHeight && prevSize.height !== nextSize.height);\n entries.forEach((entry) => {\n const dimensions = getDimensions(entry, box);\n setSize((prevSize) => {\n if (!shouldSetSize(prevSize, dimensions))\n return prevSize;\n onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({\n width: dimensions.width,\n height: dimensions.height,\n entry,\n });\n return dimensions;\n });\n });\n }, [handleWidth, handleHeight, skipResize, box]);\n // Throttle/Debounce the resize event if refreshMode is configured\n const resizeHandler = useCallback(patchResizeCallback(resizeCallback, refreshMode, refreshRate, refreshOptions), [\n resizeCallback,\n refreshMode,\n refreshRate,\n refreshOptions,\n ]);\n // Attach ResizeObserver to the element\n useEffect(() => {\n let resizeObserver;\n if (refElement) {\n resizeObserver = new window.ResizeObserver(resizeHandler);\n resizeObserver.observe(refElement, observerOptions);\n }\n // If refElement is not available, reset the size\n else if (size.width || size.height) {\n onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({\n width: null,\n height: null,\n entry: null,\n });\n setSize({ width: undefined, height: undefined });\n }\n // Disconnect the ResizeObserver when the component is unmounted\n return () => {\n var _a, _b, _c;\n (_a = resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect) === null || _a === void 0 ? void 0 : _a.call(resizeObserver);\n (_c = (_b = resizeHandler).cancel) === null || _c === void 0 ? void 0 : _c.call(_b);\n };\n }, [resizeHandler, refElement]);\n return Object.assign({ ref: refProxy }, size);\n}\n\nexport { useResizeDetector as default };\n//# sourceMappingURL=useResizeDetector.js.map\n"],"names":[],"mappings":";;AAIA,SAAS,kBAAkB,EAAE,cAAc,OAAO,aAAa,cAAc,KAAM,gBAAgB,cAAc,MAAM,eAAe,MAAM,WAAW,iBAAiB,SAAW,IAAG,IAAI;AAEtL,QAAM,aAAa,OAAO,WAAW;AAErC,QAAM,cAAc,eAAe,QAAQ;AAC3C,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS;AAAA,IAC7B,OAAO;AAAA,IACP,QAAQ;AAAA,EAChB,CAAK;AAED,QAAM,EAAE,UAAU,eAAe,YAAY,SAAS;AACtD,QAAM,EAAE,QAAQ,mBAAmB,CAAE;AACrC,QAAM,iBAAiB,YAAY,CAAC,YAAY;AAC5C,QAAI,CAAC,eAAe,CAAC;AACjB;AACJ,QAAI,WAAW,SAAS;AACpB,iBAAW,UAAU;AACrB;AAAA,IACZ;AAEQ,UAAM,gBAAgB,CAAC,UAAU,aAAc,eAAe,SAAS,UAAU,SAAS,SAAW,gBAAgB,SAAS,WAAW,SAAS;AAClJ,YAAQ,QAAQ,CAAC,UAAU;AACvB,YAAM,aAAa,cAAc,OAAO,GAAG;AAC3C,cAAQ,CAAC,aAAa;AAClB,YAAI,CAAC,cAAc,UAAU,UAAU;AACnC,iBAAO;AACX,wBAAgB,QAAQ,gBAAgB,SAAS,SAAS,YAAY;AAAA,UAClE,OAAO,WAAW;AAAA,UAClB,QAAQ,WAAW;AAAA,UACnB;AAAA,QACpB,CAAiB;AACD,eAAO;AAAA,MACvB,CAAa;AAAA,IACb,CAAS;AAAA,EACJ,GAAE,CAAC,aAAa,cAAc,YAAY,GAAG,CAAC;AAE/C,QAAM,gBAAgB,YAAY,oBAAoB,gBAAgB,aAAa,aAAa,cAAc,GAAG;AAAA,IAC7G;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACR,CAAK;AAED,YAAU,MAAM;AACZ,QAAI;AACJ,QAAI,YAAY;AACZ,uBAAiB,IAAI,OAAO,eAAe,aAAa;AACxD,qBAAe,QAAQ,YAAY,eAAe;AAAA,IAC9D,WAEiB,KAAK,SAAS,KAAK,QAAQ;AAChC,sBAAgB,QAAQ,gBAAgB,SAAS,SAAS,YAAY;AAAA,QAClE,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,OAAO;AAAA,MACvB,CAAa;AACD,cAAQ,EAAE,OAAO,QAAW,QAAQ,OAAS,CAAE;AAAA,IAC3D;AAEQ,WAAO,MAAM;AACT,UAAI,IAAI,IAAI;AACZ,OAAC,KAAK,mBAAmB,QAAQ,mBAAmB,SAAS,SAAS,eAAe,gBAAgB,QAAQ,OAAO,SAAS,SAAS,GAAG,KAAK,cAAc;AAC5J,OAAC,MAAM,KAAK,eAAe,YAAY,QAAQ,OAAO,SAAS,SAAS,GAAG,KAAK,EAAE;AAAA,IACrF;AAAA,EACT,GAAO,CAAC,eAAe,UAAU,CAAC;AAC9B,SAAO,OAAO,OAAO,EAAE,KAAK,SAAQ,GAAI,IAAI;AAChD;","x_google_ignoreList":[0]}
@@ -1,12 +1,9 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("react/jsx-runtime");
4
- const Avatar_module = require("./harmony80.cjs");
5
- const Avatar = ({
6
- src,
7
- href = "/",
8
- ariaLabel = "Lokalise App Home",
9
- alt = "Lokalise Logo"
10
- }) => /* @__PURE__ */ jsxRuntime.jsx("a", { className: Avatar_module.default.logoLink, href, "aria-label": ariaLabel, children: /* @__PURE__ */ jsxRuntime.jsx("img", { src, alt }) });
11
- exports.Avatar = Avatar;
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const sidebarContainer = "_sidebarContainer_bmdti_1";
4
+ const styles = {
5
+ sidebarContainer
6
+ };
7
+ exports.default = styles;
8
+ exports.sidebarContainer = sidebarContainer;
12
9
  //# sourceMappingURL=harmony67.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony67.cjs","sources":["../src/components/Sidebar/Widgets/Avatar/Avatar.tsx"],"sourcesContent":["import styles from './Avatar.module.css'\n\ntype AvatarProps = {\n\t/** URL of the avatar/logo image */\n\tsrc: string\n\t/** Link destination when avatar is clicked. Defaults to '/' */\n\thref?: string\n\t/** Accessibility label for the avatar link. Defaults to 'Home' */\n\tariaLabel?: string\n\t/** Alt text for the avatar image. Defaults to 'Lokalise' */\n\talt?: string\n}\n\n/**\n * Display company main avatar / logo in the top section of the Sidebar.\n * Used as the main branding element and home navigation link.\n */\nexport const Avatar = ({\n\tsrc,\n\thref = '/',\n\tariaLabel = 'Lokalise App Home',\n\talt = 'Lokalise Logo',\n}: AvatarProps) => (\n\t<a className={styles.logoLink} href={href} aria-label={ariaLabel}>\n\t\t<img src={src} alt={alt} />\n\t</a>\n)\n"],"names":["jsx","styles"],"mappings":";;;;AAiBO,MAAM,SAAS,CAAC;AAAA,EACtB;AAAA,EACA,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,MAAM;AACP,MACEA,2BAAAA,IAAA,KAAA,EAAE,WAAWC,cAAA,QAAO,UAAU,MAAY,cAAY,WACtD,UAACD,2BAAAA,IAAA,OAAA,EAAI,KAAU,IAAA,CAAU,EAC1B,CAAA;;"}
1
+ {"version":3,"file":"harmony67.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,12 +1,9 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import styles from "./harmony80.mjs";
3
- const Avatar = ({
4
- src,
5
- href = "/",
6
- ariaLabel = "Lokalise App Home",
7
- alt = "Lokalise Logo"
8
- }) => /* @__PURE__ */ jsx("a", { className: styles.logoLink, href, "aria-label": ariaLabel, children: /* @__PURE__ */ jsx("img", { src, alt }) });
1
+ const sidebarContainer = "_sidebarContainer_bmdti_1";
2
+ const styles = {
3
+ sidebarContainer
4
+ };
9
5
  export {
10
- Avatar
6
+ styles as default,
7
+ sidebarContainer
11
8
  };
12
9
  //# sourceMappingURL=harmony67.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony67.mjs","sources":["../src/components/Sidebar/Widgets/Avatar/Avatar.tsx"],"sourcesContent":["import styles from './Avatar.module.css'\n\ntype AvatarProps = {\n\t/** URL of the avatar/logo image */\n\tsrc: string\n\t/** Link destination when avatar is clicked. Defaults to '/' */\n\thref?: string\n\t/** Accessibility label for the avatar link. Defaults to 'Home' */\n\tariaLabel?: string\n\t/** Alt text for the avatar image. Defaults to 'Lokalise' */\n\talt?: string\n}\n\n/**\n * Display company main avatar / logo in the top section of the Sidebar.\n * Used as the main branding element and home navigation link.\n */\nexport const Avatar = ({\n\tsrc,\n\thref = '/',\n\tariaLabel = 'Lokalise App Home',\n\talt = 'Lokalise Logo',\n}: AvatarProps) => (\n\t<a className={styles.logoLink} href={href} aria-label={ariaLabel}>\n\t\t<img src={src} alt={alt} />\n\t</a>\n)\n"],"names":[],"mappings":";;AAiBO,MAAM,SAAS,CAAC;AAAA,EACtB;AAAA,EACA,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,MAAM;AACP,MACE,oBAAA,KAAA,EAAE,WAAW,OAAO,UAAU,MAAY,cAAY,WACtD,UAAC,oBAAA,OAAA,EAAI,KAAU,IAAA,CAAU,EAC1B,CAAA;"}
1
+ {"version":3,"file":"harmony67.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,21 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const louis = require("@lokalise/louis");
5
- const clsx = require("./harmony63.cjs");
6
- const IconLink_module = require("./harmony81.cjs");
7
- const IconLink = ({ label, to, icon: Icon }) => {
8
- return /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsxRuntime.jsx(
9
- louis.Link,
10
- {
11
- "aria-label": label,
12
- className: clsx.clsx(IconLink_module.default.link, {
13
- [IconLink_module.default.active]: window.location.pathname.startsWith(to)
14
- }),
15
- href: to,
16
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "25px" })
17
- }
18
- ) });
19
- };
20
- exports.IconLink = IconLink;
4
+ const Avatar_module = require("./harmony81.cjs");
5
+ const Avatar = ({
6
+ src,
7
+ href = "/",
8
+ ariaLabel = "Lokalise App Home",
9
+ alt = "Lokalise Logo"
10
+ }) => /* @__PURE__ */ jsxRuntime.jsx("a", { className: Avatar_module.default.logoLink, href, "aria-label": ariaLabel, children: /* @__PURE__ */ jsxRuntime.jsx("img", { src, alt }) });
11
+ exports.Avatar = Avatar;
21
12
  //# sourceMappingURL=harmony68.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony68.cjs","sources":["../src/components/Sidebar/Widgets/IconLink/IconLink.tsx"],"sourcesContent":["import { Link, type SvgIconProps, Tooltip } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { FC } from 'react'\nimport styles from './IconLink.module.css'\n\ntype IconLinkProps = {\n\t/** URL destination for the link */\n\tto: string\n\t/** Text to display in the tooltip when hovering over the icon */\n\tlabel: string\n\t/** Icon component from @lokalise/louis to display */\n\ticon: FC<SvgIconProps>\n}\n\n/**\n * A navigation link component that displays an icon with a tooltip.\n * When hovered, shows a tooltip with the label text.\n * The link is highlighted when the current URL matches its destination.\n *\n * @example\n * ```tsx\n * <IconLink to=\"/projects\" label=\"Projects\" icon={FolderOpenIcon} />\n * ```\n */\nexport const IconLink = ({ label, to, icon: Icon }: IconLinkProps) => {\n\treturn (\n\t\t<Tooltip placement=\"right\" tooltip={label}>\n\t\t\t<Link\n\t\t\t\taria-label={label}\n\t\t\t\tclassName={clsx(styles.link, {\n\t\t\t\t\t[styles.active]: window.location.pathname.startsWith(to),\n\t\t\t\t})}\n\t\t\t\thref={to}\n\t\t\t>\n\t\t\t\t<Icon size=\"25px\" />\n\t\t\t</Link>\n\t\t</Tooltip>\n\t)\n}\n"],"names":["jsx","Tooltip","Link","clsx","styles"],"mappings":";;;;;;AAwBO,MAAM,WAAW,CAAC,EAAE,OAAO,IAAI,MAAM,WAA0B;AACrE,SACEA,2BAAA,IAAAC,MAAA,SAAA,EAAQ,WAAU,SAAQ,SAAS,OACnC,UAAAD,2BAAA;AAAA,IAACE,MAAA;AAAA,IAAA;AAAA,MACA,cAAY;AAAA,MACZ,WAAWC,KAAAA,KAAKC,gBAAA,QAAO,MAAM;AAAA,QAC5B,CAACA,gBAAAA,QAAO,MAAM,GAAG,OAAO,SAAS,SAAS,WAAW,EAAE;AAAA,MAAA,CACvD;AAAA,MACD,MAAM;AAAA,MAEN,UAAAJ,2BAAAA,IAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,IAAA;AAAA,EAAA,GAEpB;AAEF;;"}
1
+ {"version":3,"file":"harmony68.cjs","sources":["../src/components/Sidebar/Widgets/Avatar/Avatar.tsx"],"sourcesContent":["import styles from './Avatar.module.css'\n\ntype AvatarProps = {\n\t/** URL of the avatar/logo image */\n\tsrc: string\n\t/** Link destination when avatar is clicked. Defaults to '/' */\n\thref?: string\n\t/** Accessibility label for the avatar link. Defaults to 'Home' */\n\tariaLabel?: string\n\t/** Alt text for the avatar image. Defaults to 'Lokalise' */\n\talt?: string\n}\n\n/**\n * Display company main avatar / logo in the top section of the Sidebar.\n * Used as the main branding element and home navigation link.\n */\nexport const Avatar = ({\n\tsrc,\n\thref = '/',\n\tariaLabel = 'Lokalise App Home',\n\talt = 'Lokalise Logo',\n}: AvatarProps) => (\n\t<a className={styles.logoLink} href={href} aria-label={ariaLabel}>\n\t\t<img src={src} alt={alt} />\n\t</a>\n)\n"],"names":["jsx","styles"],"mappings":";;;;AAiBO,MAAM,SAAS,CAAC;AAAA,EACtB;AAAA,EACA,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,MAAM;AACP,MACEA,2BAAAA,IAAA,KAAA,EAAE,WAAWC,cAAA,QAAO,UAAU,MAAY,cAAY,WACtD,UAACD,2BAAAA,IAAA,OAAA,EAAI,KAAU,IAAA,CAAU,EAC1B,CAAA;;"}
@@ -1,21 +1,12 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Tooltip, Link } from "@lokalise/louis";
3
- import { clsx } from "./harmony63.mjs";
4
2
  import styles from "./harmony81.mjs";
5
- const IconLink = ({ label, to, icon: Icon }) => {
6
- return /* @__PURE__ */ jsx(Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsx(
7
- Link,
8
- {
9
- "aria-label": label,
10
- className: clsx(styles.link, {
11
- [styles.active]: window.location.pathname.startsWith(to)
12
- }),
13
- href: to,
14
- children: /* @__PURE__ */ jsx(Icon, { size: "25px" })
15
- }
16
- ) });
17
- };
3
+ const Avatar = ({
4
+ src,
5
+ href = "/",
6
+ ariaLabel = "Lokalise App Home",
7
+ alt = "Lokalise Logo"
8
+ }) => /* @__PURE__ */ jsx("a", { className: styles.logoLink, href, "aria-label": ariaLabel, children: /* @__PURE__ */ jsx("img", { src, alt }) });
18
9
  export {
19
- IconLink
10
+ Avatar
20
11
  };
21
12
  //# sourceMappingURL=harmony68.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony68.mjs","sources":["../src/components/Sidebar/Widgets/IconLink/IconLink.tsx"],"sourcesContent":["import { Link, type SvgIconProps, Tooltip } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { FC } from 'react'\nimport styles from './IconLink.module.css'\n\ntype IconLinkProps = {\n\t/** URL destination for the link */\n\tto: string\n\t/** Text to display in the tooltip when hovering over the icon */\n\tlabel: string\n\t/** Icon component from @lokalise/louis to display */\n\ticon: FC<SvgIconProps>\n}\n\n/**\n * A navigation link component that displays an icon with a tooltip.\n * When hovered, shows a tooltip with the label text.\n * The link is highlighted when the current URL matches its destination.\n *\n * @example\n * ```tsx\n * <IconLink to=\"/projects\" label=\"Projects\" icon={FolderOpenIcon} />\n * ```\n */\nexport const IconLink = ({ label, to, icon: Icon }: IconLinkProps) => {\n\treturn (\n\t\t<Tooltip placement=\"right\" tooltip={label}>\n\t\t\t<Link\n\t\t\t\taria-label={label}\n\t\t\t\tclassName={clsx(styles.link, {\n\t\t\t\t\t[styles.active]: window.location.pathname.startsWith(to),\n\t\t\t\t})}\n\t\t\t\thref={to}\n\t\t\t>\n\t\t\t\t<Icon size=\"25px\" />\n\t\t\t</Link>\n\t\t</Tooltip>\n\t)\n}\n"],"names":[],"mappings":";;;;AAwBO,MAAM,WAAW,CAAC,EAAE,OAAO,IAAI,MAAM,WAA0B;AACrE,SACE,oBAAA,SAAA,EAAQ,WAAU,SAAQ,SAAS,OACnC,UAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,cAAY;AAAA,MACZ,WAAW,KAAK,OAAO,MAAM;AAAA,QAC5B,CAAC,OAAO,MAAM,GAAG,OAAO,SAAS,SAAS,WAAW,EAAE;AAAA,MAAA,CACvD;AAAA,MACD,MAAM;AAAA,MAEN,UAAA,oBAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,IAAA;AAAA,EAAA,GAEpB;AAEF;"}
1
+ {"version":3,"file":"harmony68.mjs","sources":["../src/components/Sidebar/Widgets/Avatar/Avatar.tsx"],"sourcesContent":["import styles from './Avatar.module.css'\n\ntype AvatarProps = {\n\t/** URL of the avatar/logo image */\n\tsrc: string\n\t/** Link destination when avatar is clicked. Defaults to '/' */\n\thref?: string\n\t/** Accessibility label for the avatar link. Defaults to 'Home' */\n\tariaLabel?: string\n\t/** Alt text for the avatar image. Defaults to 'Lokalise' */\n\talt?: string\n}\n\n/**\n * Display company main avatar / logo in the top section of the Sidebar.\n * Used as the main branding element and home navigation link.\n */\nexport const Avatar = ({\n\tsrc,\n\thref = '/',\n\tariaLabel = 'Lokalise App Home',\n\talt = 'Lokalise Logo',\n}: AvatarProps) => (\n\t<a className={styles.logoLink} href={href} aria-label={ariaLabel}>\n\t\t<img src={src} alt={alt} />\n\t</a>\n)\n"],"names":[],"mappings":";;AAiBO,MAAM,SAAS,CAAC;AAAA,EACtB;AAAA,EACA,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,MAAM;AACP,MACE,oBAAA,KAAA,EAAE,WAAW,OAAO,UAAU,MAAY,cAAY,WACtD,UAAC,oBAAA,OAAA,EAAI,KAAU,IAAA,CAAU,EAC1B,CAAA;"}
@@ -2,25 +2,20 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const louis = require("@lokalise/louis");
5
- const clsx = require("./harmony63.cjs");
6
- const Menu_module = require("./harmony82.cjs");
7
- const Menu = ({ children, icon: Icon }) => {
8
- return /* @__PURE__ */ jsxRuntime.jsx(
9
- louis.Menu,
5
+ const clsx = require("./harmony64.cjs");
6
+ const IconLink_module = require("./harmony82.cjs");
7
+ const IconLink = ({ label, to, icon: Icon }) => {
8
+ return /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsxRuntime.jsx(
9
+ louis.Link,
10
10
  {
11
- menuButton: ({ opened }) => /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { placement: "right", tooltip: "Help", children: /* @__PURE__ */ jsxRuntime.jsx(
12
- "button",
13
- {
14
- type: "button",
15
- className: clsx.clsx(Menu_module.default.dropdownButton, {
16
- [Menu_module.default.dropdownButtonActive]: opened
17
- }),
18
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "25px" })
19
- }
20
- ) }),
21
- children: /* @__PURE__ */ jsxRuntime.jsx(louis.MenuList, { placement: "right-start", children })
11
+ "aria-label": label,
12
+ className: clsx.clsx(IconLink_module.default.link, {
13
+ [IconLink_module.default.active]: window.location.pathname.startsWith(to)
14
+ }),
15
+ href: to,
16
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "25px" })
22
17
  }
23
- );
18
+ ) });
24
19
  };
25
- exports.Menu = Menu;
20
+ exports.IconLink = IconLink;
26
21
  //# sourceMappingURL=harmony69.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony69.cjs","sources":["../src/components/Sidebar/Widgets/Menu/Menu.tsx"],"sourcesContent":["import { MenuList, type SvgIconProps, Tooltip, Menu as UIMenu } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { FC, PropsWithChildren } from 'react'\nimport styles from './Menu.module.css'\n\ntype MenuProps = PropsWithChildren<{\n\t/** Icon component from @lokalise/louis to display in the menu button */\n\ticon: FC<SvgIconProps>\n}>\n\n/**\n * A dropdown menu component that displays an icon button which reveals a menu list when clicked.\n * The menu is positioned to the right of the button and includes a tooltip.\n *\n * Used primarily for dropdown menus in the Sidebar, such as the Help menu.\n *\n * @example\n * ```tsx\n * <Menu icon={HelpCenterIcon}>\n * <MenuItem href=\"/docs\">Documentation</MenuItem>\n * <MenuItem href=\"/tutorial\">Tutorials</MenuItem>\n * <MenuDivider />\n * <MenuItem href=\"/blog\">Blog</MenuItem>\n * </Menu>\n * ```\n */\nexport const Menu = ({ children, icon: Icon }: MenuProps) => {\n\treturn (\n\t\t<UIMenu\n\t\t\tmenuButton={({ opened }) => (\n\t\t\t\t<Tooltip placement=\"right\" tooltip=\"Help\">\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclassName={clsx(styles.dropdownButton, {\n\t\t\t\t\t\t\t[styles.dropdownButtonActive]: opened,\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Icon size=\"25px\" />\n\t\t\t\t\t</button>\n\t\t\t\t</Tooltip>\n\t\t\t)}\n\t\t>\n\t\t\t<MenuList placement=\"right-start\">{children}</MenuList>\n\t\t</UIMenu>\n\t)\n}\n"],"names":["jsx","UIMenu","Tooltip","clsx","styles","MenuList"],"mappings":";;;;;;AA0BO,MAAM,OAAO,CAAC,EAAE,UAAU,MAAM,WAAsB;AAE3D,SAAAA,2BAAA;AAAA,IAACC,MAAA;AAAA,IAAA;AAAA,MACA,YAAY,CAAC,EAAE,OAAO,qCACpBC,MAAQ,SAAA,EAAA,WAAU,SAAQ,SAAQ,QAClC,UAAAF,2BAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,MAAK;AAAA,UACL,WAAWG,KAAAA,KAAKC,YAAA,QAAO,gBAAgB;AAAA,YACtC,CAACA,YAAAA,QAAO,oBAAoB,GAAG;AAAA,UAAA,CAC/B;AAAA,UAED,UAAAJ,2BAAAA,IAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,QAAA;AAAA,MAAA,GAEpB;AAAA,MAGD,UAACA,2BAAA,IAAAK,MAAA,UAAA,EAAS,WAAU,eAAe,SAAS,CAAA;AAAA,IAAA;AAAA,EAC7C;AAEF;;"}
1
+ {"version":3,"file":"harmony69.cjs","sources":["../src/components/Sidebar/Widgets/IconLink/IconLink.tsx"],"sourcesContent":["import { Link, type SvgIconProps, Tooltip } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { FC } from 'react'\nimport styles from './IconLink.module.css'\n\ntype IconLinkProps = {\n\t/** URL destination for the link */\n\tto: string\n\t/** Text to display in the tooltip when hovering over the icon */\n\tlabel: string\n\t/** Icon component from @lokalise/louis to display */\n\ticon: FC<SvgIconProps>\n}\n\n/**\n * A navigation link component that displays an icon with a tooltip.\n * When hovered, shows a tooltip with the label text.\n * The link is highlighted when the current URL matches its destination.\n *\n * @example\n * ```tsx\n * <IconLink to=\"/projects\" label=\"Projects\" icon={FolderOpenIcon} />\n * ```\n */\nexport const IconLink = ({ label, to, icon: Icon }: IconLinkProps) => {\n\treturn (\n\t\t<Tooltip placement=\"right\" tooltip={label}>\n\t\t\t<Link\n\t\t\t\taria-label={label}\n\t\t\t\tclassName={clsx(styles.link, {\n\t\t\t\t\t[styles.active]: window.location.pathname.startsWith(to),\n\t\t\t\t})}\n\t\t\t\thref={to}\n\t\t\t>\n\t\t\t\t<Icon size=\"25px\" />\n\t\t\t</Link>\n\t\t</Tooltip>\n\t)\n}\n"],"names":["jsx","Tooltip","Link","clsx","styles"],"mappings":";;;;;;AAwBO,MAAM,WAAW,CAAC,EAAE,OAAO,IAAI,MAAM,WAA0B;AACrE,SACEA,2BAAA,IAAAC,MAAA,SAAA,EAAQ,WAAU,SAAQ,SAAS,OACnC,UAAAD,2BAAA;AAAA,IAACE,MAAA;AAAA,IAAA;AAAA,MACA,cAAY;AAAA,MACZ,WAAWC,KAAAA,KAAKC,gBAAA,QAAO,MAAM;AAAA,QAC5B,CAACA,gBAAAA,QAAO,MAAM,GAAG,OAAO,SAAS,SAAS,WAAW,EAAE;AAAA,MAAA,CACvD;AAAA,MACD,MAAM;AAAA,MAEN,UAAAJ,2BAAAA,IAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,IAAA;AAAA,EAAA,GAEpB;AAEF;;"}
@@ -1,26 +1,21 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { Menu as Menu$1, MenuList, Tooltip } from "@lokalise/louis";
3
- import { clsx } from "./harmony63.mjs";
2
+ import { Tooltip, Link } from "@lokalise/louis";
3
+ import { clsx } from "./harmony64.mjs";
4
4
  import styles from "./harmony82.mjs";
5
- const Menu = ({ children, icon: Icon }) => {
6
- return /* @__PURE__ */ jsx(
7
- Menu$1,
5
+ const IconLink = ({ label, to, icon: Icon }) => {
6
+ return /* @__PURE__ */ jsx(Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsx(
7
+ Link,
8
8
  {
9
- menuButton: ({ opened }) => /* @__PURE__ */ jsx(Tooltip, { placement: "right", tooltip: "Help", children: /* @__PURE__ */ jsx(
10
- "button",
11
- {
12
- type: "button",
13
- className: clsx(styles.dropdownButton, {
14
- [styles.dropdownButtonActive]: opened
15
- }),
16
- children: /* @__PURE__ */ jsx(Icon, { size: "25px" })
17
- }
18
- ) }),
19
- children: /* @__PURE__ */ jsx(MenuList, { placement: "right-start", children })
9
+ "aria-label": label,
10
+ className: clsx(styles.link, {
11
+ [styles.active]: window.location.pathname.startsWith(to)
12
+ }),
13
+ href: to,
14
+ children: /* @__PURE__ */ jsx(Icon, { size: "25px" })
20
15
  }
21
- );
16
+ ) });
22
17
  };
23
18
  export {
24
- Menu
19
+ IconLink
25
20
  };
26
21
  //# sourceMappingURL=harmony69.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony69.mjs","sources":["../src/components/Sidebar/Widgets/Menu/Menu.tsx"],"sourcesContent":["import { MenuList, type SvgIconProps, Tooltip, Menu as UIMenu } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { FC, PropsWithChildren } from 'react'\nimport styles from './Menu.module.css'\n\ntype MenuProps = PropsWithChildren<{\n\t/** Icon component from @lokalise/louis to display in the menu button */\n\ticon: FC<SvgIconProps>\n}>\n\n/**\n * A dropdown menu component that displays an icon button which reveals a menu list when clicked.\n * The menu is positioned to the right of the button and includes a tooltip.\n *\n * Used primarily for dropdown menus in the Sidebar, such as the Help menu.\n *\n * @example\n * ```tsx\n * <Menu icon={HelpCenterIcon}>\n * <MenuItem href=\"/docs\">Documentation</MenuItem>\n * <MenuItem href=\"/tutorial\">Tutorials</MenuItem>\n * <MenuDivider />\n * <MenuItem href=\"/blog\">Blog</MenuItem>\n * </Menu>\n * ```\n */\nexport const Menu = ({ children, icon: Icon }: MenuProps) => {\n\treturn (\n\t\t<UIMenu\n\t\t\tmenuButton={({ opened }) => (\n\t\t\t\t<Tooltip placement=\"right\" tooltip=\"Help\">\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclassName={clsx(styles.dropdownButton, {\n\t\t\t\t\t\t\t[styles.dropdownButtonActive]: opened,\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Icon size=\"25px\" />\n\t\t\t\t\t</button>\n\t\t\t\t</Tooltip>\n\t\t\t)}\n\t\t>\n\t\t\t<MenuList placement=\"right-start\">{children}</MenuList>\n\t\t</UIMenu>\n\t)\n}\n"],"names":["UIMenu"],"mappings":";;;;AA0BO,MAAM,OAAO,CAAC,EAAE,UAAU,MAAM,WAAsB;AAE3D,SAAA;AAAA,IAACA;AAAAA,IAAA;AAAA,MACA,YAAY,CAAC,EAAE,OAAO,0BACpB,SAAQ,EAAA,WAAU,SAAQ,SAAQ,QAClC,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,MAAK;AAAA,UACL,WAAW,KAAK,OAAO,gBAAgB;AAAA,YACtC,CAAC,OAAO,oBAAoB,GAAG;AAAA,UAAA,CAC/B;AAAA,UAED,UAAA,oBAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,QAAA;AAAA,MAAA,GAEpB;AAAA,MAGD,UAAC,oBAAA,UAAA,EAAS,WAAU,eAAe,SAAS,CAAA;AAAA,IAAA;AAAA,EAC7C;AAEF;"}
1
+ {"version":3,"file":"harmony69.mjs","sources":["../src/components/Sidebar/Widgets/IconLink/IconLink.tsx"],"sourcesContent":["import { Link, type SvgIconProps, Tooltip } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { FC } from 'react'\nimport styles from './IconLink.module.css'\n\ntype IconLinkProps = {\n\t/** URL destination for the link */\n\tto: string\n\t/** Text to display in the tooltip when hovering over the icon */\n\tlabel: string\n\t/** Icon component from @lokalise/louis to display */\n\ticon: FC<SvgIconProps>\n}\n\n/**\n * A navigation link component that displays an icon with a tooltip.\n * When hovered, shows a tooltip with the label text.\n * The link is highlighted when the current URL matches its destination.\n *\n * @example\n * ```tsx\n * <IconLink to=\"/projects\" label=\"Projects\" icon={FolderOpenIcon} />\n * ```\n */\nexport const IconLink = ({ label, to, icon: Icon }: IconLinkProps) => {\n\treturn (\n\t\t<Tooltip placement=\"right\" tooltip={label}>\n\t\t\t<Link\n\t\t\t\taria-label={label}\n\t\t\t\tclassName={clsx(styles.link, {\n\t\t\t\t\t[styles.active]: window.location.pathname.startsWith(to),\n\t\t\t\t})}\n\t\t\t\thref={to}\n\t\t\t>\n\t\t\t\t<Icon size=\"25px\" />\n\t\t\t</Link>\n\t\t</Tooltip>\n\t)\n}\n"],"names":[],"mappings":";;;;AAwBO,MAAM,WAAW,CAAC,EAAE,OAAO,IAAI,MAAM,WAA0B;AACrE,SACE,oBAAA,SAAA,EAAQ,WAAU,SAAQ,SAAS,OACnC,UAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,cAAY;AAAA,MACZ,WAAW,KAAK,OAAO,MAAM;AAAA,QAC5B,CAAC,OAAO,MAAM,GAAG,OAAO,SAAS,SAAS,WAAW,EAAE;AAAA,MAAA,CACvD;AAAA,MACD,MAAM;AAAA,MAEN,UAAA,oBAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,IAAA;AAAA,EAAA,GAEpB;AAEF;"}
@@ -1,8 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const ProfileMenuContent = require("./harmony83.cjs");
5
- const ProfileMenuProvider = require("./harmony84.cjs");
6
- const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuProvider.ProfileMenuProvider, { config, children: /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuContent.ProfileMenuContent, { children }) });
7
- exports.ProfileMenu = ProfileMenu;
4
+ const louis = require("@lokalise/louis");
5
+ const clsx = require("./harmony64.cjs");
6
+ const Menu_module = require("./harmony83.cjs");
7
+ const Menu = ({ children, icon: Icon }) => {
8
+ return /* @__PURE__ */ jsxRuntime.jsx(
9
+ louis.Menu,
10
+ {
11
+ menuButton: ({ opened }) => /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { placement: "right", tooltip: "Help", children: /* @__PURE__ */ jsxRuntime.jsx(
12
+ "button",
13
+ {
14
+ type: "button",
15
+ className: clsx.clsx(Menu_module.default.dropdownButton, {
16
+ [Menu_module.default.dropdownButtonActive]: opened
17
+ }),
18
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "25px" })
19
+ }
20
+ ) }),
21
+ children: /* @__PURE__ */ jsxRuntime.jsx(louis.MenuList, { placement: "right-start", children })
22
+ }
23
+ );
24
+ };
25
+ exports.Menu = Menu;
8
26
  //# sourceMappingURL=harmony70.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony70.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileMenu.tsx"],"sourcesContent":["import { ProfileMenuContent, type ProfileMenuContentProps } from './ProfileMenuContent'\nimport { ProfileMenuProvider } from './ProfileMenuProvider'\nimport type { SidebarProfileMenuConfig } from './types'\n\ntype ProfileMenuProps = {\n\t/** Configuration object containing team and user settings */\n\tconfig: SidebarProfileMenuConfig\n\t/** Render function for the menu content */\n\tchildren: ProfileMenuContentProps['children']\n}\n\n/**\n * A contextual menu component that provides team management functionality.\n * It manages team switching, profile settings, billing options, and upgrade prompts.\n *\n * The component uses a render prop pattern to provide context values to its children,\n * allowing flexible composition of menu items based on user permissions and team status.\n *\n * @example\n * ```tsx\n * <ProfileMenu config={profileMenuConfig}>\n * {({ allowTeamCreation, showBillingButton }) => (\n * <>\n * <TeamSwitch onSwitchTeam={handleTeamSwitch} />\n * {allowTeamCreation && <MenuItem>Create new team</MenuItem>}\n * {showBillingButton && <MenuItem href=\"/billing\">Billing</MenuItem>}\n * </>\n * )}\n * </ProfileMenu>\n * ```\n */\nexport const ProfileMenu = ({ config, children }: ProfileMenuProps) => (\n\t<ProfileMenuProvider config={config}>\n\t\t<ProfileMenuContent>{children}</ProfileMenuContent>\n\t</ProfileMenuProvider>\n)\n"],"names":["jsx","ProfileMenuProvider","ProfileMenuContent"],"mappings":";;;;;AA+BO,MAAM,cAAc,CAAC,EAAE,QAAQ,SAAS,MAC7CA,2BAAA,IAAAC,oBAAA,qBAAA,EAAoB,QACpB,UAAAD,2BAAA,IAACE,mBAAoB,oBAAA,EAAA,SAAS,CAAA,EAC/B,CAAA;;"}
1
+ {"version":3,"file":"harmony70.cjs","sources":["../src/components/Sidebar/Widgets/Menu/Menu.tsx"],"sourcesContent":["import { MenuList, type SvgIconProps, Tooltip, Menu as UIMenu } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { FC, PropsWithChildren } from 'react'\nimport styles from './Menu.module.css'\n\ntype MenuProps = PropsWithChildren<{\n\t/** Icon component from @lokalise/louis to display in the menu button */\n\ticon: FC<SvgIconProps>\n}>\n\n/**\n * A dropdown menu component that displays an icon button which reveals a menu list when clicked.\n * The menu is positioned to the right of the button and includes a tooltip.\n *\n * Used primarily for dropdown menus in the Sidebar, such as the Help menu.\n *\n * @example\n * ```tsx\n * <Menu icon={HelpCenterIcon}>\n * <MenuItem href=\"/docs\">Documentation</MenuItem>\n * <MenuItem href=\"/tutorial\">Tutorials</MenuItem>\n * <MenuDivider />\n * <MenuItem href=\"/blog\">Blog</MenuItem>\n * </Menu>\n * ```\n */\nexport const Menu = ({ children, icon: Icon }: MenuProps) => {\n\treturn (\n\t\t<UIMenu\n\t\t\tmenuButton={({ opened }) => (\n\t\t\t\t<Tooltip placement=\"right\" tooltip=\"Help\">\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclassName={clsx(styles.dropdownButton, {\n\t\t\t\t\t\t\t[styles.dropdownButtonActive]: opened,\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Icon size=\"25px\" />\n\t\t\t\t\t</button>\n\t\t\t\t</Tooltip>\n\t\t\t)}\n\t\t>\n\t\t\t<MenuList placement=\"right-start\">{children}</MenuList>\n\t\t</UIMenu>\n\t)\n}\n"],"names":["jsx","UIMenu","Tooltip","clsx","styles","MenuList"],"mappings":";;;;;;AA0BO,MAAM,OAAO,CAAC,EAAE,UAAU,MAAM,WAAsB;AAE3D,SAAAA,2BAAA;AAAA,IAACC,MAAA;AAAA,IAAA;AAAA,MACA,YAAY,CAAC,EAAE,OAAO,qCACpBC,MAAQ,SAAA,EAAA,WAAU,SAAQ,SAAQ,QAClC,UAAAF,2BAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,MAAK;AAAA,UACL,WAAWG,KAAAA,KAAKC,YAAA,QAAO,gBAAgB;AAAA,YACtC,CAACA,YAAAA,QAAO,oBAAoB,GAAG;AAAA,UAAA,CAC/B;AAAA,UAED,UAAAJ,2BAAAA,IAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,QAAA;AAAA,MAAA,GAEpB;AAAA,MAGD,UAACA,2BAAA,IAAAK,MAAA,UAAA,EAAS,WAAU,eAAe,SAAS,CAAA;AAAA,IAAA;AAAA,EAC7C;AAEF;;"}
@@ -1,8 +1,26 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { ProfileMenuContent } from "./harmony83.mjs";
3
- import { ProfileMenuProvider } from "./harmony84.mjs";
4
- const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsx(ProfileMenuProvider, { config, children: /* @__PURE__ */ jsx(ProfileMenuContent, { children }) });
2
+ import { Menu as Menu$1, MenuList, Tooltip } from "@lokalise/louis";
3
+ import { clsx } from "./harmony64.mjs";
4
+ import styles from "./harmony83.mjs";
5
+ const Menu = ({ children, icon: Icon }) => {
6
+ return /* @__PURE__ */ jsx(
7
+ Menu$1,
8
+ {
9
+ menuButton: ({ opened }) => /* @__PURE__ */ jsx(Tooltip, { placement: "right", tooltip: "Help", children: /* @__PURE__ */ jsx(
10
+ "button",
11
+ {
12
+ type: "button",
13
+ className: clsx(styles.dropdownButton, {
14
+ [styles.dropdownButtonActive]: opened
15
+ }),
16
+ children: /* @__PURE__ */ jsx(Icon, { size: "25px" })
17
+ }
18
+ ) }),
19
+ children: /* @__PURE__ */ jsx(MenuList, { placement: "right-start", children })
20
+ }
21
+ );
22
+ };
5
23
  export {
6
- ProfileMenu
24
+ Menu
7
25
  };
8
26
  //# sourceMappingURL=harmony70.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony70.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileMenu.tsx"],"sourcesContent":["import { ProfileMenuContent, type ProfileMenuContentProps } from './ProfileMenuContent'\nimport { ProfileMenuProvider } from './ProfileMenuProvider'\nimport type { SidebarProfileMenuConfig } from './types'\n\ntype ProfileMenuProps = {\n\t/** Configuration object containing team and user settings */\n\tconfig: SidebarProfileMenuConfig\n\t/** Render function for the menu content */\n\tchildren: ProfileMenuContentProps['children']\n}\n\n/**\n * A contextual menu component that provides team management functionality.\n * It manages team switching, profile settings, billing options, and upgrade prompts.\n *\n * The component uses a render prop pattern to provide context values to its children,\n * allowing flexible composition of menu items based on user permissions and team status.\n *\n * @example\n * ```tsx\n * <ProfileMenu config={profileMenuConfig}>\n * {({ allowTeamCreation, showBillingButton }) => (\n * <>\n * <TeamSwitch onSwitchTeam={handleTeamSwitch} />\n * {allowTeamCreation && <MenuItem>Create new team</MenuItem>}\n * {showBillingButton && <MenuItem href=\"/billing\">Billing</MenuItem>}\n * </>\n * )}\n * </ProfileMenu>\n * ```\n */\nexport const ProfileMenu = ({ config, children }: ProfileMenuProps) => (\n\t<ProfileMenuProvider config={config}>\n\t\t<ProfileMenuContent>{children}</ProfileMenuContent>\n\t</ProfileMenuProvider>\n)\n"],"names":[],"mappings":";;;AA+BO,MAAM,cAAc,CAAC,EAAE,QAAQ,SAAS,MAC7C,oBAAA,qBAAA,EAAoB,QACpB,UAAA,oBAAC,oBAAoB,EAAA,SAAS,CAAA,EAC/B,CAAA;"}
1
+ {"version":3,"file":"harmony70.mjs","sources":["../src/components/Sidebar/Widgets/Menu/Menu.tsx"],"sourcesContent":["import { MenuList, type SvgIconProps, Tooltip, Menu as UIMenu } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { FC, PropsWithChildren } from 'react'\nimport styles from './Menu.module.css'\n\ntype MenuProps = PropsWithChildren<{\n\t/** Icon component from @lokalise/louis to display in the menu button */\n\ticon: FC<SvgIconProps>\n}>\n\n/**\n * A dropdown menu component that displays an icon button which reveals a menu list when clicked.\n * The menu is positioned to the right of the button and includes a tooltip.\n *\n * Used primarily for dropdown menus in the Sidebar, such as the Help menu.\n *\n * @example\n * ```tsx\n * <Menu icon={HelpCenterIcon}>\n * <MenuItem href=\"/docs\">Documentation</MenuItem>\n * <MenuItem href=\"/tutorial\">Tutorials</MenuItem>\n * <MenuDivider />\n * <MenuItem href=\"/blog\">Blog</MenuItem>\n * </Menu>\n * ```\n */\nexport const Menu = ({ children, icon: Icon }: MenuProps) => {\n\treturn (\n\t\t<UIMenu\n\t\t\tmenuButton={({ opened }) => (\n\t\t\t\t<Tooltip placement=\"right\" tooltip=\"Help\">\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclassName={clsx(styles.dropdownButton, {\n\t\t\t\t\t\t\t[styles.dropdownButtonActive]: opened,\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Icon size=\"25px\" />\n\t\t\t\t\t</button>\n\t\t\t\t</Tooltip>\n\t\t\t)}\n\t\t>\n\t\t\t<MenuList placement=\"right-start\">{children}</MenuList>\n\t\t</UIMenu>\n\t)\n}\n"],"names":["UIMenu"],"mappings":";;;;AA0BO,MAAM,OAAO,CAAC,EAAE,UAAU,MAAM,WAAsB;AAE3D,SAAA;AAAA,IAACA;AAAAA,IAAA;AAAA,MACA,YAAY,CAAC,EAAE,OAAO,0BACpB,SAAQ,EAAA,WAAU,SAAQ,SAAQ,QAClC,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,MAAK;AAAA,UACL,WAAW,KAAK,OAAO,gBAAgB;AAAA,YACtC,CAAC,OAAO,oBAAoB,GAAG;AAAA,UAAA,CAC/B;AAAA,UAED,UAAA,oBAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,QAAA;AAAA,MAAA,GAEpB;AAAA,MAGD,UAAC,oBAAA,UAAA,EAAS,WAAU,eAAe,SAAS,CAAA;AAAA,IAAA;AAAA,EAC7C;AAEF;"}
@@ -1,35 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const louis = require("@lokalise/louis");
5
- const ProfileMenuContext = require("./harmony85.cjs");
6
- const ProfileSettingsMenuItem_module = require("./harmony86.cjs");
7
- const ProfileSettingsMenuItem = ({
8
- href,
9
- onClick,
10
- userEmail,
11
- hideBottomDivider
12
- }) => {
13
- const { isEndOfTrialActive, isTeamSuspended } = ProfileMenuContext.useProfileMenu();
14
- if (isEndOfTrialActive || isTeamSuspended) {
15
- return null;
16
- }
17
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
18
- /* @__PURE__ */ jsxRuntime.jsx(
19
- louis.MenuItem,
20
- {
21
- href,
22
- onClick: () => {
23
- onClick == null ? void 0 : onClick();
24
- },
25
- children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex-col ${ProfileSettingsMenuItem_module.default.container}`, children: [
26
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Profile Settings" }),
27
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: ProfileSettingsMenuItem_module.default.profileEmail, children: userEmail })
28
- ] })
29
- }
30
- ),
31
- !hideBottomDivider && /* @__PURE__ */ jsxRuntime.jsx(louis.MenuDivider, {})
32
- ] });
33
- };
34
- exports.ProfileSettingsMenuItem = ProfileSettingsMenuItem;
4
+ const ProfileMenuContent = require("./harmony84.cjs");
5
+ const ProfileMenuProvider = require("./harmony85.cjs");
6
+ const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuProvider.ProfileMenuProvider, { config, children: /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuContent.ProfileMenuContent, { children }) });
7
+ exports.ProfileMenu = ProfileMenu;
35
8
  //# sourceMappingURL=harmony71.cjs.map